92d518bedfe281ad403b1a44fd36645eac1c0a27
[gnulib.git] / ChangeLog
1 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2
3         Split the HOST_NAME_MAX detection into a separate m4 macro.
4         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5         macro so it can be used by the pending sethostname module.
6
7 2011-12-03  Bruno Haible  <bruno@clisp.org>
8
9         Fix module descriptions syntax.
10         * modules/argv-iter (License): Fix syntax.
11         * modules/di-set (License): Likewise.
12         * modules/ino-map (License): Likewise.
13         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
14
15 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
16
17         stdalign: port to Clang 3.0
18         Problem reported by Simon Josefsson in
19         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
20         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
21         which has <stdalign.h> but which does not define alignof.
22         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
23
24 2011-12-01  Eric Blake  <eblake@redhat.com>
25
26         mktempd: silence dd usage
27         * build-aux/mktempd (rand_bytes): Silence dd.
28
29 2011-11-30  Simon Josefsson  <simon@josefsson.org>
30
31         manywarnings: Don't mention gcc version in docstring.
32         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
33         Jim Meyering <meyering@redhat.com>.
34
35 2011-11-30  Jim Meyering  <meyering@redhat.com>
36
37         hash: mark a few floating point constants with "f" suffix
38         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
39         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
40         floating point constants with "f", since they're destined to be
41         saved/used as "float"s.
42
43 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
44
45         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
46         * tests/test-float.c (test_long_double): Correct and re-enable the
47         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
48
49 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
50
51         Avoid subtracting two pointers that don't point into the same block.
52         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
53         only pointers into the same memory block are subtracted. We cannot
54         assume that sizeof (ptrdiff_t) == sizeof (void *).
55
56 2011-11-29  Eric Blake  <eblake@redhat.com>
57
58         maint.mk: add syntax check for use of compare from init.sh
59         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
60         moved here from coreutils.
61
62         manywarnings: drop -Wunsuffixed-float-constants
63         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
64         '1.0D', which is the only way to silence this warning for 'double'.
65
66 2011-11-29  Jim Meyering  <meyering@redhat.com>
67
68         hash: mark compute_bucket_size with the pure attribute
69         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
70
71         quotearg, propername: correct pragma guard expression
72         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
73         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
74
75 2011-11-28  Jim Meyering  <meyering@redhat.com>
76
77         propername: do not mark proper_name with the const attribute
78         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
79         since it examines data pointed to by its parameter.
80         * lib/propername.c (proper_name): Instead, add a pragma to suppress
81         the suggestion from -Wsuggest-attribute=const.
82
83         propername: mark one more function as const
84         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
85
86 2011-11-27  Jim Meyering  <meyering@redhat.com>
87
88         mark functions with const and pure attributes
89
90         Mark functions per suggestions from gcc-4.6 when using these options:
91         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
92         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
93         Follow these guidelines: when possible, apply the attribute to
94         an extern declaration, not to its definition.  Apply it to the
95         definition only when the definition is static.
96         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
97         * lib/argv-iter.h (argv_iter_n_args): Likewise.
98         * lib/base64.h (isbase64): Likewise.
99         * lib/basename-lgpl.c (last_component, base_len): Likewise.
100         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
101         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
102         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
103         (c_tolower, c_toupper): Likewise.
104         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
105         * lib/chdir-long.c (find_non_slash): Likewise.
106         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
107         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
108         * lib/file-type.h (file_type): Likewise.
109         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
110         * lib/filevercmp.c (verrevcmp): Likewise.
111         * lib/freadahead.h (freadahead): Likewise.
112         * lib/fts.c (fts_maxarglen): Likewise.
113         * lib/hash-pjw.h (hash_pjw): Likewise.
114         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
115         * lib/hash.c (is_prime, next_prime): Likewise.
116         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
117         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
118         (hash_table_ok, hash_get_first, hash_string): Likewise.
119         (compute_bucket_size): Likewise.
120         * lib/i-ring.h (i_ring_empty): Likewise.
121         * lib/isnan.c (isnanl): Likewise.
122         * lib/math.h (isnanl, rpl_isnanl): Likewise.
123         * lib/memcasecmp.h (memcasecmp): Likewise.
124         * lib/memchr2.h (memchr2): Likewise.
125         * lib/memcmp2.h (memcmp2): Likewise.
126         * lib/parse-datetime.y (lookup_zone): Likewise.
127         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
128         [!WINDOWS_SOCKETS]: Likewise.
129         * lib/strnlen1.h (strnlen1): Likewise.
130         * lib/uniwidth.in.h (uc_width): Likewise.
131         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
132         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
133         (quoting_options_from_style): Add a comment.
134         * lib/propername.h (proper_name): Add a comment.
135
136 2011-11-27  Bruno Haible  <bruno@clisp.org>
137
138         Remove unused macros from !_LIBC code in glibc-borrowed files.
139         * lib/fnmatch.c (STRCOLL): Remove macro.
140         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
141         * lib/glob.c (__stat, __readdir64): Remove macros.
142         * lib/tempname.c (__open64, __xstat64): Remove macros.
143         Suggested by Paul Eggert.
144
145 2011-11-27  Bruno Haible  <bruno@clisp.org>
146
147         getcwd: Fix link error on MSVC 9.
148         * modules/getcwd (Depends-on): Add readdir, rewinddir.
149
150 2011-11-27  Bruno Haible  <bruno@clisp.org>
151
152         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
153         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
154         HAVE_OPENDIR is 0.
155         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
156         HAVE_CLOSEDIR is 0.
157         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
158         is 0.
159         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
160
161 2011-11-27  Bruno Haible  <bruno@clisp.org>
162
163         getcwd: Fix bug from 2011-08-17.
164         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
165         platforms that need it.
166         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
167         code of 4 to be a failure, not a success. This ensures that
168         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
169
170 2011-11-27  Bruno Haible  <bruno@clisp.org>
171
172         binary-io tests: Avoid test failure on mingw when libtool is used.
173         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
174         Don't verify the size of t-bin-out1.tmp here.
175         * tests/test-binary-io.sh: Verify it here.
176         Reported by Simon Josefsson.
177
178 2011-11-26  Bruno Haible  <bruno@clisp.org>
179
180         Fix conflict between two instantiations of module 'unistd'.
181         * gnulib-tool (func_emit_autoconf_snippet): Substitute
182         ${include_guard_prefix} also in the autoconf snippet.
183         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
185         GNULIB_UNISTD_H_GETOPT.
186         * modules/getopt-posix (configure.ac): Set the
187         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
188         * modules/getopt-gnu (configure.ac): Likewise.
189         * modules/unistd (Makefile.am): Change the substitution value of
190         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
191         Reported by Simon Josefsson.
192
193 2011-11-25  Bruno Haible  <bruno@clisp.org>
194
195         pagealign_alloc: Doc and comments.
196         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
197         module.
198         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
199
200 2011-11-25  Jim Meyering  <meyering@redhat.com>
201
202         test-update-copyright.sh: avoid false-positive failure
203         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
204         around false positive failure on Cygwin/Windows.  The latter was
205         matching erroneously-created files with names like
206         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
207
208 2011-11-25  Simon Josefsson  <simon@josefsson.org>
209
210         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
211         * m4/valgrind-tests.m4: Check that the parameters that will be
212         used works, not just a subset of them.  Reported by Bruno Haible
213         <bruno@clisp.org>.
214
215 2011-11-24  Jim Meyering  <meyering@redhat.com>
216
217         test-stdalign.c: comment out long double tests
218         * tests/test-stdalign.c: Don't try to reduce alignment of long double
219         variables.  That provokes errors like this from gcc-4.7.0 20111124:
220         error: '_Alignas' specifiers cannot reduce alignment of \
221         'static_longdouble_alignas'.
222
223 2011-11-22  Jim Meyering  <meyering@redhat.com>
224
225         init.sh: make "compare /dev/null FILE" output more readable
226         * tests/init.sh (compare_): Document the preferred order of arguments.
227         (emit_diff_u_header_): New function.
228         (compare_dev_null_): Emit a simulated diff, rather than just the
229         contents of the unexpected file.  Suggestion from Bruno Haible.
230
231 2011-11-21  Jim Meyering  <meyering@redhat.com>
232             Eric Blake  <eblake@redhat.com>
233
234         init.sh: work around OSF/1 5.1's mishandling of /dev/null
235         * tests/init.sh: Make our compare function slightly more portable.
236         Reported by Bruno Haible in
237         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
238
239 2011-11-21  Simon Josefsson  <simon@josefsson.org>
240
241         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
242         before using it, in code that ends up in config.h.
243
244 2011-11-20  Bruno Haible  <bruno@clisp.org>
245
246         getcwd: Work around getcwd bug on AIX 5..7.
247         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
248         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
249         Use a different value for gl_cv_func_getcwd_path_max. Move the
250         definition of HAVE_PARTLY_WORKING_GETCWD from here...
251         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
252         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
253         Define HAVE_MINIMALLY_WORKING_GETCWD.
254         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
255         where it is not even minimally working, that is, on AIX.
256         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
257         m4/getcwd-path-max.m4.
258         (main): Update exit code computation.
259         * doc/posix-functions/getcwd.texi: Mention list of platforms where
260         getcwd does not handle long file names.
261
262 2011-11-20  Bruno Haible  <bruno@clisp.org>
263
264         getcwd: Fix bug from 2009-09-10.
265         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
266         like "no".
267
268 2011-11-20  Simon Josefsson  <simon@josefsson.org>
269
270         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
271
272 2011-11-20  Bruno Haible  <bruno@clisp.org>
273
274         fma tests: Avoid shadowing local variables.
275         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
276         expected.
277
278 2011-11-20  Bruno Haible  <bruno@clisp.org>
279
280         copysignf tests: Fix.
281         * tests/test-copysignf.c: Fix signature check.
282
283 2011-11-20  Bruno Haible  <bruno@clisp.org>
284
285         fma: Remove unused code.
286         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
287         unused macros.
288
289 2011-11-20  Bruno Haible  <bruno@clisp.org>
290
291         sethostname: Fix doc about AIX.
292         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
293         sethostname; it has it.
294
295         sethostname: Mention more portability problems.
296         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
297         problem.
298         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
299
300 2011-11-19  Bruno Haible  <bruno@clisp.org>
301
302         Depend on module fcntl-h when AT_FDCWD is used.
303         * modules/utimens (Depends-on): Add fcntl-h.
304         * modules/areadlinkat (Depends-on): Likewise.
305         * modules/areadlinkat-with-size (Depends-on): Likewise.
306         * modules/faccessat (Depends-on): Likewise.
307         * modules/fchmodat (Depends-on): Likewise.
308         * modules/fchownat (Depends-on): Likewise.
309         * modules/getcwd (Depends-on): Likewise.
310         * modules/mkdirat (Depends-on): Likewise.
311         * modules/mkfifoat (Depends-on): Likewise.
312         * modules/readlinkat (Depends-on): Likewise.
313         * modules/symlinkat (Depends-on): Likewise.
314         * modules/dup2-tests (Depends-on): Likewise.
315         * modules/fdutimensat-tests (Depends-on): Likewise.
316         * modules/futimens-tests (Depends-on): Likewise.
317
318 2011-11-19  Bruno Haible  <bruno@clisp.org>
319
320         euidaccess: Update a comment.
321         * lib/euidaccess.c: Update comment about platforms with faccessat.
322
323 2011-11-19  Bruno Haible  <bruno@clisp.org>
324
325         openat: Fix file list.
326         * modules/openat (Files): Remove lib/at-func.c.
327
328 2011-11-19  Bruno Haible  <bruno@clisp.org>
329
330         fstatat: Simplify.
331         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
332         gnulib should define rpl_fstatat, there is a
333         "#define fstatat rpl_fstatat" in <sys/stat.h>.
334
335 2011-11-19  Bruno Haible  <bruno@clisp.org>
336
337         Ensure 'inline' can be used in tests/test-utimens-common.h.
338         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
339         * modules/futimens-tests (configure.ac): Likewise.
340         * modules/utimens-tests (configure.ac): Likewise.
341         * modules/utimensat-tests (configure.ac): Likewise.
342
343 2011-11-19  Simon Josefsson  <simon@josefsson.org>
344
345         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
346         not hash_insert0.
347         (hash_insert_if_absent): Doc fix.
348
349 2011-11-19  Simon Josefsson  <simon@josefsson.org>
350
351         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
352
353 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
354
355         test-getcwd: disambiguate exit status
356         * tests/test-getcwd.c (test_long_name): Return 0..7.
357         (main): Exit with an unambiguous exit status.  The old
358         code yielded a mysterious mixture of two failure codes.
359
360         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
361         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
362         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
363         rpl_fstatat or fstatat.  This should fix the other problem
364         reported by Kai Habel in
365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
366         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
368         and I reproduced it on a Solaris 8 host we still have in production.
369
370 2011-11-18  Jim Meyering  <meyering@redhat.com>
371
372         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
373         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
374         Add a sentence to the comment.
375         (hash_insert0): New function that simply calls hash_insert_if_absent.
376         * lib/hash.h (hash_insert_if_absent): Declare it.
377         (hash_insert0): Add deprecation attribute.
378         (_GL_ATTRIBUTE_DEPRECATED): Define.
379         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
380         not hash_insert0.
381         * NEWS: Mention it, even though it's not really an incompatible change.
382
383 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
384
385         openat: avoid compilation failure due to lack of <errno.h> inclusion
386         * lib/openat.c: Include <errno.h>.
387
388 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
389
390         * modules/getcwd (Depends-on): Add fdopendir.
391         This fixes one of the two problems reported by Kai Habel in
392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
393
394         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
395         stdalign problem reported by Ian Beckwith in
396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
397         * modules/crypto/gc-arcfour (Depends-on):
398         Depend conditionally on crypto/arcfour.
399         * modules/crypto/gc-arctwo (Depends-on):
400         Depend conditionally on crypto/arctwo.
401         * modules/crypto/gc-des (Depends-on):
402         Depend conditionally on crypto/des.
403         * modules/crypto/gc-hmac-md5 (Depends-on):
404         Depend conditionally on crypto/hmac-md5.
405         * modules/crypto/gc-hmac-sha1 (Depends-on):
406         Depend conditionally on crypto/hmac-sha1.
407         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
408         * modules/crypto/gc-md4 (Depends-on):
409         Depend conditionally on crypto/md4.
410         * modules/crypto/gc-md5 (Depends-on):
411         Depend conditionally on crypto/md5.
412         * modules/crypto/gc-rijndael (Depends-on):
413         Depend conditionally on crypto/rijndael.
414         * modules/crypto/gc-sha1 (Depends-on):
415         Depend conditionally on crypto/sha1.
416         * modules/crypto/gc-arcfour:
417         * modules/crypto/gc-arctwo:
418         * modules/crypto/gc-des:
419         * modules/crypto/gc-hmac-md5:
420         * modules/crypto/gc-hmac-sha1:
421         * modules/crypto/gc-md2:
422         * modules/crypto/gc-md4:
423         * modules/crypto/gc-md5:
424         * modules/crypto/gc-rijndael:
425         * modules/crypto/gc-sha1:
426         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
427         now that the conditional dependencies do the work for us.
428
429 2011-11-17  Jim Meyering  <meyering@redhat.com>
430
431         tests: factor st_ctime-comparison out of two headers
432         * tests/test-utimens-common.h (ctime_compare): Define.
433         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
434         * tests/test-lutimens.h (test_lutimens): Likewise.
435         * tests/test-utimens.h (test_utimens): Likewise.
436
437         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
438         Invoke the test program via an init.sh-using wrapper.
439         * tests/test-getcwd.sh: New file.
440         * modules/getcwd-tests (Files): Add it.
441         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
442
443 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
444
445         gitlog-to-changelog: support multi-author commits.
446         The FSF cares about keeping track of all authors of patches to its
447         projects, but Git doesn't provide obvious support for multi-author
448         changesets. Consensus seems to be forming around the use of extra
449         Signed-off-by inspired lines in the log message formatted as
450         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
451         multi-author commits between version control systems.
452         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
453         log message and output in standard ChangeLog multi-author format.
454         Reported by Peter Rosin <peda@lysator.liu.se>
455
456 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
457             Bruno Haible  <bruno@clisp.org>
458
459         Fix some modules' file list.
460         * modules/fstatat (Files): Add m4/lstat.m4.
461         * modules/openat (Files): Likewise.
462         * modules/unlinkat (Files): Likewise.
463
464 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
465
466         maint.mk: fix tight-scope.mk generation in VPATH builds.
467         * top/maint.mk (tight-scope.mk): Make sure to prefix file
468         reference with $(srcdir) so that the file is found correctly even
469         when running `make syntax-check' in a VPATH build.
470
471 2011-11-13  Bruno Haible  <bruno@clisp.org>
472             Jim Meyering  <meyering@redhat.com>
473
474         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
475         * tests/init.sh (compare): Remove "No differences encountered" or
476         synonymous output from the 'diff' program.
477
478 2011-11-13  Bruno Haible  <bruno@clisp.org>
479
480         Makefile: Tweak indentation.
481         * Makefile: Use tab as first character in every line that contains rule
482         commands.
483
484 2011-11-13  Bruno Haible  <bruno@clisp.org>
485
486         Syntax check for copyright statements.
487         * check-copyright: New file.
488         * Makefile (sc_check_copyright): New rule.
489
490 2011-11-13  Simon Josefsson  <simon@josefsson.org>
491
492         * build-aux/git-version-gen: Add --prefix to configure the tag
493         match string.
494
495 2011-11-13  Simon Josefsson  <simon@josefsson.org>
496
497         * build-aux/git-version-gen: Add --help and --version.
498
499 2011-11-12  Jim Meyering  <meyering@redhat.com>
500
501         revamp the other test-exclude?.sh scripts to use init.sh, too
502         * tests/test-exclude1.sh: Use init.sh.
503         * tests/test-exclude2.sh: Likewise.
504         * tests/test-exclude3.sh: Likewise.
505         * tests/test-exclude4.sh: Likewise.
506         * tests/test-exclude5.sh: Likewise.
507         * tests/test-exclude6.sh: Likewise.
508         * tests/test-exclude7.sh: Likewise.
509         * tests/test-exclude8.sh: Likewise.
510         * modules/exclude-tests (Files): List init.sh.
511
512         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
513         These shell scripts ignored failure of the binary test-exclude,
514         so making the latter return 77 didn't cause them to be skipped.
515         * tests/test-exclude5.sh: Exit with test-exclude's error status
516         when that program fails.  Revamp to use init.sh.
517         * tests/test-exclude2.sh: Likewise.
518
519         test-exclude: fix a typo
520         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
521
522 2011-11-11  Bruno Haible  <bruno@clisp.org>
523
524         obstack: Fix compilation error on MSVC 9.
525         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
526
527 2011-11-11  Jim Meyering  <meyering@redhat.com>
528
529         test-exclude: skip tests rather than failing on deficient systems
530         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
531         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
532         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
533         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
534
535 2011-11-10  Bruno Haible  <bruno@clisp.org>
536
537         ptsname_r test: Avoid gcc warning on glibc systems.
538         * tests/test-ptsname_r.c (null_ptr): New function.
539         (test_errors): Use it.
540
541 2011-11-10  Bruno Haible  <bruno@clisp.org>
542
543         ptsname_r: Avoid compilation error on OSF/1 5.1.
544         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
546         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
547         function is not declared or incompatibly declared.
548         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
549         * modules/ptsname_r (Depends-on, configure.ac): Update.
550         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
551
552 2011-11-10  Bruno Haible  <bruno@clisp.org>
553
554         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
555         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
556         When cross-compiling, guess yes on all platforms except AIX.
557         Reported by Ludovic Courtès <ludo@gnu.org>.
558
559 2011-11-09  Bruno Haible  <bruno@clisp.org>
560
561         ptsname_r tests: Fix bugs.
562         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
563         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
564
565 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
566
567         fstatat: work with cross-compilation
568         Problem reported by Ludovic Courtès in
569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
570         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
571         "cross-compiling" and assume the bug is present.  Replace
572         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
573         an inverted sense, to be more conservative about our assumptions.
574         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
575
576 2011-11-09  Bruno Haible  <bruno@clisp.org>
577
578         Improve MODULES.html output.
579         * modules/mkfifoat (Description): Use the word "function".
580         * modules/readlinkat (Description): Likewise.
581         * modules/symlinkat (Description): Likewise.
582
583 2011-11-09  Eric Blake  <eblake@redhat.com>
584
585         ptsname_r-tests: new test module
586         * modules/ptsname_r-tests: New module.
587         * tests/test-ptsname_r.c: New file.
588
589         ptsname_r: new module
590         * modules/ptsname_r: New module.
591         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
592         * lib/ptsname.c (__ptsname_r): Split...
593         * lib/ptsname_r.c: ...into new file.
594         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
595         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
596         * modules/stdlib (Makefile.am): Substitute witnesses.
597         * lib/stdlib.in.h (ptsname_r): Declare it.
598         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
599         * MODULES.html.sh (Misc): Likewise.
600         * modules/ptsname (Depends-on): Alter dependency.
601         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
602
603 2011-11-09  Jim Meyering  <meyering@redhat.com>
604
605         announce-gen: be more concise when there's only one URL+tarball
606         * build-aux/announce-gen (get_tool_versions): When you distribute
607         only one type of tarball, combine the first two "Here are..."
608         sections and make the key-checking grammar independent of
609         how many tarballs there are.
610
611 2011-11-09  Eric Blake  <eblake@redhat.com>
612
613         openpty: provide a stub on mingw
614         * lib/pty.in.h (includes): Provide forward declarations.
615         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
616
617         raise: fix mingw handling of SIGPIPE
618         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
619
620 2011-11-08  Bruno Haible  <bruno@clisp.org>
621
622         More conditional dependencies.
623         * modules/faccessat (Depends-on): Add conditions.
624         * modules/fchmodat (Depends-on): Likewise.
625         * modules/fchownat (Depends-on): Likewise.
626         * modules/fstatat (Depends-on): Likewise.
627         * modules/mkfifoat (Depends-on): Likewise.
628         * modules/readlinkat (Depends-on): Likewise.
629         * modules/symlinkat (Depends-on): Likewise.
630         * modules/unlinkat (Depends-on): Likewise.
631         * modules/utimensat (Depends-on): Likewise.
632         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
633         * modules/linkat (Depends-on): Refine the conditions.
634         * modules/renameat (Depends-on): Likewise.
635
636 2011-11-08  Bruno Haible  <bruno@clisp.org>
637
638         faccessat: Move AC_LIBOBJ invocation to module description.
639         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
640         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
641         invocation from here...
642         * modules/faccessat (configure.ac): ... to here. Invoke
643         gl_PREREQ_FACCESSAT.
644
645 2011-11-08  Bruno Haible  <bruno@clisp.org>
646
647         faccessat: Simplify autoconf macro.
648         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
649         gl_FUNC_EUIDACCESS.
650
651 2011-11-08  Bruno Haible  <bruno@clisp.org>
652
653         renameat: Fix dependencies.
654         * modules/renameat (Depends-on): Add stdbool.
655
656 2011-11-08  Bruno Haible  <bruno@clisp.org>
657
658         mkfifoat: Fix module description.
659         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
660         not gl_UNISTD_MODULE_INDICATOR.
661
662 2011-11-08  Bruno Haible  <bruno@clisp.org>
663
664         fstatat: Remove unused dependency.
665         * modules/fstatat (Depends-on): Remove fstat.
666
667 2011-11-08  Simon Josefsson  <simon@josefsson.org>
668
669         GNUmakefile: behave when Makefile is missing.
670         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
671
672 2011-11-08  Bruno Haible  <bruno@clisp.org>
673
674         openat: Conditionalize dependencies.
675         * lib/openat.c: Reduce the scope of some #includes.
676         * modules/openat (Depends-on): Add conditions.
677
678 2011-11-07  Jim Meyering  <meyering@redhat.com>
679
680         maint.mk: extract GPG key ID without using a temporary file
681         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
682         without using a temporary file.  Based on a suggestion from Werner Koch
683         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
684
685 2011-11-07  Eric Blake  <eblake@redhat.com>
686
687         grantpt: fix typo
688         * lib/stdlib.in.h (grantpt): Check correct function.
689
690         maint.mk: silence new syntax check
691         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
692
693 2011-11-06  Bruno Haible  <bruno@clisp.org>
694
695         Doc about floating-point and math API.
696         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
697         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
698
699 2011-11-06  Bruno Haible  <bruno@clisp.org>
700
701         stdalign tests: Skip the test when compiled by Sun C.
702         * tests/test-stdalign.c (main): Skip the test on Sun C.
703
704 2011-11-06  Bruno Haible  <bruno@clisp.org>
705
706         ansi-c++-opt: Complete the 2011-06-05 change.
707         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
708         does not support namespaces, set the variable to "no", not to ":".
709
710 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
711
712         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
713
714 2011-11-06  Bruno Haible  <bruno@clisp.org>
715
716         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
717         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
718         (minus_zerol) [HP-UX]: New macro.
719         (unary_minus) [HP-UX]: New function.
720         (copysignl) [HP-UX]: Use unary_minus function.
721
722 2011-11-06  Bruno Haible  <bruno@clisp.org>
723
724         ldexp, ldexpf, ldexpl: Enhance tests.
725         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
726         and tests/test-ldexpl.c.
727         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
728         LDEXP, MIN_EXP, MAX_EXP): New macros.
729         Include test-ldexp.h.
730         (main): Just call test_function.
731         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
732         infinity.h, nan.h.
733         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
734         MAX_EXP): New macros.
735         Include test-ldexp.h.
736         (x, y): Remove variables.
737         (main): Just call test_function.
738         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
739         infinity.h, nan.h.
740         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
741         MAX_EXP): New macros.
742         Include test-ldexp.h.
743         (x, y): Remove variables.
744         (main): Just call test_function.
745         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
746         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
747         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
748         (Depends-on): Add isnand-nolibm, signbit, float.
749         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
750         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
751         (Depends-on): Add isnanf-nolibm, signbit, float.
752
753 2011-11-06  Bruno Haible  <bruno@clisp.org>
754
755         math tests: Cosmetics.
756         * tests/test-math-c++.cc: Reorder declarations.
757
758 2011-11-05  Bruno Haible  <bruno@clisp.org>
759
760         fma*: Simplify test.
761         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
762         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
763
764         Tests for module 'fmal'.
765         * modules/fmal-tests: New file.
766         * tests/test-fmal1.c: New file.
767         * tests/test-fmal2.c: New file.
768
769         New module 'fmal'.
770         * lib/math.in.h (fmal): New declaration.
771         * lib/fmal.c: New file.
772         * m4/fmal.m4: New file.
773         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
775         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
776         REPLACE_FMAL.
777         * modules/fmal: New file.
778         * doc/posix-functions/fmal.texi: Mention the new module and the various
779         bugs.
780
781         Tests for module 'fmaf'.
782         * modules/fmaf-tests: New file.
783         * tests/test-fmaf1.c: New file.
784         * tests/test-fmaf2.c: New file.
785
786         New module 'fmaf'.
787         * lib/math.in.h (fmaf): New declaration.
788         * lib/fmaf.c: New file.
789         * m4/fmaf.m4: New file.
790         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
792         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
793         REPLACE_FMAF.
794         * modules/fmaf: New file.
795         * doc/posix-functions/fmaf.texi: Mention the new module and the various
796         bugs.
797
798         Tests for module 'fma'.
799         * modules/fma-tests: New file.
800         * tests/test-fma1.c: New file.
801         * tests/test-fma1.h: New file.
802         * tests/test-fma2.c: New file.
803         * tests/test-fma2.h: New file.
804
805         New module 'fma'.
806         * lib/math.in.h (fma): New declaration.
807         * lib/fma.c: New file.
808         * m4/fma.m4: New file.
809         * m4/fegetround.m4: New file.
810         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
811         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
812         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
813         REPLACE_FMA.
814         * modules/fma: New file.
815         * doc/posix-functions/fma.texi: Mention the new module and the various
816         bugs.
817
818         Extend gl_MATHFUNC.
819         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
820         Support 'void' as argument type.
821         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
822
823 2011-11-05  Jim Meyering  <meyering@redhat.com>
824
825         maint.mk: also prohibit inclusion of dirent.h without use
826         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
827
828 2011-11-05  Bruno Haible  <bruno@clisp.org>
829
830         ldexpl tests: Avoid test failure on MSVC 9.
831         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
832         value. Needed in order to enforce the conversion from a value greater
833         than LDBL_MAX to Infinity.
834
835 2011-11-05  Bruno Haible  <bruno@clisp.org>
836
837         New modules 'at-internal', 'openat-h', split off from module 'openat'.
838         * modules/at-internal: New file, extracted from modules/openat.
839         * modules/openat-h: New file.
840         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
841         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
842         * modules/openat (Description): Add reference to POSIX function.
843         (Files): Remove lib/openat.h, lib/openat-proc.c.
844         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
845         intprops, unistd.
846         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
847         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
848         gl_FCNTL_MODULE_INDICATOR.
849         (Include): Remove unistd.h, openat.h.
850         * modules/areadlinkat (Files): Add lib/at-func.c.
851         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
852         openat-die, openat-h, save-cwd.
853         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
854         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
855         openat-die, openat-h, save-cwd, unistd.
856         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
857         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
858         openat-h, save-cwd. Remove fcntl-h, openat.
859         * modules/fchmodat (Files): Remove lib/openat.h.
860         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
861         openat, stdbool, unistd.
862         * modules/fchownat (Files): Remove lib/openat.h.
863         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
864         openat, stdbool, sys_stat.
865         * modules/fdopendir (Files): Remove lib/openat-priv.h,
866         lib/openat-proc.c.
867         (Depends-on): Add at-internal.
868         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
869         * modules/fstatat (Files): Remove lib/openat.h.
870         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
871         stdbool, unistd.
872         * modules/fts (Depends-on): Add openat-h.
873         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
874         openat.
875         * modules/mkdirat (Files): Remove lib/openat.h.
876         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
877         openat, stdbool, sys_stat.
878         * modules/mkfifoat (Files): Add lib/at-func.c.
879         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
880         openat-h, save-cwd. Remove fcntl-h, openat.
881         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
882         * modules/readlinkat (Files): Add lib/at-func.c.
883         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
884         openat-h, save-cwd. Remove fcntl-h, openat.
885         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
886         openat.
887         * modules/selinux-at (Files): Add lib/at-func.c.
888         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
889         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
890         * modules/symlinkat (Files): Add lib/at-func.c.
891         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
892         openat-h, save-cwd. Remove fcntl-h, openat.
893         * modules/unlinkat (Files): Remove lib/openat.h.
894         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
895         stdbool.
896         * modules/utimensat (Files): Add lib/at-func.c.
897         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
898         openat-die, openat-h, save-cwd.
899         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
900         * modules/fdutimensat-tests (Depends-on): Add openat.
901         * modules/fstatat-tests (Depends-on): Add openat-h.
902         * modules/readlinkat-tests (Depends-on): Add openat.
903         * modules/symlinkat-tests (Depends-on): Add openat.
904
905 2011-11-05  Bruno Haible  <bruno@clisp.org>
906
907         openat: Include <stdbool.h>.
908         * lib/openat.c: Include <stdbool.h>.
909
910 2011-11-04  Bruno Haible  <bruno@clisp.org>
911
912         fchownat, renameat, unlinkat: Fix dependencies.
913         * modules/fchownat (Depends-on): Add fstatat.
914         * modules/renameat (Depends-on): Likewise.
915         * modules/unlinkat (Depends-on): Likewise.
916
917 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
918
919         openat: remove direct dependency on dirent
920         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
921         and hasn't been needed ever since fdopendir was split into its own
922         module on 2009-08-31.
923         * modules/openat (Depends-on): Remove dirent.
924
925 2011-11-04  Bruno Haible  <bruno@clisp.org>
926
927         renameat: Optimize code size.
928         * modules/renameat (configure.ac): Don't compile at-func2.c if
929         REPLACE_RENAMEAT is 1.
930
931 2011-11-04  Bruno Haible  <bruno@clisp.org>
932
933         openat tests: Fix file list.
934         * modules/openat-tests (Files): Add tests/test-open.h.
935
936 2011-11-04  Bruno Haible  <bruno@clisp.org>
937
938         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
939         * modules/fchmodat (Depends-on): Add openat-die.
940         * modules/fchownat (Depends-on): Likewise.
941         * modules/linkat (Depends-on): Likewise.
942         * modules/renameat (Depends-on): Likewise.
943         * modules/openat (Depends-on): Add dirent.
944
945 2011-11-04  Jim Meyering  <meyering@redhat.com>
946
947         at-func*.c: fix comments
948         * lib/at-func2.c: Correct/improve first-line comment.
949         * lib/at-func.c: Correct grammar in first-line comment.
950
951 2011-11-04  Bruno Haible  <bruno@clisp.org>
952
953         New module 'mkdirat', split off from module 'openat'.
954         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
955         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
956         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
957         * modules/mkdirat: New file, extracted from modules/openat.
958         * modules/openat (Files): Remove lib/mkdirat.c.
959         (Depends-on): Remove mkdir.
960         (configure.ac): Remove AC_LIBOBJ of mkdirat.
961         (Include): Remove <sys/stat.h>.
962         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
963         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
964         tests/test-mkdir.h.
965         (Depends-on): Remove ignore-value.
966         (Makefile.am): Remove rules for test-mkdirat.
967         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
968         of module 'openat'.
969         * NEWS: Mention the change.
970
971 2011-11-04  Bruno Haible  <bruno@clisp.org>
972
973         closedir: Avoid warning on mingw.
974         * lib/closedir.c: Include <unistd.h>.
975
976 2011-11-04  Bruno Haible  <bruno@clisp.org>
977
978         New module 'fstatat', split off from module 'openat'.
979         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
980         defined.
981         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
982         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
983         gl_FUNC_FSTATAT.
984         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
985         * modules/fstatat: New file, extracted from modules/openat.
986         * modules/openat (Files): Remove lib/fstatat.c.
987         (Depends-on): Remove lstat.
988         (configure.ac): Remove AC_LIBOBJ of fstatat.
989         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
990         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
991         tests/test-lstat.h, tests/test-stat.h.
992         (Depends-on): Remove getcwd-lgpl.
993         (Makefile.am): Remove rules for test-fstatat.
994         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
995         of module 'openat'.
996         * NEWS: Mention the change.
997         * modules/getcwd (Depends-on): Add fstatat.
998         * modules/linkat (Depends-on): Likewise.
999         * modules/mkfifoat-tests (Depends-on): Likewise.
1000         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1001
1002 2011-11-03  Bruno Haible  <bruno@clisp.org>
1003
1004         New module 'unlinkat', split off from module 'openat'.
1005         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1006         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1007         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1008         * modules/unlinkat: New file, extracted from modules/openat. Correct
1009         the dependency conditions.
1010         * modules/openat (Files): Remove lib/unlinkat.c.
1011         (Depends-on): Remove rmdir, unlink.
1012         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1013         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1014         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1015         tests/test-rmdir.h, tests/test-unlink.h.
1016         (Depends-on): Remove unlinkdir.
1017         (Makefile.am): Remove rules for test-unlinkat.
1018         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1019         of module 'openat'.
1020         * NEWS: Mention the change.
1021         * modules/linkat-tests (Depends-on): Add unlinkat.
1022         * modules/mkfifoat-tests (Depends-on): Likewise.
1023         * modules/readlinkat-tests (Depends-on): Likewise.
1024
1025 2011-11-02  Bruno Haible  <bruno@clisp.org>
1026
1027         New module 'fchmodat', split off from module 'openat'.
1028         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1029         defined.
1030         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1031         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1032         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1033         * modules/fchmodat: New file, extracted from modules/openat.
1034         * modules/openat (Files): Remove lib/fchmodat.c.
1035         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1036         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1037         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1038         (Makefile.am): Remove rules for test-fchmodat.
1039         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1040         of module 'openat'.
1041         * NEWS: Mention the change.
1042
1043 2011-11-02  Jim Meyering  <meyering@redhat.com>
1044
1045         putenv: indent #definition of "environ" to placate cppi
1046         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1047
1048         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1049         Git logs are often treated as immutable, because editing them
1050         changes the SHA1 checksums of all descendants.  Thus, errors in
1051         git logs tend to stay there forever.  However, when we generate
1052         a ChangeLog file -- typically for distribution -- from that git log,
1053         we can actually make corrections in the generated file.  The key
1054         lies in recording in machine-readable/applicable form the desired
1055         corrections.  See --help for description and an example.
1056         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1057         (usage): Describe it; alphabetize option descriptions.
1058         (main): Honor the new option, carefully.
1059
1060 2011-11-01  Jim Meyering  <meyering@redhat.com>
1061
1062         gitlog-to-changelog: avoid an infloop
1063         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1064         that ends up being empty.
1065
1066 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1067
1068         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1069         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1070         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1071         contains (possibly-quoted) backslashes.  This should avoid
1072         all-too-common shell bugs if COMPLICATED contains backslashes in
1073         the "wrong" places.  Reported by David Evans in
1074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1075         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1076         because we want ASCII ranges.  Is there some reason we don't use
1077         the C locale everywhere in this script?
1078         (func_module, top level): Avoid unwanted pathname expansion when
1079         $repo_url_prefix or $repo_url_suffix_repl contain shell
1080         metacharacters like '?' and '*'.
1081
1082 2011-11-01  Bruno Haible  <bruno@clisp.org>
1083
1084         fchownat: Improve description.
1085         * modules/fchownat (Description): Add link to function.
1086
1087 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1088
1089         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1090         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1091         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1092         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1093
1094 2011-11-01  Bruno Haible  <bruno@clisp.org>
1095
1096         alignof: Avoid collision with stdalign module.
1097         * lib/alignof.h (alignof): Remove macro.
1098         * NEWS: Mention the change.
1099         Reported by Paul Eggert.
1100
1101 2011-11-01  Bruno Haible  <bruno@clisp.org>
1102
1103         New module 'fchownat', split off from module 'openat'.
1104         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1105         defined.
1106         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1107         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1108         invoke gl_FUNC_FCHOWNAT.
1109         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1110         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1111         * modules/fchownat: New file, extracted from modules/openat.
1112         * modules/openat (Files): Remove lib/fchownat.c.
1113         (Depends-on): Remove lchown.
1114         (configure.ac): Remove AC_LIBOBJ of fchownat.
1115         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1116         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1117         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1118         (Depends-on): Remove mgetgroups, usleep, stat-time.
1119         (configure.ac): Remove test for getegid.
1120         (Makefile.am): Remove rules for test-fchownat.
1121         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1122         of module 'openat'.
1123         * NEWS: Mention the change.
1124
1125 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1126
1127         stdalign: port better to MSVC and to Sun C 5.11
1128         This fixes some of the problems reported by Bruno Haible in
1129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1130         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1131         shortcomings of MSVC and of Sun C 5.11.
1132         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1133         around __declspec arg.
1134         * modules/stdalign-tests (Files): Add tests/macros.h.
1135         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1136         Include macros.h, for ASSERT.
1137         (DECLARE_ALIGNED): Remove.
1138         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1139         to catch bug), and to 1 if not (simplifies the rest of the code).
1140         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1141         (CHECK_AUTO): Remove.
1142         (CHECK_ALIGNED): Check only the alignment of the static vars,
1143         since auto var alignment isn't supported by Sun C 5.11.
1144         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1145         ASSERT failures are easier to diagnose.
1146
1147 2011-10-31  Bruno Haible  <bruno@clisp.org>
1148
1149         doc about some IRIX 5.3 problems.
1150         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1151         on IRIX 5.3.
1152         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1153         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1154         5.3.
1155         * doc/posix-functions/grantpt.texi: Likewise.
1156         * doc/posix-functions/unlockpt.texi: Likewise.
1157         * doc/posix-functions/lgamma.texi: Likewise.
1158         * doc/posix-functions/nextafter.texi: Likewise.
1159         * doc/posix-functions/remainder.texi: Likewise.
1160         * doc/posix-functions/select.texi: Mention misplaced declaration on
1161         IRIX 5.3.
1162         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1163
1164 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1165
1166         gitlog-to-changelog: fix git-log invocation.
1167         git-log mishandles date strings before 1970-01-01 UTC, and there is
1168         no use to specify --since=1970-01-01 by default anyway.
1169         * build-aux/gitlog-to-changelog: By default, when no --since option
1170         was given, do not specify explicit --since option to git-log.
1171
1172 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1173
1174         gitlog-to-changelog: new option --append-dot.
1175         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1176         first non-blank line of each commit message terminated with a dot.
1177
1178 2011-10-30  Bruno Haible  <bruno@clisp.org>
1179
1180         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1181         * lib/ffsl.h: Include <config.h>.
1182         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1183
1184 2011-10-30  Jim Meyering  <meyering@redhat.com>
1185
1186         GNUmakefile: reenable "make syntax-check" for most projects
1187         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1188         build-aux variable", "syntax-check" would do nothing but succeed with
1189         the "No version control files detected..." diagnostic (unless you
1190         happened to override _build-aux via cfg.mk).
1191         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1192         to precede inclusion of maint.mk.  Otherwise, these variables would
1193         be used undefined in any project that does not override the default.
1194
1195 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1196
1197         gitlog-to-changelog: treat a message with only blank lines as empty.
1198         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1199         trailing blank lines before the code that issues a warning about an
1200         empty commit message.
1201
1202 2011-10-30  Jim Meyering  <meyering@redhat.com>
1203
1204         test-parse-datetime.c: avoid new DST-related false positive test failure
1205         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1206         based on the time/date we'll convert, not the current time.
1207         Otherwise, the moment we cross a DST boundary like today's in
1208         Europe, (CEST to CET), that offset ends up being one hour off.
1209
1210 2011-10-27  Bruno Haible  <bruno@clisp.org>
1211
1212         fstat: Tweak documentation.
1213         * modules/fstat (Description): More precise description.
1214
1215 2011-10-27  Bruno Haible  <bruno@clisp.org>
1216
1217         Update documentation regarding 'largefile' module.
1218         * doc/posix-functions/fstat.texi: Tweak wording.
1219         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1220         problems with huge directories and/or small ino_t types.
1221         * doc/posix-functions/readdir.texi: Likewise.
1222         * doc/posix-functions/rewinddir.texi: Likewise.
1223
1224 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1225
1226         maint.mk: don't maintain a second build-aux variable.
1227         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1228         depends on GNUmakefile, which already maintains a cfg.mk
1229         overridable $(_build-aux) for projects with a non-standard
1230         build-aux directory location, although without the $(srcdir)
1231         prefix.  Use that variable consistently instead of introducing a
1232         second one.  Adjust all call sites.
1233
1234 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1235
1236         Add stdalign module and use it in other modules.
1237         This is based on a previous proposal by Bruno Haible
1238         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1239
1240         stdalign: new module
1241         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1242         * modules/stdalign: New files.
1243         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1244         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1245
1246         stdalign-tests: new module
1247         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1248
1249         argp: use stdalign
1250         * lib/argp-parse.c: Include <stdalign.h>.
1251         (alignof): Remove.
1252         * modules/argp (Depends-on): Add stdalign.
1253
1254         crypto libraries: use stdalign
1255         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1256         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1257         Do not include <stdlib.h> twice, in md4.c.
1258         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1259         because we are accessing a pointer's bit-pattern, not a size.
1260         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1261         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1262         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1263         * modules/crypto/sha512: Likewise.
1264
1265         sys_socket: use stdalign, not alignof
1266         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1267         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1268
1269 2011-10-27  Bruno Haible  <bruno@clisp.org>
1270
1271         raise test: Avoid a test failure on Linux/MIPS.
1272         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1273         because 99 is a valid signal on Linux/MIPS.
1274
1275 2011-10-27  Bruno Haible  <bruno@clisp.org>
1276
1277         nonblocking tests: Fix test failure on Linux/MIPS.
1278         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1279         Set to 270000.
1280
1281 2011-10-27  Bruno Haible  <bruno@clisp.org>
1282
1283         utimensat: Work around problem on Linux/hppa.
1284         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1285         values.
1286         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1287
1288 2011-10-25  Jim Meyering  <meyering@redhat.com>
1289
1290         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1291         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1292         after symbols like NULL, size_t, etc.
1293         Reported by Alfred M. Szmidt.
1294
1295         maint.mk: exempt ENODATA from a syntax-check rule
1296         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1297         from the sc_prohibit_always-defined_macros syntax-check rule.
1298         Add a comment.  See this for more details:
1299         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1300
1301 2011-10-23  Jim Meyering  <meyering@redhat.com>
1302
1303         fts: close parent dir FD before returning from post-traversal fts_read
1304         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1305         unlink A, even though an FD open on A remained.  This is suboptimal
1306         (holding a file descriptor open longer than needed), but otherwise not
1307         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1308         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1309         that represents a real problem: it causes the removal of A to fail
1310         with e.g., "rm: cannot remove `A': Device or resource busy"
1311
1312         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1313         directory file descriptors.  After completing the final, FTS_DP,
1314         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1315         cache, but then proceeded to add a new FD to it via the subsequent
1316         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1317         final file descriptor would be closed only via fts_close's call to
1318         fd_ring_clear.  Now, it is usually closed earlier, via the final
1319         FTS_DP-returning fts_read call.
1320         * lib/fts.c (restore_initial_cwd): New function, converted from
1321         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1322         Update callers.
1323         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1324         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1325
1326 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1327             Bruno Haible  <bruno@clisp.org>
1328             Jim Meyering  <jim@meyering.net>
1329
1330         readme-release: improve safety of release prep instructions.
1331         * README-release: Don't git pull all branches when only master
1332         is needed for the release process.
1333         Run make maintainer-clean before changing trees and merging.
1334         Don't try to run ./configure right after git pull in case files
1335         that influence the bootstrap process have changed, move the
1336         ./configure step to after running ./bootstrap.
1337         Don't bootstrap "one last time"... it's the first time!
1338
1339 2011-10-22  Bruno Haible  <bruno@clisp.org>
1340
1341         errno, strerror-override: Support for MSVC 10.
1342         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1343         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1344         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1345         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1346         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1347         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1348         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1349         Assign values compatible with MSVC 10.
1350         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1351         New macros.
1352         (GNULIB_defined_EWINSOCK): New macro.
1353         * lib/strerror-override.c (strerror_override): Update accordingly.
1354         * lib/strerror-override.h: Likewise.
1355         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1356         longer equal to the corresponding errno value.
1357         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1358
1359 2011-10-22  Bruno Haible  <bruno@clisp.org>
1360
1361         perror: Recognize when test program crashes.
1362         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1363         strerror, set gl_cv_func_perror_works to no.
1364         Reported by Daniel Richard G. <skunk@iskunk.org>.
1365
1366         perror: Fix indentation.
1367         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1368
1369 2011-10-22  Bruno Haible  <bruno@clisp.org>
1370
1371         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1372         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1373         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1374         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1375         functions, not as a macro.
1376         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1377         macros.
1378         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1379         absence of macro.
1380         Suggested by Eric Blake.
1381         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1382
1383 2011-10-21  Bruno Haible  <bruno@clisp.org>
1384
1385         relocatable-prog-wrapper: Don't leave object files behind.
1386         * build-aux/install-reloc: Re-synchronize list of .o files to be
1387         removed with list of compilation units.
1388
1389 2011-10-20  Bruno Haible  <bruno@clisp.org>
1390
1391         openpty, posix_openpt: Remove code duplication.
1392         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1393         * lib/openpty.c: Include <stdlib.h>.
1394         (openpty): Use posix_openpt on all platforms except IRIX.
1395         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1396
1397 2011-10-20  Bruno Haible  <bruno@clisp.org>
1398
1399         unlockpt: Detect invalid argument.
1400         * lib/unlockpt.c: Include <fcntl.h>.
1401         (unlockpt): Check whether fd is valid, using fcntl().
1402         * modules/unlockpt (Depends-on): Add fcntl-h.
1403
1404 2011-10-20  Bruno Haible  <bruno@clisp.org>
1405
1406         openpty: Avoid compilation error on AIX 6.1.
1407         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1408
1409 2011-10-20  Bruno Haible  <bruno@clisp.org>
1410
1411         posix_openpt: Support for OpenBSD.
1412         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1413         (posix_openpt) [OpenBSD]: New code.
1414         * lib/grantpt.c: Include <fcntl.h>.
1415         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1416         * modules/grantpt (Depends-on): Add fcntl-h.
1417
1418 2011-10-20  Bruno Haible  <bruno@clisp.org>
1419
1420         posix_openpt test: Coding style.
1421         * tests/test-posix_openpt.c: Use GNU coding style.
1422
1423 2011-10-20  Bruno Haible  <bruno@clisp.org>
1424
1425         grantpt: Support --avoid=pt_chown.
1426         * modules/grantpt (Files): Add lib/pty-private.h.
1427
1428 2011-10-20  Bruno Haible  <bruno@clisp.org>
1429
1430         posix_openpt: Fix autoconf macro.
1431         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1432         unneeded check for _getpty.
1433
1434 2011-10-20  Bruno Haible  <bruno@clisp.org>
1435
1436         openpty: Update comments.
1437         * lib/openpty.c: Add comments about Minix.
1438
1439 2011-10-19  Eric Blake  <eblake@redhat.com>
1440
1441         openpty: relax license
1442         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1443
1444         pt_chown: use configmake to simplify build
1445         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1446
1447         ptsname and others: relax license
1448         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1449         * modules/unlockpt (License): Likewise.
1450         * modules/pt_chown (License): Likewise.
1451         * modules/ptsname (License): Likewise.
1452         * modules/ttyname_r (License): Likewise.
1453
1454 2011-10-19  Jim Meyering  <meyering@redhat.com>
1455
1456         posix_openpt: remove spurious #endif
1457         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1458
1459 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1460
1461         maint.mk: Respect $(build_aux) in web-manual rule.
1462         * top/maint.mk (web-manual): Find gen-announce script in user's
1463         $(build_aux) directory instead of hard-coding 'build-aux'.
1464
1465 2011-10-19  Bruno Haible  <bruno@clisp.org>
1466
1467         posix_openpt: Fix compilation error.
1468         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1469         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1470         Mention the openpty module as an alternative.
1471
1472 2011-10-19  Bruno Haible  <bruno@clisp.org>
1473
1474         Support for old NeXTstep 3.3 frexp().
1475         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1476         execution time of the test to 5 seconds.
1477         Reported by Daniel Richard G. <skunk@iskunk.org>.
1478
1479 2011-10-19  Bruno Haible  <bruno@clisp.org>
1480
1481         Support for old NeXTstep 3.3 sed.
1482         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1483         part, use /.../, not \|...|. Escape periods in the header file name.
1484         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1485         Reported by Daniel Richard G. <skunk@iskunk.org>.
1486
1487 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1488
1489         Support for old NeXTstep 3.3 gcc.
1490         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1491         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1492         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1493         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1494         * lib/regex.h (_Restrict_arr_): Likewise.
1495         * lib/regex_internal.h (re_token_t): Likewise.
1496         * lib/regexec.c (check_node_accept_bytes): Likewise.
1497         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1498
1499 2011-10-18  Eric Blake  <eblake@redhat.com>
1500
1501         posix_openpt: new module
1502         * modules/posix_openpt: New module.
1503         * m4/posix_openpt.m4: New file.
1504         * lib/posix_openpt.c: Likewise.
1505         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1506         (gl_STDLIB_H_DEFAULTS): Set defaults.
1507         * modules/stdlib (Makefile.am): Substitute macros.
1508         * lib/stdlib.in.h (posix_openpt): Declare.
1509         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1510         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1511         * modules/posix_openpt-tests: New test module.
1512         * tests/test-posix_openpt.c: New test.
1513
1514 2011-10-15  Bruno Haible  <bruno@clisp.org>
1515
1516         xstrtoll: Fix compilation failure.
1517         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1518         from lib/strtol.c.
1519         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1520         some platforms.
1521         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1522
1523 2011-10-15  Bruno Haible  <bruno@clisp.org>
1524
1525         vasnprintf: Optimize bit search operation.
1526         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1527         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1528         gl_DOUBLE_EXPONENT_LOCATION.
1529         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1530         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1531         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1532         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1533         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1534         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1535         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1536         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1537         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1538
1539 2011-10-15  Bruno Haible  <bruno@clisp.org>
1540
1541         vasnprintf: Fix comments.
1542         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1543
1544 2011-10-14  Bruno Haible  <bruno@clisp.org>
1545
1546         Tests for module 'integer_length_ll'.
1547         * modules/integer_length_ll-tests: New file.
1548         * tests/test-integer_length_ll.c: New file.
1549
1550         New module 'integer_length_ll'.
1551         * lib/integer_length_ll.c: New file.
1552         * modules/integer_length_ll: New file.
1553
1554 2011-10-14  Bruno Haible  <bruno@clisp.org>
1555
1556         Tests for module 'integer_length_l'.
1557         * modules/integer_length_l-tests: New file.
1558         * tests/test-integer_length_l.c: New file.
1559
1560         New module 'integer_length_l'.
1561         * lib/integer_length_l.c: New file.
1562         * modules/integer_length_l: New file.
1563
1564 2011-10-14  Bruno Haible  <bruno@clisp.org>
1565
1566         Tests for module 'integer_length'.
1567         * modules/integer_length-tests: New file.
1568         * tests/test-integer_length.c: New file.
1569
1570         New module 'integer_length'.
1571         * lib/integer_length.h: New file.
1572         * lib/integer_length.c: New file.
1573         * modules/integer_length: New file.
1574
1575 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1576
1577         popen: Fix dependency conditions.
1578         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1579
1580 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1581
1582         perror: Fix autoconf test.
1583         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1584         <stdlib.h> and <string.h>.
1585
1586 2011-10-14  Bruno Haible  <bruno@clisp.org>
1587
1588         ffsl: Optimize on 64-bit platforms.
1589         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1590         unrolling.
1591
1592 2011-10-13  Bruno Haible  <bruno@clisp.org>
1593
1594         ffsl: Optimize on 32-bit platforms.
1595         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1596         use ffs() without a loop.
1597
1598         ffsl, ffsll: Optimize for GCC.
1599         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1600         * lib/ffsl.c (GCC_BUILTIN): New macro.
1601         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1602
1603 2011-10-13  Bruno Haible  <bruno@clisp.org>
1604
1605         ffs, bcopy, memset: Support symbol renaming via config.h.
1606         * lib/ffs.c: Include <config.h>.
1607         * lib/bcopy.c: Likewise.
1608         * lib/memset.c: Likewise.
1609
1610 2011-10-10  Bruno Haible  <bruno@clisp.org>
1611
1612         atanl: Simplify for platforms where 'long double' == 'double'.
1613         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1614         alternative implementation.
1615         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1616         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1617         * modules/atanl (Depends-on): Add atan. Update conditions.
1618
1619 2011-10-10  Bruno Haible  <bruno@clisp.org>
1620
1621         acosl: Simplify for platforms where 'long double' == 'double'.
1622         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1623         alternative implementation.
1624         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1625         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1626         * modules/acosl (Depends-on): Add acos. Update conditions.
1627
1628 2011-10-10  Bruno Haible  <bruno@clisp.org>
1629
1630         asinl: Simplify for platforms where 'long double' == 'double'.
1631         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1632         alternative implementation.
1633         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1634         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1635         * modules/asinl (Depends-on): Add asin. Update conditions.
1636
1637 2011-10-10  Bruno Haible  <bruno@clisp.org>
1638
1639         tanl: Simplify for platforms where 'long double' == 'double'.
1640         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1641         implementation.
1642         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1643         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1644         * modules/tanl (Depends-on): Add tan. Update conditions.
1645         (configure.ac): Don't compile trigl.c if
1646         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1647
1648 2011-10-10  Bruno Haible  <bruno@clisp.org>
1649
1650         cosl: Simplify for platforms where 'long double' == 'double'.
1651         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1652         implementation.
1653         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1654         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1655         * modules/cosl (Depends-on): Add cos. Update conditions.
1656         (configure.ac): Don't compile sincosl.c and trigl.c if
1657         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1658
1659 2011-10-10  Bruno Haible  <bruno@clisp.org>
1660
1661         sinl: Simplify for platforms where 'long double' == 'double'.
1662         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1663         implementation.
1664         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1665         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1666         * modules/sinl (Depends-on): Add sin. Update conditions.
1667         (configure.ac): Don't compile sincosl.c and trigl.c if
1668         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1669
1670 2011-10-10  Bruno Haible  <bruno@clisp.org>
1671
1672         logl: Simplify for platforms where 'long double' == 'double'.
1673         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1674         implementation.
1675         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1676         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1677         * modules/logl (Depends-on): Add log. Update conditions.
1678
1679 2011-10-10  Bruno Haible  <bruno@clisp.org>
1680
1681         expl: Simplify for platforms where 'long double' == 'double'.
1682         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1683         implementation.
1684         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1685         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1686         * modules/expl (Depends-on): Add exp. Update conditions.
1687
1688 2011-10-10  Bruno Haible  <bruno@clisp.org>
1689
1690         sqrtl: Simplify for platforms where 'long double' == 'double'.
1691         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1692         alternative implementation.
1693         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1694         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1695         * modules/sqrtl (Depends-on): Update conditions.
1696
1697 2011-10-10  Bruno Haible  <bruno@clisp.org>
1698
1699         ldexpl: Simplify for platforms where 'long double' == 'double'.
1700         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1701         alternative implementation.
1702         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1703         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1704         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1705
1706 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1707
1708         ffsll: set correct witness
1709         * modules/ffsll (configure.ac): Fix typo.
1710
1711 2011-10-10  Bruno Haible  <bruno@clisp.org>
1712
1713         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1714         * lib/printf-frexpl.c: Include <config.h>.
1715         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1716         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1717         second time.
1718         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1719         gl_LONG_DOUBLE_VS_DOUBLE.
1720         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1721         conditions.
1722
1723 2011-10-10  Bruno Haible  <bruno@clisp.org>
1724
1725         frexpl: Simplify for platforms where 'long double' == 'double'.
1726         * lib/frexpl.c: Include <config.h>.
1727         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1728         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1729         time.
1730         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1731         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1732         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1733         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1734         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1735         conditions.
1736
1737 2011-10-10  Jim Meyering  <meyering@redhat.com>
1738
1739         test-renameat: don't leave behind a temporary file
1740         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1741           ERROR: files left in build directory after distclean:
1742           ./gltests/test-renameat.too
1743           make[1]: *** [distcleancheck] Error 1
1744         Reported by Tom G. Christensen.
1745
1746 2011-10-09  Bruno Haible  <bruno@clisp.org>
1747
1748         rint: Determine RINT_LIBM correctly on AIX 7.
1749         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1750         directly, not only through a function pointer. Also accept an optional
1751         4th argument with extra code.
1752         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1753         rintf() call by gcc when optimizing.
1754
1755         mathfunc.m4: Refactor.
1756         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1757         m4 variable.
1758
1759 2011-10-09  Bruno Haible  <bruno@clisp.org>
1760
1761         rintl: Simplify for platforms where 'long double' == 'double'.
1762         * lib/rintl.c: Include <config.h>.
1763         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1764         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1765         time.
1766         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1767         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1768         * modules/rintl (Depends-on): Add rint. Update conditions.
1769
1770 2011-10-09  Bruno Haible  <bruno@clisp.org>
1771
1772         roundl: Simplify for platforms where 'long double' == 'double'.
1773         * lib/roundl.c: Include <config.h>.
1774         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1775         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1776         time.
1777         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1778         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1779         * modules/roundl (Depends-on): Add round. Update conditions.
1780
1781 2011-10-09  Bruno Haible  <bruno@clisp.org>
1782
1783         truncl: Simplify for platforms where 'long double' == 'double'.
1784         * lib/truncl.c: Include <config.h>.
1785         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1786         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1787         time.
1788         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1789         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1790         * modules/truncl (Depends-on): Add trunc. Update conditions.
1791
1792 2011-10-09  Bruno Haible  <bruno@clisp.org>
1793
1794         ceill: Simplify for platforms where 'long double' == 'double'.
1795         * lib/ceill.c: Include <config.h>.
1796         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1797         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1798         time.
1799         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1800         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1801         * modules/ceill (Depends-on): Add ceil. Update conditions.
1802
1803 2011-10-09  Bruno Haible  <bruno@clisp.org>
1804
1805         floorl: Simplify for platforms where 'long double' == 'double'.
1806         * lib/floorl.c: Include <config.h>.
1807         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1808         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1809         time.
1810         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1811         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1812         * modules/floorl (Depends-on): Add floor. Update conditions.
1813
1814 2011-10-09  Bruno Haible  <bruno@clisp.org>
1815
1816         rint: Fix ordering constraints.
1817         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1818         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1819         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1820
1821 2011-10-09  Bruno Haible  <bruno@clisp.org>
1822
1823         copysignl: Simplify for platforms where 'long double' == 'double'.
1824         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1825         alternative.
1826         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1827         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1828         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1829
1830 2011-10-09  Bruno Haible  <bruno@clisp.org>
1831
1832         Tests for module 'rintl'.
1833         * modules/rintl-tests: New file.
1834         * tests/test-rintl.c: New file.
1835
1836         New module 'rintl'.
1837         * lib/math.in.h (rintl): New declaration.
1838         * lib/rintl.c: New file.
1839         * m4/rintl.m4: New file.
1840         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1842         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1843         * modules/rintl: New file.
1844         * tests/test-math-c++.cc: Check the declaration of rintl.
1845         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1846         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1847         * doc/posix-functions/rintl.texi: Mention the new module.
1848
1849 2011-10-09  Bruno Haible  <bruno@clisp.org>
1850
1851         Tests for module 'rintf'.
1852         * modules/rintf-tests: New file.
1853         * tests/test-rintf.c: New file.
1854
1855         New module 'rintf'.
1856         * lib/math.in.h (rintf): New declaration.
1857         * lib/rintf.c: New file.
1858         * m4/rintf.m4: New file.
1859         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1861         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1862         * modules/rintf: New file.
1863         * tests/test-math-c++.cc: Check the declaration of rintf.
1864         * doc/posix-functions/rintf.texi: Mention the new module.
1865
1866 2011-10-09  Bruno Haible  <bruno@clisp.org>
1867
1868         rint: Support for MSVC.
1869         * lib/math.in.h (rint): New declaration.
1870         * lib/rint.c: New file.
1871         * m4/rint.m4: New file.
1872         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1874         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1875         * modules/rint (Description): Fix.
1876         (Files): Add lib/rint.c, m4/rint.m4.
1877         (Depends-on): Add math.
1878         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1879         gl_MATH_MODULE_INDICATOR.
1880         * tests/test-math-c++.cc: Check the declaration of rint.
1881         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1882         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1883         * doc/posix-functions/rint.texi: Mention the replacement provided by
1884         the module.
1885
1886         rint tests: More tests.
1887         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1888         minus-zero.h, infinity.h, nan.h.
1889         (main): Skip the test if the current rounding mode is not standard. Add
1890         tests for negative numbers, minus zero, infinity, NaN.
1891         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1892         tests/nan.h.
1893         (Depends-on): Add isnand-nolibm.
1894
1895 2011-10-09  Bruno Haible  <bruno@clisp.org>
1896
1897         Tests for module 'copysignl'.
1898         * modules/copysignl-tests: New file.
1899         * tests/test-copysignl.c: New file.
1900
1901         New module 'copysignl'.
1902         * lib/math.in.h (copysignl): New declaration.
1903         * lib/copysignl.c: New file.
1904         * m4/copysignl.m4: New file.
1905         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1907         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1908         HAVE_COPYSIGNL.
1909         * modules/copysignl: New file.
1910         * tests/test-math-c++.cc: Check the declaration of copysignl.
1911         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1912         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1913         * doc/posix-functions/copysignl.texi: Mention the new module.
1914
1915 2011-10-09  Bruno Haible  <bruno@clisp.org>
1916
1917         Tests for module 'copysignf'.
1918         * modules/copysignf-tests: New file.
1919         * tests/test-copysignf.c: New file.
1920
1921         New module 'copysignf'.
1922         * lib/math.in.h (copysignf): New declaration.
1923         * lib/copysignf.c: New file.
1924         * m4/copysignf.m4: New file.
1925         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1927         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1928         HAVE_COPYSIGNF.
1929         * modules/copysignf: New file.
1930         * tests/test-math-c++.cc: Check the declaration of copysignf.
1931         * doc/posix-functions/copysignf.texi: Mention the new module.
1932
1933 2011-10-09  Bruno Haible  <bruno@clisp.org>
1934
1935         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1936         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1937         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1938         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1939         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1940         gl_SIGNAL_H_DEFAULTS.
1941
1942 2011-10-09  Bruno Haible  <bruno@clisp.org>
1943
1944         poll: Make macro safer.
1945         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1946         ac_cv_header_poll_h is not set.
1947
1948 2011-10-09  Bruno Haible  <bruno@clisp.org>
1949
1950         copysign: Provide replacement.
1951         * lib/math.in.h (copysign): New declaration.
1952         * lib/copysign.c: New file.
1953         * m4/copysign.m4: New file.
1954         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1955         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1956         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1957         HAVE_COPYSIGN.
1958         * modules/copysign (Description): Clarify.
1959         (Files): Add lib/copysign.c, m4/copysign.m4.
1960         (Depends-on): Add math, signbit.
1961         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1962         gl_MATH_MODULE_INDICATOR.
1963         * tests/test-math-c++.cc: Check the declaration of copysign.
1964         * doc/posix-functions/copysign.texi: Mention the effects of the module
1965         on Minix and MSVC.
1966
1967 2011-10-09  Bruno Haible  <bruno@clisp.org>
1968
1969         isinf: Ensure macro on AIX 5.1.
1970         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1971         macro.
1972         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1973
1974 2011-10-09  Bruno Haible  <bruno@clisp.org>
1975
1976         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1977         * modules/snprintf-posix-tests (configure.ac): Require
1978         gl_LONG_DOUBLE_VS_DOUBLE.
1979         * modules/sprintf-posix-tests (configure.ac): Likewise.
1980         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1981         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1982         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1983         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1984         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1985         tests on platforms where 'long double' is the same as 'double'.
1986         * tests/test-sprintf-posix.h (test_function): Likewise.
1987         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1988         * tests/test-vasprintf-posix.c (test_function): Likewise.
1989
1990         *printf: Fix for platforms where 'long double' == 'double'.
1991         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1992         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1993         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1994         * modules/fprintf-posix (Files): Likewise.
1995         * modules/obstack-printf-posix (Files): Likewise.
1996         * modules/snprintf-posix (Files): Likewise.
1997         * modules/sprintf-posix (Files): Likewise.
1998         * modules/vasnprintf (Files): Likewise.
1999         * modules/vasnprintf-posix (Files): Likewise.
2000         * modules/vasprintf-posix (Files): Likewise.
2001         * modules/vdprintf-posix (Files): Likewise.
2002         * modules/vfprintf-posix (Files): Likewise.
2003         * modules/vsnprintf-posix (Files): Likewise.
2004         * modules/vsprintf-posix (Files): Likewise.
2005         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2006         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2007         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2008         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2009         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2010         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2011         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2012
2013         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2014         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2015         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2016         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2017         'long double'.
2018         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2019
2020         isinf: Fix for platforms where 'long double' == 'double'.
2021         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2022         Don't blindly assume 80-bit 'long double'.
2023
2024         isfinite: Fix for platforms where 'long double' == 'double'.
2025         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2026         Don't blindly assume 80-bit 'long double'.
2027
2028         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2029         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2030         * modules/isfinite-tests (configure.ac): Require
2031         gl_LONG_DOUBLE_VS_DOUBLE.
2032         * modules/isinf-tests (configure.ac): Likewise.
2033         * modules/isnan-tests (configure.ac): Likewise.
2034         * modules/isnanl-tests (configure.ac): Likewise.
2035         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2036         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2037         tests on platforms where 'long double' is the same as 'double'.
2038         * tests/test-isinf.c (test_isinfl): Likewise.
2039         * tests/test-isnan.c (test_long_double): Likewise.
2040         * tests/test-isnanl.h (main): Likewise.
2041
2042 2011-10-08  Bruno Haible  <bruno@clisp.org>
2043
2044         Tests for module 'tanhf'.
2045         * modules/tanhf-tests: New file.
2046         * tests/test-tanhf.c: New file.
2047
2048         New module 'tanhf'.
2049         * lib/math.in.h (tanhf): New declaration.
2050         * lib/tanhf.c: New file.
2051         * m4/tanhf.m4: New file.
2052         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2054         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2055         * modules/tanhf: New file.
2056         * tests/test-math-c++.cc: Check the declaration of tanhf.
2057         * doc/posix-functions/tanhf.texi: Mention the new module.
2058
2059         tanh: Use a .m4 file.
2060         * m4/tanh.m4: New file.
2061         * modules/tanh (Files): Add it.
2062         (configure.ac): Just invoke gl_FUNC_TANH.
2063
2064 2011-10-08  Bruno Haible  <bruno@clisp.org>
2065
2066         Tests for module 'coshf'.
2067         * modules/coshf-tests: New file.
2068         * tests/test-coshf.c: New file.
2069
2070         New module 'coshf'.
2071         * lib/math.in.h (coshf): New declaration.
2072         * lib/coshf.c: New file.
2073         * m4/coshf.m4: New file.
2074         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2076         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2077         * modules/coshf: New file.
2078         * tests/test-math-c++.cc: Check the declaration of coshf.
2079         * doc/posix-functions/coshf.texi: Mention the new module.
2080
2081         cosh: Use a .m4 file.
2082         * m4/cosh.m4: New file.
2083         * modules/cosh (Files): Add it.
2084         (configure.ac): Just invoke gl_FUNC_COSH.
2085
2086 2011-10-08  Bruno Haible  <bruno@clisp.org>
2087
2088         Tests for module 'sinhf'.
2089         * modules/sinhf-tests: New file.
2090         * tests/test-sinhf.c: New file.
2091
2092         New module 'sinhf'.
2093         * lib/math.in.h (sinhf): New declaration.
2094         * lib/sinhf.c: New file.
2095         * m4/sinhf.m4: New file.
2096         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2097         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2098         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2099         * modules/sinhf: New file.
2100         * tests/test-math-c++.cc: Check the declaration of sinhf.
2101         * doc/posix-functions/sinhf.texi: Mention the new module.
2102
2103         sinh: Use a .m4 file.
2104         * m4/sinh.m4: New file.
2105         * modules/sinh (Files): Add it.
2106         (configure.ac): Just invoke gl_FUNC_SINH.
2107
2108 2011-10-08  Bruno Haible  <bruno@clisp.org>
2109
2110         Tests for module 'atan2f'.
2111         * modules/atan2f-tests: New file.
2112         * tests/test-atan2f.c: New file.
2113
2114         New module 'atan2f'.
2115         * lib/math.in.h (atan2f): New declaration.
2116         * lib/atan2f.c: New file.
2117         * m4/atan2f.m4: New file.
2118         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2120         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2121         * modules/atan2f: New file.
2122         * tests/test-math-c++.cc: Check the declaration of atan2f.
2123         * doc/posix-functions/atan2f.texi: Mention the new module.
2124
2125         atan2: Use a .m4 file.
2126         * m4/atan2.m4: New file.
2127         * modules/atan2 (Files): Add it.
2128         (configure.ac): Just invoke gl_FUNC_ATAN2.
2129
2130 2011-10-08  Bruno Haible  <bruno@clisp.org>
2131
2132         Tests for module 'atanf'.
2133         * modules/atanf-tests: New file.
2134         * tests/test-atanf.c: New file.
2135
2136         New module 'atanf'.
2137         * lib/math.in.h (atanf): New declaration.
2138         * lib/atanf.c: New file.
2139         * m4/atanf.m4: New file.
2140         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2141         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2142         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2143         * modules/atanf: New file.
2144         * tests/test-math-c++.cc: Check the declaration of atanf.
2145         * doc/posix-functions/atanf.texi: Mention the new module.
2146
2147         atan: Use a .m4 file.
2148         * m4/atan.m4: New file.
2149         * modules/atan (Files): Add it.
2150         (configure.ac): Just invoke gl_FUNC_ATAN.
2151
2152 2011-10-08  Bruno Haible  <bruno@clisp.org>
2153
2154         Tests for module 'acosf'.
2155         * modules/acosf-tests: New file.
2156         * tests/test-acosf.c: New file.
2157
2158         New module 'acosf'.
2159         * lib/math.in.h (acosf): New declaration.
2160         * lib/acosf.c: New file.
2161         * m4/acosf.m4: New file.
2162         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2164         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2165         * modules/acosf: New file.
2166         * tests/test-math-c++.cc: Check the declaration of acosf.
2167         * doc/posix-functions/acosf.texi: Mention the new module.
2168
2169         acos: Use a .m4 file.
2170         * m4/acos.m4: New file.
2171         * modules/acos (Files): Add it.
2172         (configure.ac): Just invoke gl_FUNC_ACOS.
2173
2174 2011-10-08  Bruno Haible  <bruno@clisp.org>
2175
2176         Tests for module 'asinf'.
2177         * modules/asinf-tests: New file.
2178         * tests/test-asinf.c: New file.
2179
2180         New module 'asinf'.
2181         * lib/math.in.h (asinf): New declaration.
2182         * lib/asinf.c: New file.
2183         * m4/asinf.m4: New file.
2184         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2186         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2187         * modules/asinf: New file.
2188         * tests/test-math-c++.cc: Check the declaration of asinf.
2189         * doc/posix-functions/asinf.texi: Mention the new module.
2190
2191         asin: Use a .m4 file.
2192         * m4/asin.m4: New file.
2193         * modules/asin (Files): Add it.
2194         (configure.ac): Just invoke gl_FUNC_ASIN.
2195
2196 2011-10-08  Bruno Haible  <bruno@clisp.org>
2197
2198         Tests for module 'tanf'.
2199         * modules/tanf-tests: New file.
2200         * tests/test-tanf.c: New file.
2201
2202         New module 'tanf'.
2203         * lib/math.in.h (tanf): New declaration.
2204         * lib/tanf.c: New file.
2205         * m4/tanf.m4: New file.
2206         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2208         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2209         * modules/tanf: New file.
2210         * tests/test-math-c++.cc: Check the declaration of tanf.
2211         * doc/posix-functions/tanf.texi: Mention the new module.
2212
2213         tan: Use a .m4 file.
2214         * m4/tan.m4: New file.
2215         * modules/tan (Files): Add it.
2216         (configure.ac): Just invoke gl_FUNC_TAN.
2217
2218 2011-10-08  Bruno Haible  <bruno@clisp.org>
2219
2220         Tests for module 'cosf'.
2221         * modules/cosf-tests: New file.
2222         * tests/test-cosf.c: New file.
2223
2224         New module 'cosf'.
2225         * lib/math.in.h (cosf): New declaration.
2226         * lib/cosf.c: New file.
2227         * m4/cosf.m4: New file.
2228         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2229         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2230         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2231         * modules/cosf: New file.
2232         * tests/test-math-c++.cc: Check the declaration of cosf.
2233         * doc/posix-functions/cosf.texi: Mention the new module.
2234
2235         cos: Use a .m4 file.
2236         * m4/cos.m4: New file.
2237         * modules/cos (Files): Add it.
2238         (configure.ac): Just invoke gl_FUNC_COS.
2239
2240 2011-10-08  Bruno Haible  <bruno@clisp.org>
2241
2242         Tests for module 'sinf'.
2243         * modules/sinf-tests: New file.
2244         * tests/test-sinf.c: New file.
2245
2246         New module 'sinf'.
2247         * lib/math.in.h (sinf): New declaration.
2248         * lib/sinf.c: New file.
2249         * m4/sinf.m4: New file.
2250         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2252         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2253         * modules/sinf: New file.
2254         * tests/test-math-c++.cc: Check the declaration of sinf.
2255         * doc/posix-functions/sinf.texi: Mention the new module.
2256
2257         sin: Use a .m4 file.
2258         * m4/sin.m4: New file.
2259         * modules/sin (Files): Add it.
2260         (configure.ac): Just invoke gl_FUNC_SIN.
2261
2262 2011-10-08  Bruno Haible  <bruno@clisp.org>
2263
2264         Tests for module 'powf'.
2265         * modules/powf-tests: New file.
2266         * tests/test-powf.c: New file.
2267
2268         New module 'powf'.
2269         * lib/math.in.h (powf): New declaration.
2270         * lib/powf.c: New file.
2271         * m4/powf.m4: New file.
2272         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2274         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2275         * modules/powf: New file.
2276         * tests/test-math-c++.cc: Check the declaration of powf.
2277         * doc/posix-functions/powf.texi: Mention the new module.
2278
2279         pow: Use a .m4 file.
2280         * m4/pow.m4: New file.
2281         * modules/pow (Files): Add it.
2282         (configure.ac): Just invoke gl_FUNC_POW.
2283
2284 2011-10-08  Bruno Haible  <bruno@clisp.org>
2285
2286         Tests for module 'log10f'.
2287         * modules/log10f-tests: New file.
2288         * tests/test-log10f.c: New file.
2289
2290         New module 'log10f'.
2291         * lib/math.in.h (log10f): New declaration.
2292         * lib/log10f.c: New file.
2293         * m4/log10f.m4: New file.
2294         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2296         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2297         * modules/log10f: New file.
2298         * tests/test-math-c++.cc: Check the declaration of log10f.
2299         * doc/posix-functions/log10f.texi: Mention the new module.
2300
2301         log10: Use a .m4 file.
2302         * m4/log10.m4: New file.
2303         * modules/log10 (Files): Add it.
2304         (configure.ac): Just invoke gl_FUNC_LOG10.
2305
2306 2011-10-08  Bruno Haible  <bruno@clisp.org>
2307
2308         Tests for module 'logf'.
2309         * modules/logf-tests: New file.
2310         * tests/test-logf.c: New file.
2311
2312         New module 'logf'.
2313         * lib/math.in.h (logf): New declaration.
2314         * lib/logf.c: New file.
2315         * m4/logf.m4: New file.
2316         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2318         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2319         * modules/logf: New file.
2320         * tests/test-math-c++.cc: Check the declaration of logf.
2321         * doc/posix-functions/logf.texi: Mention the new module.
2322
2323         log: Use a .m4 file.
2324         * m4/log.m4: New file.
2325         * modules/log (Files): Add it.
2326         (configure.ac): Just invoke gl_FUNC_LOG.
2327
2328 2011-10-08  Bruno Haible  <bruno@clisp.org>
2329
2330         Tests for module 'expf'.
2331         * modules/expf-tests: New file.
2332         * tests/test-expf.c: New file.
2333
2334         New module 'expf'.
2335         * lib/math.in.h (expf): New declaration.
2336         * lib/expf.c: New file.
2337         * m4/expf.m4: New file.
2338         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2340         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2341         * modules/expf: New file.
2342         * tests/test-math-c++.cc: Check the declaration of expf.
2343         * doc/posix-functions/expf.texi: Mention the new module.
2344
2345         exp: Use a .m4 file.
2346         * m4/exp.m4: New file.
2347         * modules/exp (Files): Add it.
2348         (configure.ac): Just invoke gl_FUNC_EXP.
2349
2350 2011-10-08  Bruno Haible  <bruno@clisp.org>
2351
2352         Tests for module 'sqrtf'.
2353         * modules/sqrtf-tests: New file.
2354         * tests/test-sqrtf.c: New file.
2355
2356         New module 'sqrtf'.
2357         * lib/math.in.h (sqrtf): New declaration.
2358         * lib/sqrtf.c: New file.
2359         * m4/sqrtf.m4: New file.
2360         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2361         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2362         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2363         * modules/sqrtf: New file.
2364         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2365         * doc/posix-functions/sqrtf.texi: Mention the new module.
2366
2367 2011-10-08  Bruno Haible  <bruno@clisp.org>
2368
2369         Tests: Avoid link failures w.r.t. libintl.
2370         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2371         $(LIBINTL).
2372         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2373         $(LIBINTL).
2374         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2375         against $(LIBINTL).
2376         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2377         $(LIBINTL).
2378         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2379         $(LIBINTL).
2380         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2381
2382 2011-10-08  Bruno Haible  <bruno@clisp.org>
2383
2384         pow tests: Defeat compiler optimizations.
2385         * tests/test-pow.c (main): Assign arguments to x and y before use.
2386
2387 2011-10-08  Bruno Haible  <bruno@clisp.org>
2388
2389         gnulib-tool: Improve last commit.
2390         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2391         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2392         ignore dependencies that are not among the modules list.
2393
2394 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2395
2396         gnulib-tool: don't follow dependencies to avoided modules
2397         This fixes a bug that is related to the previous one.
2398         * gnulib-tool (func_modules_transitive_closure)
2399         (func_emit_autoconf_snippets):
2400         Check whether a dependency is acceptable before using it.
2401         (--extract-dependencies): Report an error if --avoid is also used,
2402         since this combination of options is not yet supported.
2403
2404         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2405         Problem reported by Peter Dyballa in
2406         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2407         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2408         when echoing "$condition".
2409
2410 2011-10-07  Bruno Haible  <bruno@clisp.org>
2411
2412         Fix documentation about math functions on MacOS X.
2413         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2414         MacOS X 10.5.
2415         * doc/posix-functions/fdim.texi: Likewise.
2416         * doc/posix-functions/feclearexcept.texi: Likewise.
2417         * doc/posix-functions/fegetenv.texi: Likewise.
2418         * doc/posix-functions/fegetround.texi: Likewise.
2419         * doc/posix-functions/feholdexcept.texi: Likewise.
2420         * doc/posix-functions/feraiseexcept.texi: Likewise.
2421         * doc/posix-functions/fesetenv.texi: Likewise.
2422         * doc/posix-functions/fesetround.texi: Likewise.
2423         * doc/posix-functions/fetestexcept.texi: Likewise.
2424         * doc/posix-functions/feupdateenv.texi: Likewise.
2425         * doc/posix-functions/fmax.texi: Likewise.
2426         * doc/posix-functions/fmin.texi: Likewise.
2427         * doc/posix-functions/log2.texi: Likewise.
2428         * doc/posix-functions/modff.texi: Likewise.
2429         * doc/posix-functions/nan.texi: Likewise.
2430         * doc/posix-functions/nanf.texi: Likewise.
2431         * doc/posix-functions/nextafterf.texi: Likewise.
2432         * doc/posix-functions/remquo.texi: Likewise.
2433
2434 2011-10-07  Bruno Haible  <bruno@clisp.org>
2435
2436         modff: Drop assumption about library that defines modff.
2437         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2438         AC_CHECK_FUNCS.
2439         * modules/modff (Files): Add m4/mathfunc.m4.
2440
2441 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2442
2443         raise tests: Avoid a GCC warning.
2444         * tests/test-raise.c (handler): Use _Noreturn.
2445
2446 2011-10-07  Bruno Haible  <bruno@clisp.org>
2447
2448         Tests for module 'ldexpf'.
2449         * modules/ldexpf-tests: New file.
2450         * tests/test-ldexpf.c: New file.
2451
2452         New module 'ldexpf'.
2453         * lib/math.in.h (ldexpf): New declaration.
2454         * lib/ldexpf.c: New file.
2455         * m4/ldexpf.m4: New file.
2456         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2458         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2459         * modules/ldexpf: New file.
2460         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2461         * doc/posix-functions/ldexpf.texi: Mention the new module.
2462
2463 2011-10-06  Bruno Haible  <bruno@clisp.org>
2464
2465         frexpf: Work around problems on IRIX and mingw.
2466         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2468         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2469         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2470         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2471         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2472         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2473
2474 2011-10-06  Bruno Haible  <bruno@clisp.org>
2475
2476         fabsf: Drop assumption about library that defines fabsf.
2477         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2478         AC_CHECK_FUNCS.
2479         * modules/fabsf (Files): Add m4/mathfunc.m4.
2480
2481 2011-10-06  Bruno Haible  <bruno@clisp.org>
2482
2483         frexpf: Drop assumption about library that defines frexpf.
2484         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2485         'int *', 'float *', 'long double *', 'float', 'long double'.
2486         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2487         AC_CHECK_FUNCS.
2488         * modules/frexpf (Files): Add m4/mathfunc.m4.
2489
2490         Tests for module 'frexpf'.
2491         * modules/frexpf-tests: New file.
2492         * tests/test-frexpf.c: New file.
2493
2494         New module 'frexpf'.
2495         * lib/math.in.h (frexpf): New declaration.
2496         * lib/frexpf.c: New file.
2497         * m4/frexpf.m4: New file.
2498         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2500         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2501         * modules/frexpf: New file.
2502         * tests/test-math-c++.cc: Check the declaration of frexpf.
2503         * doc/posix-functions/frexpf.texi: Mention the new module.
2504
2505 2011-10-06  Bruno Haible  <bruno@clisp.org>
2506
2507         math: Sort function declarations of math.in.h.
2508         * lib/math.in.h (frexp, logb): Move declarations.
2509
2510 2011-10-05  Bruno Haible  <bruno@clisp.org>
2511
2512         Tests for module 'modff'.
2513         * modules/modff-tests: New file.
2514         * tests/test-modff.c: New file.
2515
2516         New module 'modff'.
2517         * lib/math.in.h (modff): New declaration.
2518         * lib/modff.c: New file.
2519         * m4/modff.m4: New file.
2520         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2522         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2523         * modules/modff: New file.
2524         * tests/test-math-c++.cc: Check the declaration of modff.
2525         * doc/posix-functions/modff.texi: Mention the new module.
2526
2527         modf tests: Make test sharper.
2528         * tests/test-modf.c (main): Strengthen upper bound.
2529
2530         modf: Use a .m4 file.
2531         * m4/modf.m4: New file.
2532         * modules/modf (Files): Add it.
2533         (configure.ac): Just invoke gl_FUNC_MODF.
2534
2535 2011-10-05  Bruno Haible  <bruno@clisp.org>
2536
2537         Tests for module 'fmodf'.
2538         * modules/fmodf-tests: New file.
2539         * tests/test-fmodf.c: New file.
2540
2541         New module 'fmodf'.
2542         * lib/math.in.h (fmodf): New declaration.
2543         * lib/fmodf.c: New file.
2544         * m4/fmodf.m4: New file.
2545         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2547         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2548         * modules/fmodf: New file.
2549         * tests/test-math-c++.cc: Check the declaration of fmodf.
2550         * doc/posix-functions/fmodf.texi: Mention the new module.
2551
2552         fmod: Use a .m4 file.
2553         * m4/fmod.m4: New file.
2554         * modules/fmod (Files): Add it.
2555         (configure.ac): Just invoke gl_FUNC_FMOD.
2556
2557 2011-10-05  Bruno Haible  <bruno@clisp.org>
2558
2559         Tests for module 'fabsf'.
2560         * modules/fabsf-tests: New file.
2561         * tests/test-fabsf.c: New file.
2562
2563         New module 'fabsf'.
2564         * lib/math.in.h (fabsf): New declaration.
2565         * lib/fabsf.c: New file.
2566         * m4/fabsf.m4: New file.
2567         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2569         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2570         * modules/fabsf: New file.
2571         * tests/test-math-c++.cc: Check the declaration of fabsf.
2572         * doc/posix-functions/fabsf.texi: Mention the new module.
2573
2574         fabs: Use a .m4 file.
2575         * m4/fabs.m4: New file.
2576         * modules/fabs (Files): Add it.
2577         (configure.ac): Just invoke gl_FUNC_FABS.
2578
2579 2011-10-05  Jim Meyering  <meyering@redhat.com>
2580
2581         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2582         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2583         ls -lL regression introduced in coreutils-8.12, it does so at the
2584         cost of an additional stat call in the common case.  Besides, now
2585         that the kernel change that prompted commit 95f7c57f has been reverted
2586         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2587         we have no use for commit 95f7c57f, "file-has-acl: use
2588         acl_extended_file_nofollow if available".
2589
2590 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2591
2592         file-has-acl: revert unintended change in behavior of ls -L
2593         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2594         derived from...
2595         (file_has_acl): ...code here.  Call it.
2596         This problem was introduced with 2011-07-22 commit 95f7c57f,
2597         "file-has-acl: use acl_extended_file_nofollow if available".
2598         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2599
2600 2011-10-03  Bruno Haible  <bruno@clisp.org>
2601
2602         poll: Avoid link errors on MSVC.
2603         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2604         * modules/poll (Depends-on): Add sockets.
2605         (Link): New section.
2606         * NEWS: Mention the change.
2607         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2608         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2609         $(LIB_POLL) instead of $(LIBSOCKET).
2610
2611 2011-10-03  Bruno Haible  <bruno@clisp.org>
2612
2613         sys_select tests: Fix link error on MSVC 9.
2614         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2615         with $(LIB_SELECT) instead of $(LIBSOCKET).
2616
2617 2011-10-03  Bruno Haible  <bruno@clisp.org>
2618
2619         sys_select: Fix compilation error on mingw.
2620         * lib/sys_select.in.h: On native Windows, include <io.h>.
2621
2622 2011-10-03  Bruno Haible  <bruno@clisp.org>
2623
2624         wmemset: Support for MSVC.
2625         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2626         whether wmemset() exists.
2627
2628 2011-10-03  Bruno Haible  <bruno@clisp.org>
2629
2630         wmemmove: Support for MSVC.
2631         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2632         whether wmemmove() exists.
2633
2634 2011-10-03  Bruno Haible  <bruno@clisp.org>
2635
2636         wmemcpy: Support for MSVC.
2637         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2638         whether wmemcpy() exists.
2639
2640 2011-10-03  Bruno Haible  <bruno@clisp.org>
2641
2642         wmemcmp: Support for MSVC.
2643         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2644         whether wmemcmp() exists.
2645
2646 2011-10-03  Bruno Haible  <bruno@clisp.org>
2647
2648         wmemchr: Support for MSVC.
2649         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2650         whether wmemchr() exists.
2651
2652 2011-10-03  Bruno Haible  <bruno@clisp.org>
2653
2654         glthread/*, strsignal: Support for MSVC.
2655         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2656         including <winsock.h> on MSVC 9.
2657         * lib/glthread/lock.h: Likewise.
2658         * lib/glthread/thread.h: Likewise.
2659         * lib/glthread/tls.h: Likewise.
2660         * lib/glthread/yield.h: Likewise.
2661         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2662         if HAVE_UNISTD_H is false.
2663         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2664
2665 2011-10-03  Bruno Haible  <bruno@clisp.org>
2666
2667         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2668         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2669         Set to 100000.
2670
2671 2011-10-03  Bruno Haible  <bruno@clisp.org>
2672
2673         acl: Fix specification.
2674         * lib/file-has-acl.c (file_has_acl): Fix specification.
2675
2676 2011-10-03  Bruno Haible  <bruno@clisp.org>
2677
2678         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2679         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2680         (compute_curr_prefix, shared_library_fullname,
2681         find_shared_library_fullname, get_shared_library_fullname, relocate):
2682         Use it together with PIC && INSTALLDIR.
2683         Reported by <jojelino@gmail.com>
2684         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2685
2686 2011-10-01  Jim Meyering  <meyering@redhat.com>
2687
2688         maint.mk: adjust a release-related rule not to require use of gzip
2689         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2690         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2691         projects that build only .tar.xz files.  Also fix an erroneous test.
2692
2693         test-linkat: don't leave behind a temporary file
2694         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2695         Otherwise, coreutils' "make distcheck" would fail with this:
2696           Only in /c/cu/tests/torture/coreutils/test/\
2697             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2698           make[2]: *** [my-distcheck] Error 1
2699
2700         float, math: add omitted file
2701         * lib/itold.c: Add file, required for yesterday's float change.
2702
2703 2011-10-01  Bruno Haible  <bruno@clisp.org>
2704
2705         isinf: Fix for OpenBSD/x86.
2706         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2707         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2708         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2709
2710 2011-10-01  Bruno Haible  <bruno@clisp.org>
2711
2712         isfinite: Fix syntax error in configure test.
2713         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2714
2715         isfinite: Fix typo.
2716         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2717         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2718
2719 2011-10-01  Bruno Haible  <bruno@clisp.org>
2720
2721         nonblocking tests: Fix test failure on Linux/IA-64.
2722         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2723         Set to 270000.
2724
2725 2011-10-01  Bruno Haible  <bruno@clisp.org>
2726
2727         mkfifoat tests: Fix a test failure on mingw.
2728         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2729         with error ENOSYS.
2730
2731 2011-09-30  Bruno Haible  <bruno@clisp.org>
2732
2733         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2734         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2735         'long double'. Set REPLACE_ITOLD.
2736         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2737         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2738         * lib/itold.c: New file.
2739         * modules/float (Files): Add lib/itold.c.
2740         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2741         (Makefile.am): Substitute REPLACE_ITOLD.
2742         * modules/math (Depends-on): Add float.
2743         (Makefile.am): Substitute REPLACE_ITOLD.
2744         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2745         * doc/posix-headers/math.texi: Likewise.
2746         * doc/posix-functions/logl.texi: Likewise.
2747
2748 2011-09-30  Bruno Haible  <bruno@clisp.org>
2749
2750         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2751         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2752         Set to 140000.
2753
2754 2011-09-30  Bruno Haible  <bruno@clisp.org>
2755
2756         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2757         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2758         invocation, say "right after AC_PROG_CC_STDC", not "right after
2759         AC_PROG_CC".
2760         Reported by Gary V. Vaughan <gary@gnu.org>.
2761
2762 2011-09-30  Bruno Haible  <bruno@clisp.org>
2763
2764         Centralize C99 requirement.
2765         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2766         * modules/stdarg (configure.ac-early): Invoke it instead of
2767         AC_PROG_CC_STDC.
2768         Reported by Gary V. Vaughan and Paul Eggert.
2769
2770 2011-09-29  Bruno Haible  <bruno@clisp.org>
2771
2772         float: Fix LDBL_MAX value on Linux/PowerPC.
2773         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2774         on Linux/PowerPC.
2775         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2776         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2777         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2778         platform.
2779         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2780
2781 2011-09-29  Bruno Haible  <bruno@clisp.org>
2782
2783         doc: Improve doc about gl_EARLY.
2784         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2785         AC_PROG_CC_STDC invocation.
2786         Reported by Gary V. Vaughan <gary@gnu.org>.
2787
2788 2011-09-28  Bruno Haible  <bruno@clisp.org>
2789
2790         fgetc, fputc, fread, fwrite tests: Fix link error.
2791         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2792         on non-MSVC platforms.
2793         * tests/test-fputc.c (main): Likewise.
2794         * tests/test-fread.c (main): Likewise.
2795         * tests/test-fwrite.c (main): Likewise.
2796         Reported by Jim Meyering.
2797
2798 2011-09-27  Bruno Haible  <bruno@clisp.org>
2799
2800         fputc, fwrite tests: Avoid test failure on MSVC.
2801         * tests/test-fgetc.c: Include msvc-inval.h.
2802         (main): Invoke gl_msvc_inval_ensure_handler.
2803         * tests/test-fputc.c: Include msvc-inval.h.
2804         (main): Invoke gl_msvc_inval_ensure_handler.
2805         * tests/test-fread.c: Include msvc-inval.h.
2806         (main): Invoke gl_msvc_inval_ensure_handler.
2807         * tests/test-fwrite.c: Include msvc-inval.h.
2808         (main): Invoke gl_msvc_inval_ensure_handler.
2809         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2810         * modules/fputc-tests (Depends-on): Likewise.
2811         * modules/fread-tests (Depends-on): Likewise.
2812         * modules/fwrite-tests (Depends-on): Likewise.
2813
2814 2011-09-27  Bruno Haible  <bruno@clisp.org>
2815
2816         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2817         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2818         (raise): Remove older, duplicated declaration.
2819         (_gl_raise_SIGPIPE): New declaration.
2820         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2821         (rpl_raise): Remove function.
2822         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2823         a gnulib-defined SIGPIPE here.
2824         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2825         'sigprocmask' has detected missing signal-blocking and the module
2826         'sigpipe' is enabled.
2827         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2828
2829 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2830
2831         base64-tests: avoid memory leak
2832         * tests/test-base64.c (main): Plug memory leak.
2833
2834         base32: new module
2835         * modules/base32: New module.
2836         * lib/base32.c: New file.
2837         * lib/base32.h: Likewise.
2838         * m4/base32.m4: Likewise.
2839         * modules/base32-tests: New test.
2840         * tests/test-base32.c: Likewise.
2841         * MODULES.html.sh (Misc): Mention it.
2842
2843 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2844
2845         gnulib: use more-standard license notice wording
2846         * gnulib-tool (func_emit_copyright_notice): When emitting a
2847         license notice into a file, use the standard wording as suggested
2848         by the current information for GNU maintainers, except say "file"
2849         rather than "program".  The new wording gives a license version
2850         number, which addresses an issue raised by Glenn Morris in
2851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2852         * m4/onceonly.m4: Use that same wording here, too.
2853
2854         dup2: minor simplification
2855         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2856         as lib/dup2.c no longer uses 'inline'.
2857
2858 2011-09-25  Bruno Haible  <bruno@clisp.org>
2859
2860         strings: Fix compilation error on MSVC.
2861         * lib/strings.in.h: Include <stddef.h> for size_t.
2862
2863 2011-09-25  Bruno Haible  <bruno@clisp.org>
2864
2865         fflush et al.: Document limitation on MSVC.
2866         * doc/posix-functions/fflush.texi: Document possible crash in handling
2867         mode other than DEFAULT_HANDLING.
2868         * doc/posix-functions/fgetc.texi: Likewise.
2869         * doc/posix-functions/fputc.texi: Likewise.
2870         * doc/posix-functions/fread.texi: Likewise.
2871         * doc/posix-functions/fwrite.texi: Likewise.
2872
2873 2011-09-25  Bruno Haible  <bruno@clisp.org>
2874
2875         msvc-inval: Allow three invalid parameter handling modes.
2876         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2877         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2878         macros.
2879         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2880         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2881         SANE_LIBRARY_HANDLING as a no-op.
2882         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2883         <stdlib.h>.
2884         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2885
2886 2011-09-25  Bruno Haible  <bruno@clisp.org>
2887
2888         msvc-inval: Make handler multithread-safe.
2889         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2890         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2891         declarations.
2892         (gl_msvc_inval_current): New declaration.
2893         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2894         Operate on the structure returned by gl_msvc_inval_current().
2895         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2896         Remove varaiables.
2897         (tls_index, tls_initialized): New variables.
2898         (not_per_thread): New variable.
2899         (gl_msvc_inval_current): New function.
2900         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2901         returned by gl_msvc_inval_current().
2902
2903 2011-09-25  Bruno Haible  <bruno@clisp.org>
2904
2905         msvc-inval: Install handler globally.
2906         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2907         !_MSC_VER.
2908         (gl_msvc_invalid_parameter_handler): Remove declaration.
2909         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2910         declarations.
2911         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2912         Install the handler globally, don't uninstall it.
2913         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2914         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2915         currently valid, call RaiseException instead.
2916         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2917         for !_MSC_VER.
2918
2919 2011-09-25  Bruno Haible  <bruno@clisp.org>
2920
2921         strerror_r-posix: Fix for MSVC 9.
2922         * lib/strerror_r.c (local_snprintf): New function.
2923         (snprintf): Define to local_snprintf, not to _snprintf.
2924
2925 2011-09-25  Bruno Haible  <bruno@clisp.org>
2926
2927         ftruncate: Support for MSVC 9.
2928         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2929         (chsize_nothrow): New function.
2930         (chsize): Redefine as a macro.
2931         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2932         * modules/ftruncate (Depends-on): Add msvc-inval.
2933
2934 2011-09-25  Bruno Haible  <bruno@clisp.org>
2935
2936         New module 'fstat'.
2937         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2938         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2939         * lib/fchdir.c (rpl_fstat): Remove function.
2940         * m4/fstat.m4: New file.
2941         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2942         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2943         declared.
2944         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2945         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2946         * modules/fstat: New file.
2947         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2948         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2949         is set.
2950         * doc/posix-functions/fstat.texi: Mention the new module and the
2951         problem on MSVC.
2952         * NEWS: Mention the change.
2953         * modules/acl (Depends-on): Add fstat.
2954         * modules/chdir-safer (Depends-on): Likewise.
2955         * modules/chown (Depends-on): Likewise.
2956         * modules/copy-file (Depends-on): Likewise.
2957         * modules/fchdir (Depends-on): Likewise.
2958         * modules/fdopendir (Depends-on): Likewise.
2959         * modules/fopen (Depends-on): Likewise.
2960         * modules/fts (Depends-on): Likewise.
2961         * modules/getcwd (Depends-on): Likewise.
2962         * modules/isapipe (Depends-on): Likewise.
2963         * modules/linkat (Depends-on): Likewise.
2964         * modules/lseek (Depends-on): Likewise.
2965         * modules/mkdir-p (Depends-on): Likewise.
2966         * modules/open (Depends-on): Likewise.
2967         * modules/openat (Depends-on): Likewise.
2968         * modules/read-file (Depends-on): Likewise.
2969         * modules/renameat (Depends-on): Likewise.
2970         * modules/utimens (Depends-on): Likewise.
2971
2972 2011-09-25  Bruno Haible  <bruno@clisp.org>
2973
2974         linkat: Fix compilation on MSVC 9.
2975         * lib/linkat.c: Don't include <stdint.h>.
2976
2977 2011-09-25  Bruno Haible  <bruno@clisp.org>
2978
2979         fclose: Support for MSVC 9.
2980         * lib/fclose.c: Include msvc-inval.h.
2981         (fclose_nothrow): New function.
2982         (rpl_fclose): Use it.
2983         * modules/fclose (Depends-on): Add msvc-inval.
2984         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2985
2986 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2987
2988         dup2: minor simplifications
2989         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2990         that it's a performance win.
2991         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2992         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2993
2994 2011-09-24  Jim Meyering  <meyering@redhat.com>
2995
2996         test-futimens: avoid a warning from gcc -Wshadow
2997         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2998         to avoid a shadowing warning.
2999
3000 2011-09-24  Bruno Haible  <bruno@clisp.org>
3001
3002         fdopen: Support for MSVC 9.
3003         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3004         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3005         * lib/fdopen.c: Include msvc-inval.h.
3006         (fdopen_nothrow): New function.
3007         (rpl_fdopen): Use it.
3008         * modules/fdopen (Depends-on): Add msvc-inval.
3009         * modules/fclose-tests (Depends-on): Add fdopen.
3010         * modules/fflush-tests (Depends-on): Likewise.
3011         * modules/fgetc-tests (Depends-on): Likewise.
3012         * modules/fputc-tests (Depends-on): Likewise.
3013         * modules/fread-tests (Depends-on): Likewise.
3014         * modules/freopen-tests (Depends-on): Likewise.
3015         * modules/fseeko-tests (Depends-on): Likewise.
3016         * modules/ftello-tests (Depends-on): Likewise.
3017         * modules/fwrite-tests  (Depends-on): Likewise.
3018         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3019
3020 2011-09-24  Bruno Haible  <bruno@clisp.org>
3021
3022         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3023         * modules/fgetc-tests (Depends-on): Add unistd.
3024         * modules/fputc-tests (Depends-on): Likewise.
3025         * modules/fread-tests (Depends-on): Likewise.
3026         * modules/fwrite-tests (Depends-on): Likewise.
3027
3028 2011-09-24  Bruno Haible  <bruno@clisp.org>
3029
3030         dup: Simplify autoconf test.
3031         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3032         on gl_MSVC_INVAL's result.
3033
3034 2011-09-24  Bruno Haible  <bruno@clisp.org>
3035
3036         Tests for function fwrite().
3037         * modules/fwrite-tests: New file.
3038         * tests/test-fwrite.c: New file.
3039         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3040
3041         Tests for function fread().
3042         * modules/fread-tests: New file.
3043         * tests/test-fread.c: New file.
3044         * modules/stdio-tests (Depends-on): Add fread-tests.
3045
3046         Activate fputc tests.
3047         * modules/stdio-tests (Depends-on): Add fputc-tests.
3048
3049         Enhance fgetc, fputc tests.
3050         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3051         * tests/test-fputc.c (main): Likewise.
3052
3053 2011-09-24  Bruno Haible  <bruno@clisp.org>
3054
3055         write: Support for MSVC 9.
3056         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3057         is not 1.
3058         * lib/write.c (write_nothrow): New function.
3059         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3060         not 1. Use write_nothrow.
3061         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3062         invalid parameter handler.
3063         (gl_PREREQ_WRITE): New macro.
3064         * modules/write (Depends-on): Add msvc-inval.
3065         (configure.ac): Invoke gl_PREREQ_WRITE.
3066         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3067
3068 2011-09-24  Bruno Haible  <bruno@clisp.org>
3069
3070         read: Fix last commit.
3071         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3072
3073 2011-09-24  Bruno Haible  <bruno@clisp.org>
3074
3075         dup2: Fix last commit.
3076         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3077         (rpl_dup2): Disable fcntl workaround on native Windows.
3078
3079         sigprocmask: Make code safer.
3080         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3081         section that changes macro definitions for this compilation unit.
3082
3083 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3084
3085         dup2: clarify by coalescing Windows-specific material
3086         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3087         "msvc-nothrow.h"' to the Windows-specific section, so that the
3088         Emacs source need not contain these include files.
3089         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3090         Windows-specific fixes into this function rather than just the
3091         nothrow fix, as this shortens and clarifies the code.  Always
3092         define as a function, as that's a bit cleaner than having it be
3093         sometimes a function and sometimes a macro.
3094         (rpl_dup2): Move the Windows-specific stuff out of here and into
3095         ms_windows_dup2.  Don't protect the Haiku-related fix with
3096         "#if !defined __linux__", as the same code also works around
3097         a Linux kernel bug, and it doesn't add any system calls on any
3098         platform.  Add comment about FreeBSD 6.1.
3099
3100         sigprocmask: move #include directive
3101         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3102         Windows-specific section, so that the Emacs source need not
3103         contain msvc-inval.h.
3104
3105 2011-09-23  Bruno Haible  <bruno@clisp.org>
3106
3107         read: Support for MSVC 9.
3108         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3109         is not 1.
3110         * lib/read.c (read_nothrow): New function.
3111         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3112         read_nothrow.
3113         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3114         invalid parameter handler.
3115         (gl_PREREQ_READ): New macro.
3116         * modules/read (Depends-on): Add msvc-inval.
3117         (configure.ac): Invoke gl_PREREQ_READ.
3118         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3119
3120 2011-09-23  Bruno Haible  <bruno@clisp.org>
3121
3122         close: Support for MSVC 9.
3123         * lib/close.c: Include <errno.h>, msvc-inval.h.
3124         (close_nothrow): New function.
3125         (rpl_close): Use it.
3126         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3127         invalid parameter handler.
3128         * modules/close (Depends-on): Add msvc-inval.
3129         * modules/dup2-tests (Depends-on): Add close.
3130         * modules/dup3-tests (Depends-on): Likewise.
3131         * modules/fcntl-tests (Depends-on): Likewise.
3132         * modules/spawn-pipe-tests (Depends-on): Likewise.
3133         * modules/unistd-safer-tests (Depends-on): Likewise.
3134         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3135
3136 2011-09-23  Bruno Haible  <bruno@clisp.org>
3137
3138         New module 'dup'.
3139         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3140         Allow replacement.
3141         * lib/dup.c: New file.
3142         * lib/fchdir.c (rpl_dup): Remove function.
3143         * m4/dup.m4: New file.
3144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3145         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3146         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3147         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3148         * modules/dup: New file.
3149         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3150         'dup' module is in use.
3151         * modules/fdopendir (Depends-on): Add dup.
3152         * modules/fdutimensat-tests (Depends-on): Likewise.
3153         * modules/fts (Depends-on): Likewise.
3154         * modules/futimens-tests (Depends-on): Likewise.
3155         * modules/posix_spawnp-tests (Depends-on): Likewise.
3156         * modules/unistd-safer-tests (Depends-on): Likewise.
3157         * modules/utimens-tests (Depends-on): Likewise.
3158         * doc/posix-functions/dup.texi: Mention the new module and the problem
3159         on MSVC.
3160
3161 2011-09-23  Bruno Haible  <bruno@clisp.org>
3162
3163         getdtablesize: Support for MSVC 9.
3164         * lib/getdtablesize.c: Include msvc-inval.h.
3165         (_setmaxstdio_nothrow): New function.
3166         (_setmaxstdio): Redefine it.
3167         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3168         * modules/getdtablesize (Depends-on): Add msvc-inval.
3169         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3170
3171 2011-09-23  Bruno Haible  <bruno@clisp.org>
3172
3173         signal-h: Rename from signal.
3174         * modules/signal-h: Renamed from modules/signal.
3175         * modules/pthread_sigmask (Depends-on): Update.
3176         * modules/raise (Depends-on): Likewise.
3177         * modules/sigaction (Depends-on): Likewise.
3178         * modules/sigpipe (Depends-on): Likewise.
3179         * modules/sigprocmask (Depends-on): Likewise.
3180         * modules/sys_select (Depends-on): Likewise.
3181         * modules/signal-h-tests: Renamed from modules/signal-tests.
3182         (Files, Depends-on, Makefile.am): Update.
3183         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3184         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3185         (Files, Makefile.am): Update.
3186         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3187         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3188         * modules/signal: New placeholder file.
3189         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3190         * doc/posix-headers/signal.texi: Update.
3191         * NEWS: Mention the change.
3192
3193 2011-09-23  Bruno Haible  <bruno@clisp.org>
3194
3195         sigprocmask: Avoid crashes through signal() on MSVC 9.
3196         * lib/sigprocmask.c: Include msvc-inval.h.
3197         (signal_nothrow): New function.
3198         (signal): Redefine it.
3199         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3200         * modules/sigprocmask (Depends-on): Add msvc-inval.
3201         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3202
3203 2011-09-23  Bruno Haible  <bruno@clisp.org>
3204
3205         Tests for module 'raise'.
3206         * modules/raise-tests: New file.
3207         * tests/test-raise.c: New file.
3208
3209         raise: Support for MSVC.
3210         * lib/signal.in.h (raise): New declaration.
3211         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3212         for native Windows platforms.
3213         * m4/raise.m4: New file.
3214         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3215         HAVE_RAISE, REPLACE_RAISE.
3216         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3217         REPLACE_RAISE.
3218         * modules/raise (Status, Notice): Remove fields.
3219         (Files): Add m4/raise.m4.
3220         (Depends-on): Add signal, msvc-inval.
3221         (configure.ac): Use the common idioms.
3222         (Maintainer): Add me.
3223         * tests/test-signal-c++.cc: Check the signature of raise.
3224         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3225
3226 2011-09-23  Bruno Haible  <bruno@clisp.org>
3227
3228         pipe2: Fix compilation on pre-C99 compilers.
3229         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3230
3231 2011-09-23  Bruno Haible  <bruno@clisp.org>
3232
3233         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3234         * lib/msvc-nothrow.h: New file.
3235         * lib/msvc-nothrow.c: New file.
3236         * m4/msvc-nothrow.m4: New file.
3237         * modules/msvc-nothrow: New file.
3238         * lib/dup2.c: Include msvc-nothrow.h.
3239         (rpl_dup2): No need to protect _get_osfhandle call here.
3240         * lib/accept4.c: Include msvc-nothrow.h.
3241         * lib/error.c: Likewise.
3242         * lib/fcntl.c: Likewise.
3243         * lib/lseek.c: Likewise.
3244         * lib/nonblocking.c: Likewise.
3245         * lib/poll.c: Likewise.
3246         * lib/read.c: Likewise.
3247         * lib/select.c: Likewise.
3248         * lib/sockets.h: Likewise.
3249         * lib/sockets.c: Likewise.
3250         * lib/stdio-read.c: Likewise.
3251         * lib/stdio-write.c: Likewise.
3252         * lib/write.c: Likewise.
3253         * lib/w32sock.h: Likewise.
3254         * lib/w32spawn.h: Likewise.
3255         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3256         * lib/fsync.c: Likewise.
3257         * lib/isapipe.c: Likewise.
3258         * modules/dup2 (Depends-on): Add msvc-nothrow.
3259         * modules/accept4 (Depends-on): Likewise.
3260         * modules/error (Depends-on): Likewise.
3261         * modules/fcntl (Depends-on): Likewise.
3262         * modules/lseek (Depends-on): Likewise.
3263         * modules/nonblocking (Depends-on): Likewise.
3264         * modules/poll (Depends-on): Likewise.
3265         * modules/read (Depends-on): Likewise.
3266         * modules/select (Depends-on): Likewise.
3267         * modules/sockets (Depends-on): Likewise.
3268         * modules/sigpipe (Depends-on): Likewise.
3269         * modules/write (Depends-on): Likewise.
3270         * modules/accept (Depends-on): Likewise.
3271         * modules/bind (Depends-on): Likewise.
3272         * modules/connect (Depends-on): Likewise.
3273         * modules/gethostname (Depends-on): Likewise.
3274         * modules/getpeername (Depends-on): Likewise.
3275         * modules/getsockname (Depends-on): Likewise.
3276         * modules/getsockopt (Depends-on): Likewise.
3277         * modules/ioctl (Depends-on): Likewise.
3278         * modules/listen (Depends-on): Likewise.
3279         * modules/recv (Depends-on): Likewise.
3280         * modules/recvfrom (Depends-on): Likewise.
3281         * modules/send (Depends-on): Likewise.
3282         * modules/sendto (Depends-on): Likewise.
3283         * modules/setsockopt (Depends-on): Likewise.
3284         * modules/shutdown (Depends-on): Likewise.
3285         * modules/socket (Depends-on): Likewise.
3286         * modules/execute (Depends-on): Likewise.
3287         * modules/spawn-pipe (Depends-on): Likewise.
3288         * modules/flock (Depends-on): Likewise.
3289         * modules/fsync (Depends-on): Likewise.
3290         * modules/isapipe (Depends-on): Likewise.
3291         * tests/test-cloexec.c: Include msvc-nothrow.h.
3292         * tests/test-dup-safer.c: Likewise.
3293         * tests/test-dup2.c: Likewise.
3294         * tests/test-dup3.c: Likewise.
3295         * tests/test-fcntl.c: Likewise.
3296         * tests/test-pipe.c: Likewise.
3297         * tests/test-pipe2.c: Likewise.
3298         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3299         * modules/unistd-safer-tests (Depends-on): Likewise.
3300         * modules/dup2-tests (Depends-on): Likewise.
3301         * modules/dup3-tests (Depends-on): Likewise.
3302         * modules/fcntl-tests (Depends-on): Likewise.
3303         * modules/pipe-posix-tests (Depends-on): Likewise.
3304         * modules/pipe2-tests (Depends-on): Likewise.
3305
3306 2011-09-23  Bruno Haible  <bruno@clisp.org>
3307
3308         dup2: Make code more maintainable.
3309         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3310         (rpl_dup2): Use it.
3311         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3312         * modules/dup2 (configure.ac): Invoke it.
3313         Reported by Paul Eggert.
3314
3315 2011-09-23  Bruno Haible  <bruno@clisp.org>
3316
3317         msvc-inval: Fix compilation error.
3318         * lib/msvc-inval.h: Include <excpt.h>.
3319
3320 2011-09-23  Bruno Haible  <bruno@clisp.org>
3321
3322         mkdir: Tweak for MSVC 9.
3323         * lib/sys_stat.in.h: Update comments.
3324         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3325
3326         Tests for module 'chdir'.
3327         * modules/chdir-tests: New file.
3328         * tests/test-chdir.c: New file.
3329
3330         New module 'chdir'.
3331         * modules/chdir: New file.
3332         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3333         (chdir): New declaration.
3334         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3335         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3336         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3337         * tests/test-unistd-c++.cc: Check signature of chdir.
3338         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3339         * modules/chdir-long (Depends-on): Add chdir.
3340         * modules/fchdir (Depends-on): Likewise.
3341         * modules/rename (Depends-on): Likewise.
3342         * modules/savewd (Depends-on): Likewise.
3343
3344         rmdir: Support for mingw, MSVC 9.
3345         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3346         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3347
3348         getcwd: Tweak for MSVC 9.
3349         * lib/unistd.in.h: Update comments.
3350         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3351
3352 2011-09-22  Bruno Haible  <bruno@clisp.org>
3353
3354         strerror_r-posix: Avoid a link error on MSVC.
3355         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3356         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3357
3358 2011-09-22  Bruno Haible  <bruno@clisp.org>
3359
3360         select: Avoid link errors on MSVC.
3361         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3362         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3363         * modules/pselect (Link): Likewise.
3364         * NEWS: Mention the change.
3365         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3366         test-select-stdin against $(LIB_SELECT).
3367         * modules/pselect-tests (Makefile.am): Link test-pselect against
3368         $(LIB_SELECT).
3369
3370 2011-09-22  Bruno Haible  <bruno@clisp.org>
3371
3372         select: Avoid compilation error on MSVC.
3373         * lib/select.c: Don't include <stdbool.h>.
3374
3375 2011-09-21  Bruno Haible  <bruno@clisp.org>
3376
3377         Consolidate all uses of PATH_MAX in *.m4 files.
3378         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3379         macros.
3380         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3381         and gl_PATHMAX_SNIPPET.
3382         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3383         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3384         * modules/chdir-long (Files): Add m4/pathmax.m4.
3385         * modules/getcwd (Files): Likewise.
3386
3387 2011-09-21  Bruno Haible  <bruno@clisp.org>
3388
3389         ftruncate: Un-deprecate, concentrate on Win32 support.
3390         * modules/ftruncate (Status, Notice): Remove sections.
3391         (Depends-on): Add largefile.
3392         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3393         non-mingw platforms.
3394         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3395         include <io.h>.
3396         * modules/perror-tests (Depends-on): Add ftruncate.
3397         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3398         'ftruncate' module.
3399
3400 2011-09-21  Bruno Haible  <bruno@clisp.org>
3401
3402         Add dependencies to new dirent related modules.
3403         * modules/opendir (Depends-on): Add closedir.
3404         * modules/getcwd (Depends-on): Add opendir, closedir.
3405         * modules/dirent-safer-tests (Depends-on): Likewise.
3406         * modules/fdopendir-tests (Depends-on): Likewise.
3407         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3408         * modules/renameat-tests (Depends-on): Likewise.
3409
3410 2011-09-21  Bruno Haible  <bruno@clisp.org>
3411
3412         opendir: Avoid compilation error on mingw.
3413         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3414         * modules/opendir (Depends-on): Add unistd.
3415
3416 2011-09-21  Bruno Haible  <bruno@clisp.org>
3417
3418         ftruncate tests: Avoid a test failure on mingw.
3419         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3420
3421 2011-09-21  Bruno Haible  <bruno@clisp.org>
3422
3423         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3424         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3425         native Windows.
3426
3427 2011-09-21  Bruno Haible  <bruno@clisp.org>
3428
3429         New module 'fdopen'.
3430         * lib/stdio.in.h (fdopen): New declaration.
3431         * lib/fdopen.c: New file.
3432         * m4/fdopen.m4: New file.
3433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3434         REPLACE_FDOPEN.
3435         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3436         REPLACE_FDOPEN.
3437         * modules/fdopen: New file.
3438         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3439         * tests/test-stdio-c++.cc: Check signature of fdopen.
3440         * doc/posix-functions/fdopen.texi: Mention the new module.
3441
3442 2011-09-21  Bruno Haible  <bruno@clisp.org>
3443
3444         unlockpt tests: Avoid test failure on NetBSD 5.1.
3445         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3446         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3447
3448 2011-09-21  Bruno Haible  <bruno@clisp.org>
3449
3450         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3451         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3452         * tests/test-getlogin_r.c (main): Likewise.
3453
3454 2011-09-20  Bruno Haible  <bruno@clisp.org>
3455
3456         time tests: Don't require pid_t.
3457         * doc/posix-headers/time.texi: Revert last change.
3458         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3459         * tests/test-time.c: Comment out the check for pid_t.
3460
3461 2011-09-20  Bruno Haible  <bruno@clisp.org>
3462
3463         fsync tests: Avoid a test failure on mingw.
3464         * tests/test-fsync.c (main): Allow a failure with EIO.
3465
3466 2011-09-20  Bruno Haible  <bruno@clisp.org>
3467
3468         euidaccess: Update comments.
3469         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3470
3471 2011-09-20  Bruno Haible  <bruno@clisp.org>
3472
3473         Ensure EBADF returns for socket functions on mingw.
3474         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3475         descriptor is invalid.
3476         * lib/bind.c (rpl_bind): Likewise.
3477         * lib/connect.c (rpl_connect): Likewise.
3478         * lib/getpeername.c (rpl_getpeername): Likewise.
3479         * lib/getsockname.c (rpl_getsockname): Likewise.
3480         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3481         * lib/listen.c (rpl_listen): Likewise.
3482         * lib/recv.c (rpl_recv): Likewise.
3483         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3484         * lib/send.c (rpl_send): Likewise.
3485         * lib/sendto.c (rpl_sendto): Likewise.
3486         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3487         * lib/shutdown.c (rpl_shutdown): Likewise.
3488
3489 2011-09-20  Bruno Haible  <bruno@clisp.org>
3490
3491         select tests: EBADF tests.
3492         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3493         test_bad_fd): New functions.
3494         (test_function): Invoke also test_bad_fd.
3495
3496 2011-09-20  Bruno Haible  <bruno@clisp.org>
3497
3498         Tests for module 'posix_spawn_file_actions_addopen.
3499         * modules/posix_spawn_file_actions_addopen-tests: New file.
3500         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3501
3502         Tests for module 'posix_spawn_file_actions_adddup2'.
3503         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3504         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3505
3506         Tests for module 'posix_spawn_file_actions_addclose'.
3507         * modules/posix_spawn_file_actions_addclose-tests: New file.
3508         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3509
3510 2011-09-20  Bruno Haible  <bruno@clisp.org>
3511
3512         Tests for module 'unlockpt'.
3513         * modules/unlockpt-tests: New file.
3514         * tests/test-unlockpt.c: New file.
3515         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3516
3517         Tests for module 'grantpt'.
3518         * modules/grantpt-tests: New file.
3519         * tests/test-grantpt.c: New file.
3520         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3521
3522 2011-09-20  Bruno Haible  <bruno@clisp.org>
3523
3524         freopen tests: EBADF tests.
3525         * tests/test-freopen.c: Include errno.h, unistd.h.
3526         (main): Add tests for EBADF, commented out for the moment.
3527
3528         fclose tests: EBADF tests.
3529         * tests/test-fclose.c (main): Add tests for EBADF.
3530
3531         fflush tests: EBADF tests.
3532         * tests/test-fflush.c: Include errno.h, macros.h.
3533         (main): Add tests for EBADF.
3534
3535         ftello tests: EBADF tests.
3536         * tests/test-ftello4.sh: New file.
3537         * tests/test-ftello4.c: New file.
3538         * modules/ftello-tests (Files): Add them.
3539         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3540
3541         fseeko tests: EBADF tests.
3542         * tests/test-fseeko4.sh: New file.
3543         * tests/test-fseeko4.c: New file.
3544         * modules/fseeko-tests (Files): Add them.
3545         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3546
3547         Tests for function fputc().
3548         * modules/fputc-tests: New file.
3549         * tests/test-fputc.c: New file.
3550         * modules/stdio-tests (Depends-on): Add fputc-tests.
3551
3552         Tests for function fgetc().
3553         * modules/fgetc-tests: New file.
3554         * tests/test-fgetc.c: New file.
3555         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3556
3557         Tests for function fdopen().
3558         * modules/fdopen-tests: New file.
3559         * tests/test-fdopen.c: New file.
3560         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3561
3562         Tests for module 'vdprintf'.
3563         * modules/vdprintf-tests: New file.
3564         * tests/test-vdprintf.c: New file.
3565
3566         Tests for module 'dprintf'.
3567         * modules/dprintf-tests: New file.
3568         * tests/test-dprintf.c: New file.
3569
3570 2011-09-20  Bruno Haible  <bruno@clisp.org>
3571
3572         Tests for module 'ioctl'.
3573         * modules/ioctl-tests: New file.
3574         * tests/test-ioctl.c: New file.
3575
3576 2011-09-20  Bruno Haible  <bruno@clisp.org>
3577
3578         fcntl tests: EBADF tests.
3579         * tests/test-fcntl.c (main): Add more tests for EBADF.
3580
3581 2011-09-20  Bruno Haible  <bruno@clisp.org>
3582
3583         utimensat tests: EBADF tests.
3584         * tests/test-utimensat.c (main): Add tests for EBADF.
3585
3586         renameat tests: EBADF tests.
3587         * tests/test-renameat.c (main): Add tests for EBADF.
3588
3589         mkfifoat tests: EBADF tests.
3590         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3591
3592         readlinkat tests: EBADF tests.
3593         * tests/test-readlinkat.c (main): Add tests for EBADF.
3594
3595         symlinkat tests: EBADF tests.
3596         * tests/test-symlinkat.c (main): Add tests for EBADF.
3597
3598         linkat tests: EBADF tests.
3599         * tests/test-linkat.c (main): Add tests for EBADF.
3600
3601         Tests for module 'faccessat'.
3602         * modules/faccessat-tests: New file.
3603         * tests/test-faccessat.c: New file.
3604
3605         fdopendir tests: EBADF tests.
3606         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3607
3608         openat tests: EBADF tests.
3609         * tests/test-fchownat.c (main): Add tests for EBADF.
3610         * tests/test-fstatat.c (main): Likewise.
3611         * tests/test-mkdirat.c (main): Likewise.
3612         * tests/test-openat.c (main): Likewise.
3613         * tests/test-unlinkat.c (main): Likewise.
3614         * tests/test-fchmodat.c: New file.
3615         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3616         (Makefile.am): Also run 'test-fchmodat'.
3617
3618 2011-09-20  Bruno Haible  <bruno@clisp.org>
3619
3620         utimens, futimens, fdutimensat tests: EBADF tests.
3621         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3622
3623         Tests for function fstat().
3624         * modules/fstat-tests: New file.
3625         * tests/test-fstat.c: New file.
3626         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3627
3628 2011-09-20  Bruno Haible  <bruno@clisp.org>
3629
3630         test-ttyname_r tests: EBADF tests.
3631         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3632
3633         Tests for module 'isatty'.
3634         * modules/isatty-tests: New file.
3635         * tests/test-isatty.c: New file.
3636
3637         Tests for module 'write'.
3638         * modules/write-tests: New file.
3639         * tests/test-write.c: New file.
3640
3641         Tests for module 'read'.
3642         * modules/read-tests: New file.
3643         * tests/test-read.c: New file.
3644
3645         pwrite tests: EBADF tests.
3646         * tests/test-pwrite.c (main): Add tests for EBADF.
3647
3648         pread tests: EBADF tests.
3649         * tests/test-pread.c (main): Add tests for EBADF.
3650
3651         lseek tests: EBADF tests.
3652         * tests/test-lseek.c (main): Add more tests for EBADF.
3653
3654         Tests for module 'ftruncate'.
3655         * modules/ftruncate-tests: New file.
3656         * tests/test-ftruncate.sh: New file.
3657         * tests/test-ftruncate.c: New file.
3658
3659         fsync tests: EBADF tests.
3660         * tests/test-fsync.c (main): Add more tests for EBADF.
3661
3662         fdatasync tests: EBADF tests.
3663         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3664
3665         Tests for module 'fchown'.
3666         * modules/fchown-tests: New file.
3667         * tests/test-fchown.c: New file.
3668
3669         Tests for module 'fchmod'.
3670         * modules/fchmod-tests: New file.
3671         * tests/test-fchmod.c: New file.
3672
3673         fchdir tests: EBADF tests.
3674         * tests/test-fchdir.c (main): Add more tests for EBADF.
3675
3676         dup2 tests: EBADF tests.
3677         * tests/test-dup2.c (main): Add more tests for EBADF.
3678
3679         Tests for module 'dup'.
3680         * modules/dup-tests: New file.
3681         * tests/test-dup.c: New file.
3682
3683         Tests for module 'close'.
3684         * modules/close-tests: New file.
3685         * tests/test-close.c: New file.
3686
3687 2011-09-20  Bruno Haible  <bruno@clisp.org>
3688
3689         Tests for module 'shutdown'.
3690         * modules/shutdown-tests: New file.
3691         * tests/test-shutdown.c: New file.
3692
3693         Tests for module 'setsockopt'.
3694         * modules/setsockopt-tests: New file.
3695         * tests/test-setsockopt.c: New file.
3696
3697         Tests for module 'sendto'.
3698         * modules/sendto-tests: New file.
3699         * tests/test-sendto.c: New file.
3700
3701         Tests for module 'send'.
3702         * modules/send-tests: New file.
3703         * tests/test-send.c: New file.
3704
3705         Tests for module 'recvfrom'.
3706         * modules/recvfrom-tests: New file.
3707         * tests/test-recvfrom.c: New file.
3708
3709         Tests for module 'recv'.
3710         * modules/recv-tests: New file.
3711         * tests/test-recv.c: New file.
3712
3713         Tests for module 'listen'.
3714         * modules/listen-tests: New file.
3715         * tests/test-listen.c: New file.
3716
3717         Tests for module 'getsockopt'.
3718         * modules/getsockopt-tests: New file.
3719         * tests/test-getsockopt.c: New file.
3720
3721         Tests for module 'getsockname'.
3722         * modules/getsockname-tests: New file.
3723         * tests/test-getsockname.c: New file.
3724
3725         Tests for module 'getpeername'.
3726         * modules/getpeername-tests: New file.
3727         * tests/test-getpeername.c: New file.
3728
3729         Tests for module 'connect'.
3730         * modules/connect-tests: New file.
3731         * tests/test-connect.c: New file.
3732
3733         Tests for module 'bind'.
3734         * modules/bind-tests: New file.
3735         * tests/test-bind.c: New file.
3736
3737         accept4 tests: Fix for native Windows.
3738         * tests/test-accept4.c: Include sockets.h.
3739         (main): Invoke gl_sockets_startup.
3740         * modules/accept4-tests (Depends-on): Add sockets.
3741
3742         accept tests: Fix for native Windows.
3743         * tests/test-accept.c: Include sockets.h.
3744         (main): Invoke gl_sockets_startup.
3745         * modules/accept-tests (Depends-on): Add sockets.
3746
3747 2011-09-19  Bruno Haible  <bruno@clisp.org>
3748
3749         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3750         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3751         do...while(0).
3752         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3753         Suggested by Paul Eggert.
3754
3755 2011-09-19  Bruno Haible  <bruno@clisp.org>
3756
3757         sched: Ensure pid_t is defined.
3758         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3759         not define pid_t.
3760         * lib/sched.in.h: Include <sys/types.h>.
3761         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3763
3764 2011-09-19  Bruno Haible  <bruno@clisp.org>
3765
3766         msvc-inval: Ensure the entire expansion is a single statement.
3767         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3768         of braces.
3769
3770 2011-09-19  Jim Meyering  <meyering@redhat.com>
3771
3772         tests: use printf, not echo in init.sh's warn_ function
3773         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3774         misbehave when given strings containing a backslash or starting
3775         with e.g., -n.  James Youngman suggested setting IFS.
3776
3777 2011-09-19  Eric Blake  <eblake@redhat.com>
3778
3779         futimens: enhance test
3780         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3781         closed non-negative fd.
3782
3783         date: accept 'hence' as opposite of 'ago'
3784         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3785         * tests/test-parse-datetime.c (main): Enhance test.
3786         Suggested by Jesse Wilson.
3787
3788 2011-09-19  Jim Meyering  <meyering@redhat.com>
3789
3790         getcwd: don't fail in a deep directory on a system without openat
3791         Before this change, getcwd would fail when called from a directory
3792         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3793         the non-openat implementation used "..", "../..", "../../..", etc.
3794         to access ancestor directories.  With too many, that string would
3795         be longer than PATH_MAX.
3796         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3797         using gnulib's openat replacement.
3798         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3799         we're using the replacement function.
3800
3801 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3802
3803         maint.mk: avoid warnings from perl about missing files
3804         * top/maint.mk (def_sym_regex): Ignore files listed in
3805         $(gl_other_headers_) that do not exist, say because a project
3806         does not use a corresponding module.
3807
3808 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3809
3810         stat: use pathmax.h only if needed
3811         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3812         This is better for Emacs, which does not have a mingw port and
3813         therefore can avoid the pathmax module.
3814
3815         utimens: remove dependency on dup2
3816         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3817         to work around the Linux kernel bug.
3818         * modules/utimens (Depends-on): Remove dup2.
3819
3820 2011-09-18  Bruno Haible  <bruno@clisp.org>
3821
3822         inet_ntop, inet_pton: Look for it also in libresolv.
3823         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3824         libnsl, search for it in libresolv.
3825         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3826         Needed on Solaris 7.
3827
3828 2011-09-18  Bruno Haible  <bruno@clisp.org>
3829
3830         accept, accept4 tests: Avoid link error on Solaris.
3831         * modules/accept-tests (Makefile.am): Link test-accept against
3832         $(LIBSOCKET).
3833         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3834         $(LIBSOCKET).
3835
3836         accept4: Avoid link error on Solaris.
3837         * modules/accept4 (Link): New section.
3838
3839         socket functions: Avoid link errors on Solaris.
3840         * modules/accept (Depends-on): Add socketlib.
3841         (Link): New section.
3842         * modules/bind (Depends-on): Add socketlib.
3843         (Link): New section.
3844         * modules/connect (Depends-on): Add socketlib.
3845         (Link): New section.
3846         * modules/getpeername (Depends-on): Add socketlib.
3847         (Link): New section.
3848         * modules/getsockname (Depends-on): Add socketlib.
3849         (Link): New section.
3850         * modules/getsockopt (Depends-on): Add socketlib.
3851         (Link): New section.
3852         * modules/listen (Depends-on): Add socketlib.
3853         (Link): New section.
3854         * modules/recv (Depends-on): Add socketlib.
3855         (Link): New section.
3856         * modules/recvfrom (Depends-on): Add socketlib.
3857         (Link): New section.
3858         * modules/send (Depends-on): Add socketlib.
3859         (Link): New section.
3860         * modules/sendto (Depends-on): Add socketlib.
3861         (Link): New section.
3862         * modules/setsockopt (Depends-on): Add socketlib.
3863         (Link): New section.
3864         * modules/shutdown (Depends-on): Add socketlib.
3865         (Link): New section.
3866         * modules/socket (Depends-on): Add socketlib.
3867         (Link): New section.
3868
3869 2011-09-18  Bruno Haible  <bruno@clisp.org>
3870
3871         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3872         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3873         than 5 seconds.
3874         * modules/ptsname-tests (configure.ac): Test for alarm.
3875
3876 2011-09-18  Bruno Haible  <bruno@clisp.org>
3877
3878         posix_spawn_file_actions_add*: Fix module dependencies.
3879         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3880         posix_spawn_file_actions_init.
3881         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3882         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3883
3884 2011-09-18  Bruno Haible  <bruno@clisp.org>
3885
3886         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3887         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3888         * tests/test-renameat.c (main): Likewise.
3889
3890 2011-09-18  Bruno Haible  <bruno@clisp.org>
3891
3892         Tests for module 'accept4'.
3893         * modules/accept4-tests: New file.
3894         * tests/test-accept4.c: New file.
3895
3896 2011-09-18  Bruno Haible  <bruno@clisp.org>
3897
3898         Tests for module 'accept'.
3899         * modules/accept-tests: New file.
3900         * tests/test-accept.c: New file.
3901
3902 2011-09-18  Bruno Haible  <bruno@clisp.org>
3903
3904         dup2: Support for MSVC.
3905         * lib/dup2.c: Include msvc-inval.h.
3906         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3907         _get_osfhandle calls.
3908         * modules/dup2 (Depends-on): Add msvc-inval.
3909         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3910
3911         New module 'msvc-inval'.
3912         * lib/msvc-inval.h: New file.
3913         * lib/msvc-inval.c: New file.
3914         * m4/msvc-inval.m4: New file.
3915         * modules/msvc-inval: New file.
3916
3917 2011-09-17  Bruno Haible  <bruno@clisp.org>
3918
3919         Tests for module 'pclose'.
3920         * modules/pclose-tests: New file.
3921
3922         New module 'pclose'.
3923         * lib/stdio.in.h (pclose): New declaration.
3924         * lib/pclose.c: New file.
3925         * m4/pclose.m4: New file.
3926         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3927         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3928         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3929         * modules/pclose: New file.
3930         * modules/popen-tests (Depends-on): Add pclose.
3931         * modules/popen-safer-tests (Depends-on): Likewise.
3932         * doc/posix-functions/pclose.texi: Mention the new module.
3933
3934 2011-09-17  Bruno Haible  <bruno@clisp.org>
3935
3936         popen: Support for MSVC.
3937         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3938         * lib/popen.c (popen): Provide alternate definition for native Windows.
3939         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3940         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3941         * modules/popen (Depends-on, configure.ac): Update condition.
3942         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3943         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3944         fixed.
3945
3946 2011-09-17  Bruno Haible  <bruno@clisp.org>
3947
3948         isnanl, isnand, isnanf: Work around MSVC bug.
3949         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3950
3951 2011-09-17  Bruno Haible  <bruno@clisp.org>
3952
3953         sys_socket tests: Fix recent mistake.
3954         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3955
3956 2011-09-17  Bruno Haible  <bruno@clisp.org>
3957
3958         putenv: Support for MSVC.
3959         * modules/putenv (Depends-on): Add environ.
3960         * lib/putenv.c (environ): Disable declaration.
3961         * lib/unistd.in.h: Update comment.
3962
3963 2011-09-17  Bruno Haible  <bruno@clisp.org>
3964
3965         math: Avoid macro redefinition warnings on MSVC.
3966         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3967         Undefine before redefining.
3968
3969 2011-09-17  Bruno Haible  <bruno@clisp.org>
3970
3971         doc: Mention functions which are declared as macros.
3972         * doc/posix-functions/*[fl].texi: Mention that some functions are
3973         defined as macros with arguments only.
3974
3975 2011-09-17  Bruno Haible  <bruno@clisp.org>
3976
3977         Add dependencies to new dirent related modules.
3978         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3979         * modules/fts (Depends-on): Likewise.
3980         * modules/glob (Depends-on): Likewise.
3981         * modules/savedir (Depends-on): Likewise.
3982         * modules/scandir (Depends-on): Likewise.
3983         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3984         * modules/fdopendir (Depends-on): Add opendir.
3985
3986 2011-09-17  Bruno Haible  <bruno@clisp.org>
3987
3988         inet_pton: Support for MSVC on Windows Vista or newer.
3989         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3990         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3991         HAVE_DECL_INET_PTON is defined.
3992         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3993         On platforms with <winsock2.h>, test whether inet_pton is declared in
3994         <ws2tcpip.h>. If so, arrange to replace it.
3995         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3996         REPLACE_INET_PTON.
3997         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3998         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3999         (Depends-on, configure.ac): Update condition.
4000         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4001
4002 2011-09-17  Bruno Haible  <bruno@clisp.org>
4003
4004         inet_ntop: Support for MSVC on Windows Vista or newer.
4005         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4006         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4007         HAVE_DECL_INET_NTOP is defined.
4008         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4009         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4010         <ws2tcpip.h>. If so, arrange to replace it.
4011         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4012         REPLACE_INET_NTOP.
4013         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4014         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4015         (Depends-on, configure.ac): Update condition.
4016         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4017
4018 2011-09-16  Eric Blake  <eblake@redhat.com>
4019
4020         test-fsync: yet another enhancement
4021         * tests/test-fsync.c (main): Also test behavior on read-only text
4022         file.
4023
4024 2011-09-16  Bruno Haible  <bruno@clisp.org>
4025
4026         Enhance fsync, fdatasync tests.
4027         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4028         * tests/test-fdatasync.c (main): Likewise.
4029
4030 2011-09-16  Bruno Haible  <bruno@clisp.org>
4031
4032         Support for MSVC compiler: Ensure mode_t gets defined.
4033         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4034         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4035         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4036         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4037         * tests/test-fcntl-h.c: Check that mode_t is defined.
4038         * tests/test-sys_stat.c: Likewise.
4039         * tests/test-sys_types.c: Likewise.
4040         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4041         * doc/posix-headers/sys_stat.texi: Likewise.
4042         * doc/posix-headers/sys_types.texi: Likewise.
4043
4044 2011-09-16  Bruno Haible  <bruno@clisp.org>
4045
4046         sys_stat: Support for MSVC.
4047         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4048         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4049         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4050         MSVC.
4051
4052 2011-09-16  Bruno Haible  <bruno@clisp.org>
4053
4054         Support for MSVC compiler: Ensure off_t gets defined.
4055         * lib/unistd.in.h: Include <sys/types.h>.
4056         * tests/test-fcntl-h.c: Check that off_t is defined.
4057         * tests/test-sys_stat.c: Likewise.
4058         * tests/test-sys_types.c: Likewise.
4059
4060 2011-09-16  Eric Blake  <eblake@redhat.com>
4061
4062         fdatasync: port to Solaris
4063         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4064         * modules/fdatasync (Link): Document it.
4065         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4066
4067         fdatasync: port to MacOS X 10.7
4068         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4069         declared.
4070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4071         * modules/unistd (Makefile.am): Substitute it.
4072         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4073         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4074
4075         fdatasync: minor improvements
4076         * modules/fdatasync (Depends-on): Add condition for fsync.
4077         * lib/fdatasync.c (fdatasync): Add comment.
4078         * tests/test-unistd-c++.cc: Test fdatasync.
4079
4080         unistd: update refs to newer POSIX
4081         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4082         Suggested by Bruno Haible.
4083
4084         fdatasync: new module
4085         * modules/fsync (Description): Document difference to fdatasync.
4086         * modules/fdatasync: New module.
4087         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4088         * lib/fdatasync.c (fdatasync): Likewise.
4089         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4090         defaults.
4091         * modules/unistd (Makefile.am): Set witnesses.
4092         * lib/unistd.in.h (fdatasync): Declare.
4093         * MODULES.html.sh: Document it.
4094         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4095         * modules/fdatasync-tests: New test.
4096         * tests/test-fdatasync.c: Likewise.
4097
4098 2011-09-16  Eric Blake  <eblake@redhat.com>
4099
4100         test-fsync: enhance tests
4101         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4102         * tests/test-fsync.c (main): Enhance test.
4103
4104 2011-09-15  Bruno Haible  <bruno@clisp.org>
4105
4106         Support for MSVC compiler: Ensure ssize_t gets defined.
4107         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4108         * doc/posix-headers/stdio.texi: Likewise.
4109         * modules/stdio (Depends-on): Add ssize_t.
4110         * modules/sys_socket (Depends-on): Likewise.
4111         * modules/sys_types (Depends-on): Likewise.
4112         * modules/sys_uio (Depends-on): Likewise.
4113         * modules/unistd (Depends-on): Likewise.
4114         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4115         * tests/test-sys_types.c: Check that ssize_t is defined.
4116
4117 2011-09-14  Bruno Haible  <bruno@clisp.org>
4118
4119         Avoid using #, the m4 comment starter character, near brackets.
4120         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4121         delimiter character in sed expressions.
4122         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4123         Suggested by Eric Blake.
4124
4125         Properly quote AC_CHECK_DECLS' 4th argument.
4126         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4127         argument.
4128         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4129         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4130         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4131         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4132         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4133         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4134         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4135         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4136         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4137         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4138         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4139         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4140         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4141         * m4/isinf.m4 (gl_ISINF): Likewise.
4142         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4143         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4144         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4145         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4146         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4147         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4148         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4149         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4150         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4151         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4152         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4153         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4155         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4156         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4157         Reported by Eric Blake.
4158
4159         Properly quote AC_CHECK_DECL's 4th argument.
4160         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4161         argument.
4162         * m4/argp.m4 (gl_ARGP): Likewise.
4163         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4164         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4165         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4166         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4167         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4168         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4169         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4170         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4171         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4172         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4173         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4174         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4175         Reported by Eric Blake.
4176
4177 2011-09-14  Eric Blake  <eblake@redhat.com>
4178
4179         opendir: avoid compile warning
4180         * lib/opendir.c (includes): Always include errno.h.
4181         Reported by Tatsuro MATSUOKA.
4182
4183 2011-09-14  Jim Meyering  <meyering@redhat.com>
4184
4185         maint.mk: sc_tight_scope: propagate failure from sub-make
4186         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4187         Reported by Martin von Gagern.
4188
4189 2011-09-13  Bruno Haible  <bruno@clisp.org>
4190
4191         tempname: Support for MSVC.
4192         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4193         MSVC.
4194         * modules/tempname (Depends-on): Add fcntl-h.
4195
4196 2011-09-13  Bruno Haible  <bruno@clisp.org>
4197
4198         sys_time: Support for MSVC.
4199         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4200         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4201         include <winsock2.h>.
4202         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4203         function declarations that collide with POSIX.
4204         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4205         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4206
4207 2011-09-13  Bruno Haible  <bruno@clisp.org>
4208
4209         stat: Support for MSVC.
4210         * lib/stat.c: Include pathmax.h.
4211         * modules/stat (Depends-on): Add pathmax.
4212
4213         pathmax: Support for native Windows.
4214         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4215
4216 2011-09-12  Bruno Haible  <bruno@clisp.org>
4217
4218         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4219         * lib/dirent.in.h (struct dirent): New type.
4220         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4221         DT_WHT): New macros.
4222         (DIR): New type.
4223         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4224         (readdir, rewinddir): New declarations.
4225         * lib/dirent-private.h: New file.
4226         * lib/opendir.c: New file.
4227         * lib/readdir.c: New file.
4228         * lib/rewinddir.c: New file.
4229         * lib/closedir.c: New file.
4230         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4231         * m4/opendir.m4: New file.
4232         * m4/readdir.m4: New file.
4233         * m4/rewinddir.m4: New file.
4234         * m4/closedir.m4: New file.
4235         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4236         REPLACE_CLOSEDIR here.
4237         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4238         readdir, rewinddir are declared.
4239         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4240         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4241         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4242         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4243         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4244         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4245         * modules/opendir: New file.
4246         * modules/readdir: New file.
4247         * modules/rewinddir: New file.
4248         * modules/closedir: New file.
4249         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4250         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4251         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4252         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4253         * NEWS: Mention the 'fchdir' change.
4254
4255 2011-09-11  Bruno Haible  <bruno@clisp.org>
4256
4257         asm-underscore.m4: Support for MSVC.
4258         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4259         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4260
4261 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4262
4263         Doc about crypt functions.
4264         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4265         needing for _GNU_SOURCE to get crypt.
4266         * doc/posix-functions/encrypt.texi: Likewise.
4267         * doc/posix-functions/setkey.texi: Likewise.
4268
4269 2011-09-11  Bruno Haible  <bruno@clisp.org>
4270
4271         doc: Update regarding MSVC 9.
4272         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4273         tested".
4274         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4275         * doc/posix-headers/*.texi: Likewise.
4276         * doc/pastposix-functions/*.texi: Likewise.
4277         * doc/glibc-functions/*.texi: Likewise.
4278         * doc/glibc-headers/*.texi: Likewise.
4279
4280 2011-09-11  Bruno Haible  <bruno@clisp.org>
4281
4282         unistd et al.: Don't assume <unistd.h> exists.
4283         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4284         does not exist.
4285         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4286         exist. But include <stdlib.h>.
4287         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4288         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4289         symlink() does not exist.
4290         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4291         include <io.h> instead.
4292         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4293         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4294         include <direct.h> instead.
4295         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4296         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4297         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4298         <io.h> instead.
4299         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4300         correctly if the system does not have hard links.
4301         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4302         <direct.h> instead.
4303         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4304         it when looking for function declarations.
4305         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4306         <direct.h> and <io.h> instead.
4307         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4308
4309 2011-09-11  Bruno Haible  <bruno@clisp.org>
4310
4311         strcase: Support for MSVC.
4312         * modules/strcase (Status, Notice): Remove obsoletion mark.
4313         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4314         * doc/posix-functions/strncasecmp.texi: Likewise.
4315
4316         strings: Don't assume <strings.h> exists.
4317         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4318         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4319         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4320         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4321
4322 2011-09-11  Bruno Haible  <bruno@clisp.org>
4323
4324         dirent: Don't assume <dirent.h> exists.
4325         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4326         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4327         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4328         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4329
4330 2011-09-11  Bruno Haible  <bruno@clisp.org>
4331
4332         Fix wint_t on MSVC.
4333         * lib/wchar.in.h (wint_t): On MSVC, override it.
4334         * lib/wctype.in.h (wint_t): Likewise.
4335         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4336         MSVC.
4337         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4338         * doc/posix-headers/wctype.texi: Likewise.
4339
4340 2011-09-11  Bruno Haible  <bruno@clisp.org>
4341
4342         sys_types: Fix typo.
4343         * lib/sys_types.in.h: Fix typo in comment.
4344         Reported by Paul Eggert.
4345
4346         Support for MSVC compiler: Ensure size_t gets defined.
4347         * modules/strings (Depends-on): Add 'sys_types'.
4348         * modules/sys_uio (Depends-on): Likewise.
4349         * lib/sys_uio.in.h: Update comment.
4350
4351         C++ tests for module 'sys_types'.
4352         * modules/sys_types-c++-tests: New file.
4353         * tests/test-sys_types-c++.cc: New file.
4354
4355         Tests for module 'sys_types'.
4356         * modules/sys_types-tests: New file.
4357         * tests/test-sys_types.c: New file.
4358
4359         New module 'sys_types'.
4360         * lib/sys_types.in.h: New file.
4361         * m4/sys_types_h.m4: New file.
4362         * modules/sys_types: New file.
4363         * doc/posix-headers/sys_types.texi: Mention the new module and the
4364         size_t problem on MSVC 9.
4365
4366 2011-09-11  Bruno Haible  <bruno@clisp.org>
4367
4368         Support for MSVC compiler: Avoid division by a literal 0.
4369         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4370         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4371         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4372         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4373         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4374         * tests/infinity.h: New file.
4375         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4376         on MSVC.
4377         * tests/test-ceilf1.c: Include infinity.h.
4378         (main): Use Infinityf.
4379         * tests/test-ceil1.c: Include infinity.h.
4380         (main): Use Infinityd.
4381         * tests/test-ceill.c: Include infinity.h.
4382         (main): Use Infinityl.
4383         * tests/test-dprintf-posix.c: Include infinity.h.
4384         (test_function): Use Infinityd.
4385         * tests/test-floorf1.c: Include infinity.h.
4386         (main): Use Infinityf.
4387         * tests/test-floor1.c: Include infinity.h.
4388         (main): Use Infinityd.
4389         * tests/test-floorl.c: Include infinity.h.
4390         (main): Use Infinityl.
4391         * tests/test-fprintf-posix.c: Include infinity.h.
4392         (test_function): Use Infinityd.
4393         * tests/test-frexp.c: Include infinity.h.
4394         (main): Use Infinityd.
4395         * tests/test-frexpl.c: Include infinity.h.
4396         (main): Use Infinityl.
4397         * tests/test-isfinite.c: Include infinity.h.
4398         (test_isfinitef): Use Infinityf.
4399         (test_isfinited): Use Infinityd.
4400         (test_isfinitel): Use Infinityl.
4401         * tests/test-isinf.c: Include infinity.h.
4402         (test_isinff): Use Infinityf.
4403         (test_isinfd): Use Infinityd.
4404         (test_isinfl): Use Infinityl.
4405         * tests/test-isnan.c: Include infinity.h.
4406         (test_float): Use Infinityf.
4407         (test_double): Use Infinityd.
4408         (test_long_double): Use Infinityl.
4409         * tests/test-isnanf.h: Include infinity.h.
4410         (main): Use Infinityf.
4411         * tests/test-isnand.h: Include infinity.h.
4412         (main): Use Infinityd.
4413         * tests/test-isnanl.h: Include infinity.h.
4414         (main): Use Infinityl.
4415         * tests/test-ldexpl.c: Include infinity.h.
4416         (main): Use Infinityl.
4417         * tests/test-printf-posix.h: Include infinity.h.
4418         (test_function): Use Infinityd.
4419         * tests/test-roundf1.c: Include infinity.h.
4420         (main): Use Infinityf.
4421         * tests/test-round1.c: Include infinity.h.
4422         (main): Use Infinityd.
4423         * tests/test-roundl.c: Include infinity.h.
4424         (main): Use Infinityl.
4425         * tests/test-signbit.c: Include infinity.h.
4426         (test_signbitf): Use Infinityf.
4427         (test_signbitd): Use Infinityd.
4428         (test_signbitl): Use Infinityl.
4429         * tests/test-snprintf-posix.h: Include infinity.h.
4430         (test_function): Use Infinityd, Infinityl.
4431         * tests/test-sprintf-posix.h: Include infinity.h.
4432         (test_function): Use Infinityd, Infinityl.
4433         * tests/test-truncf1.c: Include infinity.h.
4434         (main): Use Infinityf.
4435         * tests/test-trunc1.c: Include infinity.h.
4436         (main): Use Infinityd.
4437         * tests/test-truncl.c: Include infinity.h.
4438         (main): Use Infinityl.
4439         * tests/test-vasnprintf-posix.c: Include infinity.h.
4440         (test_function): Use Infinityd, Infinityl.
4441         * tests/test-vasprintf-posix.c: Include infinity.h.
4442         (test_function): Use Infinityd, Infinityl.
4443         * modules/ceilf-tests (Files): Add tests/infinity.h.
4444         * modules/ceil-tests (Files): Likewise.
4445         * modules/ceill-tests (Files): Likewise.
4446         * modules/dprintf-posix-tests (Files): Likewise.
4447         * modules/floorf-tests (Files): Likewise.
4448         * modules/floor-tests (Files): Likewise.
4449         * modules/floorl-tests (Files): Likewise.
4450         * modules/fprintf-posix-tests (Files): Likewise.
4451         * modules/frexp-tests (Files): Likewise.
4452         * modules/frexp-nolibm-tests (Files): Likewise.
4453         * modules/frexpl-tests (Files): Likewise.
4454         * modules/frexpl-nolibm-tests (Files): Likewise.
4455         * modules/isfinite-tests (Files): Likewise.
4456         * modules/isinf-tests (Files): Likewise.
4457         * modules/isnan-tests (Files): Likewise.
4458         * modules/isnanf-tests (Files): Likewise.
4459         * modules/isnanf-nolibm-tests (Files): Likewise.
4460         * modules/isnand-tests (Files): Likewise.
4461         * modules/isnand-nolibm-tests (Files): Likewise.
4462         * modules/isnanl-tests (Files): Likewise.
4463         * modules/isnanl-nolibm-tests (Files): Likewise.
4464         * modules/ldexpl-tests (Files): Likewise.
4465         * modules/printf-posix-tests (Files): Likewise.
4466         * modules/roundf-tests (Files): Likewise.
4467         * modules/round-tests (Files): Likewise.
4468         * modules/roundl-tests (Files): Likewise.
4469         * modules/signbit-tests (Files): Likewise.
4470         * modules/snprintf-posix-tests (Files): Likewise.
4471         * modules/sprintf-posix-tests (Files): Likewise.
4472         * modules/truncf-tests (Files): Likewise.
4473         * modules/trunc-tests (Files): Likewise.
4474         * modules/truncl-tests (Files): Likewise.
4475         * modules/vasnprintf-posix-tests (Files): Likewise.
4476         * modules/vasprintf-posix-tests (Files): Likewise.
4477         * modules/vdprintf-posix-tests (Files): Likewise.
4478         * modules/vfprintf-posix-tests (Files): Likewise.
4479         * modules/vprintf-posix-tests (Files): Likewise.
4480         * modules/vsnprintf-posix-tests (Files): Likewise.
4481         * modules/vsprintf-posix-tests (Files): Likewise.
4482         * modules/xprintf-posix-tests (Files): Likewise.
4483
4484 2011-09-11  Bruno Haible  <bruno@clisp.org>
4485
4486         Ensure pid_t gets defined.
4487         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4488         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4489         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4490         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4491         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4492         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4493         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4494         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4495         * tests/test-fcntl-h.c: Check that pid_t is defined.
4496         * tests/test-sched.c: Likewise.
4497         * tests/test-termios.c: Likewise.
4498         * tests/test-time.c: Likewise.
4499         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4500         * doc/posix-headers/signal.texi: Likewise.
4501         * doc/posix-headers/sys_types.texi: Likewise.
4502         * doc/posix-headers/time.texi: Likewise.
4503
4504 2011-09-11  Bruno Haible  <bruno@clisp.org>
4505
4506         acl: Fix compilation on Solaris 10 (older version).
4507         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4508         of ACE_EVERYONE.
4509         * lib/set-mode-acl.c (qset_acl): Likewise.
4510         Reported by Christian Jullien <eligis@orange.fr>.
4511
4512 2011-09-10  Bruno Haible  <bruno@clisp.org>
4513
4514         iconv, unsetenv: Add support for MSVC compiler.
4515         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4516         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4517
4518 2011-09-10  Bruno Haible  <bruno@clisp.org>
4519
4520         *printf: Add support for MSVC compiler.
4521         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4522         handles the exception caused by the %n directive. When cross-compiling,
4523         guess no on native Windows.
4524         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4525         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4526         emulate it through vsnprintf.
4527         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4528         * doc/posix-functions/dprintf.texi: Update documentation regarding
4529         MSVC 9.
4530         * doc/posix-functions/fprintf.texi: Likewise.
4531         * doc/posix-functions/printf.texi: Likewise.
4532         * doc/posix-functions/snprintf.texi: Likewise.
4533         * doc/posix-functions/sprintf.texi: Likewise.
4534         * doc/posix-functions/swprintf.texi: Likewise.
4535         * doc/posix-functions/vdprintf.texi: Likewise.
4536         * doc/posix-functions/vfprintf.texi: Likewise.
4537         * doc/posix-functions/vprintf.texi: Likewise.
4538         * doc/posix-functions/vsnprintf.texi: Likewise.
4539         * doc/posix-functions/vsprintf.texi: Likewise.
4540         * doc/glibc-functions/asprintf.texi: Likewise.
4541         * doc/glibc-functions/obstack_printf.texi: Likewise.
4542         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4543         * doc/glibc-functions/vasprintf.texi: Likewise.
4544
4545 2011-09-10  Bruno Haible  <bruno@clisp.org>
4546
4547         nocrash: Add support for native Windows.
4548         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4549
4550 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4551             Bruno Haible  <bruno@clisp.org>
4552
4553         absolute-header, include-next: Add support for MSVC compiler.
4554         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4555         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4556         directory separator in #line directives.
4557         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4558         recognize also backslash as directory separator in #line directives.
4559
4560 2011-09-08  Jim Meyering  <meyering@redhat.com>
4561
4562         maint.mk: mark the post-release commit log with "maint: " prefix
4563         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4564         one-line commit-log summary.
4565
4566 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4567             Bruno Haible  <bruno@clisp.org>
4568
4569         Doc about crypt functions.
4570         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4571         systems.
4572         * doc/posix-functions/encrypt.texi: Likewise.
4573         * doc/posix-functions/setkey.texi: Likewise.
4574
4575 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4576
4577         * lib/gc.h: Fix copyright header.
4578
4579 2011-09-07  Bruno Haible  <bruno@clisp.org>
4580
4581         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4582         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4583         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4584
4585 2011-09-07  Bruno Haible  <bruno@clisp.org>
4586
4587         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4588         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4589         * lib/freopen.c: Likewise.
4590         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4591         * lib/lstat.c: Likewise.
4592         * lib/stat.c: Likewise.
4593         * lib/open.c: Use different syntax for include of <fcntl.h>.
4594         * lib/openat.c: Include fcntl.h again, explicitly.
4595
4596 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4597
4598         parse-datetime: document the newly accepted format
4599         * doc/parse-datetime.texi (Combined date and time of day items):
4600         New section.
4601
4602 2011-09-06  Bruno Haible  <bruno@clisp.org>
4603
4604         acl: Fix a test failure on newer Solaris 10 with ZFS.
4605         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4606         ENOSYS as no ACL.
4607         Reported by Jim Meyering.
4608
4609 2011-09-06  Bruno Haible  <bruno@clisp.org>
4610
4611         acl: Update for AIX >= 5.3 with NFS.
4612         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4613         ENOSYS as no ACL.
4614
4615         acl: Fix a test failure on AIX >= 5.3 with NFS.
4616         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4617         as no ACL.
4618
4619 2011-09-06  Bruno Haible  <bruno@clisp.org>
4620
4621         acl: Fix a test failure on IRIX 6.5 with NFS.
4622         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4623         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4624         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4625         * lib/copy-acl.c (qcopy_acl): Likewise.
4626
4627 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4628
4629         openat: port to AIX 7.1 with large files
4630         AIX 7.1 does a "#define openat open64at" if large files are in use,
4631         so we can't simply #undef openat.  Use the orig_openat trick (similar
4632         to orig_open in lib/open.c) to work around the problem.  Problem
4633         reported by Kevin Brott for GNU tar, in the thread containing
4634         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4635         * lib/openat.c (__need_system_fcntl_h): Define first.
4636         Include <fcntl.h> and <sys/types.h> before undefining.
4637         (orig_openat) [HAVE_OPENAT]: New inline function.
4638         (openat) [HAVE_OPENAT]: Do not undef.
4639         (rpl_openat): Use orig_openat, not openat.
4640
4641 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4642             Bruno Haible  <bruno@clisp.org>
4643
4644         acl: Avoid errors on NonStop Kernel.
4645         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4646         ENOTSUP errors.
4647
4648 2011-09-05  Bruno Haible  <bruno@clisp.org>
4649
4650         acl: Clean up Solaris code.
4651         * lib/acl-internal.h: Remove no-op #if.
4652         * lib/file-has-acl.c: Likewise.
4653         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4654         * lib/copy-acl.c (qcopy_acl): Likewise.
4655
4656 2011-09-05  Bruno Haible  <bruno@clisp.org>
4657
4658         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4659         binaries built on the original Solaris 10.
4660         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4661         trivial.
4662
4663 2011-09-05  Bruno Haible  <bruno@clisp.org>
4664
4665         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4666         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4667         10.
4668         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4669         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4670         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4671         instead of acl_get, facl_get, acl_set, facl_set.
4672
4673 2011-09-05  Bruno Haible  <bruno@clisp.org>
4674
4675         copy-file: Try unit tests on more file systems.
4676         * tests/test-copy-file-1.sh: New file.
4677         * tests/test-copy-file-2.sh: New file.
4678         * modules/copy-file-tests (Files): Add them.
4679         (Makefile.am): Add them to TESTS.
4680
4681         acl: Try unit tests on more file systems.
4682         * tests/test-file-has-acl-1.sh: New file.
4683         * tests/test-file-has-acl-2.sh: New file.
4684         * tests/test-set-mode-acl-1.sh: New file.
4685         * tests/test-set-mode-acl-2.sh: New file.
4686         * tests/test-copy-acl-1.sh: New file.
4687         * tests/test-copy-acl-2.sh: New file.
4688         * modules/acl-tests (Files): Add them.
4689         (Makefile.am): Add them to TESTS.
4690
4691 2011-09-04  Bruno Haible  <bruno@clisp.org>
4692
4693         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4694         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4695         10.
4696         (OLD_ALLOW, OLD_DENY): New macros.
4697         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4698         ACE_ACCESS_ALLOWED_ACE_TYPE.
4699         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4700         ACE_ACCESS_DENIED_ACE_TYPE.
4701         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4702         (NEW_ACE_EXECUTE): Fix value.
4703         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4704         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4705         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4706         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4707         NEW_ACE_SYNCHRONIZE): New macros.
4708         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4709         instead of acl_fromtext, acl_set, facl_set.
4710         Fixes a coreutils/tests/cp/perm failure.
4711
4712 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4713
4714         openat: test for fstatat (..., 0) bug
4715         Further testing with tar suggests that fstatat (..., 0)
4716         does not work in general, on AIX 7.1; see
4717         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4718         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4719         replacement fstatat (which is what older AIX releases were using
4720         anyway).
4721         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4722         use is now changed to orig_fstatat.  This was probably the right
4723         thing to do anyway.
4724         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4725         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4726         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4727         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4728         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4729         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4730         if the bug is found.
4731
4732         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4733         This tests for another fstatat bug on AIX 7.1:
4734         fstatat (AT_FDCWD, ..., 0) does not work.  See
4735         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4736         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4737         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4738         (rpl_fstatat): Adjust so that it works around either (or both)
4739         bugs if present.
4740         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4741
4742 2011-09-03  Karl Berry  <karl@gnu.org>
4743
4744         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4745         in index entries.
4746
4747 2011-09-02  Bruno Haible  <bruno@clisp.org>
4748
4749         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4750         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4751         values of AR, ARFLAGS, RANLIB.
4752         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4753
4754 2011-09-02  Bruno Haible  <bruno@clisp.org>
4755
4756         Find 'ar' program that fits with --host argument.
4757         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4758
4759 2011-09-02  Bruno Haible  <bruno@clisp.org>
4760
4761         tests: init.sh: Support any non-GNU diff.
4762         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4763         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4764         Solaris 8.
4765
4766 2011-09-02  Bruno Haible  <bruno@clisp.org>
4767
4768         tests: init.sh: work also with any non-GNU diff that supports -u
4769         * tests/init.sh: Relax check for diff -u support.
4770         Rather than checking for GNU diff via --version, simply check
4771         for support for -u itself.  Useful at least on OpenBSD 4.9,
4772         AIX 7.1, IRIX 6.5, and Solaris 10.
4773
4774 2011-09-01  Bruno Haible  <bruno@clisp.org>
4775
4776         strtoimax, strtoumax: Document problem on HP-UX 11.
4777         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4778         * doc/posix-functions/strtoumax.texi: Likewise.
4779
4780 2011-09-01  Bruno Haible  <bruno@clisp.org>
4781
4782         strtoumax: Avoid link error on OSF/1 with DTK cc.
4783         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4784         defined as a function.
4785         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4786         strtoumax is defined, not whether it is declared.
4787
4788 2011-09-01  Bruno Haible  <bruno@clisp.org>
4789
4790         strtoimax: Avoid link error on OSF/1 with DTK cc.
4791         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4792         defined as a function.
4793         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4794         strtoimax is defined, not whether it is declared.
4795
4796 2011-09-01  Bruno Haible  <bruno@clisp.org>
4797
4798         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4799         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4800         as a function.
4801         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4802         whether it is declared.
4803
4804 2011-09-01  Bruno Haible  <bruno@clisp.org>
4805
4806         imaxabs: Avoid link error on OSF/1 with DTK cc.
4807         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4808         as a function.
4809         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4810         whether it is declared.
4811
4812 2011-09-01  Bruno Haible  <bruno@clisp.org>
4813
4814         Tests for module 'strtoumax'.
4815         * modules/strtoumax-tests: New file.
4816         * tests/test-strtoumax.c: New file.
4817
4818         Tests for module 'strtoimax'.
4819         * modules/strtoimax-tests: New file.
4820         * tests/test-strtoimax.c: New file.
4821
4822         Tests for module 'imaxdiv'.
4823         * modules/imaxdiv-tests: New file.
4824         * tests/test-imaxdiv.c: New file.
4825
4826         Tests for module 'imaxabs'.
4827         * modules/imaxabs-tests: New file.
4828         * tests/test-imaxabs.c: New file.
4829
4830 2011-09-01  Bruno Haible  <bruno@clisp.org>
4831
4832         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4833         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4834         pthread_create.
4835
4836 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4837
4838         openat: work around AIX 7.1 fstatat issue
4839         This should fix the problem that was not properly fixed
4840         in the previous change, dated 2011-08-30.
4841         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4842         __need_system_stat_h defined.
4843         (orig_fstatat) [HAVE_FSTATAT]: New function.
4844         (rpl_fstatat): Go back to the old way of doing things,
4845         except call orig_fstatat instead of fstatat.
4846         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4847         Remove unnecessary check whether fstatat fills in st_size etc.
4848
4849 2011-09-01  Bruno Haible  <bruno@clisp.org>
4850
4851         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4852         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4853         just include the system's header.
4854
4855 2011-08-31  Jim Meyering  <meyering@redhat.com>
4856
4857         tests: avoid spurious assertion failure in test-float.c on ppc64
4858         * tests/test-float.c (test_long_double): Comment out an assertion,
4859         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4860         with gcc-4.4.4.
4861
4862         maint: indent with spaces, not TABs
4863         I need to get in the habit of running gnulib's "make check".
4864         Both of these would have been caught.
4865         * m4/largefile.m4: Indent with spaces, not TABs.
4866         * lib/parse-datetime.y (iso_8601_time): Likewise.
4867         Spotted by Pádraig Brady.
4868
4869         test-parse-datetime.c: accommodate a relatively strict gcc warning
4870         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4871         to avoid a warning from gcc's -Werror=missing-declarations.
4872         Insert a few spaces-before-funcall-parenthesis.
4873
4874 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4875
4876         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4877         The parser now accepts ISO 8601 date-time strings with "T" as the
4878         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4879         with a space between the date and time strings.  Now it also parses
4880         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4881         variants like "2004-02-29T16:21:42.333-07:00"
4882         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4883         of day representation using the 'T' separator character.
4884         * doc/parse-datetime.texi (General date syntax): replace use of
4885         deprecated --iso-8601 option with --rfc-3339 in example of date
4886         command output formats that can be parsed.
4887         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4888         lib/parse-datetime.y.
4889         (gmt_offset): New function.
4890         (main): Add additional test cases to validate ISO8601 extended
4891         date and time of day parsing.
4892
4893 2011-08-31  Bruno Haible  <bruno@clisp.org>
4894
4895         freopen: Documentation.
4896         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4897         name.
4898         Reported by Claudio Bley <claudio.bley@gmail.com>.
4899
4900 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4901
4902         freopen: Don't crash if the filename argument is NULL.
4903         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4904         NULL.
4905
4906 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4907
4908         openat: work around AIX 7.1 fstatat bug
4909         Problem reported by Kevin Brott for GNU tar, in the thread containing
4910         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4911         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4912         FSTATAT_ST_SIZE_ETC_BROKEN.
4913         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4914         rpl_fstatat.
4915         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4916         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4917         AC_CHECK_FUNCS_ONCE for fstatat.
4918         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4919         fchmodat, mkdirat, openat and unlinkat.
4920
4921 2011-08-30  Bruno Haible  <bruno@clisp.org>
4922
4923         Avoid endless recursions if config.h includes some header files.
4924         * lib/fopen.c (__need_FILE): Define already before including config.h.
4925         * lib/freopen.c (__need_FILE): Likewise.
4926         * lib/open.c (__need_system_fcntl_h): Likewise.
4927         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4928         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4929         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4930
4931 2011-08-25  Karl Berry  <karl@gnu.org>
4932
4933         * config/srclist.txt (ylwrap): new try.
4934         * build-aux/ylwrap: new file.
4935
4936 2011-08-23  Bruno Haible  <bruno@clisp.org>
4937
4938         tmpdir: Use a good default directory on native Windows.
4939         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4940         (P_tmpdir): Default to _P_tmpdir on native Windows.
4941         (path_search): On native Windows, try the value returned by GetTempPath
4942         before trying P_tmpdir.
4943         * modules/tmpdir (Depends-on): Add pathmax.
4944         Suggested by John Darrington <john@darrington.wattle.id.au>.
4945
4946 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4947
4948         doc: fix typo in README-release
4949         * top/README-release: Capitalize first word of a sentence.
4950
4951 2011-08-19  Jim Meyering  <meyering@redhat.com>
4952
4953         fts: do not exhaust memory when processing million-entry directories
4954         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4955         directory would require about 256*N bytes of memory.  Thus, it was
4956         easy to construct a directory too large to be processed by any of
4957         those tools.  With this change, fts' maximum memory utilization is
4958         now limited to around 30MB.
4959         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4960         (fts_read): When we've processed the final entry (i.e., when
4961         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4962         using the parent entry to read any remaining entries.  Dispatch
4963         depending on what fts_build returns:
4964         - NULL+stop, aka failure: stop
4965         - NULL otherwise: move up in the dir hierarchy
4966         - non-NULL: handle this new entry
4967         (fts_build): Declare and use new local, continue_readdir.
4968         Prepare to be called from fts_read, when the entries
4969         from a partially-read directory have just been exhausted.
4970         In that case, we'll skip the opendir and instead use the parent's
4971         fts_dirp and derive dir_fd from that.
4972         Finally, in the readdir loop, if we read max_entries entries,
4973         exit the loop ensuring *not* to call closedir.  This is required
4974         so that fts_dirp can be reused on a subsequent call.
4975         Prompted by Ben England's report of memory exhaustion in find
4976         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4977
4978         maint: fts: move decl of `dp' down into while loop; split a long line
4979         * lib/fts.c (fts_build): No semantic change.
4980
4981         fts: add/use new struct member, fts_dirp
4982         We are about to use this to manage any directory with
4983         too many entries to read all of them into memory at once.
4984         To do that, we'll need to save the DIR* pointer in each
4985         affected FTSENT struct.
4986         * lib/fts_.h: Include <dirent.h>.
4987         (struct FTSENT) [fts_dirp]: New member.
4988         * lib/fts.c (closedir_and_clear): Define.
4989         Use it in place of closedir so that we are sure to
4990         clear the new fts_dirp member when done with it.
4991         (fts_alloc): Initialize the new member.
4992         (fts_lfree): Free, if needed.
4993
4994         maint: fts: give __opendir2 a new parameter and rename
4995         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4996         than surreptitiously using sole caller's "dir_fd".
4997         (fts_opendir): Rename from __opendir2.
4998
4999         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5000         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5001
5002         maint: fts.c: correct off-by-one indentation
5003         * lib/fts.c (fts_build): Correct indentation, change style
5004         of a couple of block comments, and bracing style.
5005
5006         maint: fts.c: move __opendir2 #define "up" out of function body
5007         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5008
5009         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5010         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5011         out for a long time and besides was useful only on BSD systems.
5012
5013 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5014
5015         regex: port to Stratus OpenVOS
5016         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5017         define to empty, rather than attempting nonportable optimizations.
5018         Problem reported by Paul Green in:
5019         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5020         and fix suggested by Eric Blake in:
5021         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5022
5023 2011-08-17  Eric Blake  <eblake@redhat.com>
5024
5025         getcwd: fix test failures on mingw
5026         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5027         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5028         test if long directory cannot be created, and allow mingw errno.
5029
5030         getcwd-lgpl: fix m4 to match relaxed test for BSD
5031         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5032         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5033         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5034         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5035         signature problem.
5036
5037         getcwd: fix compilation on mingw64
5038         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5039         getcwd.
5040         Reported by Marc-André Lureau.
5041
5042         pipe2: silence compiler warning
5043         * lib/pipe2.c (pipe2): Hide label if it is not used.
5044
5045 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5046
5047         relocatable-prog: fix link error
5048         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5049         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5050         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5051         into modules/relocatable-lib without noticing that
5052         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5053         also needs to build relocatable.c.
5054
5055 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5056
5057         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5058         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5059         shell code: it contained a 'break' that was not in a loop.
5060         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5061         via a shell-language loop; this may have been true in old Autoconf
5062         versions, but it's not true in Autoconf 2.68.  I found this bug
5063         when testing coreutils git on Solaris 8, whose shell complains
5064         about the syntax error.
5065
5066 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5067
5068         * lib/base64.c: Fix comment to reference RFC 4648.
5069         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5070         <gvtulder@gmail.com>.
5071
5072 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5073
5074         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5075
5076         po/Makefile.in.in: fix make -q problem
5077         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5078         rule, since there's no file named 'check-macro-version' and its
5079         use as a file breaks make -q.
5080         (all): Don't depend on check-macro-version.
5081         (CHECK_MACRO_VERSION): New macro.
5082         (stamp-po): Use it.
5083
5084         configmake: fix make -q problem
5085         * modules/configmake (configmake.h): Update configmake.h's time stamp
5086         even if the file does not change.  Otherwise, 'make -q' fails.
5087         Problem reported by Simon Josefsson in
5088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5089
5090 2011-08-11  Jim Meyering  <meyering@redhat.com>
5091
5092         git-version-gen: correct the advice in a comment
5093         * build-aux/git-version-gen: Correct comment.
5094         Don't recommend to list .tarball-version in .gitignore.
5095
5096 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5097
5098         base64: fix off-by-one buffer size bug
5099         Problem and (trivial) fix reported by Gijs van Tulder in
5100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5101         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5102         * tests/test-base64.c (main): Catch the bug.
5103
5104 2011-08-10  Eric Blake  <eblake@redhat.com>
5105
5106         closein: correct comments
5107         * lib/closein.c (close_stdin): Improve comments.
5108
5109 2011-08-09  Bruno Haible  <bruno@clisp.org>
5110
5111         More tests for 'fseeko'.
5112         * tests/test-fseeko3.c: New file, from Eric Blake.
5113         * tests/test-fseeko3.sh: New file.
5114         * modules/fseeko-tests (Files): Add them.
5115         (TESTS): Add test-fseeko3.sh.
5116         (check_PROGRAMS): Add test-fseeko3.
5117
5118 2011-08-09  Eric Blake  <eblake@redhat.com>
5119
5120         fseeko: remove unneeded hack
5121         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5122
5123         fseeko: fix bug on glibc
5124         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5125         Reported by John W. Eaton.
5126
5127 2011-08-08  Bruno Haible  <bruno@clisp.org>
5128
5129         unictype/base: Fix interoperability with preinstalled libunistring.
5130         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5131         Reported by Simon Josefsson.
5132
5133 2011-08-08  Bruno Haible  <bruno@clisp.org>
5134
5135         iswblank: Detect declaration correctly.
5136         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5137         AC_CHECK_DECLS invocation.
5138
5139 2011-08-08  Bruno Haible  <bruno@clisp.org>
5140
5141         tcgetsid: Detect declaration correctly.
5142         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5143         AC_CHECK_DECLS invocation.
5144         Reported by Simon Josefsson.
5145
5146 2011-08-08  Eric Blake  <eblake@redhat.com>
5147
5148         largefile: fix typo that regressed large file support
5149         * modules/largefile (configure.ac-early): Fix section name.
5150
5151 2011-08-06  Karl Berry  <karl@gnu.org>
5152
5153         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5154         a separate module.
5155
5156 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5157
5158         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5159         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5160         get prototype for free.
5161
5162 2011-08-04  Bruno Haible  <bruno@clisp.org>
5163
5164         Tests for module 'pathmax'.
5165         * modules/pathmax-tests: New file.
5166         * tests/test-pathmax.c: New file.
5167
5168         canonicalize-lgpl: Support larger filenames on the Hurd.
5169         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5170         Reported by Paul Eggert.
5171
5172         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5173         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5174         * lib/chdir-long.h: Include pathmax.h.
5175         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5176         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5177         (PATH_MAX): Remove code that is done by pathmax.h.
5178         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5179         * lib/tmpfile.c: Add a comment.
5180         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5181         * modules/chdir-long (Depends-on): Add pathmax.
5182         * modules/getcwd (Depends-on): Add pathmax.
5183         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5184         is not defined.
5185         * doc/posix-headers/limits.texi: Mention the pathmax module.
5186         * NEWS: Mention the change.
5187
5188 2011-08-02  Bruno Haible  <bruno@clisp.org>
5189
5190         pthread_sigmask: Actually use results of gl_THREADLIB.
5191         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5192         gl_THREADLIB, not gl_[]THREADLIB.
5193         Reported by Eric Blake.
5194
5195 2011-08-02  Jim Meyering  <meyering@redhat.com>
5196
5197         maint.mk: relax the default _gl_TS_function_match regexp
5198         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5199         space between function name and "(" in an "extern" declaration.
5200         That would fail to match a decl with no space there: extern void foo();
5201
5202 2011-07-31  Iain Nicol  <iain@thenicols.net>
5203
5204         git-version-gen: document that EXTRA_DIST must include .version
5205         * build-aux/git-version-gen: In the how-to-use comment, document
5206         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5207         will fail when run from an unpacked distribution tarball.
5208
5209 2011-08-01  Bruno Haible  <bruno@clisp.org>
5210
5211         wctype-h: Fix last change.
5212         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5213         REPLACE_TOWLOWER to 0.
5214         Reported by Sam Steingold <sds@gnu.org>.
5215
5216 2011-07-31  Bruno Haible  <bruno@clisp.org>
5217
5218         frexpl: Update autoconf test.
5219         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5220         according to changes of 2011-06-20.
5221
5222 2011-07-31  Bruno Haible  <bruno@clisp.org>
5223
5224         sys_utsname: Add support for Minix.
5225         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5226         <sys/utsname.h>.
5227         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5228         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5229
5230 2011-07-31  Bruno Haible  <bruno@clisp.org>
5231
5232         strings: Add support for Minix.
5233         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5234         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5235         * doc/posix-headers/strings.texi: Document the Minix problem.
5236
5237 2011-07-31  Bruno Haible  <bruno@clisp.org>
5238
5239         wctype-h: Add support for Minix.
5240         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5241         REPLACE_TOWLOWER.
5242         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5243         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5244         REPLACE_ISWCNTRL.
5245
5246 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5247
5248         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5249         This is a performance improvement for 64-bit hosts: it causes the
5250         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5251
5252 2011-07-31  Bruno Haible  <bruno@clisp.org>
5253
5254         stdioext: Add support for Minix.
5255         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5256         * lib/fpurge.c (fpurge): Likewise.
5257         * lib/freadahead.c (freadahead): Likewise.
5258         * lib/freadable.c (freadable): Likewise.
5259         * lib/freading.c (freading): Likewise.
5260         * lib/freadptr.c (freadptr): Likewise.
5261         * lib/freadseek.c (freadptrinc): Likewise.
5262         * lib/fseeko.c (rpl_fseeko): Likewise.
5263         * lib/fseterr.c (fseterr): Likewise.
5264         * lib/fwritable.c (fwritable): Likewise.
5265         * lib/fwriting.c (fwriting): Likewise.
5266         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5267         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5268
5269 2011-07-31  Bruno Haible  <bruno@clisp.org>
5270
5271         errno: Port to Minix.
5272         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5273         ECONNABORTED are defined.
5274         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5275         GNULIB_defined_ECONNABORTED): New macros.
5276         * lib/strerror-override.h (strerror_override): Test also
5277         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5278         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5279         ECONNABORTED.
5280         * doc/posix-headers/errno.texi: Mention the Minix problem.
5281
5282 2011-07-31  Bruno Haible  <bruno@clisp.org>
5283
5284         Work around declaration collisions on Minix.
5285         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5286         defined, set REPLACE_MBSINIT.
5287         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5288         defined, set REPLACE_MBRTOWC.
5289         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5290         set REPLACE_MBRLEN.
5291         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5292         defined, set REPLACE_MBSRTOWCS.
5293         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5294         defined, set REPLACE_WCRTOMB.
5295         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5296         defined, set REPLACE_WCSRTOMBS.
5297
5298 2011-07-31  Bruno Haible  <bruno@clisp.org>
5299
5300         Add support for Minix with ACK compiler.
5301         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5302         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5303         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5304
5305 2011-07-31  Bruno Haible  <bruno@clisp.org>
5306
5307         Documentation about Minix.
5308         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5309         * doc/glibc-headers/*.texi: Likewise.
5310         * doc/posix-functions/*.texi: Likewise.
5311         * doc/glibc-functions/*.texi: Likewise.
5312
5313 2011-07-31  Bruno Haible  <bruno@clisp.org>
5314
5315         snippet/warn-on-use: Fix indentation.
5316         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5317
5318 2011-07-25  Jim Meyering  <meyering@redhat.com>
5319
5320         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5321         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5322         commands.
5323
5324 2011-07-27  Jim Meyering  <meyering@redhat.com>
5325
5326         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5327         * top/maint.mk (gl_extract_significant_defines_): Now that
5328         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5329         gnulib/lib/signal.in.h, and now that we recommend to
5330         define-if-undefined those two symbols in application code,
5331         we must filter them out of the "significant" list.
5332         This avoids a "make syntax-check" failure in coreutils.
5333
5334 2011-07-26  Eric Blake  <eblake@redhat.com>
5335
5336         warnings: add comments about previous patch
5337         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5338         * m4/include_next.m4: Likewise.
5339         * m4/warn-on-use.m4: Likewise.
5340         * m4/warnings.m4: Likewise, and simplify use.
5341         Suggested by Stefano Lattarini.
5342
5343         include-next, warnings: support older autoconf
5344         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5345         AS_VAR_PUSHDEF in a way that works with older autoconf.
5346         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5347         Reported by Daniel P. Berrange.
5348
5349 2011-07-25  Bruno Haible  <bruno@clisp.org>
5350
5351         fseek, ftell: Fix doc.
5352         * doc/posix-functions/fseek.texi: Reword statement about
5353         AC_SYS_LARGEFILE.
5354         * doc/posix-functions/ftell.texi: Likewise.
5355
5356 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5357             Bruno Haible  <bruno@clisp.org>
5358
5359         Add dependencies to the 'largefile' module.
5360         * modules/fopen (Depends-on): Add 'largefile'.
5361         * modules/freopen (Depends-on): Likewise.
5362         * modules/fseeko (Depends-on): Likewise.
5363         * modules/ftello (Depends-on): Likewise.
5364         * modules/glob (Depends-on): Likewise.
5365         * modules/lseek (Depends-on): Likewise.
5366         * modules/lstat (Depends-on): Likewise.
5367         * modules/mkostemp (Depends-on): Likewise.
5368         * modules/mkostemps (Depends-on): Likewise.
5369         * modules/mkstemp (Depends-on): Likewise.
5370         * modules/mkstemps (Depends-on): Likewise.
5371         * modules/open (Depends-on): Likewise.
5372         * modules/openat (Depends-on): Likewise.
5373         * modules/pread (Depends-on): Likewise.
5374         * modules/pwrite (Depends-on): Likewise.
5375         * modules/scandir (Depends-on): Likewise.
5376         * modules/stat (Depends-on): Likewise.
5377         * modules/tmpfile (Depends-on): Likewise.
5378         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5379         since the containing module now depends on the largefile module.
5380         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5381         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5382         off_t is fixed by gnulib.
5383         * doc/posix-functions/freopen.texi: Likewise.
5384         * doc/posix-functions/fseeko.texi: Likewise.
5385         * doc/posix-functions/fstatat.texi: Likewise.
5386         * doc/posix-functions/ftello.texi: Likewise.
5387         * doc/posix-functions/glob.texi: Likewise.
5388         * doc/posix-functions/lseek.texi: Likewise.
5389         * doc/posix-functions/lstat.texi: Likewise.
5390         * doc/posix-functions/mkstemp.texi: Likewise.
5391         * doc/posix-functions/open.texi: Likewise.
5392         * doc/posix-functions/openat.texi: Likewise.
5393         * doc/posix-functions/pread.texi: Likewise.
5394         * doc/posix-functions/pwrite.texi: Likewise.
5395         * doc/posix-functions/scandir.texi: Likewise.
5396         * doc/posix-functions/stat.texi: Likewise.
5397         * doc/posix-functions/tmpfile.texi: Likewise.
5398         * doc/glibc-functions/mkostemp.texi: Likewise.
5399         * doc/glibc-functions/mkostemps.texi: Likewise.
5400         * doc/glibc-functions/mkstemps.texi: Likewise.
5401
5402 2011-07-25  Bruno Haible  <bruno@clisp.org>
5403
5404         fcntl: Move AC_LIBOBJ invocation to module description.
5405         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5406         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5407
5408         fcntl: Remove call-in from fchdir.m4.
5409         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5410         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5411
5412         dup3: Remove potential call-in from fchdir.m4.
5413         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5414         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5415
5416         dup2: Move AC_LIBOBJ invocation to module description.
5417         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5418         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5419         Don't invoke AC_LIBOBJ.
5420         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5421
5422         dup2: Remove call-in from fchdir.m4.
5423         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5424         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5425
5426         fclose: Move AC_LIBOBJ invocation to module description.
5427         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5428         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5429         to 1.
5430         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5431
5432         fclose: Remove call-in from close.m4.
5433         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5434         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5435
5436         close: Move AC_LIBOBJ invocation to module description.
5437         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5438         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5439         1.
5440         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5441
5442         close: Remove call-in from fchdir.m4.
5443         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5444         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5445
5446         open: Move AC_LIBOBJ invocation to module description.
5447         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5448         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5449         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5450
5451         open: Remove call-in from fchdir.m4.
5452         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5453         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5454
5455         fchdir: Start to remove gl_REPLACE_* idiom.
5456         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5457         (gl_FUNC_FCHDIR): Invoke it.
5458
5459 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5460
5461         * lib/ftell.c (ftell): Comment out cast.
5462
5463         close: use gl_REPLACE_FCLOSE only if defined
5464         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5465         is defined.  The close module doesn't depend on the fclose module
5466         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5468         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5469
5470 2011-07-24  Jim Meyering  <meyering@redhat.com>
5471
5472         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5473         * tests/test-select.h (test_function): Declare as "static".
5474
5475 2011-07-24  Bruno Haible  <bruno@clisp.org>
5476
5477         doc: Mention the effects of AC_SYS_LARGEFILE.
5478         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5479         on this function.
5480         * doc/posix-functions/aio_error.texi: Likewise.
5481         * doc/posix-functions/aio_fsync.texi: Likewise.
5482         * doc/posix-functions/aio_read.texi: Likewise.
5483         * doc/posix-functions/aio_return.texi: Likewise.
5484         * doc/posix-functions/aio_suspend.texi: Likewise.
5485         * doc/posix-functions/aio_write.texi: Likewise.
5486         * doc/posix-functions/fgetpos.texi: Likewise.
5487         * doc/posix-functions/fopen.texi: Likewise.
5488         * doc/posix-functions/freopen.texi: Likewise.
5489         * doc/posix-functions/fsetpos.texi: Likewise.
5490         * doc/posix-functions/fstatvfs.texi: Likewise.
5491         * doc/posix-functions/ftruncate.texi: Likewise.
5492         * doc/posix-functions/ftw.texi: Likewise.
5493         * doc/posix-functions/getrlimit.texi: Likewise.
5494         * doc/posix-functions/glob.texi: Likewise.
5495         * doc/posix-functions/lio_listio.texi: Likewise.
5496         * doc/posix-functions/lockf.texi: Likewise.
5497         * doc/posix-functions/mkstemp.texi: Likewise.
5498         * doc/posix-functions/mmap.texi: Likewise.
5499         * doc/posix-functions/nftw.texi: Likewise.
5500         * doc/posix-functions/openat.texi: Likewise.
5501         * doc/posix-functions/opendir.texi: Likewise.
5502         * doc/posix-functions/posix_fadvise.texi: Likewise.
5503         * doc/posix-functions/posix_fallocate.texi: Likewise.
5504         * doc/posix-functions/pread.texi: Likewise.
5505         * doc/posix-functions/pwrite.texi: Likewise.
5506         * doc/posix-functions/readdir.texi: Likewise.
5507         * doc/posix-functions/readdir_r.texi: Likewise.
5508         * doc/posix-functions/rewinddir.texi: Likewise.
5509         * doc/posix-functions/scandir.texi: Likewise.
5510         * doc/posix-functions/seekdir.texi: Likewise.
5511         * doc/posix-functions/setrlimit.texi: Likewise.
5512         * doc/posix-functions/statvfs.texi: Likewise.
5513         * doc/posix-functions/telldir.texi: Likewise.
5514         * doc/posix-functions/tmpfile.texi: Likewise.
5515         * doc/posix-functions/truncate.texi: Likewise.
5516         * doc/glibc-functions/fallocate.texi: Likewise.
5517         * doc/glibc-functions/fstatfs.texi: Likewise.
5518         * doc/glibc-functions/fts_children.texi: Likewise.
5519         * doc/glibc-functions/fts_read.texi: Likewise.
5520         * doc/glibc-functions/getdirentries.texi: Likewise.
5521         * doc/glibc-functions/mkostemp.texi: Likewise.
5522         * doc/glibc-functions/mkostemps.texi: Likewise.
5523         * doc/glibc-functions/mkstemps.texi: Likewise.
5524         * doc/glibc-functions/preadv.texi: Likewise.
5525         * doc/glibc-functions/pwritev.texi: Likewise.
5526         * doc/glibc-functions/sendfile.texi: Likewise.
5527         * doc/glibc-functions/statfs.texi: Likewise.
5528
5529 2011-07-24  Bruno Haible  <bruno@clisp.org>
5530
5531         doc: Fix typo.
5532         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5533
5534 2011-07-24  Bruno Haible  <bruno@clisp.org>
5535
5536         doc: Mention fsusage.
5537         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5538
5539 2011-07-24  Bruno Haible  <bruno@clisp.org>
5540
5541         doc: Mention new glibc headers and functions.
5542         * doc/glibc-headers/gshadow.texi: New file.
5543         * doc/glibc-functions/endsgent.texi: New file.
5544         * doc/glibc-functions/fgetsgent.texi: New file.
5545         * doc/glibc-functions/fgetsgent_r.texi: New file.
5546         * doc/glibc-functions/getsgent.texi: New file.
5547         * doc/glibc-functions/getsgent_r.texi: New file.
5548         * doc/glibc-functions/getsgnam.texi: New file.
5549         * doc/glibc-functions/getsgnam_r.texi: New file.
5550         * doc/glibc-functions/putsgent.texi: New file.
5551         * doc/glibc-functions/setsgent.texi: New file.
5552         * doc/glibc-functions/sgetsgent.texi: New file.
5553         * doc/glibc-functions/sgetsgent_r.texi: New file.
5554         * doc/glibc-functions/malloc_info.texi: New file.
5555         * doc/glibc-functions/preadv.texi: New file.
5556         * doc/glibc-functions/pwritev.texi: New file.
5557         * doc/glibc-functions/register_printf_modifier.texi: New file.
5558         * doc/glibc-functions/register_printf_specifier.texi: New file.
5559         * doc/glibc-functions/register_printf_type.texi: New file.
5560         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5561         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5562         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5563         * doc/glibc-functions/pthread_getname_np.texi: New file.
5564         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5565         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5566         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5567         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5568         * doc/glibc-functions/pthread_setname_np.texi: New file.
5569         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5570         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5571         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5572         * doc/glibc-functions/qsort_r.texi: New file.
5573         * doc/glibc-functions/quick_exit.texi: New file.
5574         * doc/glibc-functions/syncfs.texi: New file.
5575         * doc/gnulib.texi: Include them.
5576         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5577         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5578         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5579         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5580         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5581         * doc/glibc-functions/execvpe.texi: Likewise.
5582
5583 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5584
5585         ftell: don't include <unistd.h>
5586         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5587         guaranteed to define off_t, and the ftell module depends on the
5588         stdio module.
5589
5590         ftell: do not assume wraparound signed arithmetic
5591         * lib/ftell.c: Include <limits.h>.
5592         (ftell): Don't assume wraparound signed arithmetic.
5593
5594 2011-07-24  Bruno Haible  <bruno@clisp.org>
5595
5596         close: No longer depend on module 'fclose'.
5597         * modules/close (Depends-on): Remove fclose.
5598         * NEWS: Mention the change.
5599         Suggested by Sam Steingold <sds@gnu.org>.
5600
5601 2011-07-24  Bruno Haible  <bruno@clisp.org>
5602
5603         fsusage: Enable large volume support on AIX >= 5.2.
5604         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5605         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5606         instead of STAT_STATVFS.
5607         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5608
5609         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5610         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5611         f_blocks field only on MacOS X.
5612
5613         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5614         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5615         * modules/fsusage (Depends-on): Add largefile.
5616
5617 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5618
5619         * README: Modernize discussion of signed integers.
5620         Assuming overflow wraparound is no longer safe.
5621         Mention ones' complement and signed magnitude.
5622
5623 2011-07-22  Bruno Haible  <bruno@clisp.org>
5624
5625         select tests, pselect tests: Refactor.
5626         * tests/test-select.h: New file, extracted from tests/test-select.c.
5627         (select_fn): New type.
5628         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5629         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5630         test_pipe): Add my_select argument.
5631         (test_function): Renamed from main. Add my_select argument.
5632         * tests/test-select.c: Move most code to tests/test-select.h. Include
5633         test-select.h.
5634         * modules/select-tests (Files): Add tests/test-select.h.
5635         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5636         (my_select, main): New functions.
5637         * modules/pselect-tests (Files): Add tests/test-select.h,
5638         tests/macros.h, tests/signature.h.
5639         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5640         (configure.ac): Check for <sys/wait.h>.
5641
5642 2011-07-22  Bruno Haible  <bruno@clisp.org>
5643
5644         sys_select tests: Check the signature of FD_*.
5645         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5646         signature tests from here...
5647         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5648         here.
5649         * modules/sys_select-tests (Files): Add tests/signature.h.
5650
5651 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5652
5653         largefile: new module, replacing large-inode
5654         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5655         * MODULES.html.sh: Add largefile, remove large-inode.
5656         * modules/largefile, m4/largefile.m4: New files.
5657         * modules/large-inode, m4/large-inode.m4: Remove.
5658
5659         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5660         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5661         implementations that use only 32 bits to count blocks.
5662         On typical hosts with 1024-byte blocks, this fails with file
5663         systems as small as 4 TiB.  Problem reported by Herb Wartens
5664         <http://debbugs.gnu.org/9140> and this should also fix a similar
5665         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5666
5667         large-inode: New module
5668         * MODULES.html.sh: Add it.
5669         * modules/large-inode, m4/large-inode.m4: New files.
5670
5671         extensions: Enable extensions on MacOS X 10.5 and later.
5672         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5673
5674 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5675
5676         file-has-acl: use acl_extended_file_nofollow if available
5677         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5678         (acl_extended_file): New macro.
5679         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5680         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5681
5682 2011-07-21  Bruno Haible  <bruno@clisp.org>
5683
5684         Declare system functions in a way that works with C++.
5685         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5686         declare fdopendir as extern "C".
5687         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5688         declare frexpl as extern "C".
5689         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5690         declare gai_strerror as extern "C".
5691         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5692         programs, declare gai_strerror as extern "C".
5693         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5694         declare getlogin_r as extern "C".
5695         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5696         as extern "C".
5697         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5698         declare ldexpl as extern "C".
5699         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5700         as extern "C".
5701         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5702         program, declare getmntinfo as extern "C".
5703         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5704         stpncpy as extern "C".
5705         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5706         program, declare __xpg_strerror_r as extern "C".
5707         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5708         strndup as extern "C".
5709         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5710         declare memset and bzero as extern "C".
5711         Reported by Sam Steingold <sds@gnu.org>.
5712
5713 2011-07-12  Jim Meyering  <meyering@redhat.com>
5714
5715         maint.mk: prohibit inclusion of "verify.h" without use
5716         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5717
5718 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5719
5720         timer-time: A new module to check for timer_settime()
5721         * m4/timer_time.m4: Check for the posix function.
5722         * modules/timer-time: Add the new module.
5723         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5724         Mention it.
5725
5726 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5727             Bruno Haible  <bruno@clisp.org>
5728
5729         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5730         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5731         not defined, assume POSIX threads and look for pthread_sigmask in
5732         $LIBS, without changing $CPPFLAGS.
5733
5734 2011-07-19  Bruno Haible  <bruno@clisp.org>
5735
5736         strstr: Update cross-compilation guess.
5737         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5738         CPUs, guess no, in view of glibc
5739         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5740         Suggested by Eric Blake. Reported by Reuben Thomas.
5741
5742 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5743
5744         getopt-gnu: suppress core dumps from detection code
5745         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5746         to suppress core dumps that may well occur on glibc systems.
5747         * modules/getopt-gnu: Depend on nocrash.
5748
5749 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5750
5751         pthread_sigmask: ensure usleep is declared
5752         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5753         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5754
5755 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5756
5757         doc: Document NonStop portability issues.
5758         * doc/posix-functions/sigaction.texi (sigaction):
5759         * doc/posix-headers/signal.texi (signal.h):
5760         Document NonStop.  See Joachim Schmitz in
5761         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5762
5763 2011-07-15  Bruno Haible  <bruno@clisp.org>
5764
5765         ffsl, ffsll: Avoid unportable behaviour.
5766         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5767
5768 2011-07-15  Bruno Haible  <bruno@clisp.org>
5769
5770         ffs: More tests.
5771         * tests/test-ffs.c (NBITS): New macro.
5772         (main): Add more tests.
5773         * tests/test-ffsl.c (NBITS): New macro.
5774         (main): Add more tests.
5775         * tests/test-ffsll.c (NBITS): New macro.
5776         (main): Add more tests.
5777
5778 2011-07-15  Eric Blake  <eblake@redhat.com>
5779
5780         ffsl, ffsll: new modules
5781         * modules/ffsl: New file.
5782         * modules/ffsll: Likewise.
5783         * m4/ffsl.m4: Likewise.
5784         * m4/ffsll.m4: Likewise.
5785         * lib/ffsl.c: Likewise.
5786         * lib/ffsl.h: Likewise.
5787         * lib/ffsll.c: Likewise.
5788         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5789         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5790         * modules/string (Makefile.am): Substitute witnesses.
5791         * lib/strings.in.h (ffsl, ffsll): Declare.
5792         * modules/ffsl-tests: New test file.
5793         * modules/ffsll-tests: Likewise.
5794         * tests/test-ffsl.c: Likewise.
5795         * tests/test-ffsll.c: Likewise.
5796         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5797         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5798         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5799
5800         ffs: fix m4 prerequisite
5801         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5802
5803         ffs: avoid undefined behavior
5804         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5805         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5806         Reported by Bruno Haible.
5807
5808 2011-07-12  Bruno Haible  <bruno@clisp.org>
5809
5810         pthread_sigmask: Rely on module 'threadlib'.
5811         * modules/pthread_sigmask (Depends-on): Add threadlib.
5812         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5813         is defined.
5814
5815 2011-07-12  Bruno Haible  <bruno@clisp.org>
5816
5817         regex: Depend on module 'strcase'.
5818         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5819
5820 2011-07-12  Jim Meyering  <meyering@redhat.com>
5821
5822         warn-on-use: fix typo in file name
5823         * modules/snippet/warn-on-use (Files): Correct file name:
5824         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5825
5826 2011-07-12  Bruno Haible  <bruno@clisp.org>
5827
5828         strings: Document module.
5829         * doc/posix-headers/strings.texi: Mention module 'strings'.
5830
5831 2011-07-12  Bruno Haible  <bruno@clisp.org>
5832
5833         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5834         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5835         (Files, Makefile.am): Update.
5836         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5837         * modules/stdlib (Depends-on): Update.
5838
5839 2011-07-12  Bruno Haible  <bruno@clisp.org>
5840
5841         * NEWS: Mention the changes.
5842
5843         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5844         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5845         (Files, Makefile.am): Update.
5846         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5847         * modules/arpa_inet (Depends-on): Update.
5848         * modules/ctype (Depends-on): Update.
5849         * modules/dirent (Depends-on): Update.
5850         * modules/fcntl-h (Depends-on): Update.
5851         * modules/glob (Depends-on): Update.
5852         * modules/iconv-h (Depends-on): Update.
5853         * modules/inttypes-incomplete (Depends-on): Update.
5854         * modules/langinfo (Depends-on): Update.
5855         * modules/locale (Depends-on): Update.
5856         * modules/math (Depends-on): Update.
5857         * modules/netdb (Depends-on): Update.
5858         * modules/poll-h (Depends-on): Update.
5859         * modules/pty (Depends-on): Update.
5860         * modules/search (Depends-on): Update.
5861         * modules/signal (Depends-on): Update.
5862         * modules/spawn (Depends-on): Update.
5863         * modules/stdio (Depends-on): Update.
5864         * modules/stdlib (Depends-on): Update.
5865         * modules/string (Depends-on): Update.
5866         * modules/strings (Depends-on): Update.
5867         * modules/sys_file (Depends-on): Update.
5868         * modules/sys_ioctl (Depends-on): Update.
5869         * modules/sys_select (Depends-on): Update.
5870         * modules/sys_socket (Depends-on): Update.
5871         * modules/sys_stat (Depends-on): Update.
5872         * modules/sys_time (Depends-on): Update.
5873         * modules/sys_times (Depends-on): Update.
5874         * modules/sys_utsname (Depends-on): Update.
5875         * modules/sys_wait (Depends-on): Update.
5876         * modules/termios (Depends-on): Update.
5877         * modules/time (Depends-on): Update.
5878         * modules/unistd (Depends-on): Update.
5879         * modules/wchar (Depends-on): Update.
5880         * modules/wctype-h (Depends-on): Update.
5881         * MODULES.html.sh (Support for building libraries and executables):
5882         Update.
5883
5884         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5885         * modules/snippet/unused-parameter: Renamed from
5886         modules/unused-parameter.
5887         (Files, Makefile.am): Update.
5888         * build-aux/snippet/unused-parameter.h: Renamed from
5889         build-aux/unused-parameter.h.
5890         * modules/selinux-h (Depends-on): Update.
5891         * modules/unistr/base (Depends-on): Update.
5892         * MODULES.html.sh (Core language properties): Update.
5893
5894         Rename module 'link-warning' to 'snippet/link-warning'.
5895         * modules/snippet/link-warning: Renamed from modules/link-warning.
5896         (Files, Makefile.am): Update.
5897         * build-aux/snippet/link-warning.h: Renamed from
5898         build-aux/link-warning.h.
5899         * MODULES.html.sh (Support for building libraries and executables):
5900         Update.
5901
5902         Rename module 'c++defs' to 'snippet/c++defs'.
5903         * modules/snippet/c++defs: Renamed from modules/c++defs.
5904         (Files, Makefile.am): Update.
5905         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5906         * modules/arpa_inet (Depends-on): Update.
5907         * modules/ctype (Depends-on): Update.
5908         * modules/dirent (Depends-on): Update.
5909         * modules/fcntl-h (Depends-on): Update.
5910         * modules/glob (Depends-on): Update.
5911         * modules/iconv-h (Depends-on): Update.
5912         * modules/langinfo (Depends-on): Update.
5913         * modules/locale (Depends-on): Update.
5914         * modules/math (Depends-on): Update.
5915         * modules/netdb (Depends-on): Update.
5916         * modules/poll-h (Depends-on): Update.
5917         * modules/pty (Depends-on): Update.
5918         * modules/search (Depends-on): Update.
5919         * modules/signal (Depends-on): Update.
5920         * modules/spawn (Depends-on): Update.
5921         * modules/stdio (Depends-on): Update.
5922         * modules/stdlib (Depends-on): Update.
5923         * modules/string (Depends-on): Update.
5924         * modules/strings (Depends-on): Update.
5925         * modules/sys_ioctl (Depends-on): Update.
5926         * modules/sys_select (Depends-on): Update.
5927         * modules/sys_socket (Depends-on): Update.
5928         * modules/sys_stat (Depends-on): Update.
5929         * modules/sys_time (Depends-on): Update.
5930         * modules/sys_wait (Depends-on): Update.
5931         * modules/termios (Depends-on): Update.
5932         * modules/time (Depends-on): Update.
5933         * modules/unistd (Depends-on): Update.
5934         * modules/wchar (Depends-on): Update.
5935         * modules/wctype-h (Depends-on): Update.
5936
5937         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5938         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5939         (Files, Makefile.am): Update.
5940         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5941         * modules/argv-iter (Depends-on): Update.
5942         * modules/arpa_inet (Depends-on): Update.
5943         * modules/dirent (Depends-on): Update.
5944         * modules/fcntl-h (Depends-on): Update.
5945         * modules/fnmatch (Depends-on): Update.
5946         * modules/getopt-posix (Depends-on): Update.
5947         * modules/glob (Depends-on): Update.
5948         * modules/iconv-h (Depends-on): Update.
5949         * modules/inttypes-incomplete (Depends-on): Update.
5950         * modules/locale (Depends-on): Update.
5951         * modules/math (Depends-on): Update.
5952         * modules/netdb (Depends-on): Update.
5953         * modules/search (Depends-on): Update.
5954         * modules/signal (Depends-on): Update.
5955         * modules/spawn (Depends-on): Update.
5956         * modules/stdio (Depends-on): Update.
5957         * modules/stdlib (Depends-on): Update.
5958         * modules/string (Depends-on): Update.
5959         * modules/strings (Depends-on): Update.
5960         * modules/sys_socket (Depends-on): Update.
5961         * modules/sys_stat (Depends-on): Update.
5962         * modules/sys_time (Depends-on): Update.
5963         * modules/sys_times (Depends-on): Update.
5964         * modules/sys_utsname (Depends-on): Update.
5965         * modules/time (Depends-on): Update.
5966         * modules/unistd (Depends-on): Update.
5967         * modules/wchar (Depends-on): Update.
5968         * MODULES.html.sh (Support for building libraries and executables):
5969         Update.
5970
5971 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5972
5973         Improvements on _Noreturn and related modules.
5974
5975         modules/_Exit-tests: test _Noreturn too
5976         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5977         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5978         (main): Use them.
5979
5980         stdnoreturn, stdnoreturn-tests: remove modules
5981         They're not needed here and a bit premature for use elsewhere.  See
5982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5983         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5984         * tests/test-stdnoreturn.c: Remove files.
5985         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5986         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5987         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5988         and using noreturn.
5989         * modules/openat, modules/sigpipe-die, modules/xalloc:
5990         * modules/xmemdup0, modules/xstrtol:
5991         Remove dependency on stdnoreturn.
5992
5993         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5994         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5995         Reparenthesize to avoid GCC warning.
5996         Support Microsoft's syntax.
5997         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5998
5999         _Noreturn-tests: remove module
6000         * modules/_Noreturn-tests: Remove.
6001         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6002         * tests/test-_Noreturn.c: Remove.
6003         * tests/test-stdnoreturn.c: Merge from the old
6004         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6005
6006 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6007
6008         _Noreturn, stdnoreturn, and related modules.
6009
6010         * top/maint.mk: Adjust to new noreturn support.
6011         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6012         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6013
6014         xalloc: use stdnoreturn.h
6015         * lib/xalloc.h: Include <stdnoreturn.h>.
6016         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6017         * modules/xalloc (Depends-on): Add stdnoreturn.
6018
6019         xstrtol: use stdnoreturn.h
6020         * lib/xstrtol.h: Include <stdnoreturn.h>.
6021         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6022         * modules/xstrtol (Depends-on): Add stdnoreturn.
6023
6024         xmemdup0: use stdnoreturn.h
6025         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6026         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6027         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6028
6029         sigpipe-die: use stdnoreturn.h
6030         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6031         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6032         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6033
6034         openat: use stdnoreturn.h
6035         * lib/openat.h: Include <stdnoreturn.h>.
6036         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6037         * modules/openat (Depends-on): Add stdnoreturn.
6038
6039         * lib/openat-die.c (openat_save_fail): Modernize comment.
6040
6041         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6042
6043         * lib/glthread/thread.h: Modernize comment.
6044
6045         obstack: use _Noreturn
6046         * lib/obstack.c (__attribute__): Remove macro.
6047         (print_and_abort): Use _Noreturn.
6048
6049         c-stack: use _Noreturn
6050         * lib/c-stack.c (die, overflow_handler, segv_handler):
6051         Use _Noreturn rather than __attribute__((noreturn)).
6052
6053         argmatch-tests, exclude_tests: use _Noreturn
6054         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6055         Remove.
6056         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6057
6058         stdlib: use _Noreturn
6059         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6060         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6061         * modules/stdlib (Depends-on): Add _Noreturn.
6062         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6063
6064         stdnoreturn-tests: new module
6065         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6066
6067         stdnoreturn: new module
6068         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6069         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6070
6071         _Noreturn-tests: new module
6072         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6073
6074         _Noreturn: new module
6075         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6076         New section, mentioning it.
6077         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6078
6079         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6080
6081 2011-07-11  Eric Blake  <eblake@redhat.com>
6082
6083         ffs: new module
6084         * modules/ffs: New file.
6085         * m4/ffs.m4: Likewise.
6086         * lib/ffs.c: Likewise.
6087         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6088         * modules/strings (Makefile.am): Substitute witness.
6089         (Depends-on): Add c++defs.
6090         * lib/strings.in.h (ffs): Declare.
6091         * modules/ffs-tests: New test file.
6092         * tests/test-ffs.c: Test new module.
6093         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6094         * doc/posix-functions/ffs.texi (ffs): Likewise.
6095
6096         regex: avoid compiler warning
6097         * lib/regex.c (includes): Include <strings.h>, for use of
6098         strcasecmp in regcomp.c.
6099         Reported by Joachim Schmitz.
6100
6101 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6102
6103         stdint: respect system's intmax_t if INTMAX_MAX
6104         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6105         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6106         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6107         long but int64_t is long long, and where we will clash with the
6108         system intmax_t if we override it.  See
6109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6110         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6111         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6112         similarly for UINTMAX_C.
6113
6114 2011-07-08  Bruno Haible  <bruno@clisp.org>
6115
6116         pthread_sigmask tests: Avoid a compiler warning.
6117         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6118         non-zero.
6119
6120         sigprocmask tests: A better way to avoid a compiler warning.
6121         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6122         (main): Complain if system() returns non-zero.
6123         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6124
6125 2011-07-08  Bruno Haible  <bruno@clisp.org>
6126
6127         pthread_sigmask: Work around IRIX bug.
6128         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6129         bug.
6130         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6131         there may be unblocked pending signals.
6132         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6133
6134 2011-07-08  Bruno Haible  <bruno@clisp.org>
6135
6136         pthread_sigmask: Work around Cygwin bug.
6137         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6138         bug.
6139         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6140         the system's pthread_sigmask function.
6141         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6142
6143 2011-07-08  Bruno Haible  <bruno@clisp.org>
6144
6145         pthread_sigmask: Work around bug in single-threaded implementation.
6146         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6147         FreeBSD, HP-UX, Solaris bug.
6148         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6149         * lib/pthread_sigmask.c: Include <stddef.h>.
6150         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6151         the system's pthread_sigmask function.
6152         * modules/pthread_sigmask (configure.ac): Invoke
6153         gl_PREREQ_PTHREAD_SIGMASK.
6154         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6155         HP-UX, Solaris.
6156
6157 2011-07-08  Eric Blake  <eblake@redhat.com>
6158
6159         test-sigprocmask: avoid compiler warning
6160         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6161         * tests/test-sigprocmask.c (main): Use it to silence warning.
6162         Reported by Jim Meyering.
6163
6164         test-snprintf: avoid compiler warning
6165         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6166         * tests/test-vsnprintf.c (main): Likewise.
6167         Reported by Jim Meyering.
6168
6169 2011-07-08  Bruno Haible  <bruno@clisp.org>
6170
6171         Tests for module 'pthread_sigmask'.
6172         * modules/pthread_sigmask-tests: New file.
6173         * tests/test-pthread_sigmask1.c: New file, based on
6174         tests/test-sigprocmask.c.
6175         * tests/test-pthread_sigmask2.c: New file.
6176
6177 2011-07-08  Jim Meyering  <meyering@redhat.com>
6178
6179         test-getopt.h: avoid warning about an unused variable
6180         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6181
6182 2011-07-07  Jim Meyering  <meyering@redhat.com>
6183
6184         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6185         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6186         now that it no longer contains leading TABs.
6187         Remove unused "url=FIXME" statement.
6188
6189 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6190
6191         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6192         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6193         When gl_THREADLIB is not in use, assume that the POSIX sematics
6194         are desired.  This is better for Emacs, which uses POSIX semantics
6195         on GNUish and/or POSIXish platforms, and does not use threads at
6196         all otherwise.
6197
6198         pthread_sigmask: fix typo when testing for libraries
6199         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6200         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6201
6202 2011-07-08  Eric Blake  <eblake@redhat.com>
6203
6204         fts: introduce FTS_NOATIME
6205         * lib/fts_.h (FTS_NOATIME): New bit flag.
6206         (FTS_OPTIONMASK): Adjust.
6207         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6208         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6209
6210 2011-07-08  Bruno Haible  <bruno@clisp.org>
6211
6212         Tests for module 'thread'.
6213         * modules/thread-tests: New file.
6214         * tests/test-thread_self.c: New file.
6215         * tests/test-thread_create.cc: New file.
6216
6217 2011-07-08  Bruno Haible  <bruno@clisp.org>
6218
6219         thread: Avoid gcc warnings when using gl_thread_self().
6220         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6221         'void *'.
6222         (gl_thread_self_pointer): Update.
6223
6224 2011-07-07  Bruno Haible  <bruno@clisp.org>
6225
6226         signal-c++-tests: Check declaration of pthread_sigmask.
6227         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6228         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6229         $(LIB_PTHREAD_SIGMASK).
6230
6231 2011-07-07  Bruno Haible  <bruno@clisp.org>
6232
6233         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6234         * lib/signal.in.h (pthread_sigmask): Override if
6235         REPLACE_PTHREAD_SIGMASK is 1.
6236         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6237         REPLACE_PTHREAD_SIGMASK.
6238         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6239         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6240         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6241         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6242         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6243
6244 2011-07-07  Bruno Haible  <bruno@clisp.org>
6245
6246         pthread_sigmask: Ensure declaration in <signal.h>.
6247         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6248         include <pthread.h>.
6249         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6250         problem.
6251
6252 2011-07-07  Bruno Haible  <bruno@clisp.org>
6253
6254         pthread_sigmask: Document the module.
6255         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6256
6257 2011-07-07  Bruno Haible  <bruno@clisp.org>
6258
6259         pthread_sigmask: Follow gnulib conventions.
6260         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6261         gl_PTHREAD_SIGMASK.
6262         * modules/pthread_sigmask (configure.ac): Update.
6263
6264 2011-07-07  Bruno Haible  <bruno@clisp.org>
6265
6266         pthread_sigmask: Make declaration C++ safe.
6267         * lib/signal.in.h: In two special conditions, just do an #include_next.
6268         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6269         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6270         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6271         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6272         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6273         not REPLACE_PTHREAD_MASK.
6274         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6275         not REPLACE_PTHREAD_MASK.
6276         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6277
6278 2011-07-07  Bruno Haible  <bruno@clisp.org>
6279
6280         pthread_sigmask: Fix return value.
6281         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6282         * lib/pthread_sigmask.c: New file.
6283         * modules/pthread_sigmask (Files): Add it.
6284         (configure.ac): Invoke AC_LIBOBJ.
6285
6286 2011-07-07  Eric Blake  <eblake@redhat.com>
6287
6288         getopt: more portable argv creation
6289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6290         const, use char arrays rather than strings.
6291         Suggested by Paul Eggert.
6292
6293 2011-07-07  Bruno Haible  <bruno@clisp.org>
6294
6295         Tests for module 'sigprocmask'.
6296         * modules/sigprocmask-tests: New file.
6297         * tests/test-sigprocmask.c: New file.
6298
6299 2011-07-07  Bruno Haible  <bruno@clisp.org>
6300
6301         float tests: Tweak.
6302         * tests/test-float.c (main): Tweak skip message.
6303
6304 2011-07-07  Eric Blake  <eblake@redhat.com>
6305
6306         getopt: avoid compiler warning during configure
6307         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6308         assigning string literals to non-const pointer.
6309
6310         getopt-gnu: avoid crash in glibc getopt
6311         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6312         * tests/test-getopt.h (test_getopt): Enhance test.
6313         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6314         * doc/posix-functions/getopt.texi (getopt): Document it.
6315         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6316         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6317         Likewise.
6318
6319 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6320
6321         getopt: handle W; without long options in getopt [BZ #12922]
6322         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6323         but no long options are defined, just return 'W'.
6324
6325 2011-07-07  Bruno Haible  <bruno@clisp.org>
6326
6327         Avoid literal tabs.
6328         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6329         variable containing a tab instead of a literal tab.
6330         Reported by Jim Meyering.
6331
6332 2011-07-07  Bruno Haible  <bruno@clisp.org>
6333
6334         Comments.
6335         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6336
6337 2011-07-06  Bruno Haible  <bruno@clisp.org>
6338
6339         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6340         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6341         <winsock2.h>.
6342         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6343         lib/sys_socket.in.h.
6344         (close, gethostname): Hide declarations from <winsock2.h>.
6345         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6346         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6347         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6348         (select): Don't override if gnulib's <sys/select.h> was already
6349         included.
6350         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6351         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6352         setsockopt, shutdown, select): Tweak indentation.
6353
6354 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6355
6356         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6357         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6358         in an application that does not use the sys_select module.
6359
6360 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6361
6362         poll: do not return 0 on timeout=-1
6363         * lib/poll.c: Loop with yield if no events occured
6364
6365 2011-07-06  Eric Blake  <eblake@redhat.com>
6366
6367         pthread_sigmask: always replace when not using pthread
6368         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6369         replacement when using some threading other than pthread.  Fix
6370         logic bug.
6371
6372 2011-07-06  Bruno Haible  <bruno@clisp.org>
6373
6374         Comments.
6375         * m4/printf.m4: Update comments about mingw.
6376
6377 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6378
6379         sys_select: define sigset_t more portably
6380         * lib/sys_select.in.h: Always include <sys/types.h>, since
6381         we now need sigset_t and mingw defines it there.
6382         Include <signal.h> before split inclusion guard, to avoid
6383         mishaps on Solaris, whose <signal.h> eventually includes us.
6384         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6385         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6386         which come from ...
6387         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6388         gl_CHECK_TYPE_SIGSET_T.
6389         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6390         does the real work.
6391         * modules/sys_select (Depends-on): Add 'signal'.
6392
6393         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6394         Suggested by Bruno Haible.
6395
6396         pselect: Use pthread_sigmask, not sigprocmask.
6397         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6398         multithreaded apps better than sigprocmask does.
6399         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6400         sigprocmask directly.
6401
6402 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6403
6404         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6405         Don't #undef,  since we don't need any underlying pselect.
6406         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6407         (Depends-on): Add select.
6408         (Link): Add $(LIBSOCKET).
6409         These changes suggested by Bruno Haible.
6410
6411         pselect: document better
6412         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6413         * doc/posix-functions/pselect.texi (pselect): Document new module.
6414
6415         pthread_sigmask: new module
6416         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6417         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6418         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6419         This is done only as a macro; I don't know how well that'll
6420         work for C++.  Move <sys/types.h> include before the include_next,
6421         to avoid mishap on Solaris.
6422         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6423         * modules/signal (Makefile.am): Substitute the check's results.
6424         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6425
6426         test-pselect: new module
6427         * modules/pselect-tests, tests/test-pselect.c: New files.
6428         * tests/test-select.c, tests/test-sys_select-c++.cc:
6429         If TEST_PSELECT is defined, test pselect instead of testing select.
6430
6431         * tests/test-sys_select.c (sigset_t): Test for it, too.
6432         Suggested by Bruno Haible.
6433
6434 2011-07-05  Eric Blake  <eblake@redhat.com>
6435
6436         snprintf: guarantee %1$d, for libintl
6437         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6438         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6439         * doc/posix-functions/snprintf.texi (snprintf): Update.
6440         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6441         * tests/test-snprintf.c (main): Enhance test.
6442         * tests/test-vsnprintf.c (main): Likewise.
6443
6444 2011-07-05  Jim Meyering  <meyering@redhat.com>
6445
6446         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6447         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6448         per Bruno's request, to accommodate this idiom (no space after "#")
6449         even when the function is inside an #if block:
6450         char *
6451         gets (char *s)
6452         #undef gets
6453         {
6454           ...
6455         }
6456
6457 2011-07-04  Jim Meyering  <meyering@redhat.com>
6458
6459         maint: indent with spaces, not TABs, and add a rule to check this
6460         * tests/test-userspec.c: Indent with spaces, not TABs.
6461         * tests/test-argp.c: Likewise.
6462         * tests/test-c-stack2.sh: Likewise.
6463         * tests/test-parse-duration.sh: Likewise
6464         * m4/strtod.m4: Likewise.
6465         * m4/alloca.m4: Likewise.
6466         * m4/pselect.m4: Likewise.
6467         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6468
6469 2011-07-03  Jim Meyering  <meyering@redhat.com>
6470
6471         maint.mk: correct omissions in prohibit_argmatch_without_use check
6472         This rule would mistakenly report that argmatch.h is included without
6473         use even when both the argmatch and invalid_arg macro were used.
6474         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6475         of argmatch and invalid_arg.
6476
6477 2011-07-03  Bruno Haible  <bruno@clisp.org>
6478
6479         Comments about EINTR.
6480         * lib/safe-read.h: Explain the purpose of this module.
6481         * lib/safe-write.h: Likewise.
6482         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6483         module.
6484         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6485         module.
6486         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6487
6488 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6489
6490         xnanosleep: Rewrite to use new dtotimespec module.
6491         It has the conversion code that used to be in xnanosleep.
6492         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6493         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6494         (TIME_T_MAX): Remove.
6495         (xnanosleep): Rewrite in terms of dtotimespec.
6496         * modules/xnanosleep (Depends-on): Add dtotimespec.
6497         Remove intprops, stdbool.
6498
6499         timespec-add, timespec-sub: new modules
6500         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6501         * lib/timespec-add.c, lib/timespec-sub.c:
6502         * modules/timespec-add, modules/timespec-sub: New files.
6503
6504         dtotimespec: new module
6505         * lib/timespec.h (dtotimespec): New decl.
6506         * lib/dtotimespec.c, modules/dtotimespec: New files.
6507
6508         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6509
6510         pselect: new module
6511         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6512         (pselect): New decls.
6513         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6514         since the standard pselect decl uses 'restrict'.
6515         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6516         HAVE_PSELECT, REPLACE_PSELECT.
6517         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6518         HAVE_PSELECT, REPLACE_PSELECT.
6519         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6520
6521         sys_select: don't depend on sys_socket
6522         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6524         This fix works on GNU and GNU-like platforms, but has not been tested
6525         on native Windows.
6526         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6527         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6528         gl_HEADER_SYS_SOCKET.
6529         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6530         gl_PREREQ_SYS_H_WINSOCK2.
6531
6532 2011-06-29  Eric Blake  <eblake@redhat.com>
6533
6534         pipe2: fix C89 compile problem
6535         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6536         Reported by Bruno Haible.
6537
6538         pipe, pipe2: don't corrupt fd on error
6539         * lib/pipe.c (pipe): Leave fd unchanged on error.
6540         * lib/pipe2.c (pipe2): Likewise.
6541         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6542         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6543
6544 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6545
6546         mmap-anon: do not use regular expressions inadvertently
6547         * m4/mmap-anon.m4: Remove trailing period from strings sought
6548         in the output.
6549
6550 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6551
6552         nanosleep: fix integer overflow problem
6553         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6554         arithmetic wraps around on overflow.
6555
6556         nanosleep: simplify carrying
6557         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6558         first call to the underyling nanosleep, not for the last one.
6559         This doesn't fix any bugs, but it simplifies the computation of
6560         the remaining delay.  Found while auditing integer overflow issues.
6561
6562         dup2: remove test for existence of fcntl
6563         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6564         "#if HAVE_FCNTL", in the configure-time test program.
6565         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6566         and therefore speeds up "configure" a bit.  Found while
6567         adding the dup2 module to Emacs.
6568
6569 2011-06-24  Eric Blake  <eblake@redhat.com>
6570
6571         maint.mk: enhance useless header checks
6572         * top/maint.mk (_sc_header_without_use): Check both include
6573         styles.
6574         (sc_prohibit_assert_without_use)
6575         (sc_prohibit_close_stream_without_use)
6576         (sc_prohibit_getopt_without_use)
6577         (sc_prohibit_quotearg_without_use)
6578         (sc_prohibit_quote_without_use)
6579         (sc_prohibit_long_options_without_use)
6580         (sc_prohibit_inttostr_without_use)
6581         (sc_prohibit_ignore_value_without_use)
6582         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6583         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6584         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6585         (sc_prohibit_hash_pjw_without_use)
6586         (sc_prohibit_safe_read_without_use)
6587         (sc_prohibit_argmatch_without_use)
6588         (sc_prohibit_canonicalize_without_use)
6589         (sc_prohibit_root_dev_ino_without_use)
6590         (sc_prohibit_openat_without_use)
6591         (sc_prohibit_c_ctype_without_use)
6592         (sc_prohibit_signal_without_use)
6593         (sc_prohibit_stdio--_without_use)
6594         (sc_prohibit_stdio-safer_without_use)
6595         (sc_prohibit_strings_without_use)
6596         (sc_prohibit_intprops_without_use)
6597         (sc_prohibit_stddef_without_use)
6598         (sc_prohibit_xfreopen_without_use): Update clients.
6599
6600 2011-06-24  Jim Meyering  <meyering@redhat.com>
6601
6602         syntax-check: keep one maint.mk rule in sync with its header
6603         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6604         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6605         I prefer to avoid temporary files here, so use <(...), but that
6606         is not supported by /bin/sh, so...
6607         (SHELL): Define to /bin/bash.
6608
6609 2011-06-24  Eric Blake  <eblake@redhat.com>
6610
6611         maint.mk: update sc_prohibit_intprops_without_use
6612         * top/maint.mk (_intprops_names): Match recent changes.
6613
6614 2011-06-24  Bruno Haible  <bruno@clisp.org>
6615
6616         strerror-override: No-op tweak.
6617         * lib/strerror-override.h (strerror_override): Reorder conditions,
6618         for consistency with lib/strerror-override.c.
6619
6620 2011-06-23  Eric Blake  <eblake@redhat.com>
6621
6622         maint.mk: test further PATH_MAX issues
6623         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6624         (sc_prohibit_path_max_allocation): ...and also test alloca.
6625         Suggested by Jim Meyering.
6626
6627 2011-06-22  Eric Blake  <eblake@redhat.com>
6628
6629         maint.mk: add syntax-check to avoid char[PATH_MAX]
6630         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6631
6632         stat: be robust to PATH_MAX definition
6633         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6634         * modules/stat (Depends-on): Add verify.
6635
6636         link: work around IRIX bug
6637         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6638         * lib/link.c (rpl_link): Work around it.
6639         * tests/test-link.h (test_link): Enhance test.
6640         * doc/posix-functions/link.texi (link): Document the bug.
6641
6642         getopt: silence clang warning
6643         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6644         dereference.
6645         Reported by Gustavo Martin Domato.
6646
6647 2011-06-22  Jim Meyering  <meyering@redhat.com>
6648
6649         bootstrap: do not insert a blank line into each .gitignore file
6650         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6651
6652 2011-06-21  Eric Blake  <eblake@redhat.com>
6653
6654         perror: test for output mismatch
6655         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6656         perror on IRIX.
6657
6658         strerror_r: fix OpenBSD behavior on out-of-range
6659         * lib/strerror_r.c (strerror_r): Always use maximal string.
6660         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6661
6662         strerror_r: fix OpenBSD behavior on 0
6663         * lib/strerror-override.c (strerror_override): Also override 0
6664         when needed.
6665         * lib/strerror-override.h (strerror_override): Likewise.
6666         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6667         earlier.
6668         * lib/strerror_r.c (strerror_r): Likewise.
6669         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6670         behavior...
6671         (gl_FUNC_STRERROR_0): ...into new macro.
6672         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6673         is overridden.
6674         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6675         * modules/strerror-override (Files): Add strerror.m4.
6676         (configure.ac): Also provide override for 0 when needed.
6677         * doc/posix-functions/strerror.texi (strerror): Document this.
6678         * doc/posix-functions/perror.texi (perror): Likewise.
6679
6680         perror: adjust array size
6681         * modules/perror (Depends-on): Add strerror-override.
6682         * lib/perror.c (perror): Use it to avoid magic number.
6683
6684         strerror-override: reduce size
6685         * lib/strerror-override.c (strerror_override): Use fewer lines.
6686
6687 2011-06-20  Bruno Haible  <bruno@clisp.org>
6688
6689         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6690         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6691
6692 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6693
6694         alloca: port to compilers that can optimize like GCC 4.6.0
6695         * lib/alloca.c (find_stack_direction): New signature, taken from
6696         Autoconf git.  This works with GCC 4.6.0.  This code should never
6697         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6698         be used with other compilers that optimize as well as GCC 4.6.0 does.
6699         (alloca): Adjust to new signature.
6700         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6701         New macro, which patches Autoconf in a similar way.
6702
6703         c-stack: stop worrying about stack direction
6704         * lib/c-stack.c (find_stack_direction): Remove.
6705         (segv_handler): Don't worry about stack direction growth, as it's
6706         too much of a pain to configure this correctly, given how compilers
6707         are optimizing-away our stack-growth detection code.  Instead, assume
6708         that any access to just before or just after the stack is OK.
6709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6710         Don't require AC_FUNC_ALLOCA; no longer needed.
6711
6712 2011-06-20  Eric Blake  <eblake@redhat.com>
6713
6714         test-stat: don't allocate PATH_MAX bytes
6715         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6716         PATH_MAX-sized buffer.
6717         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6718         * modules/stat-tests (Depends-on): Likewise.
6719         * tests/test-fstatat.c (includes): Drop pathmax.h.
6720         * tests/test-stat.c (includes): Likewise.
6721         Reported by Bruno Haible.
6722
6723 2011-06-20  Bruno Haible  <bruno@clisp.org>
6724
6725         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6726         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6727         * lib/float.c: New file.
6728         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6729         REPLACE_FLOAT_LDBL.
6730         * modules/float (Files): Add lib/float.c.
6731         (configure.ac): Invoke AC_LIBOBJ.
6732         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6733
6734 2011-06-20  Bruno Haible  <bruno@clisp.org>
6735
6736         Tests for module 'float'.
6737         * modules/float-tests: New file.
6738         * tests/test-float.c: New file.
6739
6740 2011-06-19  Bruno Haible  <bruno@clisp.org>
6741
6742         isinf: Coding style.
6743         * lib/isinf.c: Use GNU coding style.
6744
6745 2011-06-19  Bruno Haible  <bruno@clisp.org>
6746
6747         linkat test: Avoid test failure on AIX 7.1.
6748         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6749         * tests/test-link.h (test_link): Likewise.
6750
6751 2011-06-19  Bruno Haible  <bruno@clisp.org>
6752
6753         pread test: Avoid test failure on OpenBSD 4.9.
6754         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6755
6756 2011-06-19  Bruno Haible  <bruno@clisp.org>
6757
6758         sprintf-posix: Fix test failure on AIX 7.1.
6759         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6760         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6761         on AIX.
6762         * doc/posix-functions/fprintf.texi: Likewise.
6763         * doc/posix-functions/printf.texi: Likewise.
6764         * doc/posix-functions/snprintf.texi: Likewise.
6765         * doc/posix-functions/sprintf.texi: Likewise.
6766         * doc/posix-functions/vdprintf.texi: Likewise.
6767         * doc/posix-functions/vfprintf.texi: Likewise.
6768         * doc/posix-functions/vprintf.texi: Likewise.
6769         * doc/posix-functions/vsnprintf.texi: Likewise.
6770         * doc/posix-functions/vsprintf.texi: Likewise.
6771
6772 2011-06-19  Bruno Haible  <bruno@clisp.org>
6773
6774         roundl-ieee: Fix test failure on AIX 7.1.
6775         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6776         * doc/posix-functions/roundl.texi: Mention problem with negative
6777         arguments.
6778
6779 2011-06-19  Bruno Haible  <bruno@clisp.org>
6780
6781         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6782         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6783         * doc/posix-functions/round.texi: Mention problem with negative
6784         arguments.
6785         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6786
6787 2011-06-19  Bruno Haible  <bruno@clisp.org>
6788
6789         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6790         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6791         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6792         * doc/posix-functions/roundf.texi: Mention problem with negative
6793         arguments.
6794         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6795
6796 2011-06-19  Bruno Haible  <bruno@clisp.org>
6797
6798         ceilf-ieee: Work around bug on MacOS X 10.5.
6799         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6800
6801         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6802         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6803         IEEE compliant, avoid compiler optimizations.
6804         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6805         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6806         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6807         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6808         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6809         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6810         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6811         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6812         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6813         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6814
6815 2011-06-19  Bruno Haible  <bruno@clisp.org>
6816
6817         ceilf-ieee: Work around bug on AIX 7.1.
6818         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6819         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6820
6821 2011-06-19  Bruno Haible  <bruno@clisp.org>
6822
6823         ceil-ieee: Work around bug on AIX 7.1.
6824         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6825         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6826
6827 2011-06-18  Bruno Haible  <bruno@clisp.org>
6828
6829         fsync test: Avoid test failure on MacOS X and AIX.
6830         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6831         EINVAL.
6832
6833 2011-06-18  Bruno Haible  <bruno@clisp.org>
6834
6835         openat, fdopendir tests: Fix link errors.
6836         * modules/openat-tests (Depends-on): Add progname.
6837         * modules/fdopendir-tests (Depends-on): Likewise.
6838         * tests/test-fchownat.c: Include progname.h.
6839         (main): Call set_program_name.
6840         * tests/test-fstatat.c: Include progname.h.
6841         (main): Call set_program_name.
6842         * tests/test-mkdirat.c: Include progname.h.
6843         (main): Call set_program_name.
6844         * tests/test-openat.c: Include progname.h.
6845         (main): Call set_program_name.
6846         * tests/test-unlinkat.c: Include progname.h.
6847         (main): Call set_program_name.
6848         * tests/test-fdopendir.c: Include progname.h.
6849         (main): Call set_program_name.
6850
6851 2011-06-18  Bruno Haible  <bruno@clisp.org>
6852
6853         Doc update.
6854         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6855         HP-UX.
6856         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6857
6858 2011-06-18  Bruno Haible  <bruno@clisp.org>
6859
6860         getcwd tests: Avoid compilation error on HP-UX 11.31.
6861         * modules/getcwd-tests (Depends-on): Add pathmax.
6862         * tests/test-getcwd.c: Include pathmax.h.
6863
6864 2011-06-18  Bruno Haible  <bruno@clisp.org>
6865
6866         isfinite, isinf: Fix link error on AIX 6 and 7.
6867         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6868         needed, also test the macro with a 'float' argument.
6869         * m4/isinf.m4 (gl_ISINF): Likewise.
6870
6871 2011-06-18  Bruno Haible  <bruno@clisp.org>
6872
6873         getloadavg: Don't clobber LIBS. Regression from previous commit.
6874         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6875         AC_CHECK_LIB from here...
6876         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6877         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6878         gl_func_getloadavg_done.
6879         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6880
6881 2011-06-18  Bruno Haible  <bruno@clisp.org>
6882
6883         clean-temp: Improve documentation.
6884         * lib/clean-temp.h: Explain better how to use this module.
6885         Reported by John Darrington <john@darrington.wattle.id.au>.
6886
6887 2011-06-17  Bruno Haible  <bruno@clisp.org>
6888
6889         pread, pwrite: Avoid cc warning on AIX.
6890         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6891         (pwrite): Likewise.
6892
6893 2011-06-17  Bruno Haible  <bruno@clisp.org>
6894
6895         spawn-pipe tests: Fix link error.
6896         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6898
6899 2011-06-17  Bruno Haible  <bruno@clisp.org>
6900
6901         Tests: Remove unnecessary dependency.
6902         * modules/canonicalize-tests (Depends-on): Remove progname.
6903         * modules/chown-tests (Depends-on): Likewise.
6904         * modules/dirname-tests (Depends-on): Likewise.
6905         * modules/fdopendir-tests (Depends-on): Likewise.
6906         * modules/fdutimensat-tests (Depends-on): Likewise.
6907         * modules/hash-tests (Depends-on): Likewise.
6908         * modules/lchown-tests (Depends-on): Likewise.
6909         * modules/linkat-tests (Depends-on): Likewise.
6910         * modules/renameat-tests (Depends-on): Likewise.
6911         * modules/spawn-pipe-tests (Depends-on): Likewise.
6912         * modules/utimensat-tests (Depends-on): Likewise.
6913
6914 2011-06-17  Bruno Haible  <bruno@clisp.org>
6915
6916         spawn-pipe tests: Fix link error.
6917         * tests/test-spawn-pipe-child.c: Undefine fflush.
6918
6919 2011-06-17  Bruno Haible  <bruno@clisp.org>
6920
6921         Fix tests link errors.
6922         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6923         * modules/chown-tests (Makefile.am): Don't link test-chown with
6924         LIBINTL.
6925         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6926         LIBINTL.
6927         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6928         LIBINTL.
6929         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6930         LIBINTL.
6931
6932 2011-06-16  Bruno Haible  <bruno@clisp.org>
6933
6934         crypto/gc-sha1: Fix recent regression.
6935         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6936         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6937
6938         crypto/gc-md5: Fix recent regression.
6939         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6940
6941         crypto/gc-md4: Fix recent regression.
6942         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6943         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6944
6945         crypto/gc-arctwo: Fix recent regression.
6946         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6947         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6948
6949         crypto/gc-rijndael: Fix recent regression.
6950         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6951         (configure.ac): Invoke AC_LIBOBJ here.
6952         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6953         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6954
6955         crypto/gc-hmac-sha1: Fix recent regression.
6956         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6957         (configure.ac): Invoke AC_LIBOBJ here.
6958         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6959         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6960
6961         crypto/gc-hmac-md5: Fix recent regression.
6962         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6963         (configure.ac): Invoke AC_LIBOBJ here.
6964         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6965         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6966
6967         crypto/gc-des: Fix recent regression.
6968         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6969         (configure.ac): Invoke AC_LIBOBJ here.
6970         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6972
6973         crypto/gc-arcfour: Fix recent regression.
6974         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6975         (configure.ac): Invoke AC_LIBOBJ here.
6976         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6978
6979 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6980
6981         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6982         After the 2011-05-21 change, this macro requires
6983         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6984         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6985
6986 2011-06-16  Bruno Haible  <bruno@clisp.org>
6987
6988         fprintftime: Move AC_LIBOBJ invocations to module description.
6989         * m4/fprintftime.m4: Remove file.
6990         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6991         (configure.ac): Remove gl_FPRINTFTIME call.
6992         (Makefile.am): Augment lib_SOURCES.
6993         Reported by Jim Meyering.
6994
6995 2011-06-16  Bruno Haible  <bruno@clisp.org>
6996
6997         tmpfile-safer: Finish 2011-05-23 commit.
6998         * m4/stdio-safer.m4: Really remove file.
6999         Reported by Jim Meyering.
7000
7001 2011-06-16  Bruno Haible  <bruno@clisp.org>
7002
7003         syntax-check: Fix typo.
7004         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7005         printf-posix.m4.
7006         Reported by Jim Meyering.
7007
7008 2011-06-13  Jim Meyering  <meyering@redhat.com>
7009
7010         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7011         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7012
7013 2011-05-23  Bruno Haible  <bruno@clisp.org>
7014
7015         yesno: Move AC_LIBOBJ invocations to module description.
7016         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7017         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7018
7019 2011-05-23  Bruno Haible  <bruno@clisp.org>
7020
7021         xstrtol: Move AC_LIBOBJ invocations to module description.
7022         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7023         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7024
7025 2011-05-23  Bruno Haible  <bruno@clisp.org>
7026
7027         xstrtold: Move AC_LIBOBJ invocations to module description.
7028         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7029         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7030
7031 2011-05-23  Bruno Haible  <bruno@clisp.org>
7032
7033         xstrtod: Move AC_LIBOBJ invocations to module description.
7034         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7035         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7036
7037 2011-05-23  Bruno Haible  <bruno@clisp.org>
7038
7039         xnanosleep: Move AC_LIBOBJ invocations to module description.
7040         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7041         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7042
7043 2011-05-23  Bruno Haible  <bruno@clisp.org>
7044
7045         xgetcwd: Move AC_LIBOBJ invocations to module description.
7046         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7047         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7048
7049 2011-05-23  Bruno Haible  <bruno@clisp.org>
7050
7051         xalloc: Move AC_LIBOBJ invocations to module description.
7052         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7053         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7054
7055 2011-05-23  Bruno Haible  <bruno@clisp.org>
7056
7057         write-any-file: Move AC_LIBOBJ invocations to module description.
7058         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7059         invocation.
7060         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7061
7062 2011-05-23  Bruno Haible  <bruno@clisp.org>
7063
7064         utimens: Move AC_LIBOBJ invocations to module description.
7065         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7066         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7067
7068 2011-05-23  Bruno Haible  <bruno@clisp.org>
7069
7070         utimecmp: Move AC_LIBOBJ invocations to module description.
7071         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7072         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7073
7074 2011-05-23  Bruno Haible  <bruno@clisp.org>
7075
7076         userspec: Move AC_LIBOBJ invocations to module description.
7077         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7078         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7079
7080 2011-05-23  Bruno Haible  <bruno@clisp.org>
7081
7082         unlinkdir: Move AC_LIBOBJ invocations to module description.
7083         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7084         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7085
7086 2011-05-23  Bruno Haible  <bruno@clisp.org>
7087
7088         unistd-safer: Move AC_LIBOBJ invocations to module description.
7089         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7090         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7091
7092 2011-05-23  Bruno Haible  <bruno@clisp.org>
7093
7094         tempname: Move AC_LIBOBJ invocations to module description.
7095         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7096         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7097
7098 2011-05-23  Bruno Haible  <bruno@clisp.org>
7099
7100         strftime: Move AC_LIBOBJ invocations to module description.
7101         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7102         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7103
7104 2011-05-23  Bruno Haible  <bruno@clisp.org>
7105
7106         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7107         * m4/stdlib-safer.m4: Remove file.
7108         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7109         (configure.ac): Remove gl_STDLIB_SAFER call.
7110         (Makefile.am): Augment lib_SOURCES.
7111
7112 2011-05-23  Bruno Haible  <bruno@clisp.org>
7113
7114         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7115         * m4/stdio-safer.m4: Remove file.
7116         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7117         (configure.ac): Remove gl_TMPFILE_SAFER call.
7118         (Makefile.am): Augment lib_SOURCES.
7119
7120 2011-05-23  Bruno Haible  <bruno@clisp.org>
7121
7122         popen-safer: Move AC_LIBOBJ invocations to module description.
7123         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7124         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7125         (configure.ac): Remove gl_POPEN_SAFER call.
7126         (Makefile.am): Augment lib_SOURCES.
7127
7128 2011-05-23  Bruno Haible  <bruno@clisp.org>
7129
7130         freopen-safer: Move AC_LIBOBJ invocations to module description.
7131         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7132         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7133         (configure.ac): Remove gl_FREOPEN_SAFER call.
7134         (Makefile.am): Augment lib_SOURCES.
7135
7136 2011-05-23  Bruno Haible  <bruno@clisp.org>
7137
7138         fopen-safer: Move AC_LIBOBJ invocations to module description.
7139         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7140         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7141         (configure.ac): Remove gl_FOPEN_SAFER call.
7142         (Makefile.am): Augment lib_SOURCES.
7143
7144 2011-05-23  Bruno Haible  <bruno@clisp.org>
7145
7146         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7147         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7148         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7149
7150 2011-05-23  Bruno Haible  <bruno@clisp.org>
7151
7152         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7153         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7154         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7155
7156 2011-05-23  Bruno Haible  <bruno@clisp.org>
7157
7158         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7159         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7160         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7161
7162 2011-05-23  Bruno Haible  <bruno@clisp.org>
7163
7164         settime: Move AC_LIBOBJ invocations to module description.
7165         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7166         * modules/settime (Makefile.am): Augment lib_SOURCES.
7167
7168 2011-05-23  Bruno Haible  <bruno@clisp.org>
7169
7170         savedir: Move AC_LIBOBJ invocations to module description.
7171         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7172         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7173
7174 2011-05-23  Bruno Haible  <bruno@clisp.org>
7175
7176         save-cwd: Move AC_LIBOBJ invocations to module description.
7177         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7178         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7179
7180 2011-05-23  Bruno Haible  <bruno@clisp.org>
7181
7182         same: Move AC_LIBOBJ invocations to module description.
7183         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7184         * modules/same (Makefile.am): Augment lib_SOURCES.
7185
7186 2011-05-23  Bruno Haible  <bruno@clisp.org>
7187
7188         safe-write: Move AC_LIBOBJ invocations to module description.
7189         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7190         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7191         instead of gl_SAFE_WRITE.
7192         (Makefile.am): Augment lib_SOURCES.
7193
7194 2011-05-23  Bruno Haible  <bruno@clisp.org>
7195
7196         safe-read: Move AC_LIBOBJ invocations to module description.
7197         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7198         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7199         of gl_SAFE_READ.
7200         (Makefile.am): Augment lib_SOURCES.
7201
7202 2011-05-23  Bruno Haible  <bruno@clisp.org>
7203
7204         safe-alloc: Move AC_LIBOBJ invocations to module description.
7205         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7206         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7207
7208 2011-05-23  Bruno Haible  <bruno@clisp.org>
7209
7210         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7211         * m4/rijndael.m4: Remove file.
7212         * modules/crypto/rijndael (Files): Remove it.
7213         (configure.ac): Remove gl_RIJNDAEL call.
7214         (Makefile.am): Augment lib_SOURCES.
7215
7216 2011-05-23  Bruno Haible  <bruno@clisp.org>
7217
7218         readtokens: Move AC_LIBOBJ invocations to module description.
7219         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7220         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7221
7222 2011-05-23  Bruno Haible  <bruno@clisp.org>
7223
7224         read-file: Move AC_LIBOBJ invocations to module description.
7225         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7226         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7227         of gl_FUNC_READ_FILE.
7228         (Makefile.am): Augment lib_SOURCES.
7229
7230 2011-05-23  Bruno Haible  <bruno@clisp.org>
7231
7232         quotearg: Move AC_LIBOBJ invocations to module description.
7233         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7234         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7235
7236 2011-05-23  Bruno Haible  <bruno@clisp.org>
7237
7238         quote: Move AC_LIBOBJ invocations to module description.
7239         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7240         * modules/quote (Makefile.am): Augment lib_SOURCES.
7241
7242 2011-05-23  Bruno Haible  <bruno@clisp.org>
7243
7244         posixver: Move AC_LIBOBJ invocations to module description.
7245         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7246         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7247
7248 2011-05-23  Bruno Haible  <bruno@clisp.org>
7249
7250         posixtm: Move AC_LIBOBJ invocations to module description.
7251         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7252         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7253
7254 2011-05-23  Bruno Haible  <bruno@clisp.org>
7255
7256         physmem: Move AC_LIBOBJ invocations to module description.
7257         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7258         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7259
7260 2011-05-23  Bruno Haible  <bruno@clisp.org>
7261
7262         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7263         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7264         invocation.
7265         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7266
7267 2011-05-23  Bruno Haible  <bruno@clisp.org>
7268
7269         mpsort: Move AC_LIBOBJ invocations to module description.
7270         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7271         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7272
7273 2011-05-23  Bruno Haible  <bruno@clisp.org>
7274
7275         modechange: Move AC_LIBOBJ invocations to module description.
7276         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7277         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7278
7279 2011-05-23  Bruno Haible  <bruno@clisp.org>
7280
7281         mkdir-p: Move AC_LIBOBJ invocations to module description.
7282         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7283         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7284
7285 2011-05-23  Bruno Haible  <bruno@clisp.org>
7286
7287         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7288         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7289         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7290
7291 2011-05-23  Bruno Haible  <bruno@clisp.org>
7292
7293         mgetgroups: Move AC_LIBOBJ invocations to module description.
7294         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7295         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7296
7297 2011-05-23  Bruno Haible  <bruno@clisp.org>
7298
7299         memxor: Move AC_LIBOBJ invocations to module description.
7300         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7301         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7302
7303 2011-05-23  Bruno Haible  <bruno@clisp.org>
7304
7305         memcoll: Move AC_LIBOBJ invocations to module description.
7306         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7307         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7308
7309 2011-05-23  Bruno Haible  <bruno@clisp.org>
7310
7311         memcasecmp: Move AC_LIBOBJ invocations to module description.
7312         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7313         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7314
7315 2011-05-23  Bruno Haible  <bruno@clisp.org>
7316
7317         crypto/md5: Move AC_LIBOBJ invocations to module description.
7318         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7319         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7320
7321 2011-05-23  Bruno Haible  <bruno@clisp.org>
7322
7323         crypto/md4: Move AC_LIBOBJ invocations to module description.
7324         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7325         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7326
7327 2011-05-23  Bruno Haible  <bruno@clisp.org>
7328
7329         crypto/md2: Move AC_LIBOBJ invocations to module description.
7330         * m4/md2.m4: Remove file.
7331         * modules/crypto/md2 (Files): Remove it.
7332         (configure.ac): Remove gl_MD2 call.
7333         (Makefile.am): Augment lib_SOURCES.
7334
7335 2011-05-23  Bruno Haible  <bruno@clisp.org>
7336
7337         long-options: Move AC_LIBOBJ invocations to module description.
7338         * m4/long-options.m4: Remove file.
7339         * modules/long-options (Files): Remove it.
7340         (configure.ac): Remove gl_LONG_OPTIONS call.
7341         (Makefile.am): Augment lib_SOURCES.
7342
7343 2011-05-23  Bruno Haible  <bruno@clisp.org>
7344
7345         i-ring: Move AC_LIBOBJ invocations to module description.
7346         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7347         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7348
7349 2011-05-23  Bruno Haible  <bruno@clisp.org>
7350
7351         idcache: Move AC_LIBOBJ invocations to module description.
7352         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7353         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7354
7355 2011-05-23  Bruno Haible  <bruno@clisp.org>
7356
7357         human: Move AC_LIBOBJ invocations to module description.
7358         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7359         * modules/human (Makefile.am): Augment lib_SOURCES.
7360
7361 2011-05-23  Bruno Haible  <bruno@clisp.org>
7362
7363         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7364         * m4/hmac-sha1.m4: Remove file.
7365         * modules/crypto/hmac-sha1 (Files): Remove it.
7366         (configure.ac): Remove gl_HMAC_SHA1 call.
7367         (Makefile.am): Augment lib_SOURCES.
7368
7369 2011-05-23  Bruno Haible  <bruno@clisp.org>
7370
7371         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7372         * m4/hmac-md5.m4: Remove file.
7373         * modules/crypto/hmac-md5 (Files): Remove it.
7374         (configure.ac): Remove gl_HMAC_MD5 call.
7375         (Makefile.am): Augment lib_SOURCES.
7376
7377 2011-05-23  Bruno Haible  <bruno@clisp.org>
7378
7379         hash: Move AC_LIBOBJ invocations to module description.
7380         * m4/hash.m4: Remove file.
7381         * modules/hash (Files): Remove it.
7382         (configure.ac): Remove gl_HASH call.
7383         (Makefile.am): Augment lib_SOURCES.
7384
7385 2011-05-23  Bruno Haible  <bruno@clisp.org>
7386
7387         hard-locale: Move AC_LIBOBJ invocations to module description.
7388         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7389         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7390
7391 2011-05-23  Bruno Haible  <bruno@clisp.org>
7392
7393         getugroups: Move AC_LIBOBJ invocations to module description.
7394         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7395         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7396
7397 2011-05-23  Bruno Haible  <bruno@clisp.org>
7398
7399         gettime: Move AC_LIBOBJ invocations to module description.
7400         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7401         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7402
7403 2011-05-23  Bruno Haible  <bruno@clisp.org>
7404
7405         getndelim2: Move AC_LIBOBJ invocations to module description.
7406         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7407         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7408
7409 2011-05-23  Bruno Haible  <bruno@clisp.org>
7410
7411         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7412         * m4/gc-pbkdf2-sha1.m4: Remove file.
7413         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7414         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7415         (Makefile.am): Augment lib_SOURCES.
7416
7417 2011-05-23  Bruno Haible  <bruno@clisp.org>
7418
7419         fts: Move AC_LIBOBJ invocations to module description.
7420         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7421         * modules/fts (configure.ac): ... to here.
7422
7423 2011-05-23  Bruno Haible  <bruno@clisp.org>
7424
7425         file-type: Move AC_LIBOBJ invocations to module description.
7426         * m4/file-type.m4: Remove file.
7427         * modules/file-type (Files): Remove it.
7428         (configure.ac): Remove gl_FILE_TYPE call.
7429         (Makefile.am): Augment lib_SOURCES.
7430
7431 2011-05-23  Bruno Haible  <bruno@clisp.org>
7432
7433         filenamecat*: Respect rules for use of AC_LIBOBJ.
7434         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7435         Remove AC_LIBOBJ invocation.
7436         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7437         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7438
7439 2011-05-23  Bruno Haible  <bruno@clisp.org>
7440
7441         filemode: Move AC_LIBOBJ invocations to module description.
7442         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7443         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7444
7445 2011-05-23  Bruno Haible  <bruno@clisp.org>
7446
7447         openat-safer: Move AC_LIBOBJ invocations to module description.
7448         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7449         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7450
7451 2011-05-23  Bruno Haible  <bruno@clisp.org>
7452
7453         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7454         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7455         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7456
7457 2011-05-23  Bruno Haible  <bruno@clisp.org>
7458
7459         exclude: Move AC_LIBOBJ invocations to module description.
7460         * m4/exclude.m4: Remove file.
7461         * modules/exclude (Files): Remove it.
7462         (configure.ac): Remove gl_EXCLUDE call.
7463         (Makefile.am): Augment lib_SOURCES.
7464
7465 2011-05-23  Bruno Haible  <bruno@clisp.org>
7466
7467         dirname*: Respect rules for use of AC_LIBOBJ.
7468         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7469         invocations.
7470         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7471         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7472
7473 2011-05-23  Bruno Haible  <bruno@clisp.org>
7474
7475         dirent-safer: Move AC_LIBOBJ invocations to module description.
7476         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7477         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7478
7479 2011-05-23  Bruno Haible  <bruno@clisp.org>
7480
7481         crypto/des: Move AC_LIBOBJ invocations to module description.
7482         * m4/des.m4: Remove file.
7483         * modules/crypto/des (Files): Remove it.
7484         (configure.ac): Remove gl_DES call.
7485         (Makefile.am): Augment lib_SOURCES.
7486
7487 2011-05-23  Bruno Haible  <bruno@clisp.org>
7488
7489         cycle-check: Move AC_LIBOBJ invocations to module description.
7490         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7491         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7492
7493 2011-05-23  Bruno Haible  <bruno@clisp.org>
7494
7495         c-strtold: Move AC_LIBOBJ invocations to module description.
7496         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7497         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7498
7499 2011-05-23  Bruno Haible  <bruno@clisp.org>
7500
7501         c-strtod: Move AC_LIBOBJ invocations to module description.
7502         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7503         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7504
7505 2011-05-23  Bruno Haible  <bruno@clisp.org>
7506
7507         crc: Move AC_LIBOBJ invocations to module description.
7508         * m4/crc.m4: Remove file.
7509         * modules/crc (Files): Remove it.
7510         (configure.ac): Remove gl_CRC call.
7511         (Makefile.am): Augment lib_SOURCES.
7512
7513 2011-05-23  Bruno Haible  <bruno@clisp.org>
7514
7515         close-stream: Move AC_LIBOBJ invocations to module description.
7516         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7517         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7518
7519 2011-05-23  Bruno Haible  <bruno@clisp.org>
7520
7521         closeout: Move AC_LIBOBJ invocations to module description.
7522         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7523         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7524
7525 2011-05-23  Bruno Haible  <bruno@clisp.org>
7526
7527         closein: Move AC_LIBOBJ invocations to module description.
7528         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7529         * modules/closein (Makefile.am): Augment lib_SOURCES.
7530
7531 2011-05-23  Bruno Haible  <bruno@clisp.org>
7532
7533         cloexec: Move AC_LIBOBJ invocations to module description.
7534         * m4/cloexec.m4: Remove file.
7535         * modules/cloexec (Files): Remove it.
7536         (configure.ac): Remove gl_CLOEXEC call.
7537         (Makefile.am): Augment lib_SOURCES.
7538
7539 2011-05-23  Bruno Haible  <bruno@clisp.org>
7540
7541         check-version: Move AC_LIBOBJ invocations to module description.
7542         * m4/check-version.m4: Remove file.
7543         * modules/check-version (Files): Remove it.
7544         (configure.ac): Remove gl_CHECK_VERSION call.
7545         (Makefile.am): Augment lib_SOURCES.
7546
7547 2011-05-23  Bruno Haible  <bruno@clisp.org>
7548
7549         chdir-safer: Move AC_LIBOBJ invocations to module description.
7550         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7551         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7552
7553 2011-05-23  Bruno Haible  <bruno@clisp.org>
7554
7555         canonicalize: Move AC_LIBOBJ invocations to module description.
7556         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7557         AC_LIBOBJ invocation.
7558         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7559
7560 2011-05-23  Bruno Haible  <bruno@clisp.org>
7561
7562         canon-host: Move AC_LIBOBJ invocations to module description.
7563         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7564         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7565         instead of gl_CANON_HOST.
7566         (Makefile.am): Augment lib_SOURCES.
7567
7568 2011-05-23  Bruno Haible  <bruno@clisp.org>
7569
7570         backupfile: Move AC_LIBOBJ invocations to module description.
7571         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7572         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7573
7574 2011-05-23  Bruno Haible  <bruno@clisp.org>
7575
7576         argmatch: Move AC_LIBOBJ invocations to module description.
7577         * m4/argmatch.m4: Remove file.
7578         * modules/argmatch (Files): Remove it.
7579         (configure.ac): Remove gl_ARGMATCH call.
7580         (Makefile.am): Augment lib_SOURCES.
7581
7582 2011-05-23  Bruno Haible  <bruno@clisp.org>
7583
7584         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7585         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7586         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7587
7588 2011-05-23  Bruno Haible  <bruno@clisp.org>
7589
7590         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7591         * m4/arcfour.m4: Remove file.
7592         * modules/crypto/arcfour (Files): Remove it.
7593         (configure.ac): Remove gl_ARCFOUR call.
7594         (Makefile.am): Augment lib_SOURCES.
7595
7596 2011-05-22  Bruno Haible  <bruno@clisp.org>
7597
7598         write: Move AC_LIBOBJ invocations to module description.
7599         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7600         * modules/write (configure.ac): ... to here.
7601
7602 2011-05-22  Bruno Haible  <bruno@clisp.org>
7603
7604         wmemset: Move AC_LIBOBJ invocations to module description.
7605         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7606         here...
7607         * modules/wmemset (configure.ac): ... to here.
7608
7609 2011-05-22  Bruno Haible  <bruno@clisp.org>
7610
7611         wmemmove: Move AC_LIBOBJ invocations to module description.
7612         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7613         here...
7614         * modules/wmemmove (configure.ac): ... to here.
7615
7616 2011-05-22  Bruno Haible  <bruno@clisp.org>
7617
7618         wmemcpy: Move AC_LIBOBJ invocations to module description.
7619         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7620         here...
7621         * modules/wmemcpy (configure.ac): ... to here.
7622
7623 2011-05-22  Bruno Haible  <bruno@clisp.org>
7624
7625         wmemcmp: Move AC_LIBOBJ invocations to module description.
7626         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7627         here...
7628         * modules/wmemcmp (configure.ac): ... to here.
7629
7630 2011-05-22  Bruno Haible  <bruno@clisp.org>
7631
7632         wmemchr: Move AC_LIBOBJ invocations to module description.
7633         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7634         here...
7635         * modules/wmemchr (configure.ac): ... to here.
7636
7637 2011-05-22  Bruno Haible  <bruno@clisp.org>
7638
7639         wcswidth: Move AC_LIBOBJ invocations to module description.
7640         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7641         here...
7642         * modules/wcswidth (configure.ac): ... to here.
7643
7644 2011-05-22  Bruno Haible  <bruno@clisp.org>
7645
7646         wcwidth: Respect rules for use of AC_LIBOBJ.
7647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7648         invocation from here...
7649         * modules/wcwidth (configure.ac): ... to here.
7650         (Depends-on): Update conditions.
7651
7652 2011-05-22  Bruno Haible  <bruno@clisp.org>
7653
7654         wctype: Move AC_LIBOBJ invocations to module description.
7655         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7656         invocation from here...
7657         * modules/wctype (configure.ac): ... to here.
7658         (Depends-on): Update conditions.
7659
7660 2011-05-22  Bruno Haible  <bruno@clisp.org>
7661
7662         wctrans: Move AC_LIBOBJ invocations to module description.
7663         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7664         invocation from here...
7665         * modules/wctrans (configure.ac): ... to here.
7666
7667 2011-05-22  Bruno Haible  <bruno@clisp.org>
7668
7669         wctomb: Move AC_LIBOBJ invocations to module description.
7670         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7671         invocations from here...
7672         * modules/wctomb (configure.ac): ... to here.
7673
7674 2011-05-22  Bruno Haible  <bruno@clisp.org>
7675
7676         wctob: Move AC_LIBOBJ invocations to module description.
7677         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7678         gl_PREREQ_WCTOB invocations from here...
7679         * modules/wctob (configure.ac): ... to here.
7680         (Depends-on): Update conditions.
7681
7682 2011-05-22  Bruno Haible  <bruno@clisp.org>
7683
7684         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7685         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7686         here...
7687         * modules/wcsxfrm (configure.ac): ... to here.
7688
7689 2011-05-22  Bruno Haible  <bruno@clisp.org>
7690
7691         wcstok: Move AC_LIBOBJ invocations to module description.
7692         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7693         * modules/wcstok (configure.ac): ... to here.
7694
7695 2011-05-22  Bruno Haible  <bruno@clisp.org>
7696
7697         wcsstr: Move AC_LIBOBJ invocations to module description.
7698         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7699         * modules/wcsstr (configure.ac): ... to here.
7700
7701 2011-05-22  Bruno Haible  <bruno@clisp.org>
7702
7703         wcsspn: Move AC_LIBOBJ invocations to module description.
7704         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7705         * modules/wcsspn (configure.ac): ... to here.
7706
7707 2011-05-22  Bruno Haible  <bruno@clisp.org>
7708
7709         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7710         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7711         gl_PREREQ_WCSRTOMBS invocations from here...
7712         * modules/wcsrtombs (configure.ac): ... to here.
7713
7714 2011-05-22  Bruno Haible  <bruno@clisp.org>
7715
7716         wcsrchr: Move AC_LIBOBJ invocations to module description.
7717         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7718         here...
7719         * modules/wcsrchr (configure.ac): ... to here.
7720
7721 2011-05-22  Bruno Haible  <bruno@clisp.org>
7722
7723         wcspbrk: Move AC_LIBOBJ invocations to module description.
7724         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7725         here...
7726         * modules/wcspbrk (configure.ac): ... to here.
7727
7728 2011-05-22  Bruno Haible  <bruno@clisp.org>
7729
7730         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7731         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7732         gl_PREREQ_WCSNRTOMBS invocations from here...
7733         * modules/wcsnrtombs (configure.ac): ... to here.
7734
7735 2011-05-22  Bruno Haible  <bruno@clisp.org>
7736
7737         wcsnlen: Move AC_LIBOBJ invocations to module description.
7738         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7739         here...
7740         * modules/wcsnlen (configure.ac): ... to here.
7741
7742 2011-05-22  Bruno Haible  <bruno@clisp.org>
7743
7744         wcsncpy: Move AC_LIBOBJ invocations to module description.
7745         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7746         here...
7747         * modules/wcsncpy (configure.ac): ... to here.
7748
7749 2011-05-22  Bruno Haible  <bruno@clisp.org>
7750
7751         wcsncmp: Move AC_LIBOBJ invocations to module description.
7752         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7753         here...
7754         * modules/wcsncmp (configure.ac): ... to here.
7755
7756 2011-05-22  Bruno Haible  <bruno@clisp.org>
7757
7758         wcsncat: Move AC_LIBOBJ invocations to module description.
7759         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7760         here...
7761         * modules/wcsncat (configure.ac): ... to here.
7762
7763 2011-05-22  Bruno Haible  <bruno@clisp.org>
7764
7765         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7766         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7767         from here...
7768         * modules/wcsncasecmp (configure.ac): ... to here.
7769
7770 2011-05-22  Bruno Haible  <bruno@clisp.org>
7771
7772         wcslen: Move AC_LIBOBJ invocations to module description.
7773         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7774         * modules/wcslen (configure.ac): ... to here.
7775
7776 2011-05-22  Bruno Haible  <bruno@clisp.org>
7777
7778         wcsdup: Move AC_LIBOBJ invocations to module description.
7779         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7780         * modules/wcsdup (configure.ac): ... to here.
7781
7782 2011-05-22  Bruno Haible  <bruno@clisp.org>
7783
7784         wcscspn: Move AC_LIBOBJ invocations to module description.
7785         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7786         here...
7787         * modules/wcscspn (configure.ac): ... to here.
7788
7789 2011-05-22  Bruno Haible  <bruno@clisp.org>
7790
7791         wcscpy: Move AC_LIBOBJ invocations to module description.
7792         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7793         * modules/wcscpy (configure.ac): ... to here.
7794
7795 2011-05-22  Bruno Haible  <bruno@clisp.org>
7796
7797         wcscoll: Move AC_LIBOBJ invocations to module description.
7798         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7799         here...
7800         * modules/wcscoll (configure.ac): ... to here.
7801
7802 2011-05-22  Bruno Haible  <bruno@clisp.org>
7803
7804         wcscmp: Move AC_LIBOBJ invocations to module description.
7805         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7806         * modules/wcscmp (configure.ac): ... to here.
7807
7808 2011-05-22  Bruno Haible  <bruno@clisp.org>
7809
7810         wcschr: Move AC_LIBOBJ invocations to module description.
7811         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7812         * modules/wcschr (configure.ac): ... to here.
7813
7814 2011-05-22  Bruno Haible  <bruno@clisp.org>
7815
7816         wcscat: Move AC_LIBOBJ invocations to module description.
7817         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7818         * modules/wcscat (configure.ac): ... to here.
7819
7820 2011-05-22  Bruno Haible  <bruno@clisp.org>
7821
7822         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7823         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7824         here...
7825         * modules/wcscasecmp (configure.ac): ... to here.
7826
7827 2011-05-22  Bruno Haible  <bruno@clisp.org>
7828
7829         wcrtomb: Move AC_LIBOBJ invocations to module description.
7830         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7831         invocations from here...
7832         * modules/wcrtomb (configure.ac): ... to here.
7833
7834 2011-05-22  Bruno Haible  <bruno@clisp.org>
7835
7836         wcpncpy: Move AC_LIBOBJ invocations to module description.
7837         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7838         here...
7839         * modules/wcpncpy (configure.ac): ... to here.
7840
7841 2011-05-22  Bruno Haible  <bruno@clisp.org>
7842
7843         wcpcpy: Move AC_LIBOBJ invocations to module description.
7844         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7845         * modules/wcpcpy (configure.ac): ... to here.
7846
7847 2011-05-22  Bruno Haible  <bruno@clisp.org>
7848
7849         waitpid: Move AC_LIBOBJ invocations to module description.
7850         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7851         invocation from here...
7852         * modules/waitpid (configure.ac): ... to here.
7853
7854 2011-05-22  Bruno Haible  <bruno@clisp.org>
7855
7856         utimensat: Move AC_LIBOBJ invocations to module description.
7857         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7858         here...
7859         * modules/utimensat (configure.ac): ... to here.
7860
7861 2011-05-22  Bruno Haible  <bruno@clisp.org>
7862
7863         usleep: Move AC_LIBOBJ invocations to module description.
7864         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7865         here...
7866         * modules/usleep (configure.ac): ... to here.
7867
7868 2011-05-22  Bruno Haible  <bruno@clisp.org>
7869
7870         unlockpt: Move AC_LIBOBJ invocations to module description.
7871         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7872         gl_PREREQ_UNLOCKPT invocations from here...
7873         * modules/unlockpt (configure.ac): ... to here.
7874
7875 2011-05-22  Bruno Haible  <bruno@clisp.org>
7876
7877         unlink: Respect rules for use of AC_LIBOBJ.
7878         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7879         * modules/unlink (configure.ac): ... to here.
7880
7881 2011-05-22  Bruno Haible  <bruno@clisp.org>
7882
7883         uname: Move AC_LIBOBJ invocations to module description.
7884         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7885         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7886         here...
7887         * modules/uname (configure.ac): ... to here.
7888
7889 2011-05-22  Bruno Haible  <bruno@clisp.org>
7890
7891         ttyname_r: Move AC_LIBOBJ invocations to module description.
7892         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7893         gl_PREREQ_TTYNAME_R invocations from here...
7894         * modules/ttyname_r (configure.ac): ... to here.
7895
7896 2011-05-22  Bruno Haible  <bruno@clisp.org>
7897
7898         tsearch: Move AC_LIBOBJ invocations to module description.
7899         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7900         invocations from here...
7901         * modules/tsearch (configure.ac): ... to here.
7902
7903 2011-05-22  Bruno Haible  <bruno@clisp.org>
7904
7905         towctrans: Move AC_LIBOBJ invocations to module description.
7906         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7907         AC_LIBOBJ invocation from here...
7908         * modules/towctrans (configure.ac): ... to here.
7909
7910 2011-05-22  Bruno Haible  <bruno@clisp.org>
7911
7912         tmpfile: Move AC_LIBOBJ invocations to module description.
7913         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7914         invocations from here...
7915         * modules/tmpfile (configure.ac): ... to here.
7916
7917 2011-05-22  Bruno Haible  <bruno@clisp.org>
7918
7919         times: Move AC_LIBOBJ invocations to module description.
7920         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7921         * modules/times (configure.ac): ... to here.
7922
7923 2011-05-22  Bruno Haible  <bruno@clisp.org>
7924
7925         time_r: Move AC_LIBOBJ invocations to module description.
7926         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7927         invocations from here...
7928         * modules/time_r (configure.ac): ... to here.
7929
7930 2011-05-22  Bruno Haible  <bruno@clisp.org>
7931
7932         timegm: Move AC_LIBOBJ invocations to module description.
7933         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7934         invocations from here...
7935         * modules/timegm (configure.ac): ... to here.
7936
7937 2011-05-22  Bruno Haible  <bruno@clisp.org>
7938
7939         tcgetsid: Move AC_LIBOBJ invocations to module description.
7940         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7941         and gl_PREREQ_TCGETSID invocations from here...
7942         * modules/tcgetsid (configure.ac): ... to here.
7943         (Depends-on): Update conditions.
7944
7945 2011-05-22  Bruno Haible  <bruno@clisp.org>
7946
7947         symlinkat: Move AC_LIBOBJ invocations to module description.
7948         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7949         here...
7950         * modules/symlinkat (configure.ac): ... to here.
7951
7952 2011-05-22  Bruno Haible  <bruno@clisp.org>
7953
7954         symlink: Move AC_LIBOBJ invocations to module description.
7955         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7956         here...
7957         * modules/symlink (configure.ac): ... to here.
7958
7959 2011-05-22  Bruno Haible  <bruno@clisp.org>
7960
7961         strverscmp: Move AC_LIBOBJ invocations to module description.
7962         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7963         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7964         from here...
7965         * modules/strverscmp (configure.ac): ... to here.
7966
7967 2011-05-22  Bruno Haible  <bruno@clisp.org>
7968
7969         strtok_r: Move AC_LIBOBJ invocations to module description.
7970         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7971         and gl_PREREQ_STRTOK_R invocations from here...
7972         * modules/strtok_r (configure.ac): ... to here.
7973         (Depends-on): Update conditions.
7974
7975 2011-05-22  Bruno Haible  <bruno@clisp.org>
7976
7977         strtoumax: Move AC_LIBOBJ invocations to module description.
7978         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7979         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7980         from here...
7981         * modules/strtoumax (configure.ac): ... to here.
7982
7983 2011-05-22  Bruno Haible  <bruno@clisp.org>
7984
7985         strtoimax: Move AC_LIBOBJ invocations to module description.
7986         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7987         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7988         from here...
7989         * modules/strtoimax (configure.ac): ... to here.
7990
7991 2011-05-22  Bruno Haible  <bruno@clisp.org>
7992
7993         strtoull: Move AC_LIBOBJ invocations to module description.
7994         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7995         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7996         from here...
7997         * modules/strtoull (configure.ac): ... to here.
7998
7999 2011-05-22  Bruno Haible  <bruno@clisp.org>
8000
8001         strtoll: Move AC_LIBOBJ invocations to module description.
8002         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8003         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8004         here...
8005         * modules/strtoll (configure.ac): ... to here.
8006
8007 2011-05-22  Bruno Haible  <bruno@clisp.org>
8008
8009         strtoul: Move AC_LIBOBJ invocations to module description.
8010         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8011         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8012         * modules/strtoul (configure.ac): ... to here.
8013
8014 2011-05-22  Bruno Haible  <bruno@clisp.org>
8015
8016         strtol: Move AC_LIBOBJ invocations to module description.
8017         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8018         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8019         * modules/strtol (configure.ac): ... to here.
8020
8021 2011-05-22  Bruno Haible  <bruno@clisp.org>
8022
8023         strtod: Move AC_LIBOBJ invocations to module description.
8024         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8025         invocations from here...
8026         * modules/strtod (configure.ac): ... to here.
8027
8028 2011-05-22  Bruno Haible  <bruno@clisp.org>
8029
8030         strstr*: Move AC_LIBOBJ invocations to module description.
8031         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8032         invocations from here...
8033         * modules/strstr-simple (configure.ac): ... to here.
8034         * modules/strstr (configure.ac): ... and here.
8035
8036 2011-05-22  Bruno Haible  <bruno@clisp.org>
8037
8038         strsignal: Move AC_LIBOBJ invocations to module description.
8039         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8040         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8041         * modules/strsignal (configure.ac): ... to here.
8042         (Depends-on): Update conditions.
8043
8044 2011-05-22  Bruno Haible  <bruno@clisp.org>
8045
8046         strsep: Move AC_LIBOBJ invocations to module description.
8047         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8048         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8049         here...
8050         * modules/strsep (configure.ac): ... to here.
8051
8052 2011-05-22  Bruno Haible  <bruno@clisp.org>
8053
8054         strptime: Move AC_LIBOBJ invocations to module description.
8055         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8056         gl_PREREQ_STRPTIME invocations from here...
8057         * modules/strptime (configure.ac): ... to here.
8058
8059 2011-05-22  Bruno Haible  <bruno@clisp.org>
8060
8061         strpbrk: Move AC_LIBOBJ invocations to module description.
8062         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8063         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8064         here...
8065         * modules/strpbrk (configure.ac): ... to here.
8066
8067 2011-05-22  Bruno Haible  <bruno@clisp.org>
8068
8069         strnlen: Move AC_LIBOBJ invocations to module description.
8070         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8071         invocations from here...
8072         * modules/strnlen (configure.ac): ... to here.
8073
8074 2011-05-22  Bruno Haible  <bruno@clisp.org>
8075
8076         strndup: Move AC_LIBOBJ invocations to module description.
8077         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8078         invocations from here...
8079         * modules/strndup (configure.ac): ... to here.
8080         (Depends-on): Update conditions.
8081
8082 2011-05-22  Bruno Haible  <bruno@clisp.org>
8083
8084         strncat: Move AC_LIBOBJ invocations to module description.
8085         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8086         invocations from here...
8087         * modules/strncat (configure.ac): ... to here.
8088
8089 2011-05-22  Bruno Haible  <bruno@clisp.org>
8090
8091         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8092         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8093         invocations from here...
8094         * modules/strdup (configure.ac): ... to here.
8095         * modules/strdup-posix (configure.ac): ... and here.
8096
8097 2011-05-22  Bruno Haible  <bruno@clisp.org>
8098
8099         strcspn: Move AC_LIBOBJ invocations to module description.
8100         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8101         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8102         here...
8103         * modules/strcspn (configure.ac): ... to here.
8104
8105 2011-05-22  Bruno Haible  <bruno@clisp.org>
8106
8107         strchrnul: Move AC_LIBOBJ invocations to module description.
8108         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8109         gl_PREREQ_STRCHRNUL invocations from here...
8110         * modules/strchrnul (configure.ac): ... to here.
8111
8112 2011-05-22  Bruno Haible  <bruno@clisp.org>
8113
8114         strcasestr*: Move AC_LIBOBJ invocations to module description.
8115         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8116         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8117         * modules/strcasestr-simple (configure.ac): ... to here.
8118         * modules/strcasestr (configure.ac): ... and here.
8119
8120 2011-05-22  Bruno Haible  <bruno@clisp.org>
8121
8122         strcase: Move AC_LIBOBJ invocations to module description.
8123         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8124         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8125         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8126         gl_PREREQ_STRNCASECMP invocations from here...
8127         * modules/strcase (configure.ac): ... to here.
8128
8129 2011-05-22  Bruno Haible  <bruno@clisp.org>
8130
8131         stpncpy: Move AC_LIBOBJ invocations to module description.
8132         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8133         here...
8134         * modules/stpncpy (configure.ac): ... to here.
8135
8136 2011-05-22  Bruno Haible  <bruno@clisp.org>
8137
8138         stpcpy: Move AC_LIBOBJ invocations to module description.
8139         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8140         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8141         here...
8142         * modules/stpcpy (configure.ac): ... to here.
8143
8144 2011-05-21  Bruno Haible  <bruno@clisp.org>
8145
8146         stat: Move AC_LIBOBJ invocations to module description.
8147         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8148         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8149         here...
8150         * modules/stat (configure.ac): ... to here.
8151
8152 2011-05-21  Bruno Haible  <bruno@clisp.org>
8153
8154         sleep: Move AC_LIBOBJ invocations to module description.
8155         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8156         * modules/sleep (configure.ac): ... to here.
8157
8158 2011-05-21  Bruno Haible  <bruno@clisp.org>
8159
8160         signbit: Move AC_LIBOBJ invocations to module description.
8161         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8162         * modules/signbit (configure.ac): ... to here.
8163
8164 2011-05-21  Bruno Haible  <bruno@clisp.org>
8165
8166         sigprocmask: Move AC_LIBOBJ invocations to module description.
8167         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8168         gl_PREREQ_SIGPROMASK invocations from here...
8169         * modules/sigprocmask (configure.ac): ... to here.
8170
8171 2011-05-21  Bruno Haible  <bruno@clisp.org>
8172
8173         sigaction: Move AC_LIBOBJ invocations to module description.
8174         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8175         gl_PREREQ_SIGACTION invocations from here...
8176         * modules/sigaction (configure.ac): ... to here.
8177
8178 2011-05-21  Bruno Haible  <bruno@clisp.org>
8179
8180         sig2str: Move AC_LIBOBJ invocations to module description.
8181         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8182         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8183         here...
8184         * modules/sig2str (configure.ac): ... to here.
8185
8186 2011-05-21  Bruno Haible  <bruno@clisp.org>
8187
8188         setlocale: Move AC_LIBOBJ invocations to module description.
8189         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8190         gl_PREREQ_SETLOCALE invocations from here...
8191         * modules/setlocale (configure.ac): ... to here.
8192
8193 2011-05-21  Bruno Haible  <bruno@clisp.org>
8194
8195         unsetenv: Move AC_LIBOBJ invocations to module description.
8196         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8197         and gl_PREREQ_UNSETENV invocations from here...
8198         * modules/unsetenv (configure.ac): ... to here.
8199         (Depends-on): Update.
8200
8201 2011-05-21  Bruno Haible  <bruno@clisp.org>
8202
8203         setenv: Move AC_LIBOBJ invocations to module description.
8204         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8205         here...
8206         * modules/setenv (configure.ac): ... to here.
8207
8208 2011-05-21  Bruno Haible  <bruno@clisp.org>
8209
8210         selinux-h: Move AC_LIBOBJ invocations to module description.
8211         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8212         AC_LIBOBJ invocation from here...
8213         * modules/selinux-h (configure.ac): ... to here.
8214
8215 2011-05-21  Bruno Haible  <bruno@clisp.org>
8216
8217         select: Respect rules for use of AC_LIBOBJ.
8218         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8219         here...
8220         * modules/select (configure.ac): ... to here.
8221
8222 2011-05-21  Bruno Haible  <bruno@clisp.org>
8223
8224         scandir: Move AC_LIBOBJ invocations to module description.
8225         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8226         invocations from here...
8227         * modules/scandir (configure.ac): ... to here.
8228
8229 2011-05-21  Bruno Haible  <bruno@clisp.org>
8230
8231         rpmatch: Move AC_LIBOBJ invocations to module description.
8232         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8233         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8234         here...
8235         * modules/rpmatch (configure.ac): ... to here.
8236
8237 2011-05-21  Bruno Haible  <bruno@clisp.org>
8238
8239         rmdir: Respect rules for use of AC_LIBOBJ.
8240         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8241         * modules/rmdir (configure.ac): ... to here.
8242
8243 2011-05-21  Bruno Haible  <bruno@clisp.org>
8244
8245         renameat: Move AC_LIBOBJ invocations to module description.
8246         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8247         here...
8248         * modules/renameat (configure.ac): ... to here.
8249
8250 2011-05-21  Bruno Haible  <bruno@clisp.org>
8251
8252         rename: Respect rules for use of AC_LIBOBJ.
8253         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8254         here...
8255         * modules/rename (configure.ac): ... to here.
8256
8257 2011-05-21  Bruno Haible  <bruno@clisp.org>
8258
8259         remove: Move AC_LIBOBJ invocations to module description.
8260         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8261         here...
8262         * modules/remove (configure.ac): ... to here.
8263
8264 2011-05-21  Bruno Haible  <bruno@clisp.org>
8265
8266         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8267         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8268         macro.
8269         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8270         * modules/relocatable-lib (configure.ac): ... to here.
8271         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8272         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8273
8274 2011-05-21  Bruno Haible  <bruno@clisp.org>
8275
8276         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8277         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8278         here...
8279         * modules/relocatable-prog (configure.ac): ... to here.
8280
8281 2011-05-21  Bruno Haible  <bruno@clisp.org>
8282
8283         regex: Move AC_LIBOBJ invocations to module description.
8284         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8285         invocations from here...
8286         * modules/regex (configure.ac): ... to here.
8287
8288 2011-05-21  Bruno Haible  <bruno@clisp.org>
8289
8290         realloc-*: Move AC_LIBOBJ invocations to module description.
8291         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8292         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8293         AC_LIBOBJ invocations from here...
8294         * modules/realloc-gnu (configure.ac): ... to here.
8295         * modules/realloc-posix (configure.ac): ... and here.
8296
8297 2011-05-21  Bruno Haible  <bruno@clisp.org>
8298
8299         readutmp: Move AC_LIBOBJ invocations to module description.
8300         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8301         * modules/readutmp (configure.ac): ... to here.
8302
8303 2011-05-21  Bruno Haible  <bruno@clisp.org>
8304
8305         readlinkat: Move AC_LIBOBJ invocations to module description.
8306         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8307         here...
8308         * modules/readlinkat (configure.ac): ... to here.
8309
8310 2011-05-21  Bruno Haible  <bruno@clisp.org>
8311
8312         readlink: Move AC_LIBOBJ invocations to module description.
8313         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8314         gl_PREREQ_READLINK invocations from here...
8315         * modules/readlink (configure.ac): ... to here.
8316
8317 2011-05-21  Bruno Haible  <bruno@clisp.org>
8318
8319         readline: Move AC_LIBOBJ invocations to module description.
8320         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8321         gl_PREREQ_READLINE invocations from here...
8322         * modules/readline (configure.ac): ... to here.
8323
8324 2011-05-21  Bruno Haible  <bruno@clisp.org>
8325
8326         read: Move AC_LIBOBJ invocations to module description.
8327         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8328         * modules/read (configure.ac): ... to here.
8329
8330 2011-05-21  Bruno Haible  <bruno@clisp.org>
8331
8332         rawmemchr: Move AC_LIBOBJ invocations to module description.
8333         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8334         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8335         from here...
8336         * modules/rawmemchr (configure.ac): ... to here.
8337
8338 2011-05-21  Bruno Haible  <bruno@clisp.org>
8339
8340         random_r: Move AC_LIBOBJ invocations to module description.
8341         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8342         gl_PREREQ_RANDOM_R invocations from here...
8343         * modules/random_r (configure.ac): ... to here.
8344
8345 2011-05-21  Bruno Haible  <bruno@clisp.org>
8346
8347         pwrite: Move AC_LIBOBJ invocations to module description.
8348         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8349         * modules/pwrite (configure.ac): ... to here.
8350
8351 2011-05-21  Bruno Haible  <bruno@clisp.org>
8352
8353         putenv: Move AC_LIBOBJ invocations to module description.
8354         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8355         * modules/putenv (configure.ac): ... to here.
8356
8357 2011-05-21  Bruno Haible  <bruno@clisp.org>
8358
8359         login_tty: Move AC_LIBOBJ invocations to module description.
8360         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8361         * modules/login_tty (configure.ac): ... to here.
8362
8363 2011-05-21  Bruno Haible  <bruno@clisp.org>
8364
8365         openpty: Move AC_LIBOBJ invocations to module description.
8366         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8367         * modules/openpty (configure.ac): ... to here.
8368
8369 2011-05-21  Bruno Haible  <bruno@clisp.org>
8370
8371         forkpty: Move AC_LIBOBJ invocations to module description.
8372         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8373         * modules/forkpty (configure.ac): ... to here.
8374
8375 2011-05-21  Bruno Haible  <bruno@clisp.org>
8376
8377         ptsname: Move AC_LIBOBJ invocations to module description.
8378         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8379         invocations from here...
8380         * modules/ptsname (configure.ac): ... to here.
8381
8382 2011-05-21  Bruno Haible  <bruno@clisp.org>
8383
8384         pread: Move AC_LIBOBJ invocations to module description.
8385         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8386         * modules/pread (configure.ac): ... to here.
8387
8388 2011-05-21  Bruno Haible  <bruno@clisp.org>
8389
8390         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8391         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8392         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8393         * modules/posix_spawn (configure.ac): ... to here.
8394         * modules/posix_spawnp (configure.ac): ... and here.
8395
8396 2011-05-21  Bruno Haible  <bruno@clisp.org>
8397
8398         popen: Move AC_LIBOBJ invocations to module description.
8399         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8400         invocations from here...
8401         * modules/popen (configure.ac): ... to here.
8402
8403 2011-05-21  Bruno Haible  <bruno@clisp.org>
8404
8405         poll: Move AC_LIBOBJ invocations to module description.
8406         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8407         invocations from here...
8408         * modules/poll (configure.ac): ... to here.
8409
8410 2011-05-21  Bruno Haible  <bruno@clisp.org>
8411
8412         pipe-posix: Move AC_LIBOBJ invocations to module description.
8413         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8414         * modules/pipe-posix (configure.ac): ... to here.
8415
8416 2011-05-21  Bruno Haible  <bruno@clisp.org>
8417
8418         openat: Respect rules for use of AC_LIBOBJ.
8419         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8420         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8421         * modules/openat (configure.ac): ... to here.
8422
8423 2011-05-21  Bruno Haible  <bruno@clisp.org>
8424
8425         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8426         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8427         invocation from here...
8428         * modules/obstack-printf (configure.ac): ... to here.
8429         * modules/obstack-printf-posix (configure.ac): ... and here.
8430
8431 2011-05-21  Bruno Haible  <bruno@clisp.org>
8432
8433         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8434         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8435         from here...
8436         * modules/nl_langinfo (configure.ac): ... to here.
8437
8438 2011-05-21  Bruno Haible  <bruno@clisp.org>
8439
8440         nanosleep: Move AC_LIBOBJ invocations to module description.
8441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8442         gl_PREREQ_NANOSLEEP invocations from here...
8443         * modules/nanosleep (configure.ac): ... to here.
8444
8445 2011-05-21  Bruno Haible  <bruno@clisp.org>
8446
8447         mountlist: Move AC_LIBOBJ invocations to module description.
8448         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8449         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8450         * modules/mountlist (configure.ac): ... to here.
8451
8452 2011-05-21  Bruno Haible  <bruno@clisp.org>
8453
8454         mktime: Respect rules for use of AC_LIBOBJ.
8455         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8456         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8457         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8458         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8459         * modules/mktime (configure.ac): ... to here.
8460         * modules/mktime-internal (configure.ac): ... and here.
8461         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8462
8463 2011-05-21  Bruno Haible  <bruno@clisp.org>
8464
8465         mkstemps: Move AC_LIBOBJ invocations to module description.
8466         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8467         here...
8468         * modules/mkstemps (configure.ac): ... to here.
8469
8470 2011-05-21  Bruno Haible  <bruno@clisp.org>
8471
8472         mkstemp: Move AC_LIBOBJ invocations to module description.
8473         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8474         gl_PREREQ_MKSTEMP invocations from here...
8475         * modules/mkstemp (configure.ac): ... to here.
8476
8477 2011-05-21  Bruno Haible  <bruno@clisp.org>
8478
8479         mkostemps: Move AC_LIBOBJ invocations to module description.
8480         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8481         here...
8482         * modules/mkostemps (configure.ac): ... to here.
8483
8484 2011-05-21  Bruno Haible  <bruno@clisp.org>
8485
8486         mkostemp: Move AC_LIBOBJ invocations to module description.
8487         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8488         gl_PREREQ_MKOSTEMP invocations from here...
8489         * modules/mkostemp (configure.ac): ... to here.
8490
8491 2011-05-21  Bruno Haible  <bruno@clisp.org>
8492
8493         mknod: Move AC_LIBOBJ invocations to module description.
8494         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8495         * modules/mknod (configure.ac): ... to here.
8496
8497 2011-05-21  Bruno Haible  <bruno@clisp.org>
8498
8499         mkfifoat: Move AC_LIBOBJ invocations to module description.
8500         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8501         here...
8502         * modules/mkfifoat (configure.ac): ... to here.
8503
8504 2011-05-21  Bruno Haible  <bruno@clisp.org>
8505
8506         mkfifo: Respect rules for use of AC_LIBOBJ.
8507         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8508         here...
8509         * modules/mkfifo (configure.ac): ... to here.
8510
8511 2011-05-21  Bruno Haible  <bruno@clisp.org>
8512
8513         mkdtemp: Move AC_LIBOBJ invocations to module description.
8514         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8515         invocations from here...
8516         * modules/mkdtemp (configure.ac): ... to here.
8517
8518 2011-05-21  Bruno Haible  <bruno@clisp.org>
8519
8520         mkdir: Move AC_LIBOBJ invocations to module description.
8521         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8522         * modules/mkdir (configure.ac): ... to here.
8523
8524 2011-05-21  Bruno Haible  <bruno@clisp.org>
8525
8526         memset: Move AC_LIBOBJ invocations to module description.
8527         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8528         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8529         here...
8530         * modules/memset (configure.ac): ... to here.
8531
8532 2011-05-21  Bruno Haible  <bruno@clisp.org>
8533
8534         memrchr: Move AC_LIBOBJ invocations to module description.
8535         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8536         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8537         here...
8538         * modules/memrchr (configure.ac): ... to here.
8539
8540 2011-05-21  Bruno Haible  <bruno@clisp.org>
8541
8542         mempcpy: Move AC_LIBOBJ invocations to module description.
8543         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8544         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8545         here...
8546         * modules/mempcpy (configure.ac): ... to here.
8547
8548 2011-05-21  Bruno Haible  <bruno@clisp.org>
8549
8550         memmove: Move AC_LIBOBJ invocations to module description.
8551         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8552         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8553         here...
8554         * modules/memmove (configure.ac): ... to here.
8555
8556 2011-05-21  Bruno Haible  <bruno@clisp.org>
8557
8558         memmem*: Move AC_LIBOBJ invocations to module description.
8559         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8560         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8561         here...
8562         (gl_FUNC_MEMMEM): ... and here...
8563         * modules/memmem-simple (configure.ac): ... to here.
8564         * modules/memmem (configure.ac): ... and here.
8565
8566 2011-05-21  Bruno Haible  <bruno@clisp.org>
8567
8568         memcpy: Move AC_LIBOBJ invocations to module description.
8569         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8570         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8571         here...
8572         * modules/memcpy (configure.ac): ... to here.
8573
8574 2011-05-21  Bruno Haible  <bruno@clisp.org>
8575
8576         memcmp: Simplify autoconf macro.
8577         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8578         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8579         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8580
8581 2011-05-21  Bruno Haible  <bruno@clisp.org>
8582
8583         memcmp: Move AC_LIBOBJ invocations to module description.
8584         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8585         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8586         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8587         * modules/memcmp (configure.ac): ... to here.
8588         (Depends-on): Update conditions.
8589
8590 2011-05-21  Bruno Haible  <bruno@clisp.org>
8591
8592         memchr: Respect rules for use of AC_LIBOBJ.
8593         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8594         invocations from here...
8595         * modules/memchr (configure.ac): ... to here.
8596
8597 2011-05-21  Bruno Haible  <bruno@clisp.org>
8598
8599         mbtowc: Move AC_LIBOBJ invocations to module description.
8600         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8601         invocations from here...
8602         * modules/mbtowc (configure.ac): ... to here.
8603
8604 2011-05-21  Bruno Haible  <bruno@clisp.org>
8605
8606         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8607         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8608         gl_PREREQ_MBSRTOWCS invocations from here...
8609         * modules/mbsrtowcs (configure.ac): ... to here.
8610
8611 2011-05-21  Bruno Haible  <bruno@clisp.org>
8612
8613         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8614         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8615         gl_PREREQ_MBSNRTOWCS invocations from here...
8616         * modules/mbsnrtowcs (configure.ac): ... to here.
8617
8618 2011-05-21  Bruno Haible  <bruno@clisp.org>
8619
8620         mbsinit: Move AC_LIBOBJ invocations to module description.
8621         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8622         invocations from here...
8623         * modules/mbsinit (configure.ac): ... to here.
8624
8625 2011-05-21  Bruno Haible  <bruno@clisp.org>
8626
8627         mbrlen: Move AC_LIBOBJ invocations to module description.
8628         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8629         invocations from here...
8630         * modules/mbrlen (configure.ac): ... to here.
8631
8632 2011-05-21  Bruno Haible  <bruno@clisp.org>
8633
8634         mbrtowc: Respect rules for use of AC_LIBOBJ.
8635         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8636         invocations from here...
8637         * modules/mbrtowc (configure.ac): ... to here.
8638
8639 2011-05-21  Bruno Haible  <bruno@clisp.org>
8640
8641         malloc-*: Move AC_LIBOBJ invocations to module description.
8642         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8643         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8644         AC_LIBOBJ invocations from here...
8645         * modules/malloc-gnu (configure.ac): ... to here.
8646         * modules/malloc-posix (configure.ac): ... and here.
8647
8648 2011-05-21  Bruno Haible  <bruno@clisp.org>
8649
8650         lstat, openat: Respect rules for use of AC_LIBOBJ.
8651         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8652         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8653         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8654         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8655         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8656         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8657         here.
8658         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8659
8660 2011-05-21  Bruno Haible  <bruno@clisp.org>
8661
8662         lseek: Move AC_LIBOBJ invocations to module description.
8663         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8664         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8665         * modules/lseek (configure.ac): ... to here.
8666
8667 2011-05-21  Bruno Haible  <bruno@clisp.org>
8668
8669         linkat: Move AC_LIBOBJ invocations to module description.
8670         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8671         here...
8672         * modules/linkat (configure.ac): ... to here.
8673
8674 2011-05-21  Bruno Haible  <bruno@clisp.org>
8675
8676         link: Respect rules for use of AC_LIBOBJ.
8677         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8678         * modules/link (configure.ac): ... to here.
8679
8680 2011-05-21  Bruno Haible  <bruno@clisp.org>
8681
8682         lchown: Move AC_LIBOBJ invocations to module description.
8683         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8684         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8685         * modules/lchown (configure.ac): ... to here.
8686
8687 2011-05-21  Bruno Haible  <bruno@clisp.org>
8688
8689         iswctype: Move AC_LIBOBJ invocations to module description.
8690         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8691         here...
8692         * modules/iswctype (configure.ac): ... to here.
8693
8694 2011-05-21  Bruno Haible  <bruno@clisp.org>
8695
8696         iswblank: Move AC_LIBOBJ invocations to module description.
8697         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8698         here...
8699         * modules/iswblank (configure.ac): ... to here.
8700
8701 2011-05-21  Bruno Haible  <bruno@clisp.org>
8702
8703         atanl: Move AC_LIBOBJ invocations to module description.
8704         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8705         * modules/atanl (configure.ac): ... to here.
8706
8707 2011-05-21  Bruno Haible  <bruno@clisp.org>
8708
8709         acosl: Move AC_LIBOBJ invocations to module description.
8710         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8711         * modules/acosl (configure.ac): ... to here.
8712
8713 2011-05-21  Bruno Haible  <bruno@clisp.org>
8714
8715         asinl: Respect rules for use of AC_LIBOBJ.
8716         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8717         * modules/asinl (configure.ac): ... to here.
8718
8719 2011-05-21  Bruno Haible  <bruno@clisp.org>
8720
8721         tanl: Move AC_LIBOBJ invocations to module description.
8722         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8723         * modules/tanl (configure.ac): ... to here.
8724
8725 2011-05-21  Bruno Haible  <bruno@clisp.org>
8726
8727         cosl: Move AC_LIBOBJ invocations to module description.
8728         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8729         * modules/cosl (configure.ac): ... to here.
8730
8731 2011-05-21  Bruno Haible  <bruno@clisp.org>
8732
8733         sinl: Move AC_LIBOBJ invocations to module description.
8734         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8735         * modules/sinl (configure.ac): ... to here.
8736
8737 2011-05-21  Bruno Haible  <bruno@clisp.org>
8738
8739         logl: Move AC_LIBOBJ invocations to module description.
8740         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8741         * modules/logl (configure.ac): ... to here.
8742
8743 2011-05-21  Bruno Haible  <bruno@clisp.org>
8744
8745         expl: Move AC_LIBOBJ invocations to module description.
8746         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8747         * modules/expl (configure.ac): ... to here.
8748
8749 2011-05-21  Bruno Haible  <bruno@clisp.org>
8750
8751         roundl: Move AC_LIBOBJ invocations to module description.
8752         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8753         * modules/roundl (configure.ac): ... to here.
8754
8755 2011-05-21  Bruno Haible  <bruno@clisp.org>
8756
8757         round: Move AC_LIBOBJ invocations to module description.
8758         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8759         * modules/round (configure.ac): ... to here.
8760
8761 2011-05-21  Bruno Haible  <bruno@clisp.org>
8762
8763         roundf: Move AC_LIBOBJ invocations to module description.
8764         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8765         * modules/roundf (configure.ac): ... to here.
8766
8767 2011-05-21  Bruno Haible  <bruno@clisp.org>
8768
8769         truncl: Move AC_LIBOBJ invocations to module description.
8770         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8771         * modules/truncl (configure.ac): ... to here.
8772
8773 2011-05-21  Bruno Haible  <bruno@clisp.org>
8774
8775         trunc: Move AC_LIBOBJ invocations to module description.
8776         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8777         * modules/trunc (configure.ac): ... to here.
8778
8779 2011-05-21  Bruno Haible  <bruno@clisp.org>
8780
8781         truncf: Move AC_LIBOBJ invocations to module description.
8782         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8783         * modules/truncf (configure.ac): ... to here.
8784
8785 2011-05-21  Bruno Haible  <bruno@clisp.org>
8786
8787         ceill: Move AC_LIBOBJ invocations to module description.
8788         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8789         * modules/ceill (configure.ac): ... to here.
8790
8791 2011-05-21  Bruno Haible  <bruno@clisp.org>
8792
8793         ceil: Move AC_LIBOBJ invocations to module description.
8794         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8795         * modules/ceil (configure.ac): ... to here.
8796
8797 2011-05-21  Bruno Haible  <bruno@clisp.org>
8798
8799         ceilf: Move AC_LIBOBJ invocations to module description.
8800         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8801         * modules/ceilf (configure.ac): ... to here.
8802
8803 2011-05-21  Bruno Haible  <bruno@clisp.org>
8804
8805         floorl: Respect rules for use of AC_LIBOBJ.
8806         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8807         * modules/floorl (configure.ac): ... to here.
8808
8809 2011-05-21  Bruno Haible  <bruno@clisp.org>
8810
8811         floor: Respect rules for use of AC_LIBOBJ.
8812         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8813         * modules/floor (configure.ac): ... to here.
8814
8815 2011-05-21  Bruno Haible  <bruno@clisp.org>
8816
8817         floorf: Move AC_LIBOBJ invocations to module description.
8818         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8819         * modules/floorf (configure.ac): ... to here.
8820
8821 2011-05-20  Bruno Haible  <bruno@clisp.org>
8822
8823         sqrtl: Respect rules for use of AC_LIBOBJ.
8824         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8825         * modules/sqrtl (configure.ac): ... to here.
8826
8827 2011-05-20  Bruno Haible  <bruno@clisp.org>
8828
8829         ldexpl: Respect rules for use of AC_LIBOBJ.
8830         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8831         * modules/ldexpl (configure.ac): ... to here.
8832
8833 2011-05-20  Bruno Haible  <bruno@clisp.org>
8834
8835         frexpl*: Respect rules for use of AC_LIBOBJ.
8836         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8837         invocation from here...
8838         * modules/frexpl (configure.ac): ... to here.
8839         * modules/frexpl-nolibm (configure.ac): ... and here.
8840
8841 2011-05-20  Bruno Haible  <bruno@clisp.org>
8842
8843         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8844         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8845         invocation from here...
8846         * modules/frexp (configure.ac): ... to here.
8847         * modules/frexp-nolibm (configure.ac): ... and here.
8848
8849 2011-05-20  Bruno Haible  <bruno@clisp.org>
8850
8851         isnan: Respect rules for use of AC_LIBOBJ.
8852         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8853         invocations here.
8854         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8855         REPLACE_ISNAN.
8856         * modules/isnand (configure.ac): Likewise.
8857         * modules/isnanl (configure.ac): Likewise.
8858
8859 2011-05-20  Bruno Haible  <bruno@clisp.org>
8860
8861         isnanl*: Respect rules for use of AC_LIBOBJ.
8862         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8863         invocation from here...
8864         * modules/isnanl (configure.ac): ... to here.
8865         * modules/isnanl-nolibm (configure.ac): ... and here.
8866
8867 2011-05-20  Bruno Haible  <bruno@clisp.org>
8868
8869         isnand*: Move AC_LIBOBJ invocations to module description.
8870         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8871         invocation from here...
8872         * modules/isnand (configure.ac): ... to here.
8873         * modules/isnand-nolibm (configure.ac): ... and here.
8874
8875 2011-05-20  Bruno Haible  <bruno@clisp.org>
8876
8877         isnanf*: Move AC_LIBOBJ invocations to module description.
8878         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8879         invocation from here...
8880         * modules/isnanf (configure.ac): ... to here.
8881         * modules/isnanf-nolibm (configure.ac): ... and here.
8882
8883 2011-05-20  Bruno Haible  <bruno@clisp.org>
8884
8885         isnan*: Separate the AC_LIBOBJ invocations.
8886         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8887         AC_LIBOBJ invocation.
8888         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8889         here.
8890         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8891         AC_LIBOBJ invocation.
8892         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8893         here.
8894         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8895         AC_LIBOBJ invocation.
8896         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8897         here.
8898         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8899
8900 2011-05-08  Bruno Haible  <bruno@clisp.org>
8901
8902         isinf: Move AC_LIBOBJ invocations to module description.
8903         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8904         * modules/isinf (configure.ac): ... to here.
8905
8906 2011-05-08  Bruno Haible  <bruno@clisp.org>
8907
8908         isfinite: Move AC_LIBOBJ invocations to module description.
8909         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8910         * modules/isfinite (configure.ac): ... to here.
8911
8912 2011-05-08  Bruno Haible  <bruno@clisp.org>
8913
8914         isblank: Move AC_LIBOBJ invocations to module description.
8915         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8916         here...
8917         * modules/isblank (configure.ac): ... to here.
8918
8919 2011-05-08  Bruno Haible  <bruno@clisp.org>
8920
8921         isapipe: Move AC_LIBOBJ invocations to module description.
8922         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8923         gl_PREREQ_ISAPIPE invocations from here...
8924         * modules/isapipe (configure.ac): ... to here.
8925         (Depends-on): Update condition.
8926
8927 2011-05-08  Bruno Haible  <bruno@clisp.org>
8928
8929         ioctl: Move AC_LIBOBJ invocations to module description.
8930         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8931         invocations from here...
8932         * modules/ioctl (configure.ac): ... to here.
8933         (Depends-on): Update condition.
8934
8935 2011-05-08  Bruno Haible  <bruno@clisp.org>
8936
8937         imaxdiv: Move AC_LIBOBJ invocations to module description.
8938         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8939         invocations from here...
8940         * modules/imaxdiv (configure.ac): ... to here.
8941
8942 2011-05-08  Bruno Haible  <bruno@clisp.org>
8943
8944         imaxabs: Move AC_LIBOBJ invocations to module description.
8945         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8946         invocations from here...
8947         * modules/imaxabs (configure.ac): ... to here.
8948
8949 2011-05-08  Bruno Haible  <bruno@clisp.org>
8950
8951         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8952         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8953         AC_LIBOBJ invocations from here...
8954         * modules/getaddrinfo (configure.ac): ... to here.
8955         (Depends-on): Add conditions.
8956
8957 2011-05-08  Bruno Haible  <bruno@clisp.org>
8958
8959         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8960         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8961         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8962         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8963         (gl_PREREQ_INET_PTON): ... from here.
8964         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8965         gl_PREREQ_INET_PTON here.
8966         (Depends-on): Update condition.
8967
8968 2011-05-08  Bruno Haible  <bruno@clisp.org>
8969
8970         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8971         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8972         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8973         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8974         (gl_PREREQ_INET_NTOP): ... from here.
8975         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8976         gl_PREREQ_INET_NTOP here.
8977         (Depends-on): Update condition.
8978
8979 2011-05-08  Bruno Haible  <bruno@clisp.org>
8980
8981         iconv_open: Move AC_LIBOBJ invocations to module description.
8982         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8983         AC_LIBOBJ invocations from here...
8984         * modules/iconv_open (configure.ac): ... to here.
8985
8986 2011-05-08  Bruno Haible  <bruno@clisp.org>
8987
8988         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8989         If module 'iconv_open' is among the main modules and module
8990         'iconv_open-utf' is among the tests dependencies, then
8991         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8992         return the special iconv_t values. Therefore iconv() and iconv_close()
8993         must support these special iconv_t values, already in lib, not only in
8994         tests.
8995         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8996         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8997         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8998         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8999         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9000         (Depends-on): Add the dependencies of iconv_open-utf.
9001         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9002         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9003         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9004
9005 2011-05-08  Bruno Haible  <bruno@clisp.org>
9006
9007         group-member: Move AC_LIBOBJ invocations to module description.
9008         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9009         gl_PREREQ_GROUP_MEMBER invocations from here...
9010         * modules/group-member (configure.ac): ... to here.
9011
9012 2011-05-08  Bruno Haible  <bruno@clisp.org>
9013
9014         grantpt: Move AC_LIBOBJ invocations to module description.
9015         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9016         invocations from here...
9017         * modules/grantpt (configure.ac): ... to here.
9018
9019 2011-05-08  Bruno Haible  <bruno@clisp.org>
9020
9021         glob: Move AC_LIBOBJ invocations to module description.
9022         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9023         from here...
9024         * modules/glob (configure.ac): ... to here.
9025
9026 2011-05-08  Bruno Haible  <bruno@clisp.org>
9027
9028         getusershell: Move AC_LIBOBJ invocations to module description.
9029         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9030         Move AC_LIBOBJ invocation from here...
9031         * modules/getusershell (configure.ac): ... to here.
9032         (Depends-on): Update condition.
9033
9034 2011-05-08  Bruno Haible  <bruno@clisp.org>
9035
9036         gettimeofday: Move AC_LIBOBJ invocations to module description.
9037         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9038         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9039         gl_PREREQ_GETTIMEOFDAY invocations from here...
9040         * modules/gettimeofday (configure.ac): ... to here.
9041
9042 2011-05-08  Bruno Haible  <bruno@clisp.org>
9043
9044         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9045         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9046         just gl_FUNC_TZSET.
9047         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9048         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9049         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9050         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9051
9052 2011-05-08  Bruno Haible  <bruno@clisp.org>
9053
9054         getsubopt: Move AC_LIBOBJ invocations to module description.
9055         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9056         gl_PREREQ_GETSUBOPT invocations from here...
9057         * modules/getsubopt (configure.ac): ... to here.
9058
9059 2011-05-08  Bruno Haible  <bruno@clisp.org>
9060
9061         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9062         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9063         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9064         * modules/getpass-gnu (configure.ac): ... to here.
9065
9066 2011-05-08  Bruno Haible  <bruno@clisp.org>
9067
9068         getpass: Move AC_LIBOBJ invocations to module description.
9069         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9070         gl_PREREQ_GETPASS invocations from here...
9071         * modules/getpass (configure.ac): ... to here.
9072
9073 2011-05-08  Bruno Haible  <bruno@clisp.org>
9074
9075         getpagesize: Move AC_LIBOBJ invocations to module description.
9076         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9077         from here...
9078         * modules/getpagesize (configure.ac): ... to here.
9079
9080 2011-05-08  Bruno Haible  <bruno@clisp.org>
9081
9082         getopt: Move AC_LIBOBJ invocations to module description.
9083         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9084         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9085         invocations from here...
9086         * modules/getopt-gnu (configure.ac): ... to here.
9087         * modules/getopt-posix (configure.ac): ... and here.
9088         (Depends-on): Update condition.
9089
9090 2011-05-08  Bruno Haible  <bruno@clisp.org>
9091
9092         getopt, argp: Respect rules for use of AC_LIBOBJ.
9093         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9094         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9095         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9096         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9097
9098 2011-05-08  Bruno Haible  <bruno@clisp.org>
9099
9100         getlogin_r: Move AC_LIBOBJ invocations to module description.
9101         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9102         gl_PREREQ_GETLOGIN_R invocations from here...
9103         * modules/getlogin_r (configure.ac): ... to here.
9104
9105 2011-05-08  Bruno Haible  <bruno@clisp.org>
9106
9107         getlogin: Move AC_LIBOBJ invocations to module description.
9108         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9109         here...
9110         * modules/getlogin (configure.ac): ... to here.
9111
9112 2011-05-08  Bruno Haible  <bruno@clisp.org>
9113
9114         getloadavg: Move AC_LIBOBJ invocations to module description.
9115         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9116         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9117         * modules/getloadavg (configure.ac): ... to here.
9118
9119 2011-05-08  Bruno Haible  <bruno@clisp.org>
9120
9121         gethrxtime: Move AC_LIBOBJ invocations to module description.
9122         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9123         LIB_GETHRXTIME from here...
9124         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9125         invocations from here...
9126         * modules/gethrxtime (configure.ac): ... to here.
9127
9128 2011-05-08  Bruno Haible  <bruno@clisp.org>
9129
9130         gethostname: Move AC_LIBOBJ invocations to module description.
9131         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9132         gl_PREREQ_GETHOSTNAME invocations from here...
9133         * modules/gethostname (configure.ac): ... to here.
9134
9135 2011-05-08  Bruno Haible  <bruno@clisp.org>
9136
9137         getgroups: Move AC_LIBOBJ invocations to module description.
9138         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9139         here...
9140         * modules/getgroups (configure.ac): ... to here.
9141
9142 2011-05-08  Bruno Haible  <bruno@clisp.org>
9143
9144         getdtablesize: Move AC_LIBOBJ invocations to module description.
9145         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9146         invocation from here...
9147         * modules/getdtablesize (configure.ac): ... to here.
9148
9149 2011-05-08  Bruno Haible  <bruno@clisp.org>
9150
9151         getdomainname: Move AC_LIBOBJ invocations to module description.
9152         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9153         gl_PREREQ_GETDOMAINNAME invocations from here...
9154         * modules/getdomainname (configure.ac): ... to here.
9155
9156 2011-05-08  Bruno Haible  <bruno@clisp.org>
9157
9158         getline: Move AC_LIBOBJ invocations to module description.
9159         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9160         invocations from here...
9161         * modules/getline (configure.ac): ... to here.
9162
9163 2011-05-08  Bruno Haible  <bruno@clisp.org>
9164
9165         getline: Simplify.
9166         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9167         It's already handled through the module dependency.
9168
9169 2011-05-08  Bruno Haible  <bruno@clisp.org>
9170
9171         getdelim: Move AC_LIBOBJ invocations to module description.
9172         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9173         and gl_PREREQ_GETDELIM invocations from here...
9174         * modules/getdelim (configure.ac): ... to here.
9175         (Depends-on): Fix condition.
9176
9177 2011-05-08  Bruno Haible  <bruno@clisp.org>
9178
9179         getcwd: Move AC_LIBOBJ invocations to module description.
9180         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9181         invocations from here...
9182         * modules/getcwd (configure.ac): ... to here.
9183
9184 2011-05-08  Bruno Haible  <bruno@clisp.org>
9185
9186         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9187         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9188         here...
9189         * modules/getcwd-lgpl (configure.ac): ... to here.
9190
9191 2011-05-07  Bruno Haible  <bruno@clisp.org>
9192
9193         crypto/gc: Move AC_LIBOBJ invocations to module description.
9194         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9195         * modules/crypto/gc (configure.ac): ... to here.
9196
9197 2011-05-07  Bruno Haible  <bruno@clisp.org>
9198
9199         fwriting: Move AC_LIBOBJ invocations to module description.
9200         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9201         here...
9202         * modules/fwriting (configure.ac): ... to here.
9203
9204 2011-05-07  Bruno Haible  <bruno@clisp.org>
9205
9206         fwritable: Move AC_LIBOBJ invocations to module description.
9207         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9208         here...
9209         * modules/fwritable (configure.ac): ... to here.
9210
9211 2011-05-07  Bruno Haible  <bruno@clisp.org>
9212
9213         futimens: Move AC_LIBOBJ invocations to module description.
9214         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9215         here...
9216         * modules/futimens (configure.ac): ... to here.
9217
9218 2011-05-07  Bruno Haible  <bruno@clisp.org>
9219
9220         ftruncate: Move AC_LIBOBJ invocations to module description.
9221         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9222         gl_PREREQ_FTRUNCATE invocations from here...
9223         * modules/ftruncate (configure.ac): ... to here.
9224
9225 2011-05-07  Bruno Haible  <bruno@clisp.org>
9226
9227         fsync: Move AC_LIBOBJ invocations to module description.
9228         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9229         invocations from here...
9230         * modules/fsync (configure.ac): ... to here.
9231
9232 2011-05-07  Bruno Haible  <bruno@clisp.org>
9233
9234         fsusage: Move AC_LIBOBJ invocations to module description.
9235         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9236         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9237         * modules/fsusage (configure.ac): ... to here.
9238
9239 2011-05-07  Bruno Haible  <bruno@clisp.org>
9240
9241         freopen: Move AC_LIBOBJ invocations to module description.
9242         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9243         invocations from here...
9244         * modules/freopen (configure.ac): ... to here.
9245
9246 2011-05-07  Bruno Haible  <bruno@clisp.org>
9247
9248         free: Move AC_LIBOBJ invocations to module description.
9249         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9250         invocations from here...
9251         * modules/free (configure.ac): ... to here.
9252
9253 2011-05-07  Bruno Haible  <bruno@clisp.org>
9254
9255         freadable: Move AC_LIBOBJ invocations to module description.
9256         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9257         here...
9258         * modules/freadable (configure.ac): ... to here.
9259
9260 2011-05-07  Bruno Haible  <bruno@clisp.org>
9261
9262         fpurge: Move AC_LIBOBJ invocations to module description.
9263         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9264         invocations from here...
9265         * modules/fpurge (configure.ac): ... to here.
9266
9267 2011-05-07  Bruno Haible  <bruno@clisp.org>
9268
9269         fpending: Move AC_LIBOBJ invocations to module description.
9270         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9271         gl_FUNC_FPENDING.
9272         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9273         invocations from here...
9274         * modules/fpending (configure.ac): ... to here.
9275
9276 2011-05-07  Bruno Haible  <bruno@clisp.org>
9277
9278         fopen: Move AC_LIBOBJ invocations to module description.
9279         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9280         invocations from here...
9281         * modules/fopen (configure.ac): ... to here.
9282
9283 2011-05-07  Bruno Haible  <bruno@clisp.org>
9284
9285         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9286         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9287         gl_FUNC_FNMATCH_POSIX.
9288         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9289         invocations from here...
9290         * modules/fnmatch (configure.ac): ... to here.
9291         * modules/fnmatch-gnu (configure.ac): ... and here.
9292
9293 2011-05-07  Bruno Haible  <bruno@clisp.org>
9294
9295         flock: Move AC_LIBOBJ invocations to module description.
9296         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9297         invocations from here...
9298         * modules/flock (configure.ac): ... to here.
9299
9300 2011-05-07  Bruno Haible  <bruno@clisp.org>
9301
9302         fileblocks: Move AC_LIBOBJ invocations to module description.
9303         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9304         gl_PREREQ_FILEBLOCKS invocations from here...
9305         * modules/fileblocks (configure.ac): ... to here.
9306
9307 2011-05-06  Bruno Haible  <bruno@clisp.org>
9308
9309         fflush: Move AC_LIBOBJ invocations to module description.
9310         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9311         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9312         invocations from here...
9313         * modules/fflush (configure.ac): ... to here.
9314
9315 2011-05-06  Bruno Haible  <bruno@clisp.org>
9316
9317         fdopendir: Move AC_LIBOBJ invocations to module description.
9318         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9319         here...
9320         * modules/fdopendir (configure.ac): ... to here.
9321         (Depends-on): Improve conditions.
9322
9323 2011-05-06  Bruno Haible  <bruno@clisp.org>
9324
9325         _Exit: Move AC_LIBOBJ invocations to module description.
9326         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9327         invocations from here...
9328         * modules/_Exit (configure.ac): ... to here.
9329
9330 2011-05-21  Bruno Haible  <bruno@clisp.org>
9331
9332         euidaccess: Respect rules for use of AC_LIBOBJ.
9333         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9334         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9335         from here...
9336         * modules/euidaccess (configure.ac): ... to here.
9337
9338 2011-05-06  Bruno Haible  <bruno@clisp.org>
9339
9340         error: Move AC_LIBOBJ invocations to module description.
9341         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9342         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9343         invocations from here...
9344         * modules/error (configure.ac): ... to here.
9345
9346 2011-05-06  Bruno Haible  <bruno@clisp.org>
9347
9348         duplocale: Move AC_LIBOBJ invocations to module description.
9349         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9350         gl_PREREQ_DUPLOCALE invocations from here...
9351         * modules/duplocale (configure.ac): ... to here.
9352
9353 2011-05-05  Bruno Haible  <bruno@clisp.org>
9354
9355         dirfd: Move AC_LIBOBJ invocations to module description.
9356         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9357         gl_FUNC_DIRFD.
9358         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9359         here...
9360         * modules/dirfd (configure.ac): ... to here.
9361         (Depends-on): Fix condition.
9362
9363 2011-05-05  Bruno Haible  <bruno@clisp.org>
9364
9365         chown: Respect rules for use of AC_LIBOBJ.
9366         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9367         * modules/chown (configure.ac): ... to here.
9368
9369 2011-05-05  Bruno Haible  <bruno@clisp.org>
9370
9371         chdir-long: Move AC_LIBOBJ invocations to module description.
9372         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9373         gl_PREREQ_CHDIR_LONG invocations from here...
9374         * modules/chdir-long (configure.ac): ... to here.
9375
9376 2011-05-05  Bruno Haible  <bruno@clisp.org>
9377
9378         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9379         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9380         from here...
9381         * modules/canonicalize-lgpl (configure.ac): ... to here.
9382
9383 2011-05-05  Bruno Haible  <bruno@clisp.org>
9384
9385         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9386         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9387         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9388         REPLACE_CALLOC.
9389         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9390         * modules/calloc-gnu (configure.ac): Likewise.
9391
9392 2011-05-05  Bruno Haible  <bruno@clisp.org>
9393
9394         btowc: Move AC_LIBOBJ invocations to module description.
9395         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9396         invocations from here...
9397         * modules/btowc (configure.ac): ... to here.
9398
9399 2011-05-21  Bruno Haible  <bruno@clisp.org>
9400
9401         atexit: Move AC_LIBOBJ invocations to module description.
9402         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9403         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9404         here...
9405         * modules/atexit (configure.ac): ... to here.
9406
9407 2011-05-05  Bruno Haible  <bruno@clisp.org>
9408
9409         atoll: Move AC_LIBOBJ invocations to module description.
9410         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9411         invocations from here...
9412         * modules/atoll (configure.ac): ... to here.
9413
9414 2011-05-05  Bruno Haible  <bruno@clisp.org>
9415
9416         argz: Move AC_LIBOBJ invocations to module description.
9417         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9418         * modules/argz (configure.ac): ... to here.
9419
9420 2011-05-05  Bruno Haible  <bruno@clisp.org>
9421
9422         alphasort: Move AC_LIBOBJ invocations to module description.
9423         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9424         gl_PREREQ_ALPHASORT invocations from here...
9425         * modules/alphasort (configure.ac): ... to here.
9426
9427 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9428
9429         verify: new macro verify_expr; verify_true deprecated
9430         * NEWS: Mention this.
9431         * doc/verify.texi (Compile-time Assertions): Document this.
9432         * lib/verify.h (verify_true): Deprecate.
9433         (verify_expr): New macro.
9434         * tests/test-verify.c (function): Test verify_expr.
9435
9436 2011-06-14  Jim Meyering  <meyering@redhat.com>
9437
9438         init.sh: give more portable redirection-related advice in a comment
9439         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9440         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9441         for lots of discussion.  Stefano Lattarini suggested the solution
9442         of putting "9>&2" after the command.  Reported by Bruno Haible.
9443
9444 2011-06-13  Bruno Haible  <bruno@clisp.org>
9445
9446         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9447         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9448         'none'.
9449
9450 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9451
9452         ftoastr: use strtof only if HAVE_STRTOF
9453         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9455         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9456         * modules/ftoastr (configure.ac): Check for strtof.
9457
9458 2011-06-13  Bruno Haible  <bruno@clisp.org>
9459
9460         gnulib-tool: Addendum to 2011-06-08 commit.
9461         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9462         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9463
9464 2011-06-13  Bruno Haible  <bruno@clisp.org>
9465
9466         fseeko: Provide a non-inline replacement of fseek().
9467         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9468         * modules/fseeko (Depends-on): Add fseek.
9469         * modules/fseek (License): Change to LGPLv2+.
9470
9471 2011-06-13  Bruno Haible  <bruno@clisp.org>
9472
9473         ftello: Provide a non-inline replacement of ftell().
9474         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9475         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9476         not have ftello() (such as on mingw).
9477         * modules/ftello (Depends-on): Add ftell.
9478         * modules/ftell (License): Change to LGPLv2+.
9479
9480 2011-05-07  Bruno Haible  <bruno@clisp.org>
9481
9482         ftell: Move AC_LIBOBJ invocations to module description.
9483         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9484         * modules/ftell (configure.ac): ... to here.
9485
9486 2011-05-07  Bruno Haible  <bruno@clisp.org>
9487
9488         ftello: Respect rules for use of AC_LIBOBJ.
9489         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9490         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9491         here...
9492         * modules/ftello (configure.ac): ... to here.
9493
9494 2011-05-07  Bruno Haible  <bruno@clisp.org>
9495
9496         fseeko: Simplify.
9497         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9498         (gl_FUNC_FSEEKO): Inline it here.
9499
9500 2011-05-07  Bruno Haible  <bruno@clisp.org>
9501
9502         fseek: Move AC_LIBOBJ invocations to module description.
9503         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9504         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9505         * modules/fseek (configure.ac): ... to here.
9506
9507 2011-05-07  Bruno Haible  <bruno@clisp.org>
9508
9509         fseek: Respect rules for use of AC_LIBOBJ.
9510         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9511         here...
9512         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9513
9514 2011-05-07  Bruno Haible  <bruno@clisp.org>
9515
9516         fseeko: Respect rules for use of AC_LIBOBJ.
9517         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9518         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9519         here...
9520         * modules/fseeko (configure.ac): ... to here.
9521
9522 2011-06-13  Bruno Haible  <bruno@clisp.org>
9523
9524         gnulib-tool: Allow comments in the 'Depends-on' section.
9525         * doc/gnulib.texi (Module description): Mention comment syntax in the
9526         Depends-on section.
9527         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9528
9529 2011-06-13  Bruno Haible  <bruno@clisp.org>
9530
9531         file-set.h: guard __attibute__ use, now that it's not always defined
9532         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9533         versions that support it.  This fixes a coreutils build failure with
9534         the vendor cc on HP-UX 11.31.
9535
9536 2011-06-12  Bruno Haible  <bruno@clisp.org>
9537
9538         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9539         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9540         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9541         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9542         (acl, aclsort): New declarations.
9543         (aclv_nontrivial): New declaration.
9544         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9545         (file_has_acl): Read also the second kind of HP-UX ACLs.
9546         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9547         kind of HP-UX ACLs if the first kind fails.
9548         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9549         second kind of HP-UX ACLs.
9550         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9551         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9552         agree.
9553         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9554         hpuxjfs.
9555         Handle hpuxjfs.
9556         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9557         hpuxjfs.
9558         Handle hpuxjfs.
9559         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9560         (func_test_same_acls): Use both lsacl and getacl.
9561         Handle hpuxjfs.
9562         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9563         (func_test_same_acls): Use both lsacl and getacl.
9564         Handle hpuxjfs.
9565
9566 2011-06-12  Bruno Haible  <bruno@clisp.org>
9567
9568         acl: Complete the 2010-08-10 fix.
9569         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9570         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9571         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9572         explicitly.
9573         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9574         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9575
9576 2011-06-12  Bruno Haible  <bruno@clisp.org>
9577
9578         spawn-pipe tests: Comments.
9579         * tests/test-spawn-pipe-child.c (main): Update comment.
9580         Reported by James Youngman <jay@gnu.org>.
9581
9582 2011-06-11  James Youngman  <jay@gnu.org>
9583
9584         New module 'stat-size'.
9585         * modules/stat-size: New module.  Provides macros for accessing
9586         file size information in instances of struct stat.  Depends on the
9587         fileblocks module because it calls st_blocks.
9588         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9589         * doc/gnulib.texi: Include stat-size.texi.
9590         * doc/stat-size.texi: Documentation for this module.
9591         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9592         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9593         AC_STRUCT_ST_BLOCKS.
9594
9595 2011-06-09  Bruno Haible  <bruno@clisp.org>
9596
9597         thread: Support pthreads-win32.
9598         * lib/glthread/thread.h (gl_thread_self): Define differently on
9599         pthreads-win32.
9600         (gl_null_thread): New declaration.
9601         (gl_thread_self_pointer): New macro.
9602         * lib/glthread/thread.c (gl_null_thread): New constant.
9603         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9604         gl_thread_self.
9605         * tests/test-tls.c: Likewise.
9606         Suggested by Paul Eggert. Reported by Eric Blake.
9607
9608 2011-06-09  Bruno Haible  <bruno@clisp.org>
9609
9610         thread: Fix confusion between NULL and 0.
9611         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9612         Reported by Paul Eggert.
9613
9614 2011-06-09  Bruno Haible  <bruno@clisp.org>
9615
9616         spawn-pipe tests: Avoid test failure on HP-UX 11.
9617         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9618         is closed.
9619
9620 2011-06-09  Bruno Haible  <bruno@clisp.org>
9621
9622         acl tests: Fix compilation error on HP-UX 11.
9623         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9624
9625 2011-06-09  Bruno Haible  <bruno@clisp.org>
9626
9627         rmdir: Avoid test failure on HP-UX 10.20.
9628         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9629         EEXIST.
9630
9631 2011-06-08  Eric Blake  <eblake@redhat.com>
9632
9633         perror: fix test on mingw
9634         * modules/perror-tests (Depends-on): Add dup2.
9635
9636         strerror_r-posix: fix on MacOS
9637         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9638         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9639         logic bug.
9640         * lib/strerror_r.c (strerror_r): Fix the bug.
9641         * lib/strerror.c (strerror): Likewise.
9642         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9643         problem.
9644         * doc/posix-functions/strerror.texi (strerror): Likewise.
9645         * doc/posix-functions/perror.texi (perror): Likewise.
9646         * tests/test-strerror.c (main): Enhance test.
9647         * tests/test-strerror_r.c (main): Likewise.
9648
9649 2011-06-08  Bruno Haible  <bruno@clisp.org>
9650
9651         gnulib-tool: Better isolation between different gnulib-tool invocations.
9652         * gnulib-tool: New option --witness-c-macro.
9653         (witness_c_macro): New variable.
9654         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9655         AM_CPPFLAGS define it as a C macro.
9656         (func_emit_tests_Makefile_am): Likewise.
9657         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9658         read it from there.
9659         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9660         m4_define, not AC_DEFUN.
9661         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9662         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9663         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9664         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9665         s|...|...|, to substitute the values of the GNULIB_* module indicator
9666         variables.
9667         * modules/dirent (Makefile.am): Likewise.
9668         * modules/fcntl-h (Makefile.am): Likewise.
9669         * modules/iconv-h (Makefile.am): Likewise.
9670         * modules/langinfo (Makefile.am): Likewise.
9671         * modules/locale (Makefile.am): Likewise.
9672         * modules/math (Makefile.am): Likewise.
9673         * modules/netdb (Makefile.am): Likewise.
9674         * modules/poll-h (Makefile.am): Likewise.
9675         * modules/pty (Makefile.am): Likewise.
9676         * modules/search (Makefile.am): Likewise.
9677         * modules/signal (Makefile.am): Likewise.
9678         * modules/spawn (Makefile.am): Likewise.
9679         * modules/stdio (Makefile.am): Likewise.
9680         * modules/stdlib (Makefile.am): Likewise.
9681         * modules/string (Makefile.am): Likewise.
9682         * modules/sys_ioctl (Makefile.am): Likewise.
9683         * modules/sys_select (Makefile.am): Likewise.
9684         * modules/sys_socket (Makefile.am): Likewise.
9685         * modules/sys_stat (Makefile.am): Likewise.
9686         * modules/sys_times (Makefile.am): Likewise.
9687         * modules/sys_utsname (Makefile.am): Likewise.
9688         * modules/sys_wait (Makefile.am): Likewise.
9689         * modules/termios (Makefile.am): Likewise.
9690         * modules/time (Makefile.am): Likewise.
9691         * modules/unistd (Makefile.am): Likewise.
9692         * modules/wchar (Makefile.am): Likewise.
9693
9694 2011-06-08  Eric Blake  <eblake@redhat.com>
9695
9696         strerror: simplify replacement
9697         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9698         * modules/strerror (configure.ac): No prereqs needed here...
9699         * modules/strerror-override (configure.ac): ...but this needs it.
9700         (Files): Add file for needed prereq macro.
9701
9702 2011-06-08  Bruno Haible  <bruno@clisp.org>
9703
9704         strerror_r-posix: Tweaks.
9705         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9706         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9707         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9708         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9709         (gl_FUNC_STRERROR_R): ... to here.
9710         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9711
9712 2011-06-07  Eric Blake  <eblake@redhat.com>
9713
9714         perror: document fixed bugs
9715         * doc/posix-functions/perror.texi (perror): Document recent
9716         patches.
9717
9718 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9719
9720         stat-time: get_stat_birthtime failure is better-defined
9721         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9722         return a timestamp whose tv_sec and tv_nsec values are both -1.
9723         Previously, the spec said only that the tv_nsec value was negative.
9724         This upward-compatible change simplifies GNU tar a bit.
9725
9726 2011-06-07  Eric Blake  <eblake@redhat.com>
9727
9728         strerror_r-posix: work around cygwin 1.7.9
9729         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9730         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9731         bug without replacing strerror_r.
9732         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9733         strerror_r is buggy, but without requiring strerror_r compilation.
9734         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9735
9736         test-perror: relax test to ignore cygwin bug
9737         * tests/test-perror2.c (main): Relax test on requiring detection
9738         of stream errors, and use unbuffered stream.
9739         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9740         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9741         * doc/posix-functions/fputc.texi (fputc): Likewise.
9742         * doc/posix-functions/fputs.texi (fputs): Likewise.
9743         * doc/posix-functions/fputws.texi (fputws): Likewise.
9744         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9745         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9746         * doc/posix-functions/getopt.texi (getopt): Likewise.
9747         * doc/posix-functions/perror.texi (perror): Likewise.
9748         * doc/posix-functions/printf.texi (printf): Likewise.
9749         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9750         * doc/posix-functions/psignal.texi (psignal): Likewise.
9751         * doc/posix-functions/putc.texi (putc): Likewise.
9752         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9753         Likewise.
9754         * doc/posix-functions/putchar.texi (putchar): Likewise.
9755         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9756         Likewise.
9757         * doc/posix-functions/puts.texi (puts): Likewise.
9758         * doc/posix-functions/putwc.texi (putwc): Likewise.
9759         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9760         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9761         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9762         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9763         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9764         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9765         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9766         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9767
9768 2011-05-22  Bruno Haible  <bruno@clisp.org>
9769
9770         strerror: Move AC_LIBOBJ invocations to module description.
9771         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9772         gl_PREREQ_STRERROR invocations from here...
9773         * modules/strerror (configure.ac): ... to here.
9774
9775 2011-05-21  Bruno Haible  <bruno@clisp.org>
9776
9777         perror: Use common idiom.
9778         * modules/perror (configure.ac): Reorder statements.
9779
9780 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9781
9782         tests: fix usage message in 'mktempd_'
9783         * tests/init.sh (mktempd_): In the usage message, use literal
9784         'mktempd_', not '$ME' (which is even undefined), as the name of
9785         the subroutine.
9786
9787 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9788
9789         tests init: new function 'fatal_', for hard errors
9790         Before this patch, the only way offered by tests/init.sh to
9791         properly signal a hard error was the `framework_failure_'
9792         function.  But the error message issued by that function,
9793         as its name would suggest, refers to a set-up failure in the
9794         testsuite, while hard errors can obviously also be due to
9795         other reasons.  The best way to fix this inconsistency is to
9796         introduce a new function with a more general error message.
9797         * tests/init.sh (fatal_): New function.
9798
9799 2011-06-06  Eric Blake  <eblake@redhat.com>
9800
9801         canonicalize-lgpl: use common idiom
9802         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9803         over newer POSIX -Rf.
9804         Reported by Bruno Haible.
9805
9806         canonicalize-lgpl: work around AIX realpath bug
9807         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9808         * doc/posix-functions/realpath.texi (realpath): Document it.
9809         Reported by Bruno Haible.
9810
9811         strerror: work around FreeBSD bug
9812         * lib/strerror.c (strerror): Special case 0.
9813         Reported by Bruno Haible.
9814
9815         strerror-override: avoid bloating errno module
9816         * modules/errno (Files, configure.ac): Move replacement strings...
9817         * modules/strerror-override: ...to new module.
9818         * modules/strerror (Depends-on): Add strerror-override.
9819         * modules/strerror_r-posix (Depends-on): Likewise.
9820         * MODULES.html.sh: Document new module.
9821         Reported by Bruno Haible.
9822
9823 2011-06-06  Bruno Haible  <bruno@clisp.org>
9824
9825         spawn-pipe tests: Rename program.
9826         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9827         * tests/test-spawn-pipe-child.c: Update comment.
9828         * tests/test-spawn-pipe.sh: Update.
9829         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9830
9831         spawn-pipe tests: Link the child program only against libc.
9832         * tests/test-spawn-pipe-child.c: New file, extracted from
9833         tests/test-spawn-pipe.c.
9834         (main): Expect only one argument.
9835         (is_open): New function, copied from tests/test-pipe.c.
9836         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9837         (child_main): Remove function.
9838         (test_pipe): Pass only one argument to the child program.
9839         (main): Remove child process code. Expect the child program's name as
9840         first argument.
9841         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9842         argument.
9843         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9844         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9845         test-spawn-pipe-child against no libraries.
9846
9847 2011-06-06  Bruno Haible  <bruno@clisp.org>
9848
9849         careadlinkat: Avoid mismatch between ssize_t and int.
9850         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9851         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9852
9853 2011-06-06  Jim Meyering  <meyering@redhat.com>
9854
9855         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9856         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9857         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9858
9859 2011-06-05  Bruno Haible  <bruno@clisp.org>
9860
9861         ansi-c++-opt: Interoperability with libtool.
9862         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9863         set the variable to "no", not to ":".
9864         * NEWS: Mention the change.
9865
9866 2011-06-05  Bruno Haible  <bruno@clisp.org>
9867
9868         acl: Fix test failure on AIX 7.
9869         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9870         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9871
9872 2011-06-05  Bruno Haible  <bruno@clisp.org>
9873
9874         pipe-filter-ii: Fix test failure on AIX and IRIX.
9875         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9876         with EAGAIN, retry with a smaller buffer size.
9877
9878 2011-06-05  Bruno Haible  <bruno@clisp.org>
9879
9880         localename: Fix link dependencies.
9881         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9882         * modules/localename-tests (Makefile.am): Link test-localename with
9883         $(LIBTHREAD).
9884
9885 2011-06-05  Bruno Haible  <bruno@clisp.org>
9886
9887         error: Avoid gcc warning.
9888         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9889
9890 2011-06-05  Bruno Haible  <bruno@clisp.org>
9891
9892         unsetenv: Avoid gcc warning.
9893         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9894
9895 2011-06-05  Bruno Haible  <bruno@clisp.org>
9896
9897         setenv: Avoid gcc warning.
9898         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9899
9900 2011-06-05  Bruno Haible  <bruno@clisp.org>
9901
9902         sys_select: Ensure memset is declared also on AIX 7.
9903         * lib/sys_select.in.h: Include <string.h> also on AIX.
9904         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9905         self-contained also on AIX 7.1.
9906
9907 2011-06-04  Jim Meyering  <meyering@redhat.com>
9908
9909         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9910         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9911         function name, "error".
9912         (_gl_translatable_diag_func_re): New configurable variable.
9913
9914 2011-06-04  Bruno Haible  <bruno@clisp.org>
9915
9916         getopt: Avoid gcc warning.
9917         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9918
9919 2011-06-04  Bruno Haible  <bruno@clisp.org>
9920
9921         strerror_r: Fix comments.
9922         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9923         commit.
9924
9925 2011-06-04  Bruno Haible  <bruno@clisp.org>
9926
9927         perror: Fix compilation error.
9928         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9929         Undefine fprintf, not sprintf.
9930         * modules/perror (Depends-on): Remove intprops, verify.
9931
9932 2011-06-04  Bruno Haible  <bruno@clisp.org>
9933
9934         setlocale: Enable replacement on Cygwin 1.5.
9935         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9936         Cygwin 1.5.x.
9937         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9938         LC_CTYPE category also exists on Cygwin 1.5.x.
9939
9940 2011-06-04  Bruno Haible  <bruno@clisp.org>
9941
9942         strerror-override: Don't disable symbol renamings.
9943         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9944         * lib/strerror-override.c: Include config.h.
9945         (strerror_override): Don't undefine.
9946
9947 2011-06-03  Bruno Haible  <bruno@clisp.org>
9948
9949         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9950         * lib/localename.h: Update copyright header.
9951         * lib/localename.c: Likewise.
9952         * lib/relocatable.h: Likewise.
9953         * lib/relocatable.c: Likewise.
9954
9955 2011-06-02  Bruno Haible  <bruno@clisp.org>
9956
9957         doc: Fix a module name.
9958         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9959
9960 2011-06-02  Bruno Haible  <bruno@clisp.org>
9961
9962         pipe2: Remove dependency on 'nonblocking' module.
9963         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9964         O_NONBLOCK is defined by gnulib.
9965         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9966         is zero.
9967         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9968         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9969         defined by gnulib.
9970         (get_nonblocking_flag): New function.
9971         (main): Test O_NONBLOCK flag only if it is nonzero.
9972         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9973
9974 2011-06-03  Jim Meyering  <meyering@redhat.com>
9975
9976         maint: three new prohibit-header-without-use rules
9977         Prohibit use of cloexec.h, posixver.h, same.h without use.
9978         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9979         (sc_prohibit_posixver_without_use): Likewise.
9980         (sc_prohibit_same_without_use): Likewise.
9981
9982 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9983
9984         allocator: 'die' routine is now given requested size
9985         * lib/allocator.h (struct allocator.die): New size arg.
9986         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9987         If the actual problem is an ssize_t limitation, not a size_t or
9988         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9989
9990 2011-06-01  Eric Blake  <eblake@redhat.com>
9991
9992         strerror: drop strerror_r dependency
9993         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9994         * lib/strerror-override.c (strerror_override): ...to new file.
9995         * lib/strerror-override.h: Add prototype.
9996         * lib/strerror-impl.h: Delete.
9997         * lib/strerror.c (strerror): New implementation.
9998         * modules/errno (Files): Add new files.
9999         (configure.ac): Compile new file as appropriate.
10000         * modules/strerror (Files): Drop unused file.
10001         (Depends-on): Drop strerror_r-posix.
10002         * MODULES.html.sh: Document strerror_r-posix.
10003         Requested by Sam Steingold.
10004
10005         perror: call strerror_r directly
10006         * modules/perror (Files): Drop strerror-impl.h.
10007         * lib/perror.c (perror): Use our own stack buffer, rather than
10008         calling a wrapper that uses static storage.
10009         * doc/posix-functions/perror.texi (perror): Document a limitation
10010         of our replacement.
10011
10012         strerror_r: fix includes for FreeBSD
10013         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10014         since we use abort on some platforms.
10015         Reported by Matthias Bolte.
10016
10017 2011-05-31  Bruno Haible  <bruno@clisp.org>
10018
10019         Fix link errors in tests: openat-die uses gettext-h.
10020         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10021         against $(LIBINTL).
10022         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10023         against $(LIBINTL).
10024         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10025         $(LIBINTL).
10026         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10027         against $(LIBINTL).
10028         * modules/linkat-tests (Makefile.am): Link test-linkat against
10029         $(LIBINTL).
10030         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10031         $(LIBINTL).
10032         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10033         against $(LIBINTL).
10034         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10035         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10036         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10037         $(LIBINTL).
10038         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10039         $(LIBINTL).
10040         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10041         $(LIBINTL).
10042         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10043
10044 2011-05-31  Bruno Haible  <bruno@clisp.org>
10045
10046         Fix link errors in tests: wait-process uses gettext-h.
10047         * modules/nonblocking-pipe-tests (Makefile.am): Set
10048         test_nonblocking_pipe_main_LDADD.
10049         * modules/nonblocking-socket-tests (Makefile.am): Link
10050         test-nonblocking-socket-main against $(LIBINTL).
10051         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10052
10053 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10054
10055         assert-h: work around 'verify' incompatibility
10056         * lib/verify.h: Use @...@ directives, not ifdef.
10057         * modules/assert-h (assert.h): Implement the directives.
10058         (assert.h): Substitute the symbol-prefix more consistently.
10059
10060 2011-05-29  Jim Meyering  <meyering@redhat.com>
10061
10062         trim: remove three superfluous assignments
10063         * lib/trim.c (trim2): Remove three superfluous assignments
10064         and correct brace positioning.
10065
10066 2011-05-29  Bruno Haible  <bruno@clisp.org>
10067
10068         wctype-h: Avoid namespace pollution on Solaris 2.6.
10069         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10070         identifiers.
10071         * doc/posix-headers/wctype.texi: Mention the problem.
10072         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10073
10074 2011-05-28  Jim Meyering  <meyering@redhat.com>
10075
10076         parse-datetime.y: accommodate -Wstrict-overflow
10077         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10078         placate -Wstrict-overflow.
10079
10080         trim: avoid a warning from -O2 -Wstrict-overflow
10081         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10082
10083 2011-05-29  Bruno Haible  <bruno@clisp.org>
10084
10085         gnulib-tool: Fix bug in yesterday's commit.
10086         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10087         twice.
10088
10089 2011-05-29  Bruno Haible  <bruno@clisp.org>
10090
10091         Allow multiple gnulib generated include files to be combined.
10092         * gnulib-tool (func_compute_include_guard_prefix): New function.
10093         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10094         ${gl_include_guard_prefix} references.
10095         (func_import, func_create_testdir): Invoke
10096         func_compute_include_guard_prefix.
10097         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10098         * lib/ctype.in.h: Likewise.
10099         * lib/dirent.in.h: Likewise.
10100         * lib/errno.in.h: Likewise.
10101         * lib/fcntl.in.h: Likewise.
10102         * lib/float.in.h: Likewise.
10103         * lib/getopt.in.h: Likewise.
10104         * lib/iconv.in.h: Likewise.
10105         * lib/langinfo.in.h: Likewise.
10106         * lib/locale.in.h: Likewise.
10107         * lib/math.in.h: Likewise.
10108         * lib/netdb.in.h: Likewise.
10109         * lib/netinet_in.in.h: Likewise.
10110         * lib/poll.in.h: Likewise.
10111         * lib/pthread.in.h: Likewise.
10112         * lib/pty.in.h: Likewise.
10113         * lib/sched.in.h: Likewise.
10114         * lib/se-selinux.in.h: Likewise.
10115         * lib/search.in.h: Likewise.
10116         * lib/signal.in.h: Likewise.
10117         * lib/spawn.in.h: Likewise.
10118         * lib/stdarg.in.h: Likewise.
10119         * lib/stddef.in.h: Likewise.
10120         * lib/stdint.in.h: Likewise.
10121         * lib/stdio.in.h: Likewise.
10122         * lib/stdlib.in.h: Likewise.
10123         * lib/string.in.h: Likewise.
10124         * lib/strings.in.h: Likewise.
10125         * lib/sys_file.in.h: Likewise.
10126         * lib/sys_ioctl.in.h: Likewise.
10127         * lib/sys_select.in.h: Likewise.
10128         * lib/sys_socket.in.h: Likewise.
10129         * lib/sys_stat.in.h: Likewise.
10130         * lib/sys_time.in.h: Likewise.
10131         * lib/sys_times.in.h: Likewise.
10132         * lib/sys_uio.in.h: Likewise.
10133         * lib/sys_utsname.in.h: Likewise.
10134         * lib/sys_wait.in.h: Likewise.
10135         * lib/sysexits.in.h: Likewise.
10136         * lib/termios.in.h: Likewise.
10137         * lib/time.in.h: Likewise.
10138         * lib/unistd.in.h: Likewise.
10139         * lib/wchar.in.h: Likewise.
10140         * lib/wctype.in.h: Likewise.
10141         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10142         * modules/ctype (Makefile.am): Likewise.
10143         * modules/dirent (Makefile.am): Likewise.
10144         * modules/errno (Makefile.am): Likewise.
10145         * modules/fcntl-h (Makefile.am): Likewise.
10146         * modules/float (Makefile.am): Likewise.
10147         * modules/getopt-posix (Makefile.am): Likewise.
10148         * modules/iconv-h (Makefile.am): Likewise.
10149         * modules/langinfo (Makefile.am): Likewise.
10150         * modules/locale (Makefile.am): Likewise.
10151         * modules/math (Makefile.am): Likewise.
10152         * modules/netdb (Makefile.am): Likewise.
10153         * modules/netinet_in (Makefile.am): Likewise.
10154         * modules/poll-h (Makefile.am): Likewise.
10155         * modules/pthread (Makefile.am): Likewise.
10156         * modules/pty (Makefile.am): Likewise.
10157         * modules/sched (Makefile.am): Likewise.
10158         * modules/search (Makefile.am): Likewise.
10159         * modules/selinux-h (Makefile.am): Likewise.
10160         * modules/signal (Makefile.am): Likewise.
10161         * modules/spawn (Makefile.am): Likewise.
10162         * modules/stdarg (Makefile.am): Likewise.
10163         * modules/stddef (Makefile.am): Likewise.
10164         * modules/stdint (Makefile.am): Likewise.
10165         * modules/stdio (Makefile.am): Likewise.
10166         * modules/stdlib (Makefile.am): Likewise.
10167         * modules/string (Makefile.am): Likewise.
10168         * modules/strings (Makefile.am): Likewise.
10169         * modules/sys_file (Makefile.am): Likewise.
10170         * modules/sys_ioctl (Makefile.am): Likewise.
10171         * modules/sys_select (Makefile.am): Likewise.
10172         * modules/sys_socket (Makefile.am): Likewise.
10173         * modules/sys_stat (Makefile.am): Likewise.
10174         * modules/sys_time (Makefile.am): Likewise.
10175         * modules/sys_times (Makefile.am): Likewise.
10176         * modules/sys_uio (Makefile.am): Likewise.
10177         * modules/sys_utsname (Makefile.am): Likewise.
10178         * modules/sys_wait (Makefile.am): Likewise.
10179         * modules/sysexits (Makefile.am): Likewise.
10180         * modules/termios (Makefile.am): Likewise.
10181         * modules/time (Makefile.am): Likewise.
10182         * modules/unistd (Makefile.am): Likewise.
10183         * modules/wchar (Makefile.am): Likewise.
10184         * modules/wctype-h (Makefile.am): Likewise.
10185         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10186
10187 2011-05-29  Bruno Haible  <bruno@clisp.org>
10188
10189         assert-h: Allow multiple gnulib generated replacements to coexist.
10190         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10191
10192 2011-05-29  Bruno Haible  <bruno@clisp.org>
10193
10194         argp: Allow coexistence with strerror_r-posix module.
10195         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10196         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10197         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10198         not the glibc signature.
10199
10200 2011-05-28  Bruno Haible  <bruno@clisp.org>
10201
10202         gnulib-tool: Alternative structure of testdirs, similar to --import.
10203         * gnulib-tool: New option --single-configure.
10204         (func_usage): Document it.
10205         (single_configure): New variable.
10206         (func_modules_transitive_closure_separately,
10207         func_modules_transitive_closure_separately,
10208         func_determine_use_libtests, func_modules_add_dummy_separately,
10209         func_modules_to_filelist_separately): New functions, extracted from
10210         func_import.
10211         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10212         (func_import): Use the new functions.
10213         (func_create_testdir): Set final_modules. Handle $single_configure =
10214         true case.
10215
10216 2011-05-28  Bruno Haible  <bruno@clisp.org>
10217
10218         getloadavg: Remove an unreliable safety check.
10219         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10220         getloadavg.c is in place.
10221         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10222         Reported by Sam Steingold <sds@gnu.org>.
10223
10224 2011-05-28  Bruno Haible  <bruno@clisp.org>
10225
10226         doc: Cleanup yet another file produced by texinfo.tex.
10227         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10228
10229 2011-05-28  Bruno Haible  <bruno@clisp.org>
10230
10231         Finish the conditional dependencies mechanism.
10232         * gnulib-tool: New option --no-conditional-dependencies.
10233         (func_usage): Document it. Don't mark --conditional-dependencies as
10234         experimental.
10235         (cond_dependencies): The possible values can now be true, false, empty.
10236         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10237         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10238         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10239
10240 2011-05-28  Bruno Haible  <bruno@clisp.org>
10241
10242         doc: Use a recent texinfo.tex.
10243         * doc/Makefile (tex_opts): New variable.
10244         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10245
10246 2011-05-28  Jim Meyering  <meyering@redhat.com>
10247
10248         intprops.h: adjust comment to match code change
10249         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10250         only once, it *may* have side effects.  Also fix an unrelated typo.
10251         (_GL_INT_SIGNED): Likewise.
10252
10253 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10254
10255         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10256
10257 2011-05-26  Bruno Haible  <bruno@clisp.org>
10258
10259         mbsrchr: Avoid collision with system function on Interix.
10260         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10261         Reported by Markus Duft <mduft@gentoo.org>.
10262
10263 2011-05-15  James Youngman  <jay@gnu.org>
10264
10265         getopt: for ambiguous options, enumerate the possibilities.
10266         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10267         the ambiguous options when an ambiguous prefix is given. This was
10268         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10269         glibc change was
10270         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10271
10272 2011-05-25  Eric Blake  <eblake@redhat.com>
10273
10274         getcwd: work around mingw bug
10275         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10276         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10277         Reported by Matthias Bolte.
10278
10279 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10280
10281         test-intprops: disable -Wtype-limits diagnostics
10282         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10283         diagnostics.  Otherwise, the integer overflow macros generate many
10284         diagnostics.  Reported by Jim Meyering in
10285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10286
10287         intprops: shorten, to pacify gcc -Woverlength-strings
10288         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10289         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10290         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10291         likely to run afoul of C compiler limits for string constant lengths.
10292         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10293
10294 2011-05-24  Eric Blake  <eblake@redhat.com>
10295
10296         docs: document recently fixed glibc printf bug
10297         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10298         * doc/posix-functions/printf.texi (printf): Likewise.
10299         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10300         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10301
10302         closein-tests: convert to init.sh
10303         * modules/closein-tests (Files): Add init.sh
10304         * tests/test-closein.sh Use it.
10305
10306         yesno-tests: convert to init.sh
10307         * modules/yesno-tests (Files): Add init.sh.
10308         * tests/test-yesno.sh: Use it.
10309
10310         atexit-tests: ensure reliable exit status
10311         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10312         Reported by Bruno Haible.
10313
10314 2011-05-24  Bruno Haible  <bruno@clisp.org>
10315
10316         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10317         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10318         gl_PREREQ_STRERROR_R invocations from here...
10319         * modules/strerror_r-posix (configure.ac): ... to here.
10320
10321 2011-05-24  Eric Blake  <eblake@redhat.com>
10322
10323         strerror_r: fix missing header
10324         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10325
10326         strerror_r: fix AIX test failures
10327         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10328         ERANGE failure.
10329
10330         strerror_r: fix Solaris test failures
10331         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10332         failures.
10333         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10334
10335         strerror_r: enforce POSIX recommendations
10336         * lib/strerror_r.c (safe_copy): New helper method.
10337         (strerror_r): Guarantee a non-empty string.
10338         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10339         recent POSIX rulings and to match our strerror guarantees.
10340         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10341
10342 2011-05-24  Jim Meyering  <meyering@redhat.com>
10343
10344         test-perror2.c: avoid warning about unused variable
10345         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10346
10347 2011-05-24  Eric Blake  <eblake@redhat.com>
10348
10349         perror: avoid spurious test failure on HP-UX
10350         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10351
10352         tests: fix logic bug in init.sh
10353         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10354         shell.
10355
10356 2011-05-24  Jim Meyering  <meyering@redhat.com>
10357
10358         utimensat: do not reference an out-of-scope buffer
10359         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10360         declared in an inner scope, yet "times" would be dereferenced outside
10361         the scope in which "ts" was valid.
10362         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10363         of ts[2] "out/up", so that the use of aliased "times" (via
10364         "times = ts;") does not end up referencing an out-of-scope "ts"
10365
10366         opendir-safer.c: don't clobber errno; don't close negative FD
10367         * lib/opendir-safer.c (opendir_safer):
10368         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10369         file descriptor, and more importantly, don't clobber the
10370         offending errno value with EINVAL.  Before, upon failure
10371         of dup_safer, we would pass the negative file descriptor to
10372         fdopendir, which would clobber errno.
10373
10374 2011-05-23  Bruno Haible  <bruno@clisp.org>
10375
10376         idcache: Fix module description.
10377         * modules/idcache (Include): Set to "idcache.h".
10378
10379 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10380
10381         gnulib-tool: fix portability problem with MacOS sed
10382         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10383         before the "}".  Problem reported by Leo in
10384         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10385         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10386         sed_extract_condition1, sed_extract_condition2.
10387
10388 2011-05-23  Bruno Haible  <bruno@clisp.org>
10389
10390         hash: Simplify autoconf macro.
10391         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10392
10393 2011-05-23  Bruno Haible  <bruno@clisp.org>
10394
10395         getugroups: Fix module description.
10396         * modules/getugroups (Include): Set to "getugroups.h".
10397
10398 2011-05-23  Bruno Haible  <bruno@clisp.org>
10399
10400         linkat: Simplify autoconf macro.
10401         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10402
10403 2011-05-23  Bruno Haible  <bruno@clisp.org>
10404             Eric Blake  <eblake@redhat.com>
10405
10406         linkat, renameat: Update dependencies.
10407         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10408         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10409         symlinkat.
10410
10411 2011-05-23  Jim Meyering  <meyering@redhat.com>
10412
10413         maint.mk: more tight_scope improvements
10414         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10415         (_gl_TS_headers): Define only in if-0'd block.
10416         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10417         sometimes we must *not* use it.  Adjust uses accordingly.
10418         (sc_tight_scope): Use much simpler grep-based test to determine
10419         whether we skip this rule.
10420
10421         maint.mk: generalize/improve the tight-scope rule
10422         * top/maint.mk: Emit a warning when the test is skipped.
10423         (_gl_TS_dir): Add $(srcdir)/ prefix.
10424         (_gl_TS_function_match): Simplify, rather than trying
10425         to enumerate common types.  Otherwise, it would fail to match an
10426         "extern unsigned char const *" declaration in idutils.
10427         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10428         a way to support use of that type of macro.
10429         (_gl_TS_var_match): Simplify regexp.
10430         (_gl_TS_obj_files): New configurable variable.
10431         (_gl_TS_headers): Likewise.
10432
10433 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10434
10435         verify: fix bug when gnulib <assert.h> is also included
10436         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10437         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10438         Perhaps there's a better way, but this fixes the immediate problem.
10439         Problem reported by Bruno Haible in
10440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10441
10442 2011-05-22  Bruno Haible  <bruno@clisp.org>
10443
10444         xgetcwd: Simplify autoconf macro.
10445         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10446
10447 2011-05-22  Bruno Haible  <bruno@clisp.org>
10448
10449         New module 'mktime-internal'.
10450         * modules/mktime-internal: New file.
10451         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10452         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10453         mktime_internal as a C macro if libc has __mktime_internal.
10454         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10455         conditions.
10456         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10457
10458 2011-05-22  Bruno Haible  <bruno@clisp.org>
10459
10460         timegm: Correct mktime replacement statements.
10461         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10462         defining mktime as a C macro. This completes a 2009-07-28 commit.
10463
10464 2011-05-22  Bruno Haible  <bruno@clisp.org>
10465
10466         timegm: Simplify autoconf macro.
10467         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10468
10469 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10470
10471         clock-time: change to LGPLv2+.
10472         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10473         BSD-like but we have no mark for that; this is good enough for now.
10474
10475 2011-05-21  Bruno Haible  <bruno@clisp.org>
10476
10477         strerror_r: Fix comments.
10478         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10479
10480 2011-05-21  Bruno Haible  <bruno@clisp.org>
10481
10482         relocatable-prog-wrapper: Fix possible link error.
10483         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10484         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10485         (gl_FUNC_SETENV): ... to here.
10486         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10487         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10488
10489 2011-05-21  Bruno Haible  <bruno@clisp.org>
10490
10491         relocatable-prog-wrapper: Assume strerror() exists.
10492         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10493         m4/strerror.m4.
10494         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10495         * lib/relocwrapper.c: Remove mention of strerror module.
10496         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10497         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10498         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10499         C macro.
10500
10501 2011-05-21  Bruno Haible  <bruno@clisp.org>
10502
10503         select: Simplify replacement idiom.
10504         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10505         Win32 platforms.
10506         * lib/sys_select.in.h (select): Simplify accordingly.
10507         * modules/select (Depends-on): Likewise.
10508
10509 2011-05-21  Bruno Haible  <bruno@clisp.org>
10510
10511         mkdir-p: Simplify autoconf macro.
10512         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10513         gl_FUNC_LCHOWN.
10514
10515 2011-05-21  Eric Blake  <eblake@redhat.com>
10516
10517         strerror_r: avoid clobbering strerror on cygwin
10518         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10519         fall back instead to sys_errlist.
10520         * modules/strerror (configure.ac): Add witness.
10521         * tests/test-strerror_r.c (main): Enhance test.
10522         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10523         * tests/test-perror2.c (main): Free memory before exit.
10524
10525 2011-05-21  Bruno Haible  <bruno@clisp.org>
10526
10527         mkdtemp: Use gnulib naming conventions.
10528         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10529         * modules/mkdtemp (configure.ac): Update.
10530
10531 2011-05-20  Eric Blake  <eblake@redhat.com>
10532
10533         strerror_r: avoid corrupting errno on Solaris
10534         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10535         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10536
10537         strerror_r: avoid compiler warning
10538         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10539
10540         strerror_r: simplify AIX code
10541         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10542
10543         test-perror: avoid spurious failure on FreeBSD
10544         * modules/perror-tests (Depends-on): Add strerror, now that
10545         strerror_r no longer pulls it in.
10546
10547 2011-05-20  Bruno Haible  <bruno@clisp.org>
10548
10549         strerror_r-posix: Remove unused dependencies.
10550         * modules/strerror_r-posix (Depends-on): Remove strerror.
10551         Reported by Eric Blake.
10552
10553 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10554
10555         intprops: remove assumption about A|B representation
10556         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10557         is a valid integer if both A and B are.  Although this is true for
10558         all known practical hosts, the C standard doesn't guarantee it,
10559         and the code need not assume it.  Also, this change may work around
10560         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10562
10563 2011-05-20  Eric Blake  <eblake@redhat.com>
10564
10565         perror: work around FreeBSD bug
10566         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10567         is broken.  Move AC_LIBOBJ...
10568         * modules/perror (configure.ac): Here.
10569         * doc/posix-functions/perror.texi (perror): Document this.
10570         * tests/test-perror2.c (main): Enhance test.
10571
10572         test-perror: check for strerror interactions
10573         * tests/macros.h (STREQ): Add macro.
10574         * modules/perror-tests (Files): Add second test.
10575         * tests/test-perror2.c (main): New file.
10576         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10577
10578         test-perror: rewrite to use init script
10579         * modules/perror-tests (Files): Add init.sh.
10580         * tests/test-perror.sh: Use temporary directory.
10581
10582 2011-05-20  Jim Meyering  <meyering@redhat.com>
10583
10584         maint: replace misused "a" with "an"
10585         * doc/intprops.texi: "a integer"
10586         * doc/regex.texi: "a explanation"
10587         * lib/alignof.h: "a object"
10588         * lib/argmatch.h: "a explanation"
10589         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10590         * lib/stdint.in.h: "a integer"
10591         * lib/userspec.c: "a owner"
10592         * doc/gnulib.texi: Fix "a idea", and reword.
10593
10594 2011-05-19  Jim Meyering  <meyering@redhat.com>
10595
10596         maint: correct misuse of "a" and "an"
10597         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10598         * lib/argp-help.c: "an docum...": s/an/a/
10599         * lib/argp-parse.c: "An vector": s/An/A/
10600         * lib/execute.c: "an native": s/an/a/
10601         * lib/spawn-pipe.c: Likewise.
10602         * lib/gc.h: "an Gc_rc": s/an/a/
10603         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10604         * lib/fts.c: "an stat.st_dev": s/an/a/
10605
10606 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10607
10608         intprops-tests: work around HP-UX 11.23 cc bug with constants
10609         * tests/test-intprops.c (VERIFY): New macro.
10610         (main): Use it, instead of verify, to work around the compiler bug; see
10611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10612
10613         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10614         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10615         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10616         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10617         (_GL_REMAINDER_OVERFLOW): Use it.
10618
10619         intprops-tests: revert unsigned part of previous change
10620         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10621         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10622         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10624
10625 2011-05-19  Bruno Haible  <bruno@clisp.org>
10626
10627         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10628         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10629         strerror_r() returned without filling the buffer.
10630         Reported by Eric Blake.
10631
10632 2011-05-19  Eric Blake  <eblake@redhat.com>
10633
10634         strerror_r: guarantee unchanged errno
10635         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10636         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10637         failure.
10638         * tests/test-strerror_r.c (main): Enhance test.
10639
10640 2011-05-19  Bruno Haible  <bruno@clisp.org>
10641
10642         strerror_r: Reorder #if blocks.
10643         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10644         for consistency with the previous commit.
10645
10646 2011-05-19  Bruno Haible  <bruno@clisp.org>
10647
10648         perror: Avoid clobbering the strerror buffer when possible.
10649         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10650         * lib/strerror.c: Include it.
10651         * modules/strerror (Files): Add lib/strerror-impl.h.
10652         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10653         (my_strerror): New function, defined through lib/strerror-impl.h.
10654         (perror): Use it instead of strerror.
10655         * modules/perror (Files): Add lib/strerror-impl.h.
10656         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10657
10658 2011-05-19  Eric Blake  <eblake@redhat.com>
10659
10660         strerror_r: fix on newer cygwin
10661         * lib/strerror_r.c (strerror_r): Cygwin now has
10662         __xpg_strerror_r, use it.
10663
10664 2011-05-19  Bruno Haible  <bruno@clisp.org>
10665
10666         strerror_r: Avoid clobbering the strerror buffer when possible.
10667         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10668         (sys_nerr, sys_errlist): New declarations.
10669         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10670         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10671         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10672
10673 2011-05-19  Bruno Haible  <bruno@clisp.org>
10674
10675         strerror_r: Fix test failure on mingw.
10676         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10677         EXTEND_STRERROR_R.
10678         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10679         macros from errno.in.h instead.
10680
10681 2011-05-19  Eric Blake  <eblake@redhat.com>
10682
10683         strerror: relax test for Solaris
10684         * tests/test-strerror.c (main): Permit Solaris behavior.
10685         * tests/test-strerror_r.c (main): Likewise.
10686
10687         strerror: enforce POSIX ruling on strerror(0)
10688         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10689         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10690         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10691         * doc/posix-functions/strerror.texi (strerror): Document it.
10692         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10693         * tests/test-strerror.c (main): Strengthen test.
10694         * tests/test-strerror_r.c (main): Likewise.
10695
10696 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10697
10698         intprop-tests: port to older and more-pedantic compilers
10699         * modules/intprops-tests (Files): Add tests/macros.h.
10700         * tests/test-intprops.c: Include macros.h.
10701         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10702         it's no longer documented to expand to an integer constant expression.
10703         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10704         argument is floating point, as it's no longer documented to expand
10705         to an integer constant expression in that case.
10706         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10707         compiler bugs reported by Bruno Haible.  See
10708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10709         (U0, U1): New constants, to work around the same bugs.  Also,
10710         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10711
10712         intprops: work around C compiler bugs
10713         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10714         bug in Sun C 5.11 2010/08/13 and other compilers; see
10715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10716
10717         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10718         * doc/intprops.texi (Integer Type Determination): Fix
10719         documentation for TYPE_IS_INTEGER: it returns an constant
10720         expression, not an integer constant expression.  Fix doc for
10721         TYPE_SIGNED: it returns an integer constant expression only if its
10722         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10723         hardly worth documented that way....)
10724
10725 2011-05-18  Bruno Haible  <bruno@clisp.org>
10726
10727         strerror_r: Avoid clobbering the strerror buffer when possible.
10728         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10729         Handle gnulib defined errno values here. When strerror() returns NULL
10730         or an empty string, return EINVAL.
10731         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10732         gnulib defined errno values here.
10733         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10734
10735 2011-05-18  Eric Blake  <eblake@redhat.com>
10736
10737         fnmatch: avoid compiler warning
10738         * lib/fnmatch_loop.c (FCT): Use correct type.
10739         Reported by Matthias Bolte.
10740
10741 2011-05-13  Jim Meyering  <meyering@redhat.com>
10742
10743         maint.mk: three new prohibit_<HDR>_without_use rules
10744         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10745         (sc_prohibit_stdio-safer_without_use): Likewise.
10746         (sc_prohibit_xfreopen_without_use): Likewise.
10747
10748 2011-05-17  Jim Meyering  <meyering@redhat.com>
10749
10750         announce-gen: fail if the NEWS delta is empty
10751         If there's nothing noteworthy in NEWS, then either you forgot
10752         or you shouldn't be releasing.
10753         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10754
10755 2011-05-17  Pádraig Brady <P@draigBrady.com>
10756
10757         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10758         reserved symbols starting with double underscore from the check.
10759
10760 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10761
10762         intprops: add doc
10763         * doc/intprops.texi: New file, documenting intprops.
10764         * doc/gnulib.texi (Particular Modules): Include it.
10765
10766         verify: add doc to gnulib manual and fix example
10767         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10768         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10769         (Compile-time Assertions): Fix example so it can't overflow.
10770
10771 2011-05-17  Jim Meyering  <meyering@redhat.com>
10772
10773         warnings.m4: don't usurp save_CPPFLAGS variable name
10774         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10775
10776         doc: fix typo
10777         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10778
10779 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10780             Bruno Haible  <bruno@clisp.org>
10781
10782         doc: Tweak recent change.
10783         * README (Portability guidelines): Tweak new text.
10784         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10785         Interix 6.1.
10786
10787 2011-05-16  Eric Blake  <eblake@redhat.com>
10788
10789         inttypes: avoid autoconf warning
10790         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10791         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10792
10793 2011-05-16  Sam Steingold <sds@gnu.org>
10794         and Eric Blake  <eblake@redhat.com>
10795
10796         vc-list-files: accept multiple directory operands
10797         * build-aux/vc-list-files: Iterate over all remaining operands.
10798
10799 2011-05-16  Bruno Haible  <bruno@clisp.org>
10800
10801         Fix confusion regarding deprecated modules.
10802         * modules/calloc (Status, Notice): Mark module as deprecated, not
10803         obsolete.
10804         * modules/fnmatch-posix (Status, Notice): Likewise.
10805         * modules/getdate (Status, Notice): Likewise.
10806         * modules/getopt (Status, Notice): Likewise.
10807         * modules/malloc (Status, Notice): Likewise.
10808         * modules/pipe (Status, Notice): Likewise.
10809         * modules/realloc (Status, Notice): Likewise.
10810         * modules/rename-dest-slash (Status, Notice): Likewise.
10811         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10812         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10813         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10814         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10815         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10816
10817 2011-05-16  Bruno Haible  <bruno@clisp.org>
10818
10819         doc: List the target platforms.
10820         * doc/gnulib-intro.texi (Target Platforms): New section.
10821         * doc/gnulib.texi (Introduction): Update menu.
10822         * README (Portability guidelines): Refer to the new section. Update
10823         statement about oldest supported environment. Remove rationale why
10824         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10825         unportable C89 function.
10826         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10827         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10828
10829 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10830
10831         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10832
10833 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10834
10835         intprops-tests: new module
10836         * modules/intprops-tests, tests/test-intprops.c: New files.
10837
10838         intprops: add safe, portable integer overflow checking
10839         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10840         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10841         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10842         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10843         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10844         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10845         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10846         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10847         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10848         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10849         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10850
10851 2011-05-12  James Youngman  <jay@gnu.org>
10852
10853         Add a test for glibc's Bugzilla bug #12378.
10854         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10855         doesn't allow the literal matching of a lone "[" (which is
10856         required by POSIX).
10857         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10858
10859 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10860
10861         Sync glibc change fixing Bugzilla bug #12378.
10862         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10863         beginning and fall back to matching as normal character if the
10864         string ends before the matching ']' is found.  This is what POSIX
10865         requires.
10866
10867 2011-05-13  Eric Blake  <eblake@redhat.com>
10868
10869         getcwd-lgpl: relax test for FreeBSD
10870         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10871         issue.
10872         * tests/test-getcwd-lgpl.c (main): Relax test.
10873         Reported by Matthias Bolte.
10874
10875 2011-05-11  Eric Blake  <eblake@redhat.com>
10876
10877         test-fflush: silence compiler warning
10878         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10879
10880 2011-05-11  Bruno Haible  <bruno@clisp.org>
10881
10882         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10883         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10884         * modules/canonicalize (Depends-on): Add 'nocrash'.
10885         * modules/canonicalize-lgpl (Depends-on): Likewise.
10886         * doc/posix-functions/realpath.texi: Update platforms list.
10887         Reported by Ryan Schmidt <ryandesign@macports.org>.
10888
10889 2011-05-11  Bruno Haible  <bruno@clisp.org>
10890
10891         group-member: Declare function in <unistd.h>.
10892         * lib/unistd.in.h (group_member): New declaration.
10893         * lib/group-member.h: Remove file.
10894         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10895         * tests/test-unistd-c++.cc: Check signature of group_member.
10896         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10897         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10898         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10899         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10900         HAVE_GROUP_MEMBER.
10901         * modules/group-member (Files): Remove lib/group-member.h.
10902         (Depends-on): Add unistd. Specify conditions.
10903         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10904         (Include): Change to <unistd.h>.
10905         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10906         HAVE_GROUP_MEMBER.
10907         * NEWS: Mention the change.
10908         * lib/euidaccess.c: Don't include group-member.h.
10909
10910 2011-05-11  Bruno Haible  <bruno@clisp.org>
10911
10912         group-member: Document module.
10913         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10914         module.
10915
10916 2011-05-11  Bruno Haible  <bruno@clisp.org>
10917
10918         fclose: Fix mistake earlier today.
10919         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10920
10921 2011-05-11  Eric Blake  <eblake@redhat.com>
10922
10923         fclose: preserve fflush errors
10924         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10925         Reported by Jim Meyering.
10926
10927         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10928         * build-aux/bootstrap (check_versions): When no specific version
10929         is required, merely check that the app produces an exit status
10930         that indicates its existence.
10931
10932         maint.mk: drop redundant check
10933         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10934         the same but better.
10935
10936 2011-05-11  Bruno Haible  <bruno@clisp.org>
10937
10938         fclose: Fix possible link error.
10939         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10940         unregister_shadow_fd. Improve comments.
10941         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10942         Eric Blake.
10943
10944 2011-05-11  Jim Meyering  <meyering@redhat.com>
10945
10946         maint.mk: improve "can not" detection and generalize rule name
10947         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10948         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10949         Use the same technique as in sc_prohibit_doubled_word, so that
10950         we recognize "can not" also when the words are separated by a newline.
10951         Suggested by Eric Blake.
10952         (perl_filename_lineno_text_): Define.  Factored out of...
10953         (prohibit_doubled_word_): ...here.  Use the new definition.
10954         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10955         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10956         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10957
10958 2011-05-10  Eric Blake  <eblake@redhat.com>
10959
10960         fclose: avoid double close race when possible
10961         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10962         all but WINDOWS_SOCKETS.
10963
10964 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10965
10966         openat: correct new comment
10967         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10968
10969 2011-05-10  Jim Meyering  <meyering@redhat.com>
10970
10971         openat: add comments
10972         * lib/openat-proc.c (openat_proc_name): Add comments,
10973         mostly from Eric Blake.
10974
10975 2011-05-09  Eric Blake  <eblake@redhat.com>
10976
10977         openat: reduce syscalls in first probe of /proc
10978         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10979         be a directory.  Simplify the probe for .. bugs.
10980         * modules/openat (Depends-on): Drop same-inode.
10981         Reported by Bastien ROUCARIES.
10982
10983 2011-05-09  Jim Meyering  <meyering@redhat.com>
10984
10985         maint.mk: change semantics/name of tight_scope variables
10986         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10987         Rename variables to align with semantics that make them more useful.
10988
10989         maint.mk: tweak new rule's name not to impinge
10990         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10991         (sc_tight_scope): Use new rule name rather than $@-0.
10992
10993         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10994         * top/maint.mk (sc_tight_scope): New rule.
10995         (sc_tight_scope-0): New rule, ifdef'd out.
10996         (_gl_TS_dir): Default.
10997         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10998         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10999
11000 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11001
11002         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11003         Haible <bruno@clisp.org>.
11004
11005 2011-05-08  Bruno Haible  <bruno@clisp.org>
11006
11007         Comments.
11008         * m4/isnanf.m4: Add comment.
11009         * m4/isnanl.m4: Likewise.
11010
11011 2011-05-08  Bruno Haible  <bruno@clisp.org>
11012
11013         glob: Remove obsolete macro.
11014         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11015
11016 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11017
11018         intprops: Sun C 5.11 supports __typeof__
11019         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11020         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11021         which is new.
11022         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11023
11024         intprops: switch to usual gnulib indenting and naming
11025         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11026         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11027
11028         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11029
11030 2011-05-08  Jim Meyering  <meyering@redhat.com>
11031
11032         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11033         * top/maint.mk (release-prep): Use make's --no-print-directory
11034         option when generating the announcement.  This eliminates the
11035         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11036         generated announcement template.
11037
11038 2011-05-08  Bruno Haible  <bruno@clisp.org>
11039
11040         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11041         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11042         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11043
11044 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11045
11046         ignore-value, verify: Omit include files from lib_SOURCES.
11047         * modules/ignore-value, modules/verify (Makefile.am):
11048         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11049         that leads Automake to duplicate use of am__objects_... variables
11050         in Makefile.in.  See
11051         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11052
11053 2011-05-07  Bruno Haible  <bruno@clisp.org>
11054
11055         fclose: Simplify autoconf macro.
11056         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11057         defined.
11058
11059 2011-05-07  Bruno Haible  <bruno@clisp.org>
11060
11061         canonicalize-lgpl: Fix autoconf macro ordering bug.
11062         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11063         gl_STDLIB_H_DEFAULTS.
11064
11065 2011-05-06  Eric Blake  <eblake@redhat.com>
11066
11067         maintainer-makefile: make sc_po_check easier to tune
11068         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11069         to probe for strings, such as an alternate location for gnulib.
11070
11071         fclose: guarantee behavior on seekable stdin
11072         * modules/fclose (Depends-on): Add fflush.
11073         * doc/posix-functions/fclose.texi (fclose): Document this.
11074         * tests/test-fclose.c (main): Make test for this unconditional.
11075
11076 2011-05-06  Bruno Haible  <bruno@clisp.org>
11077
11078         fflush, fpurge: Relicense under LGPLv2+.
11079         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11080         * modules/fpurge (License): Likewise.
11081         With permission from Eric Blake and Jim Meyering.
11082         Suggested by Eric Blake.
11083
11084 2011-05-06  Karl Berry  <karl@gnu.org>
11085
11086         * MODULES.html.sh (func_all_modules): remove exit.
11087
11088 2011-05-06  Jim Meyering  <meyering@redhat.com>
11089
11090         maint.mk: use info-gnu@ as the default only for a stable release
11091         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11092         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11093         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11094         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11095
11096 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11097
11098         assert-h: new module, which supports C1X-style static_assert
11099         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11100         * lib/verify.h: Revamp so that this can be copied into assert.h,
11101         while retaining the ability to use it standalone as before.
11102         Rename private identifiers so as not to encroach on the
11103         standard C namespace, since this is now used by assert.h.
11104         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11105         the old verify_true.
11106         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11107         the old verify_true.  Use _GL_VERIFY_TYPE.
11108         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11109         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11110         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11111         defined when this file is copied into the replacement assert.h.
11112         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11113         and _Static_assert is not built in.
11114         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11115         defined, and use the new macros mentioned above.
11116         * doc/posix-headers/assert.texi: Document this.
11117
11118 2011-05-05  Bruno Haible  <bruno@clisp.org>
11119
11120         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11121         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11122         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11123         gl_REPLACE_FCLOSE here.
11124         * modules/fflush (Depends-on): Remove fclose.
11125         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11126         combination with module 'fclose'.
11127
11128 2011-05-05  Bruno Haible  <bruno@clisp.org>
11129
11130         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11131         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11132         gl_FUNC_FFLUSH.
11133         (gl_FUNC_FFLUSH): Use it.
11134         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11135         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11136         gl_REPLACE_FSEEKO here.
11137
11138 2011-05-05  Bruno Haible  <bruno@clisp.org>
11139
11140         tzset: Relicense under LGPL.
11141         * modules/tzset (License): Change to LGPL.
11142         No agreement needed; it's a no-op.
11143
11144         strtoimax, strtoumax: Relicense under LGPL.
11145         * modules/strtoimax (License): Change to LGPL.
11146         * modules/strtoumax (License): Likewise.
11147         With permission from Jim Meyering, Paul Eggert:
11148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11150
11151         getgroups: Relicense under LGPL.
11152         * modules/getgroups (License): Change to LGPL.
11153         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11157
11158         nanosleep: Relicense under LGPL.
11159         * modules/nanosleep (License): Change to LGPL.
11160         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11161         Haible:
11162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11166
11167         futimens: Relicense under LGPL.
11168         * modules/futimens (License): Change to LGPL.
11169         With permission from Eric Blake:
11170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11171
11172         fflush: Relicense under LGPL.
11173         * modules/fflush (License): Change to LGPL.
11174         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11178
11179         tmpfile: Relicense under LGPL.
11180         * modules/tmpfile (License): Change to LGPL.
11181         With permission from Ben Pfaff:
11182         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11183
11184         isfinite: Relicense under LGPL.
11185         * modules/isfinite (License): Change to LGPL.
11186         With permission from Ben Pfaff, Bruno Haible:
11187         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11189
11190         acosl..tanl: Relicense under LGPL.
11191         * modules/acosl (License): Change to LGPL.
11192         * modules/asinl (License): Likewise.
11193         * modules/atanl (License): Likewise.
11194         * modules/cosl (License): Likewise.
11195         * modules/expl (License): Likewise.
11196         * modules/logl (License): Likewise.
11197         * modules/sinl (License): Likewise.
11198         * modules/sqrtl (License): Likewise.
11199         * modules/tanl (License): Likewise.
11200         Source code originally from glibc and Paolo Bonzini. Agreements:
11201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11203
11204 2011-05-05  Bruno Haible  <bruno@clisp.org>
11205
11206         signal: Define sighandler_t.
11207         * lib/signal.in.h (sighandler_t): New type.
11208         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11209         whether sighandler_t is defined.
11210         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11211         * modules/signal (Depends-on): Add extensions.
11212         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11213         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11214         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11215
11216 2011-05-05  Eric Blake  <eblake@redhat.com>
11217
11218         maint: remove useless REPLACE_*_H macros
11219         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11220         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11221         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11222         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11223         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11224         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11225         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11226         * m4/btowc.m4: Update callers.
11227         * m4/dirfd.m4: Likewise.
11228         * m4/duplocale.m4: Likewise.
11229         * m4/fchdir.m4: Likewise.
11230         * m4/fdopendir.m4: Likewise.
11231         * m4/inet_ntop.m4: Likewise.
11232         * m4/inet_pton.m4: Likewise.
11233         * m4/ioctl.m4: Likewise.
11234         * m4/mbrlen.m4: Likewise.
11235         * m4/mbrtowc.m4: Likewise.
11236         * m4/mbsinit.m4: Likewise.
11237         * m4/mbsnrtowcs.m4: Likewise.
11238         * m4/mbsrtowcs.m4: Likewise.
11239         * m4/poll.m4: Likewise.
11240         * m4/setlocale.m4: Likewise.
11241         * m4/wcrtomb.m4: Likewise.
11242         * m4/wcsnrtombs.m4: Likewise.
11243         * m4/wcsrtombs.m4: Likewise.
11244         * m4/wctob.m4: Likewise.
11245         * m4/wcwidth.m4: Likewise.
11246         * modules/posix_spawn: Likewise.
11247         * modules/posix_spawn_file_actions_addclose: Likewise.
11248         * modules/posix_spawn_file_actions_adddup2: Likewise.
11249         * modules/posix_spawn_file_actions_addopen: Likewise.
11250         * modules/posix_spawn_file_actions_destroy: Likewise.
11251         * modules/posix_spawn_file_actions_init: Likewise.
11252         * modules/posix_spawnattr_destroy: Likewise.
11253         * modules/posix_spawnattr_getflags: Likewise.
11254         * modules/posix_spawnattr_getpgroup: Likewise.
11255         * modules/posix_spawnattr_getschedparam: Likewise.
11256         * modules/posix_spawnattr_getschedpolicy: Likewise.
11257         * modules/posix_spawnattr_getsigdefault: Likewise.
11258         * modules/posix_spawnattr_getsigmask: Likewise.
11259         * modules/posix_spawnattr_init: Likewise.
11260         * modules/posix_spawnattr_setflags: Likewise.
11261         * modules/posix_spawnattr_setpgroup: Likewise.
11262         * modules/posix_spawnattr_setschedparam: Likewise.
11263         * modules/posix_spawnattr_setschedpolicy: Likewise.
11264         * modules/posix_spawnattr_setsigdefault: Likewise.
11265         * modules/posix_spawnattr_setsigmask: Likewise.
11266         * modules/posix_spawnp: Likewise.
11267
11268 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11269
11270         Add option to do-release-commit-and-tag to specify branch.
11271         * build-aux/do-release-commit-and-tag: Add --branch.
11272
11273 2011-05-03  Bruno Haible  <bruno@clisp.org>
11274
11275         Avoid unnecessary compilation units, through conditional dependencies.
11276         * modules/accept (Depends-on): Add conditions to the dependencies.
11277         * modules/acosl (Depends-on): Likewise.
11278         * modules/argz (Depends-on): Likewise.
11279         * modules/asinl (Depends-on): Likewise.
11280         * modules/atanl (Depends-on): Likewise.
11281         * modules/atoll (Depends-on): Likewise.
11282         * modules/bind (Depends-on): Likewise.
11283         * modules/btowc (Depends-on): Likewise.
11284         * modules/canonicalize-lgpl (Depends-on): Likewise.
11285         * modules/ceil (Depends-on): Likewise.
11286         * modules/ceilf (Depends-on): Likewise.
11287         * modules/ceill (Depends-on): Likewise.
11288         * modules/chdir-long (Depends-on): Likewise.
11289         * modules/chown (Depends-on): Likewise.
11290         * modules/close (Depends-on): Likewise.
11291         * modules/connect (Depends-on): Likewise.
11292         * modules/cosl (Depends-on): Likewise.
11293         * modules/dirfd (Depends-on): Likewise.
11294         * modules/dprintf (Depends-on): Likewise.
11295         * modules/dprintf-posix (Depends-on): Likewise.
11296         * modules/error (Depends-on): Likewise.
11297         * modules/euidaccess (Depends-on): Likewise.
11298         * modules/expl (Depends-on): Likewise.
11299         * modules/faccessat (Depends-on): Likewise.
11300         * modules/fchdir (Depends-on): Likewise.
11301         * modules/fclose (Depends-on): Likewise.
11302         * modules/fcntl (Depends-on): Likewise.
11303         * modules/fdopendir (Depends-on): Likewise.
11304         * modules/fflush (Depends-on): Likewise.
11305         * modules/floor (Depends-on): Likewise.
11306         * modules/floorf (Depends-on): Likewise.
11307         * modules/floorl (Depends-on): Likewise.
11308         * modules/fnmatch (Depends-on): Likewise.
11309         * modules/fopen (Depends-on): Likewise.
11310         * modules/fprintf-posix (Depends-on): Likewise.
11311         * modules/frexp (Depends-on): Likewise.
11312         * modules/frexp-nolibm (Depends-on): Likewise.
11313         * modules/frexpl (Depends-on): Likewise.
11314         * modules/frexpl-nolibm (Depends-on): Likewise.
11315         * modules/fseek (Depends-on): Likewise.
11316         * modules/fsusage (Depends-on): Likewise.
11317         * modules/ftell (Depends-on): Likewise.
11318         * modules/ftello (Depends-on): Likewise.
11319         * modules/futimens (Depends-on): Likewise.
11320         * modules/getcwd (Depends-on): Likewise.
11321         * modules/getcwd-lgpl (Depends-on): Likewise.
11322         * modules/getdelim (Depends-on): Likewise.
11323         * modules/getdomainname (Depends-on): Likewise.
11324         * modules/getgroups (Depends-on): Likewise.
11325         * modules/gethostname (Depends-on): Likewise.
11326         * modules/getline (Depends-on): Likewise.
11327         * modules/getlogin_r (Depends-on): Likewise.
11328         * modules/getopt-posix (Depends-on): Likewise.
11329         * modules/getpeername (Depends-on): Likewise.
11330         * modules/getsockname (Depends-on): Likewise.
11331         * modules/getsockopt (Depends-on): Likewise.
11332         * modules/getsubopt (Depends-on): Likewise.
11333         * modules/getusershell (Depends-on): Likewise.
11334         * modules/glob (Depends-on): Likewise.
11335         * modules/grantpt (Depends-on): Likewise.
11336         * modules/iconv_open (Depends-on): Likewise.
11337         * modules/iconv_open-utf (Depends-on): Likewise.
11338         * modules/inet_ntop (Depends-on): Likewise.
11339         * modules/inet_pton (Depends-on): Likewise.
11340         * modules/ioctl (Depends-on): Likewise.
11341         * modules/isapipe (Depends-on): Likewise.
11342         * modules/isfinite (Depends-on): Likewise.
11343         * modules/isinf (Depends-on): Likewise.
11344         * modules/lchown (Depends-on): Likewise.
11345         * modules/ldexpl (Depends-on): Likewise.
11346         * modules/link (Depends-on): Likewise.
11347         * modules/linkat (Depends-on): Likewise.
11348         * modules/listen (Depends-on): Likewise.
11349         * modules/logl (Depends-on): Likewise.
11350         * modules/lstat (Depends-on): Likewise.
11351         * modules/mbrlen (Depends-on): Likewise.
11352         * modules/mbrtowc (Depends-on): Likewise.
11353         * modules/mbsinit (Depends-on): Likewise.
11354         * modules/mbsnrtowcs (Depends-on): Likewise.
11355         * modules/mbsrtowcs (Depends-on): Likewise.
11356         * modules/mbtowc (Depends-on): Likewise.
11357         * modules/memcmp (Depends-on): Likewise.
11358         * modules/mkdir (Depends-on): Likewise.
11359         * modules/mkdtemp (Depends-on): Likewise.
11360         * modules/mkfifo (Depends-on): Likewise.
11361         * modules/mkfifoat (Depends-on): Likewise.
11362         * modules/mknod (Depends-on): Likewise.
11363         * modules/mkostemp (Depends-on): Likewise.
11364         * modules/mkostemps (Depends-on): Likewise.
11365         * modules/mkstemp (Depends-on): Likewise.
11366         * modules/mkstemps (Depends-on): Likewise.
11367         * modules/mktime (Depends-on): Likewise.
11368         * modules/nanosleep (Depends-on): Likewise.
11369         * modules/open (Depends-on): Likewise.
11370         * modules/openat (Depends-on): Likewise.
11371         * modules/perror (Depends-on): Likewise.
11372         * modules/poll (Depends-on): Likewise.
11373         * modules/popen (Depends-on): Likewise.
11374         * modules/posix_spawn (Depends-on): Likewise.
11375         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11376         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11377         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11378         * modules/posix_spawnp (Depends-on): Likewise.
11379         * modules/pread (Depends-on): Likewise.
11380         * modules/printf-posix (Depends-on): Likewise.
11381         * modules/ptsname (Depends-on): Likewise.
11382         * modules/putenv (Depends-on): Likewise.
11383         * modules/pwrite (Depends-on): Likewise.
11384         * modules/readline (Depends-on): Likewise.
11385         * modules/readlink (Depends-on): Likewise.
11386         * modules/readlinkat (Depends-on): Likewise.
11387         * modules/recv (Depends-on): Likewise.
11388         * modules/recvfrom (Depends-on): Likewise.
11389         * modules/regex (Depends-on): Likewise.
11390         * modules/remove (Depends-on): Likewise.
11391         * modules/rename (Depends-on): Likewise.
11392         * modules/renameat (Depends-on): Likewise.
11393         * modules/rmdir (Depends-on): Likewise.
11394         * modules/round (Depends-on): Likewise.
11395         * modules/roundf (Depends-on): Likewise.
11396         * modules/roundl (Depends-on): Likewise.
11397         * modules/rpmatch (Depends-on): Likewise.
11398         * modules/select (Depends-on): Likewise.
11399         * modules/send (Depends-on): Likewise.
11400         * modules/sendto (Depends-on): Likewise.
11401         * modules/setenv (Depends-on): Likewise.
11402         * modules/setlocale (Depends-on): Likewise.
11403         * modules/setsockopt (Depends-on): Likewise.
11404         * modules/shutdown (Depends-on): Likewise.
11405         * modules/sigaction (Depends-on): Likewise.
11406         * modules/signbit (Depends-on): Likewise.
11407         * modules/sigprocmask (Depends-on): Likewise.
11408         * modules/sinl (Depends-on): Likewise.
11409         * modules/sleep (Depends-on): Likewise.
11410         * modules/snprintf (Depends-on): Likewise.
11411         * modules/snprintf-posix (Depends-on): Likewise.
11412         * modules/socket (Depends-on): Likewise.
11413         * modules/sprintf-posix (Depends-on): Likewise.
11414         * modules/sqrtl (Depends-on): Likewise.
11415         * modules/stat (Depends-on): Likewise.
11416         * modules/strchrnul (Depends-on): Likewise.
11417         * modules/strdup-posix (Depends-on): Likewise.
11418         * modules/strerror (Depends-on): Likewise.
11419         * modules/strerror_r-posix (Depends-on): Likewise.
11420         * modules/strndup (Depends-on): Likewise.
11421         * modules/strnlen (Depends-on): Likewise.
11422         * modules/strptime (Depends-on): Likewise.
11423         * modules/strsep (Depends-on): Likewise.
11424         * modules/strsignal (Depends-on): Likewise.
11425         * modules/strstr-simple (Depends-on): Likewise.
11426         * modules/strtod (Depends-on): Likewise.
11427         * modules/strtoimax (Depends-on): Likewise.
11428         * modules/strtok_r (Depends-on): Likewise.
11429         * modules/strtoumax (Depends-on): Likewise.
11430         * modules/symlink (Depends-on): Likewise.
11431         * modules/symlinkat (Depends-on): Likewise.
11432         * modules/tanl (Depends-on): Likewise.
11433         * modules/tcgetsid (Depends-on): Likewise.
11434         * modules/tmpfile (Depends-on): Likewise.
11435         * modules/trunc (Depends-on): Likewise.
11436         * modules/truncf (Depends-on): Likewise.
11437         * modules/truncl (Depends-on): Likewise.
11438         * modules/uname (Depends-on): Likewise.
11439         * modules/unlink (Depends-on): Likewise.
11440         * modules/unlockpt (Depends-on): Likewise.
11441         * modules/unsetenv (Depends-on): Likewise.
11442         * modules/usleep (Depends-on): Likewise.
11443         * modules/utimensat (Depends-on): Likewise.
11444         * modules/vasprintf (Depends-on): Likewise.
11445         * modules/vdprintf (Depends-on): Likewise.
11446         * modules/vdprintf-posix (Depends-on): Likewise.
11447         * modules/vfprintf-posix (Depends-on): Likewise.
11448         * modules/vprintf-posix (Depends-on): Likewise.
11449         * modules/vsnprintf (Depends-on): Likewise.
11450         * modules/vsnprintf-posix (Depends-on): Likewise.
11451         * modules/vsprintf-posix (Depends-on): Likewise.
11452         * modules/wcrtomb (Depends-on): Likewise.
11453         * modules/wcscasecmp (Depends-on): Likewise.
11454         * modules/wcscspn (Depends-on): Likewise.
11455         * modules/wcsdup (Depends-on): Likewise.
11456         * modules/wcsncasecmp (Depends-on): Likewise.
11457         * modules/wcsnrtombs (Depends-on): Likewise.
11458         * modules/wcspbrk (Depends-on): Likewise.
11459         * modules/wcsrtombs (Depends-on): Likewise.
11460         * modules/wcsspn (Depends-on): Likewise.
11461         * modules/wcsstr (Depends-on): Likewise.
11462         * modules/wcstok (Depends-on): Likewise.
11463         * modules/wcswidth (Depends-on): Likewise.
11464         * modules/wctob (Depends-on): Likewise.
11465         * modules/wctomb (Depends-on): Likewise.
11466         * modules/wctype (Depends-on): Likewise.
11467         * modules/wcwidth (Depends-on): Likewise.
11468         * modules/write (Depends-on): Likewise.
11469
11470 2011-05-03  Bruno Haible  <bruno@clisp.org>
11471
11472         Support for conditional dependencies.
11473         * doc/gnulib.texi (Module description): Document the syntax of
11474         conditional dependencies.
11475         * gnulib-tool: New option --conditional-dependencies.
11476         (func_usage): Document it.
11477         (cond_dependencies): New variable.
11478         (func_get_automake_snippet_conditional,
11479         func_get_automake_snippet_unconditional): New functions, extracted from
11480         func_get_automake_snippet.
11481         (func_get_automake_snippet): Use them.
11482         (sed_first_32_chars): New variable.
11483         (func_module_shellfunc_name): New function.
11484         (func_module_shellvar_name): New function.
11485         (func_module_conditional_name): New function.
11486         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11487         func_cond_module_condition): New functions.
11488         (func_modules_transitive_closure): Add support for conditional
11489         dependencies.
11490         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11491         conditional automake snippet in an automake conditional.
11492         (func_emit_autoconf_snippets): Emit shell functions that contain the
11493         code for conditional modules.
11494         (func_import, func_create_testdir): Update specification.
11495
11496 2011-05-03  Eric Blake  <eblake@redhat.com>
11497
11498         test-getaddrinfo: report error information
11499         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11500
11501 2011-05-03  Jim Meyering  <meyering@redhat.com>
11502
11503         bootstrap: avoid build failure when $GZIP is set
11504         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11505         program name.  If defined at all, it is supposed to list gzip options.
11506         Reported by Alan Curry in http://debbugs.gnu.org/8609
11507
11508 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11509
11510         readme-release: new module with release instructions
11511         * modules/readme-release: New module.
11512         * top/README-release: New file, from coreutils, grep, diffutils.
11513         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11514
11515 2011-05-02  Eric Blake  <eblake@redhat.com>
11516
11517         fflush: also replace fclose when fixing fflush
11518         * modules/fflush (Depends-on): Add fclose.
11519         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11520         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11521         memstreams with no backing fd.
11522         * doc/posix-functions/fclose.texi (fclose): Document the use of
11523         fflush module to fix the bug.
11524         * tests/test-fclose.c (main): Relax test when fclose is used in
11525         isolation.
11526
11527         fclose: add some tests
11528         * modules/fclose-tests: New test module.
11529         * tests/test-fclose.c: New file.
11530         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11531
11532         fclose: reduced dependencies
11533         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11534         simpler lseek.
11535         * lib/fclose.c (rpl_fclose): Likewise.
11536         Reported by Simon Josefsson.
11537
11538         exit: drop remaining clients
11539         * modules/argmatch (Depends-on): Replace exit with stdlib.
11540         * modules/copy-file (Depends-on): Likewise.
11541         * modules/execute (Depends-on): Likewise.
11542         * modules/exitfail (Depends-on): Likewise.
11543         * modules/obstack (Depends-on): Likewise.
11544         * modules/pagealign_alloc (Depends-on): Likewise.
11545         * modules/pipe-filter-gi (Depends-on): Likewise.
11546         * modules/pipe-filter-ii (Depends-on): Likewise.
11547         * modules/savewd (Depends-on): Likewise.
11548         * modules/spawn-pipe (Depends-on): Likewise.
11549         * modules/wait-process (Depends-on): Likewise.
11550         * modules/xsetenv (Depends-on): Likewise.
11551         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11552         * modules/git-merge-changelog (Depends-on): Likewise.
11553         * modules/long-options (Depends-on): Likewise.
11554         * modules/pt_chown (Depends-on): Likewise.
11555         * modules/sysexits (Depends-on): Likewise.
11556
11557         freading: relax license from LGPLv3+ to LGPLv2+
11558         * modules/freading (License): Relax LGPL version.
11559
11560 2011-05-02  Bruno Haible  <bruno@clisp.org>
11561
11562         fchdir: Remove unused dependencies.
11563         * modules/fchdir (Depends-on): Remove include_next.
11564
11565 2011-05-02  Bruno Haible  <bruno@clisp.org>
11566
11567         gnulib-tool: Refactor.
11568         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11569         from func_emit_autoconf_snippets.
11570         (func_emit_autoconf_snippets): Use it.
11571
11572 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11573
11574         * NEWS: Document removal of 'exit'.
11575         * modules/exit: Remove file.
11576
11577 2011-05-01  Bruno Haible  <bruno@clisp.org>
11578
11579         Update DEPENDENCIES.
11580         * DEPENDENCIES (gettext): Recommend the newest release.
11581         Reported by Simon Josefsson.
11582
11583 2011-05-01  Bruno Haible  <bruno@clisp.org>
11584
11585         gnulib-tool: Reduce code duplication.
11586         * gnulib-tool (func_emit_autoconf_snippets): New function.
11587         (func_import, func_create_testdir): Use it.
11588
11589 2011-04-30  Eric Blake  <eblake@redhat.com>
11590
11591         fclose: don't fail on non-seekable input stream
11592         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11593         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11594         since fflush is allowed to fail in that case.
11595
11596 2011-04-30  Bruno Haible  <bruno@clisp.org>
11597
11598         dup3: cleanup
11599         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11600
11601 2011-04-30  Bruno Haible  <bruno@clisp.org>
11602
11603         netdb: Make it work in C++ mode.
11604         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11605         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11606         module.
11607         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11608         gl_MODULE_INDICATOR_FOR_TESTS.
11609         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11610         * modules/netdb-c++-tests: New file.
11611         * tests/test-netdb-c++.cc: New file.
11612
11613 2011-04-30  Bruno Haible  <bruno@clisp.org>
11614
11615         New modules 'vfscanf', 'vscanf'.
11616         * modules/vfscanf: New file.
11617         * modules/vscanf: New file.
11618         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11619         here.
11620         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11621         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11622
11623 2011-04-30  Bruno Haible  <bruno@clisp.org>
11624
11625         passfd: Add comments.
11626         * lib/passfd.c: Add comments about platforms.
11627
11628 2011-04-30  Bruno Haible  <bruno@clisp.org>
11629
11630         sys_uio: Make <sys/uio.h> self-contained.
11631         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11632         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11633
11634 2011-04-30  Bruno Haible  <bruno@clisp.org>
11635
11636         sys_socket: Ensure 'struct iovec' definition.
11637         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11638         <sys/socket.h>.
11639         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11640
11641 2011-04-30  Bruno Haible  <bruno@clisp.org>
11642
11643         sys_uio: Protect definition of 'struct iovec'.
11644         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11645         it as a C struct.
11646
11647 2011-04-30  Bruno Haible  <bruno@clisp.org>
11648
11649         manywarnings: fix indentation
11650         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11651
11652 2011-04-30  Pádraig Brady <P@draigBrady.com>
11653
11654         manywarnings: add -Wno-missing-field-initializers if needed.
11655         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11656         option if it's needed to allow initialization with { 0, }
11657
11658 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11659
11660         announce-gen: cosmetic improvement
11661         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11662
11663 2011-04-29  Jim Meyering  <meyering@redhat.com>
11664
11665         vc-list-files: indent with spaces, not TABs
11666         * build-aux/vc-list-files: Convert leading TABs to spaces,
11667         to match the style of most other files in gnulib.
11668
11669         announce-gen: indent with spaces, not TABs
11670         * build-aux/announce-gen: Convert all TABs to spaces, to match
11671         the style of most other files in gnulib.
11672
11673 2011-04-29  Eric Blake  <eblake@redhat.com>
11674
11675         quotearg: avoid uninitialized variable use
11676         * lib/quotearg.c (quoting_options_from_style): Initialize
11677         remaining fields, and ensure that custom styles are only used via
11678         quoting_options rather than quoting_style.
11679
11680 2011-04-29  Jim Meyering  <meyering@redhat.com>
11681
11682         maint.mk: remove unused VC-tag variable
11683         * top/maint.mk (VC-tag): Remove unused variable.
11684
11685 2011-04-29  Bruno Haible  <bruno@clisp.org>
11686
11687         netdb: fix gai_strerror replacements
11688         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11689         * modules/netdb: Substitute it.
11690
11691 2011-04-29  Jim Meyering  <meyering@redhat.com>
11692
11693         test-getcwd.c: avoid new set-but-not-used warning
11694         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11695         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11696         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11697         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11698
11699         test-hash.c: avoid a new shadowing warning
11700         * tests/test-hash.c (main): Don't shadow "dup".
11701
11702 2011-04-28  Eric Blake  <eblake@redhat.com>
11703
11704         getaddrinfo: fix gai_strerror signature
11705         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11706         and work around mingw with UNICODE defined.
11707         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11708         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11709         * modules/netdb (Makefile.am): Substitute it.
11710         * lib/netdb.in.h (gai_strerror): Declare replacement.
11711         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11712         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11713         the fix.
11714
11715         getsockopt: avoid compiler warning
11716         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11717         Reported by Matthias Bolte.
11718
11719         tests: drop unused link dependency
11720         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11721         * modules/dirent-safer-tests (Makefile.am): Likewise.
11722         * modules/fdopendir-tests (Makefile.am): Likewise.
11723         * modules/mkfifoat-tests (Makefile.am): Likewise.
11724         * modules/openat-safer-tests (Makefile.am): Likewise.
11725         * modules/openat-tests (Makefile.am): Likewise.
11726         * modules/readlinkat-tests (Makefile.am): Likewise.
11727         * modules/symlinkat-tests (Makefile.am): Likewise.
11728         * modules/linkat-tests (Makefile.am): Likewise.
11729         (Depends-on): Switch to filenamecat-lgpl.
11730         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11731         LIBINTL.
11732         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11733         * tests/test-linkat.c (main): Don't require xalloc.
11734
11735         hash, mgetgroups: drop xalloc dependency
11736         * lib/hash.c (includes): Adjust includes.
11737         * lib/mgetgroups.c (includes): Likewise.
11738         (xgetgroups): Move...
11739         * lib/xgetgroups.c: ...to new file.
11740         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11741         * modules/xgetgroups: New file, split from...
11742         * modules/mgetgroups: ...here.
11743         (Depends-on): Add xalloc-oversized.
11744         * modules/hash (Depends-on): Likewise.
11745         * modules/hash-tests (Depends-on): Drop xalloc.
11746         (test_hash_LDADD): Drop unused library.
11747         * tests/test-hash.c (main): Break xalloc dependency.
11748         (includes): Drop unused include.
11749
11750         xalloc-oversized: new module
11751         * modules/xalloc-oversized: New module.
11752         * modules/xalloc (Depends-on): Add it.
11753         * lib/xalloc.h (xalloc_oversized): Move...
11754         * lib/xalloc-oversized.h: ...into new file.
11755
11756         utimecmp: drop dependency on xmalloc
11757         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11758         due to memory pressure.
11759         * modules/utimecmp (Depends-on): Drop xalloc.
11760
11761 2011-04-27  Eric Blake  <eblake@redhat.com>
11762
11763         getcwd: fix mingw bugs
11764         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11765         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11766         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11767
11768 2011-04-27  Bruno Haible  <bruno@clisp.org>
11769
11770         mkstemps: Ensure declaration on MacOS X 10.5.
11771         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11772         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11773         MacOS X.
11774
11775 2011-04-27  Bruno Haible  <bruno@clisp.org>
11776
11777         mkstemp: More documentation.
11778         * doc/posix-functions/mkstemp.texi: Document header file problem on
11779         MacOS X.
11780
11781 2011-04-27  Bruno Haible  <bruno@clisp.org>
11782
11783         mkstemp: Tweak configure message when cross-compiling.
11784         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11785         result as a guess.
11786
11787 2011-04-27  Bruno Haible  <bruno@clisp.org>
11788
11789         clean-temp: Clarify what it does.
11790         * lib/clean-temp.h: Add more comments.
11791         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11792         module.
11793         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11794         * doc/glibc-functions/mkstemps.texi: Likewise.
11795         * doc/glibc-functions/mkostemps.texi: Likewise.
11796
11797 2011-04-27  Eric Blake  <eblake@redhat.com>
11798
11799         fchdir: avoid extra chdir and fix test
11800         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11801         getcwd-lgpl.
11802         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11803         have to be canonical.
11804         (canonicalize_file_name): Drop unused macro.
11805         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11806
11807         filenamecat-lgpl: fix licence
11808         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11809         when it was first created.
11810
11811         linkat, renameat: add missing dependency
11812         * modules/linkat (Depends-on): Require getcwd-lgpl.
11813         * modules/renameat (Depends-on): Likewise.
11814
11815         tests: reduce dependencies
11816         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11817         * tests/test-renameat.c (main): Likewise.
11818         * modules/linkat-tests (Depends-on): Relax dependency.
11819         * modules/renameat-tests (Depends-on): Likewise.
11820         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11821         dependency explicit.
11822
11823         save-cwd: reduce default dependency
11824         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11825         * lib/save-cwd.c: Update comments.
11826         * NEWS: Document the semantic change.
11827
11828         getcwd: enhance tests
11829         * tests/test-getcwd-lgpl.c: New file, taken from...
11830         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11831         repeat long path stress tests from m4 probe.
11832         * modules/getcwd-lgpl-tests: New module.
11833         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11834         * m4/getcwd-abort-bug.m4: Update comment.
11835         * m4/getcwd-path-max.m4: Likewise.
11836
11837         getcwd-lgpl: new module
11838         * modules/getcwd-lgpl: New module.
11839         * lib/getcwd-lgpl.c: New file.
11840         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11841         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11842         * modules/getcwd (configure.ac): Set C witness.
11843         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11844
11845         getcwd: tweak comments
11846         * m4/getcwd-abort-bug.m4: Fix comments.
11847         * m4/getcwd-path-max.m4: Likewise.
11848         * m4/getcwd.m4: Likewise.
11849
11850 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11851         and Eric Blake  <eblake@redhat.com>
11852
11853         mkstemp: replace if system version uses wrong permissions
11854         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11855         read/write mode bits set in file created by mkstemp.
11856         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11857
11858 2011-04-27  Eric Blake  <eblake@redhat.com>
11859
11860         passfd: avoid compiler warning
11861         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11862         Reported by Laine Stump.
11863
11864 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11865
11866         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11867         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11868
11869 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11870         and Eric Blake  <eblake@redhat.com>
11871
11872         mkstemp: mention clean-temp module
11873         * lib/mkstemp.c: Add comment.
11874         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11875
11876 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11877
11878         inttypes: also provide default values for 32-bit tests
11879         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11880         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11881
11882 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11883
11884         strtoumax: remove dependency on strtoimax
11885         This is like the strtoull change of yesterday.
11886         * modules/strtoumax (Files): Add lib/strtoimax.c.
11887         (Depends-on): Remove strtoimax and add verify.
11888
11889         inttypes-incomplete: new module
11890         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11891         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11892         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11893         of gl_INTTYPES_H.
11894         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11895         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11896         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11897         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11898         * modules/strtoumax, modules/xstrtol (Depends-on):
11899         Depend on inttypes-incomplete, not inttypes.
11900         * modules/inttypes-incomplete: New module, containing the contents
11901         of the old modules/inttypes module, except that the Files: section
11902         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11903         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11904         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11905         (Depends-on): Depend only on inttypes-incomplete.
11906         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11907
11908         inttypes: omit now-redundant strtoimax and strtoumax work
11909         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11910         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11911
11912         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11913         This supports apps that need pointers to strtoimax and strtoumax,
11914         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11915         nonexistent functions.  See
11916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11917         et seq.
11918         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11919         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11920         a macro.
11921         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11922
11923 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11924
11925         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11926
11927 2011-04-25  Bruno Haible  <bruno@clisp.org>
11928
11929         strtol, strtoul: Mark modules as obsolete.
11930         * modules/strtol (Status, Notice): New sections.
11931         * modules/strtoul (Status, Notice): New sections.
11932
11933 2011-04-25  Bruno Haible  <bruno@clisp.org>
11934
11935         strtod: Remove check for strtod, unless supporting old platforms.
11936         * modules/strtod-obsolete: New file.
11937         * m4/strtod-obsolete.m4: New file.
11938         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11939         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11940         * modules/strtod (Depends-on): Add strtod-obsolete.
11941         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11942
11943 2011-04-25  Bruno Haible  <bruno@clisp.org>
11944
11945         strcase: Make module obsolete.
11946         * modules/strcase (Status, Notice): New sections.
11947
11948 2011-04-25  Bruno Haible  <bruno@clisp.org>
11949
11950         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11951         * modules/dup2-obsolete: New file.
11952         * m4/dup2-obsolete.m4: New file.
11953         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11954         gl_FUNC_DUP2_OBSOLETE is not also defined.
11955         * modules/dup2 (Depends-on): Add dup2-obsolete.
11956         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11957
11958 2011-04-25  Bruno Haible  <bruno@clisp.org>
11959
11960         strnlen: Avoid memchr related link error on old obsolete platforms.
11961         * modules/memchr-obsolete: New file.
11962         * m4/memchr-obsolete.m4: New file.
11963         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11964         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11965         * modules/memchr (Depends-on): Add memchr-obsolete.
11966         * modules/strnlen (Depends-on): Likewise.
11967         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11968
11969 2011-04-25  Jim Meyering  <meyering@redhat.com>
11970
11971         maint.mk: makefile_at_at_check extend and clean up
11972         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11973         in addition to */Makefile.am.
11974         Exempt legitimate uses of @VAR@ notation, e.g.,
11975         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11976         Remove obsolete coreutils-specific comment.
11977         Prompted by discussion here:
11978         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11979
11980 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11981
11982         strtoul: remove dependency on strtol
11983         This is so that 'configure' need not check for strtol merely because
11984         the application needs strtoul.
11985         * modules/strtoul (Files): Add lib/strtol.c.
11986         (Depends-on): Remove strtol.
11987
11988         strtoull: remove dependency on strtoul
11989         This is like the strtoll change.
11990         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11991         (Depends-on): Remove strtoul.
11992
11993         strtoll: remove dependency on strtol
11994         This is so that 'configure' need not check for strtol merely because
11995         the application needs strtoll.
11996         * modules/strtoll (Files): Add lib/strtol.c.
11997         (Depends-on): Remove strtol.
11998
11999 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12000
12001         inttypes: Move some configure check to module 'imaxdiv'.
12002         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12003         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12004         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12005
12006 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12007
12008         inttypes: Move some configure check to module 'imaxabs'.
12009         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12010         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12011         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12012
12013 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12014
12015         inttypes: Remove configure tests that are not needed since 2009-12-31.
12016         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12017         gl_cv_header_working_inttypes_h.
12018
12019 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12020
12021         * modules/strnlen (Depends-on): Remove memchr.
12022         The strnlen implementation doesn't need the memchr module's fixes; see
12023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12024
12025         strtol: remove dependency on wchar
12026         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12027         * modules/strtol (Depends-on): Remove wchar.
12028
12029 2011-04-21  Eric Blake  <eblake@redhat.com>
12030
12031         passfd: fix test regression on Linux
12032         * modules/passfd-tests (configure.ac): Correct socketpair check.
12033
12034         passfd: speed up configure and drop unused code
12035         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12036         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12037         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12038         Instead of probing at configure for unix_scm_rights_bsd44_way,
12039         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12040         check to a struct member probe.
12041         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12042         (sendfd, recvfd): Update preprocessor checks.
12043         * modules/passfd (Files): Reflect rename, and drop unused file.
12044         (Depends-on): Drop unused dependency.
12045
12046         passfd: allow compilation on mingw
12047         * modules/sys_socket (Depends-on): Add sys_uio.
12048         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12049         iovec and a minimal struct msghdr.
12050         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12051         * tests/test-sys_socket.c (main): Enhance test.
12052         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12053         guaranteed to provide what we need.
12054         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12055         * modules/passfd-tests (Depends-on): Add sys_wait.
12056         * tests/test-passfd.c (main): Skip test on mingw, for now.
12057         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12058         partial 'struct msghdr' implementation.
12059
12060         sys_uio: new module
12061         * modules/sys_uio: New module.
12062         * modules/sys_uio-tests: Likewise.
12063         * lib/sys_uio.in.h: New file.
12064         * m4/sys_uio_h.m4: Likewise.
12065         * tests/test-sys_uio.c: Likewise.
12066         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12067         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12068
12069 2011-04-20  Jim Meyering  <meyering@redhat.com>
12070
12071         useless-if-before-free: avoid false-positive
12072         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12073         disjunct so that it too requires a terminating ";".  Without that,
12074         this script would identify as useless one statement from gcc that
12075         was not:
12076           if (aligned_ptr)
12077             free (((void **) aligned_ptr) [-1]);
12078
12079 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12080
12081         doc: update users.txt.
12082         * users.txt: Add barcode.
12083
12084 2011-04-19  Bruno Haible  <bruno@clisp.org>
12085
12086         ioctl: Remove link dependency on native Windows.
12087         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12088         (gl_close_fn, gl_ioctl_fn): New types.
12089         (struct fd_hook): Renamed from struct close_hook. Change type of
12090         private_close_fn field. Add private_ioctl_fn field.
12091         (close_hook_fn): Add parameter for primary close method.
12092         (execute_close_hooks, execute_all_close_hooks): Likewise.
12093         (ioctl_hook_fn): New type.
12094         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12095         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12096         argument.
12097         (unregister_fd_hook): Renamed from unregister_close_hook.
12098         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12099         Don't include <unistd.h>.
12100         (close): Remove undef.
12101         (anchor): Update.
12102         (execute_close_hooks): Add argument for primary close method.
12103         (execute_all_close_hooks): Likewise.
12104         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12105         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12106         argument. Allow each argument to be NULL.
12107         (unregister_fd_hook): Renamed from unregister_close_hook.
12108         * lib/close.c (rpl_close): Pass 'close' function pointer to
12109         execute_all_close_hooks.
12110         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12111         (primary_ioctl): New function.
12112         (ioctl): Don't call ioctlsocket here. Instead, call
12113         execute_all_ioctl_hooks.
12114         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12115         close method.
12116         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12117         (fd_sockets_hook): Renamed from close_sockets_hook.
12118         (gl_sockets_startup, gl_sockets_cleanup): Update.
12119         * modules/fd-hook: Renamed from modules/close-hook. Update.
12120         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12121         * modules/sockets (Depends-on): Likewise.
12122         * modules/ioctl (Depends-on): Add fd-hook.
12123         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12124         GNULIB_SOCKET.
12125
12126 2011-04-19  Bruno Haible  <bruno@clisp.org>
12127
12128         Move the support of O_NONBLOCK in open() to the 'open' module.
12129         * modules/nonblocking (Depends-on): Remove 'open'.
12130         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12131         gl_cv_have_open_O_NONBLOCK.
12132         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12133         O_NONBLOCK support.
12134         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12135
12136 2011-04-17  Bruno Haible  <bruno@clisp.org>
12137
12138         pipe2: Simplify code.
12139         * lib/pipe2.c (pipe2): Reduce code duplication.
12140
12141 2011-04-17  Bruno Haible  <bruno@clisp.org>
12142
12143         nonblocking: Add comment.
12144         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12145
12146 2011-04-17  Bruno Haible  <bruno@clisp.org>
12147
12148         nonblocking: Add tests for sockets.
12149         * tests/test-nonblocking-socket.sh: New file.
12150         * tests/test-nonblocking-socket-main.c: New file.
12151         * tests/test-nonblocking-socket-child.c: New file.
12152         * tests/test-nonblocking-socket.h: New file.
12153         * tests/socket-server.h: New file.
12154         * tests/socket-client.h: New file.
12155         * modules/nonblocking-socket-tests: New file.
12156         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12157
12158 2011-04-17  Bruno Haible  <bruno@clisp.org>
12159
12160         nonblocking: Add tests for pipes.
12161         * tests/test-nonblocking-pipe.sh: New file.
12162         * tests/test-nonblocking-pipe-main.c: New file.
12163         * tests/test-nonblocking-pipe-child.c: New file.
12164         * tests/test-nonblocking-pipe.h: New file.
12165         * tests/test-nonblocking-writer.h: New file.
12166         * tests/test-nonblocking-reader.h: New file.
12167         * tests/test-nonblocking-misc.h: New file.
12168         * modules/nonblocking-pipe-tests: New file.
12169         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12170
12171 2011-04-16  Bruno Haible  <bruno@clisp.org>
12172
12173         gettext: Clarify the needed programmer actions.
12174         * modules/gettext (Notice): New field.
12175         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12176
12177 2011-04-16  Bruno Haible  <bruno@clisp.org>
12178
12179         strchrnul: Tweak last commit.
12180         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12181         bug.
12182         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12183         as in _GL_FUNCDECL_SYS.
12184         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12185         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12186
12187 2011-04-15  Eric Blake  <eblake@redhat.com>
12188
12189         strchrnul: work around cygwin bug
12190         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12191         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12192         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12193         * modules/string (Makefile.am): Substitute it.
12194         * lib/string.in.h (strchrnul): Use it.
12195
12196 2011-04-15  Bruno Haible  <bruno@clisp.org>
12197
12198         Don't require lib/stdio-write.c when only module 'stdio' is used.
12199         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12200         invocation.
12201         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12202
12203 2011-04-14  Bruno Haible  <bruno@clisp.org>
12204
12205         Support non-blocking pipe I/O in read() on native Windows.
12206         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12207         (read): New declaration.
12208         * lib/read.c: New file.
12209         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12210         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12211         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12212         vscanf): New declarations.
12213         * lib/stdio-read.c: New file.
12214         * m4/read.m4: New file.
12215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12216         REPLACE_READ.
12217         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12218         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12219         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12220         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12221         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12222         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12223         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12224         * modules/read: New file.
12225         * modules/nonblocking (Files): Add lib/stdio-read.c.
12226         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12227         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12228         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12229         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12230         * modules/pread (Depends-on): Add read.
12231         * modules/safe-read (Depends-on): Likewise.
12232         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12233         gets, scanf, vfscanf, vscanf): Verify signatures.
12234         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12235         problem with non-blocking pipes.
12236         * doc/posix-functions/fgetc.texi: Likewise.
12237         * doc/posix-functions/fgets.texi: Likewise.
12238         * doc/posix-functions/fread.texi: Likewise.
12239         * doc/posix-functions/fscanf.texi: Likewise.
12240         * doc/posix-functions/getc.texi: Likewise.
12241         * doc/posix-functions/getchar.texi: Likewise.
12242         * doc/posix-functions/gets.texi: Likewise.
12243         * doc/posix-functions/scanf.texi: Likewise.
12244         * doc/posix-functions/vfscanf.texi: Likewise.
12245         * doc/posix-functions/vscanf.texi: Likewise.
12246
12247 2011-04-14  Bruno Haible  <bruno@clisp.org>
12248
12249         Support non-blocking pipe I/O in write() on native Windows.
12250         * lib/write.c (rpl_write): Split a write request that failed merely
12251         because the byte count was larger than the pipe buffer's size.
12252         * doc/posix-functions/write.texi: Mention the problem with large byte
12253         counts.
12254
12255 2011-04-14  Bruno Haible  <bruno@clisp.org>
12256
12257         wchar: Ensure that wchar_t gets defined on uClibc.
12258         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12259         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12260
12261 2011-04-13  Bruno Haible  <bruno@clisp.org>
12262
12263         safe-write, full-read: Avoid unnecessary compilation units.
12264         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12265         (Depends-on): Remove safe-read. Add ssize_t.
12266         * modules/full-read (Files): Add lib/full-write.c.
12267         (Depends-on): Add full-write.
12268
12269 2011-04-13  Bruno Haible  <bruno@clisp.org>
12270
12271         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12272         * modules/pwrite (Depends-on): Add 'write'.
12273
12274 2011-04-13  Bruno Haible  <bruno@clisp.org>
12275
12276         Support non-blocking pipe I/O in write() on native Windows.
12277         * lib/unistd.in.h (write): Enable replacement also if
12278         GNULIB_UNISTD_H_NONBLOCKING is 1.
12279         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12280         (rpl_write): When failing to write on a non-blocking pipe, change
12281         errno from ENOSPC to EAGAIN.
12282         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12283         putchar, puts, vfprintf, vprintf): Enable replacement also if
12284         GNULIB_STDIO_H_NONBLOCKING is 1.
12285         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12286         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12287         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12288         CALL_WITH_SIGPIPE_EMULATION.
12289         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12290         * m4/nonblocking.m4: New file.
12291         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12292         for non-blocking I/O support.
12293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12294         GNULIB_UNISTD_H_NONBLOCKING.
12295         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12296         required for non-blocking I/O support.
12297         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12298         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12299         lib/stdio-write.c, m4/asm-underscore.m4.
12300         (Depends-on): Add stdio, unistd.
12301         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12302         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12303         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12304         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12305         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12306         problem with non-blocking pipes.
12307         * doc/posix-functions/fputc.texi: Likewise.
12308         * doc/posix-functions/fputs.texi: Likewise.
12309         * doc/posix-functions/fwrite.texi: Likewise.
12310         * doc/posix-functions/printf.texi: Likewise.
12311         * doc/posix-functions/putc.texi: Likewise.
12312         * doc/posix-functions/putchar.texi: Likewise.
12313         * doc/posix-functions/puts.texi: Likewise.
12314         * doc/posix-functions/vfprintf.texi: Likewise.
12315         * doc/posix-functions/vprintf.texi: Likewise.
12316         * doc/posix-functions/write.texi: Likewise.
12317
12318 2011-04-10  Jim Meyering  <meyering@redhat.com>
12319
12320         maint.mk: prohibit doubled words
12321         Detect them also when they're separated by a newline.
12322         There are 3 ways to customize it:
12323           - disable the test on a per file basis, as usual with rules using
12324             $(VC_LIST_EXCEPT)
12325           - replace the default doubled-word-selecting regexp (affects all files)
12326           - ignore a particular file-vs-doubled-word match
12327         I nearly used that last one to ignore the "is is" match in
12328         coreutils' NEWS file, since the text was "ls -is is ..."
12329         To do that, I would have added this line to cfg.mk:
12330           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12331         but it would have ignored any "is is" match in NEWS.
12332         Low probability, but still...
12333         Instead, I changed the text, slightly:
12334           -  ls -is is now consistent with ls -lis in ignoring values returned
12335           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12336         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12337         (prohibit_doubled_word_): Define.
12338         (sc_prohibit_doubled_word): New rule.
12339         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12340
12341 2011-04-10  Jim Meyering  <meyering@redhat.com>
12342
12343         maint: fix doubled-word typo in comment
12344         * m4/gethostname.m4: s/is is/it is/
12345         * m4/getdomainname.m4: Likewise.
12346
12347 2011-04-10  Jim Meyering  <meyering@redhat.com>
12348
12349         maint: remove doubled word: s/it it/it/
12350         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12351
12352 2011-04-10  Jim Meyering  <meyering@redhat.com>
12353
12354         maint.mk: remove useless semicolon and backslash
12355         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12356         semicolon and backslash.
12357
12358 2011-04-10  Bruno Haible  <bruno@clisp.org>
12359
12360         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12361         * modules/stdint-tests (Depends-on): Add wchar.
12362
12363 2011-04-10  Jim Meyering  <meyering@redhat.com>
12364
12365         maint: remove doubled words in comments, e.g., s/a a/a/
12366         * lib/strptime.c (day_of_the_week): s/the the/the/
12367         * tests/test-chown.h (test_chown): s/a a/a/
12368
12369         test-chown.h: correct a cast
12370         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12371         when the destination is a stat.st_gid.
12372
12373 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12374
12375         getaddrinfo: Fix test for sa_len member.
12376         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12377         include <sys/types.h> before <sys/socket.h>.
12378
12379 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12380
12381         maint: change "can not" to "cannot"
12382         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12383         boundaries.
12384
12385 2011-04-09  Jim Meyering  <meyering@redhat.com>
12386
12387         maint: change "a a" to "a"
12388         * tests/test-lchown.h (test_lchown): s/a a/a/
12389
12390         maint.mk: prohibit \<the the\>
12391         * top/maint.mk (sc_prohibit_the_the): New rule.
12392
12393         maint: fix "the the" in comment
12394         * lib/count-one-bits.h: s/the the/the/
12395
12396         maint: change "can not" to "cannot"
12397         But do not change the occurrences in maintain.texi or in
12398         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12399         * doc/gnulib-tool.texi: s/can not/cannot/
12400         * doc/posix-functions/accept.texi (accept): Likewise.
12401         * doc/posix-functions/socket.texi (socket): Likewise.
12402         * lib/mbrtowc.c: Likewise.
12403
12404         maint.mk: prohibit use of "can not"
12405         * top/maint.mk (sc_prohibit_can_not): New rule.
12406         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12407
12408 2011-04-09  Bruno Haible  <bruno@clisp.org>
12409
12410         careadlinkat: Guard against misuse of careadlinkatcwd.
12411         * lib/careadlinkat.c: Include <stdlib.h>.
12412         (careadlinkatcwd): Check that the fd argument is as expected.
12413
12414 2011-04-09  Bruno Haible  <bruno@clisp.org>
12415
12416         careadlinkat: Use common coding style.
12417         * lib/careadlinkat.c: Move gnulib includes after system includes.
12418
12419 2011-04-09  Bruno Haible  <bruno@clisp.org>
12420
12421         careadlinkat: Clarify specification.
12422         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12423         (careadlinkatcwd): Add comment.
12424         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12425
12426 2011-04-09  Bruno Haible  <bruno@clisp.org>
12427
12428         areadlinkat: Avoid link error on many platforms.
12429         * modules/areadlinkat (Depends-on): Add areadlink.
12430
12431 2011-04-09  Bruno Haible  <bruno@clisp.org>
12432
12433         allocator, careadlinkat: Fix double-inclusion guard.
12434         * lib/allocator.h: Fix double-inclusion guard.
12435         * lib/careadlinkat.h: Likewise.
12436
12437 2011-04-09  Bruno Haible  <bruno@clisp.org>
12438
12439         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12440         * lib/relocwrapper.c: Update dependencies hierarchy.
12441         * build-aux/install-reloc: Update list of files to be compiled.
12442         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12443         lib/allocator.[hc].
12444
12445 2011-04-08  Eric Blake  <eblake@redhat.com>
12446
12447         strftime: silence gnulib-tool warning
12448         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12449
12450 2011-04-08  Bruno Haible  <bruno@clisp.org>
12451
12452         verify: Fix syntax error with GCC 4.6 in C++ mode.
12453         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12454         (HAVE_STATIC_ASSERT): New macro.
12455         (verify_true, verify): Use 'static_assert' if it is supported and
12456         '_Static_assert' is not supported.
12457
12458 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12459
12460         allocator: New module.
12461         * modules/allocator, lib/allocator.c: New files.
12462         * lib/allocator.h (stdlib_allocator): New decl.
12463         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12464         Remove.  Do not include <stdlib.h>.
12465         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12466         * modules/careadlinkat (Files): Remove lib/allocator.h.
12467         (Depends-on): Add allocator.
12468
12469         stdlib: let modules use system malloc, realloc
12470         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12471         if !_GL_USE_STDLIB_ALLOC.
12472         (malloc, realloc): Limit this change to a smaller scope.
12473
12474         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12475         (malloc, realloc): Don't #undef; no longer needed.
12476         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12477         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12478         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12479         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12480         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12481         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12482         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12483         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12484
12485         careadlinkat: rename members to avoid problem
12486         * lib/allocator.h (struct allocator): Rename members from
12487         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12488         and realloc are #define'd.  Reported by Eric Blake in
12489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12490         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12491
12492 2011-04-08  Eric Blake  <eblake@redhat.com>
12493
12494         nonblocking: reduce dependency
12495         * tests/test-nonblocking.c: Only test sockets when in use.
12496         * modules/nonblocking-tests (Depends-on): Drop socket.
12497         (Makefile.am): Link even if sockets are not present.
12498         * modules/pipe2-tests (Makefile.am): Likewise.
12499         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12500
12501         pipe2: fix O_NONBLOCK support on mingw
12502         * modules/pipe2 (Depends-on): Add nonblocking.
12503         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12504         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12505         * tests/test-nonblocking.c (main): Likewise.
12506         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12507
12508         fcntl-h: fix O_ACCMODE on cygwin
12509         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12510         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12511
12512         pipe-filter: drop O_NONBLOCK workarounds
12513         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12514         * modules/pipe-filter-ii (Depends-on): Likewise.
12515         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12516
12517         nonblocking: provide O_NONBLOCK for mingw
12518         * modules/nonblocking (Depends-on): Add open.
12519         (configure.ac): Set new witness macro.
12520         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12521         * modules/fcntl-h (Makefile.am): Substitute it.
12522         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12523         nonblocking module is in use.
12524         * lib/nonblocking.c: Adjust portability test.
12525         * lib/open.c (open): Don't let native open see gnulib flag.
12526         * tests/test-fcntl-h.c (main): Enhance test.
12527         * tests/test-open.h (test_open): Likewise.
12528         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12529
12530         careadlinkat: fix compilation error on mingw
12531         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12532         within struct allocator.
12533
12534 2011-04-06  Eric Blake  <eblake@redhat.com>
12535
12536         binary-io: relicense under LGPLv2+
12537         * modules/binary-io (License): Relax to LGPLv2+.
12538         Requested for libvirt, and required by pipe2.
12539
12540 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12541
12542         verify: use _Static_assert if available
12543         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12544         (verify_true, verify): Use it if available.  This generates better
12545         diagnostics with GCC 4.6.0 and later.
12546
12547 2011-04-05  Bruno Haible  <bruno@clisp.org>
12548
12549         Remove leftover generated .h files after config.status changed.
12550
12551         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12552         GL_GENERATE_ALLOCA_H.
12553         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12554         GL_GENERATE_ALLOCA_H evaluates to false.
12555
12556         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12557         GL_GENERATE_ARGZ_H.
12558         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12559         evaluates to false.
12560
12561         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12562         GL_GENERATE_BYTESWAP_H.
12563         * modules/byteswap (Makefile.am): Remove byteswap.h if
12564         GL_GENERATE_BYTESWAP_H evaluates to false.
12565
12566         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12567         GL_GENERATE_ERRNO_H.
12568         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12569         evaluates to false.
12570
12571         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12572         GL_GENERATE_FLOAT_H.
12573         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12574         evaluates to false.
12575
12576         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12577         GL_GENERATE_FNMATCH_H.
12578         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12579         GL_GENERATE_FNMATCH_H evaluates to false.
12580
12581         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12582         GL_GENERATE_GLOB_H.
12583         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12584         evaluates to false.
12585
12586         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12587         automake conditional GL_GENERATE_ICONV_H.
12588         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12589         evaluates to false.
12590
12591         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12592         GL_GENERATE_NETINET_IN_H.
12593         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12594         GL_GENERATE_NETINET_IN_H evaluates to false.
12595
12596         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12597         conditional GL_GENERATE_PTHREAD_H.
12598         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12599         * modules/pthread (Makefile.am): Remove pthread.h if
12600         GL_GENERATE_PTHREAD_H evaluates to false.
12601
12602         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12603         GL_GENERATE_SCHED_H.
12604         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12605         evaluates to false.
12606
12607         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12608         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12609         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12610         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12611
12612         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12613         GL_GENERATE_STDARG_H.
12614         * modules/stdarg (Makefile.am): Remove stdarg.h if
12615         GL_GENERATE_STDARG_H evaluates to false.
12616
12617         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12618         GL_GENERATE_STDBOOL_H.
12619         * modules/stdbool (Makefile.am): Remove stdbool.h if
12620         GL_GENERATE_STDBOOL_H evaluates to false.
12621
12622         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12623         conditional GL_GENERATE_STDDEF_H.
12624         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12625         * modules/stddef (Makefile.am): Remove stddef.h if
12626         GL_GENERATE_STDDEF_H evaluates to false.
12627
12628         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12629         GL_GENERATE_STDINT_H.
12630         * modules/stdint (Makefile.am): Remove stdint.h if
12631         GL_GENERATE_STDINT_H evaluates to false.
12632
12633         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12634         GL_GENERATE_SYSEXITS_H.
12635         * modules/sysexits (Makefile.am): Remove sysexits.h if
12636         GL_GENERATE_SYSEXITS_H evaluates to false.
12637
12638         Reported by Karl Berry and Ralf Wildenhues.
12639
12640 2011-04-05  Bruno Haible  <bruno@clisp.org>
12641
12642         Ensure to rebuild generated .h files when config.status has changed.
12643         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12644         config.status.
12645         * modules/ctype (Makefile.am): Likewise.
12646         * modules/dirent (Makefile.am): Likewise.
12647         * modules/errno (Makefile.am): Likewise.
12648         * modules/fcntl-h (Makefile.am): Likewise.
12649         * modules/float (Makefile.am): Likewise.
12650         * modules/getopt-posix (Makefile.am): Likewise.
12651         * modules/glob (Makefile.am): Likewise.
12652         * modules/iconv-h (Makefile.am): Likewise.
12653         * modules/inttypes (Makefile.am): Likewise.
12654         * modules/langinfo (Makefile.am): Likewise.
12655         * modules/locale (Makefile.am): Likewise.
12656         * modules/math (Makefile.am): Likewise.
12657         * modules/netdb (Makefile.am): Likewise.
12658         * modules/netinet_in (Makefile.am): Likewise.
12659         * modules/poll-h (Makefile.am): Likewise.
12660         * modules/pthread (Makefile.am): Likewise.
12661         * modules/pty (Makefile.am): Likewise.
12662         * modules/sched (Makefile.am): Likewise.
12663         * modules/search (Makefile.am): Likewise.
12664         * modules/selinux-h (Makefile.am): Likewise.
12665         * modules/signal (Makefile.am): Likewise.
12666         * modules/spawn (Makefile.am): Likewise.
12667         * modules/stdarg (Makefile.am): Likewise.
12668         * modules/stdbool (Makefile.am): Likewise.
12669         * modules/stddef (Makefile.am): Likewise.
12670         * modules/stdint (Makefile.am): Likewise.
12671         * modules/stdio (Makefile.am): Likewise.
12672         * modules/stdlib (Makefile.am): Likewise.
12673         * modules/string (Makefile.am): Likewise.
12674         * modules/strings (Makefile.am): Likewise.
12675         * modules/sys_file (Makefile.am): Likewise.
12676         * modules/sys_ioctl (Makefile.am): Likewise.
12677         * modules/sys_select (Makefile.am): Likewise.
12678         * modules/sys_socket (Makefile.am): Likewise.
12679         * modules/sys_stat (Makefile.am): Likewise.
12680         * modules/sys_time (Makefile.am): Likewise.
12681         * modules/sys_times (Makefile.am): Likewise.
12682         * modules/sys_utsname (Makefile.am): Likewise.
12683         * modules/sys_wait (Makefile.am): Likewise.
12684         * modules/sysexits (Makefile.am): Likewise.
12685         * modules/termios (Makefile.am): Likewise.
12686         * modules/time (Makefile.am): Likewise.
12687         * modules/unistd (Makefile.am): Likewise.
12688         * modules/wchar (Makefile.am): Likewise.
12689         * modules/wctype-h (Makefile.am): Likewise.
12690         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12691
12692 2011-04-05  Bruno Haible  <bruno@clisp.org>
12693
12694         pipe2: Relicense under LGPLv2+.
12695         * modules/pipe2 (License): Change to LGPLv2+.
12696         Requested by Eric Blake, for libvirt.
12697
12698 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12699
12700         bootstrap: compute gnulib_extra_files after updating build_aux
12701         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12702         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12703
12704 2011-04-05  Eric Blake  <eblake@redhat.com>
12705
12706         bootstrap: preserve git whitelist item sorting
12707         * build-aux/bootstrap (sort_patterns): New function.
12708         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12709
12710 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12711
12712         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12713         sc_space_tab check.
12714
12715 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12716
12717         areadlink, areadlinkat: rewrite in terms of careadlinkat
12718         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12719         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12720         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12721         (malloc, realloc): Remove #undefs.
12722         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12723         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12724         readlink, ssize_t, stdint, unistd.
12725         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12726         areadlink, stdint.
12727
12728         careadlinkat: new module
12729         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12730         * modules/careadlinkat: New files, written by me with
12731         a review and feedback from Ben Pfaff in
12732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12733
12734 2011-04-01  Bruno Haible  <bruno@clisp.org>
12735
12736         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12737         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12738         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12739         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12740         Reported by Bruce Korb <bruce.korb@gmail.com>.
12741
12742 2011-04-01  Bruno Haible  <bruno@clisp.org>
12743
12744         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12745         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12746         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12747         * modules/wcpcpy (Depends-on): Add extensions.
12748         * modules/wcpncpy (Depends-on): Likewise.
12749         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12750         systems.
12751         * doc/posix-functions/wcpncpy.texi: Likewise.
12752         * doc/posix-functions/wcwidth.texi: Likewise.
12753
12754 2011-03-31  Eric Blake  <eblake@redhat.com>
12755
12756         nonblocking: fix mingw test failures
12757         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12758         non-blocking flag on regular file.
12759         (get_nonblocking_flag): Set errno on invalid fd.
12760         * tests/test-nonblocking.c (main): Avoid test failure on
12761         directories if fchdir is not active.
12762         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12763
12764 2011-03-31  Bruno Haible  <bruno@clisp.org>
12765
12766         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12767         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12768         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12769         Reported by Simon Josefsson <simon@josefsson.org>.
12770
12771 2011-03-31  Bruno Haible  <bruno@clisp.org>
12772         and Eric Blake  <eblake@redhat.com>
12773
12774         nonblocking: new module
12775         * modules/nonblocking: New module.
12776         * modules/nonblocking-tests: Likewise.
12777         * lib/nonblocking.h: New file.
12778         * lib/nonblocking.c: Likewise.
12779         * tests/test-nonblocking.c: New test.
12780         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12781
12782 2011-03-30  Bruno Haible  <bruno@clisp.org>
12783
12784         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12785         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12786         instead of 'printf' format for GCC >= 4.4.
12787         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12788         (fprintf, printf, vfprintf, vprintf): Declare with
12789         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12790         the system's vfprintf() function.
12791         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12792
12793 2011-03-30  Eric Blake  <eblake@redhat.com>
12794
12795         passfd: fix scoping bug
12796         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12797         before sendmsg/recvmsg.
12798
12799         passfd: standardize coding conventions
12800         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12801         can be learned at compile time.
12802         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12803         ifdefs.
12804         (sendfd, recvfd): Follow gnulib code conventions.
12805
12806         passfd: fix incorrect sendmsg arguments
12807         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12808         incorrect msg_controllen value.
12809         * modules/passfd-tests (Depends-on): Check for alarm.
12810         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12811         Reported by Bastien ROUCARIES.
12812
12813 2011-03-30  Bruno Haible  <bruno@clisp.org>
12814
12815         c-strcasestr: Relicense under LGPLv2+.
12816         * modules/c-strcasestr (License): Change to LGPLv2+.
12817         Requested by Eric Blake, for libvirt.
12818
12819 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12820
12821         * users.txt: Add libidn2.  Fix libtasn1 link.
12822
12823 2011-03-30  Jim Meyering  <meyering@redhat.com>
12824
12825         tests: readlink* ("",... fails with EINVAL on newer kernels
12826         readlink and readlinkat have typically failed with ENOENT for
12827         the invalid, empty file name,  "".  However, with the advent
12828         of linux-2.6.39, they fail with EINVAL.
12829         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12830         when operating on the empty file name.
12831         * tests/test-readlink.h (test_readlink): Likewise.
12832
12833 2011-03-29  Bruno Haible  <bruno@clisp.org>
12834
12835         Relicense some modules under LGPLv2+, for libidn2.
12836         * modules/array-mergesort (License): Change to LGPLv2+.
12837         * modules/c-strcaseeq (License): Likewise.
12838         * modules/striconveh (License): Likewise.
12839         * modules/striconveha (License): Likewise.
12840         * modules/uniconv/base (License): Likewise.
12841         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12842         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12843         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12844         * modules/unictype/base (License): Likewise.
12845         * modules/unictype/bidiclass-of (License): Likewise.
12846         * modules/unictype/category-M (License): Likewise.
12847         * modules/unictype/category-none (License): Likewise.
12848         * modules/unictype/category-of (License): Likewise.
12849         * modules/unictype/category-test (License): Likewise.
12850         * modules/unictype/category-test-withtable (License): Likewise.
12851         * modules/unictype/combining-class (License): Likewise.
12852         * modules/unictype/joiningtype-of (License): Likewise.
12853         * modules/unictype/scripts (License): Likewise.
12854         * modules/uninorm/base (License): Likewise.
12855         * modules/uninorm/canonical-decomposition (License): Likewise.
12856         * modules/uninorm/composition (License): Likewise.
12857         * modules/uninorm/decompose-internal (License): Likewise.
12858         * modules/uninorm/decomposition-table (License): Likewise.
12859         * modules/uninorm/nfc (License): Likewise.
12860         * modules/uninorm/nfd (License): Likewise.
12861         * modules/uninorm/u32-normalize (License): Likewise.
12862         * modules/unistr/base (License): Likewise.
12863         * modules/unistr/u32-cpy (License): Likewise.
12864         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12865         * modules/unistr/u32-to-u8 (License): Likewise.
12866         * modules/unistr/u32-uctomb (License): Likewise.
12867         * modules/unistr/u8-check (License): Likewise.
12868         * modules/unistr/u8-mblen (License): Likewise.
12869         * modules/unistr/u8-mbtouc (License): Likewise.
12870         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12871         * modules/unistr/u8-mbtoucr (License): Likewise.
12872         * modules/unistr/u8-prev (License): Likewise.
12873         * modules/unistr/u8-strlen (License): Likewise.
12874         * modules/unistr/u8-to-u32 (License): Likewise.
12875         * modules/unistr/u8-uctomb (License): Likewise.
12876         * modules/unitypes (License): Likewise.
12877         Requested by Simon Josefsson.
12878
12879 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12880
12881         lib-symbol-visibility: Add a notice.
12882         * modules/lib-symbol-visibility (Notice): New field.
12883
12884 2011-03-29  Bruno Haible  <bruno@clisp.org>
12885
12886         getaddrinfo: Doc fix.
12887         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12888         section "fixed in Gnulib".
12889
12890 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12891
12892         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12893         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12894
12895 2011-03-26  Bruno Haible  <bruno@clisp.org>
12896
12897         unictype/property-byname: Reduce the number of load-time relocations.
12898         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12899         (UC_PROPERTY_INDEX_*): New enumeration values.
12900         (uc_property_byname): Convert an index from the lookup table to an
12901         uc_property_t.
12902         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12903         values.
12904
12905 2011-03-26  Bruno Haible  <bruno@clisp.org>
12906
12907         unictype/property-byname: Allow omitted word separators and aliases.
12908         * lib/unictype/pr_byname.gperf: Add property names without word
12909         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12910         for 'space'.
12911
12912 2011-03-26  Bruno Haible  <bruno@clisp.org>
12913
12914         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12915         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12916         also hyphens to space.
12917         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12918         without spaces.
12919         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12920
12921 2011-03-26  Bruno Haible  <bruno@clisp.org>
12922
12923         unictype/joiningtype-byname: Recognize long names as well.
12924         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12925         a long name.
12926         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12927         unictype/joiningtype_byname.h.
12928         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12929         * lib/unictype/joiningtype_byname.gperf: New file.
12930         * modules/unictype/joiningtype-byname (Files): Add
12931         lib/unictype/joiningtype_byname.gperf.
12932         (Depends-on): Add gperf.
12933         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12934         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12935         long names.
12936
12937         Tests for module 'unictype/joiningtype-longname'.
12938         * modules/unictype/joiningtype-longname-tests: New file.
12939         * tests/unictype/test-joiningtype_longname.c: New file.
12940
12941         New module 'unictype/joiningtype-longname'.
12942         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12943         * lib/unictype/joiningtype_longname.c: New file.
12944         * modules/unictype/joiningtype-longname: New file.
12945         * modules/unictype/joiningtype-all (Depends-on): Add
12946         unictype/joiningtype-longname.
12947
12948 2011-03-26  Bruno Haible  <bruno@clisp.org>
12949
12950         unictype/bidiclass-byname: Recognize long names as well.
12951         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12952         name.
12953         * lib/unictype/bidi_byname.c: Include <string.h>,
12954         unictype/bidi_byname.h.
12955         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12956         * lib/unictype/bidi_byname.gperf: New file.
12957         * modules/unictype/bidiclass-byname (Files): Add
12958         lib/unictype/bidi_byname.gperf.
12959         (Depends-on): Add gperf.
12960         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12961         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12962         long names.
12963
12964         Tests for module 'unictype/bidiclass-longname'.
12965         * modules/unictype/bidiclass-longname-tests: New file.
12966         * tests/unictype/test-bidi_longname.c: New file.
12967
12968         New module 'unictype/bidiclass-longname'.
12969         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12970         * lib/unictype/bidi_longname.c: New file.
12971         * modules/unictype/bidiclass-longname: New file.
12972         * modules/unictype/bidiclass-all (Depends-on): Add
12973         unictype/bidiclass-longname.
12974
12975 2011-03-26  Bruno Haible  <bruno@clisp.org>
12976
12977         unictype/bidi*: Rename modules.
12978         * modules/unictype/bidiclass-all: Renamed from
12979         modules/unictype/bidicategory-all.
12980         * modules/unictype/bidiclass-name: Renamed from
12981         modules/unictype/bidiclass-name.
12982         (Description): Update.
12983         * modules/unictype/bidiclass-name-tests: Renamed from
12984         modules/unictype/bidicategory-name-tests.
12985         * modules/unictype/bidiclass-byname: Renamed from
12986         modules/unictype/bidicategory-byname.
12987         (Description): Update.
12988         * modules/unictype/bidiclass-byname-tests: Renamed from
12989         modules/unictype/bidicategory-byname-tests.
12990         * modules/unictype/bidiclass-of: Renamed from
12991         modules/unictype/bidicategory-of.
12992         (Description): Update.
12993         * modules/unictype/bidiclass-of-tests: Renamed from
12994         modules/unictype/bidicategory-of-tests.
12995         * modules/unictype/bidiclass-test: Renamed from
12996         modules/unictype/bidicategory-test.
12997         (Description): Update.
12998         * modules/unictype/bidiclass-test-tests: Renamed from
12999         modules/unictype/bidicategory-test-tests.
13000         * modules/unictype/bidicategory-all: New file, a simple redirection.
13001         * modules/unictype/bidicategory-name: Likewise.
13002         * modules/unictype/bidicategory-byname: Likewise.
13003         * modules/unictype/bidicategory-of: Likewise.
13004         * modules/unictype/bidicategory-test: Likewise.
13005         * modules/unictype/property-bidi-* (Dependencies): Update.
13006         * lib/unictype/bidi_*.c: Update comment.
13007
13008 2011-03-26  Bruno Haible  <bruno@clisp.org>
13009
13010         unictype/bidi*: Rename functions, part 2.
13011         * modules/unictype/bidicategory-name (configure.ac): Update required
13012         libunistring version.
13013         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13014
13015 2011-03-25  Bruno Haible  <bruno@clisp.org>
13016
13017         New module 'unictype/combining-class-all'.
13018         * modules/unictype/combining-class-all: New file.
13019
13020         Tests for module 'unictype/combining-class-byname'.
13021         * modules/unictype/combining-class-byname-tests: New file.
13022         * tests/unictype/test-combiningclass_byname.c: New file.
13023
13024         New module 'unictype/combining-class-byname'.
13025         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13026         * lib/unictype/combiningclass_byname.c: New file.
13027         * lib/unictype/combiningclass_byname.gperf: New file.
13028         * modules/unictype/combining-class-byname: New file.
13029
13030         Tests for module 'unictype/combining-class-longname'.
13031         * modules/unictype/combining-class-longname-tests: New file.
13032         * tests/unictype/test-combiningclass_longname.c: New file.
13033
13034         New module 'unictype/combining-class-longname'.
13035         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13036         * lib/unictype/combiningclass_longname.c: New file.
13037         * modules/unictype/combining-class-longname: New file.
13038
13039         Tests for module 'unictype/combining-class-name'.
13040         * modules/unictype/combining-class-name-tests: New file.
13041         * tests/unictype/test-combiningclass_name.c: New file.
13042
13043         New module 'unictype/combining-class-name'.
13044         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13045         * lib/unictype/combiningclass_name.c: New file.
13046         * modules/unictype/combining-class-name: New file.
13047
13048 2011-03-25  Bruno Haible  <bruno@clisp.org>
13049
13050         unictype/combining-class: Rename source files.
13051         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13052         of unictype/combining.h.
13053         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13054         Update.
13055         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13056         * modules/unictype/combining-class (Description): Fix.
13057         (Files, Makefile.am): Update.
13058         * tests/unictype/test-combiningclass.c: Renamed from
13059         tests/unictype/test-combining.c.
13060         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13061
13062 2011-03-25  Bruno Haible  <bruno@clisp.org>
13063
13064         unictype: Update list of canonical combining classes.
13065         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13066
13067 2011-03-25  Bruno Haible  <bruno@clisp.org>
13068
13069         unictype/category-byname: Recognize long names as well.
13070         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13071         a long name.
13072         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13073         unictype/categ_byname.h.
13074         (UC_CATEGORY_INDEX_*): New enumeration values.
13075         (uc_general_category_byname): Use uc_general_category_lookup and
13076         convert from index to value.
13077         * lib/unictype/categ_byname.gperf: New file.
13078         * modules/unictype/category-byname (Files): Add
13079         lib/unictype/categ_byname.gperf.
13080         (Depends-on): Add gperf.
13081         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13082         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13083         long names.
13084
13085         Tests for module 'unictype/category-longname'.
13086         * modules/unictype/category-longname-tests: New file.
13087         * tests/unictype/test-categ_longname.c: New file.
13088
13089         New module 'unictype/category-longname'.
13090         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13091         * lib/unictype/categ_longname.c: New file.
13092         * modules/unictype/category-longname: New file.
13093         * modules/unictype/category-all (Depends-on): Add it.
13094
13095 2011-03-25  Bruno Haible  <bruno@clisp.org>
13096
13097         Tests for module 'unictype/category-LC'.
13098         * modules/unictype/category-LC-tests: New file.
13099         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13100
13101         New module 'unictype/category-LC'.
13102         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13103         (UC_CATEGORY_LC): New declaration.
13104         (UC_CASED_LETTER): New macro.
13105         * lib/gen-uni-tables.c (is_category_LC): New function.
13106         (output_categories): Also handle category LC.
13107         (UC_CATEGORY_MASK_LC): New enumeration value.
13108         (general_category_byname): Also handle category LC.
13109         * lib/unictype/categ_LC.c: New file.
13110         * lib/unictype/categ_LC.h: New file, automatically generated.
13111         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13112         category LC.
13113         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13114         * modules/unictype/category-LC: New file.
13115         * modules/unictype/category-byname (Depends-on): Add
13116         unictype/category-LC.
13117         * modules/unictype/category-all (Depends-on): Likewise.
13118
13119 2011-03-25  Eric Blake  <eblake@redhat.com>
13120
13121         xmalloc: revert yesterday's regression
13122         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13123         realloc's underlying behavior (allowing allocation of zero-size
13124         objects, especially if malloc-gnu is also in use).
13125
13126 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13127
13128         maint.mk: add missing version to VC-tag
13129         * top/maint.mk: git tag was missing actual tag name; add it.
13130
13131         valgrind: do leak checking, and exit with code 1 on error (not 0)
13132         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13133         to VALGRIND.
13134
13135 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13136
13137         posix-modules: say what it does.
13138         * posix-modules: Add a line to the --help output saying what it does.
13139
13140 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13141
13142         xmalloc: Do not leak if underlying realloc is C99 compatible.
13143         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13144         This avoids a leak on C99-based systems.  See
13145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13146
13147 2011-03-24  Eric Blake  <eblake@redhat.com>
13148
13149         realloc: document portability problem
13150         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13151         passing 0 size to realloc.
13152
13153 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13154
13155         doc: update users.txt
13156         * users.txt: Add cvsps, tmpwatch
13157
13158 2011-03-23  Matt Rice  <ratmice@gmail.com>
13159
13160         doc: update users.txt
13161         * users.txt: Add gdb.
13162
13163 2011-03-23  Jim Meyering  <meyering@redhat.com>
13164
13165         doc: update users.txt
13166         Looking through matches up to the following URL (there are still
13167         several more pages), I found several projects that use gnulib:
13168         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13169         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13170         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13171
13172 2011-03-22  Bruno Haible  <bruno@clisp.org>
13173
13174         unictype/bidi*: Rename functions.
13175         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13176         uc_bidi_class, uc_is_bidi_class): New declarations.
13177         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13178         uc_bidi_category_byname.
13179         (uc_bidi_category_byname): New function.
13180         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13181         u_bidi_category_name.
13182         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13183         (uc_bidi_category_name): New function.
13184         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13185         uc_bidi_category.
13186         (uc_bidi_category): New function.
13187         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13188         uc_is_bidi_category. Invoke uc_bidi_class.
13189         (uc_is_bidi_category): New function.
13190         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13191         instead of uc_bidi_category_byname.
13192         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13193         instead of uc_bidi_category_name.
13194         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13195         uc_bidi_category.
13196         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13197         instead of uc_is_bidi_category.
13198
13199 2011-03-21  Bruno Haible  <bruno@clisp.org>
13200
13201         New module 'unictype/joininggroup-all'.
13202         * modules/unictype/joininggroup-all: New file.
13203
13204         Tests for module 'unictype/joininggroup-of'.
13205         * modules/unictype/joininggroup-of-tests: New file.
13206         * tests/unictype/test-joininggroup_of.c: New file.
13207         * tests/unictype/test-joininggroup_of.h: New file, automatically
13208         generated by gen-uni-tables.
13209
13210         New module 'unictype/joininggroup-of'.
13211         * modules/unictype/joininggroup-of: New file.
13212         * lib/unictype/joininggroup_of.c: New file.
13213         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13214         gen-uni-tables.
13215
13216         Tests for module 'unictype/joininggroup-byname'.
13217         * modules/unictype/joininggroup-byname-tests: New file.
13218         * tests/unictype/test-joininggroup_byname.c: New file.
13219
13220         New module 'unictype/joininggroup-byname'.
13221         * modules/unictype/joininggroup-byname: New file.
13222         * lib/unictype/joininggroup_byname.c: New file.
13223         * lib/unictype/joininggroup_byname.gperf: New file.
13224
13225         Tests for module 'unictype/joininggroup-name'.
13226         * modules/unictype/joininggroup-name-tests: New file.
13227         * tests/unictype/test-joininggroup_name.c: New file.
13228
13229         New module 'unictype/joininggroup-name'.
13230         * modules/unictype/joininggroup-name: New file.
13231         * lib/unictype/joininggroup_name.c: New file.
13232         * lib/unictype/joininggroup_name.h: New file.
13233
13234         New module 'unictype/joiningtype-all'.
13235         * modules/unictype/joiningtype-all: New file.
13236
13237         Tests for module 'unictype/joiningtype-of'.
13238         * modules/unictype/joiningtype-of-tests: New file.
13239         * tests/unictype/test-joiningtype_of.c: New file.
13240         * tests/unictype/test-joiningtype_of.h: New file, automatically
13241         generated by gen-uni-tables.
13242
13243         New module 'unictype/joiningtype-of'.
13244         * modules/unictype/joiningtype-of: New file.
13245         * lib/unictype/joiningtype_of.c: New file.
13246         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13247         gen-uni-tables.
13248
13249         Tests for module 'unictype/joiningtype-byname'.
13250         * modules/unictype/joiningtype-byname-tests: New file.
13251         * tests/unictype/test-joiningtype_byname.c: New file.
13252
13253         New module 'unictype/joiningtype-byname'.
13254         * modules/unictype/joiningtype-byname: New file.
13255         * lib/unictype/joiningtype_byname.c: New file.
13256
13257         Tests for module 'unictype/joiningtype-name'.
13258         * modules/unictype/joiningtype-name-tests: New file.
13259         * tests/unictype/test-joiningtype_name.c: New file.
13260
13261         New module 'unictype/joiningtype-name'.
13262         * modules/unictype/joiningtype-name: New file.
13263         * lib/unictype/joiningtype_name.c: New file.
13264
13265         unictype: Add support for Arabic shaping properties.
13266         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13267         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13268         declarations.
13269         (UC_JOINING_GROUP_*): New enumeration values.
13270         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13271         declarations.
13272         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13273         (unicode_joining_type): New variable.
13274         (UC_JOINING_GROUP_*): New enumeration values.
13275         (unicode_joining_group): New variable.
13276         (fill_arabicshaping, joining_type_as_c_identifier,
13277         output_joining_type_test, output_joining_type,
13278         joining_group_as_c_identifier, output_joining_group_test,
13279         output_joining_group): New functions.
13280         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13281         fill_arabicshaping and output_joining_type_test, output_joining_type,
13282         output_joining_group_test, output_joining_group.
13283         Reported by Simon Josefsson.
13284
13285 2011-03-21  Jim Meyering  <meyering@redhat.com>
13286
13287         strftime: fix a bug in yesterday's change
13288         * lib/strftime.c (add): Accommodate width's initial value of -1.
13289         Otherwise, nstrftime would copy uninitialized data into
13290         the result buffer.
13291
13292 2011-03-21  Jim Meyering  <meyering@redhat.com>
13293
13294         tests: add strftime-tests module
13295         * tests/test-strftime.c: New file.
13296         * modules/strftime-tests: New module.
13297
13298 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13299
13300         strftime: don't assume a byte count fits in 'int'
13301         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13302         found this problem by static analysis, using gcc -Wstrict-overflow
13303         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13304         on an integer overflow having undefined behavior, but it turns out
13305         that the argument is a size, which might not fit in 'int' anyway,
13306
13307 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13308
13309         stdio: don't require ignore_value around fwrite
13310
13311         This patch works around libc bug 11959
13312         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13313         Without this patch, applications must often write
13314         ignore_value (fwrite (...)) even though the ignore_value is
13315         not helpful here.  It's common to write many objects, using
13316         fwrite/printf/etc., and then use ferror to detect output error.
13317
13318         I considered making this patch optional, but decided against it,
13319         because libc is obviously being inconsistent here: there is no
13320         reason libc should insist that user code must inspect fwrite
13321         return's value without also insisting that it inspect printf's,
13322         putchar's, etc.  If user code wants to have a strict style where
13323         all these functions' values are checked (so that ferror need not
13324         be checked), we could add support for that style in a new gnulib
13325         module, but in the meantime it's better to be consistent and to
13326         support common usage.
13327
13328         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13329         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13330         that we are compiling in checking mode, and if not C++, and
13331         if not already wrapping fwrite for some other reason.
13332         (fwrite): #define to rpl_fwrite if the latter is defined.
13333
13334 2011-03-20  Bruno Haible  <bruno@clisp.org>
13335
13336         verror: Fix compilation error introduced on 2011-02-13.
13337         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13338         instead of __attribute__.
13339         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13340
13341 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13342             Bruno Haible  <bruno@clisp.org>
13343
13344         socklen: do not depend on sys_socket
13345         While trying to modify Emacs to use gnulib's socklen module,
13346         I discovered a circular dependency: socklen depends on sys_socket
13347         and vice versa.  Emacs can use socklen, but it does not need
13348         sys_socket because it has its own substitute for sys/socket.h.
13349         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13350         gl_TYPE_SOCKLEN_T.
13351         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13352         gl_PREREQ_SYS_H_SOCKET.
13353         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13354         gl_PREREQ_SYS_H_SOCKET.
13355         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13356         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13357         * modules/socklen (Depends-on): Do not depend on sys_socket.
13358         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13359
13360 2011-03-20  Jim Meyering  <meyering@redhat.com>
13361
13362         maint.mk: sort file names *after* new transformation
13363         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13364         prefix would have led to an unwarranted failure in GNU parted.
13365         Sort after that transformation.
13366
13367 2011-03-19  Jim Meyering  <meyering@redhat.com>
13368
13369         maint.mk: fix po-file syntax-check rule
13370         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13371         Patch by Bruno Haible.
13372
13373 2011-03-19  Bruno Haible  <bruno@clisp.org>
13374
13375         socklen: Update comment.
13376         * m4/socklen.m4: Update comment about platforms.
13377
13378 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13379             Bruno Haible  <bruno@clisp.org>
13380
13381         inet_ntop, inet_pton: Simplify.
13382         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13383         documented to provide socklen_t and we already depend on sys_socket.
13384         * modules/inet_pton (Depends-on): Likewise.
13385         * lib/arpa_inet.in.h: Adjust comment.
13386
13387 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13388             Bruno Haible  <bruno@clisp.org>
13389
13390         netdb: Simplify.
13391         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13392         documented to provide socklen_t and we already depend on sys_socket.
13393         * lib/netdb.in.h: Adjust comment.
13394
13395 2011-03-19  Bruno Haible  <bruno@clisp.org>
13396
13397         sys_socket, netdb: Document problem with socklen_t.
13398         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13399         platforms.
13400         * doc/posix-headers/netdb.texi: Likewise.
13401
13402 2011-03-18  Eric Blake  <eblake@redhat.com>
13403
13404         maint.mk: let po check work in VPATH build
13405         * top/maint.mk (po_file): Allow cfg.mk override.
13406         (sc_po_check): Allow VPATH use.
13407         Reported by Jiri Denemark.
13408
13409 2011-03-16  Jim Meyering  <meyering@redhat.com>
13410
13411         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13412         Before, you would have had to create one .x-sc_ file per rule in order
13413         to exempt offending files.  Now, you may instead use a Make variable --
13414         usually defined in cfg.mk -- whose name identifies the affected rule.
13415         * top/maint.mk (_sc_excl): Define.
13416         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13417         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13418
13419 2011-03-13  Bruno Haible  <bruno@clisp.org>
13420
13421         ignore-value tests: Avoid warnings.
13422         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13423         empty for gcc < 3.4.
13424
13425 2011-03-13  Bruno Haible  <bruno@clisp.org>
13426
13427         passfd: Fix link error on Solaris.
13428         * modules/passfd (Description): Correct.
13429         (Depends-on): Add socketlib.
13430         (Link): New section.
13431         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13432
13433 2011-03-13  Bruno Haible  <bruno@clisp.org>
13434
13435         passfd: Fix link error on AIX 5.2.
13436         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13437
13438 2011-03-13  Bruno Haible  <bruno@clisp.org>
13439
13440         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13441         * lib/sys_socket.in.h: Include <stddef.h>.
13442         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13443         CMSG_FIRSTHDR. Remove unused variable.
13444
13445 2011-03-13  Bruno Haible  <bruno@clisp.org>
13446
13447         passfd: Fix compilation error on OpenBSD.
13448         * lib/passfd.c: Include <sys/uio.h>.
13449
13450 2011-03-13  Bruno Haible  <bruno@clisp.org>
13451
13452         passfd test: Fix warnings.
13453         * tests/test-passfd.c: Include <sys/wait.h>.
13454         (main): Fix typo.
13455
13456 2011-03-13  Bruno Haible  <bruno@clisp.org>
13457
13458         passfd module, part 4, tweaks.
13459         * tests/test-passfd.c: Reorder includes.
13460         (main): Fix perror and printf calls.
13461
13462 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13463
13464         passfd module, part 4.
13465         * modules/passfd-tests: New file.
13466         * tests/test-passfd.c: New file.
13467
13468 2011-03-13  Jim Meyering  <meyering@redhat.com>
13469
13470         Makefile: rely on GNU make; derive syntax-check rule names
13471         Rather than requiring that each sc_ rule be listed as a dependent
13472         of "check", use features of GNU make to derive the list.
13473         * Makefile (syntax-check-rules): Define.
13474         (check): Depend on the new variable, not the hard-coded list.
13475
13476 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13477             Bruno Haible  <bruno@clisp.org>
13478
13479         passfd module, part 3.
13480         * lib/passfd.h (recvfd): Add a flags argument.
13481         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13482         (recvfd): Add a flags argument.
13483         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13484         exists.
13485         * modules/passfd (Depends-on): Add cloexec.
13486         Suggested by Eric Blake.
13487
13488 2011-03-13  Bruno Haible  <bruno@clisp.org>
13489
13490         passfd module, part 2, tweaks.
13491         * modules/passfd (Files): Reorder.
13492         (Depends-on): Remove errno.
13493         (Include): Remove <sys/socket.h>, <sys/un.h>.
13494         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13495         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13496         specification header. Include <sys/socket.h> always. Don't include
13497         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13498         (sendfd): Clarify that it sets errno when it fails.
13499         (recvfd): Fix specification.
13500
13501 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13502
13503         passfd module, part 2.
13504         * modules/passfd: New file.
13505         * lib/passfd.h: New file.
13506         * lib/passfd.c: New file.
13507
13508 2011-03-12  Bruno Haible  <bruno@clisp.org>
13509
13510         wcswidth, mbswidth: Avoid integer overflow.
13511         * lib/wcswidth.c: Include <limits.h>.
13512         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13513         * lib/mbswidth.c: Include <limits.h>.
13514         (mbsnwidth): Avoid 'int' overflow.
13515         Reported by Jim Meyering.
13516
13517 2011-03-12  Bruno Haible  <bruno@clisp.org>
13518
13519         futimens, utimensat: Avoid endless recursion on Solaris 10.
13520         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13521         Solaris.
13522         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13523         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13524
13525 2011-03-11  Jim Meyering  <meyering@redhat.com>
13526
13527         maint.mk: relax a regexp to accommodate other formatting styles
13528         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13529         between "ngettext" and the following "(".
13530
13531 2011-03-11  Pádraig Brady <P@draigBrady.com>
13532
13533         maint.mk: suppress a false positive warning
13534         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13535         diagnostics are marked with ngettext.
13536
13537 2011-03-10  Eric Blake  <eblake@redhat.com>
13538
13539         wchar: add explicit dependencies, for Tru64
13540         * modules/mbmemcasecoll (Depends-on): Add wchar.
13541         * modules/mbtowc (Depends-on): Likewise.
13542         * modules/vasnprintf (Depends-on): Likewise.
13543         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13544         * modules/wctomb (Depends-on): Likewise.
13545         Reported by Peter O'Gorman.
13546
13547 2011-03-08  Bruno Haible  <bruno@clisp.org>
13548
13549         passfd module, part 1, tweaks.
13550         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13551         Improve indentation. Improve AC_MSG_CHECKING messages.
13552         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13553         gl_SOCKET_FAMILIES.
13554
13555 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13556
13557         passfd module, part 1.
13558         * m4/afunix.m4: New file.
13559         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13560         sockets.
13561
13562 2011-03-08  Bruno Haible  <bruno@clisp.org>
13563
13564         regex-quote: New API.
13565         * lib/regex-quote.h: Include <stdbool.h>.
13566         (struct regex_quote_spec): New type.
13567         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13568         New declarations.
13569         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13570         'const struct regex_quote_spec *' argument.
13571         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13572         (pcre_special): New constant.
13573         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13574         New functions.
13575         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13576         'const struct regex_quote_spec *' argument.
13577         * modules/regex-quote (Depends-on): Add stdbool.
13578         * tests/test-regex-quote.c (check): Update for new API. Add test for
13579         anchored results.
13580         * NEWS: Mention the API change.
13581         Reported by Reuben Thomas and Eric Blake.
13582
13583 2011-03-06  Bruno Haible  <bruno@clisp.org>
13584
13585         regex-quote: Fix creation of POSIX extended regular expressions.
13586         * lib/regex-quote.c (ere_special): Add grouping and alternation
13587         operators.
13588
13589 2011-03-05  Bruno Haible  <bruno@clisp.org>
13590
13591         doc: Improve doc regarding autopoint vs. gnulib.
13592         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13593         disable autopoint while running autoreconf.
13594         Suggested by Ralf Wildenhues.
13595
13596 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13597
13598         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13599         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13600
13601 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13602
13603         parse-duration: remove xalloc.h dependency
13604         * lib/parse-duration.c (parse_period): handle NULL return from
13605         strdup instead of calling xstrdup().
13606         * modules/parse-duration: remove "xalloc" dependency
13607
13608 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13609
13610         bootstrap: honor m4_base when running aclocal
13611         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13612
13613 2011-03-02  Jim Meyering  <meyering@redhat.com>
13614
13615         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13616         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13617         on request from Matt Booth.
13618
13619 2011-03-01  Eric Blake  <eblake@redhat.com>
13620
13621         test-link: work on Hurd
13622         * tests/test-link.h (test_link): Hurd rejects linking directories
13623         with EISDIR instead of the POSIX-mandated EPERM.
13624
13625 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13626
13627         stdio: simplify by moving files to printf-posix, sigpipe
13628         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13629         since this symbol is needed only if printf is replaced.
13630         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13631         Require gl_ASM_SYMBOL_PREFIX.
13632         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13633         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13634         (Depends-on): Add 'raise'.
13635         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13636         * modules/stdio (Files): Remove lib/stdio-write.c,
13637         m4/asm-underscore.m4.
13638         (Depends-on): Remove 'raise'.
13639
13640         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13641         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13642         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13643         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13644
13645 2011-02-28  Bruno Haible  <bruno@clisp.org>
13646
13647         localcharset: Assume ANSI C behaviour of free().
13648         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13649         calling free().
13650         Suggested by Simon Josefsson <simon@josefsson.org>.
13651
13652 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13653             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13654             Bruno Haible  <bruno@clisp.org>  (tiny change)
13655
13656         On Cygwin, use /proc file system instead of win32 API.
13657         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13658         Win32 file names.
13659         (DllMain): Simplify by removing Cygwin specific code.
13660         (find_shared_library_fullname): Use Linux specific implementation also
13661         for Cygwin.
13662         (get_shared_library_fullname): Update accordingly.
13663         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13664         Win32 file names.
13665         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13666         Cygwin specific code.
13667
13668 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13669             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13670
13671         Fix OpenMP flag detection for various Fortran compilers.
13672         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13673         OpenMP-conditional compilation construct, to force compile
13674         failure with missing OpenMP flag.
13675         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13676
13677 2011-02-25  Eric Blake  <eblake@redhat.com>
13678
13679         strstr: expand test coverage
13680         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13681         compilation.
13682         * tests/test-memmem.c (main): Duplicate tests.
13683         * tests/test-strcasestr.c (main): Likewise.
13684         * tests/test-c-strcasestr.c (main): Likewise.
13685
13686 2011-02-25  Jim Meyering  <meyering@redhat.com>
13687
13688         maint.mk: detect missing-NL-at-EOF, too
13689         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13690         it also detects when a file lacks a newline at EOF.
13691         (require_exactly_one_NL_at_EOF_): Renamed from
13692         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13693         since people may well have .x-sc_... file names tied to the
13694         existing name.  Suggested by Eric Blake.
13695
13696 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13697
13698         dirname: move m4/dos.m4 functionality into lib/dosname.h
13699
13700         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13701         extracts symbols from it, puts them into config.h; but it's much
13702         easier to use the symbols directly.  filename.h already does this,
13703         but it disagrees with dos.m4 in some respects.  This patch
13704         introduces a different include file dosname.h that packages up
13705         dos.m4, and then later we can work on merging filename.h and
13706         dosname.h.  Applications that need only the easy-to-configure
13707         symbols should consider including dosname.h rather than dirname.h.
13708         * NEWS: Mention incompatible changes.
13709         * m4/dos.m4: Remove.
13710         * lib/dosname.h, modules/dosname: New files.
13711         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13712         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13713         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13714         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13715         Include dosname.h, not dirname.h.
13716         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13717         Include dosname.h, for definitions of symbols like ISSLASH
13718         that used to be in config.h.
13719         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13720         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13721         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13722         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13723         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13724         * modules/rmdir (Files): Likewise.
13725         * modules/stat (Files): Likewise.
13726         * modules/unlink (Files): Likewise.
13727         * modules/dirname-lgpl (Depends-on): Add dosname.
13728         * modules/lstat (Depends-on): Likewise.
13729         * modules/openat (Depends-on): Likewise.
13730         * modules/rmdir (Depends-on): Likewise.
13731         * modules/savewd (Depends-on): Likewise.
13732         * modules/stat (Depends-on): Likewise.
13733         * modules/unlink (Depends-on): Likewise.
13734         * modules/openat (Depends-on): Remove dirname-lgpl.
13735         * modules/savewd (Depends-on): Likewise.
13736         * tests/test-dirname.c: Do not use removed symbols like
13737         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13738         the remaining symbols, e.g., ISSLASH ('\\').
13739
13740 2011-02-25  Eric Blake  <eblake@redhat.com>
13741
13742         strstr: revert patches that introduced bug and pessimization
13743         * lib/str-two-way.h: Add another reference.
13744         (two_way_short_needle, two_way_long_needle): Revert changes from
13745         2011-02-24; they pessimize search speed.
13746         (critical_factorization): Partially revert changes from
13747         2010-06-22; they violate the requirement that the left half of the
13748         needle be smaller than the period of the needle.
13749
13750 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13751
13752         filenamecat: remove unnecessary dependency on dirname-lgpl
13753         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13754         is no direct dependency, just an indirect one via filenamecat-lgpl.
13755
13756         remove: remove unnecessary use of m4/dos.m4
13757         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13758         * modules/remove (FILES): Remove m4/dos.m4.
13759
13760         * lib/openat-proc.c: Don't include dirname.h; not needed.
13761
13762         backupfile: remove unnecessary use of m4/dos.m4
13763         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13764         of its symbols are used by the backupfile code.  backupfile.c does
13765         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13766         for the rare case of programs that want all their backup file
13767         names to live within 8+3 limits, and dos.m4 doesn't address that.
13768         * modules/backupfile (Files): Remove m4/dos.m4.
13769
13770 2011-02-24  Jim Meyering  <meyering@redhat.com>
13771
13772         strstr: fix a bug whereby strstr would mistakenly return NULL
13773         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13774         in period calculation.
13775         (two_way_long_needle): Likewise.
13776         The original problem was reported by Mike Stump in
13777         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13778         Ralf Wildenhues provided the short needle and haystack.
13779         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13780         Add a more involved test to trigger the bug in two_way_long_needle.
13781
13782 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13783
13784         gnulib-tool: remove use of bold display in help screen
13785         * gnulib-tool (func_usage): Do not use bold display anymore in the
13786         help screen.  That was just meant to be a temporary emphasis for a
13787         backward-incompatible change.
13788
13789 2011-02-23  Bruno Haible  <bruno@clisp.org>
13790
13791         Fix misindentation of preprocessor directives.
13792         * lib/argp-namefrob.h: Reindent preprocessor directives.
13793         * lib/getopt_int.h (struct _getopt_data): Likewise.
13794         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13795         * lib/vasnprintf.c (decode_long_double): Likewise.
13796         * tests/test-argmatch.c: Insert blank lines, for clarity.
13797         * tests/test-exclude.c: Likewise.
13798
13799 2011-02-22  Bruno Haible  <bruno@clisp.org>
13800
13801         ioctl: Fix for MacOS X in 64-bit mode.
13802         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13803         value.
13804         Suggested by Eric Blake.
13805         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13806
13807 2011-02-22  Jim Meyering  <meyering@redhat.com>
13808
13809         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13810         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13811         in lib/.
13812
13813 2011-02-22  Eric Blake  <eblake@redhat.com>
13814
13815         maint: avoid any CDPATH issue
13816         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13817
13818         maint: adjust cpp indentation for my modules, as well
13819         * Makefile (sc_cpp_indent_check): Add my name.
13820         * lib/fbufmode.c: Filter through cppi.
13821         * lib/fpurge.c: Likewise.
13822         * lib/freadable.c: Likewise.
13823         * lib/freading.c: Likewise.
13824         * lib/fwritable.c: Likewise.
13825         * lib/fwriting.c: Likewise.
13826         * lib/sigaction.c: Likewise.
13827
13828 2011-02-22  Jim Meyering  <meyering@redhat.com>
13829
13830         maint: adjust cpp indentation to reflect nesting depth
13831         I.e., in a block of code that begins with an unnested "#if",
13832         put one space between the "#" in column 1 and following token.
13833         For example,
13834         -#include <sys/vfs.h>
13835         +# include <sys/vfs.h>
13836         Do this only in .c files that are part of a module I maintain.
13837         * lib/linkat.c: Filter through cppi.
13838         * lib/nanosleep.c: Likewise.
13839         * lib/openat.c: Likewise.
13840         * lib/openat-die.c: Likewise.
13841         * lib/dup3.c: Likewise.
13842         * lib/fchownat.c: Likewise.
13843         * lib/flock.c: Likewise.
13844         * lib/fsync.c: Likewise.
13845         * lib/fts.c: Likewise.
13846         * lib/getpass.c: Likewise.
13847         * lib/gettimeofday.c: Likewise.
13848         * lib/userspec.c: Likewise.
13849         * Makefile (sc_cpp_indent_check): New rule, to check this.
13850
13851 2011-02-22  Bruno Haible  <bruno@clisp.org>
13852
13853         New module 'wctomb'.
13854         * lib/stdlib.in.h (wctomb): New declaration.
13855         * lib/wctomb.c: New file.
13856         * lib/wctomb-impl.h: New file.
13857         * m4/wctomb.m4: New file.
13858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13859         REPLACE_WCTOMB.
13860         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13861         REPLACE_WCTOMB.
13862         * modules/wctomb: New file.
13863         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13864         * doc/posix-functions/wctomb.texi: Mention the new module.
13865         * modules/wctob (Depends-on): Add wctomb.
13866
13867 2011-02-22  Bruno Haible  <bruno@clisp.org>
13868
13869         New module 'mbtowc'.
13870         * lib/stdlib.in.h (mbtowc): New declaration.
13871         * lib/mbtowc.c: New file.
13872         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13873         * m4/mbtowc.m4: New file.
13874         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13875         REPLACE_MBTOWC.
13876         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13877         REPLACE_MBTOWC.
13878         * modules/mbtowc: New file.
13879         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13880         * doc/posix-functions/mbtowc.texi: Mention the new module.
13881         * modules/btowc (Depends-on): Add mbtowc.
13882
13883 2011-02-22  Bruno Haible  <bruno@clisp.org>
13884
13885         wcrtomb: Add more tests for native Windows platforms.
13886         * tests/test-wcrtomb-w32-1.sh: New file.
13887         * tests/test-wcrtomb-w32-2.sh: New file.
13888         * tests/test-wcrtomb-w32-3.sh: New file.
13889         * tests/test-wcrtomb-w32-4.sh: New file.
13890         * tests/test-wcrtomb-w32-5.sh: New file.
13891         * tests/test-wcrtomb-w32.c: New file.
13892         * modules/wcrtomb-tests (Files): Add them.
13893         (Makefile.am): Arrange to run these tests.
13894         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13895         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13896
13897 2011-02-20  Bruno Haible  <bruno@clisp.org>
13898
13899         wcrtomb: Enhance test.
13900         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13901
13902 2011-02-20  Bruno Haible  <bruno@clisp.org>
13903
13904         mbrtowc: Tiny optimization.
13905         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13906
13907 2011-02-20  Jim Meyering  <meyering@redhat.com>
13908
13909         test-exclude.c: remove unmatched #endif
13910         * tests/test-exclude.c: Remove stray #endif, left over from
13911         the change of a week ago.
13912
13913 2011-02-19  Jim Meyering  <meyering@redhat.com>
13914
13915         git-version-gen: skip "-dirty" check when appropriate
13916         * build-aux/git-version-gen: Don't run any git commands when the
13917         version string comes from .tarball-version.  Prior to this, we
13918         would run git update-index --refresh even from a just-unpacked
13919         tarball directory, and that could affect a .git/ directory in a
13920         parent of the build directory.  Reported by Mike Frysinger.
13921
13922 2011-02-19  Bruno Haible  <bruno@clisp.org>
13923
13924         unictype/property-byname: Reduce the size of the 'data' segment.
13925         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13926
13927 2011-02-19  Bruno Haible  <bruno@clisp.org>
13928
13929         unictype/scripts: Reduce the size of the 'data' segment.
13930         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13931         '%pic'.
13932         * lib/unictype/scripts_byname.gperf: Regenerated.
13933
13934 2011-02-19  Bruno Haible  <bruno@clisp.org>
13935
13936         stdint: Update documentation.
13937         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13938
13939 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13940
13941         stdint: omit redundant check for wchar.h
13942         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13943         always tests whether wchar.h exists, so remove the now-redundant test.
13944
13945 2011-02-18  Bruno Haible  <bruno@clisp.org>
13946
13947         stdint: Cut dependency to module 'wchar'.
13948         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13949         include the necessary prerequisites.
13950         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13951         * modules/stdint (Depends-on): Remove wchar.
13952         (Makefile.am): Substitute HAVE_WCHAR_H.
13953         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13954
13955 2011-02-18  Eric Blake  <eblake@redhat.com>
13956
13957         longlong: skip, rather than fail, on cross-compilation
13958         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13959         when cross-compiling; regression from 2011-02-16.
13960
13961 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13962
13963         * NEWS: Mention 2011-02-08 change to stdlib.
13964
13965 2011-02-17  Bruno Haible  <bruno@clisp.org>
13966
13967         getloadavg: Add comments about platforms.
13968         * m4/getloadavg.m4: Add comment.
13969         * lib/getloadavg.c: Likewise.
13970
13971 2011-02-17  Bruno Haible  <bruno@clisp.org>
13972
13973         getloadavg: Fix link error on Solaris 2.6.
13974         * modules/getloadavg (Link): New section.
13975         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13976         linking test-getloadavg.
13977         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13978         getloadavg.
13979
13980 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13981
13982         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13983         It was 'int', but this doesn't match the IRIX 6.5 manual.
13984         Suggested by Bruno Haible in
13985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13986
13987 2011-02-17  Bruno Haible  <bruno@clisp.org>
13988
13989         havelib: Fix comments.
13990         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13991         change.
13992
13993 2011-02-17  Bruno Haible  <bruno@clisp.org>
13994
13995         havelib: Update config.rpath.
13996         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13997
13998 2011-02-17  Bruno Haible  <bruno@clisp.org>
13999
14000         getloadavg test: Add some plausibility checks.
14001         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14002         is improbable.
14003
14004 2011-02-16  Eric Blake  <eblake@redhat.com>
14005
14006         maintainer-makefile: make syntax-check a no-op from tarballs
14007         * top/maint.mk (no-vc-detected): New rule.
14008         (local-checks-available): Use it to avoid hanging if someone tries
14009         'make syntax-check' from a tarball.  Also append to any non-syntax
14010         checks already defined in cfg.mk.
14011
14012 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14013
14014         longlong: tune, particularly for common case of c99
14015
14016         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14017         or running anything if c99, or if unsigned long long int does not
14018         work.  In either case, we know the answer without further tests.
14019         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14020         it at most once, and use its results for both long long int and
14021         unsigned long long int.  This is more likely to be efficient in
14022         the common case where the program wants to check for both long
14023         long int and unsigned long long int.
14024         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14025         since the answer is already known.
14026
14027 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14028
14029         getloadavg: set errno
14030         * lib/getloadavg.c: Set errno when returning -1.  If no other
14031         error number looks appropriate, set it to ENOSYS if the getloadavg
14032         looks like it can't possibly ever work, ENOTSUP otherwise.
14033         Suggested by Bruno Haible in
14034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14035
14036         getloadavg: trim unused parts and speed up 'configure'
14037         * NEWS: Document this.
14038         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14039         always compiled if getloadavg is absent.
14040         Move test code to ...
14041         * tests/test-getloadavg.c: New file, containing previous
14042         contents of test from lib/getloadavg.c.  It also contains
14043         suggestions by Bruno Haible in
14044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14045         * modules/getloadavg-tests: New file.
14046         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14047         Do tests in the same order as they're needed for getloadavg.c.
14048         Omit setgid-related tests that generate symbols KMEM_GROUP,
14049         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14050         Do only the tests that are needed to see whether the system has
14051         getloadavg, moving the other tests into ...
14052         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14053         NLIST_NAME_UNION; nobody should be using it.  Do not define
14054         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14055         relevant, as the user of this module shouldn't care how getloadavg
14056         is implemented.
14057
14058         getloadavg: omit unused var
14059         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14060
14061 2011-02-15  Jim Meyering  <meyering@redhat.com>
14062
14063         doc: update users.txt
14064         * users.txt: Update iwhd's URL.
14065
14066 2011-02-13  Bruno Haible  <bruno@clisp.org>
14067
14068         Consistent macro naming for macros that use GCC __attribute__.
14069         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14070         _ATTRIBUTE_NONNULL_.
14071         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14072         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14073         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14074         ATTRIBUTE_DEPRECATED.
14075         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14076         ATTRIBUTE_NORETURN.
14077         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14078         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14079         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14080         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14081         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14082         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14083         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14084         ATTRIBUTE_SENTINEL.
14085         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14086         ATTRIBUTE_RETURN_CHECK.
14087         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14088         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14089         ATTRIBUTE_NORETURN.
14090         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14091         Reported by Paul Eggert.
14092
14093 2011-02-13  Bruno Haible  <bruno@clisp.org>
14094
14095         Don't interfere with a program's definition of __attribute__.
14096         * lib/argp.h (__attribute__): Remove definition.
14097         (_GL_ATTRIBUTE_FORMAT): New macro.
14098         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14099         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14100         (_GL_ATTRIBUTE_FORMAT): New macro.
14101         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14102         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14103         GCC 3 or newer.
14104         * lib/error.h (__attribute__): Remove definition.
14105         (_GL_ATTRIBUTE_FORMAT): New macro.
14106         (error, error_at_line): Use it.
14107         * lib/hash.h (__attribute__): Remove definition.
14108         (ATTRIBUTE_WUR): Update definition. Define always.
14109         * lib/openat.h (__attribute__): Remove definition.
14110         (ATTRIBUTE_NORETURN): Update definition. Define always.
14111         * lib/sigpipe-die.h (__attribute__): Remove definition.
14112         (ATTRIBUTE_NORETURN): Update definition. Define always.
14113         * lib/vasnprintf.h (__attribute__): Remove definition.
14114         (_GL_ATTRIBUTE_FORMAT): New macro.
14115         (asnprintf, vasnprintf): Use it.
14116         * lib/xalloc.h (__attribute__): Remove definition.
14117         (ATTRIBUTE_NORETURN): Update definition. Define always.
14118         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14119         * lib/xmemdup0.h (__attribute__): Remove definition.
14120         (ATTRIBUTE_NORETURN): Update definition. Define always.
14121         * lib/xprintf.h (__attribute__): Remove definition.
14122         (_GL_ATTRIBUTE_FORMAT): New macro.
14123         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14124         * lib/xstrtol.h (__attribute__): Remove definition.
14125         (ATTRIBUTE_NORETURN): Update definition. Define always.
14126         * lib/xvasprintf.h (__attribute__): Remove definition.
14127         (_GL_ATTRIBUTE_FORMAT): New macro.
14128         (xasprintf, xvasprintf): Use it.
14129         * tests/test-argmatch.c (__attribute__): Remove definition.
14130         (ATTRIBUTE_NORETURN): Update definition. Define always.
14131         * tests/test-exclude.c (__attribute__): Remove definition.
14132         (ATTRIBUTE_NORETURN): Update definition. Define always.
14133         Reported by Paul Eggert.
14134
14135 2011-02-13  Bruno Haible  <bruno@clisp.org>
14136
14137         mbrtowc: Add more tests for native Windows platforms.
14138         * tests/test-mbrtowc-w32-1.sh: New file.
14139         * tests/test-mbrtowc-w32-2.sh: New file.
14140         * tests/test-mbrtowc-w32-3.sh: New file.
14141         * tests/test-mbrtowc-w32-4.sh: New file.
14142         * tests/test-mbrtowc-w32-5.sh: New file.
14143         * tests/test-mbrtowc-w32.c: New file.
14144         * modules/mbrtowc-tests (Files): Add them.
14145         (Makefile.am): Arrange to run these tests.
14146         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14147         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14148
14149 2011-02-13  Bruno Haible  <bruno@clisp.org>
14150
14151         mbrtowc: Work around native Windows bug.
14152         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14153         guess when no suitable locale for testing was found.
14154         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14155
14156 2011-02-13  Bruno Haible  <bruno@clisp.org>
14157
14158         mbsinit: Work around mingw bug.
14159         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14160         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14161         Windows.
14162         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14163
14164 2011-02-13  Bruno Haible  <bruno@clisp.org>
14165
14166         mbsinit: Don't crash for a NULL argument.
14167         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14168         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14169
14170 2011-02-13  Bruno Haible  <bruno@clisp.org>
14171
14172         Don't interfere with a program's definition of __attribute__.
14173         * lib/stdio.in.h (__attribute__): Remove definition.
14174         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14175         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14176         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14177         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14178         * lib/string.in.h (__attribute__): Remove definition.
14179         Reported by Paul Eggert.
14180
14181 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14182
14183         stdlib: don't get in the way of non-GCC __attribute__
14184         See thread starting at
14185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14186         Revert previous stdlib change, installing the following instead:
14187         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14188         to get in the way of a non-GCC compiler that supports __attribute__.
14189         (_GL_ATTRIBUTE_RETURN): New macro.
14190         (_Exit): Use it instead of __attribute__.
14191
14192 2011-02-12  Bruno Haible  <bruno@clisp.org>
14193
14194         quotearg test: Avoid test failure on mingw.
14195         * tests/test-quotearg.sh: Convert the locale identifier from native
14196         Windows syntax to Unix syntax.
14197
14198 2011-02-12  Bruno Haible  <bruno@clisp.org>
14199
14200         setlocale: Prefer gnulib's override over libintl's override.
14201         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14202         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14203         GNULIB_defined_setlocale is set.
14204
14205 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14206
14207         stdlib: support non-GCC __attribute__
14208
14209         Fix a serious and tricky problem encountered when attempting to
14210         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14211         5.5, but it crashed due to memory corruption on Solaris 10 with
14212         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14213         bits that are otherwise zero.  This tagging is optional inside
14214         Emacs but is preferred and is used when __attribute__ ((__aligned
14215         (8))) works, as it does with both recent-enough GCC and with Sun C
14216         5.11.  However, Sun C 5.11 is not GCC and does not #define
14217         __GNUC__ and __GNUC_MINOR__.
14218
14219         When I added the getloadavg module to Emacs, it brought in
14220         stdlib.in.h, which contained this fragment:
14221
14222            #ifndef __attribute__
14223            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14224            #  define __attribute__(Spec)   /* empty */
14225            # endif
14226            #endif
14227
14228         When files that include <stdlib.h> were compiled with Sun C 5.11,
14229         the above code disabled __attribute__ ((__aligned (8))), which
14230         caused variables to not be properly aligned, which eventually led
14231         to the pointer corruption mentioned above.  (This was a bit hard
14232         to diagnose, unfortunately.)
14233
14234         Several "#define __attribute__(X) /* empty */" code snippets need
14235         to be eradicated from Gnulib to work with non-GCC compilers that
14236         support __attribute__.  The Autoconf way to do this is to test for
14237         each kind of attribute that we want support for, and selectively
14238         enable that in source code.
14239
14240         Fix this problem just for stdlib.h, by adding a test for the
14241         __noreturn__ attribute, and change stdlib.in.h to use that test
14242         when needed.  This technique can be easily generalized to the
14243         other *.in.h files and attributes, and a similar technique can be
14244         used for *.h and *.c files.  This patch is enough to solve the
14245         problem for Emacs + getloadavg, and I thought I'd publish it for
14246         feedback before undertaking further, similar fixes in other
14247         modules.
14248
14249         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14250         because it's not needed for stdlib.h.  It merely substitutes the
14251         value directly into stdlib.h.  We may well need to #define it, or
14252         similar symbols, for other modules, but it's nice to also have an
14253         option to not #define it for applications like Emacs that do not
14254         need it.
14255
14256         * lib/stdlib.in.h (__attribute__): Do not #define.
14257         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14258         be defined only if the _Exit module is also used.
14259         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14261         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14262         platforms.
14263         * modules/_Exit (Files): Add m4/attribute.m4.
14264         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14265         * m4/attribute.m4: New file.
14266
14267 2011-02-12  Bruno Haible  <bruno@clisp.org>
14268
14269         wcsrtombs: Work around bug on native Windows.
14270         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14271         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14272         instead of len.
14273         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14274
14275 2011-02-12  Bruno Haible  <bruno@clisp.org>
14276
14277         mbsrtowcs: Work around bug on native Windows.
14278         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14279         against mingw bug.
14280         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14281
14282 2011-02-12  Bruno Haible  <bruno@clisp.org>
14283
14284         Avoid setlocale bugs in tests.
14285         * modules/btowc (Dependencies): Add setlocale.
14286         * modules/c-strcase (Dependencies): Likewise.
14287         * modules/mbmemcasecmp (Dependencies): Likewise.
14288         * modules/mbmemcasecoll (Dependencies): Likewise.
14289         * modules/mbrtowc (Dependencies): Likewise.
14290         * modules/mbscasecmp (Dependencies): Likewise.
14291         * modules/mbscasestr (Dependencies): Likewise.
14292         * modules/mbschr (Dependencies): Likewise.
14293         * modules/mbscspn (Dependencies): Likewise.
14294         * modules/mbsinit (Dependencies): Likewise.
14295         * modules/mbsncasecmp (Dependencies): Likewise.
14296         * modules/mbsnrtowcs (Dependencies): Likewise.
14297         * modules/mbspbrk (Dependencies): Likewise.
14298         * modules/mbspcasecmp (Dependencies): Likewise.
14299         * modules/mbsrchr (Dependencies): Likewise.
14300         * modules/mbsrtowcs (Dependencies): Likewise.
14301         * modules/mbsspn (Dependencies): Likewise.
14302         * modules/mbsstr (Dependencies): Likewise.
14303         * modules/nl_langinfo (Dependencies): Likewise.
14304         * modules/quotearg (Dependencies): Likewise.
14305         * modules/unicase/locale-language (Dependencies): Likewise.
14306         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14307         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14308         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14309         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14310         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14311         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14312         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14313         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14314         * modules/vasnprintf-posix (Dependencies): Likewise.
14315         * modules/wcrtomb (Dependencies): Likewise.
14316         * modules/wcsnrtombs (Dependencies): Likewise.
14317         * modules/wcsrtombs (Dependencies): Likewise.
14318
14319 2011-02-12  Bruno Haible  <bruno@clisp.org>
14320
14321         setlocale: Workaround native Windows bug.
14322         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14323         succeeds but sets LC_CTYPE to "C", report a failure.
14324         * tests/test-setlocale2.sh: New file.
14325         * tests/test-setlocale2.c: New file.
14326         * modules/setlocale-tests (Files): Add the new files.
14327         (Makefile.am): Enable test-setlocale2.sh test.
14328         * doc/posix-functions/setlocale.texi: Mention workaround.
14329
14330 2011-02-11  Bruno Haible  <bruno@clisp.org>
14331
14332         Tests for module 'setlocale'.
14333         * modules/setlocale-tests: New file.
14334         * tests/test-setlocale1.sh: New file.
14335         * tests/test-setlocale1.c: New file.
14336
14337         New module 'setlocale'.
14338         * lib/locale.in.h (setlocale): New declaration.
14339         * lib/setlocale.c: New file, based on
14340         gettext/gettext-runtime/intl/setlocale.c.
14341         * m4/setlocale.m4: New file.
14342         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14343         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14344         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14345         REPLACE_SETLOCALE.
14346         * modules/setlocale: New file.
14347         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14348         * doc/posix-functions/setlocale.texi: Mention the new module.
14349
14350 2011-02-11  Bruno Haible  <bruno@clisp.org>
14351
14352         Prepare for locale dependent tests on mingw.
14353         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14354         because it has the wrong locale encoding.
14355         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14356         French_France.1252 instead of "fr".
14357         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14358         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14359         because it has the wrong locale encoding.
14360         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14361         native Windows, try Turkish_Turkey.65001.
14362         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14363         Chinese_China.54936.
14364
14365         Prepare for locale dependent tests on mingw.
14366         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14367         differently.
14368         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14369         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14370         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14371         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14372
14373 2011-02-11  Eric Blake  <eblake@redhat.com>
14374
14375         strptime: avoid compiler warnings
14376         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14377         compiler warnings about dead code.
14378         Reported by Daniel P. Berrange.
14379
14380 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14381
14382         doc: update users.txt
14383         * users.txt: Add rcs.
14384
14385 2011-02-10  John W. Eaton  <jwe@gnu.org>
14386
14387         doc: update users.txt
14388         * users.txt: Add octave.
14389
14390 2011-02-10  Jim Meyering  <meyering@redhat.com>
14391
14392         doc: update users.txt
14393         * users.txt: Add iwhd.
14394
14395 2011-02-09  Bruno Haible  <bruno@clisp.org>
14396
14397         gnulib-tool: Make copyright notice adjustment more robust.
14398         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14399         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14400         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14401         License".
14402         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14403
14404 2011-02-06  Bruno Haible  <bruno@clisp.org>
14405
14406         New module 'towctrans'.
14407         * modules/towctrans: New file.
14408         * lib/wctype.in.h (towctrans): New declaration.
14409         * lib/towctrans.c: New file.
14410         * lib/towctrans-impl.h: New file.
14411         * m4/towctrans.m4: New file.
14412         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14413         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14414         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14415         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14416         * doc/posix-functions/towctrans.texi: Mention the new module.
14417
14418 2011-02-06  Bruno Haible  <bruno@clisp.org>
14419
14420         New module 'wctrans'.
14421         * modules/wctrans: New file.
14422         * lib/wctype.in.h (wctrans): New declaration.
14423         * lib/wctrans.c: New file.
14424         * lib/wctrans-impl.h: New file.
14425         * m4/wctrans.m4: New file.
14426         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14427         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14428         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14429         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14430         * doc/posix-functions/wctrans.texi: Mention the new module.
14431
14432 2011-02-06  Bruno Haible  <bruno@clisp.org>
14433
14434         New module 'iswctype'.
14435         * modules/iswctype: New file.
14436         * lib/wctype.in.h (iswctype): New declaration.
14437         * lib/iswctype.c: New file.
14438         * lib/iswctype-impl.h: New file.
14439         * m4/iswctype.m4: New file.
14440         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14441         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14442         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14443         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14444         * doc/posix-functions/iswctype.texi: Mention the new module and the
14445         HP-UX 11.00 problem.
14446
14447 2011-02-06  Bruno Haible  <bruno@clisp.org>
14448
14449         New module 'wctype'.
14450         * modules/wctype: Change to represent the wctype() substitute.
14451         * lib/wctype.in.h (wctype): New declaration.
14452         * lib/wctype.c: New file.
14453         * lib/wctype-impl.h: New file.
14454         * m4/wctype.m4: New file.
14455         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14456         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14457         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14458         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14459         * doc/posix-functions/wctype.texi: Mention the new module and the
14460         HP-UX 11.00 problem.
14461
14462 2011-02-06  Bruno Haible  <bruno@clisp.org>
14463
14464         wctype-h: Ensure wctype_t and wctrans_t are defined.
14465         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14466         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14467         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14468         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14469         HAVE_WCTRANS_T.
14470         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14471
14472 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14473
14474         flock: fix license typo
14475
14476         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14477         omitted.
14478
14479 2011-02-08  Bruno Haible  <bruno@clisp.org>
14480
14481         Split large sed scripts, for HP-UX sed.
14482         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14483         to avoid HP-UX limit of 99 commands, in the near future.
14484         * modules/stdlib (Makefile.am): Likewise.
14485         * modules/unistd (Makefile.am): Likewise.
14486         * modules/wchar (Makefile.am): Likewise.
14487         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14488         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14489         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14490
14491 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14492             Bruno Haible  <bruno@clisp.org>
14493
14494         stdlib: improve random_r modularization
14495         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14496         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14497         you also need the random_r module to get this material right.
14498         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14499         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14500         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14501
14502 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14503
14504         stdlib: don't depend on stdint
14505         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14506         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14507         be independent of whether stdint.h is needed.
14508         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14509         here, instead of ...
14510         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14511         struct random_data should be using the random_r module, not just
14512         the stdlib module (which wouldn't make sense: what package needs
14513         just struct random_data without also needing random_r?).
14514         * modules/stdlib (Depends-on): Remove stdint.
14515
14516         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14517         See the thread rooted at
14518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14519         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14520         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14521         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14522         __VMS)); previously it was always included (via fcntl--.h).
14523         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14524         hand; this is good enough for load averages.  Also, do not use
14525         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14526         flags directly if available and don't bother otherwise.  (Packages
14527         that need the extra reliability should use the modules that define
14528         these flags on older platforms that lack them.)
14529         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14530         fcntl-safer.
14531
14532 2011-02-08  Jim Meyering  <meyering@redhat.com>
14533
14534         di-set.h, ino-map.h: add multiple-inclusion guard
14535         Technically, the guard is required only for ino-map.h, due to its
14536         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14537         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14538         * lib/ino-map.h: Likewise.
14539
14540 2011-02-06  Bruno Haible  <bruno@clisp.org>
14541
14542         iswblank: Ensure declaration on glibc systems.
14543         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14544         * modules/iswblank (Dependencies): Add 'extensions'.
14545         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14546
14547 2011-02-06  Bruno Haible  <bruno@clisp.org>
14548
14549         New module 'iswblank'.
14550         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14551         * modules/iswblank: New file.
14552         * modules/wctype-h (Files): Remove lib/iswblank.c.
14553         (Makefile.am): Substitute GNULIB_ISWBLANK.
14554         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14555         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14556         (gl_WCTYPE_H_DEFAULTS): New macro.
14557         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14558         * modules/iswblank-tests: New file.
14559         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14560         * tests/test-wctype-h.c (main): Remove iswblank tests.
14561         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14562         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14563         of 'wctype-h'.
14564         * NEWS: Mention the change.
14565         * modules/mbchar (Depends-on): Add iswblank.
14566
14567 2011-02-08  Bruno Haible  <bruno@clisp.org>
14568
14569         di-set tests: Refactor.
14570         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14571         unnecessary includes.
14572         (ASSERT): Remove macro.
14573         (main): Make C90 compliant by avoiding variable declaration after
14574         statement.
14575         * modules/di-set-tests (Files): Add tests/macros.h.
14576
14577 2011-02-08  Bruno Haible  <bruno@clisp.org>
14578
14579         ino-map tests: Refactor.
14580         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14581         unnecessary includes.
14582         (ASSERT): Remove macro.
14583         (main): Make C90 compliant by avoiding variable declaration after
14584         statement.
14585         * modules/ino-map-tests (Files): Add tests/macros.h.
14586
14587 2011-02-08  Jim Meyering  <meyering@redhat.com>
14588
14589         di-set: add "const" to a cast
14590         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14591         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14592
14593 2011-02-06  Bruno Haible  <bruno@clisp.org>
14594
14595         Rename module 'wctype' to 'wctype-h'.
14596         * modules/wctype-h: Renamed from modules/wctype.
14597         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14598         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14599         (Files, Depends-on, Makefile.am): Update.
14600         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14601         (Files, Makefile.am): Update.
14602         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14603         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14604         * doc/posix-headers/wctype.texi: Update.
14605         * doc/posix-functions/iswalnum.texi: Update.
14606         * doc/posix-functions/iswalpha.texi: Update.
14607         * doc/posix-functions/iswblank.texi: Update.
14608         * doc/posix-functions/iswcntrl.texi: Update.
14609         * doc/posix-functions/iswdigit.texi: Update.
14610         * doc/posix-functions/iswgraph.texi: Update.
14611         * doc/posix-functions/iswlower.texi: Update.
14612         * doc/posix-functions/iswprint.texi: Update.
14613         * doc/posix-functions/iswpunct.texi: Update.
14614         * doc/posix-functions/iswspace.texi: Update.
14615         * doc/posix-functions/iswupper.texi: Update.
14616         * doc/posix-functions/iswxdigit.texi: Update.
14617         * doc/posix-functions/towlower.texi: Update.
14618         * doc/posix-functions/towupper.texi: Update.
14619         * NEWS: Mention the change.
14620         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14621         * modules/mbchar (Dependencies): Likewise.
14622         * modules/mbswidth (Dependencies): Likewise.
14623         * modules/quotearg (Dependencies): Likewise.
14624         * modules/regex (Dependencies): Likewise.
14625         * modules/wcscasecmp (Dependencies): Likewise.
14626         * modules/wcsncasecmp (Dependencies): Likewise.
14627         * modules/wcwidth (Dependencies): Likewise.
14628
14629 2011-02-06  Bruno Haible  <bruno@clisp.org>
14630
14631         New module 'wcswidth'.
14632         * modules/wcswidth: New file.
14633         * lib/wchar.in.h (wcswidth): New declaration.
14634         * lib/wcswidth.c: New file.
14635         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14636         * m4/wcswidth.m4: New file.
14637         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14638         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14639         REPLACE_WCSWIDTH.
14640         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14641         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14642         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14643         * doc/posix-functions/wcswidth.texi: Mention the new module.
14644
14645 2011-02-06  Bruno Haible  <bruno@clisp.org>
14646
14647         New module 'wcstok'.
14648         * modules/wcstok: New file.
14649         * lib/wchar.in.h (wcstok): New declaration.
14650         * lib/wcstok.c: New file.
14651         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14652         * m4/wcstok.m4: New file.
14653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14656         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14657         * doc/posix-functions/wcstok.texi: Mention the new module.
14658
14659 2011-02-06  Bruno Haible  <bruno@clisp.org>
14660
14661         New module 'wcsstr'.
14662         * modules/wcsstr: New file.
14663         * lib/wchar.in.h (wcsstr): New declaration.
14664         * lib/wcsstr.c: New file.
14665         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14666         * m4/wcsstr.m4: New file.
14667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14669         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14670         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14671         * doc/posix-functions/wcsstr.texi: Mention the new module.
14672
14673 2011-02-06  Bruno Haible  <bruno@clisp.org>
14674
14675         New module 'wcspbrk'.
14676         * modules/wcspbrk: New file.
14677         * lib/wchar.in.h (wcspbrk): New declaration.
14678         * lib/wcspbrk.c: New file.
14679         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14680         * m4/wcspbrk.m4: New file.
14681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14683         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14684         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14685         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14686
14687 2011-02-06  Bruno Haible  <bruno@clisp.org>
14688
14689         New module 'wcsspn'.
14690         * modules/wcsspn: New file.
14691         * lib/wchar.in.h (wcsspn): New declaration.
14692         * lib/wcsspn.c: New file.
14693         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14694         * m4/wcsspn.m4: New file.
14695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14697         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14698         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14699         * doc/posix-functions/wcsspn.texi: Mention the new module.
14700
14701 2011-02-06  Bruno Haible  <bruno@clisp.org>
14702
14703         New module 'wcscspn'.
14704         * modules/wcscspn: New file.
14705         * lib/wchar.in.h (wcscspn): New declaration.
14706         * lib/wcscspn.c: New file.
14707         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14708         * m4/wcscspn.m4: New file.
14709         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14710         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14711         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14712         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14713         * doc/posix-functions/wcscspn.texi: Mention the new module.
14714
14715 2011-02-06  Bruno Haible  <bruno@clisp.org>
14716
14717         New module 'wcsrchr'.
14718         * modules/wcsrchr: New file.
14719         * lib/wchar.in.h (wcsrchr): New declaration.
14720         * lib/wcsrchr.c: New file.
14721         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14722         * m4/wcsrchr.m4: New file.
14723         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14724         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14725         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14726         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14727         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14728
14729 2011-02-06  Bruno Haible  <bruno@clisp.org>
14730
14731         New module 'wcschr'.
14732         * modules/wcschr: New file.
14733         * lib/wchar.in.h (wcschr): New declaration.
14734         * lib/wcschr.c: New file.
14735         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14736         * m4/wcschr.m4: New file.
14737         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14738         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14739         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14740         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14741         * doc/posix-functions/wcschr.texi: Mention the new module.
14742
14743 2011-02-06  Bruno Haible  <bruno@clisp.org>
14744
14745         New module 'wcsdup'.
14746         * modules/wcsdup: New file.
14747         * lib/wchar.in.h (wcsdup): New declaration.
14748         * lib/wcsdup.c: New file.
14749         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14750         * m4/wcsdup.m4: New file.
14751         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14752         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14753         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14754         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14755         * doc/posix-functions/wcsdup.texi: Mention the new module.
14756
14757 2011-02-06  Bruno Haible  <bruno@clisp.org>
14758
14759         New module 'wcsxfrm'.
14760         * modules/wcsxfrm: New file.
14761         * lib/wchar.in.h (wcsxfrm): New declaration.
14762         * lib/wcsxfrm.c: New file.
14763         * lib/wcsxfrm-impl.h: New file.
14764         * m4/wcsxfrm.m4: New file.
14765         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14766         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14767         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14768         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14769         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14770
14771 2011-02-06  Bruno Haible  <bruno@clisp.org>
14772
14773         New module 'wcscoll'.
14774         * modules/wcscoll: New file.
14775         * lib/wchar.in.h (wcscoll): New declaration.
14776         * lib/wcscoll.c: New file.
14777         * lib/wcscoll-impl.h: New file.
14778         * m4/wcscoll.m4: New file.
14779         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14780         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14781         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14782         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14783         * doc/posix-functions/wcscoll.texi: Mention the new module.
14784
14785 2011-02-06  Bruno Haible  <bruno@clisp.org>
14786
14787         New module 'wcsncasecmp'.
14788         * modules/wcsncasecmp: New file.
14789         * lib/wchar.in.h (wcsncasecmp): New declaration.
14790         * lib/wcsncasecmp.c: New file.
14791         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14792         * m4/wcsncasecmp.m4: New file.
14793         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14794         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14795         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14796         HAVE_WCSNCASECMP.
14797         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14798         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14799
14800 2011-02-06  Bruno Haible  <bruno@clisp.org>
14801
14802         New module 'wcscasecmp'.
14803         * modules/wcscasecmp: New file.
14804         * lib/wchar.in.h (wcscasecmp): New declaration.
14805         * lib/wcscasecmp.c: New file.
14806         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14807         * m4/wcscasecmp.m4: New file.
14808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14811         HAVE_WCSCASECMP.
14812         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14813         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14814
14815 2011-02-05  Bruno Haible  <bruno@clisp.org>
14816
14817         New module 'wcsncmp'.
14818         * modules/wcsncmp: New file.
14819         * lib/wchar.in.h (wcsncmp): New declaration.
14820         * lib/wcsncmp.c: New file.
14821         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14822         * m4/wcsncmp.m4: New file.
14823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14826         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14827         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14828
14829 2011-02-05  Bruno Haible  <bruno@clisp.org>
14830
14831         New module 'wcscmp'.
14832         * modules/wcscmp: New file.
14833         * lib/wchar.in.h (wcscmp): New declaration.
14834         * lib/wcscmp.c: New file.
14835         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14836         * m4/wcscmp.m4: New file.
14837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14839         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14840         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14841         * doc/posix-functions/wcscmp.texi: Mention the new module.
14842
14843 2011-02-05  Bruno Haible  <bruno@clisp.org>
14844
14845         New module 'wcsncat'.
14846         * modules/wcsncat: New file.
14847         * lib/wchar.in.h (wcsncat): New declaration.
14848         * lib/wcsncat.c: New file.
14849         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14850         * m4/wcsncat.m4: New file.
14851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14853         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14854         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14855         * doc/posix-functions/wcsncat.texi: Mention the new module.
14856
14857 2011-02-05  Bruno Haible  <bruno@clisp.org>
14858
14859         New module 'wcscat'.
14860         * modules/wcscat: New file.
14861         * lib/wchar.in.h (wcscat): New declaration.
14862         * lib/wcscat.c: New file.
14863         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14864         * m4/wcscat.m4: New file.
14865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14867         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14868         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14869         * doc/posix-functions/wcscat.texi: Mention the new module.
14870
14871 2011-02-05  Bruno Haible  <bruno@clisp.org>
14872
14873         New module 'wcpncpy'.
14874         * modules/wcpncpy: New file.
14875         * lib/wchar.in.h (wcpncpy): New declaration.
14876         * lib/wcpncpy.c: New file.
14877         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14878         * m4/wcpncpy.m4: New file.
14879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14881         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14882         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14883         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14884
14885 2011-02-05  Bruno Haible  <bruno@clisp.org>
14886
14887         New module 'wcsncpy'.
14888         * modules/wcsncpy: New file.
14889         * lib/wchar.in.h (wcsncpy): New declaration.
14890         * lib/wcsncpy.c: New file.
14891         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14892         * m4/wcsncpy.m4: New file.
14893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14896         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14897         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14898
14899 2011-02-05  Bruno Haible  <bruno@clisp.org>
14900
14901         New module 'wcpcpy'.
14902         * modules/wcpcpy: New file.
14903         * lib/wchar.in.h (wcpcpy): New declaration.
14904         * lib/wcpcpy.c: New file.
14905         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14906         * m4/wcpcpy.m4: New file.
14907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14909         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14910         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14911         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14912
14913 2011-02-05  Bruno Haible  <bruno@clisp.org>
14914
14915         New module 'wcscpy'.
14916         * modules/wcscpy: New file.
14917         * lib/wchar.in.h (wcscpy): New declaration.
14918         * lib/wcscpy.c: New file.
14919         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14920         * m4/wcscpy.m4: New file.
14921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14924         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14925         * doc/posix-functions/wcscpy.texi: Mention the new module.
14926
14927 2011-02-05  Bruno Haible  <bruno@clisp.org>
14928
14929         New module 'wcsnlen'.
14930         * modules/wcsnlen: New file.
14931         * lib/wchar.in.h (wcsnlen): New declaration.
14932         * lib/wcsnlen.c: New file.
14933         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14934         * m4/wcsnlen.m4: New file.
14935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14938         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14939         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14940
14941 2011-02-05  Bruno Haible  <bruno@clisp.org>
14942
14943         New module 'wcslen'.
14944         * modules/wcslen: New file.
14945         * lib/wchar.in.h (wcslen): New declaration.
14946         * lib/wcslen.c: New file.
14947         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14948         * m4/wcslen.m4: New file.
14949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14952         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14953         * doc/posix-functions/wcslen.texi: Mention the new module.
14954
14955 2011-02-05  Bruno Haible  <bruno@clisp.org>
14956
14957         New module 'wmemset'.
14958         * modules/wmemset: New file.
14959         * lib/wchar.in.h (wmemset): New declaration.
14960         * lib/wmemset.c: New file.
14961         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14962         * m4/wmemset.m4: New file.
14963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14965         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14966         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14967         * doc/posix-functions/wmemset.texi: Mention the new module.
14968
14969 2011-02-05  Bruno Haible  <bruno@clisp.org>
14970
14971         New module 'wmemmove'.
14972         * modules/wmemmove: New file.
14973         * lib/wchar.in.h (wmemmove): New declaration.
14974         * lib/wmemmove.c: New file.
14975         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14976         * m4/wmemmove.m4: New file.
14977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14979         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14980         HAVE_WMEMMOVE.
14981         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14982         * doc/posix-functions/wmemmove.texi: Mention the new module.
14983
14984 2011-02-05  Bruno Haible  <bruno@clisp.org>
14985
14986         New module 'wmemcpy'.
14987         * modules/wmemcpy: New file.
14988         * lib/wchar.in.h (wmemcpy): New declaration.
14989         * lib/wmemcpy.c: New file.
14990         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14991         * m4/wmemcpy.m4: New file.
14992         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14993         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14994         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14995         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14996         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14997
14998 2011-02-05  Bruno Haible  <bruno@clisp.org>
14999
15000         New module 'wmemcmp'.
15001         * modules/wmemcmp: New file.
15002         * lib/wchar.in.h (wmemcmp): New declaration.
15003         * lib/wmemcmp.c: New file.
15004         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15005         * m4/wmemcmp.m4: New file.
15006         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15007         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15008         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15009         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15010         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15011
15012 2011-02-07  Jim Meyering  <meyering@redhat.com>
15013
15014         di-set, ino-map: new modules, from coreutils
15015         * lib/di-set.c: New file.
15016         * lib/di-set.h: Likewise.
15017         * lib/ino-map.c: Likewise.
15018         * lib/ino-map.h: Likewise.
15019         * modules/di-set: Likewise.
15020         * modules/di-set-tests: Likewise.
15021         * modules/ino-map: Likewise.
15022         * modules/ino-map-tests: Likewise.
15023         * tests/test-di-set.c: Likewise.
15024         * tests/test-ino-map.c: Likewise.
15025
15026 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15027
15028         getloadavg: merge minor changes from Emacs
15029
15030         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15031         (getloadavg): Use memset, not bzero.
15032
15033         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15034         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15035         clash (bug#86).
15036
15037 2010-11-14  Bruno Haible  <bruno@clisp.org>
15038
15039         Allow multiple gnulib generated replacements to coexist.
15040         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15041         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15042         * lib/langinfo.in.h (nl_item): Likewise.
15043         * lib/math.in.h (_NaN, NAN): Likewise.
15044         * lib/netdb.in.h (struct addrinfo): Likewise.
15045         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15046         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15047         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15048         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15049         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15050         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15051         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15052         pthread_mutexattr_init, pthread_mutexattr_settype,
15053         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15054         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15055         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15056         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15057         * lib/sched.in.h (struct sched_param): Likewise.
15058         * lib/se-selinux.in.h (security_class_t, security_context_t,
15059         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15060         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15061         lsetfilecon, fsetfilecon, security_check_context,
15062         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15063         Likewise.
15064         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15065         Likewise.
15066         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15067         _gl_function_taking_int_returning_void_t, union sigval,
15068         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15069         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15070         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15071         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15072         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15073         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15074         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15075         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15076         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15077         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15078         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15079         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15080         socklen_t, rpl_fd_isset): Likewise.
15081         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15082         * lib/sys_time.in.h (struct timeval): Likewise.
15083         * lib/sys_times.in.h (struct tms): Likewise.
15084         * lib/sys_utsname.in.h (struct utsname):
15085         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15086         * lib/unistd.in.h (getpagesize): Likewise.
15087         * lib/wchar.in.h (mbstate_t): Likewise.
15088         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15089         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15090         towlower, towupper): Likewise.
15091         Reported by Sam Steingold <sds@gnu.org>.
15092
15093 2011-02-05  Eric Blake  <eblake@redhat.com>
15094
15095         unsetenv: work around Haiku issues
15096         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15097         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15098
15099 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15100
15101         libposix: avoid calling error() within libposix
15102         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15103         is defined.
15104
15105 2011-02-05  Eric Blake  <eblake@redhat.com>
15106
15107         strerror_r-posix: port to cygwin
15108         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15109         implementation.
15110         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15111         * tests/test-strerror_r.c (main): Fix test.
15112         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15113         issue.
15114
15115 2011-02-05  Bruno Haible  <bruno@clisp.org>
15116
15117         New module 'wmemchr'.
15118         * modules/wmemchr: New file.
15119         * lib/wchar.in.h (wmemchr): New declaration.
15120         * lib/wmemchr.c: New file.
15121         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15122         * m4/wmemchr.m4: New file.
15123         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15124         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15125         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15126         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15127         * doc/posix-functions/wmemchr.texi: Mention the new module.
15128
15129 2011-02-04  Eric Blake  <eblake@redhat.com>
15130
15131         fdopendir: detect FreeBSD bug
15132         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15133         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15134
15135 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15136
15137         stdbool: do not define HAVE_STDBOOL_H
15138         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15139         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15140         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15141         imported from the latest Autoconf git.  It was motivated by Emacs,
15142         which uses gnulib but does not need HAVE_STDBOOL_H.
15143
15144 2011-02-04  Bruno Haible  <bruno@clisp.org>
15145
15146         wcsnrtombs: Prepare for new module wwcsnrtombs.
15147         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15148         * lib/wcsnrtombs.c: Include it.
15149         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15150
15151         wcsrtombs: Prepare for new module wwcsrtombs.
15152         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15153         * lib/wcsrtombs.c: Include it.
15154         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15155
15156         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15157         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15158         * lib/mbsnrtowcs.c: Include it.
15159         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15160
15161         mbsrtowcs: Prepare for new module mbsrtowwcs.
15162         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15163         * lib/mbsrtowcs.c: Include it.
15164         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15165
15166 2011-02-04  Bruno Haible  <bruno@clisp.org>
15167
15168         vasnprintf: Reduce use of malloc for small format strings.
15169         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15170         (arguments): Add room for the first 7 arguments.
15171         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15172         (char_directives, u8_directives, u16_directives, u32_directives): Add
15173         room for the first 7 directives.
15174         * lib/printf-parse.c: Include <string.h>.
15175         (PRINTF_PARSE): Change memory handling code so that it uses the first
15176         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15177         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15178         Reported by Pádraig Brady <P@draigbrady.com>.
15179
15180 2011-01-31  Eric Blake  <eblake@redhat.com>
15181
15182         dup2: work around Haiku bug
15183         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15184         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15185         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15186         * tests/test-dup2.c (main): Enhance test.
15187
15188 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15189
15190         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15191         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15192         declared by eglibc 2.11.2.
15193         * lib/stdio.in.h: Likewise.
15194
15195 2011-01-31  Eric Blake  <eblake@redhat.com>
15196
15197         ignore-value: add missing test dependency
15198         * tests/test-ignore-value.c: Revert previous change; stdio.h
15199         provides off_t.
15200         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15201
15202 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15203
15204         mktime: clarify long_int width checking
15205         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15206         the top level, to make it clearer that the assumption about
15207         long_int width is being checked.  See
15208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15209
15210 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15211
15212         ignore-value: Fix self-test.
15213         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15214
15215 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15216
15217         TYPE_MAXIMUM: avoid theoretically undefined behavior
15218         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15219         negative number, which the C Standard says has undefined behavior.
15220         In practice this is not a problem, but might as well do it by the book.
15221         Reported by Rich Felker and Eric Blake; see
15222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15223         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15224         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15225         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15226         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15227         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15228         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15229
15230         mktime: #undef mktime before #defining it
15231         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15232
15233         mktime: systematically normalize tm_isdst comparisons
15234         * lib/mktime.c (isdst_differ): New function.
15235         (__mktime_internal): Use it systematically for all isdst comparisons.
15236         This completes the fix for libc BZ #6723, and removes the need for
15237         normalizing tm_isdst.  See
15238         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15239         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15240
15241         mktime: fix some integer overflow issues and sidestep the rest
15242
15243         This was prompted by a bug report by Benjamin Lindner for MinGW
15244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15245         His bug is due to signed integer overflow (0 - INT_MIN), and I
15246         I scanned through mktime.c looking for other integer overflow
15247         problems, fixing all the bugs I found.
15248
15249         Although the C Standard says the resulting code is still not safe
15250         in the presence of integer overflow, in practice it should be good
15251         enough for all real-world two's-complement implementations, except
15252         for debugging environments that deliberately trap on integer
15253         overflow (e.g., gcc -ftrapv).
15254
15255         * lib/mktime.c (WRAPV): New macro.
15256         (SHR): Also check that long_int and time_t shift right in the
15257         usual way, before using the fast-but-unportable method.
15258         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15259         used.  The code already assumed two's complement, so there's
15260         no need to test for alternatives.  All uses removed.
15261         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15262         the C standard.  Problem reported by Rich Felker in
15263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15264         (twos_complement_arithmetic): Also check long_int and time_t.
15265         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15266         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15267         (__mktime_internal): Avoid integer overflow with unary subtraction
15268         in two instances where -1 - X is an adequate replacement for -X,
15269         since the calculations are approximate.
15270
15271 2011-01-29  Eric Blake  <eblake@redhat.com>
15272
15273         mktime: avoid infinite loop
15274         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15275         type; behavior is still undefined but portable to all known targets.
15276         Reported by Rich Felker.
15277
15278 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15279
15280         rename, unlink, same-inode: Relicense.
15281         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15282         * modules/unlink (License): Likewise.
15283         * modules/same-inode (License): Likewise.
15284
15285 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15286
15287         mktime: avoid problems on NetBSD 5 / i386
15288         * lib/mktime.c (long_int): New type.  This works around a problem
15289         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15290         but time_t is 64 bits, and where I expect the existing code is
15291         wrong in some cases.
15292         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15293         (ydhms_diff): Bring back the compile-time check for wide-enough
15294         year and yday.
15295
15296         mktime: fix misspelling in comment
15297         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15298         This merges all recent glibc changes of importance.
15299
15300 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15301
15302         move-if-change: cope with concurrent mv of identical file.
15303         * build-aux/move-if-change (CMPPROG): Accept environment
15304         variable as an override for `cmp'.
15305         (usage): Document CMPPROG.
15306         Adjust comparison to drop stdout.  Cope with failure of mv if
15307         the target file exists and is identical to the source, for
15308         parallel builds.
15309         Report from H.J. Lu against binutils in PR binutils/12283.
15310
15311 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15312
15313         * users.txt: Mention sharutils.
15314
15315 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15316
15317         * users.txt: Mention OATH Toolkit.
15318
15319 2011-01-27  Bruno Haible  <bruno@clisp.org>
15320
15321         Prepare for supporting FreeBSD 10.
15322         * build-aux/config.libpath: Remove handling of freebsd1*.
15323
15324 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15325
15326         Prepare for supporting FreeBSD 10.
15327         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15328         match FreeBSD 10.0.
15329
15330 2011-01-27  Bruno Haible  <bruno@clisp.org>
15331
15332         vma-iter, get-rusage-as: Add OpenBSD support.
15333         * modules/vma-iter (configure.ac): Test for mquery.
15334         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15335         * lib/vma-iter.c: Include <sys/mman.h>.
15336         (vma_iterate): Add an implementation based on mquery().
15337         * lib/resource-ext.h (get_rusage_as): Update comments.
15338         * lib/get-rusage-as.c: Likewise.
15339         * lib/get-rusage-data.c: Likewise.
15340
15341 2011-01-26  Karl Berry  <karl@gnu.org>
15342
15343         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15344         variables to make it easier to override the makeinfo program used.
15345
15346 2011-01-26  Eric Blake  <eblake@redhat.com>
15347
15348         fcntl: work around Haiku F_DUPFD bugs
15349         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15350         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15351         cloexec bit on duplication.
15352         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15353
15354 2011-01-26  Bruno Haible  <bruno@clisp.org>
15355
15356         Enable memory leak tests on AIX.
15357         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15358         * tests/test-fprintf-posix3.c (main): Likewise.
15359
15360 2011-01-26  Bruno Haible  <bruno@clisp.org>
15361
15362         Tests for module 'get-rusage-data'.
15363         * modules/get-rusage-data-tests: New file.
15364         * tests/test-get-rusage-data.c: New file.
15365
15366         New module 'get-rusage-data'.
15367         * lib/resource-ext.h (get_rusage_data): New declaration.
15368         * lib/get-rusage-data.c: New file.
15369         * modules/get-rusage-data: New file.
15370
15371 2011-01-25  Bruno Haible  <bruno@clisp.org>
15372
15373         get-rusage-as: Allow for easier testing.
15374         * lib/resource-ext.h (get_rusage_as): Add comment.
15375         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15376         (main): New function for interactive testing.
15377
15378 2011-01-25  Bruno Haible  <bruno@clisp.org>
15379
15380         vma-iter: Treat Haiku like BeOS.
15381         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15382         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15383
15384 2011-01-25  Eric Blake  <eblake@redhat.com>
15385
15386         c-stack: fix regression on cygwin when libsigsegv is present
15387         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15388
15389 2011-01-24  Bruno Haible  <bruno@clisp.org>
15390
15391         vma-iter: Avoid empty intervals.
15392         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15393         on an empty interval.
15394
15395 2011-01-24  Jim Meyering  <meyering@redhat.com>
15396
15397         u64: remove unnecessary #include
15398         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15399
15400 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15401
15402         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15403         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15404
15405 2011-01-23  Bruno Haible  <bruno@clisp.org>
15406
15407         New module 'vma-iter'.
15408         * lib/vma-iter.h: New file.
15409         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15410         * modules/vma-iter: New file.
15411         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15412         for get_rusage_as_via_iterator.
15413         (vma_iterate_callback): New function.
15414         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15415         * modules/get-rusage-as (Depends-on): Add vma-iter.
15416
15417 2011-01-23  Bruno Haible  <bruno@clisp.org>
15418
15419         uninorm: Tweak includes.
15420         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15421         Reported by Jim Meyering.
15422
15423 2011-01-23  Bruno Haible  <bruno@clisp.org>
15424
15425         get-rusage-as: Improve on NetBSD.
15426         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15427         /proc, like on FreeBSD.
15428
15429 2011-01-23  Jim Meyering  <meyering@redhat.com>
15430
15431         xreadlink.h: remove unnecessary #include
15432         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15433
15434         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15435         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15436
15437 2011-01-23  Bruno Haible  <bruno@clisp.org>
15438
15439         get-rusage-as: Fix bug.
15440         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15441         original limit when aborting the first loop.
15442
15443 2011-01-23  Bruno Haible  <bruno@clisp.org>
15444
15445         wctype: Ensure valid C syntax.
15446         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15447         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15448
15449 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15450
15451         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15452         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15453         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15454         as they are needed only for configure's test case.
15455         This removes two unnecessary symbols from config.h.
15456
15457         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15458         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15460         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15461         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15462         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15463         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15464         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15465         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15466         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15467         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15468         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15469         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15470         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15471         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15472         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15473         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15474         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15475
15476 2011-01-21  Eric Blake  <eblake@redhat.com>
15477
15478         maintainer-makefile: work with older git for submodule check
15479         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15480         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15481         Reported by Matthias Bolte.
15482
15483         bootstrap: minor portability fixes
15484         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15485         (usage): Omit leading capital and trailing . on help phrases, per
15486         GNU Coding Standards.
15487         (check_versions, top level): Prefix messages with script name.
15488
15489 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15490
15491         bootstrap: support --no-git option
15492         * build-aux/bootstrap: Add --no-git option, to be used when
15493         --gnulib-srcdir points to the exact desired checkout.
15494
15495 2011-01-21  Eric Blake  <eblake@redhat.com>
15496
15497         strerror_r-posix: work with glibc 2.13
15498         * lib/strerror_r.c (strerror_r): Fix return type.
15499
15500 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15501             Bruno Haible  <bruno@clisp.org>
15502
15503         uN_strstr: New unit tests.
15504         * modules/unistr/u8-strstr-tests: New file.
15505         * modules/unistr/u16-strstr-tests: New file.
15506         * modules/unistr/u32-strstr-tests: New file.
15507         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15508         * tests/unistr/test-u8-strstr.c: New file.
15509         * tests/unistr/test-u16-strstr.c: New file.
15510         * tests/unistr/test-u32-strstr.c: New file.
15511
15512 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15513             Bruno Haible  <bruno@clisp.org>
15514
15515         Make uN_strstr functions O(n) worst-case.
15516         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15517         16-bit and 32-bit unit cases, use the unibyte algorithm from
15518         lib/mbsstr.c.
15519         * lib/unistr/u8-strstr.c: Include <string.h>.
15520         (UNIT_IS_UINT8_T): New macro.
15521         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15522         (U_STRLEN, U_STRNLEN): New macros.
15523         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15524         (U_STRLEN, U_STRNLEN): New macros.
15525         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15526         (configure.ac): Update required libunistring version.
15527         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15528         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15529         malloca.
15530         (configure.ac): Update required libunistring version.
15531         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15532         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15533         malloca.
15534         (configure.ac): Update required libunistring version.
15535
15536 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15537             Bruno Haible  <bruno@clisp.org>
15538
15539         Prepare for faster uN_strstr functions.
15540         * lib/str-kmp.h: Support definable UNITs.
15541         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15542         needle_len argument.
15543         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15544         * lib/mbscasestr.c (mbscasestr): Likewise.
15545
15546 2011-01-21  Pádraig Brady <P@draigBrady.com>
15547
15548         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15549         * tests/test-malloca.c (main): Unset the environment variable
15550         to greatly speed up the test.
15551         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15552         * modules/malloca-tests: Depend on unsetenv.
15553
15554 2011-01-21  Pádraig Brady <P@draigBrady.com>
15555
15556         ignore-value: remove stdint dependency
15557         * lib/ignore-value.h: Remove <stdint.h>
15558         * modules/ignore-value: Remove stdint dependency.
15559
15560 2011-01-21  Jim Meyering  <meyering@redhat.com>
15561
15562         maint.mk: adjust variable name to be consistent with other gl_ vars
15563         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15564         to be lower case.
15565
15566 2011-01-20  Jim Meyering  <meyering@redhat.com>
15567
15568         maint.mk: make "check" depend on public-submodule-commit by default
15569         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15570
15571 2011-01-20  Bruno Haible  <bruno@clisp.org>
15572
15573         mbfile, mbiter: Complete change from 2008-12-21.
15574         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15575         * m4/mbiter.m4 (gl_MBITER): Likewise.
15576
15577 2011-01-20  Jim Meyering  <meyering@redhat.com>
15578
15579         init.sh: insert space between each function name and "()"
15580         * tests/init.sh: Make it a little easier to see that a function's
15581         name is "warn_", and not "warn" when looking at the first part of
15582         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15583
15584 2011-01-20  Jim Meyering  <meyering@redhat.com>
15585
15586         mountlist: clean up code formatting
15587         * lib/mountlist.c (read_file_system_list): Split a long line,
15588         correct bracing style, use NULL in place of "(struct statfs *)0",
15589         don't parenthesize return value, add spaces around "=" and after
15590         ";-in-for-stmt".
15591
15592 2011-01-14  Markus Duft <mduft@gentoo.org>
15593
15594         mountlist: add support for Interix
15595         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15596         Apply statvfs to all entries of /dev/fs.
15597         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15598         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15599
15600 2011-01-20  Jim Meyering  <meyering@redhat.com>
15601
15602         maint.mk: improve the public-submodule-commit rule
15603         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15604         to suppress printing of its commands... unless V=1.
15605         Add git submodule's --quiet option to suppress printing of e.g.,
15606         "Entering gnulib" output.
15607         "cd" into $(srcdir) before running git submodule.
15608
15609 2011-01-20  Bruno Haible  <bruno@clisp.org>
15610
15611         include_next: Fix bug introduced on 2011-01-18.
15612         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15613         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15614         ac_cv_header_... variable if the second argument is not 'check'.
15615         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15616         gl_NEXT_HEADERS_INTERNAL.
15617
15618 2011-01-20  Bruno Haible  <bruno@clisp.org>
15619
15620         Allow the user to avoid the GNULIB_TEST_* macros.
15621         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15622         Suggested by Paul Eggert.
15623
15624 2011-01-14  Jim Meyering  <meyering@redhat.com>
15625
15626         bootstrap: avoid failure when there is no .gitmodules file
15627         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15628         has been assigned to, even when its value is the empty string.
15629         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15630         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15631         Reported by John W. Eaton <jwe@gnu.org>.
15632
15633 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15634
15635         assume <ctype.h>, ..., <time.h> exist
15636         For years gnulib has been assuming the existence of the headers
15637         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15638         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15639         them, since they don't appear to be needed.
15640         * README (Portability guidelines): Document this.
15641         * lib/flock.c: Assume <fcntl.h> exists.
15642         * lib/regex_internal.h: Assume <locale.h> exists.
15643         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15644         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15645         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15646         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15647         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15648         * m4/regex.m4 (gl_REGEX): Likewise.
15649         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15650         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15651         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15652         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15653         * tests/test-argp.c: Likewise.
15654         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15655
15656         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15657         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15658         AA_APPLE_UNIVERSAL_BUILD.  See
15659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15660         * NEWS: Document this.
15661
15662 2011-01-19  Eric Blake  <eblake@redhat.com>
15663
15664         c-stack: assume stack overflow if SA_SIGINFO unsupported
15665         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15666         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15667         sigaction will work.
15668         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15669         behavior match Linux.
15670         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15671
15672         stdbool-tests: accomodate Haiku
15673         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15674
15675         binary-io: fix O_TEXT on Haiku
15676         * modules/binary-io (Depends-on): Add fcntl-h.
15677         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15678         than blindly undefining O_TEXT.
15679         Reported by Scott McCreary.
15680
15681 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15682
15683         include_next: do not check for standard headers like stddef.h
15684
15685         I found this problem when modifying Emacs to use gnulib.
15686         I noticed that it added HAVE_STDDEF_H to config.h, even though
15687         gnulib always assumes <stddef.h> exists as per README and this
15688         symbol is unnecessary.
15689         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15690         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15691         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15692         faster for headers like stddef.h that are known to exist.
15693         (gl_CHECK_NEXT_HEADERS): Use it.
15694         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15695         rather than gl_CHECK_NEXT_HEADERS.
15696         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15697         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15698
15699 2011-01-18  Eric Blake  <eblake@redhat.com>
15700
15701         ansi-c++-opt: skip C++ dependency style if C++ is unused
15702         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15703         tests when we know C++ compilation is not desired.
15704         Reported by Scott McCreary.
15705
15706 2011-01-18  Bruno Haible  <bruno@clisp.org>
15707
15708         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15709         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15710         (main): Perform test also when getrlimit and setrlimit don't exist or
15711         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15712         limiting the address space size using setrlimit, compare the address
15713         space size before and after the the test.
15714         * tests/test-dprintf-posix2.c: Likewise.
15715         * tests/test-fprintf-posix3.sh: Update skip messages.
15716         * tests/test-dprintf-posix2.sh: Likewise.
15717         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15718         * modules/dprintf-posix-tests (Depends-on): Likewise.
15719         Reported by Bruce Korb <bkorb@gnu.org> and
15720         Gary V. Vaughan <gary@gnu.org>.
15721
15722 2011-01-18  Bruno Haible  <bruno@clisp.org>
15723
15724         get-rusage-as: Improvement for Cygwin.
15725         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15726         areas that are merely reserved.
15727
15728 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15729
15730         strftime: remove dependencies on multibyte modules
15731
15732         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15733         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15734         only if __osf__ is defined, and I suspect OSF doesn't need these
15735         other modules.  If my guess is wrong, we'll need to come up with a
15736         variant of strftime that doesn't need the multibyte modules.
15737
15738         I discovered this problem when attempting modify Emacs to use the
15739         strftime module.  With the previous gnulib, this caused Emacs to
15740         need 31 new files, ranging from lib/config.charset to
15741         m4/wint_t.m4.  This was overkill and I expect would be offputting
15742         to the Emacs maintainers.  After this change, only 6 new files are
15743         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15744         stdbool.m4, and tm_gmtoff.m4.
15745
15746         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15747         Suggested by Bruno Haible in
15748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15749         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15750         and do not check for wchar.h.
15751         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15752         (Depends-on): Remove mbrlen, mbsinit, wchar.
15753
15754 2011-01-18  Bruno Haible  <bruno@clisp.org>
15755
15756         Tests for module 'get-rusage-as'.
15757         * modules/get-rusage-as-tests: New file.
15758         * tests/test-get-rusage-as.c: New file.
15759
15760         New module 'get-rusage-as'.
15761         * modules/get-rusage-as: New file.
15762         * lib/resource-ext.h: New file.
15763         * lib/get-rusage-as.c: New file.
15764
15765 2011-01-17  Eric Blake  <eblake@redhat.com>
15766
15767         sigaction: relax license from LGPLv3+ to LGPLv2+
15768         * modules/sigaction (License): Relax to LGPLv2+.
15769
15770 2011-01-14  Bruno Haible  <bruno@clisp.org>
15771
15772         filemode: Make function declarations usable in C++ mode.
15773         * lib/filemode.h: Enclose function declarations in extern "C" block.
15774         Reported by John W. Eaton <jwe@gnu.org>.
15775
15776 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15777
15778         save-cwd: no longer include "xgetcwd.h"
15779         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15780         This avoids a compilation failure in projects that use save-cwd
15781         without also using the xgetcwd module.
15782
15783 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15784
15785         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15786         This is so that a program like Emacs, which needs only dtoastr,
15787         does not have to bother with distributing and compiling ftoastr
15788         and ldtoastr.
15789         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15790         * modules/dtoastr, modules/ldtoastr: New files.
15791         * modules/ftoastr: Now works just for 'float'.
15792         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15793         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15794         dtoastr.c, ldtoastr.c.
15795
15796 2011-01-11  Jim Meyering  <meyering@redhat.com>
15797
15798         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15799         There is no need to work around the lack of the fchdir function,
15800         since gnulib can now provide a replacement when required.
15801         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15802         * modules/save-cwd (Depends-on): Add fchdir.
15803
15804 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15805
15806         openat, save-cwd: avoid xmalloc
15807
15808         This removes a direct (but undocumented) dependency of openat on
15809         xalloc, along with an indirect dependency via save-cwd.  It also
15810         removes a dependency of save-cwd on xgetcwd, and thereby
15811         indirectly on xalloc.  This change causes the openat substitute
15812         to fall back on save_cwd when memory is tight, and for save_cwd to
15813         fail instead of dying when memory is tight, but that's good enough.
15814         Problem and initial idea for fix reported by Bastien Roucaries in
15815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15816
15817         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15818         xalloc.h (for xmalloc).
15819         (openat_proc_name): Use malloc, not xmalloc.
15820         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15821         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15822
15823         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15824         This avoids heap allocation for file names whose lengths are in
15825         the range 512..1023, with the upper bound increasing to at most
15826         4031 depending on the platform's PATH_MAX.  (We do not want
15827         pathmax.h here as it might supply a non-constant PATH_MAX.)
15828         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15829         Perhaps they should be moved to malloca.h?
15830         (OPENAT_BUFFER_SIZE): Use them.
15831
15832 2011-01-10  Bruno Haible  <bruno@clisp.org>
15833
15834         doc: Update users.txt.
15835         * users.txt: Add recutils.
15836
15837 2011-01-09  Karl Berry  <karl@gnu.org>
15838
15839         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15840
15841         * doc/configmake.texi: New file.
15842         * doc/gnulib.texi: Include it.
15843         * modules/configmake: Move documentation from here.
15844
15845 2011-01-09  Bruno Haible  <bruno@clisp.org>
15846
15847         Update to Unicode 6.0.0.
15848         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15849         (get_lbp): Update for Unicode 6.0.0.
15850         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15851         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15852         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15853         U+11001, U+11038..U+11046. Remove U+06DE.
15854         (uc_width): Fix bounds of planes.
15855         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15856         lib/uniwidth/width.c.
15857         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15858         trailing whitespace removed.
15859         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15860         without comments, but with the original copyright notice.
15861         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15862         * lib/unicase/ignorable.h: Likewise.
15863         * lib/unicase/tocasefold.h: Likewise.
15864         * lib/unicase/tolower.h: Likewise.
15865         * lib/unicase/totitle.h: Likewise.
15866         * lib/unicase/toupper.h: Likewise.
15867         * lib/unictype/bidi_of.h: Likewise.
15868         * lib/unictype/blocks.h: Likewise.
15869         * lib/unictype/categ_C.h: Likewise.
15870         * lib/unictype/categ_Cn.h: Likewise.
15871         * lib/unictype/categ_L.h: Likewise.
15872         * lib/unictype/categ_Ll.h: Likewise.
15873         * lib/unictype/categ_Lm.h: Likewise.
15874         * lib/unictype/categ_Lo.h: Likewise.
15875         * lib/unictype/categ_Lu.h: Likewise.
15876         * lib/unictype/categ_M.h: Likewise.
15877         * lib/unictype/categ_Mc.h: Likewise.
15878         * lib/unictype/categ_Me.h: Likewise.
15879         * lib/unictype/categ_Mn.h: Likewise.
15880         * lib/unictype/categ_N.h: Likewise.
15881         * lib/unictype/categ_Nd.h: Likewise.
15882         * lib/unictype/categ_No.h: Likewise.
15883         * lib/unictype/categ_P.h: Likewise.
15884         * lib/unictype/categ_Po.h: Likewise.
15885         * lib/unictype/categ_S.h: Likewise.
15886         * lib/unictype/categ_Sc.h: Likewise.
15887         * lib/unictype/categ_Sk.h: Likewise.
15888         * lib/unictype/categ_Sm.h: Likewise.
15889         * lib/unictype/categ_So.h: Likewise.
15890         * lib/unictype/categ_of.h: Likewise.
15891         * lib/unictype/combining.h: Likewise.
15892         * lib/unictype/ctype_alnum.h: Likewise.
15893         * lib/unictype/ctype_alpha.h: Likewise.
15894         * lib/unictype/ctype_graph.h: Likewise.
15895         * lib/unictype/ctype_lower.h: Likewise.
15896         * lib/unictype/ctype_print.h: Likewise.
15897         * lib/unictype/ctype_punct.h: Likewise.
15898         * lib/unictype/ctype_upper.h: Likewise.
15899         * lib/unictype/decdigit.h: Likewise.
15900         * lib/unictype/digit.h: Likewise.
15901         * lib/unictype/numeric.h: Likewise.
15902         * lib/unictype/pr_alphabetic.h: Likewise.
15903         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15904         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15905         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15906         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15907         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15908         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15909         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15910         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15911         * lib/unictype/pr_case_ignorable.h: Likewise.
15912         * lib/unictype/pr_cased.h: Likewise.
15913         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15914         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15915         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15916         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15917         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15918         * lib/unictype/pr_combining.h: Likewise.
15919         * lib/unictype/pr_composite.h: Likewise.
15920         * lib/unictype/pr_currency_symbol.h: Likewise.
15921         * lib/unictype/pr_decimal_digit.h: Likewise.
15922         * lib/unictype/pr_deprecated.h: Likewise.
15923         * lib/unictype/pr_format_control.h: Likewise.
15924         * lib/unictype/pr_grapheme_base.h: Likewise.
15925         * lib/unictype/pr_grapheme_extend.h: Likewise.
15926         * lib/unictype/pr_grapheme_link.h: Likewise.
15927         * lib/unictype/pr_id_continue.h: Likewise.
15928         * lib/unictype/pr_id_start.h: Likewise.
15929         * lib/unictype/pr_ideographic.h: Likewise.
15930         * lib/unictype/pr_lowercase.h: Likewise.
15931         * lib/unictype/pr_math.h: Likewise.
15932         * lib/unictype/pr_numeric.h: Likewise.
15933         * lib/unictype/pr_other_alphabetic.h: Likewise.
15934         * lib/unictype/pr_other_id_continue.h: Likewise.
15935         * lib/unictype/pr_other_math.h: Likewise.
15936         * lib/unictype/pr_punctuation.h: Likewise.
15937         * lib/unictype/pr_sentence_terminal.h: Likewise.
15938         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15939         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15940         * lib/unictype/pr_unified_ideograph.h: Likewise.
15941         * lib/unictype/pr_uppercase.h: Likewise.
15942         * lib/unictype/pr_xid_continue.h: Likewise.
15943         * lib/unictype/pr_xid_start.h: Likewise.
15944         * lib/unictype/scripts.h: Likewise.
15945         * lib/unictype/scripts_byname.gperf: Likewise.
15946         * lib/unictype/sy_java_ident.h: Likewise.
15947         * lib/unigbrk/gbrkprop.h: Likewise.
15948         * lib/unilbrk/lbrkprop1.h: Likewise.
15949         * lib/unilbrk/lbrkprop2.h: Likewise.
15950         * lib/uninorm/decomposition-table2.h: Likewise.
15951         * lib/uniwbrk/wbrkprop.h: Likewise.
15952         * tests/unicase/test-cased.c: Likewise.
15953         * tests/unicase/test-ignorable.c: Likewise.
15954         * tests/unicase/test-uc_tolower.c: Likewise.
15955         * tests/unicase/test-uc_totitle.c: Likewise.
15956         * tests/unicase/test-uc_toupper.c: Likewise.
15957         * tests/unictype/test-categ_C.c: Likewise.
15958         * tests/unictype/test-categ_Cn.c: Likewise.
15959         * tests/unictype/test-categ_L.c: Likewise.
15960         * tests/unictype/test-categ_Ll.c: Likewise.
15961         * tests/unictype/test-categ_Lm.c: Likewise.
15962         * tests/unictype/test-categ_Lo.c: Likewise.
15963         * tests/unictype/test-categ_Lu.c: Likewise.
15964         * tests/unictype/test-categ_M.c: Likewise.
15965         * tests/unictype/test-categ_Mc.c: Likewise.
15966         * tests/unictype/test-categ_Me.c: Likewise.
15967         * tests/unictype/test-categ_Mn.c: Likewise.
15968         * tests/unictype/test-categ_N.c: Likewise.
15969         * tests/unictype/test-categ_Nd.c: Likewise.
15970         * tests/unictype/test-categ_No.c: Likewise.
15971         * tests/unictype/test-categ_P.c: Likewise.
15972         * tests/unictype/test-categ_Po.c: Likewise.
15973         * tests/unictype/test-categ_S.c: Likewise.
15974         * tests/unictype/test-categ_Sc.c: Likewise.
15975         * tests/unictype/test-categ_Sk.c: Likewise.
15976         * tests/unictype/test-categ_Sm.c: Likewise.
15977         * tests/unictype/test-categ_So.c: Likewise.
15978         * tests/unictype/test-ctype_alnum.c: Likewise.
15979         * tests/unictype/test-ctype_alpha.c: Likewise.
15980         * tests/unictype/test-ctype_graph.c: Likewise.
15981         * tests/unictype/test-ctype_lower.c: Likewise.
15982         * tests/unictype/test-ctype_print.c: Likewise.
15983         * tests/unictype/test-ctype_punct.c: Likewise.
15984         * tests/unictype/test-ctype_upper.c: Likewise.
15985         * tests/unictype/test-decdigit.h: Likewise.
15986         * tests/unictype/test-digit.h: Likewise.
15987         * tests/unictype/test-numeric.h: Likewise.
15988         * tests/unictype/test-pr_alphabetic.c: Likewise.
15989         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15990         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15991         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15992         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15993         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15994         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15995         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15996         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15997         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15998         * tests/unictype/test-pr_cased.c: Likewise.
15999         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16000         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16001         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16002         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16003         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16004         * tests/unictype/test-pr_combining.c: Likewise.
16005         * tests/unictype/test-pr_composite.c: Likewise.
16006         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16007         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16008         * tests/unictype/test-pr_deprecated.c: Likewise.
16009         * tests/unictype/test-pr_format_control.c: Likewise.
16010         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16011         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16012         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16013         * tests/unictype/test-pr_id_continue.c: Likewise.
16014         * tests/unictype/test-pr_id_start.c: Likewise.
16015         * tests/unictype/test-pr_ideographic.c: Likewise.
16016         * tests/unictype/test-pr_lowercase.c: Likewise.
16017         * tests/unictype/test-pr_math.c: Likewise.
16018         * tests/unictype/test-pr_numeric.c: Likewise.
16019         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16020         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16021         * tests/unictype/test-pr_other_math.c: Likewise.
16022         * tests/unictype/test-pr_punctuation.c: Likewise.
16023         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16024         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16025         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16026         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16027         * tests/unictype/test-pr_uppercase.c: Likewise.
16028         * tests/unictype/test-pr_xid_continue.c: Likewise.
16029         * tests/unictype/test-pr_xid_start.c: Likewise.
16030         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16031         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16032         changes.
16033         * lib/unictype/categ_Cc.h: Likewise.
16034         * lib/unictype/categ_Cf.h: Likewise.
16035         * lib/unictype/categ_Co.h: Likewise.
16036         * lib/unictype/categ_Cs.h: Likewise.
16037         * lib/unictype/categ_Lt.h: Likewise.
16038         * lib/unictype/categ_Nl.h: Likewise.
16039         * lib/unictype/categ_Pc.h: Likewise.
16040         * lib/unictype/categ_Pd.h: Likewise.
16041         * lib/unictype/categ_Pe.h: Likewise.
16042         * lib/unictype/categ_Pf.h: Likewise.
16043         * lib/unictype/categ_Pi.h: Likewise.
16044         * lib/unictype/categ_Ps.h: Likewise.
16045         * lib/unictype/categ_Z.h: Likewise.
16046         * lib/unictype/categ_Zl.h: Likewise.
16047         * lib/unictype/categ_Zp.h: Likewise.
16048         * lib/unictype/categ_Zs.h: Likewise.
16049         * lib/unictype/ctype_blank.h: Likewise.
16050         * lib/unictype/ctype_cntrl.h: Likewise.
16051         * lib/unictype/ctype_digit.h: Likewise.
16052         * lib/unictype/ctype_space.h: Likewise.
16053         * lib/unictype/ctype_xdigit.h: Likewise.
16054         * lib/unictype/mirror.h: Likewise.
16055         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16056         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16057         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16058         * lib/unictype/pr_bidi_control.h: Likewise.
16059         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16060         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16061         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16062         * lib/unictype/pr_bidi_pdf.h: Likewise.
16063         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16064         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16065         * lib/unictype/pr_dash.h: Likewise.
16066         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16067         * lib/unictype/pr_diacritic.h: Likewise.
16068         * lib/unictype/pr_extender.h: Likewise.
16069         * lib/unictype/pr_hex_digit.h: Likewise.
16070         * lib/unictype/pr_hyphen.h: Likewise.
16071         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16072         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16073         * lib/unictype/pr_ignorable_control.h: Likewise.
16074         * lib/unictype/pr_iso_control.h: Likewise.
16075         * lib/unictype/pr_join_control.h: Likewise.
16076         * lib/unictype/pr_left_of_pair.h: Likewise.
16077         * lib/unictype/pr_line_separator.h: Likewise.
16078         * lib/unictype/pr_logical_order_exception.h: Likewise.
16079         * lib/unictype/pr_non_break.h: Likewise.
16080         * lib/unictype/pr_not_a_character.h: Likewise.
16081         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16082         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16083         * lib/unictype/pr_other_id_start.h: Likewise.
16084         * lib/unictype/pr_other_lowercase.h: Likewise.
16085         * lib/unictype/pr_other_uppercase.h: Likewise.
16086         * lib/unictype/pr_paired_punctuation.h: Likewise.
16087         * lib/unictype/pr_paragraph_separator.h: Likewise.
16088         * lib/unictype/pr_pattern_syntax.h: Likewise.
16089         * lib/unictype/pr_pattern_white_space.h: Likewise.
16090         * lib/unictype/pr_private_use.h: Likewise.
16091         * lib/unictype/pr_quotation_mark.h: Likewise.
16092         * lib/unictype/pr_radical.h: Likewise.
16093         * lib/unictype/pr_soft_dotted.h: Likewise.
16094         * lib/unictype/pr_space.h: Likewise.
16095         * lib/unictype/pr_titlecase.h: Likewise.
16096         * lib/unictype/pr_variation_selector.h: Likewise.
16097         * lib/unictype/pr_white_space.h: Likewise.
16098         * lib/unictype/pr_zero_width.h: Likewise.
16099         * lib/unictype/sy_c_ident.h: Likewise.
16100         * lib/unictype/sy_c_whitespace.h: Likewise.
16101         * lib/unictype/sy_java_whitespace.h: Likewise.
16102         * lib/uninorm/composition-table.gperf: Likewise.
16103         * lib/uninorm/decomposition-table1.h: Likewise.
16104         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16105         LB8.
16106         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16107         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16108         * modules/unictype/*: Bump version number of expected libunistring
16109         version.
16110
16111 2011-01-09  Bruno Haible  <bruno@clisp.org>
16112
16113         Update to Unicode 5.2.0.
16114         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16115         trailing whitespace removed.
16116
16117 2011-01-09  Bruno Haible  <bruno@clisp.org>
16118
16119         New Unicode character properties, from Unicode 5.2.0.
16120         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16121         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16122         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16123         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16124         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16125         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16126         uc_is_property_cased, uc_is_property_case_ignorable,
16127         uc_is_property_changes_when_lowercased,
16128         uc_is_property_changes_when_uppercased,
16129         uc_is_property_changes_when_titlecased,
16130         uc_is_property_changes_when_casefolded,
16131         uc_is_property_changes_when_casemapped): New declarations.
16132         * lib/unictype/pr_byname.gperf: Add the new properties.
16133         * modules/unictype/property-byname (Depends-on): Depend on the new
16134         properties modules.
16135         * modules/unictype/property-all (Depends-on): Likewise.
16136         * MODULES.html.sh (Unicode string functions): Add
16137         unictype/property-case-ignorable, unictype/property-cased,
16138         unictype/property-changes-when-casefolded,
16139         unictype/property-changes-when-casemapped,
16140         unictype/property-changes-when-lowercased,
16141         unictype/property-changes-when-titlecased,
16142         unictype/property-changes-when-uppercased.
16143
16144         New module 'unictype/property-changes-when-casemapped'.
16145         * modules/unictype/property-changes-when-casemapped: New file.
16146         * lib/unictype/pr_changes_when_casemapped.c: New file.
16147         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16148         generated by gen-uni-tables.
16149         * modules/unictype/property-changes-when-casemapped-tests: New file.
16150         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16151         automatically generated by gen-uni-tables.
16152
16153         New module 'unictype/property-changes-when-casefolded'.
16154         * modules/unictype/property-changes-when-casefolded: New file.
16155         * lib/unictype/pr_changes_when_casefolded.c: New file.
16156         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16157         generated by gen-uni-tables.
16158         * modules/unictype/property-changes-when-casefolded-tests: New file.
16159         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16160         automatically generated by gen-uni-tables.
16161
16162         New module 'unictype/property-changes-when-titlecased'.
16163         * modules/unictype/property-changes-when-titlecased: New file.
16164         * lib/unictype/pr_changes_when_titlecased.c: New file.
16165         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16166         generated by gen-uni-tables.
16167         * modules/unictype/property-changes-when-titlecased-tests: New file.
16168         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16169         automatically generated by gen-uni-tables.
16170
16171         New module 'unictype/property-changes-when-uppercased'.
16172         * modules/unictype/property-changes-when-uppercased: New file.
16173         * lib/unictype/pr_changes_when_uppercased.c: New file.
16174         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16175         generated by gen-uni-tables.
16176         * modules/unictype/property-changes-when-uppercased-tests: New file.
16177         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16178         automatically generated by gen-uni-tables.
16179
16180         New module 'unictype/property-changes-when-lowercased'.
16181         * modules/unictype/property-changes-when-lowercased: New file.
16182         * lib/unictype/pr_changes_when_lowercased.c: New file.
16183         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16184         generated by gen-uni-tables.
16185         * modules/unictype/property-changes-when-lowercased-tests: New file.
16186         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16187         automatically generated by gen-uni-tables.
16188
16189         New module 'unictype/property-case-ignorable'.
16190         * modules/unictype/property-case-ignorable: New file.
16191         * lib/unictype/pr_case_ignorable.c: New file.
16192         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16193         by gen-uni-tables.
16194         * modules/unictype/property-case-ignorable-tests: New file.
16195         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16196         generated by gen-uni-tables.
16197
16198         New module 'unictype/property-cased'.
16199         * modules/unictype/property-cased: New file.
16200         * lib/unictype/pr_cased.c: New file.
16201         * lib/unictype/pr_cased.h: New file, automatically generated by
16202         gen-uni-tables.
16203         * modules/unictype/property-cased-tests: New file.
16204         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16205         gen-uni-tables.
16206
16207 2011-01-09  Bruno Haible  <bruno@clisp.org>
16208
16209         Update to Unicode 5.2.0.
16210         * lib/gen-uni-tables.c (output_predicate, output_category,
16211         output_combclass, output_bidi_category, output_decimal_digit_test,
16212         output_decimal_digit, output_digit_test, output_digit,
16213         output_numeric_test, output_numeric, output_mirror, output_scripts,
16214         output_scripts_byname, output_blocks, output_ident_category): Fix
16215         comment header.
16216         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16217         get_wbp.
16218         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16219         items.
16220         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16221         Changes_When_Lowercased, Changes_When_Uppercased,
16222         Changes_When_Titlecased, Changes_When_Casefolded,
16223         Changes_When_Casemapped.
16224         (is_property_alphabetic, is_property_default_ignorable_code_point):
16225         Update for Unicode 5.2.0.
16226         (is_property_cased, is_property_case_ignorable,
16227         is_property_changes_when_lowercased,
16228         is_property_changes_when_uppercased,
16229         is_property_changes_when_titlecased,
16230         is_property_changes_when_casefolded,
16231         is_property_changes_when_casemapped): New functions.
16232         (output_properties): Output also the properties cased, case_ignorable,
16233         changes_when_lowercased, changes_when_uppercased,
16234         changes_when_titlecased, changes_when_casefolded,
16235         changes_when_casemapped.
16236         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16237         Unicode TR#11 revision 17 -> 19.
16238         (LBP_CP): New enumeration value.
16239         (LBP_*): Adjust values accordingly.
16240         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16241         TR#14 revision 22 -> 24.
16242         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16243         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16244         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16245         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16246         is_WBP_MIDLETTER.
16247         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16248         the code1 and code2 of each composition rule.
16249         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16250         * lib/unicase/ignorable.h: Likewise.
16251         * lib/unicase/tocasefold.h: Likewise.
16252         * lib/unicase/tolower.h: Likewise.
16253         * lib/unicase/totitle.h: Likewise.
16254         * lib/unicase/toupper.h: Likewise.
16255         * lib/unictype/bidi_of.h: Likewise.
16256         * lib/unictype/blocks.h: Likewise.
16257         * lib/unictype/categ_C.h: Likewise.
16258         * lib/unictype/categ_Cf.h: Likewise.
16259         * lib/unictype/categ_Cn.h: Likewise.
16260         * lib/unictype/categ_L.h: Likewise.
16261         * lib/unictype/categ_Ll.h: Likewise.
16262         * lib/unictype/categ_Lm.h: Likewise.
16263         * lib/unictype/categ_Lo.h: Likewise.
16264         * lib/unictype/categ_Lu.h: Likewise.
16265         * lib/unictype/categ_M.h: Likewise.
16266         * lib/unictype/categ_Mc.h: Likewise.
16267         * lib/unictype/categ_Mn.h: Likewise.
16268         * lib/unictype/categ_N.h: Likewise.
16269         * lib/unictype/categ_Nd.h: Likewise.
16270         * lib/unictype/categ_Nl.h: Likewise.
16271         * lib/unictype/categ_No.h: Likewise.
16272         * lib/unictype/categ_P.h: Likewise.
16273         * lib/unictype/categ_Pd.h: Likewise.
16274         * lib/unictype/categ_Po.h: Likewise.
16275         * lib/unictype/categ_S.h: Likewise.
16276         * lib/unictype/categ_Sc.h: Likewise.
16277         * lib/unictype/categ_So.h: Likewise.
16278         * lib/unictype/categ_of.h: Likewise.
16279         * lib/unictype/combining.h: Likewise.
16280         * lib/unictype/ctype_alnum.h: Likewise.
16281         * lib/unictype/ctype_alpha.h: Likewise.
16282         * lib/unictype/ctype_graph.h: Likewise.
16283         * lib/unictype/ctype_lower.h: Likewise.
16284         * lib/unictype/ctype_print.h: Likewise.
16285         * lib/unictype/ctype_punct.h: Likewise.
16286         * lib/unictype/ctype_upper.h: Likewise.
16287         * lib/unictype/decdigit.h: Likewise.
16288         * lib/unictype/digit.h: Likewise.
16289         * lib/unictype/numeric.h: Likewise.
16290         * lib/unictype/pr_alphabetic.h: Likewise.
16291         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16292         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16293         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16294         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16295         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16296         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16297         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16298         * lib/unictype/pr_combining.h: Likewise.
16299         * lib/unictype/pr_composite.h: Likewise.
16300         * lib/unictype/pr_currency_symbol.h: Likewise.
16301         * lib/unictype/pr_dash.h: Likewise.
16302         * lib/unictype/pr_decimal_digit.h: Likewise.
16303         * lib/unictype/pr_deprecated.h: Likewise.
16304         * lib/unictype/pr_diacritic.h: Likewise.
16305         * lib/unictype/pr_extender.h: Likewise.
16306         * lib/unictype/pr_grapheme_base.h: Likewise.
16307         * lib/unictype/pr_grapheme_extend.h: Likewise.
16308         * lib/unictype/pr_grapheme_link.h: Likewise.
16309         * lib/unictype/pr_id_continue.h: Likewise.
16310         * lib/unictype/pr_id_start.h: Likewise.
16311         * lib/unictype/pr_ideographic.h: Likewise.
16312         * lib/unictype/pr_ignorable_control.h: Likewise.
16313         * lib/unictype/pr_logical_order_exception.h: Likewise.
16314         * lib/unictype/pr_lowercase.h: Likewise.
16315         * lib/unictype/pr_numeric.h: Likewise.
16316         * lib/unictype/pr_other_alphabetic.h: Likewise.
16317         * lib/unictype/pr_punctuation.h: Likewise.
16318         * lib/unictype/pr_sentence_terminal.h: Likewise.
16319         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16320         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16321         * lib/unictype/pr_unified_ideograph.h: Likewise.
16322         * lib/unictype/pr_uppercase.h: Likewise.
16323         * lib/unictype/pr_xid_continue.h: Likewise.
16324         * lib/unictype/pr_xid_start.h: Likewise.
16325         * lib/unictype/pr_zero_width.h: Likewise.
16326         * lib/unictype/scripts.h: Likewise.
16327         * lib/unictype/scripts_byname.gperf: Likewise.
16328         * lib/unictype/sy_java_ident.h: Likewise.
16329         * lib/unigbrk/gbrkprop.h: Likewise.
16330         * lib/unilbrk/lbrkprop1.h: Likewise.
16331         * lib/unilbrk/lbrkprop2.h: Likewise.
16332         * lib/unilbrk/lbrktables.h: Likewise.
16333         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16334         LBP_CP. Implement rule LB30.
16335         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16336         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16337         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16338         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16339         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16340         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16341         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16342         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16343         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16344         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16345         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16346         bits instead of 16 bits in the code1 and code2 of each composition
16347         rule.
16348         (uc_composition): Update for Unicode 5.2.0.
16349         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16350         * lib/uninorm/decomposition-table2.h: Likewise.
16351         * lib/uniwbrk/wbrkprop.h: Likewise.
16352         * tests/unicase/test-cased.c: Likewise.
16353         * tests/unicase/test-ignorable.c: Likewise.
16354         * tests/unicase/test-uc_tolower.c: Likewise.
16355         * tests/unicase/test-uc_totitle.c: Likewise.
16356         * tests/unicase/test-uc_toupper.c: Likewise.
16357         * tests/unictype/test-categ_C.c: Likewise.
16358         * tests/unictype/test-categ_Cf.c: Likewise.
16359         * tests/unictype/test-categ_Cn.c: Likewise.
16360         * tests/unictype/test-categ_L.c: Likewise.
16361         * tests/unictype/test-categ_Ll.c: Likewise.
16362         * tests/unictype/test-categ_Lm.c: Likewise.
16363         * tests/unictype/test-categ_Lo.c: Likewise.
16364         * tests/unictype/test-categ_Lu.c: Likewise.
16365         * tests/unictype/test-categ_M.c: Likewise.
16366         * tests/unictype/test-categ_Mc.c: Likewise.
16367         * tests/unictype/test-categ_Mn.c: Likewise.
16368         * tests/unictype/test-categ_N.c: Likewise.
16369         * tests/unictype/test-categ_Nd.c: Likewise.
16370         * tests/unictype/test-categ_Nl.c: Likewise.
16371         * tests/unictype/test-categ_No.c: Likewise.
16372         * tests/unictype/test-categ_P.c: Likewise.
16373         * tests/unictype/test-categ_Pd.c: Likewise.
16374         * tests/unictype/test-categ_Po.c: Likewise.
16375         * tests/unictype/test-categ_S.c: Likewise.
16376         * tests/unictype/test-categ_Sc.c: Likewise.
16377         * tests/unictype/test-categ_So.c: Likewise.
16378         * tests/unictype/test-ctype_alnum.c: Likewise.
16379         * tests/unictype/test-ctype_alpha.c: Likewise.
16380         * tests/unictype/test-ctype_graph.c: Likewise.
16381         * tests/unictype/test-ctype_lower.c: Likewise.
16382         * tests/unictype/test-ctype_print.c: Likewise.
16383         * tests/unictype/test-ctype_punct.c: Likewise.
16384         * tests/unictype/test-ctype_upper.c: Likewise.
16385         * tests/unictype/test-decdigit.h: Likewise.
16386         * tests/unictype/test-digit.h: Likewise.
16387         * tests/unictype/test-numeric.h: Likewise.
16388         * tests/unictype/test-pr_alphabetic.c: Likewise.
16389         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16390         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16391         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16392         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16393         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16394         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16395         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16396         * tests/unictype/test-pr_combining.c: Likewise.
16397         * tests/unictype/test-pr_composite.c: Likewise.
16398         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16399         * tests/unictype/test-pr_dash.c: Likewise.
16400         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16401         * tests/unictype/test-pr_deprecated.c: Likewise.
16402         * tests/unictype/test-pr_diacritic.c: Likewise.
16403         * tests/unictype/test-pr_extender.c: Likewise.
16404         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16405         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16406         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16407         * tests/unictype/test-pr_id_continue.c: Likewise.
16408         * tests/unictype/test-pr_id_start.c: Likewise.
16409         * tests/unictype/test-pr_ideographic.c: Likewise.
16410         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16411         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16412         * tests/unictype/test-pr_lowercase.c: Likewise.
16413         * tests/unictype/test-pr_numeric.c: Likewise.
16414         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16415         * tests/unictype/test-pr_punctuation.c: Likewise.
16416         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16417         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16418         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16419         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16420         * tests/unictype/test-pr_uppercase.c: Likewise.
16421         * tests/unictype/test-pr_xid_continue.c: Likewise.
16422         * tests/unictype/test-pr_xid_start.c: Likewise.
16423         * tests/unictype/test-pr_zero_width.c: Likewise.
16424         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16425         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16426         changed behaviour: line breaking is now disallowed between a letter
16427         or '=' and '('.
16428         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16429         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16430         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16431         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16432         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16433         lib/uniwidth/width.c.
16434         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16435         without comments, but with the original copyright notice.
16436         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16437         changes.
16438         * lib/unictype/categ_Cc.h: Likewise.
16439         * lib/unictype/categ_Co.h: Likewise.
16440         * lib/unictype/categ_Cs.h: Likewise.
16441         * lib/unictype/categ_Lt.h: Likewise.
16442         * lib/unictype/categ_Me.h: Likewise.
16443         * lib/unictype/categ_Pc.h: Likewise.
16444         * lib/unictype/categ_Pe.h: Likewise.
16445         * lib/unictype/categ_Pf.h: Likewise.
16446         * lib/unictype/categ_Pi.h: Likewise.
16447         * lib/unictype/categ_Ps.h: Likewise.
16448         * lib/unictype/categ_Sk.h: Likewise.
16449         * lib/unictype/categ_Sm.h: Likewise.
16450         * lib/unictype/categ_Z.h: Likewise.
16451         * lib/unictype/categ_Zl.h: Likewise.
16452         * lib/unictype/categ_Zp.h: Likewise.
16453         * lib/unictype/categ_Zs.h: Likewise.
16454         * lib/unictype/ctype_blank.h: Likewise.
16455         * lib/unictype/ctype_cntrl.h: Likewise.
16456         * lib/unictype/ctype_digit.h: Likewise.
16457         * lib/unictype/ctype_space.h: Likewise.
16458         * lib/unictype/ctype_xdigit.h: Likewise.
16459         * lib/unictype/mirror.h: Likewise.
16460         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16461         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16462         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16463         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16464         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16465         * lib/unictype/pr_bidi_control.h: Likewise.
16466         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16467         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16468         * lib/unictype/pr_bidi_pdf.h: Likewise.
16469         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16470         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16471         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16472         * lib/unictype/pr_format_control.h: Likewise.
16473         * lib/unictype/pr_hex_digit.h: Likewise.
16474         * lib/unictype/pr_hyphen.h: Likewise.
16475         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16476         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16477         * lib/unictype/pr_iso_control.h: Likewise.
16478         * lib/unictype/pr_join_control.h: Likewise.
16479         * lib/unictype/pr_left_of_pair.h: Likewise.
16480         * lib/unictype/pr_line_separator.h: Likewise.
16481         * lib/unictype/pr_math.h: Likewise.
16482         * lib/unictype/pr_non_break.h: Likewise.
16483         * lib/unictype/pr_not_a_character.h: Likewise.
16484         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16485         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16486         * lib/unictype/pr_other_id_continue.h: Likewise.
16487         * lib/unictype/pr_other_id_start.h: Likewise.
16488         * lib/unictype/pr_other_lowercase.h: Likewise.
16489         * lib/unictype/pr_other_math.h: Likewise.
16490         * lib/unictype/pr_other_uppercase.h: Likewise.
16491         * lib/unictype/pr_paired_punctuation.h: Likewise.
16492         * lib/unictype/pr_paragraph_separator.h: Likewise.
16493         * lib/unictype/pr_pattern_syntax.h: Likewise.
16494         * lib/unictype/pr_pattern_white_space.h: Likewise.
16495         * lib/unictype/pr_private_use.h: Likewise.
16496         * lib/unictype/pr_quotation_mark.h: Likewise.
16497         * lib/unictype/pr_radical.h: Likewise.
16498         * lib/unictype/pr_soft_dotted.h: Likewise.
16499         * lib/unictype/pr_space.h: Likewise.
16500         * lib/unictype/pr_titlecase.h: Likewise.
16501         * lib/unictype/pr_variation_selector.h: Likewise.
16502         * lib/unictype/pr_white_space.h: Likewise.
16503         * lib/unictype/sy_c_ident.h: Likewise.
16504         * lib/unictype/sy_c_whitespace.h: Likewise.
16505         * lib/unictype/sy_java_whitespace.h: Likewise.
16506         * modules/uni*/*: Bump version number of expected libunistring version.
16507         Reported by Simon Josefsson.
16508
16509 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16510
16511         useless-if-before-free: fix typo in --help and make the internal,
16512         automatic version date update process work once again.
16513         --help output contained a NUL character instead of the
16514         backslash-zero that was intended.  Also, the "must lie within
16515         the first 8 lines" line is on line 9, and hence not getting
16516         automatically updated.
16517         * build-aux/useless-if-before-free: Fix the former by adding a
16518         backslash, and the latter by condensing the three lines of what-it-does
16519         to a single line, leaving one line of slack for the future.
16520
16521 2011-01-09  Bruno Haible  <bruno@clisp.org>
16522
16523         uniwidth/width: Fix width of U+1D173..U+1D17A.
16524         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16525         symbolic_width, output_width_property_test): New functions.
16526         (main): Invoke output_nonspacing_property, output_width_property_test.
16527         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16528         U+1D173..U+1D17A.
16529         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16530         1.
16531         * modules/uniwidth/*: Bump version number of expected libunistring
16532         version.
16533         * modules/unilbrk/*: Likewise.
16534
16535 2011-01-08  Bruno Haible  <bruno@clisp.org>
16536
16537         uninorm tests: Preserve copyright of Unicode data file.
16538         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16539         Mention modifications.
16540
16541 2011-01-08  Bruno Haible  <bruno@clisp.org>
16542
16543         gen-uni-tables: Prepare for Unicode 5.2.0.
16544         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16545         (debug_output_lbp, output_lbp): Update.
16546
16547 2011-01-08  Bruno Haible  <bruno@clisp.org>
16548
16549         unilbrk: Clarify gen-uni-tables.c code.
16550         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16551         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16552         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16553
16554 2011-01-07  Bruno Haible  <bruno@clisp.org>
16555
16556         strtod: Restore errno when successfully parsing Infinity or NaN.
16557         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16558         restore the original errno.
16559
16560 2011-01-07  Bruno Haible  <bruno@clisp.org>
16561
16562         remove test: Avoid failure on HP-UX 11.
16563         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16564
16565 2011-01-07  Bruno Haible  <bruno@clisp.org>
16566
16567         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16568         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16569         error code.
16570
16571 2011-01-07  Pádraig Brady <P@draigBrady.com>
16572
16573         ignore-value: fixup comments, and add Eric Blake
16574         as an author since he rewrote the macros.
16575         * lib/ignore-value.h (ignore_value):  State that
16576         we now support aggregates.  Also specify exactly
16577         when the GCC warn_unused_result feature was added.
16578
16579 2011-01-06  Eric Blake  <eblake@redhat.com>
16580
16581         ignore-value: support aggregate types
16582         * lib/ignore-value.h (ignore_value): Provide separate gcc
16583         definition.
16584         * modules/ignore-value-tests: New test module.
16585         * tests/test-ignore-value.c: New test.
16586
16587         maint.mk: improve sc_prohibit_strcmp regex
16588         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16589         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16590         definition of STRNEQ.
16591
16592         signal: work around Haiku issue with SIGBUS
16593         * lib/siglist.h: Add comment.
16594         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16595         strsignal's favoring of SIGSEGV.
16596         * tests/test-signal.c (main): Avoid test failure.
16597         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16598         Reported by Scott McCreary.
16599
16600         maint.mk: add pre-release check to ensure submodule commits are public
16601         * top/maint.mk (public-submodule-commit): New rule.
16602         (submodule-checks): New variable.
16603         (alpha beta stable): Depend on the variable.
16604
16605 2011-01-05  Pádraig Brady <P@draigBrady.com>
16606         and Jim Meyering  <meyering@redhat.com>
16607
16608         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16609         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16610         (ATTRIBUTE_DEPRECATED): Define.
16611         (_ignore_case): New function.
16612         (ignore_value): New macro, to replace the old function.
16613         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16614         * modules/ignore-value (Depends-on): Add stdint.
16615
16616 2011-01-04  Eric Blake  <eblake@redhat.com>
16617
16618         doc: regenerate INSTALL
16619         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16620         @firstparagraphindent support, now that autoconf dropped it.
16621         (INSTALL_PRELUDE): Reinstate old macro.
16622         * doc/install.texi: Resync from autoconf.
16623         * doc/INSTALL: Reflect recent autoconf update.
16624         * doc/INSTALL.ISO: Likewise.
16625         * doc/INSTALL.UTF-8: Likewise.
16626         Reported by Karl Berry.
16627
16628 2011-01-04  Bruce Korb  <address@hidden>
16629
16630         git-version-gen: avoid a sub-shell
16631         * build-aux/git-version-gen: Redirect stderr in `...` via
16632         "exec 2>...", rather than via an added sub-shell.
16633
16634 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16635
16636         git-version-gen: use (...) rather than sh -c '...'
16637         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16638         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16639
16640 2011-01-03  Jim Meyering  <meyering@redhat.com>
16641
16642         git-version-gen: convert leading TABs to spaces
16643         * build-aux/git-version-gen: Expand leading TABs.
16644
16645         git-version-gen: handle failed "git rev-list"
16646         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16647         from git and proceeding as if it had succeeded but printed no SHA1
16648         checksums, suppress the diagnostic and handle the failure.
16649         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16650
16651         git-version-gen: include command name in one more diagnostic
16652         * build-aux/git-version-gen: When the required .tarball-version file
16653         was missing or unreadable, you might see the diagnostic from "cat",
16654         but no trace of the name of the invoking script.  Now, you still see
16655         the diagnostic from cat, but also get one from "git-version-gen: ".
16656         Inspired by a patch from Bruce Korb.
16657
16658         update-copyright: adjust test to match changed code
16659         * tests/test-update-copyright.sh: Change test's expected output
16660         to match new actual output.
16661
16662 2011-01-02  Bruno Haible  <bruno@clisp.org>
16663
16664         getlogin_r: Avoid test failure on HP-UX 11.
16665         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16666         ERANGE when the second argument is zero.
16667         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16668         portability problem.
16669
16670 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16671
16672         * build-aux/update-copyright: doc Simon's changes
16673
16674 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16675
16676         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16677         environment variable.
16678
16679 2011-01-02  Bruno Haible  <bruno@clisp.org>
16680
16681         unigbrk: Avoid gcc warnings.
16682         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16683         unused variable.
16684         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16685         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16686         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16687         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16688         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16689         Change type of first argument to 'const char *'.
16690         (main): Remove unused variable.
16691         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16692         type of first argument to 'const char *'.
16693         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16694         Likewise.
16695         (main): Change type of variable 's'.
16696         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16697         to 'int'.
16698
16699 2011-01-02  Bruno Haible  <bruno@clisp.org>
16700
16701         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16702         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16703         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16704         bug.
16705         * lib/pwrite.c: Undo 2010-12-31 patch.
16706         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16707
16708 2011-01-02  Bruno Haible  <bruno@clisp.org>
16709
16710         pread: Fix test whether it works.
16711         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16712
16713 2011-01-02  Bruno Haible  <bruno@clisp.org>
16714
16715         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16716         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16717         ends in "6". Don't require a specific month name. Try also the locale
16718         names found on HP-UX 11 and Solaris 7.
16719
16720 2011-01-02  Bruno Haible  <bruno@clisp.org>
16721
16722         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16723         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16724         C linkage.
16725         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16726
16727 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16728
16729         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16730         for consistency, since the "cluster" term is not used elsewhere.
16731         * lib/unigbrk.in.h: Update name.
16732         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16733         * lib/unigbrk/u16-grapheme-next.c: Update name.
16734         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16735         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16736         * lib/unigbrk/u32-grapheme-next.c: Update name.
16737         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16738         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16739         * lib/unigbrk/u8-grapheme-next.c: Update name.
16740         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16741         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16742         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16743         Suggested by Bruno Haible.
16744
16745 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16746
16747         Remove module 'u8-grapheme-len' as too redundant with
16748         'u8-grapheme-next'.
16749         * modules/unigbrk/u8-grapheme-len: Delete file.
16750         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16751         * lib/unigbrk.in.h: Remove prototype for deleted function.
16752         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16753         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16754
16755         Remove module 'u16-grapheme-len' as too redundant with
16756         'u16-grapheme-next'.
16757         * modules/unigbrk/u16-grapheme-len: Delete file.
16758         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16759         * lib/unigbrk.in.h: Remove prototype for deleted function.
16760         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16761         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16762
16763         Remove module 'u32-grapheme-len' as too redundant with
16764         'u32-grapheme-next'.
16765         * modules/unigbrk/u32-grapheme-len: Delete file.
16766         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16767         * lib/unigbrk.in.h: Remove prototype for deleted function.
16768         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16769         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16770
16771         Suggested by Bruno Haible.
16772
16773 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16774
16775         * unigbrk.in.h: Fix typo: "ben" => "been".
16776         Reported by Bruno Haible.
16777
16778 2011-01-01  Jim Meyering  <meyering@redhat.com>
16779
16780         maint: update almost all copyright ranges to include 2011
16781         Run the new "make update-copyright" rule.
16782
16783 2011-01-01  Jim Meyering  <meyering@redhat.com>
16784
16785         maint: update-copyright: exempt doc/INSTALL*
16786         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16787         since they are generated.  Suggested by Bruno Haible.
16788
16789 2011-01-01  Jim Meyering  <meyering@redhat.com>
16790
16791         maint: refine the update-copyright rule
16792         * Makefile (update-copyright): Also exclude any file that includes
16793         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16794         code that merely generates the comment.
16795
16796 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16797
16798         New module 'u8-grapheme-len'.
16799         * modules/unigbrk/u8-grapheme-len: New file.
16800         * modules/unigbrk/u8-grapheme-len-tests: New file.
16801         * lib/unigbrk.in.h: Add prototype for new function.
16802         * lib/unigbrk/u8-grapheme-len.c: New file.
16803         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16804
16805         New module 'u16-grapheme-len'.
16806         * modules/unigbrk/u16-grapheme-len: New file.
16807         * modules/unigbrk/u16-grapheme-len-tests: New file.
16808         * lib/unigbrk.in.h: Add prototype for new function.
16809         * lib/unigbrk/u16-grapheme-len.c: New file.
16810         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16811
16812         New module 'u32-grapheme-len'.
16813         * modules/unigbrk/u32-grapheme-len: New file.
16814         * modules/unigbrk/u32-grapheme-len-tests: New file.
16815         * lib/unigbrk.in.h: Add prototype for new function.
16816         * lib/unigbrk/u32-grapheme-len.c: New file.
16817         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16818
16819         New module 'u8-grapheme-next'.
16820         * modules/unigbrk/u8-grapheme-next: New file.
16821         * modules/unigbrk/u8-grapheme-next-tests: New file.
16822         * lib/unigbrk.in.h: Add prototype for new function.
16823         * lib/unigbrk/u8-grapheme-next.c: New file.
16824         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16825
16826         New module 'u16-grapheme-next'.
16827         * modules/unigbrk/u16-grapheme-next: New file.
16828         * modules/unigbrk/u16-grapheme-next-tests: New file.
16829         * lib/unigbrk.in.h: Add prototype for new function.
16830         * lib/unigbrk/u16-grapheme-next.c: New file.
16831         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16832
16833         New module 'u32-grapheme-next'.
16834         * modules/unigbrk/u32-grapheme-next: New file.
16835         * modules/unigbrk/u32-grapheme-next-tests: New file.
16836         * lib/unigbrk.in.h: Add prototype for new function.
16837         * lib/unigbrk/u32-grapheme-next.c: New file.
16838         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16839
16840         New module 'u8-grapheme-prev'.
16841         * modules/unigbrk/u8-grapheme-prev: New file.
16842         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16843         * lib/unigbrk.in.h: Add prototype for new function.
16844         * lib/unigbrk/u8-grapheme-prev.c: New file.
16845         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16846
16847         New module 'u16-grapheme-prev'.
16848         * modules/unigbrk/u16-grapheme-prev: New file.
16849         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16850         * lib/unigbrk.in.h: Add prototype for new function.
16851         * lib/unigbrk/u16-grapheme-prev.c: New file.
16852         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16853
16854         New module 'u32-grapheme-prev'.
16855         * modules/unigbrk/u32-grapheme-prev: New file.
16856         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16857         * lib/unigbrk.in.h: Add prototype for new function.
16858         * lib/unigbrk/u32-grapheme-prev.c: New file.
16859         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16860
16861         New module 'u8-grapheme-breaks'.
16862         * modules/unigbrk/u8-grapheme-breaks: New file.
16863         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16864         * lib/unigbrk.in.h: Add prototype for new function.
16865         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16866         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16867
16868         New module 'u16-grapheme-breaks'.
16869         * modules/unigbrk/u16-grapheme-breaks: New file.
16870         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16871         * lib/unigbrk.in.h: Add prototype for new function.
16872         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16873         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16874
16875         New module 'u32-grapheme-breaks'.
16876         * modules/unigbrk/u32-grapheme-breaks: New file.
16877         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16878         * lib/unigbrk.in.h: Add prototype for new function.
16879         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16880         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16881
16882         New module 'ulc-grapheme-breaks'.
16883         * modules/unigbrk/ulc-grapheme-breaks: New file.
16884         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16885         * m4/locale-ar.m4: New file.
16886         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16887         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16888         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16889
16890 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16891
16892         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16893         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16894         modified how this file was generated before I initially submitted
16895         the module, but failed to regenerate it.  This meant that several
16896         of the level2 entries were wrong.
16897         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16898         Remove the division-by-2 that is folded into the table now that
16899         gbrkprop.h has been regenerated properly.  Now -1 entries are
16900         handled correctly.
16901
16902         New module 'unigbrk/uc-gbrk-prop-tests'.
16903         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16904         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16905         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16906         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16907
16908 2011-01-01  Bruno Haible  <bruno@clisp.org>
16909
16910         Avoid use of hexadecimal escapes.
16911         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16912         instead of hexadecimal escapes.
16913
16914 2011-01-01  Jim Meyering  <meyering@redhat.com>
16915
16916         maint: new rule to update copyright year ranges
16917         * Makefile (update-copyright): New rule.
16918
16919         maint: indent with TABs in Makefile
16920         * Makefile: Expand leading sequences of spaces to TABs
16921
16922         version-etc: update the copyright year it reports
16923         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16924
16925 2010-12-31  Bruno Haible  <bruno@clisp.org>
16926
16927         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16928         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16929         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16930         zero.
16931
16932 2010-12-31  Bruno Haible  <bruno@clisp.org>
16933
16934         pwrite: Work around HP-UX 11.11 bug.
16935         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16936         works and set REPLACE_PWRITE if not.
16937         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16938         function.
16939         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16940
16941 2010-12-31  Bruno Haible  <bruno@clisp.org>
16942
16943         pread: Work around HP-UX 11 bugs.
16944         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16945         and set REPLACE_PREAD if not.
16946         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16947
16948 2010-12-31  Eric Blake  <eblake@redhat.com>
16949
16950         nl_langinfo: fix YESEXPR on Irix 6.5
16951         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16952         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16953         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16954         it.
16955
16956 2010-12-31  Bruno Haible  <bruno@clisp.org>
16957
16958         iconv: Document HP-UX 11 bug.
16959         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16960
16961 2010-12-31  Bruno Haible  <bruno@clisp.org>
16962
16963         ldexpl: Fix link error on HP-UX 11.
16964         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16965         LDEXPL_LIBM, using $ISNANL_LIBM.
16966
16967 2010-12-31  Eric Blake  <eblake@redhat.com>
16968
16969         ftello: avoid compilation failure with SunStudio c89
16970         * lib/ftello.c (ftello): Use lseek, not llseek.
16971
16972         tests: avoid failing coreutils tests on cygwin
16973         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16974         (create_exe_shims_): Return 0 when skipping.
16975
16976 2010-12-31  Bruno Haible  <bruno@clisp.org>
16977
16978         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16979         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16980
16981 2010-12-31  Bruno Haible  <bruno@clisp.org>
16982
16983         waitpid: Fix link error in C++ mode.
16984         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16985
16986 2010-12-31  Bruno Haible  <bruno@clisp.org>
16987
16988         isnan: Use GCC built-ins when possible.
16989         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16990         __builtin_isnan.
16991         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16992         (isnan): Define using GCC built-ins for GCC >= 4.0.
16993
16994 2010-12-31  Bruno Haible  <bruno@clisp.org>
16995
16996         isnand: Fix mistake.
16997         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16998         __builtin_isnand.
16999
17000 2010-12-31  Bruno Haible  <bruno@clisp.org>
17001
17002         open: Avoid C++ error on HP-UX 11.
17003         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17004
17005 2010-12-31  Bruno Haible  <bruno@clisp.org>
17006
17007         time_r: Add missing declarations on HP-UX 11.
17008         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17009         instead of HAVE_LOCALTIME_R.
17010         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17011         HAVE_LOCALTIME_R always.
17012         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17013         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17014         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17015         HAVE_LOCALTIME_R.
17016         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17017         * doc/posix-functions/localtime_r.texi: Likewise.
17018
17019 2010-12-29  Eric Blake  <eblake@redhat.com>
17020
17021         mountlist: tweak previous commit
17022         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17023         Reported by Paul Eggert.
17024
17025         mountlist: fix local drive detection on cygwin
17026         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17027         that works for cygwin.
17028
17029 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17030
17031         ftoastr, snprintf: ftoastr + snprintf module
17032         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17033         since the snprintf module now should be good enough here.
17034         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17035         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17036         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17037         GNULIB_SNPRINTF only for the test directory, and the latter
17038         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17039         seems to suffice by itself.
17040
17041 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17042
17043         alloca: one step towards thread-safety
17044         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17045         need for a static variable.  All callers changed.  This does not
17046         make the alloca replacement thread-safe, but it's one step.
17047
17048         tests: minor indenting change
17049         * tests/init.sh: Sync from coreutils housekeeping patch
17050         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17051         to keep lines within 80 columns.
17052
17053 2010-12-28  Jim Meyering  <meyering@redhat.com>
17054
17055         regex: don't infloop on persistent failing calloc
17056         * lib/regexec.c (build_trtable): Return failure indication upon
17057         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17058         In glibc, this was fixed for version 2.13:
17059         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17060
17061 2010-12-28  Bruno Haible  <bruno@clisp.org>
17062             Paul Eggert <eggert@cs.ucla.edu>
17063
17064         linkat: Make implementation robust against system behaviour variations.
17065         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17066         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17067         way, and to -2 if it needs a generic runtime test.
17068         * lib/linkat.c (solaris_optimized_link_immediate,
17069         solaris_optimized_link_follow): New functions.
17070         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17071         (check_same_link): Use it.
17072
17073 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17074
17075         New module 'unigbrk/base'.
17076         * modules/unigbrk/base: New file.
17077         * lib/unigbrk.in.h: New file.
17078
17079         New module 'unigbrk/uc-gbrk-prop'.
17080         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17081         * modules/unigbrk/uc-gbrk-prop: New file.
17082         * lib/unigbrk/gbrkprop.h: New file.
17083         * lib/unigbrk/uc-gbrk-prop.c: New file.
17084
17085         New module 'unigbrk/uc-is-grapheme-break'.
17086         * modules/unigbrk/uc-is-grapheme-break: New file.
17087         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17088         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17089         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17090         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17091         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17092
17093         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17094
17095 2010-12-27  Bruno Haible  <bruno@clisp.org>
17096
17097         linkat test: Avoid failure on Solaris 11 2010-11.
17098         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17099
17100 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17101
17102         utimens: work around glibc rounding bug on more platforms
17103         * lib/utimens.c (fdutimens): Work around rounding bug even if
17104         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17105         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17106
17107 2010-12-27  Bruno Haible  <bruno@clisp.org>
17108
17109         select tests: Improve comments.
17110         * tests/test-select.c (do_select): Add comments.
17111
17112 2010-12-27  Bruno Haible  <bruno@clisp.org>
17113
17114         select tests: Safer way of handling timeout.
17115         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17116         at every invocation.
17117
17118 2010-12-27  Bruno Haible  <bruno@clisp.org>
17119
17120         select tests: Use 'bool' where appropriate.
17121         * tests/test-select.c (connect_to_socket): Change argument type to
17122         'bool'.
17123
17124 2010-12-27  Bruno Haible  <bruno@clisp.org>
17125
17126         select tests: Use existing modules.
17127         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17128         (configure.ac): Don't test for unistd.h.
17129         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17130         declared in <unistd.h>.
17131
17132 2010-12-27  Bruno Haible  <bruno@clisp.org>
17133
17134         mbrtowc: Work around a Solaris 7 bug.
17135         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17136         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17137         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17138         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17139         MBRTOWC_NULL_ARG1_BUG.
17140         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17141         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17142         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17143         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17144
17145 2010-12-27  Jim Meyering  <meyering@redhat.com>
17146
17147         read-file.c: tweak syntax
17148         * lib/read-file.c (fread_file): Remove space after "*" in function
17149         definitions.
17150
17151 2010-12-27  Bruno Haible  <bruno@clisp.org>
17152
17153         times test: Avoid gcc warnings on OSF/1.
17154         * tests/test-times.c (main): Cast printf arguments from clock_t to
17155         'long int'.
17156
17157 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17158
17159         utimens: work around glibc rounding bug on older Linux kernels
17160         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17161         on Linux with a glibc whose utimes might not work, then work
17162         around a longstanding glibc bug involving rounding rather than
17163         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17164         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17165
17166 2010-12-26  Bruno Haible  <bruno@clisp.org>
17167
17168         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17169         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17170         _GL_CXXALIAS_SYS.
17171         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17172
17173 2010-12-26  Bruno Haible  <bruno@clisp.org>
17174
17175         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17176         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17177         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17178         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17179         looking for the declaration.
17180         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17181         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17182         problem.
17183         * doc/posix-functions/inet_pton.texi: Likewise.
17184
17185 2010-12-26  Bruno Haible  <bruno@clisp.org>
17186
17187         arpa_inet: Use the common idioms with C++ support.
17188         * lib/arpa_inet.in.h: Include c++defs.h.
17189         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17190         support.
17191         * modules/arpa_inet (Depends-on): Add c++defs.
17192         (Makefile.am): Substitute the contents of c++defs.h.
17193         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17194         * modules/arpa_inet-c++-tests: New file.
17195         * tests/test-arpa_inet-c++.cc: New file.
17196
17197 2010-12-25  Bruno Haible  <bruno@clisp.org>
17198
17199         Fix more C++ link errors on Solaris 8.
17200         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17201         $(LIB_EACCESS).
17202         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17203         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17204         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17205         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17206         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17207
17208 2010-12-25  Bruno Haible  <bruno@clisp.org>
17209
17210         printf-posix: Fix link error when a non-GCC compiler is used.
17211         * lib/stdio.in.h (printf): When not using GCC, override printf
17212         correctly.
17213         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17214
17215 2010-12-25  Bruno Haible  <bruno@clisp.org>
17216
17217         strerror_r-posix: Update doc.
17218         * doc/posix-functions/strerror_r.texi: Update doc about the return
17219         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17220
17221 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17222
17223         utimens: simplify the logic of the previous change
17224         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17225         This should not affect whether the test succeeds or fails.
17226
17227         utimens: configure better on hosts with NFS clock skew
17228         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17229         uses the clock of the local host.  It might use the clock of the
17230         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17231         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17232
17233 2010-12-25  Bruno Haible  <bruno@clisp.org>
17234
17235         ptsname test: Avoid failure on Solaris.
17236         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17237         open a pseudo-terminal; don't use BSD-style ptys.
17238         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17239
17240 2010-12-25  Bruno Haible  <bruno@clisp.org>
17241
17242         ptsname: Avoid ERANGE failure on some systems.
17243         * lib/ptsname.c (buffer): Increase size.
17244
17245 2010-12-25  Bruno Haible  <bruno@clisp.org>
17246
17247         rename, renameat: Avoid test failures at NFS mounted locations.
17248         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17249         so that subsequent mkdir calls succeed.
17250
17251 2010-12-25  Bruno Haible  <bruno@clisp.org>
17252
17253         iswblank: Fix C++ link error on Solaris 8.
17254         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17255         _GL_FUNCDECL_SYS.
17256
17257 2010-12-25  Bruno Haible  <bruno@clisp.org>
17258
17259         unistd: Fix C++ link error on Solaris 8.
17260         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17261
17262 2010-12-25  Bruno Haible  <bruno@clisp.org>
17263
17264         readlink doc: Mention an old glibc bug.
17265         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17266
17267 2010-12-25  Bruno Haible  <bruno@clisp.org>
17268
17269         fcntl-h: Fix for use of C++ on glibc systems.
17270         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17271         also on glibc systems in C++ mode.
17272         Reported by Gary V. Vaughan <gary@gnu.org>.
17273
17274 2010-12-25  Bruno Haible  <bruno@clisp.org>
17275
17276         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17277         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17278
17279 2010-12-25  Bruno Haible  <bruno@clisp.org>
17280
17281         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17282         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17283         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17284         test whether truncl works according to ISO C 99 with IEC 60559.
17285         * m4/truncl-ieee.m4: New file.
17286         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17287         m4/signbit.m4.
17288         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17289
17290 2010-12-25  Bruno Haible  <bruno@clisp.org>
17291
17292         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17293         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17294         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17295         test whether ceill works according to ISO C 99 with IEC 60559.
17296         * m4/ceill-ieee.m4: New file.
17297         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17298         m4/signbit.m4.
17299         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17300
17301 2010-12-25  Bruno Haible  <bruno@clisp.org>
17302
17303         Ensure all prerequisites of <wchar.h> are included.
17304         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17305         before <wchar.h>.
17306         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17307         gl_MBRLEN_NUL_RETVAL): Likewise.
17308         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17309         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17310         AC_FUNC_MBRTOWC): Likewise.
17311         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17312         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17313         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17314         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17315         Likewise.
17316         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17317         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17318         (gl_WCHAR_H): Improve comments.
17319         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17320
17321 2010-12-25  Bruno Haible  <bruno@clisp.org>
17322
17323         strtok_r: Fix C syntax error in autoconf macro.
17324         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17325         characters in test program.
17326
17327 2010-12-24  Bruno Haible  <bruno@clisp.org>
17328
17329         ceil, trunc, round: Fix gcc warnings.
17330         * lib/ceil.c (MIN): Undefine before redefining.
17331         * lib/trunc.c (MIN): Likewise.
17332         * lib/round.c (MIN): Likewise.
17333         Include <math.h> first.
17334
17335 2010-12-24  Bruno Haible  <bruno@clisp.org>
17336
17337         select tests: Avoid failures on OSF/1 5.1.
17338         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17339         failure of closing the last socket; it may fail with ECONNRESET.
17340
17341 2010-12-24  Eric Blake  <eblake@redhat.com>
17342
17343         stdint: avoid HP-UX 10.20 preprocessor bug
17344         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17345         than #if.
17346         * tests/test-floor2.c (main): Likewise.
17347         Reported by Peter O'Gorman.
17348
17349         pipe: make obsoletion transition easier
17350         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17351         * modules/pipe (Files): Include revived file.
17352         (Include): Drop reference, to mirror getdate's behavior.
17353
17354 2010-12-24  Bruno Haible  <bruno@clisp.org>
17355
17356         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17357         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17358         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17359         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17360
17361 2010-12-24  Bruno Haible  <bruno@clisp.org>
17362
17363         gethostname: Ensure declaration on NonStop Kernel.
17364         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17365         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17366
17367 2010-12-24  Bruno Haible  <bruno@clisp.org>
17368
17369         sys_select: Ensure all necessary types on NonStop Kernel.
17370         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17371         include <sys/time.h>.
17372         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17373         NonStop Kernel.
17374         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17375
17376 2010-12-24  Bruno Haible  <bruno@clisp.org>
17377
17378         sys_select: Remove unneeded include.
17379         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17380         have <sys/select.h>.
17381
17382 2010-12-24  Bruno Haible  <bruno@clisp.org>
17383
17384         gethostname: Provide a fallback for HOST_NAME_MAX.
17385         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17386         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17387         instead.
17388         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17389
17390 2010-12-24  Bruno Haible  <bruno@clisp.org>
17391
17392         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17393         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17394         (SA_RESTART): Likewise.
17395         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17396
17397 2010-12-24  Bruno Haible  <bruno@clisp.org>
17398
17399         signal: Define NSIG.
17400         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17401         * tests/test-signal.c (nsig): New variable.
17402         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17403
17404 2010-12-24  Bruno Haible  <bruno@clisp.org>
17405
17406         rename, renameat: Avoid test failures on OSF/1 5.1.
17407         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17408         alternative error codes.
17409         * tests/test-renameat.c (main): Likewise.
17410
17411 2010-12-24  Bruno Haible  <bruno@clisp.org>
17412
17413         *printf: Detect large precisions bug on Solaris 10/SPARC.
17414         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17415         by Paul Eggert.
17416         * tests/test-snprintf-posix.h (test_function): Add this test code here
17417         too.
17418         * tests/test-sprintf-posix.h (test_function): Likewise.
17419         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17420         * tests/test-vasprintf-posix.c (test_function): Likewise.
17421         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17422         around by gnulib.
17423         * doc/posix-functions/printf.texi: Likewise.
17424         * doc/posix-functions/snprintf.texi: Likewise.
17425         * doc/posix-functions/sprintf.texi: Likewise.
17426         * doc/posix-functions/vfprintf.texi: Likewise.
17427         * doc/posix-functions/vprintf.texi: Likewise.
17428         * doc/posix-functions/vsnprintf.texi: Likewise.
17429         * doc/posix-functions/vsprintf.texi: Likewise.
17430         * doc/posix-functions/dprintf.texi: Undo last commit.
17431         * doc/posix-functions/vdprintf.texi: Likewise.
17432
17433 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17434
17435         tests: port test-fdutimensat.c to Solaris 8
17436         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17437         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17438         On Solaris 8, it fails with errno == ENOSYS, because there is no
17439         futimens (so it can't use the fd), and there is no lutimens (so it
17440         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17441
17442         vsnprintf: make more consistent with snprintf; doc fixes
17443
17444         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17445         the byte count return problem was promoted from the snprintf-posix
17446         to the snprintf module.
17447         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17448         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17449         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17450         * tests/test-snprintf.c (main): Check the byte count returned.
17451         * tests/test-vsnprintf.c (main): Likewise.
17452
17453 2010-12-23  Eric Blake  <eblake@redhat.com>
17454
17455         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17456         * modules/sigpipe (License): Relax license.
17457
17458 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17459
17460         doc: document Solaris printf bug with large float precisions
17461         * doc/posix-functions/dprintf.texi (dprintf):
17462         * doc/posix-functions/fprintf.texi (fprintf):
17463         * doc/posix-functions/printf.texi (printf):
17464         * doc/posix-functions/snprintf.texi (snprintf):
17465         * doc/posix-functions/sprintf.texi (sprintf):
17466         * doc/posix-functions/vdprintf.texi (vdprintf):
17467         * doc/posix-functions/vfprintf.texi (vfprintf):
17468         * doc/posix-functions/vprintf.texi (vprintf):
17469         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17470         * doc/posix-functions/vsprintf.texi (vsprintf):
17471         Mention that these functions mishandle large floating point
17472         precisions on Solaris 10.  The same bug is also present in Solaris
17473         8, and I assume earlier.  This causes "cd gnulib-tests; make
17474         check" to fail on Solaris 8 (and I assume, later) when building
17475         the latest coreutils, in test-vasprintf-posix's call to
17476         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17477         the wide flavors (e.g., wprintf) so this patch just updates the
17478         documentation for the narrow ones.
17479
17480         test-posixtm.c: add two tests
17481         * tests/test-posixtm.c: Add two tests, to highlight the
17482         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17483         around this bug; this is merely to document it.
17484
17485 2010-12-22  Bruno Haible  <bruno@clisp.org>
17486
17487         getlogin_r: Work around portability problem on OSF/1.
17488         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17489         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17490         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17491         test for a truncated result.
17492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17493         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17494         * modules/getlogin_r (Depends-on): Add memchr.
17495         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17496
17497 2010-12-22  Bruno Haible  <bruno@clisp.org>
17498
17499         ptsname: Avoid test failure on OSF/1 5.1.
17500         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17501         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17502         (same_slave): New function.
17503         (main): Use it to compare ptsname's result with the expected file name.
17504
17505 2010-12-22  Bruno Haible  <bruno@clisp.org>
17506
17507         Port extended stdio modules to HP NonStop Kernel.
17508         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17509         macros.
17510         * lib/fbufmode.c: Update comments.
17511         * lib/fflush.c: Likewise.
17512         * lib/fpurge.c: Likewise.
17513         * lib/freadable.c: Likewise.
17514         * lib/freadahead.c: Likewise.
17515         * lib/freading.c: Likewise.
17516         * lib/freadptr.c: Likewise.
17517         * lib/freadseek.c: Likewise.
17518         * lib/fseeko.c: Likewise.
17519         * lib/fseterr.c: Likewise.
17520         * lib/fwritable.c: Likewise.
17521         * lib/fwriting.c: Likewise.
17522         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17523
17524 2010-12-22  Bruno Haible  <bruno@clisp.org>
17525
17526         ttyname_r: Work around bug on OSF/1 5.1.
17527         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17528         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17529         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17530         present.
17531         * lib/ttyname_r.c (ttyname_r): Update comments.
17532
17533 2010-12-22  Bruno Haible  <bruno@clisp.org>
17534
17535         round: Implement result sign according to IEEE 754.
17536         * lib/round.c (MIN, MINUS_ZERO): New macros.
17537         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17538         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17539         * tests/test-round-ieee.c (main): Likewise.
17540         * tests/test-roundl-ieee.c (main): Likewise.
17541
17542         trunc: Implement result sign according to IEEE 754.
17543         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17544         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17545         * tests/test-trunc2.c: Include minus-zero.h.
17546         (MINUS_ZERO): New macro.
17547         (trunc_reference): Keep in sync with lib/trunc.c.
17548         * tests/test-truncf2.c: Include minus-zero.h.
17549         (MINUS_ZERO): New macro.
17550         (truncf_reference): Keep in sync with lib/trunc.c.
17551         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17552         * tests/test-trunc-ieee.c (main): Likewise.
17553         * tests/test-truncl-ieee.c (main): Likewise.
17554
17555         ceil: Implement result sign according to IEEE 754.
17556         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17557         (FUNC): Return -0.0 for -1 < x < 0.
17558         * tests/test-ceil2.c: Include minus-zero.h.
17559         (MINUS_ZERO): New macro.
17560         (ceil_reference): Keep in sync with lib/ceil.c.
17561         * tests/test-ceilf2.c: Include minus-zero.h.
17562         (MINUS_ZERO): New macro.
17563         (ceilf_reference): Keep in sync with lib/ceil.c.
17564         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17565         * tests/test-ceil-ieee.c (main): Likewise.
17566         * tests/test-ceill-ieee.c (main): Likewise.
17567
17568         floor: Implement result sign according to IEEE 754.
17569         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17570         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17571         * tests/test-floorf2.c (floorf_reference): Likewise.
17572         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17573         * tests/test-floor-ieee.c (main): Likewise.
17574         * tests/test-floorl-ieee.c (main): Likewise.
17575
17576 2010-12-22  Bruno Haible  <bruno@clisp.org>
17577
17578         getaddrinfo: Update doc.
17579         * doc/posix-functions/gai_strerror.texi: Return type is also different
17580         on AIX and HP-UX.
17581
17582 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17583
17584         getaddrinfo, inet_ntop: Update doc for Solaris.
17585         * doc/posix-functions/gai_strerror.texi: Return type is also an
17586         issue on Solaris 9 and earlier.
17587         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17588         on Solaris 10 and earlier.
17589
17590 2010-12-21  Bruno Haible  <bruno@clisp.org>
17591
17592         New module 'roundl-ieee'.
17593         * modules/roundl-ieee: New file.
17594         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17595         test whether roundl works according to ISO C 99 with IEC 60559.
17596         * m4/roundl-ieee.m4: New file.
17597         * modules/roundl-ieee-tests: New file.
17598         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17599         * tests/test-roundl.c (main): Remove signbit tests.
17600         * modules/roundl-tests (Depends-on): Remove signbit.
17601         * doc/posix-functions/roundl.texi: Mention the new module.
17602
17603 2010-12-21  Bruno Haible  <bruno@clisp.org>
17604
17605         New module 'truncl-ieee'.
17606         * modules/truncl-ieee: New file.
17607         * modules/truncl-ieee-tests: New file.
17608         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17609         * tests/test-truncl.c (main): Remove signbit tests.
17610         * modules/truncl-tests (Depends-on): Remove signbit.
17611         * doc/posix-functions/truncl.texi: Mention the new module.
17612
17613 2010-12-21  Bruno Haible  <bruno@clisp.org>
17614
17615         New module 'ceill-ieee'.
17616         * modules/ceill-ieee: New file.
17617         * modules/ceill-ieee-tests: New file.
17618         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17619         * tests/test-ceill.c (main): Remove signbit tests.
17620         * modules/ceill-tests (Depends-on): Remove signbit.
17621         * doc/posix-functions/ceill.texi: Mention the new module.
17622
17623 2010-12-21  Bruno Haible  <bruno@clisp.org>
17624
17625         New module 'floorl-ieee'.
17626         * modules/floorl-ieee: New file.
17627         * modules/floorl-ieee-tests: New file.
17628         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17629         * tests/test-floorl.c (main): Remove signbit tests.
17630         * modules/floorl-tests (Depends-on): Remove signbit.
17631         * doc/posix-functions/floorl.texi: Mention the new module.
17632
17633 2010-12-21  Bruno Haible  <bruno@clisp.org>
17634
17635         New module 'round-ieee'.
17636         * modules/round-ieee: New file.
17637         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17638         whether round works according to ISO C 99 with IEC 60559.
17639         * m4/round-ieee.m4: New file.
17640         * modules/round-ieee-tests: New file.
17641         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17642         * tests/test-round1.c (main): Remove signbit tests.
17643         * modules/round-tests (Depends-on): Remove 'signbit'.
17644         * doc/posix-functions/round.texi: Mention the new module.
17645
17646 2010-12-21  Bruno Haible  <bruno@clisp.org>
17647
17648         New module 'trunc-ieee'.
17649         * modules/trunc-ieee: New file.
17650         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17651         whether trunc works according to ISO C 99 with IEC 60559.
17652         * m4/trunc-ieee.m4: New file.
17653         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17655         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17656         * modules/trunc-ieee-tests: New file.
17657         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17658         * tests/test-trunc1.c (main): Remove signbit tests.
17659         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17660         * doc/posix-functions/trunc.texi: Mention the new module.
17661
17662 2010-12-21  Bruno Haible  <bruno@clisp.org>
17663
17664         New module 'ceil-ieee'.
17665         * modules/ceil-ieee: New file.
17666         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17667         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17668         ISO C 99 with IEC 60559.
17669         * m4/ceil-ieee.m4: New file.
17670         * modules/ceil (Files): Add lib/ceil.c.
17671         (Depends-on): Add 'float'.
17672         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17673         * lib/math.in.h (ceil): New declaration.
17674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17675         REPLACE_CEIL.
17676         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17677         * modules/ceil-ieee-tests: New file.
17678         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17679         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17680         * doc/posix-functions/ceil.texi: Mention the new module.
17681
17682 2010-12-21  Bruno Haible  <bruno@clisp.org>
17683
17684         New module 'floor-ieee'.
17685         * modules/floor-ieee: New file.
17686         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17687         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17688         ISO C 99 with IEC 60559.
17689         * m4/floor-ieee.m4: New file.
17690         * modules/floor (Files): Add lib/floor.c.
17691         (Depends-on): Add 'float'.
17692         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17693         * lib/math.in.h (floor): New declaration.
17694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17695         REPLACE_FLOOR.
17696         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17697         * modules/floor-ieee-tests: New file.
17698         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17699         * tests/test-math-c++.cc: Check the signature of 'floor'.
17700         * doc/posix-functions/floor.texi: Mention the new module.
17701
17702 2010-12-21  Bruno Haible  <bruno@clisp.org>
17703
17704         New module 'roundf-ieee'.
17705         * modules/roundf-ieee: New file.
17706         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17707         test whether roundf works according to ISO C 99 with IEC 60559.
17708         * m4/roundf-ieee.m4: New file.
17709         * modules/roundf-ieee-tests: New file.
17710         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17711         * tests/test-roundf1.c (main): Remove signbit tests.
17712         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17713         * doc/posix-functions/roundf.texi: Mention the new module.
17714
17715 2010-12-21  Bruno Haible  <bruno@clisp.org>
17716
17717         New module 'truncf-ieee'.
17718         * modules/truncf-ieee: New file.
17719         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17720         test whether truncf works according to ISO C 99 with IEC 60559.
17721         * m4/truncf-ieee.m4: New file.
17722         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17724         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17725         * modules/truncf-ieee-tests: New file.
17726         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17727         * tests/test-truncf1.c (main): Remove signbit tests.
17728         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17729         * doc/posix-functions/truncf.texi: Mention the new module.
17730
17731 2010-12-21  Bruno Haible  <bruno@clisp.org>
17732
17733         New module 'ceilf-ieee'.
17734         * modules/ceilf-ieee: New file.
17735         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17736         test whether ceilf works according to ISO C 99 with IEC 60559.
17737         * m4/ceilf-ieee.m4: New file.
17738         * modules/ceilf-ieee-tests: New file.
17739         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17740         * tests/test-ceilf1.c (main): Remove signbit tests.
17741         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17742         * doc/posix-functions/ceilf.texi: Mention the new module.
17743
17744 2010-12-21  Bruno Haible  <bruno@clisp.org>
17745
17746         New module 'floorf-ieee'.
17747         * modules/floorf-ieee: New file.
17748         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17749         test whether floorf works according to ISO C 99 with IEC 60559.
17750         * m4/floorf-ieee.m4: New file.
17751         * modules/floorf-ieee-tests: New file.
17752         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17753         * tests/test-floorf1.c (main): Remove signbit tests.
17754         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17755         * doc/posix-functions/floorf.texi: Mention the new module.
17756
17757 2010-12-21  Bruno Haible  <bruno@clisp.org>
17758
17759         Support for minus zero in autoconf macros.
17760         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17761         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17762         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17763         * tests/minus-zero.h: Update comments.
17764
17765 2010-12-21  Bruno Haible  <bruno@clisp.org>
17766
17767         Tests for module 'ceil'.
17768         * modules/ceil-tests: New file.
17769         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17770         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17771
17772 2010-12-21  Bruno Haible  <bruno@clisp.org>
17773
17774         Tests for module 'floor'.
17775         * modules/floor-tests: New file.
17776         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17777         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17778
17779 2010-12-21  Bruno Haible  <bruno@clisp.org>
17780
17781         math: Fix indentation.
17782         * lib/math.in.h (floorf): Fix indentation.
17783
17784 2010-12-21  Bruno Haible  <bruno@clisp.org>
17785
17786         Fix cross-compilation guesses on Solaris.
17787         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17788         not match "solaris2.10".
17789         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17790         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17791         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17792
17793 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17794
17795         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17796         This fixes a problem observed with the latest coreutils snapshot
17797         that caused a test to fail on Solaris 8.  src/csplit.c's call
17798         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17799         earlier, instead of returning the number of bytes that would have
17800         been generated; this causes csplit to incorrectly report memory
17801         exhaustion.
17802         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17803         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17804         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17805         comments to match.
17806         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17807         Fix typo in matching older versions of Solaris: "solaris2.10"
17808         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17809         only for guessing while cross-compiling.
17810         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17811
17812 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17813
17814         ftoastr: fix comment again
17815         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17816         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17817         Also, simplify example a bit by using flags = 0.
17818
17819 2010-12-20  Bruno Haible  <bruno@clisp.org>
17820
17821         round*, trunc*: Update documentation regarding glibc.
17822         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17823         * doc/posix-functions/round.texi: Likewise.
17824         * doc/posix-functions/roundl.texi: Likewise.
17825         * doc/posix-functions/truncf.texi: Likewise.
17826         * doc/posix-functions/trunc.texi: Likewise.
17827         * doc/posix-functions/truncl.texi: Likewise.
17828
17829 2010-12-20  Bruno Haible  <bruno@clisp.org>
17830
17831         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17832         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17833         * doc/posix-functions/round.texi: Likewise.
17834         * doc/posix-functions/roundl.texi: Likewise.
17835
17836 2010-12-20  Bruno Haible  <bruno@clisp.org>
17837
17838         ttyname_r: Add missing declaration on HP-UX 11.
17839         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17840         HAVE_TTYNAME_R.
17841         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17842         declared. Set HAVE_TTYNAME_R always.
17843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17844         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17845         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17846         HAVE_TTYNAME_R.
17847         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17848
17849 2010-12-20  Bruno Haible  <bruno@clisp.org>
17850
17851         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17852         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17853         * doc/posix-functions/getlogin_r.texi: Likewise.
17854         * tests/test-getlogin.c: Include <errno.h>.
17855         (main): Avoid test failure on HP-UX 11.11.
17856         * tests/test-getlogin_r.c (main): Likewise.
17857
17858 2010-12-20  Bruno Haible  <bruno@clisp.org>
17859
17860         getlogin_r: Add missing declaration on HP-UX 11.
17861         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17862         declared also when it exists as a function.
17863         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17864
17865 2010-12-20  Bruno Haible  <bruno@clisp.org>
17866
17867         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17868         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17869         through wcrtomb.
17870
17871 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17872
17873         ftoastr: fix comment
17874         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17875         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17876
17877 2010-12-19  Bruno Haible  <bruno@clisp.org>
17878
17879         isnan: Ensure it is a macro.
17880         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17881         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17882         Solaris.
17883
17884 2010-12-19  Bruno Haible  <bruno@clisp.org>
17885
17886         ldexpl test: Fix link error on OSF/1 5.1.
17887         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17888
17889 2010-12-19  Bruno Haible  <bruno@clisp.org>
17890
17891         wctype: Make it work in C++ mode on OSF/1 5.1.
17892         * lib/wctype.in.h (iswblank): Declare but not define here.
17893         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17894         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17895         * modules/wctype (Files): Add lib/iswblank.c.
17896
17897 2010-12-19  Bruno Haible  <bruno@clisp.org>
17898
17899         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17900         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17901         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17902
17903 2010-12-19  Bruno Haible  <bruno@clisp.org>
17904
17905         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17906         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17907         _POSIX_PII_SOCKET.
17908         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17909         * doc/posix-functions/recvfrom.texi: Likewise.
17910         * doc/posix-functions/send.texi: Likewise.
17911         * doc/posix-functions/sendto.texi: Likewise.
17912
17913 2010-12-19  Bruno Haible  <bruno@clisp.org>
17914
17915         tcgetsid: Add missing declaration on OSF/1 5.1.
17916         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17917         HAVE_TCGETSID.
17918         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17919         Don't set HAVE_TCGETSID.
17920         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17921         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17922         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17923         HAVE_TCGETSID.
17924         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17925
17926 2010-12-19  Bruno Haible  <bruno@clisp.org>
17927
17928         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17929         * lib/stdio.in.h: During the include_next statement, let recursive
17930         includes of this file include only the system header file.
17931
17932 2010-12-19  Bruno Haible  <bruno@clisp.org>
17933
17934         iconv_open: Fix regression from 2010-12-04.
17935         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17936         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17937
17938 2010-12-19  Bruno Haible  <bruno@clisp.org>
17939
17940         stdbool test: Avoid a gcc warning.
17941         * tests/test-stdbool.c (main): Fail if e1 is false.
17942         Reported by Jim Meyering.
17943
17944 2010-12-19  Jim Meyering  <meyering@redhat.com>
17945
17946         setenv: restore to working order
17947         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17948         mistakenly removed.
17949         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17950         HAVE_SETENV.
17951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17952         HAVE_SETENV.
17953
17954 2010-12-19  Bruno Haible  <bruno@clisp.org>
17955
17956         Document some different function declarations on OSF/1 5.1.
17957         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17958         * doc/posix-functions/inet_ntop.texi: Likewise.
17959         * doc/posix-functions/gethostname.texi: Likewise.
17960         * lib/unistd.in.h (gethostname): Update comment.
17961
17962 2010-12-19  Bruno Haible  <bruno@clisp.org>
17963
17964         doc: Mention vasprintf-posix module.
17965         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17966         the 'vasprintf-posix' module.
17967         * doc/glibc-functions/vasprintf.texi: Likewise.
17968
17969 2010-12-19  Bruno Haible  <bruno@clisp.org>
17970
17971         unsetenv: Add missing declaration on OSF/1 5.1.
17972         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17973         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17974         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17976         not HAVE_UNSETENV.
17977         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17978         HAVE_UNSETENV.
17979         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17980
17981 2010-12-19  Bruno Haible  <bruno@clisp.org>
17982
17983         setenv: Add missing declaration on OSF/1 5.1.
17984         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17985         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17986         declared. Don't set HAVE_SETENV.
17987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17988         not HAVE_SETENV.
17989         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17990         HAVE_SETENV.
17991         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17992
17993 2010-12-19  Bruno Haible  <bruno@clisp.org>
17994
17995         nl_langinfo tests: Avoid gcc warning.
17996         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17997
17998 2010-12-19  Bruno Haible  <bruno@clisp.org>
17999
18000         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18001         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18002         _GL_CXXALIAS_SYS.
18003
18004 2010-12-19  Bruno Haible  <bruno@clisp.org>
18005
18006         stdbool: Relax test.
18007         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18008         address to 'bool' work in static initializer, for compilers other than
18009         GCC.
18010
18011 2010-12-19  Bruno Haible  <bruno@clisp.org>
18012
18013         ftello: Add missing declaration on OSF/1 5.1.
18014         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18015         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18017         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18018         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18019
18020 2010-12-19  Bruno Haible  <bruno@clisp.org>
18021
18022         fseeko: Add missing declaration on OSF/1 5.1.
18023         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18024         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18026         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18027         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18028
18029 2010-12-19  Bruno Haible  <bruno@clisp.org>
18030
18031         fchdir: Add missing declaration on OSF/1 5.1.
18032         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18035         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18036         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18037
18038 2010-12-19  Bruno Haible  <bruno@clisp.org>
18039
18040         relocatable-prog-wrapper: Separate from relocatable-prog.
18041         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18042         uninstall-relocwrapper rule here.
18043         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18044         Reported by Ian Beckwith <ianb@erislabs.net>.
18045
18046 2010-12-19  Bruno Haible  <bruno@clisp.org>
18047
18048         unistr/u8-mbsnlen: Add missing dependency.
18049         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18050         Reported by Ian Beckwith <ianb@erislabs.net>.
18051
18052 2010-12-19  Bruno Haible  <bruno@clisp.org>
18053
18054         iconv: Make it possible again to use this module without 'iconv-h'.
18055         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18056         if it is not defined.
18057         Reported by Ian Beckwith <ianb@erislabs.net>.
18058
18059 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18060
18061         acl: port to Solaris 8 when copying from tmpfs to ufs
18062         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18063         error number.  Problem observed on Solaris 8 with latest
18064         coreutils, with "mv A B", where A is on a tmpfs file system and B
18065         is on a ufs file system.  This caused coreutils' mv/part-symlink
18066         test to fail.
18067
18068         tests: set fail=0 at start
18069         * tests/init.sh (setup_): Move fail=0 initialization here ...
18070         (mktempd_): ... from here, so that tests can rely on fail being
18071         set to 0 initially.  This fixes a problem in coreutils; see:
18072         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18073
18074 2010-12-18  Bruno Haible  <bruno@clisp.org>
18075
18076         memmem-simple: Stylistic changes.
18077         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18078         Fix preprocessor directive indentation.
18079
18080 2010-12-15  Pádraig Brady <P@draigBrady.com>
18081
18082         memmem, memmem-simple: reorganize and expand empty needle check
18083         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18084         functional checks to memmem-simple so that one has a fully functional
18085         memmem by using just this module.
18086         Restrict the performance only check to the memmem module.
18087         Also expand the empty needle check to ensure the correct
18088         pointer is returned, not just a non NULL pointer.
18089         * doc/glibc-functions/memmem.texi: Rearrange the portability
18090         documentation to correlate with the rearranged checks.
18091         Clarify exactly how the memmem and memmem-simple modules
18092         relate to each other.
18093
18094 2010-12-15  Pádraig Brady <P@draigBrady.com>
18095             Bruno Haible  <bruno@clisp.org>
18096
18097         Improve cross-compilation guesses for uClibc.
18098         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18099         that uClibc does not have the glibc bug.
18100         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18101         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18102
18103 2010-12-14  Eric Blake  <eblake@redhat.com>
18104
18105         configmake: provide fallbacks for oldest supported autotools
18106         * m4/configmake.m4: New file.
18107         * modules/configmake (Files): Ship it.
18108         (configure.ac): Use it to guarantee fallbacks.
18109
18110 2010-12-13  Pádraig Brady <P@draigBrady.com>
18111
18112         read-file: Improve handling of large files
18113         * lib/read-file.c (fread_file): Minimize realloc()s
18114         for regular files, and better manage sizes around SIZE_MAX.
18115
18116 2010-12-13  Eric Blake  <eblake@redhat.com>
18117
18118         cloexec, fcntl: relax license
18119         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18120         consent from all contributors.
18121         * modules/fcntl (License): Likewise.
18122
18123 2010-12-10  Bruno Haible  <bruno@clisp.org>
18124
18125         Tests for module 'pipe-posix'.
18126         * modules/pipe-posix-tests: New file.
18127         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18128
18129 2010-12-10  Bruno Haible  <bruno@clisp.org>
18130
18131         pipe-posix: Make it work in C++ mode.
18132         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18133         (pipe): Use common idiom, not a macro definition.
18134         * lib/pipe.c: New file.
18135         * m4/pipe.m4: New file.
18136         * modules/pipe-posix (Description): Enhance.
18137         (Files): Add lib/pipe.c, m4/pipe.m4.
18138         (configure.ac): Invoke gl_FUNC_PIPE.
18139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18140         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18141         * tests/test-unistd-c++.cc: Check the signature of pipe.
18142
18143 2010-12-10  Bruno Haible  <bruno@clisp.org>
18144
18145         Rename module 'pipe' to 'spawn-pipe'.
18146         * modules/spawn-pipe: New file, renamed from modules/pipe.
18147         (Files, configure.ac, Makefile.am): Update.
18148         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18149         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18150         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18151         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18152         "spawn-pipe.h" instead of "pipe.h".
18153         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18154         to gl_SPAWN_PIPE.
18155         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18156         (Files, Makefile.am): Update.
18157         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18158         Update.
18159         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18160         Include "spawn-pipe.h" instead of "pipe.h".
18161         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18162         * lib/javacomp.c: Likewise.
18163         * lib/javaversion.c: Likewise.
18164         * lib/pipe-filter-gi.c: Likewise.
18165         * lib/pipe-filter-ii.c: Likewise.
18166         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18167         * modules/javacomp (Depends-on): Likewise.
18168         * modules/javaversion (Depends-on): Likewise.
18169         * modules/pipe-filter-gi (Depends-on): Likewise.
18170         * modules/pipe-filter-ii (Depends-on): Likewise.
18171         * MODULES.html.sh (Executing programs): Update.
18172         * NEWS: Mention the change.
18173
18174 2010-12-10  Eric Blake  <eblake@redhat.com>
18175
18176         pipe-posix: new module
18177         * modules/pipe-posix: New file.
18178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18179         (gl_UNISTD_H): Check for declaration.
18180         * modules/unistd (Makefile.am): Substitute it.
18181         * lib/unistd.in.h (pipe): Provide it for mingw.
18182         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18183         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18184
18185 2010-12-07  Bruno Haible  <bruno@clisp.org>
18186
18187         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18188         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18189         u8_strcmp_gnu.
18190         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18191
18192 2010-12-06  Bruno Haible  <bruno@clisp.org>
18193
18194         Update internal documentation.
18195         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18196
18197 2010-12-04  Bruno Haible  <bruno@clisp.org>
18198
18199         Put more information about failed tests into the test return codes.
18200         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18201         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18202         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18203         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18204         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18205         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18206         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18207         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18208         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18209         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18210         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18211         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18212         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18213         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18214         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18215         returns a bit mask.
18216         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18217         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18218         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18219         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18220         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18221         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18222         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18224         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18225         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18226         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18227         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18228         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18229         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18230         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18231         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18232         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18233         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18234         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18235         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18236         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18237         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18238         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18239         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18240         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18241         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18242         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18243         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18244         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18245         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18246         gl_PRINTF_PRECISION): Likewise.
18247         * m4/regex.m4 (gl_REGEX): Likewise.
18248         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18249         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18250         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18251         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18252         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18253         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18254         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18255         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18256         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18257         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18258         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18259         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18260         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18261         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18262         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18263         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18264         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18265         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18266         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18267         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18268         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18269         enumerated value.
18270         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18271
18272 2010-12-04  Bruno Haible  <bruno@clisp.org>
18273
18274         Update for Solaris 11 2010-11.
18275         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18276         Express, released in November 2010.
18277
18278 2010-12-04  Bruno Haible  <bruno@clisp.org>
18279
18280         nproc: Relax license.
18281         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18282         and Paul Eggert.
18283         Requested by Ludovic Courtès <ludo@gnu.org>.
18284
18285 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18286
18287         utimecmp: fine-grained src to nearby coarse-grained dest
18288
18289         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18290         and the source is on a file system with higher-resolution time
18291         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18292         not work, and the time stamps are close together, the algorithm to
18293         determine the exact resolution from the read-back mtime was buggy:
18294         it had a "!=" where it should have had an "==".  This bug has been
18295         in the code ever since it was introduced to gnulib.
18296         Problem reported by Dan Jacobson in
18297         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18298
18299 2010-11-30  Bruno Haible  <bruno@clisp.org>
18300
18301         strerror_r-posix: Fix autoconf test.
18302         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18303
18304 2010-11-28  Bruno Haible  <bruno@clisp.org>
18305             Paul Eggert  <eggert@cs.ucla.edu>
18306
18307         Tests for module 'getdomainname'.
18308         * modules/getdomainname-tests: New file.
18309         * tests/test-getdomainname.c: New file, based on
18310         tests/test-gethostname.c.
18311
18312 2010-11-28  Bruno Haible  <bruno@clisp.org>
18313             Paul Eggert  <eggert@cs.ucla.edu>
18314
18315         getdomainname: Use the system function when possible.
18316         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18317         (getdomainname): Replace if needed. Provide the declaration if it is
18318         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18319         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18320         (getdomainname): When the system has getdomainname, call the system
18321         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18322         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18323         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18324         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18325         the function if its second argument is of type 'int' or if it is found
18326         in libnsl.
18327         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18328         <sys/systeminfo.h> and sysinfo().
18329         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18331         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18332         HAVE_GETDOMAINNAME.
18333         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18334         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18335         * doc/glibc-functions/getdomainname.texi: Document the problems with
18336         the getdomainname declaration.
18337
18338 2010-11-28  Bruno Haible  <bruno@clisp.org>
18339
18340         sys_socket: Ensure ss_family field on AIX.
18341         * lib/sys_socket.in.h (ss_family): New macro definition.
18342         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18343         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18344         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18345         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18346         * modules/sys_socket (Makefile.am): Substitute
18347         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18348         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18349
18350 2010-11-27  Bruno Haible  <bruno@clisp.org>
18351
18352         readline: Improve configure output.
18353         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18354         "checking for readline..." result understandable.
18355
18356 2010-11-27  Bruno Haible  <bruno@clisp.org>
18357
18358         *printf-posix: Detect a bug on Solaris 10/x86.
18359         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18360         for floating-point output.
18361         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18362         directive.
18363         * tests/test-snprintf-posix.h (test_function): Likewise.
18364         * tests/test-sprintf-posix.h (test_function): Likewise.
18365         * tests/test-vasprintf-posix.c (test_function): Likewise.
18366         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18367         * doc/posix-functions/printf.texi: Likewise.
18368         * doc/posix-functions/snprintf.texi: Likewise.
18369         * doc/posix-functions/sprintf.texi: Likewise.
18370         * doc/posix-functions/vfprintf.texi: Likewise.
18371         * doc/posix-functions/vprintf.texi: Likewise.
18372         * doc/posix-functions/vsnprintf.texi: Likewise.
18373         * doc/posix-functions/vsprintf.texi: Likewise.
18374         * doc/glibc-functions/obstack_printf.texi: Likewise.
18375         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18376
18377 2010-11-27  Bruno Haible  <bruno@clisp.org>
18378
18379         Fix link error when module libunistring-optional is in use.
18380         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18381         * modules/striconveha-tests (Makefile.am): Likewise.
18382
18383 2010-11-27  Bruno Haible  <bruno@clisp.org>
18384
18385         regex: Mention link dependencies.
18386         * modules/regex (Link): New section.
18387         * modules/rpmatch (Link): Likewise.
18388         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18389
18390 2010-11-27  Bruno Haible  <bruno@clisp.org>
18391
18392         ftoastr: Fix compilation error on Solaris.
18393         * lib/ftoastr.c: Include <config.h>.
18394
18395 2010-11-27  Bruno Haible  <bruno@clisp.org>
18396
18397         getloadavg: Update documentation.
18398         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18399
18400 2010-11-27  Bruno Haible  <bruno@clisp.org>
18401
18402         sys_socket: Fix test whether the functions are declared.
18403         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18404         not <sys/select.h>.
18405
18406 2010-11-27  Bruno Haible  <bruno@clisp.org>
18407
18408         getpass: Make sure to get system declaration on some platforms.
18409         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18410         gl_USE_SYSTEM_EXTENSIONS.
18411         * modules/getpass (Depends-on): Add extensions.
18412
18413 2010-11-26  Bruno Haible  <bruno@clisp.org>
18414
18415         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18416         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18417         'iconv' module is present.
18418         (ICONV_CONST): New macro.
18419         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18420         ICONV_CONST.
18421         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18422         set ICONV_CONST.
18423         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18424         here.
18425         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18426         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18427         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18428         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18429         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18430         present.
18431
18432 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18433
18434         ftoastr: comment fix
18435         * lib/ftoastr.c: "little" -> "little or no" in comment
18436
18437 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18438
18439         stdint: port to GCC 4.3 + OSX + Octave
18440         On this platform, stdint.h is buggy and defines int64_t to long
18441         long int.  The replacement defined it to long int, causing
18442         problems with C++ style name mangling.  Instead, trust the system
18443         definition if INT64_MAX is defined, and likewise for the unsigned
18444         variant.   Problem reported by Jarno Rajahalme in
18445         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18446         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18447         and don't mess with int64_t and INT64_MAX in this case.
18448         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18449
18450 2010-11-24  Bruno Haible  <bruno@clisp.org>
18451
18452         doc: Corrections regarding MacOS X 10.4 and 10.5.
18453         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18454         MacOS X.
18455         Reported by Simon Josefsson.
18456
18457 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18458
18459         Uninstall ".bin" files installed by relocwrapper.
18460         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18461         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18462         unless it is already there.
18463
18464 2010-11-21  Bruno Haible  <bruno@clisp.org>
18465
18466         Update for NetBSD 5.0.
18467         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18468         NetBSD; the test fails on NetBSD 5.0.
18469         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18470         about NetBSD.
18471
18472 2010-11-21  Bruno Haible  <bruno@clisp.org>
18473
18474         Update for HP-UX 11.23 and HP-UX 11.31.
18475         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18476         HP-UX.
18477
18478 2010-11-21  Bruno Haible  <bruno@clisp.org>
18479
18480         Update for MacOS X 10.5.
18481         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18482         MacOS X; the test fails on MacOS X 10.5.8.
18483         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18484         about MacOS X.
18485
18486 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18487
18488         bootstrap: add bootstrap_sync option.
18489         See discussion at
18490         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18491         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18492         * build-aux/bootstrap: Accept --bootstrap-sync to update
18493         bootstrap if it is not identical to the local gnulib's
18494         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18495         enable this by default.  Accept --no-bootstrap-sync to disable
18496         it.
18497
18498 2010-11-20  Bruno Haible  <bruno@clisp.org>
18499
18500         Ensure that <features.h> is included before __GLIBC__ is tested.
18501         * lib/printf-parse.h: Include <features.h>.
18502         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18503         Reported by Mike Frysinger <vapier@gentoo.org>.
18504
18505         Ensure that <features.h> is included before __GLIBC__ is tested.
18506         * lib/wchar.in.h: Include <features.h>.
18507         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18508         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18509         Reported by Mike Frysinger <vapier@gentoo.org>.
18510
18511         Ensure that <features.h> is included before __GLIBC__ is tested.
18512         * lib/arpa_inet.in.h: Include <features.h>.
18513         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18514         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18515         Reported by Mike Frysinger <vapier@gentoo.org>.
18516
18517         Ensure that <features.h> is included before __GLIBC__ is tested.
18518         * build-aux/link-warning.h: Include <features.h>.
18519         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18520         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18521         Reported by Mike Frysinger <vapier@gentoo.org>.
18522
18523         Ensure that <features.h> is included before __GLIBC__ is tested.
18524         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18525         Reported by Mike Frysinger <vapier@gentoo.org>.
18526
18527 2010-11-20  Bruno Haible  <bruno@clisp.org>
18528
18529         memmem: Fix autoconf test.
18530         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18531
18532 2010-11-20  Bruno Haible  <bruno@clisp.org>
18533
18534         Port to uClibc.
18535         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18536         * lib/fcntl.in.h: Likewise.
18537         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18538         * lib/mbrtowc.c (mbrtowc): Likewise.
18539         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18540         * lib/strerror_r.c: Likewise.
18541         * lib/unistr/u8-strnlen.c: Likewise.
18542         * lib/vasnprintf.c (decimal_point_char): Likewise.
18543         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18544         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18545         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18546         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18547         * tests/test-sigaction.c (handler, main): Likewise.
18548         * lib/freading.h: Treat uClibc like a non-glibc platform.
18549         * lib/freading.c: Likewise.
18550         * lib/gettext.h: Likewise.
18551         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18552         Likewise.
18553         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18554         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18555         * lib/propername.c (proper_name_utf8): Likewise.
18556         * lib/spawn.in.h: Likewise.
18557         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18558         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18559         mem_cd_iconveh_internal): Likewise.
18560         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18561         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18562         strstr, strcasestr): Likewise.
18563         * lib/unicodeio.c (unicode_to_mb): Likewise.
18564         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18565         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18566         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18567         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18568         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18569         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18570         * lib/unistr/u8-stpncpy.c: Likewise.
18571         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18572         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18573         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18574         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18575         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18576         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18577         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18578         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18579         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18580         Likewise.
18581         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18582         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18583         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18584         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18585         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18586         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18587         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18588         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18589         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18590         * tests/test-striconveha.c (main): Likewise.
18591         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18592         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18593         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18594         * doc/posix-functions/getline.texi: Likewise.
18595         Reported by Mike Frysinger <vapier@gentoo.org>.
18596
18597 2010-11-20  Bruno Haible  <bruno@clisp.org>
18598
18599         nproc: Fix condition.
18600         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18601         HAVE_PTHREAD_AFFINITY_NP.
18602
18603 2010-11-20  Bruno Haible  <bruno@clisp.org>
18604
18605         Fix a comment.
18606         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18607
18608 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18609
18610         ftoastr: don't assume snprintf
18611         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18612         Implement a subset of snprintf here, by using sprintf safely.
18613         * modules/ftoastr (Depends-on): Remove snprintf.
18614
18615 2010-11-19  Jim Meyering  <meyering@redhat.com>
18616
18617         test-rename.h: fix compilation failure
18618         * tests/test-rename.h (test_rename): Add omitted "}".
18619
18620 2010-11-17  Jim Meyering  <meyering@redhat.com>
18621
18622         maint.mk: add a URL discussing the no-@acronym policy
18623         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18624
18625 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18626
18627         ftoastr: depend on snprintf, improve comments
18628         * lib/ftoastr.c: Also mention Loitsch's draft.
18629         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18630         needed in the current implementation, but it might simplify
18631         speeding up the code later.
18632         * modules/ftoastr: Depend on snprintf; this improves portability.
18633         Suggested by Bruno Haible in the same email.
18634
18635         ftoastr: port to hosts lacking strtof and strtold
18636         Problem reported by Bruno Haible in
18637         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18638         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18639         environment and strtold (and presumably strtof) are not available.
18640         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18641         (configure.ac): Require gl_C99_STRTOLD.
18642
18643 2010-11-18  Bruno Haible  <bruno@clisp.org>
18644
18645         c-strtold: Avoid link error on AIX 7.
18646         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18647         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18648         (gl_C_STRTOLD): Test whether strtold_l exists.
18649         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18650
18651 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18652
18653         intprops: new macro INT_BITS_STRLEN_BOUND
18654         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18655         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18656         not exposed.  Also, it uses a slightly tighter bound than before;
18657         though this makes no practical difference, we might as well be as
18658         tight as we easily can.
18659
18660         ftoastr: new module, for lossless conversion of floats to short strings
18661         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18662         * modules/ftoastr: New files.
18663
18664 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18665
18666         bootstrap: port to Solaris sed
18667         * build-aux/bootstrap (get_version): Port to Solaris sed.
18668         See Ralf Wildenhues's note in
18669         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18670
18671 2010-11-14  Jim Meyering  <meyering@redhat.com>
18672
18673         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18674         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18675         and move definition closer to sole use.
18676
18677 2010-11-13  Jim Meyering  <meyering@redhat.com>
18678
18679         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18680         Now we require at least autoconf-2.59, which means the work-around
18681         is no longer needed.
18682         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18683         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18684         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18685         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18686         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18687
18688 2010-11-13  Bruno Haible  <bruno@clisp.org>
18689
18690         rename, renameat: Avoid test failures at NFS mounted locations.
18691         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18692         functions.
18693         (test_rename): Use assert_nonexistent.
18694         * tests/test-rename.c: Include <dirent.h>.
18695         * tests/test-renameat.c: Likewise.
18696         Reported by Gary V. Vaughan <gary@gnu.org>.
18697
18698         rename, renameat: Document Linux bug with NFS
18699         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18700         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18701         * doc/posix-functions/renameat.texi: Likewise.
18702         Suggested by Eric Blake.
18703
18704 2010-11-13  Bruno Haible  <bruno@clisp.org>
18705
18706         rename test: Add comments.
18707         * tests/test-rename.h (test_rename): Add structure and comments.
18708
18709 2010-11-13  Eric Blake  <eblake@redhat.com>
18710
18711         maintainer-makefile: cover a few more files
18712         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18713         scripts generated within C files, for libvirt.
18714
18715 2010-11-13  Bruno Haible  <bruno@clisp.org>
18716
18717         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18718         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18719         character, return the number of bytes that belong together, not always
18720         1.
18721         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18722         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18723         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18724         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18725         number of bytes of an invalid character.
18726         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18727         (main): Invoke it.
18728         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18729         results.
18730         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18731         malformed byte sequences.
18732         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18733         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18734         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18735         Reported by Ben Pfaff and Paolo Bonzini.
18736
18737 2010-11-13  Bruno Haible  <bruno@clisp.org>
18738
18739         openat: Work around glibc bug with fchownat() and empty file names.
18740         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18741         (gl_FUNC_FCHOWNAT): Invoke it.
18742         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18743         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18744         Reported by Gary V. Vaughan <gary@gnu.org>.
18745
18746 2010-11-13  Bruno Haible  <bruno@clisp.org>
18747
18748         openat: Ensure autoconf macro ordering.
18749         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18750         gl_USE_SYSTEM_EXTENSIONS.
18751         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18752
18753 2010-11-13  Bruno Haible  <bruno@clisp.org>
18754
18755         Update comments.
18756         * lib/unistr/u8-check.c: Update file name in comments.
18757         * lib/unistr/u8-mblen.c: Likewise.
18758         * lib/unistr/u8-prev.c: Likewise.
18759         * lib/unistr/u8-strmblen.c: Likewise.
18760         * lib/unistr/u8-strmbtouc.c: Likewise.
18761
18762 2010-11-13  Jim Meyering  <meyering@redhat.com>
18763
18764         tests: avoid test failure on Solaris 10 due to lack of PATH export
18765         * tests/test-update-copyright.sh: Don't forget to export PATH.
18766
18767         init.sh: ensure that IFS is defined, just in case...
18768         * tests/init.sh (setup_): Ensure that IFS is defined,
18769         so that saving and restoring it works as expected.  This
18770         appears to be useful at least for an old version of dash
18771         from a long time ago (RH 6).  See here for details:
18772         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18773
18774         maint.mk: tighten "test a == b" check
18775         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18776         test to files that contain something like #!/bin/sh.
18777         Without this, coreutils would get two false positives in
18778         the comments of C source files.
18779
18780 2010-11-12  Eric Blake  <eblake@redhat.com>
18781
18782         bootstrap: fix typo in previous attempt
18783         * build-aux/bootstrap (buildreq): Correct the grouping.
18784         Reported by Paul Eggert.
18785
18786         maintainer-makefile: prohibit test x == x
18787         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18788         Based on a report by Matthias Bolte.
18789
18790         bootstrap: allow FreeBSD gzip
18791         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18792         which has no '.' and goes to stderr.
18793         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18794         Reported by Matthias Bolte.
18795
18796         maintainer-makefile: check for i18n setup
18797         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18798         will likely work.
18799
18800 2010-11-12  Bruno Haible  <bruno@clisp.org>
18801
18802         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18803         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18804         * lib/nanosleep.c (nanosleep): Likewise.
18805
18806 2010-11-11  Bruno Haible  <bruno@clisp.org>
18807
18808         fcntl-h: Fix for use of C++ on glibc systems.
18809         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18810         also on glibc systems in C++ mode.
18811         Reported by Gary V. Vaughan <gary@gnu.org>.
18812
18813 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18814
18815         mknod: avoid false failure with dash
18816         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18817
18818 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18819
18820         unlink: Fix "is it should" typo in diagnostic.
18821         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18822         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18823
18824 2010-11-11  Bruno Haible  <bruno@clisp.org>
18825
18826         Tests for module 'strerror_r-posix'.
18827         * modules/strerror_r-posix-tests: New file.
18828         * tests/test-strerror_r.c: New file.
18829         * tests/test-string-c++.cc: Check the signature of strerror_r.
18830
18831         New module 'strerror_r-posix'.
18832         * lib/string.in.h (strerror_r): New declaration.
18833         * lib/strerror_r.c: New file.
18834         * m4/strerror_r.m4: New file.
18835         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18836         of strerror_r.
18837         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18838         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18839         * modules/strerror_r-posix: New file.
18840         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18841         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18842         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18843         portability problems.
18844
18845 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18846
18847         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18848         line is also considered for output. Quoted function name in shell
18849         command, so temporary files for functions like MyClass::operator()
18850         are removed correctly without errors.
18851
18852 2010-11-09  Bruno Haible  <bruno@clisp.org>
18853
18854         * doc/posix-functions/strerror.texi: List more failing platforms.
18855
18856         * doc/posix-functions/strerror.texi: Add a comment.
18857
18858 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18859
18860         fdopendir: fix bug on MacOS X when low on file descriptors
18861
18862         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18863         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18864         All callers changed.
18865         (fdopendir): Invoke save_cwd at the top level, not after using
18866         multiple dup() calls to use up file descriptors.  Then retry
18867         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18868         less than the maximum number of open file descriptors, because
18869         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18870         on Mac OS X 10.6.4 for tar 1.24
18871         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18872         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18873         and for tar 1.25
18874         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18875
18876 2010-11-07  Bruno Haible  <bruno@clisp.org>
18877
18878         vasnprintf: Support I flag on glibc systems.
18879         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18880         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18881         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18882         snprintf function.
18883         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18884         glibc systems.
18885         * tests/test-vasnprintf-posix3.c: New file.
18886         * modules/vasnprintf-posix-tests (Files): Add it.
18887         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18888
18889 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18890
18891         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18892         * MODULES.html.sh: For compiler warnings, use name
18893         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18894
18895 2010-11-05  Eric Blake  <eblake@redhat.com>
18896
18897         ceil, floor: avoid spurious failure with icc
18898         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18899         [denormals-as-zero] when optimizing without -mieee-fp option.
18900         * tests/test-floorf2.c (floorf_reference): Likewise.
18901         * tests/test-ceilf1.c (dummy): New function.
18902         (main): Use it to outsmart icc's optimization.
18903         * tests/test-floorf1.c (dummy, main): Likewise.
18904
18905         tests: require working signbit
18906         * modules/ceilf-tests (Depends-on): Add signbit.
18907         * modules/ceill-tests (Depends-on): Likewise.
18908         * modules/floorf-tests (Depends-on): Likewise.
18909         * modules/floorl-tests (Depends-on): Likewise.
18910         * modules/round-tests (Depends-on): Likewise.
18911         * modules/roundf-tests (Depends-on): Likewise.
18912         * modules/roundl-tests (Depends-on): Likewise.
18913         * modules/trunc-tests (Depends-on): Likewise.
18914         * modules/truncf-tests (Depends-on): Likewise.
18915         * modules/truncl-tests (Depends-on): Likewise.
18916
18917         strtod: work around icc bug
18918         * lib/strtod.c (minus_zero): Define to working value.
18919         (strtod): Use it to avoid icc bug.
18920
18921         copysign: enhance tests
18922         * modules/copysign-tests (Files): Add minus-zero.h.
18923         * tests/test-copysign.c (main): Also test zeros.
18924
18925 2010-11-04  Eric Blake  <eblake@redhat.com>
18926
18927         ceil, floor, round, trunc: enhance tests of -0
18928         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18929         * tests/test-ceill.c (main): Likewise.
18930         * tests/test-floorf1.c (main): Likewise.
18931         * tests/test-floorl.c (main): Likewise.
18932         * tests/test-round1.c (main): Likewise.
18933         * tests/test-roundf1.c (main): Likewise.
18934         * tests/test-roundl.c (main): Likewise.
18935         * tests/test-trunc1.c (main): Likewise.
18936         * tests/test-truncf1.c (main): Likewise.
18937         * tests/test-truncl.c (main): Likewise.
18938
18939 2010-11-04  Eric Blake  <eblake@redhat.com>
18940
18941         frexp, tests: work around ICC bug with -zero
18942         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18943         works with more compilers.
18944         * tests/minus-zero.h: New file.
18945         * modules/ceilf-tests (Files): Include it.
18946         * modules/ceill-tests (Files): Likewise.
18947         * modules/floorf-tests (Files): Likewise.
18948         * modules/floorl-tests (Files): Likewise.
18949         * modules/frexp-nolibm-tests (Files): Likewise.
18950         * modules/frexp-tests (Files): Likewise.
18951         * modules/frexpl-nolibm-tests (Files): Likewise.
18952         * modules/frexpl-tests (Files): Likewise.
18953         * modules/isnan-tests (Files): Likewise.
18954         * modules/isnand-nolibm-tests (Files): Likewise.
18955         * modules/isnand-tests (Files): Likewise.
18956         * modules/isnanf-nolibm-tests (Files): Likewise.
18957         * modules/isnanf-tests (Files): Likewise.
18958         * modules/isnanl-nolibm-tests (Files): Likewise.
18959         * modules/isnanl-tests (Files): Likewise.
18960         * modules/round-tests (Files): Likewise.
18961         * modules/roundf-tests (Files): Likewise.
18962         * modules/roundl-tests (Files): Likewise.
18963         * modules/ldexpl-tests (Files): Likewise.
18964         * modules/signbit-tests (Files): Likewise.
18965         * modules/snprintf-posix-tests (Files): Likewise.
18966         * modules/sprintf-posix-tests (Files): Likewise.
18967         * modules/strtod-tests (Files): Likewise.
18968         * modules/trunc-tests (Files): Likewise.
18969         * modules/truncf-tests (Files): Likewise.
18970         * modules/truncl-tests (Files): Likewise.
18971         * modules/vsnprintf-posix-tests (Files): Likewise.
18972         * modules/vsprintf-posix-tests (Files): Likewise.
18973         * modules/vasnprintf-posix-tests (Files): Likewise.
18974         * modules/vasprintf-posix-tests (Files): Likewise.
18975         * tests/test-ceilf1.c (main): Use it.
18976         * tests/test-ceill.c (main): Likewise.
18977         * tests/test-floorf1.c (main): Likewise.
18978         * tests/test-floorl.c (main): Likewise.
18979         * tests/test-frexp.c (main): Likewise.
18980         * tests/test-frexpl.c (main): Likewise.
18981         * tests/test-isnan.c (main): Likewise.
18982         * tests/test-isnand.h (main): Likewise.
18983         * tests/test-isnanf.h (main): Likewise.
18984         * tests/test-isnanl.h (main): Likewise.
18985         * tests/test-ldexpl.c (main): Likewise.
18986         * tests/test-round.c (main): Likewise.
18987         * tests/test-roundf.c (main): Likewise.
18988         * tests/test-roundl.c (main): Likewise.
18989         * tests/test-signbit.c (test_signbitf, test_signbitd)
18990         (test_signbitl): Likewise.
18991         * tests/test-snprintf-posix.h (test_function): Likewise.
18992         * tests/test-sprintf-posix.h (test_function): Likewise.
18993         * tests/test-strtod.c (main): Likewise.
18994         * tests/test-trunc1.c (main): Likewise.
18995         * tests/test-truncf1.c (main): Likewise.
18996         * tests/test-truncl.c (main): Likewise.
18997
18998         isnanl: work around icc bug
18999         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19000
19001 2010-11-03  Eric Blake  <eblake@redhat.com>
19002
19003         tests: fix compiler warnings
19004         * tests/test-getopt.h (test_getopt): Fix condition.
19005         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19006         * tests/test-pipe2.c (main): Likewise.
19007         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19008
19009         utimens: fix broken m4 test
19010         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19011
19012 2010-10-28  Bruno Haible  <bruno@clisp.org>
19013
19014         posix_spawn*, getdtablesize: Relax license.
19015         * modules/posix_spawn (License): Change to LGPLv2+.
19016         * modules/posix_spawnp (License): Likewise.
19017         * modules/posix_spawn-internal (License): Likewise.
19018         * modules/posix_spawnattr_init (License): Likewise.
19019         * modules/posix_spawnattr_getflags (License): Likewise.
19020         * modules/posix_spawnattr_setflags (License): Likewise.
19021         * modules/posix_spawnattr_getpgroup (License): Likewise.
19022         * modules/posix_spawnattr_setpgroup (License): Likewise.
19023         * modules/posix_spawnattr_getschedparam (License): Likewise.
19024         * modules/posix_spawnattr_setschedparam (License): Likewise.
19025         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19026         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19027         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19028         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19029         * modules/posix_spawnattr_getsigmask (License): Likewise.
19030         * modules/posix_spawnattr_setsigmask (License): Likewise.
19031         * modules/posix_spawnattr_destroy (License): Likewise.
19032         * modules/posix_spawn_file_actions_init (License): Likewise.
19033         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19034         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19035         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19036         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19037         * modules/getdtablesize (License): Likewise.
19038         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19039
19040 2010-10-26  Bruno Haible  <bruno@clisp.org>
19041
19042         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19043         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19044         Cygwin and mingw.
19045         Suggested by Eric Blake.
19046
19047 2010-10-26  Bruno Haible  <bruno@clisp.org>
19048
19049         stdio: Work around compilation error due to renameat() on Solaris 10.
19050         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19051         * lib/renameat.c: Don't include <unistd.h> here.
19052         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19053         Reported by Paul Eggert and Eric Blake.
19054
19055 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19056
19057         renameat: port to Solaris 10, which declares renameat in unistd.h
19058
19059         * lib/renameat.c: Include unistd.h before stdio.h, because
19060         Solaris 10 declares renameat in unistd.h.  Problem encountered
19061         when building GNU tar 1.24 on Solaris 10.
19062
19063 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19064
19065         fdopendir: fix C89 compilation
19066         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19067         compilers.
19068
19069 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19070
19071         inttostr: simplify by removing unnecessary redundancy
19072         * lib/anytostr.c: Don't include verify.h.
19073         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19074         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19075         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19076         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19077         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19078         Likewise.
19079         * modules/inttostr (Depends-on): Remove 'verify'.
19080
19081 2010-10-23  Bruno Haible  <bruno@clisp.org>
19082
19083         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19084         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19085         Reported by Eric Blake.
19086
19087 2010-10-23  Bruno Haible  <bruno@clisp.org>
19088
19089         Tests: Fix LOCALE_JA on MirBSD 10.
19090         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19091         to an UTF-8 locale.
19092         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19093         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19094         Reported by Eric Blake.
19095
19096 2010-10-21  Bruno Haible  <bruno@clisp.org>
19097
19098         nl_langinfo test: Avoid test failure on NetBSD 5.
19099         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19100         Reported by Eric Blake.
19101
19102 2010-10-21  Eric Blake  <eblake@redhat.com>
19103
19104         c-stack: work around libsigsegv 2.8 bug
19105         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19106         overflow on at least PowerPC64.
19107
19108 2010-10-17  Bruno Haible  <bruno@clisp.org>
19109
19110         userspec: Drop redundant file.
19111         * modules/userspec (Files): Remove lib/inttostr.h.
19112
19113 2010-10-17  Bruno Haible  <bruno@clisp.org>
19114
19115         nl_langinfo tests: Silence some warnings.
19116         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19117         Reported by Jim Meyering.
19118
19119 2010-10-17  Bruno Haible  <bruno@clisp.org>
19120
19121         Make use of GCC's attribute __alloc_size__.
19122         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19123         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19124         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19125         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19126         __alloc_size__.
19127         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19128         Suggested by Jim Meyering.
19129
19130 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19131
19132         bootstrap: anchor .gitignore entries.
19133         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19134         with...
19135         (insert_vc_ignore): ... this new function, which prepends `/' to
19136         all .gitignore entries before passing them to
19137         insert_sorted_if_absent.
19138
19139 2010-10-16  Bruno Haible  <bruno@clisp.org>
19140
19141         nextafter: Fix configure check.
19142         * modules/nextafter (configure.ac): Correct expected prototype.
19143
19144 2010-10-16  Bruno Haible  <bruno@clisp.org>
19145
19146         termios: Update documentation.
19147         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19148
19149 2010-10-16  Bruno Haible  <bruno@clisp.org>
19150
19151         tests: Make them compile with TinyCC.
19152         * tests/test-strstr.c (main): Remove parentheses around array
19153         initializer.
19154
19155 2010-10-15  Eric Blake  <eblake@redhat.com>
19156
19157         ignore-value: make header idempotent
19158         * lib/ignore-value.h: Add double-inclusion guards.
19159         Reported by Stefan Berger.
19160
19161 2010-10-15  Jim Meyering  <meyering@redhat.com>
19162
19163         GNUmakefile: handle "stable" target, not "major"
19164         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19165         lists in maint.mk and announce-gen.  Without this, "make stable"
19166         would fail to ensure that $(VERSION) is up to date.
19167
19168 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19169
19170         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19171         & co.
19172
19173 2010-10-14  Bruno Haible  <bruno@clisp.org>
19174
19175         vasnprintf: Don't set errno to 0.
19176         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19177         block that sets it to 0.
19178         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19179
19180 2010-10-14  Bruno Haible  <bruno@clisp.org>
19181
19182         socketlib: Fix.
19183         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19184         gl_PREREQ_SYS_H_WINSOCK2.
19185         Reported by Ian Beckwith <ianb@erislabs.net>.
19186
19187 2010-10-13  Jim Meyering  <meyering@redhat.com>
19188
19189         test-select-stdin.c: avoid warn_unused_result warnings
19190         * tests/test-select-stdin.c: Include "macros.h".
19191         ASSERT that read and fflush succeed.
19192
19193 2010-10-13  Jim Meyering  <meyering@redhat.com>
19194
19195         git-version-gen: do require git-VC'd files in cwd
19196         * build-aux/git-version-gen: Reject a git version string
19197         if there are no commits associated with the current directory.
19198         This avoids an unlikely false-positive (unrelated dir whose parent
19199         repository also contains a tag matching v*), as pointed out
19200         by Giuseppe Scrivano in
19201         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19202
19203 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19204
19205         argv-iter: omit nonconforming declaration
19206         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19207         enum arg_iter_err declaration, which doesn't conform to C99.
19208         Solaris 10 cc warns about this.
19209
19210 2010-10-13  Eric Blake  <eblake@redhat.com>
19211
19212         termios: fix compilation on mingw
19213         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19214         (gl_TERMIOS_H): Adjust it on mingw.
19215         * modules/termios (Makefile.am): Substitute new key.
19216         * lib/termios.in.h (includes): Make include_next conditional.
19217         * doc/posix-headers/termios.texi (termios.h): Update
19218         documentation.
19219         Reported by Daniel P. Berrange.
19220
19221 2010-10-13  Jim Meyering  <meyering@redhat.com>
19222
19223         git-version-gen: don't require that .git/ be in the current dir
19224         * build-aux/git-version-gen: Adjust this script so that it works
19225         when run from any working directory beneath the top-level .git/-
19226         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19227         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19228
19229         test-select: avoid warn_unused_result warnings
19230         * tests/test-select.c: Include "macros.h".
19231         ASSERT that each call to read, write, and pipe succeeds.
19232         While not technically required, also check each "close".
19233         * modules/select-tests (Files): Add tests/macros.h.
19234
19235         test-symlinkat: remove declaration of unused local
19236         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19237
19238         test-inttostr: avoid shadowing warnings
19239         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19240         and use malloc rather than the stack for the same reason as
19241         mentioned in the comment justifying the other allocation.
19242
19243 2010-10-11  Bruno Haible  <bruno@clisp.org>
19244
19245         stdlib: Allow multiple gnulib generated replacements to coexist.
19246         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19247         Reported by Sam Steingold <sds@gnu.org>.
19248
19249 2010-10-11  Jim Meyering  <meyering@redhat.com>
19250
19251         fix a documentation typo
19252         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19253
19254 2010-10-11  Eric Blake  <eblake@redhat.com>
19255
19256         futimens: work around Solaris 11 bug
19257         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19258         * tests/test-futimens.h (test_futimens): Enhance, rather than
19259         weaken test.
19260         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19261
19262 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19263
19264         Indentation.
19265         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19266         higher-level operators more to the left.
19267
19268 2010-10-11  Jim Meyering  <meyering@redhat.com>
19269
19270         test-futimens: avoid unwarranted test failure on Solaris 5.11
19271         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19272         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19273         because it tries to dereference the NULL name argument.
19274
19275 2010-10-11  Bruno Haible  <bruno@clisp.org>
19276
19277         Indentation.
19278         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19279         indentation.
19280
19281 2010-10-11  Jim Meyering  <meyering@redhat.com>
19282
19283         spawn.in.h: make indentation consistent with parentheses
19284         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19285         Make indentation consistent with parentheses.
19286
19287 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19288
19289         Fix mismatched parens in previous commit
19290         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19291         parens.
19292
19293 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19294
19295         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19296
19297         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19298         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19299         * lib/malloca.c: Include "verify.h".
19300         (verify1): Remove, replacing with a verify call.
19301         * lib/relocwrapper.c (verify1): Likewise.
19302         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19303         Likewise.
19304         * modules/malloca (Depends-on): Add 'verify'.
19305         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19306         * modules/vasnprintf (Depends-on): Add 'verify'.
19307         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19308         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19309         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19310         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19311         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19312         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19313         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19314
19315         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19316
19317         Formerly the style was sometimes 2*X - 1, because the C standard
19318         was wrongly thought to disallow ?: in integral constant expressions.
19319         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19320         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19321         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19322         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19323         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19324         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19325         verify that time_t cannot be floating.
19326
19327 2010-10-08  Eric Blake  <eblake@redhat.com>
19328
19329         time: enforce recent POSIX ruling that time_t is integral
19330         * lib/time.in.h (__time_t_must_be_integral): Detect any
19331         problematic systems, allowing the rest of gnulib to assume POSIX.
19332
19333 2010-10-08  Jim Meyering  <meyering@redhat.com>
19334
19335         fdopendir: fix a bug on systems lacking openat and /proc support
19336         OpenBSD 4.7 is one such system.  The most noticeable effect was
19337         failure of any application making nontrivial use of fts: rm, du,
19338         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19339           ./rm: traversal failed: `a': Bad file descriptor
19340         Debugging that, you see that even though FD 6 was closed just
19341         prior to the opendir call in fd_clone_opendir, its resulting
19342         dir->dd_fd was 8, rather than the expected value of 6:
19343
19344         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19345         93                close (fd);
19346         (gdb) n
19347         94                dir = fd_clone_opendir (dupfd);
19348         (gdb) n
19349         95                saved_errno = errno;
19350         (gdb) p dir->dd_fd
19351         $11 = 8
19352
19353         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19354         The problem is that on OpenBSD, fd_clone_opendir has to resort
19355         to using the old-style save/restore CWD mechanism, due to its
19356         lack of openat/proc support, and *that* would steal the FD (6)
19357         that opendir was supposed to use.
19358
19359         The fix is to squirrel away the desired FD so that save_cwd uses a
19360         different one, and then free the dest FD right before calling opendir.
19361         That guarantees opendir will use the required file descriptor.
19362
19363         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19364
19365 2010-10-08  Bruno Haible  <bruno@clisp.org>
19366
19367         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19368         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19369
19370 2010-10-08  Bruno Haible  <bruno@clisp.org>
19371
19372         nanosleep: Make replacement POSIX compliant.
19373         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19374         is out of range.
19375         Reported by Jim Meyering.
19376
19377 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19378
19379         bootstrap: add hook for altering gnulib.mk, for Bison
19380         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19381         the Bison bootstrapping process can rewrite file names and variables
19382         in this file before later parts of 'bootstrap' use the file.
19383         Bison wants to include lib/gnulib.mk from the top-level makefile,
19384         so it needs the file names in this file to be relative to the top
19385         level, not relative to lib; plus it needs variable names to be
19386         rewritten.
19387         (slurp): Use the new function.
19388
19389         bootstrap: reformat for readability
19390         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19391
19392 2010-10-08  Eric Blake  <eblake@redhat.com>
19393
19394         docs: update cygwin progress
19395         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19396         1.7.7.
19397         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19398         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19399         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19400         * doc/posix-functions/carg.texi (carg): Likewise.
19401         * doc/posix-functions/cargf.texi (cargf): Likewise.
19402         * doc/posix-functions/casin.texi (casin): Likewise.
19403         * doc/posix-functions/casinf.texi (casinf): Likewise.
19404         * doc/posix-functions/casinh.texi (casinh): Likewise.
19405         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19406         * doc/posix-functions/catan.texi (catan): Likewise.
19407         * doc/posix-functions/catanf.texi (catanf): Likewise.
19408         * doc/posix-functions/catanh.texi (catanh): Likewise.
19409         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19410         * doc/posix-functions/ccos.texi (ccos): Likewise.
19411         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19412         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19413         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19414         * doc/posix-functions/cexp.texi (cexp): Likewise.
19415         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19416         * doc/posix-functions/cimag.texi (cimag): Likewise.
19417         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19418         * doc/posix-functions/clog.texi (clog): Likewise.
19419         * doc/posix-functions/clogf.texi (clogf): Likewise.
19420         * doc/posix-functions/conj.texi (conj): Likewise.
19421         * doc/posix-functions/conjf.texi (conjf): Likewise.
19422         * doc/posix-functions/cpow.texi (cpow): Likewise.
19423         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19424         * doc/posix-functions/cproj.texi (cproj): Likewise.
19425         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19426         * doc/posix-functions/creal.texi (creal): Likewise.
19427         * doc/posix-functions/crealf.texi (crealf): Likewise.
19428         * doc/posix-functions/csin.texi (csin): Likewise.
19429         * doc/posix-functions/csinf.texi (csinf): Likewise.
19430         * doc/posix-functions/csinh.texi (csinh): Likewise.
19431         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19432         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19433         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19434         * doc/posix-functions/ctan.texi (ctan): Likewise.
19435         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19436         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19437         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19438         * doc/posix-headers/complex.texi (complex.h): Likewise.
19439
19440 2010-10-07  Jim Meyering  <meyering@redhat.com>
19441
19442         parse-datetime: avoid compilation failure on OpenBSD 4.7
19443         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19444         This works around a compilation failure on OpenBSD 4.7:
19445         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19446
19447 2010-10-07  Eric Blake  <eblake@redhat.com>
19448
19449         docs: update cygwin progress
19450         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19451         1.7.6.
19452         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19453         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19454         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19455         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19456         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19457         Likewise.
19458         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19459         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19460         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19461         Likewise.
19462         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19463         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19464         Likewise.
19465         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19466         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19467         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19468         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19469         Likewise.
19470         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19471         Likewise.
19472         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19473
19474         docs: update parse-datetime history
19475         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19476         documentation of this function's history and alternatives.
19477
19478         cygwin: use more robust version check
19479         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19480         exclude an eventual cygwin 1.9.1.
19481         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19482         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19483         (gl_FUNC_STRCASESTR): Likewise.
19484         Reported by Bruno Haible.
19485
19486 2010-10-06  Bruno Haible  <bruno@clisp.org>
19487
19488         string, sys_select: Avoid #including large headers unless necessary.
19489         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19490         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19491         OSF/1, BeOS, Haiku.
19492         Reported by Jim Meyering.
19493
19494 2010-10-05  Eric Blake  <eblake@redhat.com>
19495
19496         memmem, strstr, strcasestr: fix bug with long periodic needle
19497         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19498         periodic needle having false positive.
19499         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19500         and cygwin 1.7.7.
19501         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19502         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19503         (gl_FUNC_STRCASESTR): Likewise.
19504         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19505         * tests/test-memmem.c (main): Expose the bug.
19506         * tests/test-strcasestr.c (main): Likewise.
19507         * tests/test-strstr.c (main): Likewise.
19508         * tests/test-c-strcasestr.c (main): Likewise.
19509         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19510         * doc/posix-functions/strstr.texi (strstr): Likewise.
19511         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19512         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19513
19514 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19515
19516         parse-datetime: do some more renaming
19517         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19518         parse_datetime, not get_date.  Mention the renaming.
19519         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19520         in comments.
19521         * m4/bison.m4: Likewise.
19522
19523 2010-10-05  Eric Blake  <eblake@redhat.com>
19524
19525         parse-datetime: better name than get_date
19526         * NEWS: Reword the deprecation notice.
19527         * modules/get_date: Rename to modules/parse-datetime.
19528         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19529         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19530         * lib/get_date.y: Rename to lib/parse-datetime.y.
19531         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19532         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19533         * doc/getdate.texi: Provide fallback wrapper.
19534         * lib/getdate.h: Move guts, and wrap...
19535         * lib/parse-datetime.h: ...new file.
19536         * lib/parse-datetime.y (get_date): Rename...
19537         (parse_datetime): ...to this.
19538         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19539         (gl_PARSE_DATETIME): ...to this.
19540         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19541         documentation.
19542         * modules/getdate (Files): Provide fallback docs and header.
19543         (Notice, Depends-on): Update references.
19544         * tests/test-parse-datetime.c: Likewise.
19545         * DEPENDENCIES: Likewise.
19546         * MODULES.html.sh (Date and time <time.h>): Likewise.
19547         * doc/parse-datetime.texi (Date input formats)
19548         (Authors of parse_datetime): Likewise.
19549         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19550         (Include): Likewise.
19551         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19552         * gnulib-tool: Likewise.
19553         * m4/bison.m4 (gl_BISON): Likewise.
19554         Suggested by Bruno Haible.
19555
19556 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19557
19558         more ports to Solaris tr, which needs [] around ranges
19559         * gnulib-tool: Solaris tr needs [] around ranges.
19560         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19561         * tests/test-pipe-filter-gi1.c (main): Likewise.
19562         * tests/test-pipe-filter-ii1.c (main): Likewise.
19563
19564 2010-10-05  Eric Blake  <eblake@redhat.com>
19565
19566         bootstrap: fix Solaris regression
19567         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19568         around ranges.
19569         Reported by Pádraig Brady.
19570
19571         bootstrap: work with pkg-config
19572         * build-aux/bootstrap (check_versions): Also transliterate - in
19573         prerequisite name.
19574         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19575         prerequisites that were already found, to avoid confusion.
19576         Reported by Justin Clift.
19577
19578         faccessat: remove unused wrappers
19579         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19580         presence of these wrappers dragged in -lgen on Solaris.
19581         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19582
19583 2010-10-05  Jim Meyering  <meyering@redhat.com>
19584
19585         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19586         * Makefile (sc_pragma_columns): New syntax-check rule.
19587
19588 2010-10-04  Bruno Haible  <bruno@clisp.org>
19589
19590         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19591         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19592         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19593         Reported by Bruce Korb and Eric Blake.
19594
19595 2010-10-04  Bruno Haible  <bruno@clisp.org>
19596
19597         threadlib: Make option --with-libpth-prefix work.
19598         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19599         use $LIBPTH, not just -lpth.
19600
19601 2010-10-04  Bruno Haible  <bruno@clisp.org>
19602
19603         Avoid line length limitation from HP NonStop system header files.
19604         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19605         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19606         * lib/ctype.in.h: Likewise.
19607         * lib/dirent.in.h: Likewise.
19608         * lib/errno.in.h: Likewise.
19609         * lib/fcntl.in.h: Likewise.
19610         * lib/float.in.h: Likewise.
19611         * lib/getopt.in.h: Likewise.
19612         * lib/iconv.in.h: Likewise.
19613         * lib/inttypes.in.h: Likewise.
19614         * lib/langinfo.in.h: Likewise.
19615         * lib/locale.in.h: Likewise.
19616         * lib/math.in.h: Likewise.
19617         * lib/netdb.in.h: Likewise.
19618         * lib/netinet_in.in.h: Likewise.
19619         * lib/poll.in.h: Likewise.
19620         * lib/pthread.in.h: Likewise.
19621         * lib/pty.in.h: Likewise.
19622         * lib/sched.in.h: Likewise.
19623         * lib/se-selinux.in.h: Likewise.
19624         * lib/search.in.h: Likewise.
19625         * lib/signal.in.h: Likewise.
19626         * lib/spawn.in.h: Likewise.
19627         * lib/stdarg.in.h: Likewise.
19628         * lib/stddef.in.h: Likewise.
19629         * lib/stdint.in.h: Likewise.
19630         * lib/stdio.in.h: Likewise.
19631         * lib/stdlib.in.h: Likewise.
19632         * lib/string.in.h: Likewise.
19633         * lib/strings.in.h: Likewise.
19634         * lib/sys_file.in.h: Likewise.
19635         * lib/sys_ioctl.in.h: Likewise.
19636         * lib/sys_select.in.h: Likewise.
19637         * lib/sys_socket.in.h: Likewise.
19638         * lib/sys_stat.in.h: Likewise.
19639         * lib/sys_time.in.h: Likewise.
19640         * lib/sys_times.in.h: Likewise.
19641         * lib/sys_utsname.in.h: Likewise.
19642         * lib/sys_wait.in.h: Likewise.
19643         * lib/sysexits.in.h: Likewise.
19644         * lib/termios.in.h: Likewise.
19645         * lib/time.in.h: Likewise.
19646         * lib/unistd.in.h: Likewise.
19647         * lib/wchar.in.h: Likewise.
19648         * lib/wctype.in.h: Likewise.
19649         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19650         * modules/ctype (Makefile.am): Likewise.
19651         * modules/dirent (Makefile.am): Likewise.
19652         * modules/errno (Makefile.am): Likewise.
19653         * modules/fcntl-h (Makefile.am): Likewise.
19654         * modules/float (Makefile.am): Likewise.
19655         * modules/getopt-posix (Makefile.am): Likewise.
19656         * modules/iconv-h (Makefile.am): Likewise.
19657         * modules/inttypes (Makefile.am): Likewise.
19658         * modules/langinfo (Makefile.am): Likewise.
19659         * modules/locale (Makefile.am): Likewise.
19660         * modules/math (Makefile.am): Likewise.
19661         * modules/netdb (Makefile.am): Likewise.
19662         * modules/netinet_in (Makefile.am): Likewise.
19663         * modules/poll-h (Makefile.am): Likewise.
19664         * modules/pthread (Makefile.am): Likewise.
19665         * modules/pty (Makefile.am): Likewise.
19666         * modules/sched (Makefile.am): Likewise.
19667         * modules/search (Makefile.am): Likewise.
19668         * modules/selinux-h (Makefile.am): Likewise.
19669         * modules/signal (Makefile.am): Likewise.
19670         * modules/spawn (Makefile.am): Likewise.
19671         * modules/stdarg (Makefile.am): Likewise.
19672         * modules/stddef (Makefile.am): Likewise.
19673         * modules/stdint (Makefile.am): Likewise.
19674         * modules/stdio (Makefile.am): Likewise.
19675         * modules/stdlib (Makefile.am): Likewise.
19676         * modules/string (Makefile.am): Likewise.
19677         * modules/strings (Makefile.am): Likewise.
19678         * modules/sys_file (Makefile.am): Likewise.
19679         * modules/sys_ioctl (Makefile.am): Likewise.
19680         * modules/sys_select (Makefile.am): Likewise.
19681         * modules/sys_socket (Makefile.am): Likewise.
19682         * modules/sys_stat (Makefile.am): Likewise.
19683         * modules/sys_time (Makefile.am): Likewise.
19684         * modules/sys_times (Makefile.am): Likewise.
19685         * modules/sys_utsname (Makefile.am): Likewise.
19686         * modules/sys_wait (Makefile.am): Likewise.
19687         * modules/sysexits (Makefile.am): Likewise.
19688         * modules/termios (Makefile.am): Likewise.
19689         * modules/time (Makefile.am): Likewise.
19690         * modules/unistd (Makefile.am): Likewise.
19691         * modules/wchar (Makefile.am): Likewise.
19692         * modules/wctype (Makefile.am): Likewise.
19693
19694 2010-10-04  Bruno Haible  <bruno@clisp.org>
19695
19696         read-file tests: Avoid a test failure on NonStop Kernel.
19697         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19698         a regular file.
19699         Reported by Joachim Schmitz <schmitz@hp.com>.
19700
19701 2010-10-03  Bruno Haible  <bruno@clisp.org>
19702
19703         gnulib-tool: Fixes for --create-testdir with --libtool.
19704         * gnulib-tool (func_get_automake_snippet): Don't augment
19705         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19706         an executable.
19707         (func_create_testdir): Handle module 'alloca' like func_import.
19708         Reported by Bruce Korb <bruce.korb@gmail.com>.
19709
19710 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19711
19712         Avoid some lines longer than 80 characters.
19713         * lib/stdint.in.h: Break long comment lines.
19714         * lib/math.in.h: Likewise.
19715         (_GL_NUM_UINT_WORDS): New macro, for readability.
19716         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19717         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19718         * lib/stdlib.in.h: Likewise.
19719         * lib/spawn.in.h: Likewise.
19720         * lib/sys_socket.in.h: Update an URL.
19721         * lib/sys_stat.in.h: Break long line.
19722
19723 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19724
19725         Improve pmccabe2html.
19726         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19727         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19728         when the sources change. Remove the line in the HTML about "Used
19729         ranges" (which implied that there might be other unused ranges),
19730         rename "Resume" to "Summary" (easier to understand for more users).
19731         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19732         styles, and some unnecessary blank lines.
19733
19734 2010-10-03  Bruno Haible  <bruno@clisp.org>
19735             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19736
19737         acl: Add support for ACLs on NonStop Kernel.
19738         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19739         Check whether the function aclsort() exists.
19740         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19741         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19742         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19743         (acl_nontrivial [HAVE_ACLSORT]: New function.
19744         (file_has_acl): Implement for NonStop Kernel.
19745         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19746         (qset_acl): Implement for NonStop Kernel.
19747         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19748         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19749         (main): Implement for NonStop Kernel.
19750         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19751         Kernel. Handle this flavor.
19752         * tests/test-set-mode-acl.sh: Likewise.
19753         * tests/test-copy-acl.sh: Likewise.
19754         * tests/test-copy-file.sh: Likewise.
19755
19756 2010-10-03  Bruno Haible  <bruno@clisp.org>
19757
19758         Info about ACLs on NonStop Kernel.
19759         * doc/acl-resources.txt: Add info about NonStop Kernel.
19760         References by Joachim Schmitz <schmitz@hp.com>.
19761
19762 2010-10-02  Bruno Haible  <bruno@clisp.org>
19763
19764         Define missing EDQUOT on NonStop Kernel.
19765         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19766         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19767         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19768         missing.
19769         * doc/posix-headers/errno.texi: Mention the NSK bug.
19770         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19771         Reported by Joachim Schmitz <schmitz@hp.com>.
19772
19773 2010-10-02  Bruno Haible  <bruno@clisp.org>
19774
19775         Update doc for POSIX:2008.
19776         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19777         Update URL of POSIX specification.
19778
19779 2010-10-02  Bruno Haible  <bruno@clisp.org>
19780
19781         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19782         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19783         from gnulib, not from Automake.
19784
19785 2010-10-02  Bruno Haible  <bruno@clisp.org>
19786
19787         New module 'system-posix'.
19788         * modules/system-posix: New file.
19789         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19790         module is present.
19791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19792         GNULIB_SYSTEM_POSIX.
19793         * modules/stdlib (Depends-on): Remove sys_wait.
19794         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19795         * doc/posix-functions/system.texi: Mention the new module.
19796         * doc/posix-headers/stdlib.texi: Likewise.
19797         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19798         define test_sys_wait_macros to a no-op.
19799         Reported by Sam Steingold <sds@gnu.org>.
19800
19801 2010-09-30  Bruno Haible  <bruno@clisp.org>
19802
19803         More renaming from 'getdate' to 'get_date'.
19804         * doc/get_date.texi: Renamed from doc/getdate.texi.
19805         * modules/get_date (Files): Update.
19806         * MODULES.html.sh (Date and time <time.h>): Update.
19807         * DEPENDENCIES: Update.
19808         * gnulib-tool: Update comment.
19809         * m4/bison.m4 (gl_BISON): Likewise.
19810         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19811
19812 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19813
19814         bootstrap: support ACLOCAL_FLAGS during aclocal
19815         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19816         can add additional -I dir for third-party .m4 files.
19817
19818 2010-09-30  Eric Blake  <eblake@redhat.com>
19819
19820         bootstrap: use glibtoolize on MacOS
19821         * build-aux/bootstrap (check_versions): Convert libtool into
19822         libtoolize.
19823         (tool search): Move libtool check earlier, and look for
19824         glibtoolize for MacOS.
19825         (gnulib_tool_options): Auto-add --libtool when appropriate.
19826         Reported by Justin Clift.
19827
19828         poll: fix typo that broke test on MacOS
19829         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19830         Reported by Justin Clift.
19831
19832         getdate: rename to get_date
19833         Note: getdate.h is not renamed, to minimize client impact.
19834         * modules/getdate: Mark obsolete.  Move old contents...
19835         * modules/get_date: ...to new module name.
19836         * modules/getdate-tests: Move...
19837         * modules/get_date-tests: ...here.
19838         * m4/getdate.m4: Move...
19839         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19840         * lib/getdate.y: Move...
19841         * lib/get_date.y: ...here.
19842         * tests/test-getdate.c: Move...
19843         * tests/test-get_date.c: ...here.
19844         * doc/posix-functions/getdate.texi (getdate): Update name.
19845         * NEWS: Mention the change.
19846
19847 2010-09-29  Bruno Haible  <bruno@clisp.org>
19848
19849         Separate the module 'waitpid' from the module 'sys_wait'.
19850         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19851         present.
19852         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19853         gl_MODULE_INDICATOR_FOR_TESTS.
19854         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19855         * modules/sys_wait (Depends-on): Remove waitpid.
19856         (Makefile.am): Substitute GNULIB_WAITPID.
19857         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19858         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19859         signature only if the 'waitpid' module is present.
19860         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19861         * NEWS: Mention the change.
19862         * modules/grantpt (Depends-on): Add waitpid.
19863         * modules/wait-process (Depends-on): Likewise.
19864
19865 2010-09-29  Bruno Haible  <bruno@clisp.org>
19866
19867         More tests for module 'sys_wait'.
19868         * modules/sys_wait-c++-tests: New file.
19869         * tests/test-sys_wait-c++.cc: New file.
19870         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19871         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19872
19873 2010-09-29  Bruno Haible  <bruno@clisp.org>
19874
19875         New module 'waitpid'.
19876         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19877         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19878         Don't include <process.h>.
19879         (waitpid): Declare only, using modern idiom.
19880         * m4/waitpid.m4: New file.
19881         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19882         * modules/waitpid: New file.
19883         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19884         (Makefile.am): Update.
19885         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19886
19887 2010-09-28  Bruno Haible  <bruno@clisp.org>
19888
19889         poll: Assume ANSI C.
19890         * lib/poll.c (poll): Use an ANSI C declaration.
19891
19892 2010-09-28  Bruno Haible  <bruno@clisp.org>
19893
19894         poll-h: Create poll.h on all platforms.
19895         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19896         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19897         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19898         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19899         (gl_REPLACE_POLL_H): Don't set POLL_H.
19900         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19901         * modules/poll-h (Depends-on): Add include_next.
19902         (Makefile.am): Create poll.h unconditionally. Substitute also
19903         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19904
19905 2010-09-28  Bruno Haible  <bruno@clisp.org>
19906
19907         Tests for module 'poll-h'.
19908         * modules/poll-h-c++-tests: New file.
19909         * tests/test-poll-h-c++.cc: New file.
19910
19911         Tests for module 'poll-h'.
19912         * modules/poll-h-tests: New file.
19913         * tests/test-poll-h.c: New file.
19914
19915 2010-09-28  Bruno Haible  <bruno@clisp.org>
19916
19917         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19918         * modules/poll-h (Depends-on): Add 'extensions'.
19919
19920 2010-09-28  Bruno Haible  <bruno@clisp.org>
19921
19922         New module 'poll-h'.
19923         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19924         (poll): Use modern idiom.
19925         * modules/poll-h: New file.
19926         * modules/poll (Files): Remove lib/poll.in.h.
19927         (Depends-on): Add poll-h.
19928         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19929         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19930         * m4/poll_h.m4: New file.
19931         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19932         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19933         and invoke gl_REPLACE_POLL_H.
19934         * lib/poll.c: Use common idiom.
19935         * tests/test-poll.c: Likewise.
19936         * doc/posix-headers/poll.texi: Mention the poll-h module.
19937         Suggested by Eric Blake.
19938
19939 2010-09-26  Bruno Haible  <bruno@clisp.org>
19940
19941         sys_wait: Implement WSTOPSIG.
19942         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19943         Reported by Simon Josefsson.
19944
19945 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19946
19947         stdlib, sys_wait: Avoid compilation error on mingw.
19948         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19949
19950 2010-09-26  Bruno Haible  <bruno@clisp.org>
19951
19952         stdlib tests: Avoid code duplication.
19953         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19954         * modules/sys_wait-tests (Files): Likewise.
19955         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19956         * tests/test-stdlib.c: Include test-sys_wait.h.
19957         (main): Invoke test_sys_wait_macros.
19958         * tests/test-sys_wait.c: Include test-sys_wait.h.
19959         (main): Invoke test_sys_wait_macros.
19960
19961 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19962
19963         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19964         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19965         sure Windows sockets are working before calling getaddrinfo.
19966         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19967         * doc/gnulib.texi (Windows sockets): Fix typo.
19968
19969 2010-09-25  Bruno Haible  <bruno@clisp.org>
19970
19971         Tests for module 'regex-quote'.
19972         * modules/regex-quote-tests: New file.
19973         * tests/test-regex-quote.c: New file.
19974
19975         New module 'regex-quote'.
19976         * lib/regex-quote.h: New file.
19977         * lib/regex-quote.c: New file.
19978         * modules/regex-quote: New file.
19979         Suggested by Reuben Thomas <rrt@sc3d.org>.
19980
19981 2010-09-24  Bruno Haible  <bruno@clisp.org>
19982
19983         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19984         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19985
19986 2010-09-23  Bruno Haible  <bruno@clisp.org>
19987
19988         setenv: Relax license.
19989         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19990         Blake.
19991         Requested by Eric Blake.
19992
19993 2010-09-22  Bruno Haible  <bruno@clisp.org>
19994
19995         termios: Relax license.
19996         * modules/termios (License): Change to LGPLv2+.
19997         Requested by Eric Blake.
19998
19999 2010-09-22  Bruno Haible  <bruno@clisp.org>
20000
20001         threadlib: Allow the package to change the default to 'no'.
20002         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20003         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20004         Reported by Paul Eggert.
20005
20006 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20007             Bruno Haible  <bruno@clisp.org>
20008
20009         Fix endless loop in mbmemcasecoll.
20010         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20011         byte.
20012         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20013
20014 2010-09-22  Bruno Haible  <bruno@clisp.org>
20015
20016         Tests for module 'memcoll'.
20017         * modules/memcoll-tests: New file.
20018         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20019
20020         memcoll, xmemcoll: Clarify size vs. length.
20021         * modules/memcoll.c (memcoll0): Clarify specification.
20022         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20023         passed to collate_error.
20024
20025 2010-09-22  Bruno Haible  <bruno@clisp.org>
20026
20027         Tests for module 'memcasecmp'.
20028         * modules/memcasecmp-tests: New file.
20029         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20030
20031 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20032
20033         * lib/pthread.in.h: Add split double-inclusion guard, and include
20034         system <pthread.h> if there is one.  Use @@-style as in other
20035         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20036         pthread.h doesn't.
20037         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20038         (pthread_mutexattr_settype, pthread_mutex_trylock):
20039         New static inline functions, if there's no system <pthread.h>.
20040         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20041         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20042         Approximate with mutexes if the system lacks spinlocks, as in
20043         MacOS.
20044         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20045         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20046         @@-style.  Check for spinlocks separately.
20047         (gl_PTHREAD_DEFAULTS): New macro.
20048         * modules/pthread: Redo to use a more typical style for in.h files.
20049
20050 2010-09-21  Eric Blake  <eblake@redhat.com>
20051
20052         net_if: enhance tests
20053         * tests/test-net_if.c (main): Move signature checks earlier.
20054         Print failures to stderr.
20055         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20056         Document the bug that we do not yet fix.
20057
20058 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20059
20060         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20061         about gnulib, not GSS.
20062
20063 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20064
20065         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20066         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20067         for Emacs.
20068         * build-aux/pmccabe2html: Make Makefile.am example code more
20069         cut-and-paste friendly.
20070
20071 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20072
20073         * tests/test-net_if.c: New file.
20074         * modules/net_if-tests: New file.
20075
20076 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20077
20078         pthread: add pthread_spin_destroy
20079         * lib/pthread.in.h (pthread_spin_destroy): New function.
20080
20081 2010-09-19  Bruno Haible  <bruno@clisp.org>
20082
20083         gnulib-tool: Fix --help output.
20084         * gnulib-tool (func_usage): Fix help message.
20085         Reported by Reuben Thomas <rrt@sc3d.org>.
20086
20087 2010-09-18  Jim Meyering  <meyering@redhat.com>
20088
20089         maint.mk: avoid unexpanded \n in two diagnostics
20090         * top/maint.mk (sc_prohibit_always_true_header_tests):
20091         Don't use a literal \n in a halt=... assignment.  It would not be
20092         expanded, and the two \n bytes would appear in the diagnostic output
20093         rather than the desired newline.  Use halt=$$(printf ... instead.
20094         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20095
20096 2010-09-18  Bruno Haible  <bruno@clisp.org>
20097
20098         netinet_in: Doc tweak.
20099         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20100         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20101
20102 2010-09-18  Jim Meyering  <meyering@redhat.com>
20103
20104         init.sh: correct an outdated comment
20105         * tests/init.sh (create_exe_shims_):  s/function/alias/
20106
20107         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20108         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20109         a file named "*.exe" is removed between the glob expansion and the
20110         processing of that oddly named file.
20111
20112 2010-09-17  Eric Blake  <eblake@redhat.com>
20113
20114         mirbsd: add some more support
20115         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20116         in BSD family.
20117         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20118         devices as OpenBSD.
20119         * m4/host-os.m4 (mirbsd): Add MirBSD.
20120
20121         tests: fix unportable assumption on sys/wait.h
20122         * tests/test-sys_wait.c (main): Relax test.
20123         * tests/test-stdlib.c (main): Likewise.
20124
20125         init.sh: accomodate directory with no .exes
20126         * tests/init.sh: Accomodate directory containing only scripts.
20127
20128         tests: avoid compiler warning
20129         * tests/test-stdlib.c (main): Use the variable.
20130
20131         fdutimens, fdutimensat: update signature, again
20132         * lib/utimens.h (gl_futimens): Delete, and move signature...
20133         (fdutimens): ...here.
20134         (fdutimensat): Rearrange signature.
20135         (lutimensat): Rename variable for clarity.
20136         * lib/fdutimensat.c (fdutimensat): Update signature.
20137         * lib/utimens.c (fdutimens): Likewise.
20138         (gl_futimens): Delete.
20139         (utimens, lutimens): Update callers.
20140         * lib/futimens.c (futimens): Likewise.
20141         * tests/test-fdutimensat.c: Likewise.
20142         * tests/test-utimens.c: Likewise.
20143         * tests/test-futimens.h: Update comment.
20144         * NEWS: Mention this.
20145         Suggested by Paul Eggert.
20146
20147 2010-09-17  Bruno Haible  <bruno@clisp.org>
20148
20149         Take over the maintenance of some older macros from Autoconf.
20150         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20151         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20152         GNU Autoconf.
20153         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20154         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20155
20156 2010-09-17  Eric Blake  <eblake@redhat.com>
20157
20158         fdutimensat: drop atflag validation
20159         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20160         with valid fd, to close a race scenario where futimens is
20161         unsupported and FILE was replaced by a symlink.
20162         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20163         accordingly.
20164         Suggested by Paul Eggert.
20165
20166 2010-09-16  Bruno Haible  <bruno@clisp.org>
20167
20168         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20169         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20170
20171 2010-09-16  Bruno Haible  <bruno@clisp.org>
20172
20173         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20174         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20175         login_tty exists.
20176         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20177
20178 2010-09-16  Bruno Haible  <bruno@clisp.org>
20179
20180         login_tty: Make the replacement code work on BSD systems.
20181         * lib/login_tty.c: Include <sys/ioctl.h>.
20182         (login_tty): Use ioctl TIOCSCTTY when available.
20183         * modules/login_tty (Depends-on): Add sys_ioctl.
20184         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20185
20186 2010-09-16  Bruno Haible  <bruno@clisp.org>
20187
20188         login_tty: Stricter unit test.
20189         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20190         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20191         and tcgetsid() after login_tty.
20192         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20193
20194 2010-09-16  Bruno Haible  <bruno@clisp.org>
20195
20196         New module 'tcgetsid'.
20197         * lib/tcgetsid.c: New file.
20198         * m4/tcgetsid.m4: New file.
20199         * modules/tcgetsid: New file.
20200         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20201         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20202         GNULIB_TCGETSID, HAVE_TCGETSID.
20203         * lib/termios.in.h: Include <sys/types.h>.
20204         (tcgetsid): New declaration.
20205         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20206         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20207         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20208         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20209
20210 2010-09-16  Bruno Haible  <bruno@clisp.org>
20211
20212         Tests for module 'termios'.
20213         * modules/termios-c++-tests: New file.
20214         * modules/termios-tests: New file.
20215         * tests/test-termios-c++.cc: New file.
20216         * tests/test-termios.c: New file.
20217
20218         New module 'termios'.
20219         * modules/termios: New file.
20220         * lib/termios.in.h: New file.
20221         * m4/termios_h.m4: New file.
20222         * doc/posix-headers/termios.texi: Mention the new module.
20223
20224 2010-09-16  Eric Blake  <eblake@redhat.com>
20225
20226         fdutimensat: add an atflag parameter
20227         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20228         * lib/utimens.h (fdutimensat): Update prototype.
20229         * tests/test-fdutimensat.c: Adjust test to match.
20230         * NEWS: Document the change.
20231         Suggested by Paul Eggert.
20232
20233 2010-09-16  Bruno Haible  <bruno@clisp.org>
20234
20235         Fix typos in comments.
20236         * lib/striconveh.h: Fix typo in comment.
20237         * lib/login_tty.c (login_tty): Likewise.
20238
20239 2010-09-15  Bruno Haible  <bruno@clisp.org>
20240
20241         stdlib: clarify MirBSD WEXITSTATUS bug
20242         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20243         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20244
20245 2010-09-15  Eric Blake  <eblake@redhat.com>
20246
20247         stdlib: work around MirBSD WEXITSTATUS bug
20248         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20249         * modules/stdlib (Depends-on): Add sys_wait.
20250         * tests/test-sys_wait.c (main): Enhance test.
20251         * tests/test-stdlib.c (main): Likewise.
20252         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20253
20254         docs: mention MacOS issue with WEXITSTATUS(constant)
20255         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20256         issue.
20257         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20258
20259         strnlen: add tests
20260         * modules/strnlen-tests: New file.
20261         * tests/test-strnlen.c: Likewise.
20262
20263 2010-09-14  Bruno Haible  <bruno@clisp.org>
20264
20265         unistr/base: Avoid link errors when module 'libunistring' is also used.
20266         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20267         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20268         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20269         Declare also when HAVE_LIBUNISTRING is set.
20270         Reported by Pádraig Brady <P@draigbrady.com>.
20271
20272 2010-09-14  Eric Blake  <eblake@redhat.com>
20273
20274         test-rawmemchr: make more robust
20275         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20276         (Depends-on, configure.ac): Add needed prerequisites to use it.
20277         * modules/memchr-tests (Files, Depends-on, configure.ac):
20278         Likewise, to avoid implicit reliance on memchr module prereqs.
20279         * tests/test-memchr.c (main): Ensure proper masking.
20280         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20281         reads.
20282
20283         memchr: detect glibc Alpha bug
20284         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20285         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20286         Alpha.
20287         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20288         * tests/test-memchr.c (main): Enhance test.
20289         Reported by Nelson H. F. Beebe.
20290
20291 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20292
20293         fts, getcwd, glob: audit for dirfd returning -1
20294         * lib/fts.c (opendir): Remove #define; no longer used.
20295         (opendirat): New arg PDIR_FD.  All callers changed.
20296         (fts_build, _opendir2): Use new opendirat to avoid the need for
20297         dirfd, or for checking whether dirfd returns a negative value.
20298         Don't use opendir; always use openat followed by fdopendir.
20299         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20300         it.
20301         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20302         returns -1 here.
20303         * modules/fts (Depends-on): Remove dirfd.
20304         * modules/getcwd (Depends-on): Likewise.
20305
20306 2010-09-13  Eric Blake  <eblake@redhat.com>
20307
20308         float: fix broken MirBSD header
20309         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20310         * doc/posix-headers/float.texi (float.h): Document it.
20311
20312 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20313
20314         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20315         * lib/fts.c (opendirat): New arg extra_flags.
20316         (__opendir2): Use it to avoid following symlinks when opening
20317         a directory, if symlinks are not supposed to be followed.  See
20318         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20319
20320         fdopendir: preserve argument fd before returning
20321         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20322         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20323         (fdopendir): Use them, arranging for FD to be open to the same
20324         directory that it was when it started.  (It might be temporarily
20325         closed while fdopendir is running, so this not thread- or
20326         signal-safe.)  Be careful to do the right thing even when file
20327         descriptors are scarce and dup fails with errno == EMFILE.  See
20328         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20329
20330 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20331
20332         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20333         * NEWS: Document change.
20334         * m4/regex.m4: Disable test for regoff_t size.
20335
20336 2010-09-13  Jim Meyering  <meyering@redhat.com>
20337
20338         fts: don't operate on an invalid file descriptor after failed dup
20339         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20340         negative file descriptor.
20341
20342 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20343
20344         savedir: add streamsavedir, deprecate fdsavedir
20345         * NEWS: Mention deprecation of fdsavedir.
20346         * lib/savedir.c (streamsavedir): New extern function, whose name
20347         ends in "savedir" to be consistent with the others.  This differs
20348         from savedirstream in that it doesn't close its argument.  The
20349         next version of GNU tar will use this instead of fdsavedir, to
20350         avoid some race conditions and conserve file descriptors.
20351         (savedirstream): Reimplement as a wrapper around streamsavedir.
20352         (fdsavedir): Add a comment deprecating this function.  As far as
20353         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20354         * lib/savedir.h (streamsavedir): New decl.
20355         (fdsavedir): Add a comment deprecating this.
20356
20357 2010-09-10  Bruno Haible  <bruno@clisp.org>
20358
20359         langinfo: Fix last commit.
20360         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20361         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20362         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20363
20364 2010-09-10  Bruno Haible  <bruno@clisp.org>
20365
20366         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20367         * lib/progreloc.c (O_EXEC): Define fallback.
20368
20369 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20370
20371         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20372         * NEWS: Document recent changes to fcntl-h.
20373         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20374         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20375         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20376         Similarly for O_SEARCH; this last was already true, but not documented.
20377         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20378         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20379         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20380         Likewise.
20381         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20382         is zero, not whether it is defined.
20383         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20384         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20385         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20386
20387 2010-09-10  Bruno Haible  <bruno@clisp.org>
20388
20389         langinfo, nl_langinfo: Fix for IRIX 5.3.
20390         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20391         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20392         HAVE_LANGINFO_YESEXPR.
20393         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20394         HAVE_LANGINFO_YESEXPR.
20395         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20396         HAVE_LANGINFO_T_FMT_AMPM is 0.
20397         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20398         HAVE_LANGINFO_YESEXPR is 0.
20399         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20400         NOEXPR.
20401         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20402         * doc/posix-functions/nl_langinfo.texi: Likewise.
20403         Reported by Eric Blake.
20404
20405 2010-09-10  Bruno Haible  <bruno@clisp.org>
20406
20407         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20408         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20409         on FreeBSD 8.0 and OpenBSD 4.6.
20410         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20411         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20412         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20413         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20414         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20415         ac_includes_default.
20416         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20417
20418 2010-09-09  Eric Blake  <eblake@redhat.com>
20419
20420         strsignal: work around NetBSD bug
20421         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20422         * lib/string.in.h (includes): Likewise.
20423         * doc/posix-functions/strsignal.texi (strsignal): Document the
20424         bug.
20425         Reported by Nelson H. F. Beebe.
20426
20427         gnulib-tool: work with NetBSD /bin/sh
20428         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20429         (func_get_description, func_get_comment, func_get_status)
20430         (func_get_notice, func_get_applicability, func_get_filelist)
20431         (func_get_dependencies, func_get_autoconf_early_snippet)
20432         (func_get_autoconf_snippet, func_get_automake_snippet)
20433         (func_get_include_directive, func_get_link_directive)
20434         (func_get_license, func_get_maintainer, func_import): Avoid
20435         shell syntax errors from parsing syntax extensions.
20436
20437 2010-09-09  Bruno Haible  <bruno@clisp.org>
20438
20439         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20440         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20441         a reliable way to determine whether the 'alias' command works.
20442
20443 2010-09-08  Jim Meyering  <meyering@redhat.com>
20444
20445         init.sh: penalize a set-x-impaired shell; don't disqualify it
20446         * tests/init.sh: Too many shells corrupt application stderr when
20447         you set -x, so we can't afford to disqualify them, since at least
20448         on Irix-6.5, that would disqualify all bourne shells.
20449         Instead, use a two-pass approach.
20450         On the first pass, try to find a shell that meets the stricter
20451         condition that set -x does not corrupt stderr.
20452         If no shell meets the stricter condition, retest each candidate
20453         shell, but without that extra condition.  Finally, when
20454         VERBOSE=yes is requested and set -x might cause trouble, simply
20455         issue a warning and refrain from enabling debug output.
20456
20457 2010-09-08  Eric Blake  <eblake@redhat.com>
20458
20459         unsetenv: fix OpenBSD bug
20460         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20461         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20462         documentation.
20463         Reported by Jim Meyering.
20464
20465         strtod: work around IRIX 6.5 bug
20466         * lib/strtod.c (strtod): Reparse number on shorter string if
20467         exponent parse was invalid.
20468         * tests/test-strtod.c (main): Add check for "0x1p 2".
20469         Reported by Tom G. Christensen.
20470
20471         getopt: optimize previous patch
20472         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20473         empty variable.  Speed up awk script.
20474         Reported by Paolo Bonzini.
20475
20476 2010-09-08  Jim Meyering  <meyering@redhat.com>
20477
20478         test.sh: disqualify shells for which set -x corrupts stderr
20479         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20480         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20481         appear in stderr output.  For example, this command:
20482             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20483         prints "P=1" on those two systems:
20484
20485 2010-09-08  Bruno Haible  <bruno@clisp.org>
20486
20487         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20488         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20489         commands, because some shells ignore redirections when there is an
20490         error in the command lookup.
20491         Reported by Eric Blake.
20492
20493 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20494
20495         * lib/regex.h: Fix a mention of `regex_compile' (should be
20496         `re_compile_pattern').
20497         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20498         (re_set_registers): Correct name of parameter in comment.
20499
20500         * doc/regex.texi: Add documentation for missing syntax flags.
20501         Remove commented-out documentation of defunct syntax option
20502         RE_NO_EMPTY_ALTS.
20503         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20504         Add documentation of re_set_registers.
20505         Document trick to re-use a pattern buffer by setting fastmap manually.
20506         Update documentation of struct re_pattern_buffer per public members.
20507         Uncomment documentation of equivalence class operators and
20508         collating symbol operators, since they are now implemented,
20509         Explain leftmost-longest matching in relation to alternatives.
20510         Tidy documentation of substring matching.
20511         Remove POSIX documentation, which is done better in
20512         glibc, and refer the reader there. Keep BSD API documentation, as
20513         that is not readily available elsewhere.
20514
20515 2010-09-07  Eric Blake  <eblake@redhat.com>
20516
20517         getopt: handle POSIXLY_CORRECT set but not exported
20518         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20519         export state of POSIXLY_CORRECT, due to bash set -o posix.
20520         Reported by Dustin J. Mitchell.
20521
20522 2010-09-05  Bruno Haible  <bruno@clisp.org>
20523
20524         gnulib-tool: Highlight the changed options.
20525         * gnulib-tool (func_usage): Display the --import, --add-import,
20526         --remove-import explanations in bold font.
20527
20528 2010-09-06  Karl Berry  <karl@gnu.org>
20529
20530         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20531
20532 2010-09-05  Bruno Haible  <bruno@clisp.org>
20533
20534         uniwidth/width: Update comment.
20535         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20536         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20537
20538 2010-09-05  Bruno Haible  <bruno@clisp.org>
20539
20540         isinf, isnan: Relax license.
20541         * modules/isinf (License): Change from GPL to LGPL, with consent from
20542         Ben Pfaff.
20543         * modules/isnan (License): Likewise.
20544         Requested by Ludovic Courtès.
20545
20546 2010-09-04  Bruno Haible  <bruno@clisp.org>
20547
20548         gnulib-tool: Help migration from --import to --add-import or --update.
20549         * gnulib-tool: Emit a verbose error message when --import is used
20550         without any module name.
20551
20552 2010-09-04  Bruno Haible  <bruno@clisp.org>
20553
20554         Update doc about gnulib-tool.
20555         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20556         'gnulib-tool --update' in more detail.
20557         Reported by Eric Blake.
20558
20559 2010-09-04  Bruno Haible  <bruno@clisp.org>
20560
20561         gnulib-tool: Change --import. New options --add/remove-import.
20562         * gnulib-tool: New options --add-import, --remove-import.
20563         (func_usage): Document them.
20564         (have_associative): Define always.
20565         (func_import): In import mode, don't merge the specified settings with
20566         the cached settings. Implement remove-import mode.
20567         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20568         Explain when to use them versus --import.
20569         (Simple update): Use --add-import instead of --import.
20570         * NEWS: Mention the change.
20571
20572 2010-09-04  Bruno Haible  <bruno@clisp.org>
20573
20574         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20575         separate gnulib.mk.
20576
20577 2010-09-04  Bruno Haible  <bruno@clisp.org>
20578
20579         gnulib-tool: Don't talk about CVS any more.
20580         * gnulib-tool (func_usage, func_import): Write "version control"
20581         instead of CVS.
20582
20583 2010-09-04  Jim Meyering  <meyering@redhat.com>
20584
20585         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20586         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20587         false positives (whose names may be ill-chosen) when searching
20588         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20589         would cause a false-positive.
20590
20591         avoid coreutils "make distcheck" failure
20592         Coreutils tests with an absolute build directory name that contains
20593         a space.  Not quoting this directory name caused a failure.
20594         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20595         * tests/test-vc-list-files-cvs.sh: Likewise.
20596
20597 2010-09-04  Bruno Haible  <bruno@clisp.org>
20598
20599         gnulib-tool: Avoid error when run in a package without Makefile.am.
20600         * gnulib-tool: When collecting the m4dirs in a package that does not
20601         have a Makefile.am, eliminate those directories that contain no
20602         gnulib-cache.m4. Fix expression that counts these directories.
20603
20604 2010-09-04  Bruno Haible  <bruno@clisp.org>
20605
20606         update-copyright test: Improve output when perl is missing or too old.
20607         * tests/test-update-copyright.sh: Move test of Perl version down after
20608         the test whether Perl exists. Provide an explanation relating Perl's
20609         error message to Automake's SKIP: message.
20610
20611 2010-09-04  Bruno Haible  <bruno@clisp.org>
20612
20613         Don't augment PATH in TESTS_ENVIRONMENT.
20614         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20615         set abs_aux_dir instead of augmenting PATH.
20616         * modules/vc-list-files-tests (Makefile.am): Likewise.
20617         * tests/test-update-copyright.sh: Augment PATH here.
20618         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20619         path_prepend_.
20620         * tests/test-vc-list-files-git.sh: Likewise.
20621
20622 2010-09-04  Jim Meyering  <meyering@redhat.com>
20623
20624         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20625         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20626
20627 2010-09-04  Bruno Haible  <bruno@clisp.org>
20628
20629         strdup: Fix compilation error in C++ mode.
20630         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20631         the macro.
20632
20633 2010-09-04  Bruno Haible  <bruno@clisp.org>
20634
20635         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20636         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20637         macro into a function.
20638         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20639
20640 2010-09-04  Bruno Haible  <bruno@clisp.org>
20641
20642         Set PATH_SEPARATOR the same way autoconf does.
20643         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20644         the value of PATH_SEPARATOR the same way autoconf-generated configure
20645         scripts do.
20646         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20647         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20648
20649 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20650
20651         Set PATH_SEPARATOR the same way autoconf does.
20652         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20653         the same way autoconf-generated configure scripts do.
20654         * posix-modules: Likewise.
20655
20656 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20657
20658         hash: fix safe_hasher const typo
20659         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20660         const; otherwise, there is a type error later.
20661
20662 2010-09-02  Jim Meyering  <meyering@redhat.com>
20663
20664         test-update-copyright.sh: require perl 5.8.0
20665         * tests/test-update-copyright.sh: Require 5.8.0,
20666         which Tom G. Christensen has confirmed is adequate,
20667         while 5.6.1 is not.
20668
20669 2010-09-02  Eric Blake  <eblake@redhat.com>
20670
20671         tests: init.sh improvements for re-exec'ing with zsh
20672         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20673         -vx through shell re-exec.
20674         Reported by Tom G. Christensen.
20675
20676         wctype: fix typo in previous commit
20677         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20678         Reported by Ludovic Courtès.
20679
20680 2010-09-02  Jim Meyering  <meyering@redhat.com>
20681
20682         test-update-copyright.sh: skip test if Perl is too old
20683         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20684         Reported by Tom G. Christensen.
20685
20686 2010-09-02  Bruno Haible  <bruno@clisp.org>
20687
20688         wctype: Avoid compilation error on IRIX 6.5.30.
20689         * lib/wctype.in.h (iswblank): Declare with a replacement if
20690         REPLACE_ISWBLANK is set.
20691         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20692         declared. Set REPLACE_ISWBLANK.
20693         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20694         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20695         * doc/posix-headers/wctype.texi: Likewise.
20696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20697
20698 2010-09-01  Bruno Haible  <bruno@clisp.org>
20699
20700         New module 'socketlib'.
20701         * modules/socketlib: New file.
20702         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20703         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20704         * modules/sockets (Depends-on): Add socketlib.
20705         Suggested by Sam Steingold <sds@gnu.org>.
20706
20707 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20708
20709         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20710
20711         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20712         when one needs search access to a directory but not read access.
20713         On systems where it is available, it works in some cases where
20714         O_RDONLY does not, namely on directories that are searchable but
20715         not readable, and which need only to be searchable.  If O_SEARCH
20716         is not available, fall back to the traditional method of using
20717         O_RDONLY.
20718
20719         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20720         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20721         when opening a directory that needs only to be searchable.
20722         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20723         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20724         * lib/openat-proc.c (openat_proc_name): Likewise.
20725         * lib/openat.c (openat_needs_fchdir): Likewise.
20726         * lib/save-cwd.c (save_cwd): Likewise.
20727         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20728
20729 2010-08-28  Bruno Haible  <bruno@clisp.org>
20730
20731         New module 'host-cpu-c-abi'.
20732         * modules/host-cpu-c-abi: New file.
20733         * m4/host-cpu-c-abi.m4: New file, based on part of
20734         clisp/src/m4/general.m4.
20735         Requested by Sam Steingold <sds@gnu.org>.
20736
20737 2010-08-31  Eric Blake  <eblake@redhat.com>
20738         and Jim Meyering  <meyering@redhat.com>
20739
20740         hash: factor, and guard against misbehaving hasher function
20741         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20742         of table->hasher's return value.  Also protect against a hash value
20743         so large that adding it to table->bucket results in a NULL pointer.
20744         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20745         Use it in place of open-coded check-and-abort.
20746
20747 2010-08-30  Bruno Haible  <bruno@clisp.org>
20748
20749         hash: silence spurious clang warning
20750         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20751         Reported by Eric Blake.
20752
20753 2010-08-30  Eric Blake  <eblake@redhat.com>
20754
20755         strstr, memmem, strcasestr: avoid leaked shell message
20756         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20757         FreeBSD.
20758         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20759         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20760
20761         tests: silence clang warning
20762         * tests/test-malloca.c (do_allocation): Avoid dead store.
20763
20764 2010-08-29  Bruno Haible  <bruno@clisp.org>
20765
20766         gettext: Fix recent mistake.
20767         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20768
20769 2010-08-29  Bruno Haible  <bruno@clisp.org>
20770
20771         selinux-h: Offer a --without-selinux option.
20772         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20773         --without-selinux was specified, skip all tests and define
20774         HAVE_SELINUX_SELINUX_H to 0.
20775         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20776         set LIB_SELINUX to empty.
20777         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20778         gl_LIBSELINUX. If --without-selinux was specified, replace
20779         selinux/context.h.
20780         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20781
20782 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20783             Bruno Haible  <bruno@clisp.org>
20784
20785         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20786         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20787         of HAVE_REALLOC.
20788         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20789         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20790         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20791         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20792
20793 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20794             Bruno Haible  <bruno@clisp.org>
20795
20796         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20797         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20798         HAVE_CALLOC.
20799         * lib/xmalloc.c: Update accordingly.
20800         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20801         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20802         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20803
20804 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20805             Bruno Haible  <bruno@clisp.org>
20806
20807         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20808         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20809         HAVE_MALLOC.
20810         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20811         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20812         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20813
20814 2010-08-29  Bruno Haible  <bruno@clisp.org>
20815
20816         Update modules list.
20817         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20818         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20819         (String handling <string.h>): Add astrxfrm.
20820         (File system functions): Add readlinkat.
20821
20822 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20823
20824         Tests for module 'realloc-gnu'.
20825         * modules/realloc-gnu-tests: New file.
20826         * tests/test-realloc-gnu.c: New file.
20827
20828         Tests for module 'calloc-gnu'.
20829         * modules/calloc-gnu-tests: New file.
20830         * tests/test-calloc-gnu.c: New file.
20831
20832         Tests for module 'malloc-gnu'.
20833         * modules/malloc-gnu-tests: New file.
20834         * tests/test-malloc-gnu.c: New file.
20835
20836 2010-08-28  Bruno Haible  <bruno@clisp.org>
20837
20838         Rename module 'realloc' -> 'realloc-gnu'.
20839         * modules/realloc-gnu: New file, copied from modules/realloc.
20840         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20841         obsolete.
20842         * modules/mgetgroups (Depends-on): Update.
20843         * doc/posix-functions/realloc.texi: Update.
20844         * NEWS: Mention the change.
20845
20846         Rename module 'calloc' -> 'calloc-gnu'.
20847         * modules/calloc-gnu: New file, copied from modules/calloc.
20848         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20849         obsolete.
20850         * doc/posix-functions/calloc.texi: Update.
20851         * NEWS: Mention the change.
20852
20853         Rename module 'malloc' -> 'malloc-gnu'.
20854         * modules/malloc-gnu: New file, copied from modules/malloc.
20855         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20856         obsolete.
20857         * modules/argp (Depends-on): Update.
20858         * modules/regex (Depends-on): Update.
20859         * doc/posix-functions/malloc.texi: Update.
20860         * NEWS: Mention the change.
20861
20862 2010-08-28  Eric Blake  <eblake@redhat.com>
20863
20864         pread, pwrite: add missing dependency
20865         * modules/pread (Depends-on): Add extensions.
20866         * modules/pwrite (Depends-on): Likewise.
20867
20868 2010-08-28  Bruno Haible  <bruno@clisp.org>
20869
20870         unistr/u*-strchr: Fix tests dependencies.
20871         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20872         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20873         Reported by Ian Beckwith <ianb@erislabs.net>.
20874
20875 2010-08-28  Bruno Haible  <bruno@clisp.org>
20876
20877         read-file: Don't occupy too much unused memory.
20878         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20879
20880 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20881             Eric Blake  <eblake@redhat.com>
20882             Bruno Haible  <bruno@clisp.org>
20883
20884         read-file: Avoid memory reallocations with regular files.
20885         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20886         (fread_file): With regular files, use the remaining length as the
20887         initial buffer size.  Check against overflow.
20888         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20889         sys_stat.
20890
20891 2010-08-28  Bruno Haible  <bruno@clisp.org>
20892
20893         ftello: Relax license.
20894         * modules/ftello (License): Relax to LGPLv2+.
20895         Reported by Eric Blake.
20896
20897 2010-08-28  Bruno Haible  <bruno@clisp.org>
20898
20899         Avoid relocwrapper link errors due to gnulib replacement functions.
20900         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20901         function.
20902         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20903
20904 2010-08-28  Bruno Haible  <bruno@clisp.org>
20905
20906         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20907         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20908         defined.
20909         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20910         Suggested by Eric Blake.
20911
20912 2010-08-28  Bruno Haible  <bruno@clisp.org>
20913
20914         sys_socket, netdb: Ensure socklen_t gets defined.
20915         * modules/sys_socket (Depends-on): Add socklen.
20916         * modules/netdb (Depends-on): Likewise.
20917         * modules/getaddrinfo (Depends-on): Remove socklen.
20918         * modules/getsockopt (Depends-on): Likewise.
20919         * modules/setsockopt (Depends-on): Likewise.
20920         * tests/test-sys_socket.c: Check that socklen_t is defined.
20921         * tests/test-netdb.c: Likewise.
20922         * m4/socklen.m4: Update comments.
20923         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20924
20925 2010-08-27  Eric Blake  <eblake@redhat.com>
20926
20927         login_tty: add missing dependency
20928         * modules/login_tty (Depends-on): Add pty.
20929
20930 2010-08-26  Eric Blake  <eblake@redhat.com>
20931
20932         lib-symbol-versions: fix m4 quoting
20933         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20934         format for AC_LINK_IFELSE.
20935
20936         glob: fix compile test
20937         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20938
20939         btowc: fix missing file
20940         * modules/btowc (Files): Also ship locale-fr.m4.
20941
20942         lseek: fix link test
20943         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20944         AC_LINK_IFELSE.
20945
20946         include_next: silence autoconf 2.68 warning
20947         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20948         AC_COMPILE_IFELSE as special.
20949         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20950         autoconf < 2.68.
20951
20952         acl: fix compilation test
20953         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20954         AC_COMPILE_IFELSE.
20955
20956 2010-08-26  Bruno Haible  <bruno@clisp.org>
20957
20958         Modernize AC_TRY_RUN invocations.
20959         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20960         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20961         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20962         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20963         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20964         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20965         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20966         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20967         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20968         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20969         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20970         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20971         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20972         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20973         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20974         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20975         gl_MBRLEN_NUL_RETVAL): Likewise.
20976         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20977         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20978         Likewise.
20979         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20980         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20981         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20982         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20983         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20984         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20985         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20986         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20987         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20988         Likewise.
20989         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20990         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20991         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20992         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20993         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20994         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20995         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20996         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20997         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20999
21000 2010-08-26  Bruno Haible  <bruno@clisp.org>
21001
21002         Modernize AC_TRY_LINK invocations.
21003         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21004         AC_TRY_LINK.
21005         * m4/argp.m4 (gl_ARGP): Likewise.
21006         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21007         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21008         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21009         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21010         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21011         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21012         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21013         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21014         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21015         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21016         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21017         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21018         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21019         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21020         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21021         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21022         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21023         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21024         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21025         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21026         Likewise.
21027         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21028         Likewise.
21029         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21030         Likewise.
21031         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21032         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21033         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21034         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21035         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21036         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21037         * m4/servent.m4 (gl_SERVENT): Likewise.
21038         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21039         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21040         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21041         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21042         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21043         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21044         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21045         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21046         * modules/tsearch-tests (configure.ac): Likewise.
21047
21048 2010-08-26  Bruno Haible  <bruno@clisp.org>
21049
21050         Modernize AC_TRY_COMPILE invocations.
21051         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21052         AC_TRY_COMPILE.
21053         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21054         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21055         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21056         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21057         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21058         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21059         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21060         * m4/lock.m4 (gl_LOCK): Likewise.
21061         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21062         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21063         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21064         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21065         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21066         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21067         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21068         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21069         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21070         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21071         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21072         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21073         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21074         extraneous semicolon.
21075
21076 2010-08-26  Jim Meyering  <meyering@redhat.com>
21077
21078         stat-time: relax license LGPL
21079         * modules/stat-time (License): Change from GPL to LGPL,
21080         with consent from all contributors, for use in libguile.
21081         Requested by Ludovic Courtès.
21082
21083 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21084
21085         poll: return immediately on POLLHUP.
21086         * lib/poll.c (poll): Always set timeout before wait_timeout is
21087         computed.
21088
21089 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21090
21091         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21092         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21093         rmdir ("dir/.//"), unlinkat.
21094
21095 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21096
21097         stdbool: avoid spurious failure with modern xlc
21098         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21099
21100 2010-08-24  Bruno Haible  <bruno@clisp.org>
21101
21102         getloadavg: simplify code
21103         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21104         gl_have_func. Update comments.
21105
21106 2010-08-24  Eric Blake  <eblake@redhat.com>
21107
21108         getloadavg: don't define SVR4 on cygwin
21109         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21110         only define SVR4 when -lkvm is required.
21111         Reported by Yaakov Selkowitz.
21112
21113 2010-08-24  Bruno Haible  <bruno@clisp.org>
21114
21115         priv-set: fix comment
21116         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21117
21118 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21119
21120         priv-set: fix comments
21121         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21122         to match code, as suggested by David Bartley in:
21123         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21124
21125 2010-08-23  Eric Blake  <eblake@redhat.com>
21126
21127         stdbool: avoid rejecting clang
21128         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21129         * tests/test-stdbool.c: Enable more tests if using the system
21130         <stdbool.h> instead of the gnulib replacement.
21131         (main): Move xlc bug test to a runtime test for all compilers.
21132         Reported by Anders Kaseorg.
21133
21134         argz: fix shell quoting issue
21135         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21136         Reported by Charles Wilson.
21137
21138 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21139             Erik Faye-Lund <kusmabite@gmail.com>
21140
21141         poll, select: handle ERROR_BROKEN_PIPE.
21142         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21143         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21144         * lib/select.c (win32_compute_revents): Do not mark a pipe
21145         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21146
21147 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21148
21149         fts: allow compilation with C++
21150         * lib/fts_.h: Specify extern "C" linkage with C++.
21151
21152 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21153
21154         Fix gnulib-tool sed script de-commentation for AIX sed.
21155         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21156         sed.
21157
21158 2010-08-17  Eric Blake  <eblake@redhat.com>
21159
21160         test-stddef: test for (some) offsetof bugs
21161         * tests/test-stddef.c: Enhance test to ensure correct type of
21162         offsetof.
21163         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21164         that we are not fixing at this time.
21165
21166 2010-08-15  Bruno Haible  <bruno@clisp.org>
21167
21168         stpncpy: Allow stpncpy to be defined as a macro.
21169         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21170         if it's already correctly declared.
21171         * lib/string.in.h (stpncpy): Undefine before redefining.
21172         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21173
21174 2010-08-14  Bruno Haible  <bruno@clisp.org>
21175
21176         Rename module 'memxfrm' to 'amemxfrm'.
21177         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21178         (amemxfrm): Renamed from memxfrm.
21179         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21180         (amemxfrm): Renamed from memxfrm.
21181         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21182         * NEWS: Mention the change.
21183         * MODULES.html.sh (String handling <string.h>): Update.
21184         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21185         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21186         * lib/unicase/u16-casexfrm.c: Likewise.
21187         * lib/unicase/u32-casexfrm.c: Likewise.
21188         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21189         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21190         * lib/uninorm/u16-normxfrm.c: Likewise.
21191         * lib/uninorm/u32-normxfrm.c: Likewise.
21192         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21193         memxfrm.
21194         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21195         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21196         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21197         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21198         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21199         Suggested by Paul Eggert.
21200
21201 2010-08-14  Bruno Haible  <bruno@clisp.org>
21202
21203         Tests for module 'astrxfrm'.
21204         * modules/astrxfrm-tests: New file.
21205         * tests/test-astrxfrm.c: New file.
21206
21207         New module 'astrxfrm'.
21208         * lib/astrxfrm.h: New file.
21209         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21210         * modules/astrxfrm: New file.
21211
21212 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21213
21214         regex: Tweak doc.
21215         * doc/regex.texi (Overview): Don't mention regex.c.
21216         (GNU Regular Expression Compiling): Likewise.
21217         (Match-end-of-line Operator): Mention 'not_eol'.
21218
21219 2010-08-14  Brian Gough  <bjg@gnu.org>
21220             Bruno Haible  <bruno@clisp.org>
21221
21222         git-merge-changelog: add doc relating to use with bzr and hg.
21223         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21224
21225 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21226
21227         pthread: fix pthread.h creation for srcdir != builddir
21228         * modules/pthread (Makefile.am): Fix the rule to work also in a
21229         non-srcdir build.
21230
21231 2010-08-13  Karl Berry  <karl@gnu.org>
21232
21233         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21234         * doc/posix-*/*: force line break before @url of POSIX
21235         specifications.
21236         Suggested by Werner Lemberg.
21237
21238 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21239
21240         strtod: fix const diagnostic
21241         * lib/strtod.c (strtod): Don't assign const char * to char *,
21242         as this elicits a warning from GCC when warnings are enabled.
21243
21244 2010-08-10  Pádraig Brady <P@draigbrady.com>
21245         and Eric Blake  <eblake@redhat.com>
21246
21247         copy-acl: ignore ENOTSUP on HP-UX
21248         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21249         so that it is available for HP-UX.
21250         * lib/copy-acl.c (qcopy_acl): Use it.
21251         Reported by Patrick M. Callahan.
21252
21253 2010-08-10  Eric Blake  <eblake@redhat.com>
21254
21255         open, chown: relax license
21256         * modules/open (License): Change to LGPLv2+, with consent by all
21257         authors, for use in augeas.
21258         * modules/chown (License): Likewise.
21259         * modules/lchown (Likewise): Likewise.
21260         Requested by Adam Stokes.
21261
21262 2010-08-09  Karl Berry  <karl@gnu.org>
21263
21264         * build-aux/ar-lib: new file, import from Automake.
21265         * config/srclist.txt: autocheck for updates.
21266
21267 2010-08-09  Eric Blake  <eblake@redhat.com>
21268
21269         readlinkat: adjust client modules
21270         * modules/areadlinkat (Depends-on): Use readlinkat, not
21271         symlinkat.
21272         * modules/areadlinkat-with-size (Depends-on): Likewise.
21273
21274         mknod: be more vocal about danger of running tests as root
21275         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21276         root, since that is just asking for problems.
21277         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21278
21279         readlinkat: split into its own module
21280         * modules/symlinkat: Split readlinkat...
21281         * modules/readlinkat: ...into separate module.
21282         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21283         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21284         * lib/symlinkat.c (readlinkat): Move...
21285         * lib/readlinkat.c: ...into new file.
21286         * modules/symlinkat-tests: Split readlinkat test...
21287         * modules/readlinkat-tests: ...into separate module.
21288         * tests/test-symlinkat.c: Split...
21289         * tests/test-readlinkat.c: ...into new file.
21290         * NEWS: Document the split.
21291         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21292         * lib/unistd.in.h (readlinkat): Likewise.
21293         Suggested by Bruno Haible.
21294
21295 2010-08-08  Bruno Haible  <bruno@clisp.org>
21296
21297         memxfrm: Speed up.
21298         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21299         that usually only one call to strxfrm is necessary for each string
21300         part.
21301         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21302
21303 2010-08-07  Karl Berry  <karl@gnu.org>
21304
21305         * doc/posix-headers/limits.texi,
21306         * doc/posix-functions/malloc.texi,
21307         * doc/posix-functions/strsignal.texi: missing @item.
21308         * doc/ld-version-script.texi: spurious leading i.
21309         * doc/regex.texi (Interval Operators): no commas inside @var.
21310
21311 2010-08-01  Bruno Haible  <bruno@clisp.org>
21312
21313         Integrate the regex documentation.
21314         * doc/gnulib.texi: Define 'cn' index.
21315         (Regular expressions): New a chapter that includes regex.texi and
21316         regexprops-generic.texi.
21317         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21318         syntax.
21319
21320         Whitespace cleanup.
21321         * doc/regex.texi: Remove trailing spaces.
21322
21323         Add regex documentation.
21324         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21325         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21326         Written by Kathy A. Hargreaves and Karl Berry.
21327
21328 2010-08-01  Bruno Haible  <bruno@clisp.org>
21329
21330         link: Update documentation.
21331         * doc/posix-functions/link.texi: Update regarding Solaris.
21332
21333 2010-07-31  Bruno Haible  <bruno@clisp.org>
21334
21335         Update modules list.
21336         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21337         (String handling <string.h>): Add memcmp2, memxfrm.
21338         (Container data structures): Add xlist, xsublist, xoset.
21339         (Core language properties): Add alignof, unused-parameter.
21340         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21341         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21342         (Unibyte characters <ctype.h>): New section.
21343         (String handling <string.h>): New section.
21344         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21345         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21346         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21347         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21348         tan, tanh, tanl, y0, y1, yn.
21349         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21350         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21351         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21352         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21353         unlockpt, vdprintf, vdprintf-posix.
21354         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21355         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21356         xconcat-filename.
21357         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21358         getdtablesize, pipe2, pipe2-safer.
21359         (Security): New section.
21360         (Networking functions): Add accept4.
21361         (Signal handling): Add sigpipe.
21362         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21363         mbmemcasecoll.
21364         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21365         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21366         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21367         pipe-filter-ii.
21368         (Misc): Add argp-version-etc, login_tty, parse-duration.
21369
21370 2010-07-31  Bruno Haible  <bruno@clisp.org>
21371
21372         Improve doc in MODULES.html.
21373         * modules/linkat (Description): Add the word "function".
21374         * modules/mkfifo (Description): Likewise.
21375         * modules/mknod (Description): Likewise.
21376         * modules/remove (Description): Likewise.
21377         * modules/renameat (Description): Likewise.
21378         * modules/stat (Description): Likewise.
21379         * modules/symlink (Description): Likewise.
21380         * modules/unlink (Description): Likewise.
21381
21382 2010-07-31  Bruno Haible  <bruno@clisp.org>
21383
21384         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21385         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21386         option --enable/disable-c++ instead of --enable/disable-cxx.
21387         * NEWS: Mention the change.
21388
21389 2010-07-31  Bruno Haible  <bruno@clisp.org>
21390
21391         readlink, areadlink: Relax test a bit.
21392         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21393         alternative to ENOTDIR.
21394         * tests/test-areadlink.h (test_areadlink): Likewise.
21395         Reported by Rainer Tammer.
21396
21397 2010-07-31  Bruno Haible  <bruno@clisp.org>
21398
21399         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21400         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21401         character, perform the search using U_STRCHR.
21402         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21403         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21404         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21405         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21406         Suggested by Paolo Bonzini.
21407
21408 2010-07-31  Bruno Haible  <bruno@clisp.org>
21409
21410         unistr/u*-strstr: Fix dependencies.
21411         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21412         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21413         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21414
21415 2010-07-31  Bruno Haible  <bruno@clisp.org>
21416
21417         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21418         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21419         the beginning of the loop.
21420         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21421         cases in 'switch' statement.
21422
21423         unistr/u8-strchr: Fix several bugs.
21424         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21425         the string. When not found, return NULL, not a pointer near the end.
21426
21427         More tests for unistr/u8-strchr.
21428         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21429         that the function does not read past the first occurrence of the byte
21430         being searched.
21431         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21432         * tests/unistr/test-u16-strchr.c (main): New function.
21433         * tests/unistr/test-u32-strchr.c (main): New function.
21434
21435 2010-07-31  Bruno Haible  <bruno@clisp.org>
21436
21437         posix-modules: Ignore backup files of documentation files.
21438         * posix-modules: grep only through files named *.texi.
21439
21440 2010-07-31  Bruno Haible  <bruno@clisp.org>
21441
21442         symlinkat: Fix documentation.
21443         * doc/posix-functions/readlinkat.texi: Fix module name.
21444
21445 2010-07-31  Bruno Haible  <bruno@clisp.org>
21446
21447         fchownat: Replace also when chown has the trailing slash bug.
21448         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21449         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21450         introduced on 2010-04-10.
21451         Reported by Rainer Tammer.
21452
21453 2010-07-31  Bruno Haible  <bruno@clisp.org>
21454
21455         linkat: Work around AIX 7.1 bug.
21456         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21457         whether linkat handles trailing slash correctly. If not, replace linkat
21458         and define LINKAT_TRAILING_SLASH_BUG.
21459         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21460         check whether (fd1,file1) points to a directory if file1 or file2 ends
21461         in a slash. Code taken from lib/link.c.
21462         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21463         Reported by Rainer Tammer.
21464
21465 2010-07-31  Bruno Haible  <bruno@clisp.org>
21466
21467         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21468         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21469         This disables an xlc optimization that was causing wrong test results.
21470         Reported by Rainer Tammer.
21471
21472 2010-07-31  Bruno Haible  <bruno@clisp.org>
21473
21474         iconv: Work around AIX 6.1..7.1 bug.
21475         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21476         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21477         cross-compiling, guess no on all versions of AIX.
21478         Reported by Rainer Tammer.
21479
21480 2010-07-31  Bruno Haible  <bruno@clisp.org>
21481
21482         readlink: Relax test a bit.
21483         * tests/test-readlink.h (test_readlink): Allow different errno value
21484         when readlink is called with a file name that ends in / and refers to
21485         a file.
21486         Suggested by Eric Blake.
21487         Reported by Rainer Tammer.
21488
21489 2010-07-31  Bruno Haible  <bruno@clisp.org>
21490
21491         copysign: Does not require -lm on glibc systems.
21492         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21493         gl_COMMON_DOUBLE_MATHFUNC.
21494         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21495
21496 2010-07-31  Bruno Haible  <bruno@clisp.org>
21497
21498         duplocale: Work around AIX 7.1 bug.
21499         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21500         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21501         * lib/duplocale.c (rpl_duplocale): Update comment.
21502         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21503         Reported by Rainer Tammer.
21504
21505 2010-07-30  Bruno Haible  <bruno@clisp.org>
21506
21507         dirfd: Avoid link error on AIX 7.1.
21508         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21509         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21510         exist, set REPLACE_DIRFD.
21511         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21512         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21513         * doc/posix-functions/dirfd.texi: Update.
21514         Reported by Rainer Tammer.
21515
21516 2010-07-30  Eric Blake  <eblake@redhat.com>
21517
21518         strtod: next round of AIX fixes
21519         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21520         exponent.
21521         * tests/test-strtod.c (main): Enhance tests.
21522         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21523         Reported by Rainer Tammer.
21524
21525         futimens: fix configure check
21526         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21527         Reported by Bruno Haible.
21528
21529 2010-07-30  Bruno Haible  <bruno@clisp.org>
21530
21531         getline: Update regarding AIX.
21532         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21533         Reported by Rainer Tammer.
21534
21535 2010-07-30  Bruno Haible  <bruno@clisp.org>
21536
21537         wcwidth: Drop replacement on AIX 7.
21538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21539         AIX 7.
21540         Reported by Rainer Tammer.
21541
21542 2010-07-30  Bruno Haible  <bruno@clisp.org>
21543
21544         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21545         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21546         a 'char *'.
21547         Reported by Rainer Tammer.
21548
21549 2010-07-30  Bruno Haible  <bruno@clisp.org>
21550
21551         unlink: Update regarding AIX.
21552         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21553         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21554         Reported by Rainer Tammer.
21555
21556 2010-07-30  Bruno Haible  <bruno@clisp.org>
21557
21558         symlink: Update regarding AIX.
21559         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21560         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21561         Reported by Rainer Tammer.
21562
21563 2010-07-30  Bruno Haible  <bruno@clisp.org>
21564
21565         strndup: Update regarding AIX.
21566         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21567         AIX 7.
21568         Reported by Rainer Tammer.
21569
21570 2010-07-30  Bruno Haible  <bruno@clisp.org>
21571
21572         stat: Update regarding AIX.
21573         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21574         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21575         Reported by Rainer Tammer.
21576
21577 2010-07-30  Bruno Haible  <bruno@clisp.org>
21578
21579         truncl: Fix autoconf test.
21580         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21581         whether truncl works.
21582         Reported by Rainer Tammer.
21583
21584 2010-07-30  Bruno Haible  <bruno@clisp.org>
21585
21586         round: Update regarding AIX.
21587         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21588         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21589         Reported by Rainer Tammer.
21590
21591 2010-07-30  Bruno Haible  <bruno@clisp.org>
21592
21593         rename: Update regarding AIX.
21594         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21595         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21596         Reported by Rainer Tammer.
21597
21598 2010-07-30  Bruno Haible  <bruno@clisp.org>
21599
21600         printf.m4: Update regarding AIX.
21601         * m4/printf.m4: Update comments regarding AIX.
21602         Reported by Rainer Tammer.
21603
21604 2010-07-30  Bruno Haible  <bruno@clisp.org>
21605
21606         iconv: Update regarding AIX.
21607         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21608         AIX 7.
21609         Reported by Rainer Tammer.
21610
21611 2010-07-30  Bruno Haible  <bruno@clisp.org>
21612
21613         getopt: Update regarding AIX.
21614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21615         no on AIX.
21616         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21617         Reported by Rainer Tammer.
21618
21619 2010-07-30  Bruno Haible  <bruno@clisp.org>
21620
21621         ldexpl; Update regarding AIX.
21622         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21623         on AIX 7.
21624         Reported by Rainer Tammer.
21625
21626 2010-07-30  Bruno Haible  <bruno@clisp.org>
21627
21628         frexpl: Update regarding AIX.
21629         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21630         on AIX 7.
21631         Reported by Rainer Tammer.
21632
21633 2010-07-30  Bruno Haible  <bruno@clisp.org>
21634
21635         open, fopen: Update regarding AIX.
21636         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21637         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21638         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21639         * doc/posix-functions/fopen.texi: Likewise.
21640         Reported by Rainer Tammer.
21641
21642 2010-07-30  Bruno Haible  <bruno@clisp.org>
21643
21644         chown: Update doc regarding AIX.
21645         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21646         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21647         Reported by Rainer Tammer.
21648
21649 2010-07-30  Eric Blake  <eblake@redhat.com>
21650
21651         strtod: fix bug in replacement function on AIX
21652         * lib/strtod.c (strtod): Special case broken "0x" parse in
21653         underlying strtod.
21654         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21655         * doc/posix-functions/strtod.texi (strtod): Likewise.
21656         Reported by Rainer Tammer.
21657
21658 2010-07-30  Bruno Haible  <bruno@clisp.org>
21659
21660         mbrlen: Fix cross-compilation guess for AIX.
21661         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21662         guess. Leftover from 2008-12-22.
21663
21664 2010-07-30  Bruno Haible  <bruno@clisp.org>
21665
21666         mbrtowc: Fix cross-compilation guess for AIX.
21667         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21668         guess. Leftover from 2008-12-21.
21669
21670 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21671
21672         init.sh: work around trap limitation of some shells
21673         * tests/init.sh (setup_): Move exit trap outside of shell function.
21674
21675 2010-07-29  Eric Blake  <eblake@redhat.com>
21676
21677         strtod: aid debugging
21678         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21679         understanding why strtod is rejected.
21680
21681 2010-07-28  Bruno Haible  <bruno@clisp.org>
21682
21683         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21684         * lib/unistr/u8-chr.c: Include <string.h>.
21685         * tests/unistr/test-u8-chr.c: Likewise.
21686         * tests/unistr/test-u16-chr.c: Likewise.
21687         * tests/unistr/test-u32-chr.c: Likewise.
21688         * tests/unistr/test-u8-strchr.c: Likewise.
21689         * tests/unistr/test-u16-strchr.c: Likewise.
21690         * tests/unistr/test-u32-strchr.c: Likewise.
21691         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21692         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21693         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21694         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21695
21696 2010-07-28  Bruno Haible  <bruno@clisp.org>
21697
21698         Use spaces for indentation, not tabs.
21699         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21700
21701 2010-07-27  Bruno Haible  <bruno@clisp.org>
21702
21703         mbspcasecmp: Fix function specification.
21704         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21705         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21706         Reported by Eric Blake <eblake@redhat.com>.
21707
21708 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21709
21710         timespec: use cast and not conditional, as truncation isn't possible
21711         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21712         instead of a conditional.  Comment about the situation in more detail.
21713         This undoes most of the 2009-10-29 patch.
21714
21715 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21716
21717         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21718         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21719         * lib/unistr/u8-strchr.c: Likewise.
21720         * modules/unistr/u8-chr: Depend on memchr.
21721
21722         unistr/u*-strchr: add tests
21723         * modules/unistr/u8-strchr-tests: New file.
21724         * modules/unistr/u16-strchr-tests: New file.
21725         * modules/unistr/u32-strchr-tests: New file.
21726         * tests/unistr/test-strchr.h: New file.
21727         * tests/unistr/test-u8-strchr.c: New file.
21728         * tests/unistr/test-u16-strchr.c: New file.
21729         * tests/unistr/test-u32-strchr.c: New file.
21730
21731         unistr/u*-chr: test multibyte sequences more
21732         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21733         test vector.
21734         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21735         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21736         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21737
21738         unistr/u*-chr: test multibyte sequences
21739         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21740
21741         unistr/u*-chr: prepare for multibyte tests
21742         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21743         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21744         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21745         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21746         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21747         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21748
21749 2010-07-18  Bruno Haible  <bruno@clisp.org>
21750
21751         unistr/u8-strchr: Optimize non-ASCII argument case.
21752         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21753         because the first byte often matches anyway.
21754         Reported by Pádraig Brady <P@draigbrady.com>.
21755
21756 2010-07-15  Karl Berry  <karl@gnu.org>
21757
21758         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21759
21760 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21761
21762         getcwd: on Solaris, work better if ancestors are inaccessible
21763         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21764         buffer and size, try again with a large buffer.  This works better
21765         on Solaris, since its getcwd succeeds even if the path to the root
21766         is inaccessible, and this is helpful in common cases such as .zfs
21767         hidden directories.  Problem reported by J Chapman Flack in
21768         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21769         Use system getcwd if it's declared, not merely if it's partly
21770         working; use the partly-working test only to avoid needless effort
21771         if the system getcwd fails.
21772         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21773         comment that was already obsolete and is now even more obsolete.
21774         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21775         now might call strdup.
21776
21777 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21778
21779         pthread: Add enough so that coreutils/src/sort.c compiles.
21780         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21781         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21782         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21783         Include <sys/types.h>, in case it defines pthread_t.
21784         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21785         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21786         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21787         (pthread_rwlockattr_t, pthread_spinlock_t):
21788         New typedefs, if HAVE_PTHREAD_T is not defined.
21789         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21790         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21791         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21792         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21793         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21794         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21795         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21796         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21797         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21798         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21799         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21800         New macros.
21801         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21802         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21803         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21804         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21805         (pthread_spin_unlock): New dummy functions.
21806         (pthread_create): Return EAGAIN; don't set errno.
21807         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21808         require AC_C_INLINE.
21809         * modules/pthread (Depends-on): Add sched, time.
21810         (pthread.h): Use AM_V_GEN.
21811
21812 2010-07-13  Bruno Haible  <bruno@clisp.org>
21813
21814         striconveh: Don't malloc memory if the result buffer is sufficient.
21815         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21816         buffer if its size is sufficient.
21817         Reported by Ludovic Courtès <ludo@gnu.org>.
21818
21819 2010-07-13  Bruno Haible  <bruno@clisp.org>
21820
21821         strtod: Add safety check.
21822         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21823
21824 2010-07-12  Bruno Haible  <bruno@clisp.org>
21825
21826         Unify tests that set gl_cv_func_ldexpl_no_libm.
21827         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21828         gl_FUNC_LDEXPL.
21829         (gl_FUNC_LDEXPL): Invoke it.
21830         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21831
21832 2010-07-12  Bruno Haible  <bruno@clisp.org>
21833
21834         Unify tests that set gl_cv_func_ldexp_no_libm.
21835         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21836         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21837         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21838         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21839         * modules/strtod (Files): Add m4/ldexp.m4.
21840
21841 2010-07-12  Bruno Haible  <bruno@clisp.org>
21842
21843         Unify tests that set gl_cv_func_frexpl_no_libm.
21844         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21845         gl_FUNC_FREXPL_NO_LIBM.
21846         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21847         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21848
21849 2010-07-12  Bruno Haible  <bruno@clisp.org>
21850
21851         Unify tests that set gl_cv_func_frexp_no_libm.
21852         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21853         gl_FUNC_FREXP_NO_LIBM.
21854         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21855         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21856
21857 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21858
21859         memcoll: clarify sizes versus lengths, document better, and tweak perf
21860         * lib/memcoll.c (strcoll_loop, memcoll0):
21861         Improve quality of descriptive comments.  Name variables
21862         consistently as to whether they are lengths (which do not include
21863         terminating null) versus sizes (which do).
21864         * lib/xmemcoll.c (xmemcoll0): Likewise.
21865         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21866         returned when s1size == 0; this is easier to compile and saves
21867         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21868
21869 2010-07-12  Bruno Haible  <bruno@clisp.org>
21870
21871         Tests for module '_Exit'.
21872         * modules/_Exit-tests: New file.
21873         * tests/test-_Exit.sh: New file.
21874         * tests/test-_Exit.c: New file.
21875
21876         New module '_Exit'.
21877         * lib/stdlib.in.h (__attribute__): New macro.
21878         (_Exit): New declaration.
21879         * lib/_Exit.c: New file.
21880         * m4/_Exit.m4: New file.
21881         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21882         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21883         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21884         * modules/_Exit: New file.
21885         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21886         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21887
21888 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21889
21890         strtod: make it more-accurate typically, and don't require libm
21891         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21892         Include limits.h.  Don't include string.h.
21893         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21894         (locale_isspace): New function, so that no casts are needed to
21895         check whether *s is a space.
21896         (ldexp): Provide an unused dummy if not available.
21897         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21898         (strtod): Use them.  This implementation prefers to use the
21899         underlying strtod if available, falling back on our own code
21900         only to fix known bugs.  This is more likely to produce an
21901         accurate result.  Also, it avoids the use of libm functions.
21902         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21903         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21904         was absent, but it caused a test failure with coreutils.
21905         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21906         with libm.
21907         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21908         * modules/strtod-tests (Makefile.am): Likewise.
21909
21910 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21911             Bruno Haible  <bruno@clisp.org>
21912
21913         unistr/u8-strchr: Optimize ASCII argument case.
21914         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21915
21916 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21917
21918         (x)memcoll: minor tweaks
21919         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21920         is after the type that it qualifies.
21921         (memcoll0): Likewise.
21922         * lib/memcoll.h (memcoll0): Likewise.
21923         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21924         * lib/xmemcoll.h (xmemcoll0): Likewise.
21925         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21926         differs from memcoll in that the NUL byte is part of the argument.
21927         Omit the abort-checks, as performance is a real issue here.  Plus,
21928         the checks were wrong anyway (an off-by-one error).  Omit local
21929         variable 'diff', as it's a bit clearer that way.
21930         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21931         no longer needed.
21932
21933 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21934
21935         (x)memcoll: speedup when input is known to be NUL delimited
21936         * lib/memcoll.c: Include stdlib.
21937         (memcoll0): New function.
21938         (strcoll_loop): New function, refactored for use in both memcoll
21939         and memcoll0.
21940         * lib/memcoll.h (memcoll0): Add prototype.
21941         * lib/xmemcoll.c (xmemcoll0): New function.
21942         (collate_error): New function, refactored for use in both xmemcoll
21943         and xmemcoll0.
21944         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21945         * m4/memcoll.m4: add inline invocation.
21946
21947 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21948
21949         * build-aux/bootstrap: Remove any local translations
21950         from the translation project synchronization directory,
21951         so that local only translations are not distributed.
21952
21953 2010-07-04  Bruno Haible  <bruno@clisp.org>
21954
21955         fsusage: Clarify which code applies to which platforms.
21956         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21957         platform.
21958         * lib/fsusage.c (get_fs_usage): Likewise.
21959
21960 2010-07-04  Bruno Haible  <bruno@clisp.org>
21961
21962         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21963         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21964         Reported by Martin Lambers <marlam@marlam.de>.
21965
21966 2010-07-04  Jim Meyering  <meyering@redhat.com>
21967
21968         hash: once again explicitly disallow insertion of NULL
21969         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21970         inserting a NULL pointer cannot work with these functions.
21971         Add a comment with details.
21972         This reverts part of the 2010-07-01 commit, 5bef1a35
21973         "hash: extend module to deal with non-pointer keys".
21974
21975 2010-07-01  Bruno Haible  <bruno@clisp.org>
21976
21977         stdbool: Update doc.
21978         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21979         Info from Christian Weisgerber <naddy@mips.inka.de>.
21980
21981 2010-07-01  Jim Meyering  <meyering@redhat.com>
21982
21983         hash: extend module to deal with non-pointer keys
21984         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21985         but that allows insertion of non-pointer entries.
21986         Do not disallow an ENTRY value of NULL.
21987         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21988         * lib/hash.h (hash_insert0): Declare.
21989
21990 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21991
21992         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21993         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21994         not present (i.e. with autoconf 2.59 and when using gettextize, not
21995         gnulib), require AC_GNU_SOURCE instead.
21996
21997 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21998
21999         idpriv-drop: Fix tests.
22000         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22001         not to the test-idpriv-droptemp program.
22002
22003 2010-06-29  Bruno Haible  <bruno@clisp.org>
22004
22005         string: Fix syntax error with g++ 2.96.
22006         * lib/string.in.h (__pure__): Remove definition.
22007         (_GL_ATTRIBUTE_PURE): New macro.
22008         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22009         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22010         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22011
22012 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22013
22014         unitypes: Fix bug introduced on 2010-05-18.
22015         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22016
22017 2010-06-22  Eric Blake  <eblake@redhat.com>
22018
22019         memmem: slight optimization
22020         * lib/str-two-way.h (critical_factorization): Update comments.
22021         Reduce work during factorization phase.
22022         Reported by Carlos Bueno <carlos@bueno.org>.
22023
22024 2010-06-21  Bruno Haible  <bruno@clisp.org>
22025
22026         Fix HAVE_CALLOC_POSIX misnomer.
22027         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22028         !HAVE_CALLOC_POSIX.
22029         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22030         HAVE_CALLOC_POSIX.
22031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22032         instead of HAVE_CALLOC_POSIX.
22033         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22034         HAVE_CALLOC_POSIX.
22035
22036         Use modern idiom for calloc() replacement.
22037         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22038         AC_FUNC_CALLOC.
22039         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22040         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22041         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22042         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22043         (gl_REPLACE_CALLOC): New macro.
22044
22045 2010-06-21  Bruno Haible  <bruno@clisp.org>
22046
22047         Fix HAVE_REALLOC_POSIX misnomer.
22048         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22049         !HAVE_REALLOC_POSIX.
22050         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22051         HAVE_REALLOC_POSIX.
22052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22053         instead of HAVE_REALLOC_POSIX.
22054         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22055         HAVE_REALLOC_POSIX.
22056
22057         Use modern idiom for realloc() replacement.
22058         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22059         AC_FUNC_REALLOC.
22060         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22061         Autoconf's AC_FUNC_REALLOC.
22062         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22063         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22064         (gl_REPLACE_REALLOC): New macro.
22065         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22066
22067 2010-06-21  Bruno Haible  <bruno@clisp.org>
22068
22069         Fix HAVE_MALLOC_POSIX misnomer.
22070         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22071         !HAVE_MALLOC_POSIX.
22072         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22073         HAVE_MALLOC_POSIX.
22074         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22075         instead of HAVE_MALLOC_POSIX.
22076         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22077         HAVE_MALLOC_POSIX.
22078
22079         Use modern idiom for malloc() replacement.
22080         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22081         AC_FUNC_MALLOC.
22082         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22083         Autoconf's AC_FUNC_MALLOC.
22084         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22085         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22086         (gl_REPLACE_MALLOC): New macro.
22087         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22088
22089 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22090
22091         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22092         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22093         This macro takes 3 arguments, not 4.
22094
22095 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22096
22097         ipv6: fix detection under mingw
22098         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22099         in6_addr.
22100
22101 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22102
22103         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22104         that strtod() works when cross-compiling to a glibc version known
22105         to work.
22106
22107 2010-06-15  Bruno Haible  <bruno@clisp.org>
22108
22109         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22110
22111 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22112
22113         select: Correct timeout.
22114         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22115
22116 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22117
22118         git-version-gen: init shell var to avoid env var influence
22119         * build-aux/git-version-gen (v): Init shell var to empty.
22120
22121 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22122
22123         priv-set: Don't assume that priv.h exists merely because getppriv does.
22124         See Jan Andersen's bug report about AIX 5L in
22125         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22126         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22127         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22128         * lib/priv-set.h: Likewise.
22129         * tests/test-priv-set.c: Likewise.
22130
22131 2010-06-13  Bruno Haible  <bruno@clisp.org>
22132
22133         relocatable: Make it easier to test whether to install wrappers.
22134         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22135         RELOCATABLE_VIA_WRAPPER.
22136
22137 2010-06-13  Bruno Haible  <bruno@clisp.org>
22138
22139         gnulib-tool: Display specified modules and dependencies differently.
22140         * gnulib-tool (func_show_module_list): New function.
22141         (func_import, func_create_testdir): Invoke it.
22142         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22143
22144 2010-06-13  Bruno Haible  <bruno@clisp.org>
22145
22146         gnulib-tool: Align code of func_import and func_create_testdir.
22147         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22148         specified_modules.
22149
22150 2010-06-12  Jim Meyering  <meyering@redhat.com>
22151
22152         test-inttostr: avoid spurious failure on Solaris 9
22153         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22154         to accept "%ju".  Reported by Bruno Haible.
22155
22156 2010-06-11  Jim Meyering  <meyering@redhat.com>
22157
22158         test-sys_socket: mark variables as used more readably
22159         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22160         as "used" explicitly via (void) statement casts.  This is more
22161         readable than using them in an artificial return expression.
22162         Suggestion from Bruno Haible.
22163
22164 2010-06-11  Bruno Haible  <bruno@clisp.org>
22165
22166         Avoid some more warnings from "gcc -Wwrite-strings".
22167         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22168         to 'const char *'.
22169         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22170         * tests/test-c-strcasestr.c (main): Likewise.
22171         * tests/test-mbscasestr1.c (main): Likewise.
22172         * tests/test-mbscasestr2.c (main): Likewise.
22173         * tests/test-memmem.c (main): Likewise.
22174         * tests/test-strstr.c (main): Likewise.
22175         * tests/test-strcasestr.c (main): Likewise.
22176
22177 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22178
22179         init.sh: change framework_failure_ to fail with status 99, not 1
22180         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22181         automake's parallel-tests rule that this is an unexpected failure,
22182         even if the test is listed in XFAIL_TESTS.
22183
22184 2010-06-11  Jim Meyering  <meyering@redhat.com>
22185
22186         test-inttostr: avoid warnings about 4-6KB literal strings
22187         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22188         Include "macros.h", for its definition of ASSERT.
22189         (CK): s/assert/ASSERT/
22190         * modules/inttostr-tests (Files): Add macros.h.
22191
22192         init.sh: don't use $ME_ or skip_ before they are defined
22193         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22194         their first uses.  Also hoist their companions: warn_, fail_,
22195         framework_failure_, $stderr_fileno.  Prompted by a patch from
22196         Stefano Lattarini.
22197
22198         test-sys_socket: avoid set-but-not-used warnings from gcc
22199         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22200         avoid warning about set-but-not-used variables.
22201
22202         test-xvasprintf: avoid 'const' discard warnings
22203         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22204         "const" when assigning from literal strings.
22205         (test_xasprintf): Add "void" in function argument list to placate
22206         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22207
22208         tests: avoid compilation warnings in argmatch and exclude tests...
22209         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22210         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22211         Since it always exits, declare with the "noreturn" attribute.
22212         * tests/test-argmatch.c: Likewise.
22213
22214         tests: avoid 'const' discard warnings in mbsstr tests
22215         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22216         * tests/test-mbsstr2.c (main): Likewise.
22217
22218         test-verify: avoid warning from gcc's -Wmissing-declarations
22219         * tests/test-verify.c (function): Declare to be static.
22220
22221         test-inttostr.c: include <string.h> for use of strcmp
22222         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22223
22224         test-linkat: avoid failed assertion on "other" architectures
22225         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22226         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22227         sparc: https://bugs.launchpad.net/bugs/591968
22228
22229 2010-06-11  Jim Meyering  <meyering@redhat.com>
22230
22231         printf.m4: avoid autoconf's "Expanded Before Required" warning
22232         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22233         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22234         autoconf warning.
22235
22236 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22237
22238         Replacement header templates are now named with ".in", not "_".
22239         * doc/gnulib-intro.texi: Correct.
22240
22241 2010-06-10  Jim Meyering  <meyering@redhat.com>
22242
22243         inttostr-tests: depend on snprintf, not snprintf-posix
22244         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22245         snprintf-posix, to avoid this aclocal failure:
22246           missing file gnulib-tests/vasnprintf.c
22247           configure.ac:45: error: expected source file, required through \
22248           AC_LIBSOURCES, not found
22249
22250 2010-06-10  Jim Meyering  <meyering@redhat.com>
22251
22252         inttostr: add a new function, inttostr, and tests
22253         The namesake function was not available.  The existence of the
22254         template file, inttostr.c makes its addition nontrivial.
22255         * lib/anytostr.c: Rename from inttostr.c.
22256         (anytostr): Rename from inttostr.
22257         * lib/inttostr.c: New file.
22258         * modules/inttostr (Files): Add anytostr.c.
22259         (Makefile.am): Set lib_SOURCES instead of ...
22260         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22261         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22262         * lib/offtostr.c: Likewise.
22263         * lib/uinttostr.c: Likewise.
22264         * lib/umaxtostr.c: Likewise.
22265         * modules/inttostr-tests: New file.
22266         * tests/test-inttostr.c: New file.  Test these functions.
22267
22268 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22269             Bruno Haible  <bruno@clisp.org>
22270
22271         Add "Extending Gnulib" chapter to manual.
22272         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22273         chapter.
22274         (Extending Gnulib): New chapter.
22275         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22276         chapter.
22277
22278 2010-06-09  Bruno Haible  <bruno@clisp.org>
22279
22280         Avoid relocwrapper link errors due to gnulib replacement functions.
22281         * lib/areadlink.c: Use the system's malloc, realloc functions.
22282         (areadlink): Set errno to ENOMEM explicitly.
22283         * modules/areadlink (Depends-on): Remove malloc-posix.
22284         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22285
22286 2010-06-09  Bruno Haible  <bruno@clisp.org>
22287
22288         Avoid relocwrapper link errors due to gnulib replacement functions.
22289         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22290         * lib/malloca.c: Likewise.
22291         * lib/relocatable.c: Likewise.
22292         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22293         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22294         * lib/setenv.c: Use the system's malloc, realloc functions.
22295         * lib/strerror.c: Use the system's sprintf function.
22296         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22297
22298 2010-06-04  Bruno Haible  <bruno@clisp.org>
22299
22300         Prefer documented low-level autoconf macro names.
22301         * m4/lib-link.m4: Use m4_translit instead of translit.
22302         * m4/environ.m4: Likewise.
22303         * m4/mathfunc.m4: Likewise.
22304         * m4/onceonly.m4: Likewise.
22305         * m4/stdint.m4: Likewise.
22306         Suggested by Eric Blake.
22307
22308 2010-06-04  Martin Lambers  <marlam@marlam.de>
22309             Bruno Haible  <bruno@clisp.org>
22310
22311         havelib: Allow library names with '+' characters.
22312         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22313         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22314
22315 2010-06-09  Bruno Haible  <bruno@clisp.org>
22316
22317         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22318         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22319         realloc failed.
22320
22321 2010-06-08  Peter Simons  <simons@cryp.to>
22322
22323         maint.mk: make the news-check rule more configurable
22324         * top/maint.mk (news-check-lines-spec): New variable.
22325         (news-check): Use "sed -n 1,10p" in place of "head".
22326
22327 2010-06-07  Jim Meyering  <meyering@redhat.com>
22328
22329         do-release-commit-and-tag: fix typo in --help
22330         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22331
22332         regex: avoid new dead-code warning with gcc-4.6.0
22333         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22334         if-block containing a while-loop.  It's been unused for at least
22335         5 years.
22336
22337 2010-06-05  Bruno Haible  <bruno@clisp.org>
22338
22339         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22340         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22341
22342 2010-06-04  Bruno Haible  <bruno@clisp.org>
22343
22344         Update to GNU gettext 0.18.1.
22345         * modules/gettext (configure.ac): Require gettext infrastructure from
22346         version 0.18.1.
22347
22348 2010-06-03  Bruno Haible  <bruno@clisp.org>
22349
22350         Don't use AC_LIBOBJ with file names in subdirectories.
22351         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22352         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22353         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22354         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22355         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22356         gl_LIBUNISTRING_LIBSOURCE.
22357         (Makefile.am): Augment lib_SOURCES here, conditionally.
22358         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22359
22360 2010-06-03  Bruno Haible  <bruno@clisp.org>
22361
22362         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22363         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22364         expansion does not end with a newline.
22365         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22366         unnecessary newline.
22367
22368 2010-06-03  Bruno Haible  <bruno@clisp.org>
22369
22370         Reduce dependencies.
22371         * tests/test-quotearg.h: New file, extracted from
22372         tests/test-quotearg.c.
22373         * tests/test-quotearg-simple.c: New file, extracted from
22374         tests/test-quotearg.c.
22375         * tests/test-quotearg.c: Don't include <ctype.h>.
22376         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22377         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22378         use_quote_double_quotes, use_quotearg_colon): Moved to
22379         tests/test-quotearg.h.
22380         (results_g, flag_results, custom_quotes, custom_results): Moved
22381         to tests/test-quotearg-simple.c.
22382         (main): Moved the part that does not depend on gettext to
22383         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22384         performed.
22385         * modules/quotearg-simple: New file.
22386         * modules/quotearg-simple-tests: New file.
22387         * modules/quotearg (Depends-on): Add quotearg-simple.
22388         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22389         (Files): Add tests/test-quotearg.h.
22390         Reported by Paolo Bonzini.
22391
22392 2010-06-03  Bruno Haible  <bruno@clisp.org>
22393
22394         Reduce dependencies.
22395         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22396
22397 2010-06-03  Bruno Haible  <bruno@clisp.org>
22398
22399         time: Undefine more broken macros.
22400         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22401         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22402         Reported by Eric Blake.
22403
22404 2010-06-03  Bruno Haible  <bruno@clisp.org>
22405
22406         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22407         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22408         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22409         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22410         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22411         Reported by Ludovic Courtès <ludo@gnu.org>.
22412
22413 2010-06-02  Eric Blake  <eblake@redhat.com>
22414
22415         time: work with mingw + pthreads-win32 library
22416         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22417         if timespec is defined only in pthread.h.
22418         * modules/time (Makefile.am): Substitute it.
22419         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22420         <pthread.h>, when needed.
22421         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22422         from the library.
22423
22424 2010-05-31  Bruno Haible  <bruno@clisp.org>
22425
22426         Avoid expanding two macros in the wrong order.
22427         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22428         gl_LIBUNISTRING if it is defined.
22429         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22430         autoconf >= 2.64.
22431         Reported by Ludovic Courtès <ludo@gnu.org>.
22432
22433 2010-05-27  Jim Meyering  <meyering@redhat.com>
22434
22435         maint.mk: also prohibit "#undef" of always-defined symbols
22436         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22437         Allow more than one space before the symbol name.
22438         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22439         the regexp uses alternation.
22440
22441 2010-05-26  Eric Blake  <eblake@redhat.com>
22442
22443         maint.mk: avoid echo -e
22444         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22445         Convert all uses of echo -* to printf.
22446         Reported by Matthias Bolte.
22447
22448 2010-05-25  Bruno Haible  <bruno@clisp.org>
22449
22450         Update to GNU gettext 0.18, part 2.
22451         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22452         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22453
22454 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22455
22456         Add missing include in test-pwrite.c.
22457         * tests/test-pwrite.c: Include string.h, for strcmp.
22458
22459 2010-05-24  Bruno Haible  <bruno@clisp.org>
22460
22461         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22462
22463 2010-05-24  Bruno Haible  <bruno@clisp.org>
22464
22465         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22466         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22467         iconveh_error argument.
22468         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22469         U_STRCONV_TO_LOCALE.
22470         * lib/unistr/u16-strcoll.c: Likewise.
22471         * lib/unistr/u32-strcoll.c: Likewise.
22472         * modules/unistr/u8-strcoll (Depends-on): Add
22473         uniconv/u8-strconv-to-enc, localcharset. Remove
22474         uniconv/u8-strconv-to-locale.
22475         (configure.ac): Bump version number.
22476         * modules/unistr/u16-strcoll (Depends-on): Add
22477         uniconv/u16-strconv-to-enc, localcharset. Remove
22478         uniconv/u16-strconv-to-locale.
22479         (configure.ac): Bump version number.
22480         * modules/unistr/u32-strcoll (Depends-on): Add
22481         uniconv/u32-strconv-to-enc, localcharset. Remove
22482         uniconv/u32-strconv-to-locale.
22483         (configure.ac): Bump version number.
22484
22485 2010-05-24  Bruno Haible  <bruno@clisp.org>
22486
22487         Avoid a test failure on NetBSD 5.0.
22488         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22489         an iconv() bug.
22490
22491 2010-05-24  Bruno Haible  <bruno@clisp.org>
22492
22493         Adjust #include directive style.
22494         * modules/regex (Includes): Recommend to write <regex.h>.
22495
22496 2010-05-24  Bruno Haible  <bruno@clisp.org>
22497
22498         regex: Don't require alloca.
22499         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22500         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22501         only inside if (0).
22502
22503 2010-05-23  Jim Meyering  <meyering@redhat.com>
22504
22505         test-renameat.c: include <sys/stat.h>
22506         * tests/test-renameat.c: Include <sys/stat.h>; required for
22507         definition of S_IS* macros.
22508
22509 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22510
22511         Update maintainer documentation for 'relocatable-prog' module.
22512         * doc/relocatable-maint.texi: Update.
22513         Comments by Bruno Haible.
22514
22515 2010-05-23  Bruno Haible  <bruno@clisp.org>
22516
22517         git-merge-changelog: Enable --split-merged-entry by default.
22518         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22519         (usage): Don't mention this option any more.
22520         Reported by Ralf Wildenhues.
22521
22522 2010-05-23  Jim Meyering  <meyering@redhat.com>
22523
22524         test-pwrite: do not leave behind a test file named "out"
22525         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22526         The trivial-looking use of init.sh is really necessary.
22527         It ensures that the temporary file, "out", is created in
22528         a temporary directory, and removed upon termination.
22529         * tests/test-pwrite.sh: Re-add file.
22530         * modules/pwrite-tests: Reference it.
22531
22532 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22533
22534         Fix output redirection buglet in init.sh.
22535         * tests/init.sh: Fix redirection of stderr.
22536
22537 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22538
22539         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22540
22541 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22542
22543         * modules/valgrind-tests: New file.
22544         * m4/valgrind-tests.m4: New file.
22545         * doc/valgrind-tests.texi: New file.
22546         * doc/gnulib.texi (Running self-tests under valgrind): New
22547         section.
22548
22549 2010-05-19  Bruno Haible  <bruno@clisp.org>
22550
22551         Clean up dead code in recent commit.
22552         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22553         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22554         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22555         Suggested by Paolo Bonzini.
22556
22557 2010-05-19  Bruno Haible  <bruno@clisp.org>
22558
22559         Avoid valgrind error reports from libunistring.
22560         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22561         * modules/libunistring (Files): Add it.
22562         * modules/libunistring-optional (Files): Likewise.
22563
22564 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22565             Bruno Haible  <bruno@clisp.org>
22566
22567         New module 'libunistring-optional'.
22568         * modules/libunistring-optional: New file.
22569         * m4/libunistring-base.m4: New file.
22570         * m4/libunistring-optional.m4: New file.
22571         * lib/unicase.in.h: Renamed from lib/unicase.h.
22572         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22573         * lib/unictype.in.h: Renamed from lib/unictype.h.
22574         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22575         * lib/uniname.in.h: Renamed from lib/uniname.h.
22576         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22577         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22578         * lib/unistr.in.h: Renamed from lib/unistr.h.
22579         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22580         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22581         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22582         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22583         gl_LIBUNISTRING. If the library was found, determine the installed
22584         version and set LIBUNISTRING_VERSION.
22585         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22586         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22587         handle a configuration option --with-included-libunistring.
22588         * modules/libunistring (Files): Add m4/absolute-header.m4.
22589         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22590         Add m4/libunistring-base.m4.
22591         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22592         (Makefile.am): Build unicase.h from unicase.in.h.
22593         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22594         Add m4/libunistring-base.m4.
22595         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22596         (Makefile.am): Build uniconv.h from uniconv.in.h.
22597         * modules/unictype/base (Files): Use unictype.in.h instead of
22598         unictype.h. Add m4/libunistring-base.m4.
22599         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22600         (Makefile.am): Build unictype.h from unictype.in.h.
22601         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22602         Add m4/libunistring-base.m4.
22603         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22604         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22605         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22606         Add m4/libunistring-base.m4.
22607         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22608         (Makefile.am): Build uniname.h from uniname.in.h.
22609         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22610         Add m4/libunistring-base.m4.
22611         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22612         (Makefile.am): Build uninorm.h from uninorm.in.h.
22613         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22614         unistdio.h. Add m4/libunistring-base.m4.
22615         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22616         (Makefile.am): Build unistdio.h from unistdio.in.h.
22617         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22618         Add m4/libunistring-base.m4.
22619         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22620         (Makefile.am): Build unistr.h from unistr.in.h.
22621         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22622         Add m4/libunistring-base.m4.
22623         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22624         (Makefile.am): Build unitypes.h from unitypes.in.h.
22625         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22626         Add m4/libunistring-base.m4.
22627         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22628         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22629         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22630         uniwidth.h. Add m4/libunistring-base.m4.
22631         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22632         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22633         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22634         instead of augmenting lib_SOURCES.
22635         * modules/unicase/empty-suffix-context: Likewise.
22636         * modules/unicase/locale-language: Likewise.
22637         * modules/unicase/tolower: Likewise.
22638         * modules/unicase/totitle: Likewise.
22639         * modules/unicase/toupper: Likewise.
22640         * modules/unicase/u8-casecmp: Likewise.
22641         * modules/unicase/u8-casecoll: Likewise.
22642         * modules/unicase/u8-casefold: Likewise.
22643         * modules/unicase/u8-casexfrm: Likewise.
22644         * modules/unicase/u8-ct-casefold: Likewise.
22645         * modules/unicase/u8-ct-tolower: Likewise.
22646         * modules/unicase/u8-ct-totitle: Likewise.
22647         * modules/unicase/u8-ct-toupper: Likewise.
22648         * modules/unicase/u8-is-cased: Likewise.
22649         * modules/unicase/u8-is-casefolded: Likewise.
22650         * modules/unicase/u8-is-lowercase: Likewise.
22651         * modules/unicase/u8-is-titlecase: Likewise.
22652         * modules/unicase/u8-is-uppercase: Likewise.
22653         * modules/unicase/u8-prefix-context: Likewise.
22654         * modules/unicase/u8-suffix-context: Likewise.
22655         * modules/unicase/u8-tolower: Likewise.
22656         * modules/unicase/u8-totitle: Likewise.
22657         * modules/unicase/u8-toupper: Likewise.
22658         * modules/unicase/u16-casecmp: Likewise.
22659         * modules/unicase/u16-casecoll: Likewise.
22660         * modules/unicase/u16-casefold: Likewise.
22661         * modules/unicase/u16-casexfrm: Likewise.
22662         * modules/unicase/u16-ct-casefold: Likewise.
22663         * modules/unicase/u16-ct-tolower: Likewise.
22664         * modules/unicase/u16-ct-totitle: Likewise.
22665         * modules/unicase/u16-ct-toupper: Likewise.
22666         * modules/unicase/u16-is-cased: Likewise.
22667         * modules/unicase/u16-is-casefolded: Likewise.
22668         * modules/unicase/u16-is-lowercase: Likewise.
22669         * modules/unicase/u16-is-titlecase: Likewise.
22670         * modules/unicase/u16-is-uppercase: Likewise.
22671         * modules/unicase/u16-prefix-context: Likewise.
22672         * modules/unicase/u16-suffix-context: Likewise.
22673         * modules/unicase/u16-tolower: Likewise.
22674         * modules/unicase/u16-totitle: Likewise.
22675         * modules/unicase/u16-toupper: Likewise.
22676         * modules/unicase/u32-casecmp: Likewise.
22677         * modules/unicase/u32-casecoll: Likewise.
22678         * modules/unicase/u32-casefold: Likewise.
22679         * modules/unicase/u32-casexfrm: Likewise.
22680         * modules/unicase/u32-ct-casefold: Likewise.
22681         * modules/unicase/u32-ct-tolower: Likewise.
22682         * modules/unicase/u32-ct-totitle: Likewise.
22683         * modules/unicase/u32-ct-toupper: Likewise.
22684         * modules/unicase/u32-is-cased: Likewise.
22685         * modules/unicase/u32-is-casefolded: Likewise.
22686         * modules/unicase/u32-is-lowercase: Likewise.
22687         * modules/unicase/u32-is-titlecase: Likewise.
22688         * modules/unicase/u32-is-uppercase: Likewise.
22689         * modules/unicase/u32-prefix-context: Likewise.
22690         * modules/unicase/u32-suffix-context: Likewise.
22691         * modules/unicase/u32-tolower: Likewise.
22692         * modules/unicase/u32-totitle: Likewise.
22693         * modules/unicase/u32-toupper: Likewise.
22694         * modules/unicase/ulc-casecmp: Likewise.
22695         * modules/unicase/ulc-casecoll: Likewise.
22696         * modules/unicase/ulc-casexfrm: Likewise.
22697         * modules/uniconv/u8-conv-from-enc: Likewise.
22698         * modules/uniconv/u8-conv-to-enc: Likewise.
22699         * modules/uniconv/u8-strconv-from-enc: Likewise.
22700         * modules/uniconv/u8-strconv-from-locale: Likewise.
22701         * modules/uniconv/u8-strconv-to-enc: Likewise.
22702         * modules/uniconv/u8-strconv-to-locale: Likewise.
22703         * modules/uniconv/u16-conv-from-enc: Likewise.
22704         * modules/uniconv/u16-conv-to-enc: Likewise.
22705         * modules/uniconv/u16-strconv-from-enc: Likewise.
22706         * modules/uniconv/u16-strconv-from-locale: Likewise.
22707         * modules/uniconv/u16-strconv-to-enc: Likewise.
22708         * modules/uniconv/u16-strconv-to-locale: Likewise.
22709         * modules/uniconv/u32-conv-from-enc: Likewise.
22710         * modules/uniconv/u32-conv-to-enc: Likewise.
22711         * modules/uniconv/u32-strconv-from-enc: Likewise.
22712         * modules/uniconv/u32-strconv-from-locale: Likewise.
22713         * modules/uniconv/u32-strconv-to-enc: Likewise.
22714         * modules/uniconv/u32-strconv-to-locale: Likewise.
22715         * modules/unictype/bidicategory-byname: Likewise.
22716         * modules/unictype/bidicategory-name: Likewise.
22717         * modules/unictype/bidicategory-of: Likewise.
22718         * modules/unictype/bidicategory-test: Likewise.
22719         * modules/unictype/block-list: Likewise.
22720         * modules/unictype/block-test: Likewise.
22721         * modules/unictype/category-C: Likewise.
22722         * modules/unictype/category-Cc: Likewise.
22723         * modules/unictype/category-Cf: Likewise.
22724         * modules/unictype/category-Cn: Likewise.
22725         * modules/unictype/category-Co: Likewise.
22726         * modules/unictype/category-Cs: Likewise.
22727         * modules/unictype/category-L: Likewise.
22728         * modules/unictype/category-Ll: Likewise.
22729         * modules/unictype/category-Lm: Likewise.
22730         * modules/unictype/category-Lo: Likewise.
22731         * modules/unictype/category-Lt: Likewise.
22732         * modules/unictype/category-Lu: Likewise.
22733         * modules/unictype/category-M: Likewise.
22734         * modules/unictype/category-Mc: Likewise.
22735         * modules/unictype/category-Me: Likewise.
22736         * modules/unictype/category-Mn: Likewise.
22737         * modules/unictype/category-N: Likewise.
22738         * modules/unictype/category-Nd: Likewise.
22739         * modules/unictype/category-Nl: Likewise.
22740         * modules/unictype/category-No: Likewise.
22741         * modules/unictype/category-P: Likewise.
22742         * modules/unictype/category-Pc: Likewise.
22743         * modules/unictype/category-Pd: Likewise.
22744         * modules/unictype/category-Pe: Likewise.
22745         * modules/unictype/category-Pf: Likewise.
22746         * modules/unictype/category-Pi: Likewise.
22747         * modules/unictype/category-Po: Likewise.
22748         * modules/unictype/category-Ps: Likewise.
22749         * modules/unictype/category-S: Likewise.
22750         * modules/unictype/category-Sc: Likewise.
22751         * modules/unictype/category-Sk: Likewise.
22752         * modules/unictype/category-Sm: Likewise.
22753         * modules/unictype/category-So: Likewise.
22754         * modules/unictype/category-Z: Likewise.
22755         * modules/unictype/category-Zl: Likewise.
22756         * modules/unictype/category-Zp: Likewise.
22757         * modules/unictype/category-Zs: Likewise.
22758         * modules/unictype/category-and: Likewise.
22759         * modules/unictype/category-and-not: Likewise.
22760         * modules/unictype/category-byname: Likewise.
22761         * modules/unictype/category-name: Likewise.
22762         * modules/unictype/category-none: Likewise.
22763         * modules/unictype/category-of: Likewise.
22764         * modules/unictype/category-or: Likewise.
22765         * modules/unictype/category-test: Likewise.
22766         * modules/unictype/combining-class: Likewise.
22767         * modules/unictype/ctype-alnum: Likewise.
22768         * modules/unictype/ctype-alpha: Likewise.
22769         * modules/unictype/ctype-blank: Likewise.
22770         * modules/unictype/ctype-cntrl: Likewise.
22771         * modules/unictype/ctype-digit: Likewise.
22772         * modules/unictype/ctype-graph: Likewise.
22773         * modules/unictype/ctype-lower: Likewise.
22774         * modules/unictype/ctype-print: Likewise.
22775         * modules/unictype/ctype-punct: Likewise.
22776         * modules/unictype/ctype-space: Likewise.
22777         * modules/unictype/ctype-upper: Likewise.
22778         * modules/unictype/ctype-xdigit: Likewise.
22779         * modules/unictype/decimal-digit: Likewise.
22780         * modules/unictype/digit: Likewise.
22781         * modules/unictype/mirror: Likewise.
22782         * modules/unictype/numeric: Likewise.
22783         * modules/unictype/property-alphabetic: Likewise.
22784         * modules/unictype/property-ascii-hex-digit: Likewise.
22785         * modules/unictype/property-bidi-arabic-digit: Likewise.
22786         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22787         * modules/unictype/property-bidi-block-separator: Likewise.
22788         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22789         * modules/unictype/property-bidi-common-separator: Likewise.
22790         * modules/unictype/property-bidi-control: Likewise.
22791         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22792         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22793         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22794         * modules/unictype/property-bidi-european-digit: Likewise.
22795         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22796         * modules/unictype/property-bidi-left-to-right: Likewise.
22797         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22798         * modules/unictype/property-bidi-other-neutral: Likewise.
22799         * modules/unictype/property-bidi-pdf: Likewise.
22800         * modules/unictype/property-bidi-segment-separator: Likewise.
22801         * modules/unictype/property-bidi-whitespace: Likewise.
22802         * modules/unictype/property-byname: Likewise.
22803         * modules/unictype/property-combining: Likewise.
22804         * modules/unictype/property-composite: Likewise.
22805         * modules/unictype/property-currency-symbol: Likewise.
22806         * modules/unictype/property-dash: Likewise.
22807         * modules/unictype/property-decimal-digit: Likewise.
22808         * modules/unictype/property-default-ignorable-code-point: Likewise.
22809         * modules/unictype/property-deprecated: Likewise.
22810         * modules/unictype/property-diacritic: Likewise.
22811         * modules/unictype/property-extender: Likewise.
22812         * modules/unictype/property-format-control: Likewise.
22813         * modules/unictype/property-grapheme-base: Likewise.
22814         * modules/unictype/property-grapheme-extend: Likewise.
22815         * modules/unictype/property-grapheme-link: Likewise.
22816         * modules/unictype/property-hex-digit: Likewise.
22817         * modules/unictype/property-hyphen: Likewise.
22818         * modules/unictype/property-id-continue: Likewise.
22819         * modules/unictype/property-id-start: Likewise.
22820         * modules/unictype/property-ideographic: Likewise.
22821         * modules/unictype/property-ids-binary-operator: Likewise.
22822         * modules/unictype/property-ids-trinary-operator: Likewise.
22823         * modules/unictype/property-ignorable-control: Likewise.
22824         * modules/unictype/property-iso-control: Likewise.
22825         * modules/unictype/property-join-control: Likewise.
22826         * modules/unictype/property-left-of-pair: Likewise.
22827         * modules/unictype/property-line-separator: Likewise.
22828         * modules/unictype/property-logical-order-exception: Likewise.
22829         * modules/unictype/property-lowercase: Likewise.
22830         * modules/unictype/property-math: Likewise.
22831         * modules/unictype/property-non-break: Likewise.
22832         * modules/unictype/property-not-a-character: Likewise.
22833         * modules/unictype/property-numeric: Likewise.
22834         * modules/unictype/property-other-alphabetic: Likewise.
22835         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22836         * modules/unictype/property-other-grapheme-extend: Likewise.
22837         * modules/unictype/property-other-id-continue: Likewise.
22838         * modules/unictype/property-other-id-start: Likewise.
22839         * modules/unictype/property-other-lowercase: Likewise.
22840         * modules/unictype/property-other-math: Likewise.
22841         * modules/unictype/property-other-uppercase: Likewise.
22842         * modules/unictype/property-paired-punctuation: Likewise.
22843         * modules/unictype/property-paragraph-separator: Likewise.
22844         * modules/unictype/property-pattern-syntax: Likewise.
22845         * modules/unictype/property-pattern-white-space: Likewise.
22846         * modules/unictype/property-private-use: Likewise.
22847         * modules/unictype/property-punctuation: Likewise.
22848         * modules/unictype/property-quotation-mark: Likewise.
22849         * modules/unictype/property-radical: Likewise.
22850         * modules/unictype/property-sentence-terminal: Likewise.
22851         * modules/unictype/property-soft-dotted: Likewise.
22852         * modules/unictype/property-space: Likewise.
22853         * modules/unictype/property-terminal-punctuation: Likewise.
22854         * modules/unictype/property-test: Likewise.
22855         * modules/unictype/property-titlecase: Likewise.
22856         * modules/unictype/property-unassigned-code-value: Likewise.
22857         * modules/unictype/property-unified-ideograph: Likewise.
22858         * modules/unictype/property-uppercase: Likewise.
22859         * modules/unictype/property-variation-selector: Likewise.
22860         * modules/unictype/property-white-space: Likewise.
22861         * modules/unictype/property-xid-continue: Likewise.
22862         * modules/unictype/property-xid-start: Likewise.
22863         * modules/unictype/property-zero-width: Likewise.
22864         * modules/unictype/scripts: Likewise.
22865         * modules/unictype/syntax-c-ident: Likewise.
22866         * modules/unictype/syntax-c-whitespace: Likewise.
22867         * modules/unictype/syntax-java-ident: Likewise.
22868         * modules/unictype/syntax-java-whitespace: Likewise.
22869         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22870         * modules/unilbrk/u8-width-linebreaks: Likewise.
22871         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22872         * modules/unilbrk/u16-width-linebreaks: Likewise.
22873         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22874         * modules/unilbrk/u32-width-linebreaks: Likewise.
22875         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22876         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22877         * modules/uniname/uniname: Likewise.
22878         * modules/uninorm/canonical-decomposition: Likewise.
22879         * modules/uninorm/composition: Likewise.
22880         * modules/uninorm/decomposing-form: Likewise.
22881         * modules/uninorm/decomposition: Likewise.
22882         * modules/uninorm/filter: Likewise.
22883         * modules/uninorm/nfc: Likewise.
22884         * modules/uninorm/nfd: Likewise.
22885         * modules/uninorm/nfkc: Likewise.
22886         * modules/uninorm/nfkd: Likewise.
22887         * modules/uninorm/u8-normalize: Likewise.
22888         * modules/uninorm/u8-normcmp: Likewise.
22889         * modules/uninorm/u8-normcoll: Likewise.
22890         * modules/uninorm/u8-normxfrm: Likewise.
22891         * modules/uninorm/u16-normalize: Likewise.
22892         * modules/uninorm/u16-normcmp: Likewise.
22893         * modules/uninorm/u16-normcoll: Likewise.
22894         * modules/uninorm/u16-normxfrm: Likewise.
22895         * modules/uninorm/u32-normalize: Likewise.
22896         * modules/uninorm/u32-normcmp: Likewise.
22897         * modules/uninorm/u32-normcoll: Likewise.
22898         * modules/uninorm/u32-normxfrm: Likewise.
22899         * modules/unistdio/u8-asnprintf: Likewise.
22900         * modules/unistdio/u8-asprintf: Likewise.
22901         * modules/unistdio/u8-snprintf: Likewise.
22902         * modules/unistdio/u8-sprintf: Likewise.
22903         * modules/unistdio/u8-u8-asnprintf: Likewise.
22904         * modules/unistdio/u8-u8-asprintf: Likewise.
22905         * modules/unistdio/u8-u8-snprintf: Likewise.
22906         * modules/unistdio/u8-u8-sprintf: Likewise.
22907         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22908         * modules/unistdio/u8-u8-vasprintf: Likewise.
22909         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22910         * modules/unistdio/u8-u8-vsprintf: Likewise.
22911         * modules/unistdio/u8-vasnprintf: Likewise.
22912         * modules/unistdio/u8-vasprintf: Likewise.
22913         * modules/unistdio/u8-vsnprintf: Likewise.
22914         * modules/unistdio/u8-vsprintf: Likewise.
22915         * modules/unistdio/u16-asnprintf: Likewise.
22916         * modules/unistdio/u16-asprintf: Likewise.
22917         * modules/unistdio/u16-snprintf: Likewise.
22918         * modules/unistdio/u16-sprintf: Likewise.
22919         * modules/unistdio/u16-u16-asnprintf: Likewise.
22920         * modules/unistdio/u16-u16-asprintf: Likewise.
22921         * modules/unistdio/u16-u16-snprintf: Likewise.
22922         * modules/unistdio/u16-u16-sprintf: Likewise.
22923         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22924         * modules/unistdio/u16-u16-vasprintf: Likewise.
22925         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22926         * modules/unistdio/u16-u16-vsprintf: Likewise.
22927         * modules/unistdio/u16-vasnprintf: Likewise.
22928         * modules/unistdio/u16-vasprintf: Likewise.
22929         * modules/unistdio/u16-vsnprintf: Likewise.
22930         * modules/unistdio/u16-vsprintf: Likewise.
22931         * modules/unistdio/u32-asnprintf: Likewise.
22932         * modules/unistdio/u32-asprintf: Likewise.
22933         * modules/unistdio/u32-snprintf: Likewise.
22934         * modules/unistdio/u32-sprintf: Likewise.
22935         * modules/unistdio/u32-u32-asnprintf: Likewise.
22936         * modules/unistdio/u32-u32-asprintf: Likewise.
22937         * modules/unistdio/u32-u32-snprintf: Likewise.
22938         * modules/unistdio/u32-u32-sprintf: Likewise.
22939         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22940         * modules/unistdio/u32-u32-vasprintf: Likewise.
22941         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22942         * modules/unistdio/u32-u32-vsprintf: Likewise.
22943         * modules/unistdio/u32-vasnprintf: Likewise.
22944         * modules/unistdio/u32-vasprintf: Likewise.
22945         * modules/unistdio/u32-vsnprintf: Likewise.
22946         * modules/unistdio/u32-vsprintf: Likewise.
22947         * modules/unistdio/ulc-asnprintf: Likewise.
22948         * modules/unistdio/ulc-asprintf: Likewise.
22949         * modules/unistdio/ulc-fprintf: Likewise.
22950         * modules/unistdio/ulc-snprintf: Likewise.
22951         * modules/unistdio/ulc-sprintf: Likewise.
22952         * modules/unistdio/ulc-vasnprintf: Likewise.
22953         * modules/unistdio/ulc-vasprintf: Likewise.
22954         * modules/unistdio/ulc-vfprintf: Likewise.
22955         * modules/unistdio/ulc-vsnprintf: Likewise.
22956         * modules/unistdio/ulc-vsprintf: Likewise.
22957         * modules/unistr/u8-check: Likewise.
22958         * modules/unistr/u8-chr: Likewise.
22959         * modules/unistr/u8-cmp: Likewise.
22960         * modules/unistr/u8-cmp2: Likewise.
22961         * modules/unistr/u8-cpy: Likewise.
22962         * modules/unistr/u8-cpy-alloc: Likewise.
22963         * modules/unistr/u8-endswith: Likewise.
22964         * modules/unistr/u8-mblen: Likewise.
22965         * modules/unistr/u8-mbsnlen: Likewise.
22966         * modules/unistr/u8-mbtouc: Likewise.
22967         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22968         * modules/unistr/u8-mbtoucr: Likewise.
22969         * modules/unistr/u8-move: Likewise.
22970         * modules/unistr/u8-next: Likewise.
22971         * modules/unistr/u8-prev: Likewise.
22972         * modules/unistr/u8-set: Likewise.
22973         * modules/unistr/u8-startswith: Likewise.
22974         * modules/unistr/u8-stpcpy: Likewise.
22975         * modules/unistr/u8-stpncpy: Likewise.
22976         * modules/unistr/u8-strcat: Likewise.
22977         * modules/unistr/u8-strchr: Likewise.
22978         * modules/unistr/u8-strcmp: Likewise.
22979         * modules/unistr/u8-strcoll: Likewise.
22980         * modules/unistr/u8-strcpy: Likewise.
22981         * modules/unistr/u8-strcspn: Likewise.
22982         * modules/unistr/u8-strdup: Likewise.
22983         * modules/unistr/u8-strlen: Likewise.
22984         * modules/unistr/u8-strmblen: Likewise.
22985         * modules/unistr/u8-strmbtouc: Likewise.
22986         * modules/unistr/u8-strncat: Likewise.
22987         * modules/unistr/u8-strncmp: Likewise.
22988         * modules/unistr/u8-strncpy: Likewise.
22989         * modules/unistr/u8-strnlen: Likewise.
22990         * modules/unistr/u8-strpbrk: Likewise.
22991         * modules/unistr/u8-strrchr: Likewise.
22992         * modules/unistr/u8-strspn: Likewise.
22993         * modules/unistr/u8-strstr: Likewise.
22994         * modules/unistr/u8-strtok: Likewise.
22995         * modules/unistr/u8-to-u16: Likewise.
22996         * modules/unistr/u8-to-u32: Likewise.
22997         * modules/unistr/u8-uctomb: Likewise.
22998         * modules/unistr/u16-check: Likewise.
22999         * modules/unistr/u16-chr: Likewise.
23000         * modules/unistr/u16-cmp: Likewise.
23001         * modules/unistr/u16-cmp2: Likewise.
23002         * modules/unistr/u16-cpy: Likewise.
23003         * modules/unistr/u16-cpy-alloc: Likewise.
23004         * modules/unistr/u16-endswith: Likewise.
23005         * modules/unistr/u16-mblen: Likewise.
23006         * modules/unistr/u16-mbsnlen: Likewise.
23007         * modules/unistr/u16-mbtouc: Likewise.
23008         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23009         * modules/unistr/u16-mbtoucr: Likewise.
23010         * modules/unistr/u16-move: Likewise.
23011         * modules/unistr/u16-next: Likewise.
23012         * modules/unistr/u16-prev: Likewise.
23013         * modules/unistr/u16-set: Likewise.
23014         * modules/unistr/u16-startswith: Likewise.
23015         * modules/unistr/u16-stpcpy: Likewise.
23016         * modules/unistr/u16-stpncpy: Likewise.
23017         * modules/unistr/u16-strcat: Likewise.
23018         * modules/unistr/u16-strchr: Likewise.
23019         * modules/unistr/u16-strcmp: Likewise.
23020         * modules/unistr/u16-strcoll: Likewise.
23021         * modules/unistr/u16-strcpy: Likewise.
23022         * modules/unistr/u16-strcspn: Likewise.
23023         * modules/unistr/u16-strdup: Likewise.
23024         * modules/unistr/u16-strlen: Likewise.
23025         * modules/unistr/u16-strmblen: Likewise.
23026         * modules/unistr/u16-strmbtouc: Likewise.
23027         * modules/unistr/u16-strncat: Likewise.
23028         * modules/unistr/u16-strncmp: Likewise.
23029         * modules/unistr/u16-strncpy: Likewise.
23030         * modules/unistr/u16-strnlen: Likewise.
23031         * modules/unistr/u16-strpbrk: Likewise.
23032         * modules/unistr/u16-strrchr: Likewise.
23033         * modules/unistr/u16-strspn: Likewise.
23034         * modules/unistr/u16-strstr: Likewise.
23035         * modules/unistr/u16-strtok: Likewise.
23036         * modules/unistr/u16-to-u32: Likewise.
23037         * modules/unistr/u16-to-u8: Likewise.
23038         * modules/unistr/u16-uctomb: Likewise.
23039         * modules/unistr/u32-check: Likewise.
23040         * modules/unistr/u32-chr: Likewise.
23041         * modules/unistr/u32-cmp: Likewise.
23042         * modules/unistr/u32-cmp2: Likewise.
23043         * modules/unistr/u32-cpy: Likewise.
23044         * modules/unistr/u32-cpy-alloc: Likewise.
23045         * modules/unistr/u32-endswith: Likewise.
23046         * modules/unistr/u32-mblen: Likewise.
23047         * modules/unistr/u32-mbsnlen: Likewise.
23048         * modules/unistr/u32-mbtouc: Likewise.
23049         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23050         * modules/unistr/u32-mbtoucr: Likewise.
23051         * modules/unistr/u32-move: Likewise.
23052         * modules/unistr/u32-next: Likewise.
23053         * modules/unistr/u32-prev: Likewise.
23054         * modules/unistr/u32-set: Likewise.
23055         * modules/unistr/u32-startswith: Likewise.
23056         * modules/unistr/u32-stpcpy: Likewise.
23057         * modules/unistr/u32-stpncpy: Likewise.
23058         * modules/unistr/u32-strcat: Likewise.
23059         * modules/unistr/u32-strchr: Likewise.
23060         * modules/unistr/u32-strcmp: Likewise.
23061         * modules/unistr/u32-strcoll: Likewise.
23062         * modules/unistr/u32-strcpy: Likewise.
23063         * modules/unistr/u32-strcspn: Likewise.
23064         * modules/unistr/u32-strdup: Likewise.
23065         * modules/unistr/u32-strlen: Likewise.
23066         * modules/unistr/u32-strmblen: Likewise.
23067         * modules/unistr/u32-strmbtouc: Likewise.
23068         * modules/unistr/u32-strncat: Likewise.
23069         * modules/unistr/u32-strncmp: Likewise.
23070         * modules/unistr/u32-strncpy: Likewise.
23071         * modules/unistr/u32-strnlen: Likewise.
23072         * modules/unistr/u32-strpbrk: Likewise.
23073         * modules/unistr/u32-strrchr: Likewise.
23074         * modules/unistr/u32-strspn: Likewise.
23075         * modules/unistr/u32-strstr: Likewise.
23076         * modules/unistr/u32-strtok: Likewise.
23077         * modules/unistr/u32-to-u16: Likewise.
23078         * modules/unistr/u32-to-u8: Likewise.
23079         * modules/unistr/u32-uctomb: Likewise.
23080         * modules/uniwbrk/u8-wordbreaks: Likewise.
23081         * modules/uniwbrk/u16-wordbreaks: Likewise.
23082         * modules/uniwbrk/u32-wordbreaks: Likewise.
23083         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23084         * modules/uniwbrk/wordbreak-property: Likewise.
23085         * modules/uniwidth/u8-strwidth: Likewise.
23086         * modules/uniwidth/u8-width: Likewise.
23087         * modules/uniwidth/u16-strwidth: Likewise.
23088         * modules/uniwidth/u16-width: Likewise.
23089         * modules/uniwidth/u32-strwidth: Likewise.
23090         * modules/uniwidth/u32-width: Likewise.
23091         * modules/uniwidth/width: Likewise.
23092         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23093         with $(LIBUNISTRING).
23094         * modules/unicase/ignorable-tests: Likewise.
23095         * modules/unicase/locale-language-tests: Likewise.
23096         * modules/unicase/tolower-tests: Likewise.
23097         * modules/unicase/totitle-tests: Likewise.
23098         * modules/unicase/toupper-tests: Likewise.
23099         * modules/unicase/u8-casecmp-tests: Likewise.
23100         * modules/unicase/u8-casecoll-tests: Likewise.
23101         * modules/unicase/u8-casefold-tests: Likewise.
23102         * modules/unicase/u8-is-cased-tests: Likewise.
23103         * modules/unicase/u8-is-casefolded-tests: Likewise.
23104         * modules/unicase/u8-is-lowercase-tests: Likewise.
23105         * modules/unicase/u8-is-titlecase-tests: Likewise.
23106         * modules/unicase/u8-is-uppercase-tests: Likewise.
23107         * modules/unicase/u8-tolower-tests: Likewise.
23108         * modules/unicase/u8-totitle-tests: Likewise.
23109         * modules/unicase/u8-toupper-tests: Likewise.
23110         * modules/unicase/u16-casecmp-tests: Likewise.
23111         * modules/unicase/u16-casecoll-tests: Likewise.
23112         * modules/unicase/u16-casefold-tests: Likewise.
23113         * modules/unicase/u16-is-cased-tests: Likewise.
23114         * modules/unicase/u16-is-casefolded-tests: Likewise.
23115         * modules/unicase/u16-is-lowercase-tests: Likewise.
23116         * modules/unicase/u16-is-titlecase-tests: Likewise.
23117         * modules/unicase/u16-is-uppercase-tests: Likewise.
23118         * modules/unicase/u16-tolower-tests: Likewise.
23119         * modules/unicase/u16-totitle-tests: Likewise.
23120         * modules/unicase/u16-toupper-tests: Likewise.
23121         * modules/unicase/u32-casecmp-tests: Likewise.
23122         * modules/unicase/u32-casecoll-tests: Likewise.
23123         * modules/unicase/u32-casefold-tests: Likewise.
23124         * modules/unicase/u32-is-cased-tests: Likewise.
23125         * modules/unicase/u32-is-casefolded-tests: Likewise.
23126         * modules/unicase/u32-is-lowercase-tests: Likewise.
23127         * modules/unicase/u32-is-titlecase-tests: Likewise.
23128         * modules/unicase/u32-is-uppercase-tests: Likewise.
23129         * modules/unicase/u32-tolower-tests: Likewise.
23130         * modules/unicase/u32-totitle-tests: Likewise.
23131         * modules/unicase/u32-toupper-tests: Likewise.
23132         * modules/unicase/ulc-casecmp-tests: Likewise.
23133         * modules/unicase/ulc-casecoll-tests: Likewise.
23134         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23135         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23136         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23137         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23138         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23139         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23140         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23141         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23142         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23143         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23144         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23145         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23146         * modules/unictype/bidicategory-byname-tests: Likewise.
23147         * modules/unictype/bidicategory-name-tests: Likewise.
23148         * modules/unictype/bidicategory-of-tests: Likewise.
23149         * modules/unictype/bidicategory-test-tests: Likewise.
23150         * modules/unictype/block-list-tests: Likewise.
23151         * modules/unictype/block-of-tests: Likewise.
23152         * modules/unictype/block-test-tests: Likewise.
23153         * modules/unictype/category-C-tests: Likewise.
23154         * modules/unictype/category-Cc-tests: Likewise.
23155         * modules/unictype/category-Cf-tests: Likewise.
23156         * modules/unictype/category-Cn-tests: Likewise.
23157         * modules/unictype/category-Co-tests: Likewise.
23158         * modules/unictype/category-Cs-tests: Likewise.
23159         * modules/unictype/category-L-tests: Likewise.
23160         * modules/unictype/category-Ll-tests: Likewise.
23161         * modules/unictype/category-Lm-tests: Likewise.
23162         * modules/unictype/category-Lo-tests: Likewise.
23163         * modules/unictype/category-Lt-tests: Likewise.
23164         * modules/unictype/category-Lu-tests: Likewise.
23165         * modules/unictype/category-M-tests: Likewise.
23166         * modules/unictype/category-Mc-tests: Likewise.
23167         * modules/unictype/category-Me-tests: Likewise.
23168         * modules/unictype/category-Mn-tests: Likewise.
23169         * modules/unictype/category-N-tests: Likewise.
23170         * modules/unictype/category-Nd-tests: Likewise.
23171         * modules/unictype/category-Nl-tests: Likewise.
23172         * modules/unictype/category-No-tests: Likewise.
23173         * modules/unictype/category-P-tests: Likewise.
23174         * modules/unictype/category-Pc-tests: Likewise.
23175         * modules/unictype/category-Pd-tests: Likewise.
23176         * modules/unictype/category-Pe-tests: Likewise.
23177         * modules/unictype/category-Pf-tests: Likewise.
23178         * modules/unictype/category-Pi-tests: Likewise.
23179         * modules/unictype/category-Po-tests: Likewise.
23180         * modules/unictype/category-Ps-tests: Likewise.
23181         * modules/unictype/category-S-tests: Likewise.
23182         * modules/unictype/category-Sc-tests: Likewise.
23183         * modules/unictype/category-Sk-tests: Likewise.
23184         * modules/unictype/category-Sm-tests: Likewise.
23185         * modules/unictype/category-So-tests: Likewise.
23186         * modules/unictype/category-Z-tests: Likewise.
23187         * modules/unictype/category-Zl-tests: Likewise.
23188         * modules/unictype/category-Zp-tests: Likewise.
23189         * modules/unictype/category-Zs-tests: Likewise.
23190         * modules/unictype/category-and-not-tests: Likewise.
23191         * modules/unictype/category-and-tests: Likewise.
23192         * modules/unictype/category-byname-tests: Likewise.
23193         * modules/unictype/category-name-tests: Likewise.
23194         * modules/unictype/category-none-tests: Likewise.
23195         * modules/unictype/category-of-tests: Likewise.
23196         * modules/unictype/category-or-tests: Likewise.
23197         * modules/unictype/category-test-withtable-tests: Likewise.
23198         * modules/unictype/combining-class-tests: Likewise.
23199         * modules/unictype/ctype-alnum-tests: Likewise.
23200         * modules/unictype/ctype-alpha-tests: Likewise.
23201         * modules/unictype/ctype-blank-tests: Likewise.
23202         * modules/unictype/ctype-cntrl-tests: Likewise.
23203         * modules/unictype/ctype-digit-tests: Likewise.
23204         * modules/unictype/ctype-graph-tests: Likewise.
23205         * modules/unictype/ctype-lower-tests: Likewise.
23206         * modules/unictype/ctype-print-tests: Likewise.
23207         * modules/unictype/ctype-punct-tests: Likewise.
23208         * modules/unictype/ctype-space-tests: Likewise.
23209         * modules/unictype/ctype-upper-tests: Likewise.
23210         * modules/unictype/ctype-xdigit-tests: Likewise.
23211         * modules/unictype/decimal-digit-tests: Likewise.
23212         * modules/unictype/digit-tests: Likewise.
23213         * modules/unictype/mirror-tests: Likewise.
23214         * modules/unictype/numeric-tests: Likewise.
23215         * modules/unictype/property-alphabetic-tests: Likewise.
23216         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23217         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23218         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23219         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23220         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23221         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23222         * modules/unictype/property-bidi-control-tests: Likewise.
23223         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23224         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23225         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23226         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23227         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23228         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23229         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23230         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23231         * modules/unictype/property-bidi-pdf-tests: Likewise.
23232         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23233         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23234         * modules/unictype/property-byname-tests: Likewise.
23235         * modules/unictype/property-combining-tests: Likewise.
23236         * modules/unictype/property-composite-tests: Likewise.
23237         * modules/unictype/property-currency-symbol-tests: Likewise.
23238         * modules/unictype/property-dash-tests: Likewise.
23239         * modules/unictype/property-decimal-digit-tests: Likewise.
23240         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23241         * modules/unictype/property-deprecated-tests: Likewise.
23242         * modules/unictype/property-diacritic-tests: Likewise.
23243         * modules/unictype/property-extender-tests: Likewise.
23244         * modules/unictype/property-format-control-tests: Likewise.
23245         * modules/unictype/property-grapheme-base-tests: Likewise.
23246         * modules/unictype/property-grapheme-extend-tests: Likewise.
23247         * modules/unictype/property-grapheme-link-tests: Likewise.
23248         * modules/unictype/property-hex-digit-tests: Likewise.
23249         * modules/unictype/property-hyphen-tests: Likewise.
23250         * modules/unictype/property-id-continue-tests: Likewise.
23251         * modules/unictype/property-id-start-tests: Likewise.
23252         * modules/unictype/property-ideographic-tests: Likewise.
23253         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23254         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23255         * modules/unictype/property-ignorable-control-tests: Likewise.
23256         * modules/unictype/property-iso-control-tests: Likewise.
23257         * modules/unictype/property-join-control-tests: Likewise.
23258         * modules/unictype/property-left-of-pair-tests: Likewise.
23259         * modules/unictype/property-line-separator-tests: Likewise.
23260         * modules/unictype/property-logical-order-exception-tests: Likewise.
23261         * modules/unictype/property-lowercase-tests: Likewise.
23262         * modules/unictype/property-math-tests: Likewise.
23263         * modules/unictype/property-non-break-tests: Likewise.
23264         * modules/unictype/property-not-a-character-tests: Likewise.
23265         * modules/unictype/property-numeric-tests: Likewise.
23266         * modules/unictype/property-other-alphabetic-tests: Likewise.
23267         * modules/unictype/property-other-default-ignorable-code-point-tests:
23268         Likewise.
23269         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23270         * modules/unictype/property-other-id-continue-tests: Likewise.
23271         * modules/unictype/property-other-id-start-tests: Likewise.
23272         * modules/unictype/property-other-lowercase-tests: Likewise.
23273         * modules/unictype/property-other-math-tests: Likewise.
23274         * modules/unictype/property-other-uppercase-tests: Likewise.
23275         * modules/unictype/property-paired-punctuation-tests: Likewise.
23276         * modules/unictype/property-paragraph-separator-tests: Likewise.
23277         * modules/unictype/property-pattern-syntax-tests: Likewise.
23278         * modules/unictype/property-pattern-white-space-tests: Likewise.
23279         * modules/unictype/property-private-use-tests: Likewise.
23280         * modules/unictype/property-punctuation-tests: Likewise.
23281         * modules/unictype/property-quotation-mark-tests: Likewise.
23282         * modules/unictype/property-radical-tests: Likewise.
23283         * modules/unictype/property-sentence-terminal-tests: Likewise.
23284         * modules/unictype/property-soft-dotted-tests: Likewise.
23285         * modules/unictype/property-space-tests: Likewise.
23286         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23287         * modules/unictype/property-test-tests: Likewise.
23288         * modules/unictype/property-titlecase-tests: Likewise.
23289         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23290         * modules/unictype/property-unified-ideograph-tests: Likewise.
23291         * modules/unictype/property-uppercase-tests: Likewise.
23292         * modules/unictype/property-variation-selector-tests: Likewise.
23293         * modules/unictype/property-white-space-tests: Likewise.
23294         * modules/unictype/property-xid-continue-tests: Likewise.
23295         * modules/unictype/property-xid-start-tests: Likewise.
23296         * modules/unictype/property-zero-width-tests: Likewise.
23297         * modules/unictype/scripts-tests: Likewise.
23298         * modules/unictype/syntax-c-ident-tests: Likewise.
23299         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23300         * modules/unictype/syntax-java-ident-tests: Likewise.
23301         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23302         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23303         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23304         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23305         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23306         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23307         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23308         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23309         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23310         * modules/uniname/uniname-tests: Likewise.
23311         * modules/uninorm/canonical-decomposition-tests: Likewise.
23312         * modules/uninorm/compat-decomposition-tests: Likewise.
23313         * modules/uninorm/composition-tests: Likewise.
23314         * modules/uninorm/decomposing-form-tests: Likewise.
23315         * modules/uninorm/decomposition-tests: Likewise.
23316         * modules/uninorm/filter-tests: Likewise.
23317         * modules/uninorm/nfc-tests: Likewise.
23318         * modules/uninorm/nfd-tests: Likewise.
23319         * modules/uninorm/nfkc-tests: Likewise.
23320         * modules/uninorm/nfkd-tests: Likewise.
23321         * modules/uninorm/u8-normcmp-tests: Likewise.
23322         * modules/uninorm/u8-normcoll-tests: Likewise.
23323         * modules/uninorm/u16-normcmp-tests: Likewise.
23324         * modules/uninorm/u16-normcoll-tests: Likewise.
23325         * modules/uninorm/u32-normcmp-tests: Likewise.
23326         * modules/uninorm/u32-normcoll-tests: Likewise.
23327         * modules/unistdio/u8-asnprintf-tests: Likewise.
23328         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23329         * modules/unistdio/u8-vasprintf-tests: Likewise.
23330         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23331         * modules/unistdio/u8-vsprintf-tests: Likewise.
23332         * modules/unistdio/u16-asnprintf-tests: Likewise.
23333         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23334         * modules/unistdio/u16-vasprintf-tests: Likewise.
23335         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23336         * modules/unistdio/u16-vsprintf-tests: Likewise.
23337         * modules/unistdio/u32-asnprintf-tests: Likewise.
23338         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23339         * modules/unistdio/u32-vasprintf-tests: Likewise.
23340         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23341         * modules/unistdio/u32-vsprintf-tests: Likewise.
23342         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23343         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23344         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23345         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23346         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23347         * modules/unistr/u8-check-tests: Likewise.
23348         * modules/unistr/u8-chr-tests: Likewise.
23349         * modules/unistr/u8-cmp-tests: Likewise.
23350         * modules/unistr/u8-cmp2-tests: Likewise.
23351         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23352         * modules/unistr/u8-cpy-tests: Likewise.
23353         * modules/unistr/u8-mblen-tests: Likewise.
23354         * modules/unistr/u8-mbsnlen-tests: Likewise.
23355         * modules/unistr/u8-mbtouc-tests: Likewise.
23356         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23357         * modules/unistr/u8-mbtoucr-tests: Likewise.
23358         * modules/unistr/u8-move-tests: Likewise.
23359         * modules/unistr/u8-next-tests: Likewise.
23360         * modules/unistr/u8-prev-tests: Likewise.
23361         * modules/unistr/u8-set-tests: Likewise.
23362         * modules/unistr/u8-stpcpy-tests: Likewise.
23363         * modules/unistr/u8-stpncpy-tests: Likewise.
23364         * modules/unistr/u8-strcat-tests: Likewise.
23365         * modules/unistr/u8-strcmp-tests: Likewise.
23366         * modules/unistr/u8-strcoll-tests: Likewise.
23367         * modules/unistr/u8-strcpy-tests: Likewise.
23368         * modules/unistr/u8-strdup-tests: Likewise.
23369         * modules/unistr/u8-strlen-tests: Likewise.
23370         * modules/unistr/u8-strmblen-tests: Likewise.
23371         * modules/unistr/u8-strmbtouc-tests: Likewise.
23372         * modules/unistr/u8-strncat-tests: Likewise.
23373         * modules/unistr/u8-strncmp-tests: Likewise.
23374         * modules/unistr/u8-strncpy-tests: Likewise.
23375         * modules/unistr/u8-strnlen-tests: Likewise.
23376         * modules/unistr/u8-to-u16-tests: Likewise.
23377         * modules/unistr/u8-to-u32-tests: Likewise.
23378         * modules/unistr/u8-uctomb-tests: Likewise.
23379         * modules/unistr/u16-check-tests: Likewise.
23380         * modules/unistr/u16-chr-tests: Likewise.
23381         * modules/unistr/u16-cmp-tests: Likewise.
23382         * modules/unistr/u16-cmp2-tests: Likewise.
23383         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23384         * modules/unistr/u16-cpy-tests: Likewise.
23385         * modules/unistr/u16-mblen-tests: Likewise.
23386         * modules/unistr/u16-mbsnlen-tests: Likewise.
23387         * modules/unistr/u16-mbtouc-tests: Likewise.
23388         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23389         * modules/unistr/u16-mbtoucr-tests: Likewise.
23390         * modules/unistr/u16-move-tests: Likewise.
23391         * modules/unistr/u16-next-tests: Likewise.
23392         * modules/unistr/u16-prev-tests: Likewise.
23393         * modules/unistr/u16-set-tests: Likewise.
23394         * modules/unistr/u16-stpcpy-tests: Likewise.
23395         * modules/unistr/u16-stpncpy-tests: Likewise.
23396         * modules/unistr/u16-strcat-tests: Likewise.
23397         * modules/unistr/u16-strcmp-tests: Likewise.
23398         * modules/unistr/u16-strcoll-tests: Likewise.
23399         * modules/unistr/u16-strcpy-tests: Likewise.
23400         * modules/unistr/u16-strdup-tests: Likewise.
23401         * modules/unistr/u16-strlen-tests: Likewise.
23402         * modules/unistr/u16-strmblen-tests: Likewise.
23403         * modules/unistr/u16-strmbtouc-tests: Likewise.
23404         * modules/unistr/u16-strncat-tests: Likewise.
23405         * modules/unistr/u16-strncmp-tests: Likewise.
23406         * modules/unistr/u16-strncpy-tests: Likewise.
23407         * modules/unistr/u16-strnlen-tests: Likewise.
23408         * modules/unistr/u16-to-u32-tests: Likewise.
23409         * modules/unistr/u16-to-u8-tests: Likewise.
23410         * modules/unistr/u16-uctomb-tests: Likewise.
23411         * modules/unistr/u32-check-tests: Likewise.
23412         * modules/unistr/u32-chr-tests: Likewise.
23413         * modules/unistr/u32-cmp-tests: Likewise.
23414         * modules/unistr/u32-cmp2-tests: Likewise.
23415         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23416         * modules/unistr/u32-cpy-tests: Likewise.
23417         * modules/unistr/u32-mblen-tests: Likewise.
23418         * modules/unistr/u32-mbsnlen-tests: Likewise.
23419         * modules/unistr/u32-mbtouc-tests: Likewise.
23420         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23421         * modules/unistr/u32-mbtoucr-tests: Likewise.
23422         * modules/unistr/u32-move-tests: Likewise.
23423         * modules/unistr/u32-next-tests: Likewise.
23424         * modules/unistr/u32-prev-tests: Likewise.
23425         * modules/unistr/u32-set-tests: Likewise.
23426         * modules/unistr/u32-stpcpy-tests: Likewise.
23427         * modules/unistr/u32-stpncpy-tests: Likewise.
23428         * modules/unistr/u32-strcat-tests: Likewise.
23429         * modules/unistr/u32-strcmp-tests: Likewise.
23430         * modules/unistr/u32-strcoll-tests: Likewise.
23431         * modules/unistr/u32-strcpy-tests: Likewise.
23432         * modules/unistr/u32-strdup-tests: Likewise.
23433         * modules/unistr/u32-strlen-tests: Likewise.
23434         * modules/unistr/u32-strmblen-tests: Likewise.
23435         * modules/unistr/u32-strmbtouc-tests: Likewise.
23436         * modules/unistr/u32-strncat-tests: Likewise.
23437         * modules/unistr/u32-strncmp-tests: Likewise.
23438         * modules/unistr/u32-strncpy-tests: Likewise.
23439         * modules/unistr/u32-strnlen-tests: Likewise.
23440         * modules/unistr/u32-to-u16-tests: Likewise.
23441         * modules/unistr/u32-to-u8-tests: Likewise.
23442         * modules/unistr/u32-uctomb-tests: Likewise.
23443         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23444         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23445         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23446         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23447         * modules/uniwidth/u8-strwidth-tests: Likewise.
23448         * modules/uniwidth/u8-width-tests: Likewise.
23449         * modules/uniwidth/u16-strwidth-tests: Likewise.
23450         * modules/uniwidth/u16-width-tests: Likewise.
23451         * modules/uniwidth/u32-strwidth-tests: Likewise.
23452         * modules/uniwidth/u32-width-tests: Likewise.
23453         * modules/uniwidth/width-tests: Likewise.
23454
23455 2010-05-18  Richard Jones  <rjones@redhat.com>
23456
23457         doc: users.txt: list hivex
23458         * users.txt: Add hivex.
23459
23460 2010-05-18  Richard Jones  <rjones@redhat.com>
23461
23462         doc: users.txt: list febootstrap
23463         * users.txt: Add febootstrap.
23464
23465 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23466
23467         bootstrap: fix an error when gnulib is not used as a git submodule
23468         * build-aux/bootstrap (gnulib_path): If its length is zero then
23469         assign "gnulib" to it.
23470         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23471
23472 2010-05-16  Bruno Haible  <bruno@clisp.org>
23473
23474         Avoid autoconf warnings about AM_ICONV.
23475         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23476         2.64.
23477
23478 2010-05-16  Bruno Haible  <bruno@clisp.org>
23479
23480         absolute-header: Make the macro usable in more situations.
23481         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23482         from gl_ABSOLUTE_HEADER.
23483         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23484
23485 2010-05-16  James Youngman  <jay@gnu.org>
23486
23487         doc: update users.txt
23488         * users.txt: Add CSSC.
23489
23490 2010-05-16  Jim Meyering  <meyering@redhat.com>
23491
23492         init.sh: fix an error in the previous change; add more comments
23493         * tests/init.sh: Compare exit code in loop against 9, not 2.
23494         Patch by Bruno Haible.
23495         Make the two tests more similar by adding an empty "then" clause.
23496         Add comments.
23497
23498         init.sh: avoid unnecessary shell re-exec
23499         * tests/init.sh: Improve the re-exec-required check to first test the
23500         current shell.  If it passes the test, do not search for a shell that
23501         does pass, and do not re-exec.  This test is particularly contorted to
23502         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23503         of $(...) evokes a syntax error and causes immediate shell exit with
23504         status 2.  Bruno Haible reported that the re-exec made it impossible
23505         to single-step through any init.sh-using script.
23506
23507 2010-05-16  Bruno Haible  <bruno@clisp.org>
23508
23509         Fix collision between gnulib's and libintl's printf replacements.
23510         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23511         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23512         (printf): When using GNU C, map the __printf__ function to rpl_printf
23513         via __asm__. When not using GNU C, define rpl_printf instead of
23514         __printf__.
23515         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23516         commit.
23517         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23518         commit.
23519         * m4/asm-underscore.m4: New file.
23520         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23521         * modules/stdio (Files): Add m4/asm-underscore.m4.
23522         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23523         Reported by Ben Pfaff.
23524
23525 2010-05-16  Bruno Haible  <bruno@clisp.org>
23526
23527         verify: Avoid skipping the test on openSUSE 11.0.
23528         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23529
23530 2010-05-13  Bruno Haible  <bruno@clisp.org>
23531
23532         Avoid useless warnings from G++.
23533         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23534         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23535         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23536
23537 2010-05-11  Jim Meyering  <meyering@redhat.com>
23538
23539         maint.mk: tweak preceding change
23540         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23541         regexps tighter by anchoring at EOL, and make the new group "shy"
23542         for slightly decreased overhead.
23543
23544 2010-05-11  Eric Blake  <eblake@redhat.com>
23545
23546         maint.mk: gnulib doesn't guarantee NSIG
23547         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23548
23549 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23550
23551         test-pwrite.c: Remove unused variable declaration.
23552         * tests/test-pwrite.c (main): Remove read_buf declaration.
23553
23554         Remove useless test-pwrite.sh file.
23555         * tests/test-pwrite.sh: Delete file.
23556         * modules/pwrite-tests: Remove references.
23557         Reported by Bruno Haible.
23558
23559 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23560
23561         init.sh: fix a typo
23562         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23563
23564 2010-05-10  Jim Meyering  <meyering@redhat.com>
23565
23566         maint.mk: avoid using a temporary file in the always-defined-macros check
23567         * top/maint.mk (.re-defmac): Remove rule.
23568         (gl_trap_): Remove definition.
23569         (sc_prohibit_always-defined_macros): Rewrite not to create and
23570         depend on a temporary file.  Instead, depend on GNU grep's ability
23571         to read a list of regular expressions from stdin when given "-f -".
23572
23573 2010-05-09  Bruno Haible  <bruno@clisp.org>
23574
23575         Update to GNU gettext 0.18, part 1.
23576         * m4/gettext.m4: Update to GNU gettext 0.18.
23577         * m4/intl.m4: Likewise.
23578         * m4/po.m4: Likewise.
23579         * modules/gettext (Files): Add m4/fcntl-o.m4.
23580         (configure.ac): Require gettext infrastructure from version 0.18.
23581
23582 2010-05-09  Jim Meyering  <meyering@redhat.com>
23583
23584         init.sh: enable MALLOC_PERTURB_
23585         * tests/init.sh: Enable glibc's malloc-perturbing option.
23586
23587         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23588         With my recent change in init.sh from the two-line form:
23589             -#   : ${srcdir=.}
23590             -#   . "$srcdir/init.sh"; path_prepend_ .
23591             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23592         I noticed that using the one-line form would cause this test
23593         to fail with a false-positive, or to stop working altogether,
23594         depending on whether help-version changed or all the tests did.
23595         * top/maint.mk (_hv_regex): Remove this definition.
23596         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23597         (_hv_regex_strong): Use a stronger regex to check for conformance.
23598         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23599         Give a separate diagnostic for lack of conforming use.
23600
23601         maint.mk: prohibit definition of symbols defined by gnulib
23602         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23603         definition of symbols defined by gnulib.
23604
23605 2010-05-09  Bruno Haible  <bruno@clisp.org>
23606
23607         acl: Avoid test failure on Cygwin-hosted mingw.
23608         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23609
23610 2010-05-09  Bruno Haible  <bruno@clisp.org>
23611
23612         error: Use system's fcntl function.
23613         * lib/error.c (fcntl): Undefine.
23614
23615 2010-05-09  Jim Meyering  <meyering@redhat.com>
23616
23617         verify: adjust formatting to be more consistent
23618         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23619         argument-list '('s, and after one comma.
23620
23621 2010-05-09  Bruno Haible  <bruno@clisp.org>
23622
23623         error: More reliable output on mingw.
23624         * lib/error.c: Include <windows.h>.
23625         (is_open): New function.
23626         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23627         defined.
23628
23629 2010-05-09  Bruno Haible  <bruno@clisp.org>
23630
23631         vasnprintf: Fix syntax errors in libintl build on mingw.
23632         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23633         pad_ourselves and prec_ourselves after use.
23634
23635 2010-05-08  Bruno Haible  <bruno@clisp.org>
23636
23637         * lib/config.charset: Update comments for Cygwin 1.7.
23638         * lib/localcharset.c: Likewise.
23639
23640 2010-05-07  Jim Meyering  <meyering@redhat.com>
23641
23642         init.sh: improve comments
23643         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23644         . "${srcdir=.}/init.sh"; path_prepend_ .
23645         Add a note about path_prepend_ and the alternative of using
23646         TESTS_ENVIRONMENT.
23647
23648 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23649
23650         exclude: Unescape hashed patterns in wildcard mode.
23651         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23652         to the hash list.
23653         * tests/test-exclude8.sh: New test case.
23654         * modules/exclude-tests: Add new test.
23655
23656 2010-05-05  Eric Blake  <eblake@redhat.com>
23657
23658         verify: automate tests
23659         * modules/verify-tests: New module.
23660         * tests/test-verify.sh: New file.
23661         * tests/test-verify.c: Guard each negative test with a unique id.
23662         Also avoid warning about unused left hand of comma expressions.
23663
23664 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23665
23666         Further improvements to verify.h, suggested by Eric Blake.
23667         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23668         the GL_* versions, to avoid collision with OpenGL.
23669         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23670         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23671         than testing merely whether it's defined.
23672
23673         Modify verify.h to pacify gcc -Wredundant_decls.
23674         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23675         These use the prefix "GL_" since they're likely to be useful elsewhere.
23676         We may need to break them out into a different .h file.
23677         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23678         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23679         of verify_function__.
23680
23681 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23682
23683         Tests for module pwrite.
23684         * modules/pwrite-tests: New file.
23685         * tests/test-pwrite.sh: New file.
23686         * tests/test-pwrite.c: New file.
23687
23688         New module pwrite.
23689         * lib/unistd.in.h (pwrite): New declaration.
23690         * lib/pwrite.c: New file, from glibc with modifications.
23691         * m4/pwrite.m4: New file.
23692         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23693         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23694         REPLACE_PWRITE.
23695         * modules/pwrite: New file.
23696         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23697         REPLACE_PWRITE.
23698         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23699         * doc/posix-functions/pwrite.texi: Mention the new module.
23700
23701 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23702
23703         pread: Update documentation.
23704         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23705
23706 2010-05-04  Eric Blake  <eblake@redhat.com>
23707
23708         docs: update cygwin progress
23709         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23710         this bug.
23711         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23712         Added in cygwin 1.7.2.
23713         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23714         Likewise.
23715         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23716         Likewise.
23717         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23718         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23719         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23720         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23721         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23722         Mention nproc module.
23723         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23724         bug in cygwin 1.7.5 addition.
23725         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23726         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23727         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23728         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23729         1.7.5.
23730         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23731         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23732         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23733         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23734         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23735         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23736         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23737         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23738         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23739         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23740         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23741         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23742         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23743         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23744         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23745         Likewise.
23746         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23747         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23748         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23749         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23750         Likewise.
23751         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23752         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23753         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23754         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23755         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23756         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23757         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23758         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23759         Likewise.
23760         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23761         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23762         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23763         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23764         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23765         Likewise.
23766         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23767         Likewise.
23768         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23769         Likewise.
23770         * doc/glibc-functions/xdrrec_endofrecord.texi
23771         (xdrrec_endofrecord): Likewise.
23772         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23773         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23774         Likewise.
23775         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23776         Likewise.
23777
23778 2010-05-04  Jim Meyering  <meyering@redhat.com>
23779
23780         gendocs.sh: make its "-s FILE" option more useful
23781         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23782         $PACKAGE to reflect the probably-different basename of "FILE".
23783
23784 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23785
23786         bootstrap: don't ignore download_po_files failure
23787         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23788         failure.
23789
23790 2010-05-03  Jim Meyering  <meyering@redhat.com>
23791
23792         maint.mk: allow to pass options to gendocs.sh
23793         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23794         (gendocs_options_): New overridable variable.
23795
23796         gnu-web-doc-update: don't ignore configure or build failure
23797         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23798
23799         announce-gen: backslash-escape '@'s in --help output
23800         * build-aux/announce-gen: Fix syntax errors.
23801
23802         maint.mk, announce-gen: allow project-specific announcement mail headers
23803         * top/maint.mk (translation_project_): Define default.
23804         (announcement_Cc_, announcement_mail_headers_): Likewise.
23805         (announcement): Invoke announce-gen with new --mail-headers option.
23806         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23807
23808         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23809         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23810         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23811         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23812         line in the "err2" output file when running "make check" in verbose
23813         mode (i.e., with set -x enabled).
23814
23815 2010-05-03  Bruno Haible  <bruno@clisp.org>
23816
23817         wctob: Fix for weird platforms.
23818         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23819         argument value.
23820
23821 2010-05-03  Jim Meyering  <meyering@redhat.com>
23822
23823         maint.mk: prohibit unwarranted use of <strings.h>
23824         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23825         strings.h in a file that does not also use strcasecmp, strncasecmp,
23826         ffs or ffsll.
23827
23828         maint.mk: remove obsolete comments
23829         * top/maint.mk: Remove stale, commented-out rules.
23830
23831 2010-05-02  Bruno Haible  <bruno@clisp.org>
23832
23833         wcwidth: Declare also when it's aliased.
23834         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23835         macro.
23836
23837 2010-05-02  Bruno Haible  <bruno@clisp.org>
23838
23839         Fix regression from 2010-04-25.
23840         * gnulib-tool (func_modules_transitive_closure): Check the status of
23841         all modules, not only of the tests that are of the form foo-tests where
23842         foo is a module.
23843
23844 2010-05-02  Bruno Haible  <bruno@clisp.org>
23845
23846         wctob: Work around nasty Cygwin 1.7.2 bug.
23847         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23848         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23849
23850 2010-05-01  Bruno Haible  <bruno@clisp.org>
23851
23852         fpurge: Sharper test.
23853         * tests/test-fpurge.c (main): Add one more ftell check.
23854         * modules/fpurge-tests (Depends-on): Add ftell.
23855         Suggested by Eric Blake.
23856
23857 2010-05-01  Bruno Haible  <bruno@clisp.org>
23858
23859         ftello: Another test.
23860         * tests/test-ftello3.c: New file.
23861         * modules/ftello-tests (Files): Add it.
23862         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23863         MOSTLYCLEANFILES.
23864
23865         ftell: Another test.
23866         * tests/test-ftell3.c: New file.
23867         * modules/ftell-tests (Files): Add it.
23868         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23869         MOSTLYCLEANFILES.
23870
23871 2010-05-01  Bruno Haible  <bruno@clisp.org>
23872
23873         ftell, ftello: Work around Solaris bug.
23874         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23875         * lib/ftello.c: Include stdio-impl.h.
23876         (ftello): On Solaris, when _IOWRT is set, compute the result without
23877         looking at _IOREAD.
23878         * modules/ftello (Files): Add lib/stdio-impl.h.
23879         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23880         * doc/posix-functions/ftello.texi: Likewise.
23881         Reported by Eric Blake.
23882
23883 2010-05-01  Bruno Haible  <bruno@clisp.org>
23884
23885         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23886         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23887         the _IOWRT flag is also set.
23888
23889 2010-05-01  Bruno Haible  <bruno@clisp.org>
23890
23891         Fix doc about a HP-UX stdio bug.
23892         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23893         * doc/posix-functions/ftello.texi: Likewise.
23894
23895 2010-05-01  Bruno Haible  <bruno@clisp.org>
23896
23897         lseek test: Fix failure on Solaris.
23898         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23899         output.
23900
23901 2010-04-30  Jim Meyering  <meyering@redhat.com>
23902
23903         bootstrap: don't ignore failure to generate po*/Makevars
23904         * build-aux/bootstrap (with_gettext): Don't ignore failure
23905         to create po/Makevars or runtime-po/Makevars.
23906
23907 2010-04-29  Eric Blake  <eblake@redhat.com>
23908
23909         headers: relax license to LGPLv2+
23910         * modules/fcntl-h (License): Relax license.
23911         * modules/getopt-posix (License): Likewise.
23912         * modules/locale (License): Likewise.
23913         * modules/math (License): Likewise.
23914         * modules/pty (License): Likewise.
23915         * modules/sched (License): Likewise.
23916         * modules/search (License): Likewise.
23917         * modules/spawn (License): Likewise.
23918         * modules/stdarg (License): Likewise.
23919         * modules/sysexits (License): Likewise.
23920
23921 2010-04-29  Jim Meyering  <meyering@redhat.com>
23922
23923         inttypes: relax license to LGPLv2+
23924         * modules/inttypes (License): Relax license.
23925
23926 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23927
23928         * top/maint.mk (indent): Run twice to produce idempotent results.
23929
23930 2010-04-28  Bruno Haible  <bruno@clisp.org>
23931
23932         getdate: Generate getdate.c in the source directory.
23933         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23934         MOSTLYCLEANFILES.
23935         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23936
23937 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23938
23939         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23940         is not declared as a const *; avoid warnings in that case.
23941
23942 2010-04-28  Eric Blake  <eblake@redhat.com>
23943
23944         canonicalize-lgpl: avoid compiler warning
23945         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23946         declaration' / 'extraneous semicolon' warning with some compilers.
23947         Reported by Andreas Gruenbacher.
23948
23949 2010-04-28  Jim Meyering  <meyering@redhat.com>
23950
23951         init.sh: ensure a more reliable exit status when exiting via trap
23952         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23953         Inspired by patches from Dmitry V. Levin.
23954         Also trap on signal 3 (SIGQUIT).
23955
23956 2010-04-27  Bruno Haible  <bruno@clisp.org>
23957
23958         Update doc about utimes().
23959         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23960         'utimens' module.
23961         Reported by Andreas Gruenbacher <agruen@suse.de>.
23962
23963 2010-04-27  Eric Blake  <eblake@redhat.com>
23964
23965         full-read, full-write: relax license
23966         * modules/full-read (License): Drop to LGPLv2+.
23967         * modules/full-write (License): Likewise.
23968         * modules/safe-read (License): Likewise.
23969         * modules/safe-write (License): Likewise.
23970
23971         pthread: mention library for linking
23972         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23973
23974 2010-04-27  Jim Meyering  <meyering@redhat.com>
23975
23976         maint.mk: fix a bug introduced in last change
23977         * top/maint.mk (gl_assured_headers_): Now that all names are on
23978         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23979         is not anchored to end of word, it should be adequate.
23980
23981         maint.mk: avoid side-effect in latest syntax-check
23982         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23983         to run commands via $(shell...), and hence to incur cost only when
23984         the new rule is actually run.
23985
23986         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23987         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23988         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23989         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23990         (gl_assured_headers_, az_, AZ_): Define.
23991         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23992
23993 2010-04-26  Jim Meyering  <jim@meyering.net>
23994             Bruno Haible  <bruno@clisp.org>
23995
23996         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23997         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23998         Prompted by an exchange with Gilles Espinasse.
23999
24000 2010-04-26  Jim Meyering  <meyering@redhat.com>
24001
24002         git-version-gen: aesthetic tweak
24003         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24004         so that the command remains on a single line.
24005
24006 2010-04-26  Eric Blake  <eblake@redhat.com>
24007
24008         git-version-gen: allow use on EBCDIC hosts
24009         * build-aux/git-version-gen (dirty): Use literal rather than tying
24010         ourselves to ascii.
24011         Reported by Steve Goetze.
24012
24013 2010-04-25  Bruno Haible  <bruno@clisp.org>
24014
24015         netdb: Add support for GNULIB_POSIXCHECK.
24016         * lib/netdb.in.h: Include warn-on-use.h.
24017         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24018         functions are used when GNULIB_POSIXCHECK is defined and the
24019         getaddrinfo module is not in use.
24020         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24021         freeaddrinfo, gai_strerror, getnameinfo are declared.
24022         * modules/netdb (Depends-on): Add warn-on-use.
24023         (Makefile.am): Include warn-on-use.h in netdb.h.
24024
24025 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24026
24027         build: avoid "make check" failure without .git/ directory
24028         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24029         there is no .git/ directory.
24030
24031 2010-04-25  Bruno Haible  <bruno@clisp.org>
24032
24033         ptsname: Fix misuse of ttyname_r.
24034         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24035         of errno.
24036
24037 2010-04-25  Bruno Haible  <bruno@clisp.org>
24038
24039         ttyname_r: Make it work on Solaris 10.
24040         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24041         if the system function has the POSIX declaration. Test whether the
24042         function fails if the buffer is less than 128 bytes large.
24043         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24044         system's ttyname_r function. Provide a reasonably large buffer.
24045         * modules/ttyname_r (Depends-on): Add extensions.
24046         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24047
24048 2010-04-25  Bruno Haible  <bruno@clisp.org>
24049
24050         Use the 'extensions' module for some more functions on Solaris.
24051         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24052         module.
24053         * doc/posix-functions/ctime_r.texi: Likewise.
24054         * doc/posix-functions/getgrgid_r.texi: Likewise.
24055         * doc/posix-functions/getgrnam_r.texi: Likewise.
24056         * doc/posix-functions/getpwnam_r.texi: Likewise.
24057         * doc/posix-functions/getpwuid_r.texi: Likewise.
24058         * doc/posix-functions/readdir_r.texi: Likewise.
24059         * doc/posix-functions/sigwait.texi: Likewise.
24060         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24061         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24062
24063 2010-04-25  Bruno Haible  <bruno@clisp.org>
24064
24065         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24066         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24067         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24068         * lib/ttyname_r.c: Include <limits.h>.
24069         (ttyname_r): Define using the system's ttyname_r function, if it exists
24070         and not on Solaris.
24071         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24072         set.
24073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24074         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24075         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24076         Reported by Simon Josefsson.
24077
24078 2010-04-25  Bruno Haible  <bruno@clisp.org>
24079
24080         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24081         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24082         * doc/posix-functions/ctime_r.texi: Likewise.
24083         * doc/posix-functions/getgrgid_r.texi: Likewise.
24084         * doc/posix-functions/getgrnam_r.texi: Likewise.
24085         * doc/posix-functions/getlogin_r.texi: Likewise.
24086         * doc/posix-functions/getpwnam_r.texi: Likewise.
24087         * doc/posix-functions/getpwuid_r.texi: Likewise.
24088         * doc/posix-functions/readdir_r.texi: Likewise.
24089         * doc/posix-functions/sigwait.texi: Likewise.
24090         * doc/posix-functions/ttyname_r.texi: Likewise.
24091         Reported by Simon Josefsson.
24092
24093 2010-04-25  Bruno Haible  <bruno@clisp.org>
24094
24095         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24096         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24097         also to --create-testdir.
24098         (func_acceptable): Don't consider the status of *-tests modules here.
24099         (func_modules_transitive_closure): Consider it here, before including a
24100         test module.
24101         (func_import, func_create_testdir): Set inc_all_direct_tests,
24102         inc_all_indirect_tests.
24103         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24104         --create-testdir and --create-megatestdir.
24105
24106 2010-04-25  Bruno Haible  <bruno@clisp.org>
24107
24108         gnulib-tool: Add --without-*-tests options.
24109         * gnulib-tool (func_usage): Document the --without-*-tests options.
24110         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24111         excl_unportable_tests): New variables.
24112         Fail if they are specified with --import or --update.
24113         (func_acceptable): Respect the excl_*_tests variables.
24114         (func_import): Set the excl_*_tests variables to empty.
24115
24116 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24117             Bruno Haible  <bruno@clisp.org>
24118
24119         Work around a MacOS X 10.4 bug with openpty.
24120         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24121         * tests/test-openpty.c (main): Close the master side explicitly.
24122
24123 2010-04-25  Bruno Haible  <bruno@clisp.org>
24124
24125         strnlen: Fix a C++ test error on MacOS X and Solaris.
24126         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24127         the function is not declared.
24128         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24129         Simon Josefsson.
24130
24131 2010-04-24  Bruno Haible  <bruno@clisp.org>
24132
24133         Avoid a gcc warning.
24134         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24135         of correct type for %08lx directive.
24136         Reported by Eric Blake.
24137
24138 2010-04-24  Bruno Haible  <bruno@clisp.org>
24139
24140         vasnprintf: Correct errno value in case of out-of-memory.
24141         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24142         or sprintf. Use the errno value from SNPRINTF or sprintf.
24143         Reported by Ian Beckwith <ianb@erislabs.net>.
24144
24145 2010-04-24  Bruno Haible  <bruno@clisp.org>
24146
24147         ansi-c++-opt: Find correct compiler when cross-compiling.
24148         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24149         AC_CHECK_PROGS.
24150         Reported by Simon Josefsson.
24151
24152 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24153
24154         vc-list-files: Add support for subversion
24155         * build-aux/vc-list-files: Use "svn list" to generate the list of
24156         files controlled by subversion.
24157
24158 2010-04-23  Jim Meyering  <meyering@redhat.com>
24159
24160         vc-list-files tests: convert to use init.sh
24161         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24162         path_prepend_.
24163         Use Exit, not exit.
24164         Use skip_ rather than open coding it.
24165         Remove trap set-up and compare definitions.
24166         * tests/test-vc-list-files-git.sh: Likewise.
24167         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24168
24169 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24170
24171         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24172         backup files.
24173
24174 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24175
24176         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24177
24178 2010-04-20  Eric Blake  <eblake@redhat.com>
24179
24180         tests: be robust to ignored SIGPIPE
24181         * tests/test-select-in.sh: Consume all output.
24182         * tests/test-lseek.sh: Check correct exit status, while avoiding
24183         EPIPE.
24184
24185 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24186             Bruno Haible  <bruno@clisp.org>
24187
24188         visibility: Don't use -fvisibility if it leads to a warning.
24189         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24190         yes, don't pretend that visibility works if it leads to a warning.
24191         Reported by Mike Gran <spk121@yahoo.com>.
24192
24193 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24194
24195         * build-aux/bootstrap: Use "git -h" for testing for supported options
24196         instead of "git --help".  The short-form option only shows a summary,
24197         and doesn't layout the full man page.  Grep for the full option name
24198         in the summary, too.
24199
24200 2010-04-19  Bruno Haible  <bruno@clisp.org>
24201
24202         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24203         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24204         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24205         mention of RELOCATABLE_STRIP.
24206         Reported by Sylvain Beucler <beuc@beuc.net>.
24207
24208 2010-04-19  Bruno Haible  <bruno@clisp.org>
24209
24210         * lib/diffseq.h: Fix typo in comment.
24211         Reported by Eric Blake.
24212
24213 2010-04-19  Bruno Haible  <bruno@clisp.org>
24214
24215         ioctl: Move autoconf macro to a .m4 file.
24216         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24217         * modules/ioctl (Files): Add it.
24218         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24219         Reported by Ian Beckwith <ianb@erislabs.net>.
24220
24221 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24222             Bruno Haible  <bruno@clisp.org>
24223
24224         diffseq: Accommodate use-case with abstract arrays.
24225         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24226         is not defined.
24227         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24228         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24229
24230 2010-04-18  Bruno Haible  <bruno@clisp.org>
24231
24232         * doc/posix-headers/stdbool.texi: More precise wording.
24233
24234 2010-04-17  Jim Meyering  <meyering@redhat.com>
24235
24236         maint.mk: use gnu-style indentation in an embedded perl script
24237         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24238         Rename variable: s/two/last_two_bytes/
24239
24240 2010-04-16  Eric Blake  <eblake@redhat.com>
24241
24242         test-stdbool: skip test that fails with Solaris CC
24243         * tests/test-stdbool.c (f): Skip test that causes compilation
24244         error under buggy C++ compiler.
24245         * lib/stdbool.in.h: Document the limitation.
24246         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24247
24248         setenv: allow compilation with C++
24249         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24250         register keyword.
24251
24252         stdint: allow test to pass with C++
24253         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24254
24255         getopt: allow compilation with C++
24256         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24257         struct.
24258         * lib/getopt.c (_getopt_internal_r): Use correct type.
24259         Reported by Dagobert Michelson, via Joel E. Denny.
24260
24261 2010-04-16  Bruno Haible  <bruno@clisp.org>
24262
24263         Override netdb.h always.
24264         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24265         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24266         Reported by Ludovic Courtès <ludo@gnu.org>.
24267
24268 2010-04-15  Bruno Haible  <bruno@clisp.org>
24269
24270         openpty: Fix mistake from 2010-03-21.
24271         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24272         Reported by Simon Josefsson.
24273
24274 2010-04-15  Eric Blake  <eblake@redhat.com>
24275
24276         test-forkpty: fix expected signature
24277         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24278         Reported by Simon Josefsson.
24279
24280 2010-04-15  Jim Meyering  <meyering@redhat.com>
24281
24282         maint.mk: texinfo_suffix_re_: correct the default regexp
24283         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24284
24285         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24286         make it configurable via texinfo_suffix_re_.
24287
24288 2010-04-14  Eric Blake  <eblake@redhat.com>
24289
24290         strtok_r: relax license to LGPLv2+
24291         * modules/strtok_r (License): Relax license.
24292         Reported by Matthias Bolte.
24293
24294 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24295
24296         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24297         version 1.4.4 by default instead of requiring the libgcrypt
24298         version used during build.  This makes it possible to use the
24299         application with older but still binary compatible libgcrypt
24300         versions.
24301
24302 2010-04-13  Eric Blake  <eblake@redhat.com>
24303
24304         getopt-gnu: match recent glibc fixes and posix ruling
24305         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24306         '+' handling, when requesting extensions.
24307         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24308         'W;' handling.
24309         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24310         * doc/posix-functions/getopt.texi (getopt): Document this.
24311         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24312         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24313         Likewise.
24314
24315         getopt: merge bug fixes from glibc
24316         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24317         diagnostics.  Honor '+:' correctly.  Reject ';'.
24318
24319         getopt-posix: detect MacOS bug
24320         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24321         optind when missing a required argument.
24322         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24323         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24324         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24325         Likewise.
24326
24327         getopt-posix: avoid spurious failure on Solaris
24328         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24329         an indicator that setting optind=1 is sufficient for reset.
24330
24331         getopt-posix: avoid spurious failure on FreeBSD
24332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24333         in POSIX mode, since the m4 test uses it.
24334
24335         gnulib-tool: silence warning on BSD sh
24336         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24337
24338 2010-04-13  Jim Meyering  <meyering@redhat.com>
24339
24340         doc: users.txt: GNU patch now uses gnulib
24341         * users.txt: Add patch.
24342
24343 2010-04-12  Jim Meyering  <meyering@redhat.com>
24344
24345         maint.mk: generate more concise timing data for syntax-check rules
24346         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24347         " done" from each line that reports a syntax-check test duration.
24348
24349 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24350
24351         git-version-gen: use "git update-index..." rather than "git status"
24352         * build-aux/git-version-gen: Use git update-index --refresh, not
24353         "git status".  With some versions of git, "git status" would fail
24354         to update the index and result in an unwarranted "-dirty" suffix.
24355
24356 2010-04-11  Jim Meyering  <meyering@redhat.com>
24357
24358         openat: correct formatting (no semantic change)
24359         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24360         Suggested by Bruno Haible.
24361
24362 2010-04-11  Bruno Haible  <bruno@clisp.org>
24363
24364         Stricter declaration checking in testdirs.
24365         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24366         If for_tests is true, augment AM_CPPFLAGS to define
24367         GNULIB_STRICT_CHECKING.
24368         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24369         GNULIB_STRICT_CHECKING is defined, verify that the function is
24370         declared.
24371
24372 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24373             Bruno Haible  <bruno@clisp.org>
24374
24375         libunistring: Improve configure output.
24376         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24377         Don't say "consider installing GNU libunistring" when checking again
24378         with libiconv.
24379
24380 2010-04-11  Bruno Haible  <bruno@clisp.org>
24381
24382         libunistring: Correct value of $LTLIBUNISTRING.
24383         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24384         correct the value of $LTLIBUNISTRING.
24385
24386 2010-04-11  Bruno Haible  <bruno@clisp.org>
24387
24388         havelib: Add static libraries to LIBS in the right order.
24389         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24390         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24391
24392 2010-04-11  Bruno Haible  <bruno@clisp.org>
24393
24394         libunistring: Detect libunistring also when it depends on libiconv.
24395         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24396         the second AC_LIB_HAVE_LINKFLAGS invocation.
24397
24398 2010-04-11  James Youngman  <jay@gnu.org>
24399
24400         close-stream: declare local scalars to be "const"
24401         * lib/close-stream.c (close_stream): Make boolean variables const
24402         to document the fact that we set but do not change them.
24403
24404 2010-04-11  Bruno Haible  <bruno@clisp.org>
24405
24406         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24407
24408 2010-04-11  Jim Meyering  <meyering@redhat.com>
24409
24410         maint.mk: don't include dist-check.mk
24411         * top/maint.mk: Remove bogus include directive.
24412
24413         maint.mk: improve empty-line-at-EOF check
24414         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24415         solution, rather than tail+Perl-based one.  The latter would read
24416         a few kilobytes from the end of each file, and did not handle empty
24417         files properly.
24418
24419         maint.mk: print the elapsed time for each syntax-check rule
24420         * top/maint.mk (sc_m_rules_): Save start time in a file.
24421         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24422         (local-check): Interpose the .z rules
24423
24424 2010-04-11  Jim Meyering  <meyering@redhat.com>
24425
24426         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24427         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24428         empty file with one that ends in an empty line.
24429
24430 2010-04-10  Bruno Haible  <bruno@clisp.org>
24431
24432         mkdir: Make it work on mingw64.
24433         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24434         * lib/mkdir.c: Update comment.
24435         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24436
24437 2010-04-10  Bruno Haible  <bruno@clisp.org>
24438
24439         Don't override improved macro from newer autoconf.
24440         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24441         autoconf >= 2.62.
24442         Reported by Joel E. Denny <jdenny@clemson.edu>.
24443
24444 2010-04-10  Jim Meyering  <meyering@redhat.com>
24445
24446         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24447         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24448
24449         maint.mk: correct a diagnostic
24450         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24451         in diagnostic; now use $prohibit.
24452
24453 2010-04-10  Bruno Haible  <address@hidden>
24454
24455         fchownat: Fix a C++ test error on Solaris 8.
24456         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24457         the function does not exist.
24458
24459 2010-04-10  Bruno Haible  <bruno@clisp.org>
24460
24461         vasnprintf: Add more tests.
24462         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24463         (test_function): Test converting an invalid wide string.
24464
24465         vasnprintf: Correct handling of unconvertible wide string arguments.
24466         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24467         VASNPRINTF.
24468         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24469         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24470         smaller than the expected maximum need for the directive. Set errno to
24471         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24472         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24474         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24475         * modules/vasnprintf (Files): Add m4/printf.m4.
24476         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24477
24478 2010-04-10  Bruno Haible  <bruno@clisp.org>
24479
24480         vasnprintf: Fix crash in %ls directive.
24481         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24482         string is passed as argument to %ls, with no precision and no width.
24483         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24484
24485 2010-04-10  Bruno Haible  <bruno@clisp.org>
24486
24487         vasnprintf: Fix multiple test failures on mingw.
24488         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24489         _snprintf, or snwprintf, not _snwprintf.
24490
24491 2010-04-10  Bruno Haible  <bruno@clisp.org>
24492
24493         write: Fix a C++ test error on mingw.
24494         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24495
24496 2010-04-10  Bruno Haible  <bruno@clisp.org>
24497
24498         vasnprintf test: Reduce code duplication.
24499         * tests/test-vasnprintf.c (test_function): New function, extracted from
24500         test_vasnprintf.
24501         (test_vasnprintf, test_asnprintf): Invoke it.
24502
24503 2010-04-10  Bruno Haible  <bruno@clisp.org>
24504
24505         strnlen: Fix warning in C++ mode on MacOS X.
24506         * lib/string.in.h (strnlen): Use the modern idiom.
24507         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24508         defining strnlen as a macro already in <config.h>.
24509         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24510         REPLACE_STRNLEN.
24511         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24512         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24513
24514 2010-04-08  James Youngman  <jay@gnu.org>
24515
24516         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24517         the example.
24518
24519 2010-04-09  Jim Meyering  <meyering@redhat.com>
24520
24521         maint.mk: print better diagnostic when there is no $(_hv_file)
24522         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24523         announce that when $(_hv_file) (aka help-version) does not exist.
24524
24525         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24526         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24527         not try to interpret its random input bytes.  Jarno Rajahalme reported
24528         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24529         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24530         (mktempd_): Likewise, just in case.
24531
24532         ftruncate: add two years to projected module removal date: 2012
24533         * m4/ftruncate.m4: Adjust comments.
24534
24535         ftruncate: mark module as obsolete; even MinGW provides it, now
24536         * modules/ftruncate (Status): Obsolete.
24537         (Notice): Say that.
24538         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24539         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24540
24541 2010-04-08  Bruno Haible  <bruno@clisp.org>
24542
24543         Fix side effects from tests-related modules.
24544         * modules/dprintf-posix (Comment): New section.
24545         * modules/fprintf-posix (Comment): Likewise.
24546         * modules/obstack-printf-posix (Comment): Likewise.
24547         * modules/printf-posix (Comment): Likewise.
24548         * modules/snprintf-posix (Comment): Likewise.
24549         * modules/sprintf-posix (Comment): Likewise.
24550         * modules/vasnprintf-posix (Comment): Likewise.
24551         * modules/vasprintf-posix (Comment): Likewise.
24552         * modules/vdprintf-posix (Comment): Likewise.
24553         * modules/vfprintf-posix (Comment): Likewise.
24554         * modules/vprintf-posix (Comment): Likewise.
24555         * modules/vsnprintf-posix (Comment): Likewise.
24556         * modules/vsprintf-posix (Comment): Likewise.
24557         * modules/xprintf-posix (Comment): Likewise.
24558         * modules/xvasprintf-posix (Comment): Likewise.
24559         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24560         * modules/floorf-tests (Depends-on): Likewise.
24561         * modules/round-tests (Depends-on): Likewise.
24562         * modules/roundf-tests (Depends-on): Likewise.
24563         * modules/trunc-tests (Depends-on): Likewise.
24564         * modules/truncf-tests (Depends-on): Likewise.
24565         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24566         'fprintf-posix' module is not present.
24567         * tests/test-floorf2.c (check): Likewise.
24568         * tests/test-trunc2.c (check): Likewise.
24569         * tests/test-truncf2.c (check): Likewise.
24570         * tests/test-round2.c (equal): Likewise.
24571         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24572
24573 2010-04-07  Karl Berry  <karl@gnu.org>
24574
24575         * config/srclist.txt,
24576         * config/srclistvars.sh,
24577         * config/srclist-update: doc fixes.
24578
24579 2010-04-07  Jim Meyering  <meyering@redhat.com>
24580
24581         maint.mk: add a PATH crosschecking syntax-check rule
24582         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24583         Useful if you use a test like the one in help-version (coreutils,
24584         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24585         printed by prog --version.
24586
24587 2010-04-06  Bruno Haible  <bruno@clisp.org>
24588
24589         Fix link error on mingw.
24590         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24591         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24592
24593 2010-04-06  Bruno Haible  <bruno@clisp.org>
24594
24595         Assume rmdir exists.
24596         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24597
24598 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24599
24600         doc: update users.txt
24601         * users.txt: Add gcal.
24602
24603 2010-04-06  Jim Meyering  <meyering@redhat.com>
24604
24605         init.sh: simply unset TMPDIR rather than risking env -i
24606         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24607         although it probably works fine on all Unix-based systems, some
24608         systems (Cygwin?) cannot tolerate a totally cleared environment.
24609         Suggestion from Eric Blake.
24610
24611 2010-04-06  Jim Meyering  <meyering@redhat.com>
24612
24613         init.sh: portability fix: use env's POSIX-specified -i option not -u
24614         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24615         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24616
24617 2010-04-05  Bruno Haible  <bruno@clisp.org>
24618
24619         btowc: Work around Cygwin 1.7.2 bug.
24620         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24621         does not map NUL to 0.
24622         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24623
24624 2010-04-05  Bruno Haible  <bruno@clisp.org>
24625
24626         Make the multithread modules work on Cygwin 1.7.2.
24627         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24628         imported symbols can be declared weak, so that it returns "no" on
24629         Cygwin 1.7.2.
24630
24631 2010-04-05  Bruno Haible  <bruno@clisp.org>
24632
24633         Use the module 'strncat'.
24634         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24635
24636         Tests for module 'strncat'.
24637         * modules/strncat-tests: New file.
24638         * tests/test-strncat.c: New file.
24639
24640         New module 'strncat'.
24641         * lib/string.in.h (strncat): New declaration.
24642         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24643         * m4/strncat.m4: New file, based on m4/memchr.m4.
24644         * modules/strncat: New file.
24645         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24646         is declared.
24647         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24648         REPLACE_STRNCAT.
24649         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24650         REPLACE_STRNCAT.
24651         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24652         module.
24653         * tests/test-string-c++.cc: Check signature of strncat.
24654
24655 2010-04-05  Jim Meyering  <meyering@redhat.com>
24656
24657         xstrtoumax-tests: convert to use init.sh
24658         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24659         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24660         Use Exit, not exit.
24661         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24662
24663         xstrtoimax-tests: convert to use init.sh
24664         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24665         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24666         Use Exit, not exit.
24667         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24668
24669 2010-04-05  Bruno Haible  <bruno@clisp.org>
24670
24671         sys_socket: Avoid #define replacements in C++ mode.
24672         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24673         warning to the function if possible, rather than #defining the symbol
24674         to a dysfunctional alias.
24675
24676 2010-04-05  Bruno Haible  <bruno@clisp.org>
24677
24678         fseeko: Fix C++ test error on mingw.
24679         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24680         gl_FUNC_FSEEKO.
24681         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24682         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24683         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24684         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24685
24686 2010-04-05  Bruno Haible  <bruno@clisp.org>
24687
24688         duplocale: Improve test output.
24689         * tests/test-duplocale.c (main): Print reason for skipped test.
24690
24691 2010-04-05  Bruno Haible  <bruno@clisp.org>
24692
24693         Assume rmdir exists.
24694         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24695         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24696
24697 2010-04-05  Bruno Haible  <bruno@clisp.org>
24698
24699         Fix link error on Solaris 8 with cc.
24700         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24701
24702 2010-04-05  Bruno Haible  <bruno@clisp.org>
24703
24704         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24705         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24706
24707 2010-04-05  Bruno Haible  <bruno@clisp.org>
24708
24709         vasprintf: Update documentation.
24710         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24711
24712 2010-04-05  Bruno Haible  <bruno@clisp.org>
24713
24714         ptsname: Improve test.
24715         * tests/test-ptsname.c (main): Also try the various master names of BSD
24716         systems.
24717
24718 2010-04-05  Bruno Haible  <bruno@clisp.org>
24719
24720         memchr: Avoid a possible C++ test error.
24721         * lib/string.in.h (memchr): Provide declaration if function is missing.
24722         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24723         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24724         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24725         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24726
24727 2010-04-05  Bruno Haible  <bruno@clisp.org>
24728
24729         strtok_r: Improve idiom.
24730         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24731         AC_LIBOBJ is used.
24732
24733 2010-04-05  Bruno Haible  <bruno@clisp.org>
24734
24735         strdup: Improve idiom.
24736         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24737         AC_LIBOBJ is used.
24738         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24739         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24740         when AC_LIBOBJ is used.
24741
24742 2010-04-05  Bruno Haible  <bruno@clisp.org>
24743
24744         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24745         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24746         don't set REPLACE_MBSINIT to 1.
24747         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24748         don't set REPLACE_MBRTOWC to 1.
24749         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24750         exist, don't set REPLACE_MBSRTOWCS to 1.
24751         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24752         exist, don't set REPLACE_MBSNRTOWCS to 1.
24753         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24754         don't set REPLACE_WCRTOMB to 1.
24755         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24756         exist, don't set REPLACE_WCSRTOMBS to 1.
24757         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24758         exist, don't set REPLACE_WCSNRTOMBS to 1.
24759
24760 2010-04-05  Bruno Haible  <bruno@clisp.org>
24761
24762         ldexpl: Improve idiom.
24763         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24764         make sure to set HAVE_DECL_LDEXPL to 0.
24765
24766 2010-04-05  Jim Meyering  <meyering@redhat.com>
24767
24768         xstrtol-tests: convert to use init.sh
24769         * modules/xstrtol-tests (Files): Add tests/init.sh.
24770         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24771         Use Exit, not exit.
24772         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24773
24774         atexit-tests: convert to use init.sh
24775         * modules/atexit-tests (Files): Add tests/init.sh.
24776         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24777         Use Exit, not exit.
24778         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24779
24780         init.sh: fix typo
24781         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24782
24783         init.sh: make it easier for a test script to write to the tty, ...
24784         when using automake's parallel-tests mode.
24785         * tests/init.sh (stderr_fileno_): Define overridable variable.
24786         (warn_): New function, to use it.
24787         (fail_, skip_, framework_failure_): Use warn_.
24788
24789 2010-04-04  Bruno Haible  <bruno@clisp.org>
24790
24791         btowc: Avoid warning.
24792         * lib/btowc.c: Include <stdlib.h>.
24793         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24794
24795 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24796             Bruno Haible  <bruno@clisp.org>
24797
24798         wchar: Port to NetBSD 1.5.
24799         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24800         * lib/wctype.in.h (WEOF): Likewise.
24801
24802 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24803             Bruno Haible  <bruno@clisp.org>
24804
24805         Port extended stdio to NetBSD 1.5.
24806         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24807         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24808         older.
24809
24810 2010-04-04  Bruno Haible  <bruno@clisp.org>
24811
24812         string: Remove unused substitution.
24813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24814         HAVE_DECL_STRERROR.
24815         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24816
24817 2010-04-04  Bruno Haible  <bruno@clisp.org>
24818
24819         strtod: Avoid a possible C++ test error.
24820         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24821         set REPLACE_STRTOD.
24822
24823 2010-04-04  Bruno Haible  <bruno@clisp.org>
24824
24825         strerror: Update documentation.
24826         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24827
24828 2010-04-04  Bruno Haible  <bruno@clisp.org>
24829
24830         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24831         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24832         _GL_CXXALIAS_SYS_CAST.
24833
24834 2010-04-04  Bruno Haible  <bruno@clisp.org>
24835
24836         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24837         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24838         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24839         REPLACE_FREXPL to 1.
24840         * doc/posix-functions/frexpl.texi: Update documentation.
24841
24842 2010-04-04  Bruno Haible  <bruno@clisp.org>
24843
24844         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24845         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24846
24847 2010-04-04  Bruno Haible  <bruno@clisp.org>
24848
24849         Implement nanosleep for native Windows.
24850         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24851
24852 2010-04-04  Bruno Haible  <bruno@clisp.org>
24853
24854         math: Fix some C++ test errors on Solaris 8.
24855         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24856
24857 2010-04-04  Bruno Haible  <bruno@clisp.org>
24858
24859         math: Fix some C++ test errors on Cygwin.
24860         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24861         truncl): Provide declaration if the system does not have it.
24862         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24863         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24864         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24865         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24866         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24867         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24868         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24869         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24870         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24871         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24872         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24873         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24874         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24875         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24876         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24877         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24879         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24880         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24881         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24882         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24883         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24884
24885 2010-04-04  Bruno Haible  <bruno@clisp.org>
24886
24887         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24888         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24889         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24890         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24891         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24892         * m4/isinf.m4 (gl_ISINF): Likewise.
24893         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24894
24895 2010-04-04  Bruno Haible  <bruno@clisp.org>
24896
24897         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24898         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24899
24900 2010-04-04  Bruno Haible  <bruno@clisp.org>
24901
24902         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24903         * modules/tmpfile (configure.ac): Update.
24904
24905         tmpfile: Fix C++ test error on mingw.
24906         * lib/stdio.in.h (tmpfile): New declaration.
24907         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24908         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24909         * modules/tmpfile (Depends-on): Add stdio.
24910         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24911         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24912         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24913         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24914         REPLACE_TMPFILE.
24915         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24916
24917 2010-04-04  Bruno Haible  <bruno@clisp.org>
24918
24919         ioctl: Fix C++ test error on mingw.
24920         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24921         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24922         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24923
24924 2010-04-03  Bruno Haible  <bruno@clisp.org>
24925
24926         wcwidth: Fix C++ test error on mingw.
24927         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24929         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24930
24931 2010-04-03  Bruno Haible  <bruno@clisp.org>
24932
24933         nanosleep: Fix C++ test error on mingw.
24934         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24935         * lib/time.in.h (nanosleep): Use modern idiom.
24936         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24937         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24938         REPLACE_NANOSLEEP to 1.
24939         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24940         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24941
24942 2010-04-03  Bruno Haible  <bruno@clisp.org>
24943
24944         strptime: Fix C++ test error on mingw.
24945         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24946         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24947         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24948         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24949         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24950         not REPLACE_STRPTIME.
24951         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24952         REPLACE_STRPTIME.
24953
24954 2010-04-03  Bruno Haible  <bruno@clisp.org>
24955
24956         timegm: Fix C++ test error on mingw.
24957         * lib/time.in.h (timegm): Use modern idiom.
24958         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24959         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24960         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24961         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24962
24963 2010-04-03  Bruno Haible  <bruno@clisp.org>
24964
24965         timegm: Assume declaration if function exists.
24966         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24967         if it exists. Don't clobber ac_cv_func_timegm.
24968
24969 2010-04-03  Bruno Haible  <bruno@clisp.org>
24970
24971         time_r: Fix C++ test error on mingw.
24972         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24973         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24974         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24975         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24976         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24977
24978 2010-04-03  Bruno Haible  <bruno@clisp.org>
24979
24980         time_r: Minor updates.
24981         * modules/time_r (Description): Mention the provided functions.
24982         * lib/time_r.c: Don't include <string.h>.
24983         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24984         * doc/posix-functions/localtime_r.texi: Likewise.
24985
24986 2010-04-03  Bruno Haible  <bruno@clisp.org>
24987
24988         time: Fix regression introduced on 2010-03-08.
24989         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24990         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24991
24992 2010-04-03  Jim Meyering  <meyering@redhat.com>
24993
24994         maint.mk: don't silently disable project-specific syntax-check rules
24995         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24996         that they need to convert their project-specific syntax-check rules
24997         to use the new _sc_search_regexp.
24998
24999 2010-04-03  Bruno Haible  <bruno@clisp.org>
25000
25001         fchdir: Fix regression introduced on 2010-03-08.
25002         * lib/unistd.in.h (fchdir): Fix declaration.
25003         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25005         REPLACE_FCHDIR.
25006         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25007         REPLACE_FCHDIR.
25008
25009 2010-04-03  Bruno Haible  <bruno@clisp.org>
25010
25011         getpagesize: Fix C++ test error on mingw.
25012         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25013         system does not declare the function.
25014         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25015         declared.
25016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25017         HAVE_DECL_GETPAGESIZE.
25018         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25019
25020 2010-04-03  Bruno Haible  <bruno@clisp.org>
25021
25022         stdio: Make C++ tests work on mingw.
25023         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25024         does not declare the function.
25025
25026 2010-04-03  Bruno Haible  <bruno@clisp.org>
25027
25028         ftello: Fix C++ test error on mingw.
25029         * lib/stdio.in.h (ftello): Use modern idiom.
25030         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25031         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25032         is missing and that it needs to be replaced.
25033         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25035         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25036
25037 2010-04-03  Bruno Haible  <bruno@clisp.org>
25038
25039         fseeko: Fix C++ test error on mingw.
25040         * lib/stdio.in.h (fseeko): Use modern idiom.
25041         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25042         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25043         is missing and that it needs to be replaced.
25044         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25046         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25047
25048 2010-04-03  Bruno Haible  <bruno@clisp.org>
25049
25050         mkstemp: Fix C++ test error on mingw.
25051         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25052         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25053         function is missing and that it needs to be replaced.
25054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25055         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25056
25057 2010-04-03  Bruno Haible  <bruno@clisp.org>
25058
25059         stpncpy: Fix C++ test error on mingw.
25060         * lib/string.in.h (stpncpy): Use modern idiom.
25061         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25062         function is missing and that it needs to be replaced.
25063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25064         REPLACE_STPNCPY.
25065         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25066
25067 2010-04-03  Bruno Haible  <bruno@clisp.org>
25068
25069         sys_stat: Fix C++ test error on mingw.
25070         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25071         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25072
25073 2010-04-03  Bruno Haible  <bruno@clisp.org>
25074
25075         pty: Update doc.
25076         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25077
25078 2010-04-03  Bruno Haible  <bruno@clisp.org>
25079
25080         unistd: Fix C++ test error on mingw.
25081         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25082
25083 2010-04-03  Bruno Haible  <bruno@clisp.org>
25084
25085         Update doc regarding mingw.
25086         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25087         * doc/glibc-functions/login_tty.texi: Likewise.
25088         * doc/glibc-functions/forkpty.texi: Likewise.
25089
25090 2010-04-03  Bruno Haible  <bruno@clisp.org>
25091
25092         stdlib: Avoid compilation failure of c-strtold on mingw.
25093         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25094
25095 2010-04-03  Bruno Haible  <bruno@clisp.org>
25096
25097         locale: Make C++ tests work on Cygwin and mingw.
25098         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25099         cannot provide the function.
25100         Reported by Simon Josefsson.
25101
25102 2010-04-03  Bruno Haible  <bruno@clisp.org>
25103
25104         localename: Port to MacOS X 10.6.
25105         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25106         memory layout of the locales in MacOS X 10.6 as well.
25107         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25108
25109 2010-04-02  Bruno Haible  <bruno@clisp.org>
25110
25111         gnulib-tool: Ensure that long-running tests are executed last.
25112         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25113         running tests after the one for the other tests.
25114
25115 2010-04-02  Bruno Haible  <bruno@clisp.org>
25116
25117         gnulib-tool: Ensure the tests in the main directory are executed first.
25118         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25119         start with the current directory.
25120
25121 2010-04-02  Bruno Haible  <bruno@clisp.org>
25122
25123         Tests for module 'havelib', moved here from GNU gettext.
25124         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25125         modifications.
25126         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25127         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25128         with modifications.
25129         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25130         modifications.
25131         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25132         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25133         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25134         with modifications.
25135         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25136         with modifications.
25137         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25138         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25139         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25140         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25141         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25142         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25143         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25144         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25145         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25146         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25147         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25148         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25149         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25150         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25151         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25152         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25153         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25154         with modifications.
25155         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25156         with modifications.
25157         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25158         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25159         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25160         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25161         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25162         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25163         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25164         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25165         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25166         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25167         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25168         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25169         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25170         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25171         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25172         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25173         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25174         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25175         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25176         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25177         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25178         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25179         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25180         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25181         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25182         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25183         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25184         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25185         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25186         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25187         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25188         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25189         * tests/havelib/rpathx/rpathx.c: New file, from
25190         gettext/autoconf-lib-link.
25191         * tests/havelib/rpathx/Makefile.am: New file, from
25192         gettext/autoconf-lib-link.
25193         * tests/havelib/rpathx/configure.ac: New file, from
25194         gettext/autoconf-lib-link with modifications.
25195         * tests/havelib/rpathy/rpathy.c: New file, from
25196         gettext/autoconf-lib-link.
25197         * tests/havelib/rpathy/Makefile.am: New file, from
25198         gettext/autoconf-lib-link.
25199         * tests/havelib/rpathy/configure.ac: New file, from
25200         gettext/autoconf-lib-link with modifications.
25201         * tests/havelib/rpathz/rpathz.c: New file, from
25202         gettext/autoconf-lib-link.
25203         * tests/havelib/rpathz/Makefile.am: New file, from
25204         gettext/autoconf-lib-link.
25205         * tests/havelib/rpathz/configure.ac: New file, from
25206         gettext/autoconf-lib-link with modifications.
25207         * tests/havelib/rpathlx/usex.c: New file, from
25208         gettext/autoconf-lib-link.
25209         * tests/havelib/rpathlx/Makefile.am: New file, from
25210         gettext/autoconf-lib-link.
25211         * tests/havelib/rpathlx/configure.ac: New file, from
25212         gettext/autoconf-lib-link with modifications.
25213         * tests/havelib/rpathly/usey.c: New file, from
25214         gettext/autoconf-lib-link.
25215         * tests/havelib/rpathly/Makefile.am: New file, from
25216         gettext/autoconf-lib-link.
25217         * tests/havelib/rpathly/configure.ac: New file, from
25218         gettext/autoconf-lib-link with modifications.
25219         * tests/havelib/rpathlz/usez.c: New file, from
25220         gettext/autoconf-lib-link.
25221         * tests/havelib/rpathlz/Makefile.am: New file, from
25222         gettext/autoconf-lib-link.
25223         * tests/havelib/rpathlz/configure.ac: New file, from
25224         gettext/autoconf-lib-link with modifications.
25225         * tests/havelib/rpathlyx/usey.c: New file, from
25226         gettext/autoconf-lib-link.
25227         * tests/havelib/rpathlyx/Makefile.am: New file, from
25228         gettext/autoconf-lib-link.
25229         * tests/havelib/rpathlyx/configure.ac: New file, from
25230         gettext/autoconf-lib-link with modifications.
25231         * tests/havelib/rpathlzyx/usez.c: New file, from
25232         gettext/autoconf-lib-link.
25233         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25234         gettext/autoconf-lib-link.
25235         * tests/havelib/rpathlzyx/configure.ac: New file, from
25236         gettext/autoconf-lib-link with modifications.
25237         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25238         with modifications.
25239
25240 2010-04-02  Bruno Haible  <bruno@clisp.org>
25241
25242         gnulib-tool: Create distributed built sources also for the tests.
25243         * gnulib-tool (func_create_testdir): Also generate distributed built
25244         sources in the tests directory.
25245
25246 2010-04-02  Bruno Haible  <bruno@clisp.org>
25247
25248         gnulib-tool: Obey user's environment variables.
25249         * gnulib-tool (func_create_testdir): When creating built sources,
25250         respect the environment variables for autoconf, automake, etc. given by
25251         the user.
25252
25253 2010-04-02  Bruno Haible  <bruno@clisp.org>
25254
25255         gnulib-tool: Provide the value of --m4-base to modules.
25256         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25257         of gl_m4_base.
25258
25259 2010-04-02  Eric Blake  <eblake@redhat.com>
25260
25261         maint.mk: fix some fallout
25262         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25263         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25264
25265 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25266
25267         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25268         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25269         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25270         (sc_cast_of_x_alloc_return_value): Likewise.
25271         (sc_cast_of_alloca_return_value): Likewise.
25272         (sc_space_tab): Likewise.
25273         (sc_prohibit_atoi_atof): Likewise.
25274         (sc_prohibit_magic_number_exit): Likewise.
25275         (sc_error_exit_success): Likewise.
25276         (sc_file_system): Likewise.
25277         (sc_prohibit_have_config_h): Likewise.
25278         (sc_require_config_h): Likewise.
25279         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25280         (sc_obsolete_symbols): Likewise.
25281         (sc_changelog): Likewise.
25282         (sc_program_name): Likewise.
25283         (sc_the_the): Likewise.
25284         (sc_trailing_blank): Likewise.
25285         (sc_two_space_separator_in_usage): Likewise.
25286         (sc_useless_cpp_parens): Likewise.
25287         (sc_GPL_version): Likewise.
25288         (sc_GFDL_version): Likewise.
25289         (sc_texinfo_acronym): Likewise.
25290         (sc_prohibit_cvs_keyword): Likewise.
25291         (sc_prohibit_stat_st_blocks): Likewise.
25292         (sc_prohibit_S_IS_definition): Likewise.
25293         (sc_redundant_const): Likewise.
25294         (sc_makefile_TAB_only_indentation): Likewise.
25295         (sc_m4_quote_check): Likewise.
25296         (sc_makefile_path_separator_check): Likewise.
25297         (sc_copyright_check): Likewise.
25298         (sc_Wundef_boolean): Likewise.
25299         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25300
25301         maint.mk: match 0 or more whitespace-before-function-call '('
25302         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25303         that have zero or two-and-more spaces between the function name
25304         and the open parenthesis.
25305         (sc_error_message_warn_fatal): Likewise.
25306         (sc_error_message_uppercase): Likewise.
25307         (sc_error_message_period): Likewise.
25308
25309 2010-03-31  Eric Blake  <eblake@redhat.com>
25310
25311         maint.mk: check for [ as well as test
25312         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25313         Based on a libvirt report by Matthias Bolte.
25314
25315         gnumakefile: don't squelch _version output
25316         * top/GNUmakefile (_version): Create one-shot dependency rather
25317         than using $(shell) when version must be regenerated.
25318         (_autoreconf): Run verbosely, by default.
25319
25320         sys_time: avoid compiler warnings
25321         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25322         unconditional, fixing regression from 2010-03-29.
25323         Reported by Simon Josefsson.
25324
25325 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25326
25327         maint.mk: s/_header_without_use/_sc_header_without_use/
25328         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25329         (sc_prohibit_assert_without_use): Use the new name.
25330         (sc_prohibit_close_stream_without_use): Likewise.
25331         (sc_prohibit_getopt_without_use): Likewise.
25332         (sc_prohibit_quotearg_without_use): Likewise.
25333         (sc_prohibit_quote_without_use): Likewise.
25334         (sc_prohibit_long_options_without_use): Likewise.
25335         (sc_prohibit_inttostr_without_use): Likewise.
25336         (sc_prohibit_ignore_value_without_use): Likewise.
25337         (sc_prohibit_error_without_use): Likewise.
25338         (sc_prohibit_xalloc_without_use): Likewise.
25339         (sc_prohibit_hash_without_use): Likewise.
25340         (sc_prohibit_hash_pjw_without_use): Likewise.
25341         (sc_prohibit_safe_read_without_use): Likewise.
25342         (sc_prohibit_argmatch_without_use): Likewise.
25343         (sc_prohibit_canonicalize_without_use): Likewise.
25344         (sc_prohibit_root_dev_ino_without_use): Likewise.
25345         (sc_prohibit_openat_without_use): Likewise.
25346         (sc_prohibit_c_ctype_without_use): Likewise.
25347         (sc_prohibit_signal_without_use): Likewise.
25348         (sc_prohibit_intprops_without_use): Likewise.
25349
25350 2010-03-30  Eric Blake  <eblake@redhat.com>
25351
25352         maint: improve module indicators
25353         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25354         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25355         columns, and avoid extra macro expansion.
25356
25357         fdopendir: work around FreeBSD bug
25358         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25359         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25360         * modules/dirent (Makefile.am): Substitute it.
25361         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25362         declaration.
25363         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25364         fix.
25365         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25366
25367 2010-03-29  Bruno Haible  <bruno@clisp.org>
25368
25369         Emit #pragma system_header after the inclusion guard, not before.
25370         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25371         guard that spans the entire file, not before. This enables an
25372         optimization in GCC's preprocessor.
25373         * lib/ctype.in.h: Likewise.
25374         * lib/dirent.in.h: Likewise.
25375         * lib/errno.in.h: Likewise.
25376         * lib/float.in.h: Likewise.
25377         * lib/getopt.in.h: Likewise.
25378         * lib/iconv.in.h: Likewise.
25379         * lib/langinfo.in.h: Likewise.
25380         * lib/locale.in.h: Likewise.
25381         * lib/math.in.h: Likewise.
25382         * lib/netdb.in.h: Likewise.
25383         * lib/netinet_in.in.h: Likewise.
25384         * lib/pty.in.h: Likewise.
25385         * lib/sched.in.h: Likewise.
25386         * lib/se-selinux.in.h: Likewise.
25387         * lib/search.in.h: Likewise.
25388         * lib/spawn.in.h: Likewise.
25389         * lib/stdarg.in.h: Likewise.
25390         * lib/stdint.in.h: Likewise.
25391         * lib/string.in.h: Likewise.
25392         * lib/strings.in.h: Likewise.
25393         * lib/sys_file.in.h: Likewise.
25394         * lib/sys_ioctl.in.h: Likewise.
25395         * lib/sys_time.in.h: Likewise.
25396         * lib/sys_times.in.h: Likewise.
25397         * lib/sys_utsname.in.h: Likewise.
25398         * lib/sys_wait.in.h: Likewise.
25399         * lib/sysexits.in.h: Likewise.
25400         * lib/wctype.in.h: Likewise.
25401
25402 2010-03-28  James Youngman  <jay@gnu.org>
25403
25404         save-cwd: don't leak a file descriptor when the caller execs.
25405         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25406         saved file descriptor.
25407         * modules/save-cwd (Depends-on): Depend on cloexec.
25408
25409 2010-03-29  Bruno Haible  <bruno@clisp.org>
25410
25411         Remove vestiges of fts-lgpl module.
25412         * lib/fts_.h: Assume GNULIB_FTS is 1.
25413         * lib/fts.c: Likewise.
25414         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25415
25416 2010-03-28  Bruno Haible  <bruno@clisp.org>
25417
25418         Fix definition of tests witness macro.
25419         * gnulib-tool (func_import): Fix definition of witness macro.
25420
25421 2010-03-28  Bruno Haible  <bruno@clisp.org>
25422
25423         Fix ioctl's protoype on glibc systems.
25424         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25425         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25426         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25427         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25428         signature. If not, arrange to replace the ioctl function.
25429         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25430         REPLACE_IOCTL.
25431         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25432         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25433         Reported by Ludovic Courtès <ludo@gnu.org>.
25434
25435 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25436
25437         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25438         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25439         made it so grep -r --include=GLOB* ... did not work.
25440
25441 2010-03-26  Jim Meyering  <meyering@redhat.com>
25442             Eric Blake  <eblake@redhat.com>
25443
25444         maint.mk: prohibit use of test's -o and -a operators
25445         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25446
25447 2010-03-28  Bruno Haible  <bruno@clisp.org>
25448
25449         Remove unused GNULIB_XYZ macro definitions.
25450         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25451         invocation.
25452
25453 2010-03-28  Bruno Haible  <bruno@clisp.org>
25454
25455         Mark privileged tests modules.
25456         * modules/idpriv-drop-tests (Status): New section.
25457         * modules/idpriv-droptemp-tests (Status): New section.
25458
25459 2010-03-28  Bruno Haible  <bruno@clisp.org>
25460
25461         Split C++ tests into separate tests modules.
25462         * modules/dirent-c++-tests: New file, extracted from
25463         modules/dirent-tests.
25464         * modules/dirent-tests: Depend on it.
25465         * modules/fcntl-h-c++-tests: New file, extracted from
25466         modules/fcntl-h-tests.
25467         * modules/fcntl-h-tests: Depend on it.
25468         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25469         * modules/glob-tests: Depend on it.
25470         * modules/iconv-h-c++-tests: New file, extracted from
25471         modules/iconv-h-tests.
25472         * modules/iconv-h-tests: Depend on it.
25473         * modules/langinfo-c++-tests: New file, extracted from
25474         modules/langinfo-tests.
25475         * modules/langinfo-tests: Depend on it.
25476         * modules/locale-c++-tests: New file, extracted from
25477         modules/locale-tests.
25478         * modules/locale-tests: Depend on it.
25479         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25480         * modules/math-tests: Depend on it.
25481         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25482         * modules/pty-tests: Depend on it.
25483         * modules/search-c++-tests: New file, extracted from
25484         modules/search-tests.
25485         * modules/search-tests: Depend on it.
25486         * modules/signal-c++-tests: New file, extracted from
25487         modules/signal-tests.
25488         * modules/signal-tests: Depend on it.
25489         * modules/spawn-c++-tests: New file, extracted from
25490         modules/spawn-tests.
25491         * modules/spawn-tests: Depend on it.
25492         * modules/stdio-c++-tests: New file, extracted from
25493         modules/stdio-tests.
25494         * modules/stdio-tests: Depend on it.
25495         * modules/stdlib-c++-tests: New file, extracted from
25496         modules/stdlib-tests.
25497         * modules/stdlib-tests: Depend on it.
25498         * modules/string-c++-tests: New file, extracted from
25499         modules/string-tests.
25500         * modules/string-tests: Depend on it.
25501         * modules/sys_ioctl-c++-tests: New file, extracted from
25502         modules/sys_ioctl-tests.
25503         * modules/sys_ioctl-tests: Depend on it.
25504         * modules/sys_select-c++-tests: New file, extracted from
25505         modules/sys_select-tests.
25506         * modules/sys_select-tests: Depend on it.
25507         * modules/sys_socket-c++-tests: New file, extracted from
25508         modules/sys_socket-tests.
25509         * modules/sys_socket-tests: Depend on it.
25510         * modules/sys_stat-c++-tests: New file, extracted from
25511         modules/sys_stat-tests.
25512         * modules/sys_stat-tests: Depend on it.
25513         * modules/sys_time-c++-tests: New file, extracted from
25514         modules/sys_time-tests.
25515         * modules/sys_time-tests: Depend on it.
25516         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25517         * modules/time-tests: Depend on it.
25518         * modules/unistd-c++-tests: New file, extracted from
25519         modules/unistd-tests.
25520         * modules/unistd-tests: Depend on it.
25521         * modules/wchar-c++-tests: New file, extracted from
25522         modules/wchar-tests.
25523         * modules/wchar-tests: Depend on it.
25524         * modules/wctype-c++-tests: New file, extracted from
25525         modules/wctype-tests.
25526         * modules/wctype-tests: Depend on it.
25527         Reported by Simon Josefsson.
25528
25529 2010-03-28  Bruno Haible  <bruno@clisp.org>
25530
25531         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25532         * gnulib-tool (func_exists_module): New function, extracted from
25533         func_verify_module.
25534         (func_verify_module): Use it.
25535         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25536         'foo' only if 'foo' exists.
25537         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25538         module.
25539
25540 2010-03-28  Bruno Haible  <bruno@clisp.org>
25541
25542         gnulib-tool: Add support for special categories of tests.
25543         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25544         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25545         (func_usage): Document them.
25546         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25547         inc_unportable_tests, inc_all_tests): New variables.
25548         (func_acceptable): Consider these variables.
25549         (func_modules_transitive_closure): Make it work when the 'Status' field
25550         consists of multiple words.
25551         (func_import): Store and restore the values of inc_cxx_tests,
25552         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25553         inc_all_tests in gnulib-comp.m4.
25554         (func_create_testdir): Set inc_all_tests to true.
25555         * doc/gnulib.texi (Extra tests modules): New section.
25556         Suggested by Jim Meyering.
25557
25558 2010-03-28  Bruno Haible  <bruno@clisp.org>
25559
25560         ansi-c++-opt: Allow turning off the C++ build by default.
25561         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25562         gl_CXX_CHOICE_DEFAULT_NO is defined.
25563         Requested by Eric Blake.
25564
25565 2010-03-28  Bruno Haible  <bruno@clisp.org>
25566
25567         unistd: Avoid #define replacements in C++ mode.
25568         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25569         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25570         setsockopt, shutdown, select): In C++, attach a warning to the function
25571         if possible, rather than #defining the symbol to a dysfunctional alias.
25572         Reported by John W. Eaton <jwe@gnu.org>.
25573
25574 2010-03-28  Bruno Haible  <bruno@clisp.org>
25575
25576         Fix link errors on mingw.
25577         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25578         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25579         $(LIBSOCKET).
25580         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25581         $(LIBSOCKET).
25582
25583 2010-03-28  Bruno Haible  <bruno@clisp.org>
25584             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25585
25586         lib-ignore: Determine different options for different compilers.
25587         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25588         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25589         Add comments.
25590         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25591         * NEWS: Mention the change.
25592
25593 2010-03-27  Bruno Haible  <bruno@clisp.org>
25594
25595         Remove unused GNULIB_XYZ macro definitions.
25596         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25597         * modules/fseek (configure.ac): Likewise.
25598         * modules/ioctl (configure.ac): Likewise.
25599         * modules/open (configure.ac): Likewise.
25600         * modules/stdlib-safer (configure.ac): Likewise.
25601
25602 2010-03-27  Bruno Haible  <bruno@clisp.org>
25603
25604         Add a remark about certain modules.
25605         * modules/malloc (Comment): New section.
25606         * modules/realloc (Comment): Likewise.
25607         * modules/sigpipe (Comment): Likewise.
25608
25609 2010-03-27  Bruno Haible  <bruno@clisp.org>
25610
25611         Resolve conflict between the two kinds of module indicators.
25612         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25613         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25614         * modules/canonicalize (configure.ac): Invoke
25615         gl_MODULE_INDICATOR_FOR_TESTS.
25616         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25617         GNULIB_XYZ.
25618         * tests/test-dirent-c++.cc: Likewise.
25619         * tests/test-dirent-safer.c: Likewise.
25620         * tests/test-dup2.c: Likewise.
25621         * tests/test-fchdir.c: Likewise.
25622         * tests/test-fcntl-h-c++.cc: Likewise.
25623         * tests/test-getopt.c: Likewise.
25624         * tests/test-getopt.h: Likewise.
25625         * tests/test-langinfo-c++.cc: Likewise.
25626         * tests/test-locale-c++.cc: Likewise.
25627         * tests/test-math-c++.cc: Likewise.
25628         * tests/test-pty-c++.cc: Likewise.
25629         * tests/test-search-c++.cc: Likewise.
25630         * tests/test-signal-c++.cc: Likewise.
25631         * tests/test-spawn-c++.cc: Likewise.
25632         * tests/test-stdio-c++.cc: Likewise.
25633         * tests/test-stdlib-c++.cc: Likewise.
25634         * tests/test-string-c++.cc: Likewise.
25635         * tests/test-sys_ioctl-c++.cc: Likewise.
25636         * tests/test-sys_select-c++.cc: Likewise.
25637         * tests/test-sys_socket-c++.cc: Likewise.
25638         * tests/test-sys_stat-c++.cc: Likewise.
25639         * tests/test-sys_time-c++.cc: Likewise.
25640         * tests/test-time-c++.cc: Likewise.
25641         * tests/test-unistd-c++.cc: Likewise.
25642         * tests/test-wchar-c++.cc: Likewise.
25643         * tests/uninorm/test-u8-nfc.c: Likewise.
25644         * tests/uninorm/test-u8-nfd.c: Likewise.
25645         * tests/uninorm/test-u8-nfkc.c: Likewise.
25646         * tests/uninorm/test-u8-nfkd.c: Likewise.
25647         * tests/uninorm/test-u16-nfc.c: Likewise.
25648         * tests/uninorm/test-u16-nfd.c: Likewise.
25649         * tests/uninorm/test-u16-nfkc.c: Likewise.
25650         * tests/uninorm/test-u16-nfkd.c: Likewise.
25651         * tests/uninorm/test-u32-nfc.c: Likewise.
25652         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25653         * tests/uninorm/test-u32-nfd.c: Likewise.
25654         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25655         * tests/uninorm/test-u32-nfkc.c: Likewise.
25656         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25657         * tests/uninorm/test-u32-nfkd.c: Likewise.
25658         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25659         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25660
25661 2010-03-27  Bruno Haible  <bruno@clisp.org>
25662
25663         Distinguish two kinds of module indicators.
25664         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25665         gl_MODULE_INDICATOR.
25666         (gl_MODULE_INDICATOR): New macro.
25667         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25668         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25669         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25670         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25671         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25672         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25673         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25674         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25675         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25676         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25677         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25678         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25679         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25680         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25681         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25682         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25683         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25684         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25685         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25686         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25687         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25688         * modules/cloexec (configure.ac): Likewise.
25689         * modules/getopt-gnu (configure.ac): Likewise.
25690         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25691         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25692         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25693         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25694
25695 2010-03-27  Bruno Haible  <bruno@clisp.org>
25696
25697         New module description field 'Comment'.
25698         * gnulib-tool: New option --extract-comment.
25699         (func_usage): Document it.
25700         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25701         (func_get_comment): New function.
25702         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25703
25704 2010-03-27  Bruno Haible  <bruno@clisp.org>
25705
25706         Addendum to 2010-02-07 commit.
25707         * gnulib-tool (func_usage): Document --extract-applicability option.
25708
25709 2010-03-27  Bruno Haible  <bruno@clisp.org>
25710
25711         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25712         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25713         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25714         rather than link errors.
25715
25716 2010-03-27  Bruno Haible  <bruno@clisp.org>
25717
25718         Avoid side effects from tests-related modules on the compilation of lib.
25719         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25720         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25721         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25722         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25723         macro.
25724         (func_import): Define a witness macro. Assign it a value that depends
25725         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25726         tests-related modules.
25727         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25728         Reported by Jim Meyering.
25729
25730 2010-03-27  Bruno Haible  <bruno@clisp.org>
25731
25732         Factorize common .m4 code.
25733         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25734         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25735         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25736         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25737         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25738         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25739         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25740         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25741         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25742         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25743         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25744         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25745         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25746         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25747         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25748         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25749         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25750         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25751         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25752         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25753         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25754         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25755         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25756         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25757         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25758         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25759         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25760         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25761         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25762         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25763         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25764         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25765
25766 2010-03-27  Bruno Haible  <bruno@clisp.org>
25767
25768         Fix a compilation error on Cygwin with g++ >= 4.3.
25769         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25770         if it is undefined or if we alias it to chmod.
25771         (lstat): Don't warn about the use of this function if it is undefined
25772         or if we alias it to stat.
25773         Reported by Simon Josefsson.
25774
25775 2010-03-27  Bruno Haible  <bruno@clisp.org>
25776
25777         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25778         * modules/getlogin (configure.ac): Update.
25779
25780         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25781         * modules/getlogin_r (configure.ac): Update.
25782
25783         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25784         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25785         * modules/inet_ntop (configure.ac): Update.
25786
25787         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25788         * modules/inet_pton (configure.ac): Update.
25789
25790         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25791         * modules/mbslen (configure.ac): Update.
25792
25793         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25794         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25795         * modules/forkpty (configure.ac): Update.
25796         * modules/openpty (configure.ac): Update.
25797
25798 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25799
25800         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25801         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25802
25803 2010-03-25  Eric Blake  <eblake@redhat.com>
25804
25805         maint: use pragma consistently across replacement headers
25806         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25807         * lib/dirent.in.h (system_header): Likewise.
25808         * lib/errno.in.h (system_header): Likewise.
25809         * lib/float.in.h (system_header): Likewise.
25810         * lib/getopt.in.h (system_header): Likewise.
25811         * lib/iconv.in.h (system_header): Likewise.
25812         * lib/inttypes.in.h (system_header): Likewise.
25813         * lib/langinfo.in.h (system_header): Likewise.
25814         * lib/locale.in.h (system_header): Likewise.
25815         * lib/math.in.h (system_header): Likewise.
25816         * lib/netdb.in.h (system_header): Likewise.
25817         * lib/netinet_in.in.h (system_header): Likewise.
25818         * lib/pty.in.h (system_header): Likewise.
25819         * lib/sched.in.h (system_header): Likewise.
25820         * lib/se-selinux.in.h (system_header): Likewise.
25821         * lib/search.in.h (system_header): Likewise.
25822         * lib/spawn.in.h (system_header): Likewise.
25823         * lib/stdarg.in.h (system_header): Likewise.
25824         * lib/stdint.in.h (system_header): Likewise.
25825         * lib/string.in.h (system_header): Likewise.
25826         * lib/strings.in.h (system_header): Likewise.
25827         * lib/sys_file.in.h (system_header): Likewise.
25828         * lib/sys_ioctl.in.h (system_header): Likewise.
25829         * lib/sys_socket.in.h (system_header): Likewise.
25830         * lib/sys_times.in.h (system_header): Likewise.
25831         * lib/sys_utsname.in.h (system_header): Likewise.
25832         * lib/sys_wait.in.h (system_header): Likewise.
25833         * lib/sysexits.in.h (system_header): Likewise.
25834         * lib/unistd.in.h (system_header): Likewise.
25835         * lib/wctype.in.h (system_header): Likewise.
25836
25837         arpa/inet: fix mingw compilation warning
25838         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25839         Reported by Matthew Bolte.
25840
25841 2010-03-25  Bruno Haible  <bruno@clisp.org>
25842
25843         Avoid collision between gnulib wrapper and libintl wrapper.
25844         * lib/printf.c (printf): Don't define if a printf wrapper is already
25845         defined in intl/printf.c.
25846         Reported by Michel Boaventura <michel@michelboaventura.com>.
25847
25848 2010-03-25  Bruno Haible  <bruno@clisp.org>
25849
25850         Use ANSI C.
25851         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25852
25853 2010-03-25  Bruno Haible  <bruno@clisp.org>
25854
25855         Minor formatting changes.
25856         * lib/acosl.c: Insert space before function argument list.
25857         * lib/argz.c: Likewise.
25858         * lib/asinl.c: Likewise.
25859         * lib/expl.c: Likewise.
25860         * lib/gen-uni-tables.c: Likewise.
25861         * lib/gettext.h: Likewise.
25862         * lib/glthread/lock.h: Likewise.
25863         * lib/tanl.c: Likewise.
25864         * lib/uniname/uniname.c: Likewise.
25865         * tests/test-idpriv-drop.c: Likewise.
25866         * tests/test-idpriv-droptemp.c: Likewise.
25867         * tests/test-lock.c: Likewise.
25868         * tests/test-tls.c: Likewise.
25869         * lib/argp-help.c: Insert space before function-like macro argument
25870         list.
25871         * lib/memcmp.c: Likewise.
25872         * tests/test-base64.c: Likewise.
25873         * lib/localename.c: Insert space before sizeof's argument list.
25874         * lib/safe-alloc.h: Likewise.
25875         * lib/file-set.h: Insert space before macro argument list.
25876         * tests/test-argp.c: Likewise.
25877         * lib/argp-namefrob.h: Insert space before function parameter list.
25878         * lib/getaddrinfo.c: Likewise.
25879         * lib/netdb.in.h: Likewise.
25880         * lib/parse-duration.h: Likewise.
25881         * lib/parse-duration.c: Likewise.
25882         * lib/poll.c: Likewise.
25883         * lib/select.c: Likewise.
25884         * lib/trim.h: Likewise.
25885         * tests/test-usleep.c: Likewise.
25886         * lib/ldexpl.c: Insert space before function parameter list and before
25887         function argument list.
25888         * lib/logl.c: Likewise.
25889         * lib/sqrtl.c: Likewise.
25890         * lib/trim.c: Likewise.
25891         * lib/cosl.c: Use GNU style indentation. Insert space before function
25892         argument list.
25893         * lib/sinl.c: Likewise.
25894         * lib/tsearch.c: Insert space after 'for'.
25895         Reported by Jim Meyering.
25896
25897 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25898
25899         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25900         config header before grepping, as it's not present before
25901         autoreconf/configure are run.  Reported by Simon Josefsson.
25902
25903 2010-03-23  Bruno Haible  <bruno@clisp.org>
25904
25905         pt_chown: Make it work with automake < 1.11.
25906         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25907         Reported by Simon Josefsson.
25908
25909 2010-03-23  Bruno Haible  <bruno@clisp.org>
25910
25911         pt_chown: Don't depend on GPLed modules.
25912         * lib/pt_chown.c: Don't include idpriv.h.
25913         (main): Don't drop privileges.
25914         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25915         Reported by Simon Josefsson.
25916
25917 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25918
25919         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25920         suggestions from karl@freefriends.org (Karl Berry).
25921
25922 2010-03-22  Eric Blake  <eblake@redhat.com>
25923
25924         gethostname: further tweaks
25925         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25926         are overriding gethostname.
25927         Suggested by Bruno Haible.
25928
25929 2010-03-21  Bruno Haible  <bruno@clisp.org>
25930
25931         Fix comments.
25932         * lib/forkpty.c (rpl_forkpty): Fix comment.
25933         * lib/openpty.c (rpl_openpty): Likewise.
25934         Reported by Eric Blake.
25935
25936 2010-03-22  Eric Blake  <eblake@redhat.com>
25937
25938         gethostname: fix build on mingw
25939         * lib/unistd.in.h (includes): Work around fact that mingw
25940         <winsock2.h> re-includes <unistd.h>, by avoiding any
25941         redeclarations if we are being included by <winsock2.h>.
25942         Reported by Matthias Bolte.
25943
25944 2010-03-21  Bruno Haible  <bruno@clisp.org>
25945
25946         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25947         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25948         modifications.
25949         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25950         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25951         provide the replacement.
25952         * modules/forkpty (Depends-on): Add openpty, login_tty.
25953         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25954         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25955         * doc/glibc-functions/forkpty.texi: More supported platforms.
25956         * config/srclist.txt: Add forkpty.c (commented).
25957
25958 2010-03-21  Bruno Haible  <bruno@clisp.org>
25959
25960         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25961         (Makefile.am): Verify that PTY_LIB is defined.
25962
25963         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25964
25965 2010-03-21  Bruno Haible  <bruno@clisp.org>
25966
25967         Tests for module 'login_tty'.
25968         * modules/login_tty-tests: New file.
25969         * tests/test-login_tty.c: New file.
25970
25971         New module 'login_tty'.
25972         * lib/login_tty.c: New file.
25973         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25974         * modules/login_tty: New file.
25975         * doc/glibc-functions/login_tty.texi: Mention the new module.
25976
25977 2010-03-21  Bruno Haible  <bruno@clisp.org>
25978
25979         login_tty: Documentation.
25980         * doc/glibc-functions/login_tty.texi: New file.
25981         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25982
25983 2010-03-21  Bruno Haible  <bruno@clisp.org>
25984
25985         pty: Consistent macro naming.
25986         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25987         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25988         * modules/pty (configure.ac): Update.
25989
25990 2010-03-21  Bruno Haible  <bruno@clisp.org>
25991
25992         Tests for openpty: Make stricter.
25993         * tests/test-openpty.c (main): Add test of canonical processing and
25994         erase.
25995         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25996
25997         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25998         * lib/openpty.c (openpty): New replacement function.
25999         * lib/pty.in.h: Include <termios.h>.
26000         (openpty): Update declaration. Add comments.
26001         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26002         is not declared, arrange to provide the replacement. Check for _getpty
26003         and posix_openpt.
26004         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26005         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26006         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26007         * modules/pty-tests (test_pty_c___LDADD): New variable.
26008         * doc/glibc-functions/openpty.texi: More supported platforms.
26009
26010 2010-03-21  Bruno Haible  <bruno@clisp.org>
26011
26012         setenv: Tweaks.
26013         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26014         the test program.
26015         * doc/posix-functions/setenv.texi: Update platforms list.
26016
26017 2010-03-21  Bruno Haible  <bruno@clisp.org>
26018
26019         New module 'unlockpt'.
26020         * lib/unlockpt.c: New file, from glibc with modifications.
26021         * m4/unlockpt.m4: New file.
26022         * modules/unlockpt: New file.
26023         * lib/stdlib.in.h (unlockpt): New declaration.
26024         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26025         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26026         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26027         HAVE_UNLOCKPT.
26028         * doc/posix-functions/unlockpt.texi: Mention the new module.
26029         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26030         * config/srclist.txt: Add unlockpt.c (commented).
26031
26032 2010-03-21  Jim Meyering  <meyering@redhat.com>
26033
26034         maint.mk: prohibit inclusion of "intprops.h" without use
26035         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26036
26037 2010-03-21  Bruno Haible  <bruno@clisp.org>
26038
26039         New module 'grantpt'.
26040         * lib/grantpt.c: New file, from glibc with modifications.
26041         * m4/grantpt.m4: New file.
26042         * modules/grantpt: New file.
26043         * lib/stdlib.in.h (grantpt): New declaration.
26044         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26045         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26046         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26047         HAVE_GRANTPT.
26048         * doc/posix-functions/grantpt.texi: Mention the new module.
26049         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26050         * config/srclist.txt: Add grantpt.c (commented).
26051
26052 2010-03-21  Bruno Haible  <bruno@clisp.org>
26053
26054         New module 'pt_chown'.
26055         * lib/pt_chown.c: New file, from glibc with modifications.
26056         * lib/pty-private.h: New file, from glibc with modifications.
26057         * modules/pt_chown: New file.
26058         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26059
26060 2010-03-21  Bruno Haible  <bruno@clisp.org>
26061
26062         Tests for module 'ptsname'.
26063         * modules/ptsname-tests: New file.
26064         * tests/test-ptsname.c: New file.
26065
26066         New module 'ptsname'.
26067         * lib/ptsname.c: New file, from glibc with modifications.
26068         * m4/ptsname.m4: New file.
26069         * modules/ptsname: New file.
26070         * lib/stdlib.in.h (ptsname): New declaration.
26071         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26072         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26073         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26074         HAVE_PTSNAME.
26075         * doc/posix-functions/ptsname.texi: Mention the new module.
26076         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26077         * config/srclist.txt: Add ptsname.c (commented).
26078
26079 2010-03-21  Bruno Haible  <bruno@clisp.org>
26080
26081         Tests for module 'ttyname_r'.
26082         * modules/ttyname_r-tests: New file.
26083         * tests/test-ttyname_r.c: New file.
26084
26085         New module 'ttyname_r'.
26086         * lib/ttyname_r.c: New file.
26087         * m4/ttyname_r.m4: New file.
26088         * modules/ttyname_r: New file.
26089         * lib/unistd.in.h (ttyname_r): New declaration.
26090         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26091         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26092         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26093         HAVE_TTYNAME_R.
26094         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26095         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26096
26097 2010-03-20  Bruno Haible  <bruno@clisp.org>
26098
26099         signal: Undefine macro definitions in C++ mode.
26100         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26101         sigfillset): Undefine macro definitions from the system header in C++
26102         mode.
26103         Reported by John W. Eaton <jwe@gnu.org>.
26104
26105 2010-03-20  Bruno Haible  <bruno@clisp.org>
26106
26107         Ensure no #include statements inside extern "C" { ... }.
26108         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26109         contain #include statements.
26110         * lib/time.in.h: Likewise.
26111
26112 2010-03-20  Bruno Haible  <bruno@clisp.org>
26113
26114         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26115         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26116         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26117         Reported by John W. Eaton <jwe@gnu.org>.
26118
26119 2010-03-20  Bruno Haible  <bruno@clisp.org>
26120
26121         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26122         Reported by Jim Meyering.
26123
26124 2010-03-20  Bruno Haible  <bruno@clisp.org>
26125
26126         pipe: Set errno upon failure.
26127         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26128         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26129         errno value in error message.
26130
26131 2010-03-20  Bruno Haible  <bruno@clisp.org>
26132             Jim Meyering  <meyering@redhat.com>
26133
26134         lchown: Avoid "unused variable" warning.
26135         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26136
26137 2010-03-20  Bruno Haible  <bruno@clisp.org>
26138
26139         Work around unlink() bug on MacOS X 10.5.6.
26140         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26141         attempting to unlink a parent directory.
26142         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26143         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26144         activate for the replacement function.
26145         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26146
26147 2010-03-20  Bruno Haible  <bruno@clisp.org>
26148
26149         Fix link errors on Solaris 8.
26150         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26151         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26152
26153 2010-03-19  Jim Meyering  <meyering@redhat.com>
26154
26155         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26156         The _LIBC implementation of build_range_exp correctly honors the
26157         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26158         However, the non-_LIBC implementation would ignore that syntax-bit
26159         flag and return REG_ERANGE unconditionally.
26160         This change makes it honor that flag.
26161         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26162         Make two pointer parameters "const".
26163         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26164         (parse_bracket_exp): Update caller.
26165
26166         regex.m4: correct the reversed range endpoint ([b-a]) test
26167         * m4/regex.m4: When requiring that [b-a] evoke failure,
26168         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26169         test pass once again for x86-based systems.
26170
26171 2010-03-19  Bruno Haible  <bruno@clisp.org>
26172
26173         scandir: Fix link error on Solaris 8.
26174         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26175         macros.
26176
26177 2010-03-19  Bruno Haible  <bruno@clisp.org>
26178
26179         getusershell: Fix documentation.
26180         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26181         module.
26182         * doc/glibc-functions/setusershell.texi: Likewise.
26183
26184         getusershell: Provide declaration, missing on Solaris 9.
26185         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26186         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26187         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26188         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26190         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26191         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26192         HAVE_GETUSERSHELL.
26193         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26194
26195 2010-03-19  Bruno Haible  <bruno@clisp.org>
26196
26197         wctype: Provide iswblank function.
26198         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26199         exists and is fine.
26200         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26201         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26202         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26203         * doc/posix-functions/iswblank.texi: Update.
26204
26205 2010-03-19  Bruno Haible  <bruno@clisp.org>
26206
26207         Tests of module 'pty' in C++ mode.
26208         * modules/pty-tests: New file.
26209         * tests/test-pty-c++.cc: New file.
26210         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26211
26212 2010-03-19  Eric Blake  <eblake@redhat.com>
26213
26214         logb: fix documentation
26215         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26216         1.5 declaration bug.
26217
26218         forkpty, openpty: prefer glibc's const-safe prototype
26219         * lib/forkpty.c (rpl_forkpty): New file.
26220         * lib/openpty.c (rpl_openpty): Likewise.
26221         * modules/forkpty (Files): Distribute it.
26222         * modules/openpty (Files): Likewise.
26223         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26224         check...
26225         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26226         replacement for for non-const BSD signature.
26227         * modules/pty (Makefile.am): Substitute witnesses.
26228         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26229         * tests/test-forkpty.c: Update signature check.
26230         * tests/test-openpty.c: Likewise.
26231         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26232         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26233
26234         forkpty, openpty: split functions into new modules
26235         * modules/pty (Makefile.am): Substitute new witnesses.
26236         (Libraries): Move library detection...
26237         * modules/forkpty: ...into new module.
26238         * modules/openpty: Another new module.
26239         * modules/pty-tests: Rename and split...
26240         * modules/forkpty-tests: ...to this...
26241         * modules/openpty-tests: ...and this.
26242         * tests/test-pty.c: Rename and split...
26243         * tests/test-forkpty.c: ...to this...
26244         * tests/test-openpty.c: ...and this.
26245         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26246         (gl_PTY): Split library searching...
26247         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26248         (gl_FORKPTY, gl_OPENPTY): New macros.
26249         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26250         * NEWS: Mention the split.
26251         * MODULES.html.sh (Misc): Document the modules.
26252         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26253         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26254
26255         pty: improve replacement header
26256         * lib/pty.in.h: New file.
26257         * modules/pty (Files): Ship it.
26258         (Makefile.am): Always build replacement.
26259         * m4/pty.m4: Rename...
26260         * m4/pty_h.m4: ...to this.
26261         (gl_PTY): Modernize setting of witness macros; update check of
26262         forkpty to take proper advantage of cache.
26263         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26264
26265         getopt: avoid compiler warning
26266         * lib/getopt.c (attribute_hidden): Remove unused macro.
26267
26268 2010-03-18  Bruno Haible  <bruno@clisp.org>
26269
26270         Fix link errors on Solaris 8.
26271         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26272         * modules/search-tests (test_search_c___LDADD): Likewise.
26273         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26274         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26275         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26276         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26277         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26278         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26279         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26280
26281 2010-03-18  Bruno Haible  <bruno@clisp.org>
26282
26283         Fix bug introduced on 2010-03-14.
26284         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26285         (gl_SPAWN_H): Require it.
26286         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26287         Reported by Simon Josefsson.
26288
26289 2010-03-18  Bruno Haible  <bruno@clisp.org>
26290
26291         Fix typo introduced on 2009-12-31.
26292         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26293         posix_spawn_file_actions_adddup2.
26294
26295 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26296         and Eric Blake  <eblake@redhat.com>
26297
26298         test-vc-list-files-git: make more robust
26299         * tests/test-vc-list-files-git.sh: Unset problematic environment
26300         variables.  Chain commands together.
26301
26302 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26303
26304         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26305         `AC_CHECK_DECL' invocation.
26306
26307 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26308
26309         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26310         appears before executable statements. Suggested by Petr Sumbera
26311         <Petr.Sumbera@Sun.COM>.
26312
26313 2010-03-14  Bruno Haible  <bruno@clisp.org>
26314
26315         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26316         portability problems. Instead use a simpler test.
26317         (main): Check that invalid arguments are rejected only on Linux.
26318
26319 2010-03-14  Bruno Haible  <bruno@clisp.org>
26320
26321         Fix bug introduced on 2009-12-31.
26322         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26323         gl_PREREQ_SYS_H_WINSOCK2 always.
26324         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26325         SYS_SOCKET_H variable.
26326         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26327         Update comments.
26328         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26329         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26330         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26331         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26332         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26333
26334 2010-03-14  Bruno Haible  <bruno@clisp.org>
26335
26336         Fix values returned by sinl, cosl.
26337         * lib/trigl.h: Add specification comments.
26338         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26339         that combines the values from the precomputed table with the values of
26340         the Chebyshev polynomials.
26341
26342 2010-03-14  Bruno Haible  <bruno@clisp.org>
26343
26344         Fix compilation error when modules 'posix_spawn[p]' are not used.
26345         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26346         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26347
26348 2010-03-14  Bruno Haible  <bruno@clisp.org>
26349
26350         Fix compilation error on mingw when module 'time_r' is not used.
26351         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26352         is 1.
26353         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26354         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26355         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26356         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26357
26358 2010-03-14  Bruno Haible  <bruno@clisp.org>
26359
26360         Fix compilation error with Sun C.
26361         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26362         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26363         instead of GCC specific ULONG_LONG_MAX.
26364         * lib/xstrtoll.c: Likewise.
26365         * lib/xstrtoull.c: Likewise.
26366
26367 2010-03-13  Bruno Haible  <bruno@clisp.org>
26368
26369         Allow the user to disable C++ code and tests.
26370         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26371         (gl_PROG_ANSI_CXX): Require it.
26372
26373 2010-03-13  Bruno Haible  <bruno@clisp.org>
26374
26375         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26376         cases.
26377
26378 2010-03-13  Bruno Haible  <bruno@clisp.org>
26379
26380         Test that gnulib does not break the standard C++ headers.
26381         * tests/test-locale-c++2.cc: New file.
26382         * modules/locale-tests (Files): Add it.
26383         (Makefile.am): Compile it for test-locale-c++.
26384         * tests/test-math-c++2.cc: New file.
26385         * modules/math-tests (Files): Add it.
26386         (Makefile.am): Compile it for test-math-c++.
26387         * tests/test-signal-c++2.cc: New file.
26388         * modules/signal-tests (Files): Add it.
26389         (Makefile.am): Compile it for test-signal-c++.
26390         * tests/test-stdio-c++2.cc: New file.
26391         * modules/stdio-tests (Files): Add it.
26392         (Makefile.am): Compile it for test-stdio-c++.
26393         * tests/test-stdlib-c++2.cc: New file.
26394         * modules/stdlib-tests (Files): Add it.
26395         (Makefile.am): Compile it for test-stdlib-c++.
26396         * tests/test-string-c++2.cc: New file.
26397         * modules/string-tests (Files): Add it.
26398         (Makefile.am): Compile it for test-string-c++.
26399         * tests/test-time-c++2.cc: New file.
26400         * modules/time-tests (Files): Add it.
26401         (Makefile.am): Compile it for test-time-c++.
26402         Reported by John W. Eaton <jwe@gnu.org>.
26403
26404 2010-03-13  Bruno Haible  <bruno@clisp.org>
26405
26406         * gnulib-tool (func_usage): Clarify which options are available for
26407         --create-testdir and --create-megatestdir.
26408
26409 2010-03-13  Bruno Haible  <bruno@clisp.org>
26410
26411         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26412         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26413         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26414         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26415         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26416         when appropriate.
26417         Reported by Jim Meyering.
26418
26419 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26420
26421         * gnulib-tool (func_import): Explain origin of code.
26422
26423 2010-03-12  Bruno Haible  <bruno@clisp.org>
26424
26425         Fix problem with automake's definition of CXXLINK.
26426         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26427         Reported by Simon Josefsson and Ludovic Courtès.
26428
26429 2010-03-12  Bruno Haible  <bruno@clisp.org>
26430
26431         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26432         stable releases.
26433
26434 2010-03-11  Bruno Haible  <bruno@clisp.org>
26435
26436         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26437         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26438         whether the system provides one variant or multiple variants of the
26439         function.
26440         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26441         C++ compilers.
26442         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26443         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26444         Reported by Jim Meyering.
26445
26446 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26447
26448         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26449
26450 2010-03-08  Bruno Haible  <bruno@clisp.org>
26451
26452         gnulib-tool: Add support for --libtool in --create-testdir.
26453         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26454         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26455
26456 2010-03-08  Eric Blake  <eblake@redhat.com>
26457
26458         gnulib-tool.texi: mention possibility of git submodule
26459         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26460         submodules.
26461         * doc/.gitignore: Ignore another generated file.
26462
26463 2010-03-08  Karl Berry  <karl@gnu.org>
26464
26465         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26466         of committing gnulib files while skipping others.
26467
26468 2010-03-07  Bruno Haible  <bruno@clisp.org>
26469
26470         Tests of module 'wctype' in C++ mode.
26471         * tests/test-wctype-c++.cc: New file.
26472         * modules/wctype-tests (Files): Add it and tests/signature.h.
26473         (Depends-on): Add ansi-c++-opt.
26474         (Makefile.am): Arrange to compile and run test-wctype-c++.
26475
26476         Tests of module 'wchar' in C++ mode.
26477         * tests/test-wchar-c++.cc: New file.
26478         * modules/wchar-tests (Files): Add it and tests/signature.h.
26479         (Depends-on): Add ansi-c++-opt.
26480         (Makefile.am): Arrange to compile and run test-wchar-c++.
26481         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26482         gl_MODULE_INDICATOR.
26483
26484         Tests of module 'unistd' in C++ mode.
26485         * tests/test-unistd-c++.cc: New file.
26486         * modules/unistd-tests (Files): Add it and tests/signature.h.
26487         (Depends-on): Add ansi-c++-opt.
26488         (Makefile.am): Arrange to compile and run test-unistd-c++.
26489         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26490         gl_MODULE_INDICATOR.
26491
26492         Tests of module 'time' in C++ mode.
26493         * tests/test-time-c++.cc: New file.
26494         * modules/time-tests (Files): Add it and tests/signature.h.
26495         (Depends-on): Add ansi-c++-opt.
26496         (Makefile.am): Arrange to compile and run test-time-c++.
26497         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26498
26499         Tests of module 'sys_time' in C++ mode.
26500         * tests/test-sys_time-c++.cc: New file.
26501         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26502         (Depends-on): Add ansi-c++-opt.
26503         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26504         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26505         gl_MODULE_INDICATOR.
26506
26507         Tests of module 'sys_stat' in C++ mode.
26508         * tests/test-sys_stat-c++.cc: New file.
26509         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26510         (Depends-on): Add ansi-c++-opt.
26511         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26512         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26513         gl_MODULE_INDICATOR.
26514
26515         Tests of module 'sys_socket' in C++ mode.
26516         * tests/test-sys_socket-c++.cc: New file.
26517         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26518         (Depends-on): Add ansi-c++-opt.
26519         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26520         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26521         gl_MODULE_INDICATOR.
26522
26523         Tests of module 'sys_select' in C++ mode.
26524         * tests/test-sys_select-c++.cc: New file.
26525         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26526         (Depends-on): Add ansi-c++-opt.
26527         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26528         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26529         gl_MODULE_INDICATOR.
26530
26531         Tests of module 'sys_ioctl' in C++ mode.
26532         * tests/test-sys_ioctl-c++.cc: New file.
26533         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26534         (Depends-on): Add ansi-c++-opt.
26535         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26536         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26537         gl_MODULE_INDICATOR.
26538
26539         Tests of module 'string' in C++ mode.
26540         * tests/test-string-c++.cc: New file.
26541         * modules/string-tests (Files): Add it and tests/signature.h.
26542         (Depends-on): Add ansi-c++-opt.
26543         (Makefile.am): Arrange to compile and run test-string-c++.
26544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26545         gl_MODULE_INDICATOR.
26546
26547         Tests of module 'stdlib' in C++ mode.
26548         * tests/test-stdlib-c++.cc: New file.
26549         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26550         (Depends-on): Add ansi-c++-opt.
26551         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26552         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26553         gl_MODULE_INDICATOR.
26554
26555         Tests of module 'stdio' in C++ mode.
26556         * tests/test-stdio-c++.cc: New file.
26557         * modules/stdio-tests (Files): Add it and tests/signature.h.
26558         (Depends-on): Add ansi-c++-opt.
26559         (Makefile.am): Arrange to compile and run test-stdio-c++.
26560         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26561         gl_MODULE_INDICATOR.
26562
26563         Tests of module 'spawn' in C++ mode.
26564         * tests/test-spawn-c++.cc: New file.
26565         * modules/spawn-tests (Files): Add it and tests/signature.h.
26566         (Depends-on): Add ansi-c++-opt.
26567         (Makefile.am): Arrange to compile and run test-spawn-c++.
26568         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26569         gl_MODULE_INDICATOR.
26570
26571         Tests of module 'signal' in C++ mode.
26572         * tests/test-signal-c++.cc: New file.
26573         * modules/signal-tests (Files): Add it and tests/signature.h.
26574         (Depends-on): Add ansi-c++-opt.
26575         (Makefile.am): Arrange to compile and run test-signal-c++.
26576         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26577         gl_MODULE_INDICATOR.
26578
26579         Tests of module 'search' in C++ mode.
26580         * tests/test-search-c++.cc: New file.
26581         * modules/search-tests (Files): Add it and tests/signature.h.
26582         (Depends-on): Add ansi-c++-opt.
26583         (Makefile.am): Arrange to compile and run test-search-c++.
26584         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26585         gl_MODULE_INDICATOR.
26586
26587         Tests of module 'math' in C++ mode.
26588         * tests/test-math-c++.cc: New file.
26589         * modules/math-tests (Files): Add it and tests/signature.h.
26590         (Depends-on): Add ansi-c++-opt.
26591         (Makefile.am): Arrange to compile and run test-math-c++.
26592         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26593
26594         Tests of module 'locale' in C++ mode.
26595         * tests/test-locale-c++.cc: New file.
26596         * modules/locale-tests (Files): Add it and tests/signature.h.
26597         (Depends-on): Add ansi-c++-opt.
26598         (Makefile.am): Arrange to compile and run test-locale-c++.
26599         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26600         gl_MODULE_INDICATOR.
26601
26602         Tests of module 'langinfo' in C++ mode.
26603         * tests/test-langinfo-c++.cc: New file.
26604         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26605         (Depends-on): Add ansi-c++-opt.
26606         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26607         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26608         gl_MODULE_INDICATOR.
26609
26610         Tests of module 'iconv-h' in C++ mode.
26611         * tests/test-iconv-h-c++.cc: New file.
26612         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26613         (Depends-on): Add ansi-c++-opt.
26614         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26615
26616         Tests of module 'glob' in C++ mode.
26617         * tests/test-glob-c++.cc: New file.
26618         * modules/glob-tests (Files): Add it.
26619         (Depends-on): Add ansi-c++-opt.
26620         (Makefile.am): Arrange to compile and run test-glob-c++.
26621
26622         Tests of module 'fcntl-h' in C++ mode.
26623         * tests/test-fcntl-h-c++.cc: New file.
26624         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26625         (Depends-on): Add ansi-c++-opt.
26626         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26627         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26628         gl_MODULE_INDICATOR.
26629
26630         Tests of module 'dirent' in C++ mode.
26631         * tests/test-dirent-c++.cc: New file.
26632         * modules/dirent-tests (Files): Add it and tests/signature.h.
26633         (Depends-on): Add ansi-c++-opt.
26634         (Makefile.am): Arrange to compile and run test-dirent-c++.
26635         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26636         gl_MODULE_INDICATOR.
26637
26638         New module 'ansi-c++-opt'.
26639         * modules/ansi-c++-opt: New file.
26640         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26641
26642         Document C++ namespace mode.
26643         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26644
26645         wctype: Avoid #define replacements in C++ mode.
26646         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26647         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26648         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26649         In C++, define a namespaced alias symbol.
26650         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26651         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26652         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26653         rule.
26654
26655         wchar: Avoid #define replacements in C++ mode.
26656         * lib/wchar.in.h: Include c++defs.h.
26657         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26658         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26659         symbol.
26660         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26661         * modules/wchar (Depends-on): Add c++defs.
26662         (Makefile.am): Update wchar.h rule.
26663
26664         unistd: Avoid #define replacements in C++ mode.
26665         * lib/unistd.in.h: Include c++defs.h.
26666         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26667         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26668         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26669         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26670         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26671         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26672         symbol.
26673         (environ): Update.
26674         * modules/unistd (Depends-on): Add c++defs.
26675         (Makefile.am): Update unistd.h rule.
26676
26677         time: Avoid #define replacements in C++ mode.
26678         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26679         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26680         define a namespaced alias symbol.
26681         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26682         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26683         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26684         * modules/time (Depends-on): Add c++defs, warn-on-use.
26685         (Makefile.am): Update time.h rule.
26686         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26687         * modules/nanosleep (configure.ac): Likewise.
26688         * modules/strptime (configure.ac): Likewise.
26689         * modules/timegm (configure.ac): Likewise.
26690
26691         sys_time: Avoid #define replacements in C++ mode.
26692         * lib/sys_time.in.h: Include c++defs.h.
26693         (gettimeofday): In C++, define a namespaced alias symbol.
26694         * modules/sys_time (Depends-on): Add c++defs.
26695         (Makefile.am): Update sys/time.h rule.
26696
26697         sys_stat: Avoid #define replacements in C++ mode.
26698         * lib/sys_stat.in.h: Include c++defs.h.
26699         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26700         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26701         namespaced alias symbol.
26702         In C++, define a namespaced alias symbol.
26703         * modules/sys_stat (Depends-on): Add c++defs.
26704         (Makefile.am): Update sys/stat.h rule.
26705
26706         sys_socket: Avoid #define replacements in C++ mode.
26707         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26708         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26709         definitions also when the system has a <sys/socket.h>.
26710         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26711         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26712         In C++, define a namespaced alias symbol.
26713         * modules/sys_socket (Depends-on): Add c++defs.
26714         (Makefile.am): Update sys/socket.h rule.
26715
26716         sys_select: Avoid #define replacements in C++ mode.
26717         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26718         definitions also when the system has a <sys/select.h>.
26719         (select): In C++, define a namespaced alias symbol.
26720         * modules/sys_select (Depends-on): Add c++defs.
26721         (Makefile.am): Update sys/select.h rule.
26722
26723         sys_ioctl: Avoid #define replacements in C++ mode.
26724         * lib/sys_ioctl.in.h: Include c++defs.h.
26725         (ioctl): In C++, define a namespaced alias symbol.
26726         * modules/sys_ioctl (Depends-on): Add c++defs.
26727         (Makefile.am): Update sys/ioctl.h rule.
26728
26729         string: Avoid #define replacements in C++ mode.
26730         * lib/string.in.h: Include c++defs.h.
26731         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26732         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26733         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26734         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26735         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26736         * modules/string (Depends-on): Add c++defs.
26737         (Makefile.am): Update string.h rule.
26738
26739         stdlib: Avoid #define replacements in C++ mode.
26740         * lib/stdlib.in.h: Include c++defs.h.
26741         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26742         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26743         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26744         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26745         symbol.
26746         * modules/stdlib (Depends-on): Add c++defs.
26747         (Makefile.am): Update stdlib.h rule.
26748
26749         stdio: Avoid #define replacements in C++ mode.
26750         * lib/stdio.in.h: Include c++defs.h.
26751         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26752         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26753         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26754         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26755         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26756         namespaced alias symbol.
26757         * modules/stdio (Depends-on): Add c++defs.
26758         (Makefile.am): Update stdio.h rule.
26759
26760         spawn: Avoid #define replacements in C++ mode.
26761         * lib/spawn.in.h: Include c++defs.h.
26762         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26763         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26764         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26765         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26766         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26767         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26768         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26769         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26770         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26771         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26772         In C++, define a namespaced alias symbol.
26773         * modules/spawn (Depends-on): Add c++defs.
26774         (Makefile.am): Update spawn.h rule.
26775
26776         signal: Avoid #define replacements in C++ mode.
26777         * lib/signal.in.h: Include c++defs.h.
26778         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26779         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26780         namespaced alias symbol.
26781         * modules/signal (Depends-on): Add c++defs.
26782         (Makefile.am): Update signal.h rule.
26783
26784         search: Avoid #define replacements in C++ mode.
26785         * lib/search.in.h: Include c++defs.h.
26786         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26787         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26788         symbol.
26789         * modules/search (Depends-on): Add c++defs.
26790         (Makefile.am): Update search.h rule.
26791
26792         math: Avoid #define replacements in C++ mode.
26793         * lib/math.in.h: Include c++defs.h.
26794         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26795         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26796         trunc, truncl): In C++, define a namespaced alias symbol.
26797         * modules/math (Depends-on): Add c++defs.
26798         (Makefile.am): Update math.h rule.
26799
26800         locale: Avoid #define replacements in C++ mode.
26801         * lib/locale.in.h: Include c++defs.h.
26802         (duplocale): In C++, define a namespaced alias symbol.
26803         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26804         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26805         * modules/locale (Depends-on): Add c++defs.
26806         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26807
26808         langinfo: Avoid #define replacements in C++ mode.
26809         * lib/langinfo.in.h: Include c++defs.h.
26810         (nl_langinfo): In C++, define a namespaced alias symbol.
26811         * modules/langinfo (Depends-on): Add c++defs.
26812         (Makefile.am): Update langinfo.h rule.
26813
26814         iconv-h: Avoid #define replacements in C++ mode.
26815         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26816         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26817         symbol.
26818         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26819         whenever iconv is present.
26820         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26821         (Makefile.am): Update iconv.h rule.
26822
26823         glob: Avoid #define replacements in C++ mode.
26824         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26825         (_gl_glob_errfunc_fn): New type.
26826         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26827         symbol.
26828         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26829         (Makefile.am): Update glob.h rule.
26830
26831         fcntl-h: Avoid #define replacements in C++ mode.
26832         * lib/fcntl.in.h: Include c++defs.h.
26833         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26834         * modules/fcntl-h (Depends-on): Add c++defs.
26835         (Makefile.am): Update fcntl.h rule.
26836
26837         dirent: Avoid #define replacements in C++ mode.
26838         * lib/dirent.in.h: Include c++defs.h.
26839         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26840         namespaced alias symbol.
26841         (dirfd): Update declaration.
26842         * modules/dirent (Depends-on): Add c++defs.
26843         (Makefile.am): Update dirent.h rule.
26844
26845         ctype: Make it usable in C++ code.
26846         * lib/ctype.in.h: Include c++defs.h.
26847         (isblank): Declare as extern "C".
26848         * modules/ctype (Depends-on): Add c++defs.
26849         (Makefile.am): Update ctype.h rule.
26850
26851         New module 'c++defs'.
26852         * modules/c++defs: New file.
26853         * build-aux/c++defs.h: New file.
26854         Reported by John W. Eaton <jwe@gnu.org>.
26855
26856 2010-03-07  Bruno Haible  <bruno@clisp.org>
26857
26858         logb: Provide missing declaration for Cygwin.
26859         * lib/math.in.h (logb): New declaration.
26860         * m4/logb.m4: New file.
26861         * modules/logb (Files): Add m4/logb.m4.
26862         (Depends-on): Add math.
26863         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26864         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26866         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26867         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26868
26869 2010-03-07  Bruno Haible  <bruno@clisp.org>
26870
26871         Fix test-cond link error.
26872         * tests/test-cond.c: Include <stdio.h>.
26873
26874 2010-03-07  Bruno Haible  <bruno@clisp.org>
26875
26876         Fix test-dirent-safer link error.
26877         * modules/dirent-safer-tests (Makefile.am): Define
26878         test_dirent_safer_LDADD.
26879
26880 2010-03-07  Bruno Haible  <bruno@clisp.org>
26881
26882         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26883         among default module list.
26884
26885 2010-03-07  Bruno Haible  <bruno@clisp.org>
26886
26887         Fix link error on platforms with GNU libiconv.
26888         * modules/unistr/u8-strcoll-tests (Makefile): Define
26889         test_u8_strcoll_LDADD.
26890         * modules/unistr/u16-strcoll-tests (Makefile): Define
26891         test_u16_strcoll_LDADD.
26892         * modules/unistr/u32-strcoll-tests (Makefile): Define
26893         test_u32_strcoll_LDADD.
26894
26895 2010-03-07  Bruno Haible  <bruno@clisp.org>
26896
26897         Use POSIX declarations for socket functions.
26898         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26899         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26900         rpl_sendto): Change declaration to match POSIX.
26901         * lib/connect.c (rpl_connect): Likewise.
26902         * lib/accept.c (rpl_accept): Likewise.
26903         * lib/bind.c (rpl_bind): Likewise.
26904         * lib/getpeername.c (rpl_getpeername): Likewise.
26905         * lib/getsockname.c (rpl_getsockname): Likewise.
26906         * lib/recv.c (rpl_recv): Likewise.
26907         * lib/send.c (rpl_send): Likewise.
26908         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26909         * lib/sendto.c (rpl_sendto): Likewise.
26910
26911 2010-03-06  Bruno Haible  <bruno@clisp.org>
26912
26913         Clarify access, euidaccess, faccessat.
26914         * doc/posix-functions/faccessat.texi: Mention security problem under
26915         "Other problems", not "Portability problems".
26916         * doc/posix-functions/access.texi: Likewise. Mention a related security
26917         problem.
26918         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26919         * lib/euidaccess.c: Add comments about platforms.
26920         * lib/unistd.in.h (access, euidaccess): Add warnings.
26921
26922 2010-03-07  Bruno Haible  <bruno@clisp.org>
26923
26924         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26925         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26926         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26927         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26928         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26929         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26930         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26931         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26932         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26933         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26934         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26935         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26936         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26937         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26938         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26939         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26940         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26941         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26942         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26943         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26944         Likewise.
26945         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26946         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26947         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26948         Likewise.
26949         * tests/test-spawn.c (main): Make it work when
26950         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26951
26952 2010-03-07  Bruno Haible  <bruno@clisp.org>
26953
26954         Fix incorrect Makefile.am generation in German locale.
26955         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26956         Execute sed command with character range in C locale.
26957
26958 2010-03-06  Bruno Haible  <bruno@clisp.org>
26959
26960         Tests for module 'iconv-h'.
26961         * modules/iconv-h-tests: New file.
26962         * tests/test-iconv-h.c: New file.
26963
26964         New module 'iconv-h'.
26965         * modules/iconv-h: New file.
26966         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26967         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26968         (configure.ac): Remove gl_ICONV_H.
26969         (Makefile.am): Remove rule for iconv.h.
26970
26971 2010-03-06  Bruno Haible  <bruno@clisp.org>
26972
26973         More consistent naming of *.m4 files.
26974         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26975         * modules/wctype (Files): Update.
26976
26977         More consistent naming of *.m4 files.
26978         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26979         * modules/wchar (Files): Update.
26980
26981 2010-03-06  Jim Meyering  <meyering@redhat.com>
26982
26983         euidaccess: relax license to LGPLv2+
26984         * modules/euidaccess (License): Relax to LGPLv2+.
26985
26986 2010-03-06  Bruno Haible  <bruno@clisp.org>
26987
26988         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26989         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26990         (Makefile.am): Augment lib_SOURCES instead.
26991
26992 2010-03-04  Jim Meyering  <meyering@redhat.com>
26993
26994         utime: remove obsolete module
26995         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26996         unnecessary for years, and has been marked as obsolete for 10 months.
26997         * modules/utime: Remove file.
26998         * lib/utime.c: Remove file.
26999         * m4/utime.m4: Remove file.
27000         * m4/utimes-null.m4: Remove file.
27001         * doc/posix-functions/utime.texi (utime): Remove reference to
27002         the module.  Move the sole "fixed by gnulib" item into the
27003         "problems not fixed by Gnulib" list.
27004         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27005
27006 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27007
27008         * modules/exit (License): Relax license to LGPLv2+.
27009         (Status): Mark as obsolete.
27010         * NEWS: Mention deprecated 'exit' module.
27011         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27012         of now obsolete 'exit'.
27013
27014 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27015
27016         fts-lgpl: remove unused module
27017         * modules/fts-lgpl: Remove.
27018         * MODULES.html.sh (func_all_modules): Adjust.
27019         * check-module (find_included_lib_files): Adjust.
27020         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27021
27022 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27023
27024         copy-acl: enhance Solaris ACL error handling
27025         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27026         * lib/set-mode-acl.c (qset_acl): Likewise.
27027
27028 2010-03-02  Bruno Haible  <bruno@clisp.org>
27029
27030         spawn: Don't override the system defined values on FreeBSD 8.
27031         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27032         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27033         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27034         if HAVE_POSIX_SPAWN is 1.
27035         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27036
27037 2010-03-01  Bruno Haible  <bruno@clisp.org>
27038
27039         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27040         regarding Automake.
27041
27042 2010-02-25  Bruno Haible  <bruno@clisp.org>
27043
27044         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27045         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27046         setting, not afterwards.
27047         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27048
27049 2010-02-24  Eric Blake  <eblake@redhat.com>
27050
27051         bootstrap, git-version-gen: use timestamp
27052         * build-aux/git-version-gen (scriptversion): Force UTC.
27053         * build-aux/bootstrap (scriptversion): New variable.
27054
27055         bootstrap: allow older git
27056         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27057         older than 1.6.4.  Requested by the libvirt project.
27058
27059 2010-02-23  Eric Blake  <eblake@redhat.com>
27060
27061         warn-on-use: work with old autoconf
27062         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27063         AS_VAR semantics of autoconf 2.60.
27064         Reported by Bruno Haible.
27065
27066         bootstrap: improve some comments
27067         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27068         clarification comments.
27069
27070         gettimeofday: provide correct function
27071         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27072         when replacement is declared, otherwise provide gettimeofday.
27073         Reported by Michael Goffioul.
27074
27075 2010-02-23  Jim Meyering  <meyering@redhat.com>
27076
27077         lib-ignore: relax license to "unlimited", not LGPLv2+
27078         * modules/lib-ignore (License): Relax to "unlimited".
27079
27080 2010-02-23  Jim Meyering  <meyering@redhat.com>
27081
27082         lib-ignore: relax license to LGPLv2+
27083         * modules/lib-ignore (License): Relax to LGPLv2+.
27084
27085 2010-02-22  Eric Blake  <eblake@redhat.com>
27086
27087         lseek: avoid bash 3.2 broken pipe bug
27088         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27089         warning from bash 3.2.
27090         Reported by Ben Pfaff, with analysis from Bruno Haible.
27091
27092         bootstrap: support non-FSF copyright holder
27093         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27094         bootstrap.conf override of COPYRIGHT_HOLDER.
27095         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27096
27097         bootstrap: interoperate with gettext 0.14.1
27098         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27099
27100         bootstrap: allow for alternate submodule location
27101         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27102         hardcoding submodule location.
27103         (gnulib_mk): Allow direct use of Makefile.am.
27104
27105         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27106         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27107         rather than reconfiguring where the submodule points.
27108
27109         gettimeofday: restore support for platforms that lack function
27110         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27111         replacement if function is missing.
27112         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27113         * modules/sys_time (Makefile.am): Substitute it.
27114         * lib/sys_time.in.h (gettimeofday): Check it.
27115         Reported by Michael Goffioul.
27116
27117 2010-02-21  Bruno Haible  <bruno@clisp.org>
27118
27119         * lib/stdio.in.h (obstack_printf): Fix typo.
27120
27121 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27122
27123         vc-list-files: use bzr ls's -R option
27124         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27125         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27126
27127 2010-02-21  Jim Meyering  <meyering@redhat.com>
27128
27129         init.sh: fix EXEEXT shims to work also for names like test-prog
27130         * tests/init.sh: Re-exec a better shell, when needed.
27131         If the current shell lacks support for posix $(...), an init.sh-using
27132         test will now try to find a shell that supports that.  If EXEEXT is
27133         nonempty, we also require support for hyphen-in-alias-name and shell
27134         substitutions like ${var#glob}.  Failure to find such a shell results
27135         in a skipped test.
27136
27137 2010-02-21  Bruno Haible  <bruno@clisp.org>
27138
27139         Really work around around "broken pipe" error message from bash 3.2.
27140         * gnulib-tool (func_reset_sigpipe): Remove function.
27141         (echo): In bash 3.2, define to a function that uses printf.
27142         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27143
27144 2010-02-20  Bruno Haible  <bruno@clisp.org>
27145
27146         Restore support for automake 1.9.6 with autoconf 2.61.
27147         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27148         Reported by James Youngman <jay@gnu.org>.
27149
27150 2010-02-20  Bruno Haible  <bruno@clisp.org>
27151
27152         Improve *printf warning condition.
27153         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27154         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27155         and the function is overridden due to SIGPIPE emulation.
27156
27157 2010-02-20  Bruno Haible  <bruno@clisp.org>
27158
27159         * lib/stdio.in.h: Tweak comments.
27160
27161 2010-02-19  Bruno Haible  <bruno@clisp.org>
27162
27163         Make it easier to find modules. New gnulib-tool option '--find'.
27164         * gnulib-tool: New option --find.
27165         (func_usage): Document it.
27166         (func_sanitize_modulelist): New function, extracted from
27167         func_all_modules.
27168         (func_all_modules): Invoke it.
27169         * doc/gnulib-tool.texi (Which modules?): New node.
27170
27171 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27172
27173         * lib/sys_select.in.h: Provide select replacement even if
27174         sys/select.h exists on a system, for Interix.
27175
27176 2010-02-18  Jim Meyering  <meyering@redhat.com>
27177
27178         init.sh: don't use $(...) just yet
27179         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27180         to accommodate e.g., Solaris' /bin/sh.
27181
27182 2010-02-17  Bruno Haible  <bruno@clisp.org>
27183
27184         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27185         Reported by Ludovic Courtès <ludo@gnu.org>.
27186
27187 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27188
27189         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27190         linking with -lintl.
27191
27192 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27193
27194         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27195         if not provided by the system's netdb.h.  Reported by
27196         ludo@gnu.org (Ludovic Courtès).
27197
27198 2010-02-15  Jim Meyering  <meyering@redhat.com>
27199
27200         init.sh: improve portability and efficiency
27201         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27202         "dummy" in a for loop.
27203         Use '!', not '^' to select the complement of a character set used
27204         in a "case" statement.
27205         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27206         Suggestions from Eric Blake.
27207
27208         init.sh: automatically accommodate programs with the .exe suffix
27209         Automatically arrange for an invocation of "prog" to execute the
27210         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27211         may use the simpler "prog", yet still work when built on a system
27212         that requires specifying the added suffix.
27213         Do this by constructing a function named "prog" that invokes
27214         "prog.exe" for each .exe file in selected directories.
27215         * tests/init.sh (find_exe_basenames_): New function.
27216         (create_exe_shim_functions_): New function.
27217         (path_prepend_): Use it.
27218
27219         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27220         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27221         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27222
27223 2010-02-14  Jim Meyering  <meyering@redhat.com>
27224
27225         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27226         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27227         (sc_prohibit_hash_pjw_without_use): New rule.
27228
27229         maint.mk: allow the default upload destination dir to be overridden
27230         * top/maint.mk (upload_dest_dir_): Define with a default that
27231         preserves the status quo.
27232         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27233         Reported by Peter Simons.
27234
27235         maint.mk: prohibit inclusion of "hash.h" without_use
27236         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27237
27238 2010-02-10  Jim Meyering  <meyering@redhat.com>
27239
27240         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27241         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27242
27243 2010-02-09  Eric Blake  <ebb9@byu.net>
27244         and Bruno Haible  <bruno@clisp.org>
27245
27246         obstack-printf-posix: ensure declaration
27247         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27248         extracted from gl_FUNC_OBSTACK_PRINTF.
27249         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27250         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27251         Likewise.
27252         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27253         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27254         0.
27255
27256 2010-02-08  Bruno Haible  <bruno@clisp.org>
27257
27258         gnulib-tool: Fix typo in 2010-02-07 commit.
27259         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27260         Reported by Eric Blake.
27261
27262 2010-02-07  Bruno Haible  <bruno@clisp.org>
27263
27264         gnulib-tool: Fix up caching patches.
27265         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27266         option --no-cache. Use associative arrays when supported by the shell.
27267         (sed_comments): New variable.
27268         (modcache): Renamed from do_cache.
27269         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27270         abbreviate unnecessarily.
27271         (have_associative): New variable.
27272         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27273         way also for ksh and zsh.
27274         (func_init_sed_convert_to_cache_statements): New function, extracted
27275         from func_cache_lookup_module. Add support for associative arrays.
27276         Don't set the c_MODULE_cached variable here. Ignore all lines before
27277         the first field header. Remove only the final newline, not all trailing
27278         newlines. Support empty fields correctly. Limit the use of 'eval' to
27279         assignments.
27280         (func_get_description, func_get_status, func_get_notice,
27281         func_get_applicability, func_get_filelist, func_get_dependencies,
27282         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27283         func_get_automake_snippet, func_get_include_directive,
27284         func_get_link_directive, func_get_license, func_get_maintainer):
27285         Update documentation. List the unoptimized code first. Add support for
27286         associative arrays. Limit the use of 'eval' to assignments.
27287         (func_get_applicability): Undo stylistic pessimisations.
27288         (func_get_automake_snippet, func_get_include_directive): Reduce code
27289         duplication.
27290         (func_modules_transitive_closure, func_modules_add_dummy,
27291         func_modules_notice, func_modules_to_filelist, func_add_file,
27292         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27293         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27294         func_create_testdir, func_create_megatestdir): Update documentation.
27295
27296 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27297
27298         * gnulib-tool (func_cache_lookup_module): Store the module name
27299         belonging to the cache variable; error out if two different
27300         module names map to the same cache variable name.
27301
27302 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27303
27304         gnulib-tool: Make caching optional.
27305         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27306         Update matching short versions of --no-changelog.
27307         (func_usage): Update.
27308         (sed_extract_cache_prog): Renamed from ...
27309         (sed_extract_prog): ... this; revert to old extraction script.
27310         (func_get_description, func_get_status)
27311         (func_get_notice, func_get_applicability, func_get_filelist)
27312         (func_get_dependencies, func_get_autoconf_early_snippet)
27313         (func_get_autoconf_snippet, func_get_automake_snippet)
27314         (func_get_include_directive, func_get_link_directive)
27315         (func_get_license, func_get_maintainer): If $do_cache is false,
27316         use old, non-caching extraction scripts.
27317         Suggestion by Bruno Haible.
27318
27319 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27320
27321         gnulib-tool: cache module metainformation.
27322         * gnulib-tool (sed_extract_prog): Match newline before each
27323         header, and rewrite header to a shell variable suffix.
27324         (func_cache_var, func_cache_lookup_module): New functions,
27325         to turn a module name into a cache variable prefix, and to
27326         look up and cache module metainformation.
27327         (func_get_description, func_get_status)
27328         (func_get_notice, func_get_applicability, func_get_filelist)
27329         (func_get_dependencies, func_get_autoconf_early_snippet)
27330         (func_get_autoconf_snippet, func_get_automake_snippet)
27331         (func_get_include_directive, func_get_link_directive)
27332         (func_get_license, func_get_maintainer): Use
27333         func_cache_lookup_module.
27334
27335 2010-02-07  Bruno Haible  <bruno@clisp.org>
27336
27337         fnctl: Fix missing dependency.
27338         * modules/fcntl (Depends-on): Add getdtablesize.
27339         Reported by John W. Eaton <jwe@gnu.org>.
27340
27341 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27342
27343         Argp: fix recognition of short alias options.
27344
27345         * lib/argp-parse.c (convert_options): Fix improper use of
27346         `|' between character values.
27347         * tests/test-argp.c (group1_option): New alias option
27348         --read (-r).
27349         (group1_parser): Special handling for 'r'.
27350         (test15): New test case.
27351         (test_fun): Add test15.
27352         * tests/test-argp-2.sh: Update expected --help and --usage
27353         outputs.
27354
27355 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27356
27357         * tests/test-argp.c: Fix indentation.
27358
27359 2010-02-04  Eric Blake  <ebb9@byu.net>
27360
27361         gettimeofday: expose type of second argument
27362         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27363         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27364         * tests/test-gettimeofday.c: Use it to silence warning.
27365         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27366         the issue.
27367
27368 2010-02-03  Jim Meyering  <meyering@redhat.com>
27369
27370         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27371         * lib/regcomp.c (TYPE_SIGNED): Define.
27372         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27373
27374         regcomp.c: avoid a new -Wshadow warning
27375         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27376
27377 2010-02-01  Jim Meyering  <meyering@redhat.com>
27378
27379         removing useless parentheses in cpp #define directives
27380         For motivation, see commit c0221df4, "define STREQ(a,b)
27381         consistently, removing useless parentheses"
27382         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27383         * lib/mountlist.c (MNT_IGNORE): Likewise.
27384         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27385
27386 2010-02-01  Eric Blake  <ebb9@byu.net>
27387
27388         sys_time: use link-warning
27389         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27390         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27391         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27392         * modules/sys_time (Depends-on): Add warn-on-use.
27393         (Makefile.am): Always build replacement.
27394         (configure.ac): Update substitutions.
27395         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27396         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27397         bother with SYS_TIME_H.
27398         * modules/gettimeofday (configure.ac): Declare indicator.
27399         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27400         in use.
27401
27402         closein-tests: silence compiler warning
27403         * tests/test-closein.c (main): Ignore fread result.
27404         * modules/closein-tests (Depends-on): Add ignore-value.
27405
27406         tests: silence warning about system return
27407         * tests/test-areadlink-with-size.c (main): Ignore system result.
27408         * tests/test-areadlink.c (main): Likewise.
27409         * tests/test-areadlinkat-with-size.c (main): Likewise.
27410         * tests/test-areadlinkat.c (main): Likewise.
27411         * tests/test-canonicalize-lgpl.c (main): Likewise.
27412         * tests/test-canonicalize.c (main): Likewise.
27413         * tests/test-chown.c (main): Likewise.
27414         * tests/test-fchownat.c (main): Likewise.
27415         * tests/test-fdutimensat.c (main): Likewise.
27416         * tests/test-fstatat.c (main): Likewise.
27417         * tests/test-futimens.c (main): Likewise.
27418         * tests/test-lchown.c (main): Likewise.
27419         * tests/test-link.c (main): Likewise.
27420         * tests/test-linkat.c (main): Likewise.
27421         * tests/test-lstat.c (main): Likewise.
27422         * tests/test-mkdir.c (main): Likewise.
27423         * tests/test-mkdirat.c (main): Likewise.
27424         * tests/test-mkfifo.c (main): Likewise.
27425         * tests/test-mkfifoat.c (main): Likewise.
27426         * tests/test-mknod.c (main): Likewise.
27427         * tests/test-readlink.c (main): Likewise.
27428         * tests/test-remove.c (main): Likewise.
27429         * tests/test-rename.c (main): Likewise.
27430         * tests/test-renameat.c (main): Likewise.
27431         * tests/test-rmdir.c (main): Likewise.
27432         * tests/test-symlink.c (main): Likewise.
27433         * tests/test-symlinkat.c (main): Likewise.
27434         * tests/test-unlink.c (main): Likewise.
27435         * tests/test-unlinkat.c (main): Likewise.
27436         * tests/test-utimens.c (main): Likewise.
27437         * tests/test-utimensat.c (main): Likewise.
27438         * modules/areadlink-tests (Depends-on): Add ignore-value.
27439         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27440         * modules/areadlinkat-tests (Depends-on): Likewise.
27441         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27442         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27443         * modules/canonicalize-tests (Depends-on): Likewise.
27444         * modules/chown-tests (Depends-on): Likewise.
27445         * modules/fdutimensat-tests (Depends-on): Likewise.
27446         * modules/futimens-tests (Depends-on): Likewise.
27447         * modules/lchown-tests (Depends-on): Likewise.
27448         * modules/link-tests (Depends-on): Likewise.
27449         * modules/linkat-tests (Depends-on): Likewise.
27450         * modules/lstat-tests (Depends-on): Likewise.
27451         * modules/mkdir-tests (Depends-on): Likewise.
27452         * modules/mkfifo-tests (Depends-on): Likewise.
27453         * modules/mkfifoat-tests (Depends-on): Likewise.
27454         * modules/mknod-tests (Depends-on): Likewise.
27455         * modules/openat-tests (Depends-on): Likewise.
27456         * modules/readlink-tests (Depends-on): Likewise.
27457         * modules/remove-tests (Depends-on): Likewise.
27458         * modules/rename-tests (Depends-on): Likewise.
27459         * modules/renameat-tests (Depends-on): Likewise.
27460         * modules/rmdir-tests (Depends-on): Likewise.
27461         * modules/symlink-tests (Depends-on): Likewise.
27462         * modules/symlinkat-tests (Depends-on): Likewise.
27463         * modules/unlink-tests (Depends-on): Likewise.
27464         * modules/utimens-tests (Depends-on): Likewise.
27465         * modules/utimensat-tests (Depends-on): Likewise.
27466
27467 2010-01-31  Bruno Haible  <bruno@clisp.org>
27468
27469         Perform the same test for many <math.h> functions.
27470         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27471         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27472         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27473         of gl_MATHFUNC.
27474         * modules/acos (configure.ac): Likewise.
27475         * modules/asin (configure.ac): Likewise.
27476         * modules/atan (configure.ac): Likewise.
27477         * modules/atan2 (configure.ac): Likewise.
27478         * modules/cbrt (configure.ac): Likewise.
27479         * modules/copysign (configure.ac): Likewise.
27480         * modules/cos (configure.ac): Likewise.
27481         * modules/cosh (configure.ac): Likewise.
27482         * modules/erf (configure.ac): Likewise.
27483         * modules/erfc (configure.ac): Likewise.
27484         * modules/exp (configure.ac): Likewise.
27485         * modules/fmod (configure.ac): Likewise.
27486         * modules/hypot (configure.ac): Likewise.
27487         * modules/j0 (configure.ac): Likewise.
27488         * modules/j1 (configure.ac): Likewise.
27489         * modules/jn (configure.ac): Likewise.
27490         * modules/lgamma (configure.ac): Likewise.
27491         * modules/log (configure.ac): Likewise.
27492         * modules/log10 (configure.ac): Likewise.
27493         * modules/log1p (configure.ac): Likewise.
27494         * modules/pow (configure.ac): Likewise.
27495         * modules/remainder (configure.ac): Likewise.
27496         * modules/sin (configure.ac): Likewise.
27497         * modules/sinh (configure.ac): Likewise.
27498         * modules/tan (configure.ac): Likewise.
27499         * modules/tanh (configure.ac): Likewise.
27500         * modules/y0 (configure.ac): Likewise.
27501         * modules/y1 (configure.ac): Likewise.
27502         * modules/yn (configure.ac): Likewise.
27503         Suggested by Paolo Bonzini.
27504
27505 2010-01-31  Bruno Haible  <bruno@clisp.org>
27506
27507         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27508
27509 2010-01-31  Bruno Haible  <bruno@clisp.org>
27510
27511         Work around getdelim() bug on FreeBSD 8.0.
27512         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27513         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27514         not work.
27515         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27516         is 1.
27517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27518         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27519         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27520         a non-zero size.
27521         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27522
27523 2010-01-31  Bruno Haible  <bruno@clisp.org>
27524
27525         Work around getline() bug on FreeBSD 8.0.
27526         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27527         and a non-zero size.
27528         * tests/test-getline.c (main): Likewise.
27529         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27530         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27531
27532 2010-01-28  Eric Blake  <ebb9@byu.net>
27533
27534         regex: fix build failure
27535         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27536         platforms.
27537
27538 2010-01-28  Jim Meyering  <meyering@redhat.com>
27539
27540         regex: do not ignore memory allocation failure
27541         * lib/regex_internal.c (create_cd_newstate): Detect
27542         re_node_set_init_copy failure.   Extracted from glibc commit
27543         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27544
27545         regex: sync more white-space changes from libc
27546         * lib/regex_internal.c: White-space only changes.
27547         * lib/regexec.c: Likewise.
27548
27549         regex: add many uses of __attribute_warn_unused_result__
27550         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27551         * lib/regexec.c: Likewise.
27552         Extracted from a messy glibc commit.
27553
27554         regcomp.c: spelling and merge-artifact from glibc
27555         * lib/regcomp.c: Merge remainder of glibc's
27556         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27557
27558         regcomp.c: sync white-space changes from glibc
27559         * lib/regcomp.c: Merge to accommodate white space
27560         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27561
27562         regcomp.c: do not ignore internal return values
27563         * lib/regcomp.c: Do not ignore internal return values.
27564         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27565         but without its white-space changes and spelling fixes.
27566
27567         regex_internal.h: define __attribute_warn_unused_result__
27568         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27569
27570         maint: add a syntax-check rule to check for vulnerable Makefile.in
27571         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27572
27573 2010-01-27  Jim Meyering  <meyering@redhat.com>
27574
27575         ncftpput-ftp: clean up spaces
27576         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27577         Remove trailing blanks.
27578
27579 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27580
27581         * build-aux/git-version-gen: Fix copyright statement.
27582         * build-aux/gnupload: Likewise.
27583         * tests/test-arcfour.c: Likewise.
27584         * tests/test-arctwo.c: Likewise.
27585         * tests/test-count-one-bits.c: Likewise.
27586         * tests/test-crc.c: Likewise.
27587         * tests/test-des.c: Likewise.
27588         * tests/test-gc-arcfour.c: Likewise.
27589         * tests/test-gc-arctwo.c: Likewise.
27590         * tests/test-gc-des.c: Likewise.
27591         * tests/test-gc-hmac-md5.c: Likewise.
27592         * tests/test-gc-hmac-sha1.c: Likewise.
27593         * tests/test-gc-md2.c: Likewise.
27594         * tests/test-gc-md4.c: Likewise.
27595         * tests/test-gc-md5.c: Likewise.
27596         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27597         * tests/test-gc-rijndael.c: Likewise.
27598         * tests/test-gc-sha1.c: Likewise.
27599         * tests/test-gc.c: Likewise.
27600         * tests/test-gethostname.c: Likewise.
27601         * tests/test-gettimeofday.c: Likewise.
27602         * tests/test-hash.c: Likewise.
27603         * tests/test-hmac-md5.c: Likewise.
27604         * tests/test-hmac-sha1.c: Likewise.
27605         * tests/test-md2.c: Likewise.
27606         * tests/test-md4.c: Likewise.
27607         * tests/test-md5.c: Likewise.
27608         * tests/test-memchr.c: Likewise.
27609         * tests/test-memchr2.c: Likewise.
27610         * tests/test-memcmp.c: Likewise.
27611         * tests/test-memmem.c: Likewise.
27612         * tests/test-memrchr.c: Likewise.
27613         * tests/test-rawmemchr.c: Likewise.
27614         * tests/test-read-file.c: Likewise.
27615         * tests/test-rijndael.c: Likewise.
27616         * tests/test-sockets.c: Likewise.
27617         * tests/test-strchrnul.c: Likewise.
27618         * tests/test-strstr.c: Likewise.
27619         * tests/test-strtod.c: Likewise.
27620         * build-aux/ncftpput-ftp: Likewise.
27621
27622 2010-01-26  Eric Blake  <ebb9@byu.net>
27623
27624         ignore-value: update recommended header name
27625         * modules/ignore-value (Include): Only use <> for headers that
27626         exist in glibc.
27627
27628 2010-01-26  Jim Meyering  <meyering@redhat.com>
27629
27630         test-userspec.c: avoid compiler warnings
27631         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27632         and "initialization discards qualifiers..." warnings.
27633         Put the first "uid" in its own scope, and make char* members "const".
27634
27635 2010-01-25  Bruno Haible  <bruno@clisp.org>
27636
27637         gnulib-tool: Make warning diagnostics consistent.
27638         * gnulib-tool (func_warning): New function.
27639         Use it everywhere where gnulib-tool produces output to stderr and it is
27640         not a fatal error.
27641
27642 2010-01-25  Bruno Haible  <bruno@clisp.org>
27643
27644         Fix test dependencies.
27645         * modules/xstrtol-tests (Depends-on): Add inttypes.
27646         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27647
27648 2010-01-25 Pádraig Brady <P@draigBrady.com>
27649
27650         syntax-check: detect incorrect boolean macro values in config.h
27651         * modules/maintainer-makefile (configure.ac): Parameterize the location
27652         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27653         The logic is from Eric Blake and the location indicated by Jim Meyering.
27654         Note the more natural CONFIG_HEADER name is prohibited by automake
27655         for backwards compatibility reasons.
27656         * top/maint.mk (sc_Wundef_boolean): New rule.
27657
27658 2010-01-25  Jim Meyering  <meyering@redhat.com>
27659
27660         bootstrap: detect MacOS 10.6's shasum, too
27661         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27662         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27663
27664 2010-01-23  Jim Meyering  <meyering@redhat.com>
27665
27666         xstrtoll: new module
27667         * modules/xstrtoll: New file.
27668         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27669         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27670         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27671         ./configure fails if you use this module and lack "long long".
27672         * modules/xstrtoll-tests: New module.
27673         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27674         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27675         new init.sh-based test framework.
27676
27677 2010-01-24  Bruno Haible  <bruno@clisp.org>
27678
27679         Tests for module 'yn'.
27680         * modules/yn-tests: New file.
27681         * tests/test-yn.c: New file.
27682
27683         Tests for module 'y1'.
27684         * modules/y1-tests: New file.
27685         * tests/test-y1.c: New file.
27686
27687         Tests for module 'y0'.
27688         * modules/y0-tests: New file.
27689         * tests/test-y0.c: New file.
27690
27691         Tests for module 'tanh'.
27692         * modules/tanh-tests: New file.
27693         * tests/test-tanh.c: New file.
27694
27695         Tests for module 'tan'.
27696         * modules/tan-tests: New file.
27697         * tests/test-tan.c: New file.
27698
27699         Tests for module 'sqrt'.
27700         * modules/sqrt-tests: New file.
27701         * tests/test-sqrt.c: New file.
27702
27703         Tests for module 'sinh'.
27704         * modules/sinh-tests: New file.
27705         * tests/test-sinh.c: New file.
27706
27707         Tests for module 'sin'.
27708         * modules/sin-tests: New file.
27709         * tests/test-sin.c: New file.
27710
27711         Tests for module 'rint'.
27712         * modules/rint-tests: New file.
27713         * tests/test-rint.c: New file.
27714
27715         Tests for module 'remainder'.
27716         * modules/remainder-tests: New file.
27717         * tests/test-remainder.c: New file.
27718
27719         Tests for module 'pow'.
27720         * modules/pow-tests: New file.
27721         * tests/test-pow.c: New file.
27722
27723         Tests for module 'nextafter'.
27724         * modules/nextafter-tests: New file.
27725         * tests/test-nextafter.c: New file.
27726
27727         Tests for module 'modf'.
27728         * modules/modf-tests: New file.
27729         * tests/test-modf.c: New file.
27730
27731         Tests for module 'logb'.
27732         * modules/logb-tests: New file.
27733         * tests/test-logb.c: New file.
27734
27735         Tests for module 'log1p'.
27736         * modules/log1p-tests: New file.
27737         * tests/test-log1p.c: New file.
27738
27739         Tests for module 'log10'.
27740         * modules/log10-tests: New file.
27741         * tests/test-log10.c: New file.
27742
27743         Tests for module 'log'.
27744         * modules/log-tests: New file.
27745         * tests/test-log.c: New file.
27746
27747         Tests for module 'lgamma'.
27748         * modules/lgamma-tests: New file.
27749         * tests/test-lgamma.c: New file.
27750
27751         Tests for module 'ldexp'.
27752         * modules/ldexp-tests: New file.
27753         * tests/test-ldexp.c: New file.
27754
27755         Tests for module 'jn'.
27756         * modules/jn-tests: New file.
27757         * tests/test-jn.c: New file.
27758
27759         Tests for module 'j1'.
27760         * modules/j1-tests: New file.
27761         * tests/test-j1.c: New file.
27762
27763         Tests for module 'j0'.
27764         * modules/j0-tests: New file.
27765         * tests/test-j0.c: New file.
27766
27767         Tests for module 'hypot'.
27768         * modules/hypot-tests: New file.
27769         * tests/test-hypot.c: New file.
27770
27771         Tests for module 'fmod'.
27772         * modules/fmod-tests: New file.
27773         * tests/test-fmod.c: New file.
27774
27775         Tests for module 'fabs'.
27776         * modules/fabs-tests: New file.
27777         * tests/test-fabs.c: New file.
27778
27779         Tests for module 'exp'.
27780         * modules/exp-tests: New file.
27781         * tests/test-exp.c: New file.
27782
27783         Tests for module 'erfc'.
27784         * modules/erfc-tests: New file.
27785         * tests/test-erfc.c: New file.
27786
27787         Tests for module 'erf'.
27788         * modules/erf-tests: New file.
27789         * tests/test-erf.c: New file.
27790
27791         Tests for module 'cosh'.
27792         * modules/cosh-tests: New file.
27793         * tests/test-cosh.c: New file.
27794
27795         Tests for module 'cos'.
27796         * modules/cos-tests: New file.
27797         * tests/test-cos.c: New file.
27798
27799         Tests for module 'copysign'.
27800         * modules/copysign-tests: New file.
27801         * tests/test-copysign.c: New file.
27802
27803         Tests for module 'cbrt'.
27804         * modules/cbrt-tests: New file.
27805         * tests/test-cbrt.c: New file.
27806
27807         Tests for module 'atan2'.
27808         * modules/atan2-tests: New file.
27809         * tests/test-atan2.c: New file.
27810
27811         Tests for module 'atan'.
27812         * modules/atan-tests: New file.
27813         * tests/test-atan.c: New file.
27814
27815         Tests for module 'asin'.
27816         * modules/asin-tests: New file.
27817         * tests/test-asin.c: New file.
27818
27819         Tests for module 'acos'.
27820         * modules/acos-tests: New file.
27821         * tests/test-acos.c: New file.
27822
27823 2010-01-24  Bruno Haible  <bruno@clisp.org>
27824
27825         Fix tests for common <math.h> functions.
27826         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27827         code snippet that references the function pointer, rather than merely
27828         calling the function. Substitute the FUNC_LIBM variable.
27829         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27830         * modules/acos (configure.ac): Likewise.
27831         * modules/asin (configure.ac): Likewise.
27832         * modules/atan (configure.ac): Likewise.
27833         * modules/atan2 (configure.ac): Likewise.
27834         * modules/cbrt (configure.ac): Likewise.
27835         * modules/copysign (configure.ac): Likewise.
27836         * modules/cos (configure.ac): Likewise.
27837         * modules/cosh (configure.ac): Likewise.
27838         * modules/erf (configure.ac): Likewise.
27839         * modules/erfc (configure.ac): Likewise.
27840         * modules/exp (configure.ac): Likewise.
27841         * modules/fabs (configure.ac): Likewise.
27842         * modules/fmod (configure.ac): Likewise.
27843         * modules/hypot (configure.ac): Likewise.
27844         * modules/j0 (configure.ac): Likewise.
27845         * modules/j1 (configure.ac): Likewise.
27846         * modules/jn (configure.ac): Likewise.
27847         * modules/ldexp (configure.ac): Likewise.
27848         * modules/lgamma (configure.ac): Likewise.
27849         * modules/log (configure.ac): Likewise.
27850         * modules/log10 (configure.ac): Likewise.
27851         * modules/log1p (configure.ac): Likewise.
27852         * modules/logb (configure.ac): Likewise.
27853         * modules/modf (configure.ac): Likewise.
27854         * modules/nextafter (configure.ac): Likewise.
27855         * modules/pow (configure.ac): Likewise.
27856         * modules/remainder (configure.ac): Likewise.
27857         * modules/rint (configure.ac): Likewise.
27858         * modules/sin (configure.ac): Likewise.
27859         * modules/sinh (configure.ac): Likewise.
27860         * modules/tan (configure.ac): Likewise.
27861         * modules/tanh (configure.ac): Likewise.
27862         * modules/y0 (configure.ac): Likewise.
27863         * modules/y1 (configure.ac): Likewise.
27864         * modules/yn (configure.ac): Likewise.
27865
27866 2010-01-24  Bruno Haible  <bruno@clisp.org>
27867
27868         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27869         * tests/test-acosl.c (x): New variable.
27870         (main): Store argument in x and fetch it from x.
27871         * tests/test-asinl.c (x): New variable.
27872         (main): Store argument in x and fetch it from x.
27873         * tests/test-atanl.c (x): New variable.
27874         (main): Store argument in x and fetch it from x.
27875         * tests/test-cosl.c (x): New variable.
27876         (main): Store argument in x and fetch it from x.
27877         * tests/test-expl.c (x): New variable.
27878         (main): Store argument in x and fetch it from x.
27879         * tests/test-logl.c (x): New variable.
27880         (main): Store argument in x and fetch it from x.
27881         * tests/test-sinl.c (x): New variable.
27882         (main): Store argument in x and fetch it from x.
27883         * tests/test-sqrtl.c (x): New variable.
27884         (main): Store argument in x and fetch it from x.
27885         * tests/test-tanl.c (x): New variable.
27886         (main): Store argument in x and fetch it from x.
27887
27888 2010-01-24  Bruno Haible  <bruno@clisp.org>
27889
27890         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27891         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27892         assignments to the initial TESTS_ENVIRONMENT.
27893         * doc/gnulib.texi (Unit test modules): Document it.
27894         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27895         TESTS_ENVIRONMENT.
27896         * modules/btowc-tests (Makefile.am): Likewise.
27897         * modules/c-stack-tests (Makefile.am): Likewise.
27898         * modules/c-strcase-tests (Makefile.am): Likewise.
27899         * modules/copy-file-tests (Makefile.am): Likewise.
27900         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27901         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27902         * modules/mbrtowc-tests (Makefile.am): Likewise.
27903         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27904         * modules/mbscasestr-tests (Makefile.am): Likewise.
27905         * modules/mbschr-tests (Makefile.am): Likewise.
27906         * modules/mbscspn-tests (Makefile.am): Likewise.
27907         * modules/mbsinit-tests (Makefile.am): Likewise.
27908         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27909         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27910         * modules/mbspbrk-tests (Makefile.am): Likewise.
27911         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27912         * modules/mbsrchr-tests (Makefile.am): Likewise.
27913         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27914         * modules/mbsspn-tests (Makefile.am): Likewise.
27915         * modules/mbsstr-tests (Makefile.am): Likewise.
27916         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27917         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27918         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27919         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27920         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27921         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27922         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27923         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27924         * modules/wcrtomb-tests (Makefile.am): Likewise.
27925         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27926         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27927         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27928         assignments from TESTS_ENVIRONMENT.
27929         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27930         augmentation.
27931         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27932         * modules/atexit-tests (Makefile.am): Likewise.
27933         * modules/binary-io-tests (Makefile.am): Likewise.
27934         * modules/closein-tests (Makefile.am): Likewise.
27935         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27936         * modules/exclude-tests (Makefile.am): Likewise.
27937         * modules/fflush-tests (Makefile.am): Likewise.
27938         * modules/fpending-tests (Makefile.am): Likewise.
27939         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27940         * modules/freadahead-tests (Makefile.am): Likewise.
27941         * modules/freadptr-tests (Makefile.am): Likewise.
27942         * modules/freadseek-tests (Makefile.am): Likewise.
27943         * modules/fseek-tests (Makefile.am): Likewise.
27944         * modules/fseeko-tests (Makefile.am): Likewise.
27945         * modules/ftell-tests (Makefile.am): Likewise.
27946         * modules/ftello-tests (Makefile.am): Likewise.
27947         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27948         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27949         * modules/lseek-tests (Makefile.am): Likewise.
27950         * modules/parse-duration-tests (Makefile.am): Likewise.
27951         * modules/perror-tests (Makefile.am): Likewise.
27952         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27953         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27954         * modules/pipe-tests (Makefile.am): Likewise.
27955         * modules/pread-tests (Makefile.am): Likewise.
27956         * modules/printf-posix-tests (Makefile.am): Likewise.
27957         * modules/select-tests (Makefile.am): Likewise.
27958         * modules/sigpipe-tests (Makefile.am): Likewise.
27959         * modules/tsearch-tests (Makefile.am): Likewise.
27960         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27961         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27962         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27963         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27964         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27965         * modules/version-etc-tests (Makefile.am): Likewise.
27966         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27967         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27968         * modules/xalloc-die-tests (Makefile.am): Likewise.
27969         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27970         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27971         * modules/xstrtol-tests (Makefile.am): Likewise.
27972         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27973         * modules/yesno-tests (Makefile.am): Likewise.
27974         Suggested by Jim Meyering.
27975
27976 2010-01-24  Bruno Haible  <bruno@clisp.org>
27977
27978         More documentation.
27979         * doc/gnulib.texi (Writing modules): New chapter.
27980         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27981         the new chapter.
27982
27983 2010-01-24  Jim Meyering  <meyering@redhat.com>
27984
27985         maint.mk: do not prepend "./" after filtering
27986         * top/maint.mk (_prepend_srcdir_prefix): New variable
27987         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27988         "./" when $(srcdir) is ".".
27989
27990         define STREQ(a,b) consistently, removing useless parentheses
27991         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27992         since the only risk is that "a" or "b" contains an unparenthesized
27993         comma, but if either did that, STREQ would have 3 or more arguments.
27994         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27995         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27996         * lib/hash-triple.c (STREQ): Likewise.
27997         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27998         * lib/getugroups.c (STREQ): Likewise.
27999
28000 2010-01-23  Jim Meyering  <meyering@redhat.com>
28001
28002         maint.mk: fix syntax-check in a non-srcdir build directory
28003         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28004         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28005
28006 2010-01-22  Jim Meyering  <meyering@redhat.com>
28007
28008         userspec: add unit tests
28009         * tests/test-userspec.c: New file.
28010         * modules/userspec-tests: Likewise.
28011
28012 2010-01-21  Jim Meyering  <meyering@redhat.com>
28013
28014         maint.mk: handle source file names containing "." robustly
28015         * top/maint.mk (_dot_escaped_srcdir): Define.
28016         (VC_LIST): Use it in LHS of sed substitution.
28017
28018 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28019
28020         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28021         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28022         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28023         from a non-srcdir build.
28024
28025 2010-01-20  Eric Blake  <ebb9@byu.net>
28026
28027         warn-on-use: use instead of link-warning
28028         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28029         * modules/unistd (Depends-on, Makefile.am): Likewise.
28030         * modules/arpa_inet (Depends-on): Replace link-warning with
28031         warn-on-use.
28032         (Makefile.am): Update rules accordingly.
28033         * modules/ctype (Depends-on, Makefile.am): Likewise.
28034         * modules/dirent (Depends-on, Makefile.am): Likewise.
28035         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28036         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28037         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28038         * modules/locale (Depends-on, Makefile.am): Likewise.
28039         * modules/math (Depends-on, Makefile.am): Likewise.
28040         * modules/search (Depends-on, Makefile.am): Likewise.
28041         * modules/signal (Depends-on, Makefile.am): Likewise.
28042         * modules/spawn (Depends-on, Makefile.am): Likewise.
28043         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28044         * modules/string (Depends-on, Makefile.am): Likewise.
28045         * modules/strings (Depends-on, Makefile.am): Likewise.
28046         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28047         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28048         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28049         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28050         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28051         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28052         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28053         * modules/wchar (Depends-on, Makefile.am): Likewise.
28054         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28055         should be poisoned.
28056         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28057         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28058         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28059         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28060         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28061         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28062         * m4/math_h.m4 (gl_MATH_H): Likewise.
28063         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28064         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28065         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28066         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28067         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28068         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28069         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28070         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28071         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28072         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28073         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28074         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28075         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28076         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28077         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28078         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28079         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28080         GL_LINK_WARNING.
28081         * lib/ctype.in.h: Likewise.
28082         * lib/dirent.in.h: Likewise.
28083         * lib/fcntl.in.h: Likewise.
28084         * lib/inttypes.in.h: Likewise.
28085         * lib/langinfo.in.h: Likewise.
28086         * lib/locale.in.h: Likewise.
28087         * lib/math.in.h: Likewise.
28088         * lib/search.in.h: Likewise.
28089         * lib/signal.in.h: Likewise.
28090         * lib/spawn.in.h: Likewise.
28091         * lib/stdio.in.h: Likewise.
28092         * lib/stdlib.in.h: Likewise.
28093         * lib/string.in.h: Likewise.
28094         * lib/strings.in.h: Likewise.
28095         * lib/sys_file.in.h: Likewise.
28096         * lib/sys_ioctl.in.h: Likewise.
28097         * lib/sys_select.in.h: Likewise.
28098         * lib/sys_socket.in.h: Likewise.
28099         * lib/sys_stat.in.h: Likewise.
28100         * lib/sys_times.in.h: Likewise.
28101         * lib/sys_utsname.in.h: Likewise.
28102         * lib/unistd.in.h: Likewise.
28103         * lib/wchar.in.h: Likewise.
28104
28105 2010-01-20  Bruno Haible  <bruno@clisp.org>
28106
28107         Avoid duplicate -lm.
28108         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28109         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28110         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28111         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28112         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28113         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28114         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28115         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28116         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28117         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28118         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28119         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28120         Reported by Paolo Bonzini.
28121
28122 2010-01-19  Bruno Haible  <bruno@clisp.org>
28123
28124         langinfo, nl_langinfo: Relicense under LGPLv2+.
28125         * modules/langinfo (License): Change to LGPLv2+.
28126         * modules/nl_langinfo (License): Likewise.
28127         Patch by David Lutterkort <lutter@redhat.com>.
28128
28129 2010-01-19  Bruno Haible  <bruno@clisp.org>
28130
28131         Avoid compilation error with cc on OSF/1 5.1.
28132         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28133         statement, not before.
28134         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28135
28136 2010-01-18  Bruno Haible  <bruno@clisp.org>
28137
28138         Avoid a link error due to the __printf__ symbol.
28139         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28140         and 2.6.x.
28141         (__format__, __printf__): Remove definitions.
28142         * lib/argp-fmtstream.h: Likewise.
28143         * lib/argp.h: Likewise.
28144         * lib/error.h: Likewise.
28145         * lib/vasnprintf.h: Likewise.
28146         * lib/xprintf.h: Likewise.
28147         * lib/xvasprintf.h: Likewise.
28148         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28149
28150 2010-01-18  Bruno Haible  <bruno@clisp.org>
28151
28152         Tests for module 'tanl'.
28153         * modules/tanl-tests: New file.
28154         * tests/test-tanl.c: New file.
28155
28156         Tests for module 'sqrtl'.
28157         * modules/sqrtl-tests: New file.
28158         * tests/test-sqrtl.c: New file.
28159
28160         Tests for module 'sinl'.
28161         * modules/sinl-tests: New file.
28162         * tests/test-sinl.c: New file.
28163
28164         Tests for module 'logl'.
28165         * modules/logl-tests: New file.
28166         * tests/test-logl.c: New file.
28167
28168         Tests for module 'expl'.
28169         * modules/expl-tests: New file.
28170         * tests/test-expl.c: New file.
28171
28172         Tests for module 'cosl'.
28173         * modules/cosl-tests: New file.
28174         * tests/test-cosl.c: New file.
28175
28176         Tests for module 'atanl'.
28177         * modules/atanl-tests: New file.
28178         * tests/test-atanl.c: New file.
28179
28180         Tests for module 'asinl'.
28181         * modules/asinl-tests: New file.
28182         * tests/test-asinl.c: New file.
28183
28184         Tests for module 'acosl'.
28185         * modules/acosl-tests: New file.
28186         * tests/test-acosl.c: New file.
28187
28188         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28189         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28190         tanl): Use the standard gnulib idiom.
28191         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28192         * lib/sinl.c: Likewise.
28193         * lib/tanl.c: Don't include trigl.c.
28194         (kernel_tanl): Make static.
28195         * lib/sincosl.c: Include trigl.h first.
28196         * lib/trigl.c: Likewise.
28197         * m4/acosl.m4: New file.
28198         * m4/asinl.m4: New file.
28199         * m4/atanl.m4: New file.
28200         * m4/cosl.m4: New file.
28201         * m4/expl.m4: New file.
28202         * m4/logl.m4: New file.
28203         * m4/sinl.m4: New file.
28204         * m4/sqrtl.m4: New file.
28205         * m4/tanl.m4: New file.
28206         * m4/mathl.m4: Remove file.
28207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28208         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28209         Don't initialize GNULIB_MATHL.
28210         * modules/acosl: New file.
28211         * modules/asinl: New file.
28212         * modules/atanl: New file.
28213         * modules/cosl: New file.
28214         * modules/expl: New file.
28215         * modules/logl: New file.
28216         * modules/sinl: New file.
28217         * modules/sqrtl: New file.
28218         * modules/tanl: New file.
28219         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28220         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28221         substitute GNULIB_MATHL.
28222         * modules/mathl: Rewritten.
28223         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28224         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28225         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28226         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28227         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28228         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28229         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28230         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28231         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28232
28233 2010-01-18  Bruno Haible  <bruno@clisp.org>
28234
28235         sqrt: Make gl_FUNC_SQRT requirable.
28236         * m4/sqrt.m4: New file.
28237         * modules/sqrt (Files): Add it.
28238         (configure.ac): Invoke gl_FUNC_SQRT.
28239
28240 2010-01-18  Bruno Haible  <bruno@clisp.org>
28241
28242         New modules for common <math.h> functions.
28243         * m4/mathfunc.m4: New file.
28244         * modules/acos: New file.
28245         * modules/asin: New file.
28246         * modules/atan: New file.
28247         * modules/atan2: New file.
28248         * modules/cbrt: New file.
28249         * modules/copysign: New file.
28250         * modules/cos: New file.
28251         * modules/cosh: New file.
28252         * modules/erf: New file.
28253         * modules/erfc: New file.
28254         * modules/exp: New file.
28255         * modules/fabs: New file.
28256         * modules/fmod: New file.
28257         * modules/hypot: New file.
28258         * modules/j0: New file.
28259         * modules/j1: New file.
28260         * modules/jn: New file.
28261         * modules/ldexp: New file.
28262         * modules/lgamma: New file.
28263         * modules/log: New file.
28264         * modules/log10: New file.
28265         * modules/log1p: New file.
28266         * modules/logb: New file.
28267         * modules/modf: New file.
28268         * modules/nextafter: New file.
28269         * modules/pow: New file.
28270         * modules/remainder: New file.
28271         * modules/rint: New file.
28272         * modules/sin: New file.
28273         * modules/sinh: New file.
28274         * modules/sqrt: New file.
28275         * modules/tan: New file.
28276         * modules/tanh: New file.
28277         * modules/y0: New file.
28278         * modules/y1: New file.
28279         * modules/yn: New file.
28280         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28281         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28282         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28283         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28284         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28285         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28286         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28287         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28288         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28289         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28290         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28291         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28292         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28293         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28294         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28295         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28296         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28297         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28298         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28299         * doc/posix-functions/log.texi: Mention the 'log' module.
28300         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28301         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28302         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28303         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28304         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28305         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28306         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28307         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28308         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28309         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28310         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28311         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28312         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28313         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28314         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28315         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28316
28317 2010-01-18  Jim Meyering  <meyering@redhat.com>
28318
28319         ignore-value: relax license to LGPLv2+
28320         * modules/ignore-value (License): Relax to LGPLv2+.
28321
28322         getdate: don't leak when TZ contains two or more '"'s
28323         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28324         double quote in TZ after the first one.
28325
28326         readtokens: do not leak internal token_lengths buffer
28327         * lib/readtokens.c (readtokens): Free the local, lengths,
28328         when the supplied "token_lengths" parameter is NULL.
28329
28330 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28331
28332         Fix a couple of missing LIBTHREAD link failures on AIX.
28333         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28334         $(LIBTHREAD).
28335         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28336
28337         Link test-poll against INET_PTON_LIB.
28338         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28339         for inet_pton on Solaris 10.
28340
28341 2010-01-17  Bruno Haible  <bruno@clisp.org>
28342
28343         unistdio/*-sprintf: Fix typo in module description.
28344         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28345         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28346         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28347         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28348         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28349         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28350         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28351         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28352
28353 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28354
28355         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28356         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28357         variables in shell case patterns, for AIX and HP-UX ksh.
28358
28359         Split large sed scripts, for HP-UX sed.
28360         * modules/stdio: Split sed scripts around 50 sed commands,
28361         to avoid HP-UX limit of 99 commands, in the near future.
28362         * modules/string: Likewise.
28363         * modules/unistd: Likewise.
28364
28365         gnulib-tool: avoid writing in the current directory.
28366         * gnulib-tool (func_emit_lib_Makefile_am)
28367         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28368         not in the current directory, so concurrent gnulib-tool
28369         instances do not interfere.
28370
28371 2010-01-16  Jim Meyering  <meyering@redhat.com>
28372
28373         doc: update users.txt
28374         * users.txt: Add grep.
28375         (diffutils, gzip): Update URLs.
28376
28377 2010-01-12  Bruno Haible  <bruno@clisp.org>
28378
28379         posix_spawn: Avoid test failure on Cygwin.
28380         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28381         characters.
28382         Reported by Simon Josefsson.
28383
28384 2010-01-12  Bruno Haible  <bruno@clisp.org>
28385
28386         * tests/test-cond.c (main): When skipping the test, show the reason.
28387
28388 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28389
28390         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28391
28392 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28393
28394         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28395         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28396
28397 2010-01-12  Eric Blake  <ebb9@byu.net>
28398
28399         build: guarantee AS_VAR_IF
28400         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28401         (gl_AS_VAR_IF): Move...
28402         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28403         Reported by Simon Josefsson.
28404
28405 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28406
28407         * lib/stdio.in.h: Fix typo.
28408
28409 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28410
28411         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28412         libgpg-error.
28413
28414 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28415
28416         * tests/test-xalloc-die.sh: Use $EXEEXT.
28417
28418 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28419             Bruno Haible  <bruno@clisp.org>
28420
28421         getlogin, getlogin_r: Avoid test failure.
28422         * tests/test-getlogin.c: Include <stdio.h>.
28423         (main): Skip the test when the function fails because stdin is not a
28424         tty.
28425         * tests/test-getlogin_r.c: Include <stdio.h>.
28426         (main): Skip the test when the function fails because stdin is not a
28427         tty.
28428
28429 2010-01-11  Eric Blake  <ebb9@byu.net>
28430
28431         tests: avoid more large file warnings
28432         * tests/test-fflush.c: Avoid warning about ftell use.
28433         * tests/test-fseek.c: Avoid warning about fseek use.
28434
28435 2010-01-10  Bruno Haible  <bruno@clisp.org>
28436
28437         nproc: Work better on Linux when /proc and /sys are not mounted.
28438         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28439         as lower bound when, on glibc/Linux systems,
28440         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28441         Suggested by Pádraig Brady <P@draigbrady.com>.
28442         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28443
28444         nproc: Refactor.
28445         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28446         extracted from num_processors.
28447         (num_processors): Call it.
28448
28449 2010-01-11  Jim Meyering  <meyering@redhat.com>
28450
28451         utimecmp: avoid new warning from upcoming gcc-4.5.0
28452         * lib/utimecmp.c (BILLION): Define using #define rather than an
28453         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28454
28455 2010-01-11  Eric Blake  <ebb9@byu.net>
28456
28457         math: add portability warnings for classification macros
28458         * modules/math (Depends-on): Add warn-on-use.
28459         (Makefile.am): Provide new substitutions.
28460         * m4/math_h.m4 (gl_MATH_H): Require inline.
28461         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28462         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28463         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28464         implement warnings.
28465
28466         unistd: warn on use of environ without module
28467         * modules/unistd (Depends-on): Add warn-on-use.
28468         (Makefile.am): Provide new substitutions.
28469         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28470         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28471
28472         stdio: warn on suspicious uses
28473         * modules/stdio (Depends-on): Add warn-on-use.
28474         (Makefile.am): Provide new substitutions.
28475         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28476         fseeko.
28477         * lib/stdio.in.h (gets): Always warn on use.
28478         (fseek, ftell): Adjust when warnings are issued, and honor
28479         _GL_NO_LARGE_FILES as a way to silence the warning.
28480         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28481         any warning about large file offsets.
28482         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28483         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28484         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28485         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28486         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28487         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28488         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28489         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28490
28491         warn-on-use: new module
28492         * modules/warn-on-use: New file.
28493         * build-aux/warn-on-use.h: Likewise.
28494         * m4/warn-on-use.m4: Likewise.
28495         * MODULES.html.sh (Support for building): Mention it.
28496
28497 2010-01-10  Bruno Haible  <bruno@clisp.org>
28498
28499         Tests for module 'unistr/u32-strdup'.
28500         * modules/unistr/u32-strdup-tests: New file.
28501         * tests/unistr/test-u32-strdup.c: New file.
28502
28503         Tests for module 'unistr/u16-strdup'.
28504         * modules/unistr/u16-strdup-tests: New file.
28505         * tests/unistr/test-u16-strdup.c: New file.
28506
28507         Tests for module 'unistr/u8-strdup'.
28508         * modules/unistr/u8-strdup-tests: New file.
28509         * tests/unistr/test-u8-strdup.c: New file.
28510         * tests/unistr/test-strdup.h: New file.
28511
28512         Tests for module 'unistr/u32-strncmp'.
28513         * modules/unistr/u32-strncmp-tests: New file.
28514         * tests/unistr/test-u32-strncmp.c: New file.
28515
28516         Tests for module 'unistr/u16-strncmp'.
28517         * modules/unistr/u16-strncmp-tests: New file.
28518         * tests/unistr/test-u16-strncmp.c: New file.
28519
28520         Tests for module 'unistr/u8-strncmp'.
28521         * modules/unistr/u8-strncmp-tests: New file.
28522         * tests/unistr/test-u8-strncmp.c: New file.
28523         * tests/unistr/test-strncmp.h: New file.
28524
28525         Tests for module 'unistr/u32-strcoll'.
28526         * modules/unistr/u32-strcoll-tests: New file.
28527         * tests/unistr/test-u32-strcoll.c: New file.
28528
28529         Tests for module 'unistr/u16-strcoll'.
28530         * modules/unistr/u16-strcoll-tests: New file.
28531         * tests/unistr/test-u16-strcoll.c: New file.
28532
28533         Tests for module 'unistr/u8-strcoll'.
28534         * modules/unistr/u8-strcoll-tests: New file.
28535         * tests/unistr/test-u8-strcoll.c: New file.
28536
28537         Tests for module 'unistr/u32-strcmp'.
28538         * modules/unistr/u32-strcmp-tests: New file.
28539         * tests/unistr/test-u32-strcmp.c: New file.
28540         * tests/unistr/test-u32-strcmp.h: New file.
28541
28542         Tests for module 'unistr/u16-strcmp'.
28543         * modules/unistr/u16-strcmp-tests: New file.
28544         * tests/unistr/test-u16-strcmp.c: New file.
28545         * tests/unistr/test-u16-strcmp.h: New file.
28546
28547         Tests for module 'unistr/u8-strcmp'.
28548         * modules/unistr/u8-strcmp-tests: New file.
28549         * tests/unistr/test-u8-strcmp.c: New file.
28550         * tests/unistr/test-u8-strcmp.h: New file.
28551         * tests/unistr/test-strcmp.h: New file.
28552
28553         Tests for module 'unistr/u32-strncat'.
28554         * modules/unistr/u32-strncat-tests: New file.
28555         * tests/unistr/test-u32-strncat.c: New file.
28556
28557         Tests for module 'unistr/u16-strncat'.
28558         * modules/unistr/u16-strncat-tests: New file.
28559         * tests/unistr/test-u16-strncat.c: New file.
28560
28561         Tests for module 'unistr/u8-strncat'.
28562         * modules/unistr/u8-strncat-tests: New file.
28563         * tests/unistr/test-u8-strncat.c: New file.
28564         * tests/unistr/test-strncat.h: New file.
28565
28566         Tests for module 'unistr/u32-strcat'.
28567         * modules/unistr/u32-strcat-tests: New file.
28568         * tests/unistr/test-u32-strcat.c: New file.
28569
28570         Tests for module 'unistr/u16-strcat'.
28571         * modules/unistr/u16-strcat-tests: New file.
28572         * tests/unistr/test-u16-strcat.c: New file.
28573
28574         Tests for module 'unistr/u8-strcat'.
28575         * modules/unistr/u8-strcat-tests: New file.
28576         * tests/unistr/test-u8-strcat.c: New file.
28577         * tests/unistr/test-strcat.h: New file.
28578
28579         Tests for module 'unistr/u32-stpncpy'.
28580         * modules/unistr/u32-stpncpy-tests: New file.
28581         * tests/unistr/test-u32-stpncpy.c: New file.
28582
28583         Tests for module 'unistr/u16-stpncpy'.
28584         * modules/unistr/u16-stpncpy-tests: New file.
28585         * tests/unistr/test-u16-stpncpy.c: New file.
28586
28587         Tests for module 'unistr/u8-stpncpy'.
28588         * modules/unistr/u8-stpncpy-tests: New file.
28589         * tests/unistr/test-u8-stpncpy.c: New file.
28590         * tests/unistr/test-stpncpy.h: New file.
28591
28592         Tests for module 'unistr/u32-strncpy'.
28593         * modules/unistr/u32-strncpy-tests: New file.
28594         * tests/unistr/test-u32-strncpy.c: New file.
28595
28596         Tests for module 'unistr/u16-strncpy'.
28597         * modules/unistr/u16-strncpy-tests: New file.
28598         * tests/unistr/test-u16-strncpy.c: New file.
28599
28600         Tests for module 'unistr/u8-strncpy'.
28601         * modules/unistr/u8-strncpy-tests: New file.
28602         * tests/unistr/test-u8-strncpy.c: New file.
28603         * tests/unistr/test-strncpy.h: New file.
28604
28605         Tests for module 'unistr/u32-stpcpy'.
28606         * modules/unistr/u32-stpcpy-tests: New file.
28607         * tests/unistr/test-u32-stpcpy.c: New file.
28608
28609         Tests for module 'unistr/u16-stpcpy'.
28610         * modules/unistr/u16-stpcpy-tests: New file.
28611         * tests/unistr/test-u16-stpcpy.c: New file.
28612
28613         Tests for module 'unistr/u8-stpcpy'.
28614         * modules/unistr/u8-stpcpy-tests: New file.
28615         * tests/unistr/test-u8-stpcpy.c: New file.
28616         * tests/unistr/test-stpcpy.h: New file.
28617
28618         Tests for module 'unistr/u32-strcpy'.
28619         * modules/unistr/u32-strcpy-tests: New file.
28620         * tests/unistr/test-u32-strcpy.c: New file.
28621
28622         Tests for module 'unistr/u16-strcpy'.
28623         * modules/unistr/u16-strcpy-tests: New file.
28624         * tests/unistr/test-u16-strcpy.c: New file.
28625
28626         Tests for module 'unistr/u8-strcpy'.
28627         * modules/unistr/u8-strcpy-tests: New file.
28628         * tests/unistr/test-u8-strcpy.c: New file.
28629         * tests/unistr/test-strcpy.h: New file.
28630
28631         Tests for module 'unistr/u32-strnlen'.
28632         * modules/unistr/u32-strnlen-tests: New file.
28633         * tests/unistr/test-u32-strnlen.c: New file.
28634
28635         Tests for module 'unistr/u16-strnlen'.
28636         * modules/unistr/u16-strnlen-tests: New file.
28637         * tests/unistr/test-u16-strnlen.c: New file.
28638
28639         Tests for module 'unistr/u8-strnlen'.
28640         * modules/unistr/u8-strnlen-tests: New file.
28641         * tests/unistr/test-u8-strnlen.c: New file.
28642         * tests/unistr/test-strnlen.h: New file.
28643
28644         Tests for module 'unistr/u32-strlen'.
28645         * modules/unistr/u32-strlen-tests: New file.
28646         * tests/unistr/test-u32-strlen.c: New file.
28647
28648         Tests for module 'unistr/u16-strlen'.
28649         * modules/unistr/u16-strlen-tests: New file.
28650         * tests/unistr/test-u16-strlen.c: New file.
28651
28652         Tests for module 'unistr/u8-strlen'.
28653         * modules/unistr/u8-strlen-tests: New file.
28654         * tests/unistr/test-u8-strlen.c: New file.
28655
28656         Tests for module 'unistr/u32-prev'.
28657         * modules/unistr/u32-prev-tests: New file.
28658         * tests/unistr/test-u32-prev.c: New file.
28659
28660         Tests for module 'unistr/u16-prev'.
28661         * modules/unistr/u16-prev-tests: New file.
28662         * tests/unistr/test-u16-prev.c: New file.
28663
28664         Tests for module 'unistr/u8-prev'.
28665         * modules/unistr/u8-prev-tests: New file.
28666         * tests/unistr/test-u8-prev.c: New file.
28667
28668         Tests for module 'unistr/u32-next'.
28669         * modules/unistr/u32-next-tests: New file.
28670         * tests/unistr/test-u32-next.c: New file.
28671
28672         Tests for module 'unistr/u16-next'.
28673         * modules/unistr/u16-next-tests: New file.
28674         * tests/unistr/test-u16-next.c: New file.
28675
28676         Tests for module 'unistr/u8-next'.
28677         * modules/unistr/u8-next-tests: New file.
28678         * tests/unistr/test-u8-next.c: New file.
28679
28680         Tests for module 'unistr/u32-strmbtouc'.
28681         * modules/unistr/u32-strmbtouc-tests: New file.
28682         * tests/unistr/test-u32-strmbtouc.c: New file.
28683
28684         Tests for module 'unistr/u16-strmbtouc'.
28685         * modules/unistr/u16-strmbtouc-tests: New file.
28686         * tests/unistr/test-u16-strmbtouc.c: New file.
28687
28688         Tests for module 'unistr/u8-strmbtouc'.
28689         * modules/unistr/u8-strmbtouc-tests: New file.
28690         * tests/unistr/test-u8-strmbtouc.c: New file.
28691
28692         Tests for module 'unistr/u32-strmblen'.
28693         * modules/unistr/u32-strmblen-tests: New file.
28694         * tests/unistr/test-u32-strmblen.c: New file.
28695
28696         Tests for module 'unistr/u16-strmblen'.
28697         * modules/unistr/u16-strmblen-tests: New file.
28698         * tests/unistr/test-u16-strmblen.c: New file.
28699
28700         Tests for module 'unistr/u8-strmblen'.
28701         * modules/unistr/u8-strmblen-tests: New file.
28702         * tests/unistr/test-u8-strmblen.c: New file.
28703
28704         Tests for module 'unistr/u32-cpy-alloc'.
28705         * modules/unistr/u32-cpy-alloc-tests: New file.
28706         * tests/unistr/test-u32-cpy-alloc.c: New file.
28707
28708         Tests for module 'unistr/u16-cpy-alloc'.
28709         * modules/unistr/u16-cpy-alloc-tests: New file.
28710         * tests/unistr/test-u16-cpy-alloc.c: New file.
28711
28712         Tests for module 'unistr/u8-cpy-alloc'.
28713         * modules/unistr/u8-cpy-alloc-tests: New file.
28714         * tests/unistr/test-u8-cpy-alloc.c: New file.
28715         * tests/unistr/test-cpy-alloc.h: New file.
28716
28717         Tests for module 'unistr/u32-mbsnlen'.
28718         * modules/unistr/u32-mbsnlen-tests: New file.
28719         * tests/unistr/test-u32-mbsnlen.c: New file.
28720
28721         Tests for module 'unistr/u16-mbsnlen'.
28722         * modules/unistr/u16-mbsnlen-tests: New file.
28723         * tests/unistr/test-u16-mbsnlen.c: New file.
28724
28725         Tests for module 'unistr/u8-mbsnlen'.
28726         * modules/unistr/u8-mbsnlen-tests: New file.
28727         * tests/unistr/test-u8-mbsnlen.c: New file.
28728
28729         Tests for module 'unistr/u32-chr'.
28730         * modules/unistr/u32-chr-tests: New file.
28731         * tests/unistr/test-u32-chr.c: New file.
28732
28733         Tests for module 'unistr/u16-chr'.
28734         * modules/unistr/u16-chr-tests: New file.
28735         * tests/unistr/test-u16-chr.c: New file.
28736
28737         Tests for module 'unistr/u8-chr'.
28738         * modules/unistr/u8-chr-tests: New file.
28739         * tests/unistr/test-u8-chr.c: New file.
28740         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28741
28742         Tests for module 'unistr/u32-cmp2'.
28743         * modules/unistr/u32-cmp2-tests: New file.
28744         * tests/unistr/test-u32-cmp2.c: New file.
28745
28746         Tests for module 'unistr/u16-cmp2'.
28747         * modules/unistr/u16-cmp2-tests: New file.
28748         * tests/unistr/test-u16-cmp2.c: New file.
28749
28750         Tests for module 'unistr/u8-cmp2'.
28751         * modules/unistr/u8-cmp2-tests: New file.
28752         * tests/unistr/test-u8-cmp2.c: New file.
28753         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28754
28755         Tests for module 'unistr/u32-cmp'.
28756         * modules/unistr/u32-cmp-tests: New file.
28757         * tests/unistr/test-u32-cmp.c: New file.
28758
28759         Tests for module 'unistr/u16-cmp'.
28760         * modules/unistr/u16-cmp-tests: New file.
28761         * tests/unistr/test-u16-cmp.c: New file.
28762
28763         Tests for module 'unistr/u8-cmp'.
28764         * modules/unistr/u8-cmp-tests: New file.
28765         * tests/unistr/test-u8-cmp.c: New file.
28766         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28767
28768         Tests for module 'unistr/u32-set'.
28769         * modules/unistr/u32-set-tests: New file.
28770         * tests/unistr/test-u32-set.c: New file.
28771
28772         Tests for module 'unistr/u16-set'.
28773         * modules/unistr/u16-set-tests: New file.
28774         * tests/unistr/test-u16-set.c: New file.
28775
28776         Tests for module 'unistr/u8-set'.
28777         * modules/unistr/u8-set-tests: New file.
28778         * tests/unistr/test-u8-set.c: New file.
28779         * tests/unistr/test-set.h: New file.
28780
28781         Tests for module 'unistr/u32-move'.
28782         * modules/unistr/u32-move-tests: New file.
28783         * tests/unistr/test-u32-move.c: New file.
28784
28785         Tests for module 'unistr/u16-move'.
28786         * modules/unistr/u16-move-tests: New file.
28787         * tests/unistr/test-u16-move.c: New file.
28788
28789         Tests for module 'unistr/u8-move'.
28790         * modules/unistr/u8-move-tests: New file.
28791         * tests/unistr/test-u8-move.c: New file.
28792         * tests/unistr/test-move.h: New file.
28793
28794         Tests for module 'unistr/u32-cpy'.
28795         * modules/unistr/u32-cpy-tests: New file.
28796         * tests/unistr/test-u32-cpy.c: New file.
28797
28798         Tests for module 'unistr/u16-cpy'.
28799         * modules/unistr/u16-cpy-tests: New file.
28800         * tests/unistr/test-u16-cpy.c: New file.
28801
28802         Tests for module 'unistr/u8-cpy'.
28803         * modules/unistr/u8-cpy-tests: New file.
28804         * tests/unistr/test-u8-cpy.c: New file.
28805         * tests/unistr/test-cpy.h: New file.
28806
28807 2010-01-09  Bruno Haible  <bruno@clisp.org>
28808
28809         Tests for module 'unistr/u32-uctomb'.
28810         * modules/unistr/u32-uctomb-tests: New file.
28811         * tests/unistr/test-u32-uctomb.c: New file.
28812
28813         Tests for module 'unistr/u16-uctomb'.
28814         * modules/unistr/u16-uctomb-tests: New file.
28815         * tests/unistr/test-u16-uctomb.c: New file.
28816
28817         Tests for module 'unistr/u8-uctomb'.
28818         * modules/unistr/u8-uctomb-tests: New file.
28819         * tests/unistr/test-u8-uctomb.c: New file.
28820
28821         Tests for module 'unistr/u32-mbtoucr'.
28822         * modules/unistr/u32-mbtoucr-tests: New file.
28823         * tests/unistr/test-u32-mbtoucr.c: New file.
28824
28825         Tests for module 'unistr/u16-mbtoucr'.
28826         * modules/unistr/u16-mbtoucr-tests: New file.
28827         * tests/unistr/test-u16-mbtoucr.c: New file.
28828
28829         Tests for module 'unistr/u8-mbtoucr'.
28830         * modules/unistr/u8-mbtoucr-tests: New file.
28831         * tests/unistr/test-u8-mbtoucr.c: New file.
28832
28833         Tests for module 'unistr/u32-mbtouc'.
28834         * modules/unistr/u32-mbtouc-tests: New file.
28835         * tests/unistr/test-u32-mbtouc.c: New file.
28836
28837         Tests for module 'unistr/u16-mbtouc'.
28838         * modules/unistr/u16-mbtouc-tests: New file.
28839         * tests/unistr/test-u16-mbtouc.c: New file.
28840
28841         Tests for module 'unistr/u8-mbtouc'.
28842         * modules/unistr/u8-mbtouc-tests: New file.
28843         * tests/unistr/test-u8-mbtouc.c: New file.
28844
28845         Tests for module 'unistr/u32-mbtouc-unsafe'.
28846         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28847         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28848         * tests/unistr/test-u32-mbtouc.h: New file.
28849
28850         Tests for module 'unistr/u16-mbtouc-unsafe'.
28851         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28852         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28853         * tests/unistr/test-u16-mbtouc.h: New file.
28854
28855         Tests for module 'unistr/u8-mbtouc-unsafe'.
28856         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28857         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28858         * tests/unistr/test-u8-mbtouc.h: New file.
28859
28860         Tests for module 'unistr/u32-mblen'.
28861         * modules/unistr/u32-mblen-tests: New file.
28862         * tests/unistr/test-u32-mblen.c: New file.
28863
28864         Tests for module 'unistr/u16-mblen'.
28865         * modules/unistr/u16-mblen-tests: New file.
28866         * tests/unistr/test-u16-mblen.c: New file.
28867
28868         Tests for module 'unistr/u8-mblen'.
28869         * modules/unistr/u8-mblen-tests: New file.
28870         * tests/unistr/test-u8-mblen.c: New file.
28871
28872         Tests for module 'unistr/u32-to-u16'.
28873         * modules/unistr/u32-to-u16-tests: New file.
28874         * tests/unistr/test-u32-to-u16.c: New file.
28875
28876         Tests for module 'unistr/u32-to-u8'.
28877         * modules/unistr/u32-to-u8-tests: New file.
28878         * tests/unistr/test-u32-to-u8.c: New file.
28879
28880         Tests for module 'unistr/u16-to-u32'.
28881         * modules/unistr/u16-to-u32-tests: New file.
28882         * tests/unistr/test-u16-to-u32.c: New file.
28883
28884         Tests for module 'unistr/u16-to-u8'.
28885         * modules/unistr/u16-to-u8-tests: New file.
28886         * tests/unistr/test-u16-to-u8.c: New file.
28887
28888         Tests for module 'unistr/u8-to-u32'.
28889         * modules/unistr/u8-to-u32-tests: New file.
28890         * tests/unistr/test-u8-to-u32.c: New file.
28891
28892         Tests for module 'unistr/u8-to-u16'.
28893         * modules/unistr/u8-to-u16-tests: New file.
28894         * tests/unistr/test-u8-to-u16.c: New file.
28895
28896         Tests for module 'unistr/u32-check'.
28897         * modules/unistr/u32-check-tests: New file.
28898         * tests/unistr/test-u32-check.c: New file.
28899
28900         Tests for module 'unistr/u16-check'.
28901         * modules/unistr/u16-check-tests: New file.
28902         * tests/unistr/test-u16-check.c: New file.
28903
28904         Tests for module 'unistr/u8-check'.
28905         * modules/unistr/u8-check-tests: New file.
28906         * tests/unistr/test-u8-check.c: New file.
28907
28908         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28909         (category_equals): New function.
28910         (main): Add more tests.
28911         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28912
28913         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28914
28915 2010-01-10  Bruno Haible  <bruno@clisp.org>
28916
28917         unistr/u*-strcoll: Try harder to distinguish different strings.
28918         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28919         compare s1 and s2 to see if they are different.
28920
28921 2010-01-10  Bruno Haible  <bruno@clisp.org>
28922
28923         unistr/u*-stpncpy: Fix the return value.
28924         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28925         description of the return value consistent with stpncpy in glibc.
28926         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28927         written non-NUL unit.
28928
28929 2010-01-10  Bruno Haible  <bruno@clisp.org>
28930
28931         unistr/u*-next: Add missing dependencies.
28932         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28933         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28934         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28935
28936 2010-01-10  Bruno Haible  <bruno@clisp.org>
28937
28938         unistr/u8-mbsnlen: Fix return value for incomplete character.
28939         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28940         u8_mblen.
28941         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28942         Remove unistr/u8-mblen.
28943         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28944         u16_mblen.
28945         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28946         Remove unistr/u16-mblen.
28947
28948 2010-01-10  Bruno Haible  <bruno@clisp.org>
28949
28950         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28951         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28952         Reported by Brian Gough <bjg@gnu.org> and
28953         Chris Clayton <chris2553@googlemail.com> via
28954         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28955
28956 2010-01-09  Bruno Haible  <bruno@clisp.org>
28957
28958         unistr/u16-to-u32: Reject invalid input.
28959         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28960         u16_mbtouc.
28961         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28962         Remove unistr/u16-mbtouc.
28963
28964         unistr/u16-to-u8: Reject invalid input.
28965         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28966         u16_mbtouc.
28967         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28968         Remove unistr/u16-mbtouc.
28969
28970         unistr/u8-to-u32: Reject invalid input.
28971         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28972         u8_mbtouc.
28973         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28974         Remove unistr/u8-mbtouc.
28975
28976         unistr/u8-to-u16: Reject invalid input.
28977         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28978         u8_mbtouc.
28979         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28980         Remove unistr/u8-mbtouc.
28981
28982 2010-01-09  Bruno Haible  <bruno@clisp.org>
28983
28984         Tests for module 'getlogin'.
28985         * modules/getlogin-tests: New file.
28986         * tests/test-getlogin.c: New file.
28987
28988         New module 'getlogin'.
28989         * lib/unistd.in.h (getlogin): New declaration.
28990         * lib/getlogin.c: New file.
28991         * m4/getlogin.m4: New file.
28992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28993         HAVE_GETLOGIN.
28994         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28995         HAVE_GETLOGIN.
28996         * modules/getlogin: New file.
28997         * doc/posix-functions/getlogin.texi: Mention the new module.
28998         Reported by John W. Eaton <jwe@gnu.org>.
28999
29000 2010-01-09  Bruno Haible  <bruno@clisp.org>
29001
29002         getlogin_r: Support for native Windows.
29003         * lib/getlogin_r.c: Include <windows.h>
29004         (getlogin_r): Implement for native Windows.
29005         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29006         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29007         via John W. Eaton <jwe@gnu.org>.
29008
29009 2010-01-09  Bruno Haible  <bruno@clisp.org>
29010
29011         getlogin_r: Small fixes.
29012         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29013         succeeds.
29014         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29015         before testing whether getlogin_r is declared. No need to set
29016         HAVE_DECL_GETLOGIN_R to 1.
29017         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29018
29019 2010-01-09  Bruno Haible  <bruno@clisp.org>
29020
29021         * lib/unistd.in.h (getlogin_r): Add comment.
29022
29023 2010-01-09  Bruno Haible  <bruno@clisp.org>
29024
29025         Tests for module 'getlogin_r'.
29026         * modules/getlogin_r-tests: New file.
29027         * tests/test-getlogin_r.c: New file.
29028
29029 2010-01-09  Jim Meyering  <meyering@redhat.com>
29030
29031         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29032         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29033         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29034
29035 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29036
29037         * lib/dup2.c (rpl_dup2): Improve comment.
29038
29039 2010-01-08  Eric Blake  <ebb9@byu.net>
29040
29041         maint.mk: allow packages to add makefile @@ exceptions
29042         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29043         (sc_makefile_check): Rename...
29044         (sc_makefile_at_at_check): ...to this, and use hook.
29045
29046         dup2: work around mingw bug
29047         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29048         Reported by Simon Josefsson.
29049
29050 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29051
29052         glob: Fix C++ compilation.
29053         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29054         C++.
29055
29056 2010-01-07  Bruno Haible  <bruno@clisp.org>
29057
29058         Fix indentation of wctype.in.h, broken since 2007-01-06.
29059         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29060
29061 2010-01-07  Bruno Haible  <bruno@clisp.org>
29062
29063         mbslen: Avoid collision with system function.
29064         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29065         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29066         * m4/mbslen.m4: New file.
29067         * modules/mbslen (Files): Add it.
29068         (configure.ac): Invoke gl_MBSLEN.
29069         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29070         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29071         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29072         via Ian Beckwith <ianb@erislabs.net>.
29073
29074 2010-01-07  Bruno Haible  <bruno@clisp.org>
29075
29076         dirent: Document the last fix.
29077         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29078
29079 2010-01-07  Bruno Haible  <bruno@clisp.org>
29080
29081         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29082         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29083         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29084         va_list are defined.
29085         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29086         Reported by Eric Blake.
29087
29088 2010-01-07  Bruno Haible  <bruno@clisp.org>
29089
29090         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29091         * modules/xlist (Depends-on): Add 'list',
29092         * modules/xoset (Depends-on): Add 'oset'.
29093         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29094
29095 2010-01-07  Bruno Haible  <bruno@clisp.org>
29096
29097         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29098         * doc/posix-functions/strncasecmp.texi: Likewise.
29099
29100 2010-01-07  Bruno Haible  <bruno@clisp.org>
29101
29102         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29103
29104 2010-01-07  John W. Eaton  <jwe@octave.org>
29105
29106         wctype: allow C++ use
29107         * lib/wctype.in.h: Add extern "C" block for C++.
29108
29109 2010-01-06  Eric Blake  <ebb9@byu.net>
29110
29111         maint.mk: detect incorrect GFDL usage
29112         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29113
29114 2010-01-06  Jim Meyering  <meyering@redhat.com>
29115         and Eric Blake  <ebb9@byu.net>
29116
29117         maint.mk: ignore multi-line copyright in NEWS
29118         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29119
29120 2010-01-06  Eric Blake  <ebb9@byu.net>
29121
29122         select: add missing dependency
29123         * modules/select-tests (Depends-on): Move sockets dependency...
29124         * modules/select (Depends-on): ...here.
29125         Reported by Ian Beckwith.
29126
29127         doc: regenerate INSTALL
29128         * doc/INSTALL: Reflect recent autoconf update.
29129         * doc/INSTALL.ISO: Likewise.
29130         * doc/INSTALL.UTF-8: Likewise.
29131
29132         pread: fix compilation on glibc
29133         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29134         Reported by Ralf Wildenhues.
29135
29136         dirent: fix test failure
29137         * lib/dirent.in.h (includes): Guarantee ino_t.
29138         Reported by Ralf Wildenhues.
29139
29140 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29141
29142         linkat, renameat: avoid bad free
29143         * lib/at-func2.c (at_func2): Fix typo.
29144         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29145
29146 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29147
29148         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29149         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29150         to avoid failure of symlink test later.
29151
29152 2010-01-06  Eric Blake  <ebb9@byu.net>
29153
29154         stdio, unistd: guarantee ssize_t
29155         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29156         2008 are exposed when needed.
29157         * lib/stdio.in.h (includes): Likewise.
29158         Reported by Ralf Wildenhues.
29159
29160 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29161
29162         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29163         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29164         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29165
29166 2010-01-06  Jim Meyering  <meyering@redhat.com>
29167
29168         readtokens: this module *does* require xalloc.h
29169         It uses only functions that were omitted by the old syntax-check rule.
29170         * lib/readtokens.c: Include "xalloc.h" once again.
29171         * modules/readtokens (Depends-on): Add xalloc.
29172         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29173
29174 2010-01-05  Eric Blake  <ebb9@byu.net>
29175
29176         maint: support 'make announcement' from a VPATH build
29177         * top/maint.mk (announcement): Look for correct NEWS file.
29178
29179 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29180
29181         utimens (fdutimens): ignore a negative FD, per contract
29182         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29183         when we have a valid file descriptor.  Otherwise, using a brand
29184         new glibc (with just-patched futimens that now fails with EBADF)
29185         would cause this function to fail with ENOSYS.
29186         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29187         See also http://bugzilla.redhat.com/552320.
29188
29189 2010-01-05  Eric Blake  <ebb9@byu.net>
29190
29191         strcase: document what it provides
29192         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29193         gnulib module.
29194         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29195         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29196
29197 2010-01-05  Jim Meyering  <meyering@redhat.com>
29198
29199         maint: remove useless inclusions of "xalloc.h"
29200         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29201         * lib/readtokens.c: Likewise.
29202         * lib/same.c: Likewise.
29203         * modules/getloadavg (Depends-on): Remove xalloc.
29204         * modules/readtokens: Likewise.
29205         * modules/same: Likewise.
29206
29207         maint.mk: include 4 more function names in alloca.h-checking regexp
29208         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29209         regexp.  Before, we would give a false-positive (saying alloca.h
29210         is included unnecessarily) when the only uses involved omitted symbols.
29211
29212         xalloc.h: use consistent formatting
29213         * lib/xalloc.h: Move declarations to start in the first column.
29214
29215 2010-01-05  Eric Blake  <ebb9@byu.net>
29216
29217         mkdir: avoid xalloc
29218         * lib/mkdir.c (includes): Drop unused header.
29219         Reported by John W. Eaton.
29220
29221 2010-01-04  Jim Meyering  <meyering@redhat.com>
29222
29223         nl_langinfo: avoid configure-time syntax error
29224         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29225         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29226         the empty string.  Don't let that provoke a shell syntax error.
29227
29228         regcomp, regexec, fnmatch: avoid array bounds read error
29229         * lib/regcomp.c (build_equiv_class): From glibc:
29230         Use only the low 24 bits of a findidx return value as an index
29231         into the weights array.  Patch by Ulrich Drepper:
29232         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29233         * lib/regexec.c (check_node_accept_bytes): Likewise.
29234         * lib/fnmatch_loop.c (FCT): Likewise.
29235
29236         regcomp: skip collseq lookup when there are no rules
29237         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29238         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29239
29240         regcomp: recognize ill-formed { } expressions
29241         * lib/regcomp.c (parse_dup_op): From glibc:
29242         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29243
29244         regcomp: fix typo in comment
29245         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29246         s/satisfy/satisfies/.
29247
29248         regcomp: sync from glibc: remove dead store
29249         * lib/regcomp.c (duplicate_node_closure): Remove useless
29250         search_duplicated_node call and dead store.
29251
29252         regcomp: sync from glibc; always use nl_langinfo
29253         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29254         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29255         * modules/regex (Depends-on): Add nl_langinfo.
29256
29257 2010-01-04  Eric Blake  <ebb9@byu.net>
29258
29259         fdopendir: fix configure test
29260         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29261
29262 2010-01-01  Bruno Haible  <bruno@clisp.org>
29263
29264         wchar: Remove unused configure check.
29265         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29266
29267 2010-01-01  Eric Blake  <ebb9@byu.net>
29268
29269         headers: make check of system header explicit
29270         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29271         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29272         ourselves.
29273         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29274         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29275         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29276         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29277         internals.
29278         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29279         missing.
29280         Suggested by Bruno Haible.
29281
29282 2010-01-01  Jim Meyering  <meyering@redhat.com>
29283
29284         ChangeLog: tweak to eliminate unnecessary copyright line
29285         * ChangeLog: Remove a copyright line that was mistakenly updated
29286         by today's update-copyright run.  Reported by Eric Blake.
29287
29288         test-update-copyright: don't let envvar setting cause test failure
29289         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29290
29291 2010-01-01  Bruno Haible  <bruno@clisp.org>
29292
29293         localename: Avoid gcc warning.
29294         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29295         function if it is not used.
29296
29297 2010-01-01  Jim Meyering  <meyering@redhat.com>
29298
29299         update nearly all FSF copyright year lists to include 2010
29300         Use the same procedure as for 2009, outlined in
29301         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29302
29303         version-etc: set COPYRIGHT_YEAR to 2010
29304         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29305
29306 2009-12-31  Eric Blake  <ebb9@byu.net>
29307
29308         doc: correct availability of cygwin 1.5.x getopt
29309         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29310         variables.
29311         * doc/posix-functions/opterr.texi (opterr): Likewise.
29312         * doc/posix-functions/optind.texi (optind): Likewise.
29313         * doc/posix-functions/optopt.texi (optopt): Likewise.
29314         * doc/posix-functions/tzname.texi (tzname): Likewise.
29315
29316         openat: update maintainer
29317         * modules/openat (Maintainer): Add myself.
29318
29319         utimens: avoid shadowing warning
29320         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29321         buffers into one, to avoid shadowing, as well as avoiding a
29322         redundant stat.
29323         Reported by Jim Meyering.
29324
29325         test-dup2: avoid compiler warning
29326         * tests/test-dup2.c (is_inheritable): Only define if used.
29327
29328 2010-01-01  Bruno Haible  <bruno@clisp.org>
29329
29330         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29331         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29332         defined, use wctomb instead of wcrtomb.
29333
29334 2010-01-01  Bruno Haible  <bruno@clisp.org>
29335
29336         iconv: Reject native Solaris iconv.
29337         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29338         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29339
29340 2009-12-31  Bruno Haible  <bruno@clisp.org>
29341
29342         * tests/test-signal.c (main): Remove test of 'SIG'.
29343
29344 2009-12-31  Bruno Haible  <bruno@clisp.org>
29345
29346         spawn: Fix incomplete fix.
29347         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29348         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29349         warnings for GNULIB_POSIXCHECK again.
29350         Reported by Eric Blake.
29351
29352 2009-12-31  Bruno Haible  <bruno@clisp.org>
29353
29354         Avoid namespace pollution on glibc systems.
29355         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29356         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29357         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29358         glibc systems.
29359
29360 2009-12-31  Bruno Haible  <bruno@clisp.org>
29361
29362         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29363         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29364         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29365         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29366         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29367         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29368         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29369
29370 2009-12-31  Bruno Haible  <bruno@clisp.org>
29371
29372         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29373         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29374         afterwards.
29375
29376 2009-12-31  Bruno Haible  <bruno@clisp.org>
29377
29378         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29379         SYS_UTSNAME_H.
29380
29381 2009-12-31  Bruno Haible  <bruno@clisp.org>
29382
29383         spawn: Fix misapplied patch.
29384         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29385         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29386         warnings for GNULIB_POSIXCHECK.
29387
29388 2009-12-31  Bruno Haible  <bruno@clisp.org>
29389
29390         times: Update after sys_times changed.
29391         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29392         * modules/times (Files): Add it.
29393         (configure.ac): Invoke gl_FUNC_TIMES.
29394
29395 2009-12-31  Bruno Haible  <bruno@clisp.org>
29396
29397         Use AC_C_INLINE where necessary.
29398         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29399         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29400         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29401         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29402         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29403         * m4/mbiter.m4 (gl_MBITER): Likewise.
29404         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29405         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29406         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29407         * modules/u64 (configure.ac): Likewise.
29408
29409 2009-12-31  Bruno Haible  <bruno@clisp.org>
29410
29411         Use AC_C_INLINE instead of module 'inline' where possible.
29412         * modules/inline (Description): Clarify purpose.
29413         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29414         * modules/count-one-bits (Depends-on): Remove inline.
29415         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29416         * modules/openat (Depends-on): Remove inline.
29417         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29418         instead of depending on module 'inline'.
29419         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29420         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29421         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29422         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29423         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29424         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29425         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29426         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29427         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29428         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29429         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29430         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29431         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29432         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29433         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29434         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29435         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29436         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29437         Likewise.
29438         * modules/unictype/property-ascii-hex-digit (Depends-on,
29439         configure.ac): Likewise.
29440         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29441         configure.ac): Likewise.
29442         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29443         configure.ac): Likewise.
29444         * modules/unictype/property-bidi-block-separator (Depends-on,
29445         configure.ac): Likewise.
29446         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29447         configure.ac): Likewise.
29448         * modules/unictype/property-bidi-common-separator (Depends-on,
29449         configure.ac): Likewise.
29450         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29451         Likewise.
29452         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29453         configure.ac): Likewise.
29454         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29455         configure.ac): Likewise.
29456         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29457         configure.ac): Likewise.
29458         * modules/unictype/property-bidi-european-digit (Depends-on,
29459         configure.ac): Likewise.
29460         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29461         configure.ac): Likewise.
29462         * modules/unictype/property-bidi-left-to-right (Depends-on,
29463         configure.ac): Likewise.
29464         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29465         configure.ac): Likewise.
29466         * modules/unictype/property-bidi-other-neutral (Depends-on,
29467         configure.ac): Likewise.
29468         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29469         Likewise.
29470         * modules/unictype/property-bidi-segment-separator (Depends-on,
29471         configure.ac): Likewise.
29472         * modules/unictype/property-bidi-whitespace (Depends-on,
29473         configure.ac): Likewise.
29474         * modules/unictype/property-combining (Depends-on, configure.ac):
29475         Likewise.
29476         * modules/unictype/property-composite (Depends-on, configure.ac):
29477         Likewise.
29478         * modules/unictype/property-currency-symbol (Depends-on,
29479         configure.ac): Likewise.
29480         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29481         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29482         Likewise.
29483         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29484         configure.ac): Likewise.
29485         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29486         Likewise.
29487         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29488         Likewise.
29489         * modules/unictype/property-extender (Depends-on, configure.ac):
29490         Likewise.
29491         * modules/unictype/property-format-control (Depends-on, configure.ac):
29492         Likewise.
29493         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29494         Likewise.
29495         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29496         Likewise.
29497         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29498         Likewise.
29499         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29500         Likewise.
29501         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29502         Likewise.
29503         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29504         Likewise.
29505         * modules/unictype/property-id-start (Depends-on, configure.ac):
29506         Likewise.
29507         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29508         Likewise.
29509         * modules/unictype/property-ids-binary-operator (Depends-on,
29510         configure.ac): Likewise.
29511         * modules/unictype/property-ids-trinary-operator (Depends-on,
29512         configure.ac): Likewise.
29513         * modules/unictype/property-ignorable-control (Depends-on,
29514         configure.ac): Likewise.
29515         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29516         Likewise.
29517         * modules/unictype/property-join-control (Depends-on, configure.ac):
29518         Likewise.
29519         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29520         Likewise.
29521         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29522         Likewise.
29523         * modules/unictype/property-logical-order-exception (Depends-on,
29524         configure.ac): Likewise.
29525         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29526         Likewise.
29527         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29528         * modules/unictype/property-non-break (Depends-on, configure.ac):
29529         Likewise.
29530         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29531         Likewise.
29532         * modules/unictype/property-numeric (Depends-on, configure.ac):
29533         Likewise.
29534         * modules/unictype/property-other-alphabetic (Depends-on,
29535         configure.ac): Likewise.
29536         * modules/unictype/property-other-default-ignorable-code-point
29537         (Depends-on, configure.ac): Likewise.
29538         * modules/unictype/property-other-grapheme-extend (Depends-on,
29539         configure.ac): Likewise.
29540         * modules/unictype/property-other-id-continue (Depends-on,
29541         configure.ac): Likewise.
29542         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29543         Likewise.
29544         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29545         Likewise.
29546         * modules/unictype/property-other-math (Depends-on, configure.ac):
29547         Likewise.
29548         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29549         Likewise.
29550         * modules/unictype/property-paired-punctuation (Depends-on,
29551         configure.ac): Likewise.
29552         * modules/unictype/property-paragraph-separator (Depends-on,
29553         configure.ac): Likewise.
29554         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29555         Likewise.
29556         * modules/unictype/property-pattern-white-space (Depends-on,
29557         configure.ac): Likewise.
29558         * modules/unictype/property-private-use (Depends-on, configure.ac):
29559         Likewise.
29560         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29561         Likewise.
29562         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29563         Likewise.
29564         * modules/unictype/property-radical (Depends-on, configure.ac):
29565         Likewise.
29566         * modules/unictype/property-sentence-terminal (Depends-on,
29567         configure.ac): Likewise.
29568         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29569         Likewise.
29570         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29571         * modules/unictype/property-terminal-punctuation (Depends-on,
29572         configure.ac): Likewise.
29573         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29574         Likewise.
29575         * modules/unictype/property-unassigned-code-value (Depends-on,
29576         configure.ac): Likewise.
29577         * modules/unictype/property-unified-ideograph (Depends-on,
29578         configure.ac): Likewise.
29579         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29580         Likewise.
29581         * modules/unictype/property-variation-selector (Depends-on,
29582         configure.ac): Likewise.
29583         * modules/unictype/property-white-space (Depends-on, configure.ac):
29584         Likewise.
29585         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29586         Likewise.
29587         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29588         Likewise.
29589         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29590         Likewise.
29591         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29592         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29593         Likewise.
29594
29595 2009-12-31  Bruno Haible  <bruno@clisp.org>
29596
29597         Remove unnecessary AC_C_INLINE invocation.
29598         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29599         since 2009-08-21.
29600
29601 2009-12-31  Jim Meyering  <meyering@redhat.com>
29602
29603         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29604         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29605         With this change, we can all remove the gpg_key_ID = ... definition
29606         from our respective cfg.mk files.
29607
29608         maint.mk: create announcement template in ~/, not in /tmp
29609         * top/maint.mk (emit_upload_commands): Adjust.
29610         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29611         Remove temporary file, .ci-msg.
29612
29613 2009-12-31  Eric Blake  <ebb9@byu.net>
29614
29615         link-warning: always build headers with link warnings
29616         * modules/arpa_inet (Makefile.am): Always build replacement
29617         header.
29618         * modules/ctype (Makefile.am): Likewise.
29619         * modules/dirent (Makefile.am): Likewise.
29620         * modules/inttypes (Makefile.am): Likewise.
29621         * modules/langinfo (Makefile.am): Likewise.
29622         * modules/locale (Makefile.am): Likewise.
29623         * modules/spawn (Makefile.am): Likewise.
29624         * modules/sys_file (Makefile.am): Likewise.
29625         * modules/sys_ioctl (Makefile.am): Likewise.
29626         * modules/sys_select (Makefile.am): Likewise.
29627         * modules/sys_socket (Makefile.am): Likewise.
29628         * modules/sys_times (Makefile.am): Likewise.
29629         * modules/sys_utsname (Makefile.am): Likewise.
29630         * modules/sys_wait (Makefile.am): Likewise.
29631         * modules/wchar (Makefile.am): Likewise.
29632         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29633         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29634         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29635         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29636         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29637         Likewise.
29638         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29639         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29640         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29641         Likewise.
29642         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29643         Likewise.
29644         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29645         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29646         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29647         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29648         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29649         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29650         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29651         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29652         (gl_WCHAR_H_DEFAULTS): Likewise.
29653
29654 2009-12-31  Eric Blake  <ebb9@byu.net>
29655
29656         signal, spawn: use link warnings
29657         * lib/signal.in.h (sigset_t): Make unconditional.
29658         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29659         (sigpending, sigprocmask, sigaction): Add link warnings.
29660         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29661         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29662         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29663         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29664         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29665         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29666         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29667         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29668         (posix_spawn_file_actions_destroy)
29669         (posix_spawn_file_actions_addopen)
29670         (posix_spawn_file_actions_addclose)
29671         (posix_spawn_file_actions_adddup2): Likewise.
29672         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29673         * tests/test-signal.c (main): Enhance test.
29674
29675         spawn: improve wrapper support
29676         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29677         (gl_SPAWN_H_DEFAULTS): New defaults.
29678         * modules/spawn (Makefile.am): Substitute them.
29679         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29680         Only declare if missing or broken.
29681
29682         sys_times, sys_utsname: use include_next
29683         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29684         header.
29685         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29686         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29687         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29688         * modules/sys_times (Depends-on): Add include_next.
29689         (Makefile.am): Substitute additional values.
29690         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29691         * lib/sys_times.in.h (includes): Include native header, if
29692         available.
29693         * lib/sys_utsname.in.h (includes): Likewise.
29694         * tests/test-sys_times.c (main): Enhance test.
29695
29696         fdutimensat: revert prior patch
29697         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29698         utimens.h.
29699         Reported by Bruno Haible.
29700
29701 2009-12-30  Eric Blake  <ebb9@byu.net>
29702
29703         sys_wait: drop link-warning dependency
29704         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29705         link-warning efforts.
29706         * lib/sys_wait.in.h: Likewise.
29707
29708         fdutimensat: remove bogus dependency
29709         * modules/fdutimensat (Depends-on): Drop inline.
29710
29711         unistd: fix typo
29712         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29713
29714 2009-12-30  Bruno Haible  <bruno@clisp.org>
29715
29716         Fix compilation error with Solaris cc.
29717         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29718         * lib/unicase/u16-is-invariant.c: Likewise.
29719         * lib/unicase/u32-is-invariant.c: Likewise.
29720         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29721
29722 2009-12-30  Bruno Haible  <bruno@clisp.org>
29723
29724         Fix test crash.
29725         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29726         locales.
29727         Reported by Simon Josefsson <simon@josefsson.org>.
29728
29729 2009-12-30  Bruno Haible  <bruno@clisp.org>
29730
29731         Fix compilation error on most platforms.
29732         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29733         Reported by Simon Josefsson <simon@josefsson.org>
29734         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29735
29736 2009-12-30  Eric Blake  <ebb9@byu.net>
29737
29738         futimens, utimensat: work around ntfs-3g bug
29739         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29740         a ctime bug is present, and expand workaround to cover ntfs-3g.
29741         * lib/utimens.c (fdutimens, lutimens): Likewise.
29742         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29743         (validate_timespec): Adjust return value.
29744         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29745         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29746         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29747
29748 2009-12-29  Eric Blake  <ebb9@byu.net>
29749
29750         link-warning: make usage consistent
29751         * modules/ctype (Depends-on): Add link-warning.
29752         (Makefile.am): Update rules accordingly.
29753         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29754         * modules/locale (Depends-on, Makefile.am): Likewise.
29755         * modules/sys_file (Makefile.am): Likewise.
29756         * modules/getopt-posix (Makefile.am): Delete unused link warning
29757         efforts.
29758         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29759         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29760         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29761         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29762
29763         stdio: remove unused variables
29764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29765         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29766         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29767
29768         tests: test more substitute headers
29769         * modules/ctype-tests: New file.
29770         * modules/dirent-tests: Likewise.
29771         * modules/spawn-tests: Likewise.
29772         * modules/sys_file-tests: Likewise.
29773         * modules/sys_ioctl-tests: Likewise.
29774         * modules/sys_wait-tests: Likewise.
29775         * tests/test-ctype.c: Likewise.
29776         * tests/test-dirent.c: Likewise.
29777         * tests/test-spawn.c: Likewise.
29778         * tests/test-sys_file.c: Likewise.
29779         * tests/test-sys_ioctl.c: Likewise.
29780         * tests/test-sys_wait.c: Likewise.
29781         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29782         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29783         whether or not flock is in use.
29784
29785         tests: remove License section from module
29786         * modules/arpa_inet-tests: Remove unneeded section.
29787         * modules/byteswap-tests: Likewise.
29788         * modules/ceilf-tests: Likewise.
29789         * modules/ceill-tests: Likewise.
29790         * modules/crypto/des-tests: Likewise.
29791         * modules/crypto/gc-arcfour-tests: Likewise.
29792         * modules/crypto/gc-arctwo-tests: Likewise.
29793         * modules/crypto/gc-des-tests: Likewise.
29794         * modules/crypto/gc-hmac-md5-tests: Likewise.
29795         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29796         * modules/crypto/gc-md2-tests: Likewise.
29797         * modules/crypto/gc-md4-tests: Likewise.
29798         * modules/crypto/gc-md5-tests: Likewise.
29799         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29800         * modules/crypto/gc-rijndael-tests: Likewise.
29801         * modules/crypto/gc-sha1-tests: Likewise.
29802         * modules/crypto/gc-tests: Likewise.
29803         * modules/crypto/md2-tests: Likewise.
29804         * modules/crypto/md4-tests: Likewise.
29805         * modules/fcntl-h-tests: Likewise.
29806         * modules/floorf-tests: Likewise.
29807         * modules/floorl-tests: Likewise.
29808         * modules/frexp-nolibm-tests: Likewise.
29809         * modules/frexp-tests: Likewise.
29810         * modules/frexpl-nolibm-tests: Likewise.
29811         * modules/frexpl-tests: Likewise.
29812         * modules/getaddrinfo-tests: Likewise.
29813         * modules/inttypes-tests: Likewise.
29814         * modules/isfinite-tests: Likewise.
29815         * modules/isinf-tests: Likewise.
29816         * modules/ldexpl-tests: Likewise.
29817         * modules/locale-tests: Likewise.
29818         * modules/math-tests: Likewise.
29819         * modules/netdb-tests: Likewise.
29820         * modules/netinet_in-tests: Likewise.
29821         * modules/printf-frexp-tests: Likewise.
29822         * modules/printf-frexpl-tests: Likewise.
29823         * modules/priv-set-tests: Likewise.
29824         * modules/random_r-tests: Likewise.
29825         * modules/round-tests: Likewise.
29826         * modules/roundf-tests: Likewise.
29827         * modules/roundl-tests: Likewise.
29828         * modules/search-tests: Likewise.
29829         * modules/select-tests: Likewise.
29830         * modules/signal-tests: Likewise.
29831         * modules/stdbool-tests: Likewise.
29832         * modules/stddef-tests: Likewise.
29833         * modules/stdint-tests: Likewise.
29834         * modules/stdio-tests: Likewise.
29835         * modules/stdlib-tests: Likewise.
29836         * modules/string-tests: Likewise.
29837         * modules/strings-tests: Likewise.
29838         * modules/sys_select-tests: Likewise.
29839         * modules/sys_socket-tests: Likewise.
29840         * modules/sys_stat-tests: Likewise.
29841         * modules/sys_time-tests: Likewise.
29842         * modules/sys_utsname-tests: Likewise.
29843         * modules/sysexits-tests: Likewise.
29844         * modules/time-tests: Likewise.
29845         * modules/trunc-tests: Likewise.
29846         * modules/truncf-tests: Likewise.
29847         * modules/truncl-tests: Likewise.
29848         * modules/tsearch-tests: Likewise.
29849         * modules/unistd-tests: Likewise.
29850         * modules/wchar-tests: Likewise.
29851         * modules/wctype-tests: Likewise.
29852
29853         tests: fix license on several tests
29854         * tests/test-des.c: Update to GPLv3+.
29855         * tests/test-flock.c: Likewise.
29856         * tests/test-fsync.c: Likewise.
29857         * tests/test-futimens.h: Likewise.
29858         * tests/test-gc-arcfour.c: Likewise.
29859         * tests/test-gc-arctwo.c: Likewise.
29860         * tests/test-gc-des.c: Likewise.
29861         * tests/test-gc-hmac-md5.c: Likewise.
29862         * tests/test-gc-hmac-sha1.c: Likewise.
29863         * tests/test-gc-md2.c: Likewise.
29864         * tests/test-gc-md4.c: Likewise.
29865         * tests/test-gc-md5.c: Likewise.
29866         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29867         * tests/test-gc-rijndael.c: Likewise.
29868         * tests/test-gc-sha1.c: Likewise.
29869         * tests/test-gc.c: Likewise.
29870         * tests/test-getcwd.c: Likewise.
29871         * tests/test-link.c: Likewise.
29872         * tests/test-link.h: Likewise.
29873         * tests/test-lutimens.h: Likewise.
29874         * tests/test-md2.c: Likewise.
29875         * tests/test-md4.c: Likewise.
29876         * tests/test-mkdir.h: Likewise.
29877         * tests/test-rename.c: Likewise.
29878         * tests/test-rename.h: Likewise.
29879         * tests/test-safe-alloc.c: Likewise.
29880         * tests/test-utimens-common.h: Likewise.
29881         * tests/test-utimens.h: Likewise.
29882
29883         maint: sync license texts
29884         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29885         * doc/gpl-3.0.texi: Revert copyright year update.
29886         * doc/lgpl-3.0.texi: Likewise.
29887
29888 2009-12-29  Jim Meyering  <meyering@redhat.com>
29889
29890         update nearly all FSF copyright year lists to include 2009
29891         The files named by the following are exempted:
29892             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29893               test -f "$dst" && { echo "$dst"; continue; }
29894               test -d "$dst" || continue
29895               echo "$dst"/$(basename "$src")
29896             done > exempt
29897             git ls-files tests/unictype >> exempt
29898         In the remaining files, convert to all-interval notation if
29899         - there is already at least one year interval like 2000-2003
29900         - the file is maintained by me
29901         - the file is in lib/uni*/, where that style already prevails
29902         Otherwise, use update-copyright's default.
29903
29904 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29905         and Eric Blake  <ebb9@byu.net>
29906
29907         tests: don't require debug system() to pass
29908         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29909         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29910         * tests/test-unlink.h (test_unlink_func): Likewise.
29911         * tests/test-fstatat.c (main): ...into callers.
29912         * tests/test-lstat.c (main): Likewise.
29913         * tests/test-rmdir.c (main): Likewise.
29914         * tests/test-unlink.c (main): Likewise.
29915         * tests/test-unlinkat.c (main): Likewise.
29916         * tests/test-areadlink-with-size.c (main): Don't require a
29917         debug-only system call to pass, aiding cross-testing to mingw.
29918         * tests/test-areadlink.c (main): Likewise.
29919         * tests/test-areadlinkat-with-size.c (main): Likewise.
29920         * tests/test-areadlinkat.c (main): Likewise.
29921         * tests/test-canonicalize-lgpl.c (main): Likewise.
29922         * tests/test-canonicalize.c (main): Likewise.
29923         * tests/test-chown.c (main): Likewise.
29924         * tests/test-fchownat.c (main): Likewise.
29925         * tests/test-lchown.c (main): Likewise.
29926         * tests/test-fdutimensat.c (main): Likewise.
29927         * tests/test-futimens.c (main): Likewise.
29928         * tests/test-link.c (main): Likewise.
29929         * tests/test-linkat.c (main): Likewise.
29930         * tests/test-mkdir.c (main): Likewise.
29931         * tests/test-mkdirat.c (main): Likewise.
29932         * tests/test-mkfifo.c (main): Likewise.
29933         * tests/test-mkfifoat.c (main): Likewise.
29934         * tests/test-mknod.c (main): Likewise.
29935         * tests/test-readlink.c (main): Likewise.
29936         * tests/test-remove.c (main): Likewise.
29937         * tests/test-rename.c (main): Likewise.
29938         * tests/test-renameat.c (main): Likewise.
29939         * tests/test-symlink.c (main): Likewise.
29940         * tests/test-symlinkat.c (main): Likewise.
29941         * tests/test-utimens.c (main): Likewise.
29942         * tests/test-utimensat.c (main): Likewise.
29943
29944 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29945
29946         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29947         on $(UNUSED_PARAMETER_H) to avoid build failure.
29948
29949 2009-12-28  Jim Meyering  <meyering@redhat.com>
29950
29951         update-copyright: you may specify a max. line length other than 72
29952         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29953
29954         maint: use consistent FSF copyright line syntax
29955         * lib/posixtm.c: Add missing comma in FSF copyright line.
29956         * lib/posixtm.h: Likewise.
29957         * lib/getugroups.c: Add missing ", Inc.".
29958
29959         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29960         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29961         FSF copyright line.  Remove trailing blanks.
29962
29963 2009-12-28  Eric Blake  <ebb9@byu.net>
29964
29965         test-dup2: reduce dependencies
29966         * modules/cloexec (Configure.ac): Set witness.
29967         * modules/dup2-tests (Depends-on): Drop cloexec.
29968         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29969         not present.
29970         Suggested by Bruno Haible.
29971
29972 2009-12-26  Bruno Haible  <bruno@clisp.org>
29973
29974         Remove an unneeded dependency.
29975         * modules/fseterr (Depends-on): Remove dup2.
29976
29977 2009-12-26  Eric Blake  <ebb9@byu.net>
29978
29979         tests: use macros.h in more places
29980         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29981         (ASSERT_STREAM): Provide default of stderr.
29982         * tests/test-dirent-safer.c: Include macros.h, using alternate
29983         stream for assertions.
29984         * tests/test-dup-safer.c: Likewise.
29985         * tests/test-freopen-safer.c: Likewise.
29986         * tests/test-getopt.c: Likewise.
29987         * tests/test-openat-safer.c: Likewise.
29988         * tests/test-pipe.c: Likewise.
29989         * tests/test-popen-safer.c: Likewise.
29990         * modules/dirent-safer-tests (Files): Include macros.h.
29991         * modules/unistd-safer-tests (Files): Likewise.
29992         * modules/freopen-safer-tests (Files): Likewise.
29993         * modules/getopt-posix-tests (Files): Likewise.
29994         * modules/openat-safer-tests (Files): Likewise.
29995         * modules/pipe-tests (Files): Likewise.
29996
29997 2009-12-26  Bruno Haible  <bruno@clisp.org>
29998
29999         javacomp: Portability fix.
30000         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30001         that it also works on Solaris.
30002
30003 2009-12-26  Bruno Haible  <bruno@clisp.org>
30004
30005         localename: Fix storage allocation of gl_locale_name_thread's result.
30006         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30007         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30008         all platforms that have 'uselocale'.
30009         (gl_locale_name_thread_unsafe): New function, extracted from
30010         gl_locale_name_thread.
30011         (gl_locale_name_thread): Call struniq on all platforms that have
30012         'uselocale'.
30013         * tests/test-localename.c (test_locale_name_thread): Check that the
30014         resulting strings are permanently allocated.
30015         * modules/localename-tests (Depends-on): Add strdup.
30016
30017 2009-12-26  Bruno Haible  <bruno@clisp.org>
30018
30019         * tests/test-localename.c (categories): Fill in the strings.
30020
30021 2009-12-26  Jim Meyering  <meyering@redhat.com>
30022
30023         isdir: complete the removal of m4/isdir.m4
30024         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30025
30026         isdir: clean up, since at least grep still uses it
30027         * lib/isdir.c: Include "isdir.h".
30028         (S_ISDIR): Remove now-unneeded definition.
30029         * modules/isdir (Files): Add lib/isdir.h.
30030         * lib/isdir.h: New file, with declaration.
30031         * m4/isdir.m4: Remove file -- unneeded.
30032
30033 2009-12-25  Bruno Haible  <bruno@clisp.org>
30034
30035         selinux-h: Make generated .h files standalone.
30036         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30037         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30038         * lib/se-selinux.in.h: Likewise.
30039         * modules/selinux-h (Depends-on): Add unused-parameter.
30040         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30041         selinux/selinux.h and selinux/context.h.
30042         Suggested by Eric Blake.
30043
30044 2009-12-25  Bruno Haible  <bruno@clisp.org>
30045
30046         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30047         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30048         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30049         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30050         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30051
30052 2009-12-24  Bruno Haible  <bruno@clisp.org>
30053
30054         openat: Fix warning.
30055         * lib/openat-proc.c: Include <unistd.h>.
30056
30057 2009-12-24  Bruno Haible  <bruno@clisp.org>
30058
30059         New module 'unused-parameter'.
30060         * build-aux/unused-parameter.h: New file, extracted from earlier
30061         gnulib-common.m4.
30062         * modules/unused-parameter: New file.
30063         * lib/unistr.h: Include unused-parameter.h.
30064         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30065         _GL_UNUSED.
30066         * modules/unistr/base (Depends-on): Add unused-parameter.
30067
30068 2009-12-24  Bruno Haible  <bruno@clisp.org>
30069
30070         Add missing dependencies to 'extensions' module.
30071         * m4/extensions.m4: Add comment.
30072         * modules/accept4 (Depends-on): Add extensions.
30073         * modules/dup3 (Depends-on): Likewise.
30074         * modules/fcntl (Depends-on): Likewise.
30075         * modules/futimens (Depends-on): Likewise.
30076         * modules/mknod (Depends-on): Likewise.
30077         * modules/pipe2 (Depends-on): Likewise.
30078         * modules/stat-time (Depends-on): Likewise.
30079         * modules/strcasestr-simple (Depends-on): Likewise.
30080         * modules/strsignal (Depends-on): Likewise.
30081         * modules/utimensat (Depends-on): Likewise.
30082         * modules/localcharset (Depends-on): Likewise. Needed because of
30083         gl_FCNTL_O_FLAGS.
30084         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30085         AC_TYPE_MBSTATE_T.
30086         * modules/wcsnrtombs (Depends-on): Likewise.
30087         * modules/wcsrtombs (Depends-on): Likewise.
30088
30089 2009-12-24  Bruno Haible  <bruno@clisp.org>
30090
30091         binary-io: Avoid gcc warning due to SET_BINARY.
30092         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30093         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30094
30095 2009-12-24  Bruno Haible  <bruno@clisp.org>
30096
30097         Avoid future namespace pollution on glibc systems.
30098         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30099         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30100         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30101         glibc systems.
30102
30103 2009-12-24  Bruno Haible  <bruno@clisp.org>
30104
30105         Refactor common macros used in tests.
30106         * tests/macros.h: New file.
30107         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30108         and/or <stdlib.h>, if appropriate.
30109         (ASSERT, SIZEOF): Remove macros.
30110         * tests/test-areadlink-with-size.c: Likewise.
30111         * tests/test-areadlinkat.c: Likewise.
30112         * tests/test-areadlinkat-with-size.c: Likewise.
30113         * tests/test-argmatch.c: Likewise.
30114         * tests/test-argv-iter.c: Likewise.
30115         * tests/test-array-mergesort.c: Likewise.
30116         * tests/test-array_list.c: Likewise.
30117         * tests/test-array_oset.c: Likewise.
30118         * tests/test-avltree_list.c: Likewise.
30119         * tests/test-avltree_oset.c: Likewise.
30120         * tests/test-avltreehash_list.c: Likewise.
30121         * tests/test-base64.c: Likewise.
30122         * tests/test-binary-io.c: Likewise.
30123         * tests/test-bitrotate.c: Likewise.
30124         * tests/test-btowc.c: Likewise.
30125         * tests/test-byteswap.c: Likewise.
30126         * tests/test-c-ctype.c: Likewise.
30127         * tests/test-c-stack.c: Likewise.
30128         * tests/test-c-strcasecmp.c: Likewise.
30129         * tests/test-c-strcasestr.c: Likewise.
30130         * tests/test-c-strncasecmp.c: Likewise.
30131         * tests/test-c-strstr.c: Likewise.
30132         * tests/test-canonicalize-lgpl.c: Likewise.
30133         * tests/test-canonicalize.c: Likewise.
30134         * tests/test-carray_list.c: Likewise.
30135         * tests/test-ceilf1.c: Likewise.
30136         * tests/test-ceilf2.c: Likewise.
30137         * tests/test-ceill.c: Likewise.
30138         * tests/test-chown.c: Likewise.
30139         * tests/test-cloexec.c: Likewise.
30140         * tests/test-copy-acl.c: Likewise.
30141         * tests/test-copy-file.c: Likewise.
30142         * tests/test-count-one-bits.c: Likewise.
30143         * tests/test-dprintf-posix.c: Likewise.
30144         * tests/test-dup2.c: Likewise.
30145         * tests/test-dup3.c: Likewise.
30146         * tests/test-duplocale.c: Likewise.
30147         * tests/test-fbufmode.c: Likewise.
30148         * tests/test-fchdir.c: Likewise.
30149         * tests/test-fchownat.c: Likewise.
30150         * tests/test-fcntl-safer.c: Likewise.
30151         * tests/test-fcntl.c: Likewise.
30152         * tests/test-fdopendir.c: Likewise.
30153         * tests/test-fdutimensat.c: Likewise.
30154         * tests/test-fflush2.c: Likewise.
30155         * tests/test-file-has-acl.c: Likewise.
30156         * tests/test-filevercmp.c: Likewise.
30157         * tests/test-flock.c: Likewise.
30158         * tests/test-floorf1.c: Likewise.
30159         * tests/test-floorf2.c: Likewise.
30160         * tests/test-floorl.c: Likewise.
30161         * tests/test-fnmatch.c: Likewise.
30162         * tests/test-fopen.h: Likewise.
30163         * tests/test-fpending.c: Likewise.
30164         * tests/test-fprintf-posix.c: Likewise.
30165         * tests/test-fpurge.c: Likewise.
30166         * tests/test-freadable.c: Likewise.
30167         * tests/test-freadahead.c: Likewise.
30168         * tests/test-freading.c: Likewise.
30169         * tests/test-freadptr.c: Likewise.
30170         * tests/test-freadptr2.c: Likewise.
30171         * tests/test-freadseek.c: Likewise.
30172         * tests/test-freopen.c: Likewise.
30173         * tests/test-frexp.c: Likewise.
30174         * tests/test-frexpl.c: Likewise.
30175         * tests/test-fseek.c: Likewise.
30176         * tests/test-fseeko.c: Likewise.
30177         * tests/test-fstatat.c: Likewise.
30178         * tests/test-fstrcmp.c: Likewise.
30179         * tests/test-fsync.c: Likewise.
30180         * tests/test-ftell.c: Likewise.
30181         * tests/test-ftello.c: Likewise.
30182         * tests/test-func.c: Likewise.
30183         * tests/test-futimens.c: Likewise.
30184         * tests/test-fwritable.c: Likewise.
30185         * tests/test-fwriting.c: Likewise.
30186         * tests/test-getcwd.c: Likewise.
30187         * tests/test-getdate.c: Likewise.
30188         * tests/test-getdelim.c: Likewise.
30189         * tests/test-getdtablesize.c: Likewise.
30190         * tests/test-getgroups.c: Likewise.
30191         * tests/test-getline.c: Likewise.
30192         * tests/test-getndelim2.c: Likewise.
30193         * tests/test-glob.c: Likewise.
30194         * tests/test-hash.c: Likewise.
30195         * tests/test-i-ring.c: Likewise.
30196         * tests/test-iconv-utf.c: Likewise.
30197         * tests/test-iconv.c: Likewise.
30198         * tests/test-idpriv-drop.c: Likewise.
30199         * tests/test-idpriv-droptemp.c: Likewise.
30200         * tests/test-inet_ntop.c: Likewise.
30201         * tests/test-inet_pton.c: Likewise.
30202         * tests/test-isblank.c: Likewise.
30203         * tests/test-isfinite.c: Likewise.
30204         * tests/test-isinf.c: Likewise.
30205         * tests/test-isnan.c: Likewise.
30206         * tests/test-isnand.h: Likewise.
30207         * tests/test-isnanf.h: Likewise.
30208         * tests/test-isnanl.h: Likewise.
30209         * tests/test-lchown.c: Likewise.
30210         * tests/test-ldexpl.c: Likewise.
30211         * tests/test-link.c: Likewise.
30212         * tests/test-linkat.c: Likewise.
30213         * tests/test-linked_list.c: Likewise.
30214         * tests/test-linkedhash_list.c: Likewise.
30215         * tests/test-localename.c: Likewise.
30216         * tests/test-lseek.c: Likewise.
30217         * tests/test-lstat.c: Likewise.
30218         * tests/test-mbmemcasecmp.c: Likewise.
30219         * tests/test-mbmemcasecoll.c: Likewise.
30220         * tests/test-mbrtowc.c: Likewise.
30221         * tests/test-mbscasecmp.c: Likewise.
30222         * tests/test-mbscasestr1.c: Likewise.
30223         * tests/test-mbscasestr2.c: Likewise.
30224         * tests/test-mbscasestr3.c: Likewise.
30225         * tests/test-mbscasestr4.c: Likewise.
30226         * tests/test-mbschr.c: Likewise.
30227         * tests/test-mbscspn.c: Likewise.
30228         * tests/test-mbsinit.c: Likewise.
30229         * tests/test-mbsncasecmp.c: Likewise.
30230         * tests/test-mbsnrtowcs.c: Likewise.
30231         * tests/test-mbspbrk.c: Likewise.
30232         * tests/test-mbspcasecmp.c: Likewise.
30233         * tests/test-mbsrchr.c: Likewise.
30234         * tests/test-mbsrtowcs.c: Likewise.
30235         * tests/test-mbsspn.c: Likewise.
30236         * tests/test-mbsstr1.c: Likewise.
30237         * tests/test-mbsstr2.c: Likewise.
30238         * tests/test-mbsstr3.c: Likewise.
30239         * tests/test-memchr.c: Likewise.
30240         * tests/test-memchr2.c: Likewise.
30241         * tests/test-memcmp.c: Likewise.
30242         * tests/test-memmem.c: Likewise.
30243         * tests/test-memrchr.c: Likewise.
30244         * tests/test-mkdir.c: Likewise.
30245         * tests/test-mkdirat.c: Likewise.
30246         * tests/test-mkfifo.c: Likewise.
30247         * tests/test-mkfifoat.c: Likewise.
30248         * tests/test-mknod.c: Likewise.
30249         * tests/test-nanosleep.c: Likewise.
30250         * tests/test-nl_langinfo.c: Likewise.
30251         * tests/test-obstack-printf.c: Likewise.
30252         * tests/test-open.c: Likewise.
30253         * tests/test-openat.c: Likewise.
30254         * tests/test-pipe-filter-gi1.c: Likewise.
30255         * tests/test-pipe-filter-gi2-main.c: Likewise.
30256         * tests/test-pipe-filter-ii1.c: Likewise.
30257         * tests/test-pipe-filter-ii2-main.c: Likewise.
30258         * tests/test-pipe2.c: Likewise.
30259         * tests/test-popen.h: Likewise.
30260         * tests/test-posixtm.c: Likewise.
30261         * tests/test-pread.c: Likewise.
30262         * tests/test-printf-frexp.c: Likewise.
30263         * tests/test-printf-frexpl.c: Likewise.
30264         * tests/test-printf-posix.c: Likewise.
30265         * tests/test-priv-set.c: Likewise.
30266         * tests/test-quotearg.c: Likewise.
30267         * tests/test-random_r.c: Likewise.
30268         * tests/test-rawmemchr.c: Likewise.
30269         * tests/test-rbtree_list.c: Likewise.
30270         * tests/test-rbtree_oset.c: Likewise.
30271         * tests/test-rbtreehash_list.c: Likewise.
30272         * tests/test-readlink.c: Likewise.
30273         * tests/test-remove.c: Likewise.
30274         * tests/test-rename.c: Likewise.
30275         * tests/test-renameat.c: Likewise.
30276         * tests/test-rmdir.c: Likewise.
30277         * tests/test-round1.c: Likewise.
30278         * tests/test-roundf1.c: Likewise.
30279         * tests/test-roundl.c: Likewise.
30280         * tests/test-safe-alloc.c: Likewise.
30281         * tests/test-sameacls.c: Likewise.
30282         * tests/test-set-mode-acl.c: Likewise.
30283         * tests/test-setenv.c: Likewise.
30284         * tests/test-sigaction.c: Likewise.
30285         * tests/test-signbit.c: Likewise.
30286         * tests/test-sleep.c: Likewise.
30287         * tests/test-snprintf-posix.c: Likewise.
30288         * tests/test-snprintf.c: Likewise.
30289         * tests/test-sprintf-posix.c: Likewise.
30290         * tests/test-stat-time.c: Likewise.
30291         * tests/test-stat.c: Likewise.
30292         * tests/test-strcasestr.c: Likewise.
30293         * tests/test-strchrnul.c: Likewise.
30294         * tests/test-strerror.c: Likewise.
30295         * tests/test-striconv.c: Likewise.
30296         * tests/test-striconveh.c: Likewise.
30297         * tests/test-striconveha.c: Likewise.
30298         * tests/test-strsignal.c: Likewise.
30299         * tests/test-strstr.c: Likewise.
30300         * tests/test-strtod.c: Likewise.
30301         * tests/test-strverscmp.c: Likewise.
30302         * tests/test-symlink.c: Likewise.
30303         * tests/test-symlinkat.c: Likewise.
30304         * tests/test-trunc1.c: Likewise.
30305         * tests/test-trunc2.c: Likewise.
30306         * tests/test-truncf1.c: Likewise.
30307         * tests/test-truncf2.c: Likewise.
30308         * tests/test-truncl.c: Likewise.
30309         * tests/test-uname.c: Likewise.
30310         * tests/test-unlink.c: Likewise.
30311         * tests/test-unlinkat.c: Likewise.
30312         * tests/test-unsetenv.c: Likewise.
30313         * tests/test-usleep.c: Likewise.
30314         * tests/test-utimens.c: Likewise.
30315         * tests/test-utimensat.c: Likewise.
30316         * tests/test-vasnprintf-posix.c: Likewise.
30317         * tests/test-vasnprintf-posix2.c: Likewise.
30318         * tests/test-vasnprintf.c: Likewise.
30319         * tests/test-vasprintf-posix.c: Likewise.
30320         * tests/test-vasprintf.c: Likewise.
30321         * tests/test-vdprintf-posix.c: Likewise.
30322         * tests/test-vfprintf-posix.c: Likewise.
30323         * tests/test-vprintf-posix.c: Likewise.
30324         * tests/test-vsnprintf-posix.c: Likewise.
30325         * tests/test-vsnprintf.c: Likewise.
30326         * tests/test-vsprintf-posix.c: Likewise.
30327         * tests/test-wcrtomb.c: Likewise.
30328         * tests/test-wcsnrtombs.c: Likewise.
30329         * tests/test-wcsrtombs.c: Likewise.
30330         * tests/test-wctype.c: Likewise.
30331         * tests/test-wcwidth.c: Likewise.
30332         * tests/test-xfprintf-posix.c: Likewise.
30333         * tests/test-xmemdup0.c: Likewise.
30334         * tests/test-xprintf-posix.c: Likewise.
30335         * tests/test-xvasprintf.c: Likewise.
30336         * tests/unicase/test-locale-language.c: Likewise.
30337         * tests/unicase/test-mapping-part1.h: Likewise.
30338         * tests/unicase/test-predicate-part1.h: Likewise.
30339         * tests/unicase/test-u8-casecmp.c: Likewise.
30340         * tests/unicase/test-u8-casecoll.c: Likewise.
30341         * tests/unicase/test-u8-casefold.c: Likewise.
30342         * tests/unicase/test-u8-is-cased.c: Likewise.
30343         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30344         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30345         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30346         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30347         * tests/unicase/test-u8-tolower.c: Likewise.
30348         * tests/unicase/test-u8-totitle.c: Likewise.
30349         * tests/unicase/test-u8-toupper.c: Likewise.
30350         * tests/unicase/test-u16-casecmp.c: Likewise.
30351         * tests/unicase/test-u16-casecoll.c: Likewise.
30352         * tests/unicase/test-u16-casefold.c: Likewise.
30353         * tests/unicase/test-u16-is-cased.c: Likewise.
30354         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30355         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30356         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30357         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30358         * tests/unicase/test-u16-tolower.c: Likewise.
30359         * tests/unicase/test-u16-totitle.c: Likewise.
30360         * tests/unicase/test-u16-toupper.c: Likewise.
30361         * tests/unicase/test-u32-casecmp.c: Likewise.
30362         * tests/unicase/test-u32-casecoll.c: Likewise.
30363         * tests/unicase/test-u32-casefold.c: Likewise.
30364         * tests/unicase/test-u32-is-cased.c: Likewise.
30365         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30366         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30367         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30368         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30369         * tests/unicase/test-u32-tolower.c: Likewise.
30370         * tests/unicase/test-u32-totitle.c: Likewise.
30371         * tests/unicase/test-u32-toupper.c: Likewise.
30372         * tests/unicase/test-ulc-casecmp.c: Likewise.
30373         * tests/unicase/test-ulc-casecoll.c: Likewise.
30374         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30375         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30376         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30377         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30378         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30379         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30380         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30381         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30382         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30383         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30384         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30385         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30386         * tests/unictype/test-bidi_byname.c: Likewise.
30387         * tests/unictype/test-bidi_name.c: Likewise.
30388         * tests/unictype/test-bidi_of.c: Likewise.
30389         * tests/unictype/test-bidi_test.c: Likewise.
30390         * tests/unictype/test-block_list.c: Likewise.
30391         * tests/unictype/test-block_of.c: Likewise.
30392         * tests/unictype/test-block_test.c: Likewise.
30393         * tests/unictype/test-categ_and.c: Likewise.
30394         * tests/unictype/test-categ_and_not.c: Likewise.
30395         * tests/unictype/test-categ_byname.c: Likewise.
30396         * tests/unictype/test-categ_name.c: Likewise.
30397         * tests/unictype/test-categ_none.c: Likewise.
30398         * tests/unictype/test-categ_of.c: Likewise.
30399         * tests/unictype/test-categ_or.c: Likewise.
30400         * tests/unictype/test-categ_test_withtable.c: Likewise.
30401         * tests/unictype/test-combining.c: Likewise.
30402         * tests/unictype/test-decdigit.c: Likewise.
30403         * tests/unictype/test-digit.c: Likewise.
30404         * tests/unictype/test-mirror.c: Likewise.
30405         * tests/unictype/test-numeric.c: Likewise.
30406         * tests/unictype/test-pr_byname.c: Likewise.
30407         * tests/unictype/test-pr_test.c: Likewise.
30408         * tests/unictype/test-predicate-part1.h: Likewise.
30409         * tests/unictype/test-scripts.c: Likewise.
30410         * tests/unictype/test-sy_c_ident.c: Likewise.
30411         * tests/unictype/test-sy_java_ident.c: Likewise.
30412         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30413         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30414         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30415         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30416         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30417         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30418         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30419         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30420         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30421         * tests/uninorm/test-compat-decomposition.c: Likewise.
30422         * tests/uninorm/test-composition.c: Likewise.
30423         * tests/uninorm/test-decomposing-form.c: Likewise.
30424         * tests/uninorm/test-decomposition.c: Likewise.
30425         * tests/uninorm/test-u8-nfc.c: Likewise.
30426         * tests/uninorm/test-u8-nfd.c: Likewise.
30427         * tests/uninorm/test-u8-nfkc.c: Likewise.
30428         * tests/uninorm/test-u8-nfkd.c: Likewise.
30429         * tests/uninorm/test-u8-normcmp.c: Likewise.
30430         * tests/uninorm/test-u8-normcoll.c: Likewise.
30431         * tests/uninorm/test-u16-nfc.c: Likewise.
30432         * tests/uninorm/test-u16-nfd.c: Likewise.
30433         * tests/uninorm/test-u16-nfkc.c: Likewise.
30434         * tests/uninorm/test-u16-nfkd.c: Likewise.
30435         * tests/uninorm/test-u16-normcmp.c: Likewise.
30436         * tests/uninorm/test-u16-normcoll.c: Likewise.
30437         * tests/uninorm/test-u32-nfc.c: Likewise.
30438         * tests/uninorm/test-u32-nfd.c: Likewise.
30439         * tests/uninorm/test-u32-nfkc.c: Likewise.
30440         * tests/uninorm/test-u32-nfkd.c: Likewise.
30441         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30442         * tests/uninorm/test-u32-normcmp.c: Likewise.
30443         * tests/uninorm/test-u32-normcoll.c: Likewise.
30444         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30445         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30446         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30447         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30448         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30449         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30450         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30451         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30452         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30453         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30454         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30455         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30456         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30457         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30458         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30459         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30460         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30461         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30462         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30463         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30464         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30465         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30466         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30467         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30468         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30469         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30470         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30471         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30472         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30473         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30474         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30475         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30476         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30477         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30478         * tests/uniwidth/test-u8-width.c: Likewise.
30479         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30480         * tests/uniwidth/test-u16-width.c: Likewise.
30481         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30482         * tests/uniwidth/test-u32-width.c: Likewise.
30483         * tests/uniwidth/test-uc_width.c: Likewise.
30484         * tests/uniwidth/test-uc_width2.c: Likewise.
30485         * modules/acl-tests (Files): Add tests/macros.h.
30486         * modules/areadlink-tests (Files): Likewise.
30487         * modules/areadlink-with-size-tests (Files): Likewise.
30488         * modules/areadlinkat-tests (Files): Likewise.
30489         * modules/areadlinkat-with-size-tests (Files): Likewise.
30490         * modules/argmatch-tests (Files): Likewise.
30491         * modules/argv-iter-tests (Files): Likewise.
30492         * modules/array-list-tests (Files): Likewise.
30493         * modules/array-mergesort-tests (Files): Likewise.
30494         * modules/array-oset-tests (Files): Likewise.
30495         * modules/avltree-list-tests (Files): Likewise.
30496         * modules/avltree-oset-tests (Files): Likewise.
30497         * modules/avltreehash-list-tests (Files): Likewise.
30498         * modules/base64-tests (Files): Likewise.
30499         * modules/binary-io-tests (Files): Likewise.
30500         * modules/bitrotate-tests (Files): Likewise.
30501         * modules/btowc-tests (Files): Likewise.
30502         * modules/byteswap-tests (Files): Likewise.
30503         * modules/c-ctype-tests (Files): Likewise.
30504         * modules/c-stack-tests (Files): Likewise.
30505         * modules/c-strcase-tests (Files): Likewise.
30506         * modules/c-strcasestr-tests (Files): Likewise.
30507         * modules/c-strstr-tests (Files): Likewise.
30508         * modules/canonicalize-lgpl-tests (Files): Likewise.
30509         * modules/canonicalize-tests (Files): Likewise.
30510         * modules/carray-list-tests (Files): Likewise.
30511         * modules/ceilf-tests (Files): Likewise.
30512         * modules/ceill-tests (Files): Likewise.
30513         * modules/chown-tests (Files): Likewise.
30514         * modules/cloexec-tests (Files): Likewise.
30515         * modules/copy-file-tests (Files): Likewise.
30516         * modules/count-one-bits-tests (Files): Likewise.
30517         * modules/dprintf-posix-tests (Files): Likewise.
30518         * modules/dup2-tests (Files): Likewise.
30519         * modules/dup3-tests (Files): Likewise.
30520         * modules/duplocale-tests (Files): Likewise.
30521         * modules/fbufmode-tests (Files): Likewise.
30522         * modules/fchdir-tests (Files): Likewise.
30523         * modules/fcntl-safer-tests (Files): Likewise.
30524         * modules/fcntl-tests (Files): Likewise.
30525         * modules/fdopendir-tests (Files): Likewise.
30526         * modules/fdutimensat-tests (Files): Likewise.
30527         * modules/fflush-tests (Files): Likewise.
30528         * modules/filevercmp-tests (Files): Likewise.
30529         * modules/flock-tests (Files): Likewise.
30530         * modules/floorf-tests (Files): Likewise.
30531         * modules/floorl-tests (Files): Likewise.
30532         * modules/fnmatch-tests (Files): Likewise.
30533         * modules/fopen-safer-tests (Files): Likewise.
30534         * modules/fopen-tests (Files): Likewise.
30535         * modules/fpending-tests (Files): Likewise.
30536         * modules/fprintf-posix-tests (Files): Likewise.
30537         * modules/fpurge-tests (Files): Likewise.
30538         * modules/freadable-tests (Files): Likewise.
30539         * modules/freadahead-tests (Files): Likewise.
30540         * modules/freading-tests (Files): Likewise.
30541         * modules/freadptr-tests (Files): Likewise.
30542         * modules/freadseek-tests (Files): Likewise.
30543         * modules/freopen-tests (Files): Likewise.
30544         * modules/frexp-nolibm-tests (Files): Likewise.
30545         * modules/frexp-tests (Files): Likewise.
30546         * modules/frexpl-nolibm-tests (Files): Likewise.
30547         * modules/frexpl-tests (Files): Likewise.
30548         * modules/fseek-tests (Files): Likewise.
30549         * modules/fseeko-tests (Files): Likewise.
30550         * modules/fstrcmp-tests (Files): Likewise.
30551         * modules/fsync-tests (Files): Likewise.
30552         * modules/ftell-tests (Files): Likewise.
30553         * modules/ftello-tests (Files): Likewise.
30554         * modules/func-tests (Files): Likewise.
30555         * modules/futimens-tests (Files): Likewise.
30556         * modules/fwritable-tests (Files): Likewise.
30557         * modules/fwriting-tests (Files): Likewise.
30558         * modules/getcwd-tests (Files): Likewise.
30559         * modules/getdate-tests (Files): Likewise.
30560         * modules/getdelim-tests (Files): Likewise.
30561         * modules/getdtablesize-tests (Files): Likewise.
30562         * modules/getgroups-tests (Files): Likewise.
30563         * modules/getline-tests (Files): Likewise.
30564         * modules/getndelim2-tests (Files): Likewise.
30565         * modules/glob-tests (Files): Likewise.
30566         * modules/hash-tests (Files): Likewise.
30567         * modules/i-ring-tests (Files): Likewise.
30568         * modules/iconv-tests (Files): Likewise.
30569         * modules/iconv_open-utf-tests (Files): Likewise.
30570         * modules/idpriv-drop-tests (Files): Likewise.
30571         * modules/idpriv-droptemp-tests (Files): Likewise.
30572         * modules/inet_ntop-tests (Files): Likewise.
30573         * modules/inet_pton-tests (Files): Likewise.
30574         * modules/isblank-tests (Files): Likewise.
30575         * modules/isfinite-tests (Files): Likewise.
30576         * modules/isinf-tests (Files): Likewise.
30577         * modules/isnan-tests (Files): Likewise.
30578         * modules/isnand-nolibm-tests (Files): Likewise.
30579         * modules/isnand-tests (Files): Likewise.
30580         * modules/isnanf-nolibm-tests (Files): Likewise.
30581         * modules/isnanf-tests (Files): Likewise.
30582         * modules/isnanl-nolibm-tests (Files): Likewise.
30583         * modules/isnanl-tests (Files): Likewise.
30584         * modules/lchown-tests (Files): Likewise.
30585         * modules/ldexpl-tests (Files): Likewise.
30586         * modules/link-tests (Files): Likewise.
30587         * modules/linkat-tests (Files): Likewise.
30588         * modules/linked-list-tests (Files): Likewise.
30589         * modules/linkedhash-list-tests (Files): Likewise.
30590         * modules/localename-tests (Files): Likewise.
30591         * modules/lseek-tests (Files): Likewise.
30592         * modules/lstat-tests (Files): Likewise.
30593         * modules/mbmemcasecmp-tests (Files): Likewise.
30594         * modules/mbmemcasecoll-tests (Files): Likewise.
30595         * modules/mbrtowc-tests (Files): Likewise.
30596         * modules/mbscasecmp-tests (Files): Likewise.
30597         * modules/mbscasestr-tests (Files): Likewise.
30598         * modules/mbschr-tests (Files): Likewise.
30599         * modules/mbscspn-tests (Files): Likewise.
30600         * modules/mbsinit-tests (Files): Likewise.
30601         * modules/mbsncasecmp-tests (Files): Likewise.
30602         * modules/mbsnrtowcs-tests (Files): Likewise.
30603         * modules/mbspbrk-tests (Files): Likewise.
30604         * modules/mbspcasecmp-tests (Files): Likewise.
30605         * modules/mbsrchr-tests (Files): Likewise.
30606         * modules/mbsrtowcs-tests (Files): Likewise.
30607         * modules/mbsspn-tests (Files): Likewise.
30608         * modules/mbsstr-tests (Files): Likewise.
30609         * modules/memchr-tests (Files): Likewise.
30610         * modules/memchr2-tests (Files): Likewise.
30611         * modules/memcmp-tests (Files): Likewise.
30612         * modules/memmem-tests (Files): Likewise.
30613         * modules/memrchr-tests (Files): Likewise.
30614         * modules/mkdir-tests (Files): Likewise.
30615         * modules/mkfifo-tests (Files): Likewise.
30616         * modules/mkfifoat-tests (Files): Likewise.
30617         * modules/mknod-tests (Files): Likewise.
30618         * modules/nanosleep-tests (Files): Likewise.
30619         * modules/nl_langinfo-tests (Files): Likewise.
30620         * modules/obstack-printf-tests (Files): Likewise.
30621         * modules/open-tests (Files): Likewise.
30622         * modules/openat-tests (Files): Likewise.
30623         * modules/pipe-filter-gi-tests (Files): Likewise.
30624         * modules/pipe-filter-ii-tests (Files): Likewise.
30625         * modules/pipe2-tests (Files): Likewise.
30626         * modules/popen-safer-tests (Files): Likewise.
30627         * modules/popen-tests (Files): Likewise.
30628         * modules/posixtm-tests (Files): Likewise.
30629         * modules/pread-tests (Files): Likewise.
30630         * modules/printf-frexp-tests (Files): Likewise.
30631         * modules/printf-frexpl-tests (Files): Likewise.
30632         * modules/printf-posix-tests (Files): Likewise.
30633         * modules/priv-set-tests (Files): Likewise.
30634         * modules/quotearg-tests (Files): Likewise.
30635         * modules/random_r-tests (Files): Likewise.
30636         * modules/rawmemchr-tests (Files): Likewise.
30637         * modules/rbtree-list-tests (Files): Likewise.
30638         * modules/rbtree-oset-tests (Files): Likewise.
30639         * modules/rbtreehash-list-tests (Files): Likewise.
30640         * modules/readlink-tests (Files): Likewise.
30641         * modules/remove-tests (Files): Likewise.
30642         * modules/rename-tests (Files): Likewise.
30643         * modules/renameat-tests (Files): Likewise.
30644         * modules/rmdir-tests (Files): Likewise.
30645         * modules/round-tests (Files): Likewise.
30646         * modules/roundf-tests (Files): Likewise.
30647         * modules/roundl-tests (Files): Likewise.
30648         * modules/safe-alloc-tests (Files): Likewise.
30649         * modules/setenv-tests (Files): Likewise.
30650         * modules/sigaction-tests (Files): Likewise.
30651         * modules/signbit-tests (Files): Likewise.
30652         * modules/sleep-tests (Files): Likewise.
30653         * modules/snprintf-posix-tests (Files): Likewise.
30654         * modules/snprintf-tests (Files): Likewise.
30655         * modules/sprintf-posix-tests (Files): Likewise.
30656         * modules/stat-tests (Files): Likewise.
30657         * modules/stat-time-tests (Files): Likewise.
30658         * modules/strcasestr-tests (Files): Likewise.
30659         * modules/strchrnul-tests (Files): Likewise.
30660         * modules/strerror-tests (Files): Likewise.
30661         * modules/striconv-tests (Files): Likewise.
30662         * modules/striconveh-tests (Files): Likewise.
30663         * modules/striconveha-tests (Files): Likewise.
30664         * modules/strsignal-tests (Files): Likewise.
30665         * modules/strstr-tests (Files): Likewise.
30666         * modules/strtod-tests (Files): Likewise.
30667         * modules/strverscmp-tests (Files): Likewise.
30668         * modules/symlink-tests (Files): Likewise.
30669         * modules/symlinkat-tests (Files): Likewise.
30670         * modules/trunc-tests (Files): Likewise.
30671         * modules/truncf-tests (Files): Likewise.
30672         * modules/truncl-tests (Files): Likewise.
30673         * modules/uname-tests (Files): Likewise.
30674         * modules/unicase/cased-tests (Files): Likewise.
30675         * modules/unicase/ignorable-tests (Files): Likewise.
30676         * modules/unicase/locale-language-tests (Files): Likewise.
30677         * modules/unicase/tolower-tests (Files): Likewise.
30678         * modules/unicase/totitle-tests (Files): Likewise.
30679         * modules/unicase/toupper-tests (Files): Likewise.
30680         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30681         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30682         * modules/unicase/u8-casefold-tests (Files): Likewise.
30683         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30684         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30685         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30686         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30687         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30688         * modules/unicase/u8-tolower-tests (Files): Likewise.
30689         * modules/unicase/u8-totitle-tests (Files): Likewise.
30690         * modules/unicase/u8-toupper-tests (Files): Likewise.
30691         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30692         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30693         * modules/unicase/u16-casefold-tests (Files): Likewise.
30694         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30695         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30696         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30697         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30698         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30699         * modules/unicase/u16-tolower-tests (Files): Likewise.
30700         * modules/unicase/u16-totitle-tests (Files): Likewise.
30701         * modules/unicase/u16-toupper-tests (Files): Likewise.
30702         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30703         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30704         * modules/unicase/u32-casefold-tests (Files): Likewise.
30705         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30706         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30707         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30708         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30709         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30710         * modules/unicase/u32-tolower-tests (Files): Likewise.
30711         * modules/unicase/u32-totitle-tests (Files): Likewise.
30712         * modules/unicase/u32-toupper-tests (Files): Likewise.
30713         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30714         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30715         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30716         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30717         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30718         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30719         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30720         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30721         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30722         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30723         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30724         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30725         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30726         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30727         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30728         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30729         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30730         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30731         * modules/unictype/block-list-tests (Files): Likewise.
30732         * modules/unictype/block-of-tests (Files): Likewise.
30733         * modules/unictype/block-test-tests (Files): Likewise.
30734         * modules/unictype/category-C-tests (Files): Likewise.
30735         * modules/unictype/category-Cc-tests (Files): Likewise.
30736         * modules/unictype/category-Cf-tests (Files): Likewise.
30737         * modules/unictype/category-Cn-tests (Files): Likewise.
30738         * modules/unictype/category-Co-tests (Files): Likewise.
30739         * modules/unictype/category-Cs-tests (Files): Likewise.
30740         * modules/unictype/category-L-tests (Files): Likewise.
30741         * modules/unictype/category-Ll-tests (Files): Likewise.
30742         * modules/unictype/category-Lm-tests (Files): Likewise.
30743         * modules/unictype/category-Lo-tests (Files): Likewise.
30744         * modules/unictype/category-Lt-tests (Files): Likewise.
30745         * modules/unictype/category-Lu-tests (Files): Likewise.
30746         * modules/unictype/category-M-tests (Files): Likewise.
30747         * modules/unictype/category-Mc-tests (Files): Likewise.
30748         * modules/unictype/category-Me-tests (Files): Likewise.
30749         * modules/unictype/category-Mn-tests (Files): Likewise.
30750         * modules/unictype/category-N-tests (Files): Likewise.
30751         * modules/unictype/category-Nd-tests (Files): Likewise.
30752         * modules/unictype/category-Nl-tests (Files): Likewise.
30753         * modules/unictype/category-No-tests (Files): Likewise.
30754         * modules/unictype/category-P-tests (Files): Likewise.
30755         * modules/unictype/category-Pc-tests (Files): Likewise.
30756         * modules/unictype/category-Pd-tests (Files): Likewise.
30757         * modules/unictype/category-Pe-tests (Files): Likewise.
30758         * modules/unictype/category-Pf-tests (Files): Likewise.
30759         * modules/unictype/category-Pi-tests (Files): Likewise.
30760         * modules/unictype/category-Po-tests (Files): Likewise.
30761         * modules/unictype/category-Ps-tests (Files): Likewise.
30762         * modules/unictype/category-S-tests (Files): Likewise.
30763         * modules/unictype/category-Sc-tests (Files): Likewise.
30764         * modules/unictype/category-Sk-tests (Files): Likewise.
30765         * modules/unictype/category-Sm-tests (Files): Likewise.
30766         * modules/unictype/category-So-tests (Files): Likewise.
30767         * modules/unictype/category-Z-tests (Files): Likewise.
30768         * modules/unictype/category-Zl-tests (Files): Likewise.
30769         * modules/unictype/category-Zp-tests (Files): Likewise.
30770         * modules/unictype/category-Zs-tests (Files): Likewise.
30771         * modules/unictype/category-and-not-tests (Files): Likewise.
30772         * modules/unictype/category-and-tests (Files): Likewise.
30773         * modules/unictype/category-byname-tests (Files): Likewise.
30774         * modules/unictype/category-name-tests (Files): Likewise.
30775         * modules/unictype/category-none-tests (Files): Likewise.
30776         * modules/unictype/category-of-tests (Files): Likewise.
30777         * modules/unictype/category-or-tests (Files): Likewise.
30778         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30779         * modules/unictype/combining-class-tests (Files): Likewise.
30780         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30781         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30782         * modules/unictype/ctype-blank-tests (Files): Likewise.
30783         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30784         * modules/unictype/ctype-digit-tests (Files): Likewise.
30785         * modules/unictype/ctype-graph-tests (Files): Likewise.
30786         * modules/unictype/ctype-lower-tests (Files): Likewise.
30787         * modules/unictype/ctype-print-tests (Files): Likewise.
30788         * modules/unictype/ctype-punct-tests (Files): Likewise.
30789         * modules/unictype/ctype-space-tests (Files): Likewise.
30790         * modules/unictype/ctype-upper-tests (Files): Likewise.
30791         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30792         * modules/unictype/decimal-digit-tests (Files): Likewise.
30793         * modules/unictype/digit-tests (Files): Likewise.
30794         * modules/unictype/mirror-tests (Files): Likewise.
30795         * modules/unictype/numeric-tests (Files): Likewise.
30796         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30797         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30798         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30799         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30800         Likewise.
30801         * modules/unictype/property-bidi-block-separator-tests (Files):
30802         Likewise.
30803         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30804         Likewise.
30805         * modules/unictype/property-bidi-common-separator-tests (Files):
30806         Likewise.
30807         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30808         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30809         Likewise.
30810         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30811         Likewise.
30812         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30813         Likewise.
30814         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30815         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30816         Likewise.
30817         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30818         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30819         Likewise.
30820         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30821         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30822         * modules/unictype/property-bidi-segment-separator-tests (Files):
30823         Likewise.
30824         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30825         * modules/unictype/property-byname-tests (Files): Likewise.
30826         * modules/unictype/property-combining-tests (Files): Likewise.
30827         * modules/unictype/property-composite-tests (Files): Likewise.
30828         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30829         * modules/unictype/property-dash-tests (Files): Likewise.
30830         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30831         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30832         Likewise.
30833         * modules/unictype/property-deprecated-tests (Files): Likewise.
30834         * modules/unictype/property-diacritic-tests (Files): Likewise.
30835         * modules/unictype/property-extender-tests (Files): Likewise.
30836         * modules/unictype/property-format-control-tests (Files): Likewise.
30837         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30838         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30839         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30840         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30841         * modules/unictype/property-hyphen-tests (Files): Likewise.
30842         * modules/unictype/property-id-continue-tests (Files): Likewise.
30843         * modules/unictype/property-id-start-tests (Files): Likewise.
30844         * modules/unictype/property-ideographic-tests (Files): Likewise.
30845         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30846         * modules/unictype/property-ids-trinary-operator-tests (Files):
30847         Likewise.
30848         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30849         * modules/unictype/property-iso-control-tests (Files): Likewise.
30850         * modules/unictype/property-join-control-tests (Files): Likewise.
30851         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30852         * modules/unictype/property-line-separator-tests (Files): Likewise.
30853         * modules/unictype/property-logical-order-exception-tests (Files):
30854         Likewise.
30855         * modules/unictype/property-lowercase-tests (Files): Likewise.
30856         * modules/unictype/property-math-tests (Files): Likewise.
30857         * modules/unictype/property-non-break-tests (Files): Likewise.
30858         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30859         * modules/unictype/property-numeric-tests (Files): Likewise.
30860         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30861         * modules/unictype/property-other-default-ignorable-code-point-tests
30862         (Files): Likewise.
30863         * modules/unictype/property-other-grapheme-extend-tests (Files):
30864         Likewise.
30865         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30866         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30867         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30868         * modules/unictype/property-other-math-tests (Files): Likewise.
30869         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30870         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30871         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30872         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30873         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30874         * modules/unictype/property-private-use-tests (Files): Likewise.
30875         * modules/unictype/property-punctuation-tests (Files): Likewise.
30876         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30877         * modules/unictype/property-radical-tests (Files): Likewise.
30878         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30879         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30880         * modules/unictype/property-space-tests (Files): Likewise.
30881         * modules/unictype/property-terminal-punctuation-tests (Files):
30882         Likewise.
30883         * modules/unictype/property-test-tests (Files): Likewise.
30884         * modules/unictype/property-titlecase-tests (Files): Likewise.
30885         * modules/unictype/property-unassigned-code-value-tests (Files):
30886         Likewise.
30887         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30888         * modules/unictype/property-uppercase-tests (Files): Likewise.
30889         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30890         * modules/unictype/property-white-space-tests (Files): Likewise.
30891         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30892         * modules/unictype/property-xid-start-tests (Files): Likewise.
30893         * modules/unictype/property-zero-width-tests (Files): Likewise.
30894         * modules/unictype/scripts-tests (Files): Likewise.
30895         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30896         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30897         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30898         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30899         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30900         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30901         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30902         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30903         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30904         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30905         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30906         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30907         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30908         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30909         * modules/uninorm/composition-tests (Files): Likewise.
30910         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30911         * modules/uninorm/decomposition-tests (Files): Likewise.
30912         * modules/uninorm/filter-tests (Files): Likewise.
30913         * modules/uninorm/nfc-tests (Files): Likewise.
30914         * modules/uninorm/nfd-tests (Files): Likewise.
30915         * modules/uninorm/nfkc-tests (Files): Likewise.
30916         * modules/uninorm/nfkd-tests (Files): Likewise.
30917         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30918         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30919         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30920         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30921         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30922         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30923         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30924         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30925         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30926         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30927         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30928         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30929         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30930         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30931         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30932         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30933         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30934         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30935         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30936         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30937         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30938         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30939         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30940         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30941         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30942         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30943         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30944         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30945         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30946         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30947         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30948         * modules/uniwidth/u8-width-tests (Files): Likewise.
30949         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30950         * modules/uniwidth/u16-width-tests (Files): Likewise.
30951         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30952         * modules/uniwidth/u32-width-tests (Files): Likewise.
30953         * modules/uniwidth/width-tests (Files): Likewise.
30954         * modules/unlink-tests (Files): Likewise.
30955         * modules/unsetenv-tests (Files): Likewise.
30956         * modules/usleep-tests (Files): Likewise.
30957         * modules/utimens-tests (Files): Likewise.
30958         * modules/utimensat-tests (Files): Likewise.
30959         * modules/vasnprintf-posix-tests (Files): Likewise.
30960         * modules/vasnprintf-tests (Files): Likewise.
30961         * modules/vasprintf-posix-tests (Files): Likewise.
30962         * modules/vasprintf-tests (Files): Likewise.
30963         * modules/vdprintf-posix-tests (Files): Likewise.
30964         * modules/vfprintf-posix-tests (Files): Likewise.
30965         * modules/vprintf-posix-tests (Files): Likewise.
30966         * modules/vsnprintf-posix-tests (Files): Likewise.
30967         * modules/vsnprintf-tests (Files): Likewise.
30968         * modules/vsprintf-posix-tests (Files): Likewise.
30969         * modules/wcrtomb-tests (Files): Likewise.
30970         * modules/wcsnrtombs-tests (Files): Likewise.
30971         * modules/wcsrtombs-tests (Files): Likewise.
30972         * modules/wctype-tests (Files): Likewise.
30973         * modules/wcwidth-tests (Files): Likewise.
30974         * modules/xmemdup0-tests (Files): Likewise.
30975         * modules/xprintf-posix-tests (Files): Likewise.
30976         * modules/xvasprintf-tests (Files): Likewise.
30977
30978 2009-12-24  Eric Blake  <ebb9@byu.net>
30979
30980         test-nanosleep: fix typo
30981         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30982         patch.
30983         Reported by Bruno Haible.
30984
30985 2009-12-24  Bruno Haible  <bruno@clisp.org>
30986
30987         Reduce namespace pollution on glibc systems.
30988         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30989         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30990         systems.
30991         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30992         <getopt.h> on glibc systems.
30993         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30994         systems.
30995         * lib/fcntl.c: Include <unistd.h> here instead.
30996
30997 2009-12-24  Bruno Haible  <bruno@clisp.org>
30998
30999         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31000
31001 2009-12-24  Eric Blake  <ebb9@byu.net>
31002
31003         tests: add signature checks
31004         * tests/signature.h (SIGNATURE_CHECK): New file.
31005         * modules/atexit-tests (Files): Use it.
31006         * modules/btowc-tests (Files): Likewise.
31007         * modules/canonicalize-lgpl-tests (Files): Likewise.
31008         * modules/ceilf-tests (Files): Likewise.
31009         * modules/ceill-tests (Files): Likewise.
31010         * modules/chown-tests (Files): Likewise.
31011         * modules/dprintf-posix-tests (Files): Likewise.
31012         * modules/dup2-tests (Files): Likewise.
31013         * modules/dup3-tests (Files): Likewise.
31014         * modules/duplocale-tests (Files): Likewise.
31015         * modules/fchdir-tests (Files): Likewise.
31016         * modules/fcntl-tests (Files): Likewise.
31017         * modules/fdopendir-tests (Files): Likewise.
31018         * modules/fflush-tests (Files): Likewise.
31019         * modules/flock-tests (Files): Likewise.
31020         * modules/floorf-tests (Files): Likewise.
31021         * modules/floorl-tests (Files): Likewise.
31022         * modules/fnmatch-tests (Files): Likewise.
31023         * modules/fopen-tests (Files): Likewise.
31024         * modules/fprintf-posix-tests (Files): Likewise.
31025         * modules/freopen-tests (Files): Likewise.
31026         * modules/frexp-nolibm-tests (Files): Likewise.
31027         * modules/frexp-tests (Files): Likewise.
31028         * modules/frexpl-nolibm-tests (Files): Likewise.
31029         * modules/frexpl-tests (Files): Likewise.
31030         * modules/fseek-tests (Files): Likewise.
31031         * modules/fseeko-tests (Files): Likewise.
31032         * modules/fsync-tests (Files): Likewise.
31033         * modules/ftell-tests (Files): Likewise.
31034         * modules/ftello-tests (Files): Likewise.
31035         * modules/futimens-tests (Files): Likewise.
31036         * modules/getaddrinfo-tests (Files): Likewise.
31037         * modules/getcwd-tests (Files): Likewise.
31038         * modules/getdelim-tests (Files): Likewise.
31039         * modules/getdtablesize-tests (Files): Likewise.
31040         * modules/getgroups-tests (Files): Likewise.
31041         * modules/gethostname-tests (Files): Likewise.
31042         * modules/getline-tests (Files): Likewise.
31043         * modules/getopt-posix-tests (Files): Likewise.
31044         * modules/gettimeofday-tests (Files): Likewise.
31045         * modules/glob-tests (Files): Likewise.
31046         * modules/iconv-tests (Files): Likewise.
31047         * modules/inet_ntop-tests (Files): Likewise.
31048         * modules/inet_pton-tests (Files): Likewise.
31049         * modules/isblank-tests (Files): Likewise.
31050         * modules/lchown-tests (Files): Likewise.
31051         * modules/ldexpl-tests (Files): Likewise.
31052         * modules/link-tests (Files): Likewise.
31053         * modules/linkat-tests (Files): Likewise.
31054         * modules/lseek-tests (Files): Likewise.
31055         * modules/lstat-tests (Files): Likewise.
31056         * modules/mbrtowc-tests (Files): Likewise.
31057         * modules/mbsinit-tests (Files): Likewise.
31058         * modules/mbsnrtowcs-tests (Files): Likewise.
31059         * modules/mbsrtowcs-tests (Files): Likewise.
31060         * modules/memchr-tests (Files): Likewise.
31061         * modules/memcmp-tests (Files): Likewise.
31062         * modules/memmem-tests (Files): Likewise.
31063         * modules/memrchr-tests (Files): Likewise.
31064         * modules/mkdir-tests (Files): Likewise.
31065         * modules/mkfifo-tests (Files): Likewise.
31066         * modules/mkfifoat-tests (Files): Likewise.
31067         * modules/mknod-tests (Files): Likewise.
31068         * modules/nanosleep-tests (Files): Likewise.
31069         * modules/nl_langinfo-tests (Files): Likewise.
31070         * modules/obstack-printf-tests (Files): Likewise.
31071         * modules/open-tests (Files): Likewise.
31072         * modules/openat-tests (Files): Likewise.
31073         * modules/perror-tests (Files): Likewise.
31074         * modules/pipe2-tests (Files): Likewise.
31075         * modules/poll-tests (Files): Likewise.
31076         * modules/popen-tests (Files): Likewise.
31077         * modules/posix_spawn-tests (Files): Likewise.
31078         * modules/posix_spawnp-tests (Files): Likewise.
31079         * modules/pread-tests (Files): Likewise.
31080         * modules/printf-posix-tests (Files): Likewise.
31081         * modules/pty-tests (Files): Likewise.
31082         * modules/random_r-tests (Files): Likewise.
31083         * modules/rawmemchr-tests (Files): Likewise.
31084         * modules/readlink-tests (Files): Likewise.
31085         * modules/remove-tests (Files): Likewise.
31086         * modules/rename-tests (Files): Likewise.
31087         * modules/renameat-tests (Files): Likewise.
31088         * modules/rmdir-tests (Files): Likewise.
31089         * modules/round-tests (Files): Likewise.
31090         * modules/roundf-tests (Files): Likewise.
31091         * modules/roundl-tests (Files): Likewise.
31092         * modules/select-tests (Files): Likewise.
31093         * modules/setenv-tests (Files): Likewise.
31094         * modules/sigaction-tests (Files): Likewise.
31095         * modules/sleep-tests (Files): Likewise.
31096         * modules/snprintf-posix-tests (Files): Likewise.
31097         * modules/snprintf-tests (Files): Likewise.
31098         * modules/sprintf-posix-tests (Files): Likewise.
31099         * modules/stat-tests (Files): Likewise.
31100         * modules/strcasestr-tests (Files): Likewise.
31101         * modules/strchrnul-tests (Files): Likewise.
31102         * modules/strerror-tests (Files): Likewise.
31103         * modules/strsignal-tests (Files): Likewise.
31104         * modules/strstr-tests (Files): Likewise.
31105         * modules/strtod-tests (Files): Likewise.
31106         * modules/strverscmp-tests (Files): Likewise.
31107         * modules/symlink-tests (Files): Likewise.
31108         * modules/symlinkat-tests (Files): Likewise.
31109         * modules/times-tests (Files): Likewise.
31110         * modules/trunc-tests (Files): Likewise.
31111         * modules/truncf-tests (Files): Likewise.
31112         * modules/truncl-tests (Files): Likewise.
31113         * modules/tsearch-tests (Files): Likewise.
31114         * modules/uname-tests (Files): Likewise.
31115         * modules/unlink-tests (Files): Likewise.
31116         * modules/unsetenv-tests (Files): Likewise.
31117         * modules/usleep-tests (Files): Likewise.
31118         * modules/utimensat-tests (Files): Likewise.
31119         * modules/vasprintf-tests (Files): Likewise.
31120         * modules/vdprintf-posix-tests (Files): Likewise.
31121         * modules/vfprintf-posix-tests (Files): Likewise.
31122         * modules/vprintf-posix-tests (Files): Likewise.
31123         * modules/vsnprintf-posix-tests (Files): Likewise.
31124         * modules/vsnprintf-tests (Files): Likewise.
31125         * modules/vsprintf-posix-tests (Files): Likewise.
31126         * modules/wcrtomb-tests (Files): Likewise.
31127         * modules/wcsnrtombs-tests (Files): Likewise.
31128         * modules/wcsrtombs-tests (Files): Likewise.
31129         * modules/wcwidth-tests (Files): Likewise.
31130         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31131         * tests/test-isinf.c (isinf): Likewise.
31132         * tests/test-isnan.c (isnan): Likewise.
31133         * tests/test-signbit.c (signbit): Likewise.
31134         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31135         declaration, either as macro or with correct signature.
31136         (select): Ensure function under test is declared with correct
31137         signature in correct header.
31138         * tests/test-atexit.c (atexit): Likewise.
31139         * tests/test-btowc.c (btowc): Likewise.
31140         * tests/test-canonicalize-lgpl.c (realpath)
31141         (canonicalize_file_name): Likewise.
31142         * tests/test-ceilf1.c (ceilf): Likewise.
31143         * tests/test-ceill.c (ceill): Likewise.
31144         * tests/test-chown.c (chown): Likewise.
31145         * tests/test-dprintf-posix.c (dprintf): Likewise.
31146         * tests/test-dup2.c (dup2): Likewise.
31147         * tests/test-dup3.c (dup3): Likewise.
31148         * tests/test-duplocale.c (duplocale): Likewise.
31149         * tests/test-fchdir.c (fchdir): Likewise.
31150         * tests/test-fchownat.c (fchownat): Likewise.
31151         * tests/test-fcntl.c (fcntl): Likewise.
31152         * tests/test-fdopendir.c (fdopendir): Likewise.
31153         * tests/test-fflush.c (fflush): Likewise.
31154         * tests/test-flock.c (flock): Likewise.
31155         * tests/test-floorf1.c (floorf): Likewise.
31156         * tests/test-floorl.c (floorl): Likewise.
31157         * tests/test-fnmatch.c (fnmatch): Likewise.
31158         * tests/test-fopen.c (fopen): Likewise.
31159         * tests/test-fprintf-posix.c (fprintf): Likewise.
31160         * tests/test-freopen.c (freopen): Likewise.
31161         * tests/test-frexp.c (frexp): Likewise.
31162         * tests/test-frexpl.c (frexpl): Likewise.
31163         * tests/test-fseek.c (fseek): Likewise.
31164         * tests/test-fseeko.c (fseeko): Likewise.
31165         * tests/test-fstatat.c (fstatat): Likewise.
31166         * tests/test-fsync.c (fsync): Likewise.
31167         * tests/test-ftell.c (ftell): Likewise.
31168         * tests/test-ftello.c (ftello): Likewise.
31169         * tests/test-futimens.c (futimens): Likewise.
31170         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31171         (gai_strerror): Likewise.
31172         * tests/test-getcwd.c (getcwd): Likewise.
31173         * tests/test-getdelim.c (getdelim): Likewise.
31174         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31175         * tests/test-getgroups.c (getgroups): Likewise.
31176         * tests/test-gethostname.c (gethostname): Likewise.
31177         * tests/test-getline.c (getline): Likewise.
31178         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31179         Likewise.
31180         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31181         * tests/test-glob.c (glob, globfree): Likewise.
31182         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31183         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31184         * tests/test-inet_pton.c (inet_pton): Likewise.
31185         * tests/test-isblank.c (isblank): Likewise.
31186         * tests/test-lchown.c (lchown): Likewise.
31187         * tests/test-ldexpl.c (ldexpl): Likewise.
31188         * tests/test-link.c (link): Likewise.
31189         * tests/test-linkat.c (linkat): Likewise.
31190         * tests/test-lseek.c (lseek): Likewise.
31191         * tests/test-lstat.c (lstat): Likewise.
31192         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31193         * tests/test-mbsinit.c (mbsinit): Likewise.
31194         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31195         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31196         * tests/test-memchr.c (memchr): Likewise.
31197         * tests/test-memcmp.c (memcmp): Likewise.
31198         * tests/test-memmem.c (memmem): Likewise.
31199         * tests/test-memrchr.c (memrchr): Likewise.
31200         * tests/test-mkdir.c (mkdir): Likewise.
31201         * tests/test-mkdirat.c (mkdirat): Likewise.
31202         * tests/test-mkfifo.c (mkfifo): Likewise.
31203         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31204         * tests/test-mknod.c (mknod): Likewise.
31205         * tests/test-nanosleep.c (nanosleep): Likewise.
31206         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31207         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31208         Likewise.
31209         * tests/test-open.c (open): Likewise.
31210         * tests/test-openat.c (openat): Likewise.
31211         * tests/test-perror.c (perror): Likewise.
31212         * tests/test-pipe2.c (pipe2): Likewise.
31213         * tests/test-poll.c (poll): Likewise.
31214         * tests/test-popen.c (popen, pclose): Likewise.
31215         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31216         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31217         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31218         (posix_spawn_file_actions_destroy)
31219         (posix_spawn_file_actions_addclose)
31220         (posix_spawn_file_actions_addopen)
31221         (posix_spawn_file_actions_adddup2): Likewise.
31222         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31223         * tests/test-pread.c (pread): Likewise.
31224         * tests/test-printf-posix.c (printf): Likewise.
31225         * tests/test-pty.c (openpty, forkpty): Likewise.
31226         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31227         (random_r): Likewise.
31228         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31229         * tests/test-readlink.c (readlink): Likewise.
31230         * tests/test-remove.c (remove): Likewise.
31231         * tests/test-rename.c (rename): Likewise.
31232         * tests/test-renameat.c (renameat): Likewise.
31233         * tests/test-rmdir.c (rmdir): Likewise.
31234         * tests/test-round1.c (round): Likewise.
31235         * tests/test-roundf1.c (roundf): Likewise.
31236         * tests/test-roundl.c (roundl): Likewise.
31237         * tests/test-setenv.c (setenv): Likewise.
31238         * tests/test-sigaction.c (sigaction): Likewise.
31239         * tests/test-sleep.c (sleep): Likewise.
31240         * tests/test-snprintf.c (snprintf): Likewise.
31241         * tests/test-sprintf-posix.c (sprintf): Likewise.
31242         * tests/test-stat.c (stat): Likewise.
31243         * tests/test-stpncpy.c (stpncpy): Likewise.
31244         * tests/test-strcasestr.c (strcasestr): Likewise.
31245         * tests/test-strchrnul.c (strchrnul): Likewise.
31246         * tests/test-strerror.c (strerror): Likewise.
31247         * tests/test-strsignal.c (strsignal): Likewise.
31248         * tests/test-strstr.c (strstr): Likewise.
31249         * tests/test-strtod.c (strtod): Likewise.
31250         * tests/test-strverscmp.c (strverscmp): Likewise.
31251         * tests/test-symlink.c (symlink): Likewise.
31252         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31253         * tests/test-times.c (times): Likewise.
31254         * tests/test-trunc1.c (trunc): Likewise.
31255         * tests/test-truncf1.c (truncf): Likewise.
31256         * tests/test-truncl.c (truncl): Likewise.
31257         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31258         Likewise.
31259         * tests/test-uname.c (uname): Likewise.
31260         * tests/test-unlink.c (unlink): Likewise.
31261         * tests/test-unlinkat.c (unlinkat): Likewise.
31262         * tests/test-unsetenv.c (unsetenv): Likewise.
31263         * tests/test-usleep.c (usleep): Likewise.
31264         * tests/test-utimensat.c (utimensat): Likewise.
31265         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31266         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31267         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31268         * tests/test-vprintf-posix.c (vprintf): Likewise.
31269         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31270         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31271         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31272         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31273         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31274         * tests/test-wcwidth.c (wcwidth): Likewise.
31275
31276         build: pull in conditional headers during GNULIB_POSIXCHECK
31277         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31278         definitions from any conditionally-included headers.
31279         * lib/stdlib.in.h (includes): Likewise.
31280         * lib/unistd.in.h (includes): Likewise.
31281
31282 2009-12-24  Bruno Haible  <bruno@clisp.org>
31283
31284         * tests/test-argv-iter.c: Include header file being tested immediately
31285         after config.h.
31286         * tests/test-base64.c: Likewise.
31287         * tests/test-flock.c: Likewise.
31288         * tests/test-fsync.c: Likewise.
31289         * tests/test-getdate.c: Likewise.
31290         * tests/test-getndelim2.c: Likewise.
31291         * tests/test-isfinite.c: Likewise.
31292         * tests/test-isinf.c: Likewise.
31293         * tests/test-strerror.c: Likewise.
31294         * tests/test-strsignal.c: Likewise.
31295
31296 2009-12-23  Eric Blake  <ebb9@byu.net>
31297
31298         unistd: work around cygwin bug
31299         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31300         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31301         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31302
31303 2009-12-23  Bruno Haible  <bruno@clisp.org>
31304
31305         localename: More tests.
31306         * tests/test-localename.c (SIZEOF): New macro.
31307         (categories): New variable.
31308         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31309         test_locale_name_default): Add test w.r.t. thread locale.
31310         (test_locale_name_thread): New function.
31311         (main): Invoke it.
31312
31313         localename: Make aware of thread locale.
31314         * lib/localename.h (gl_locale_name_thread): New declaration.
31315         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31316         behaviour with respect to thread locale.
31317         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31318         <langinfo.h>, glthread/lock.h.
31319         (SIZE_BITS): New macro.
31320         (string_hash): New function.
31321         (struct hash_node): New type.
31322         (HASH_TABLE_SIZE): New macro.
31323         (struniq_hash_table, struniq_lock): New variables.
31324         (struniq): New function.
31325         (gl_locale_name_thread): New function.
31326         (gl_locale_name): Invoke it.
31327         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31328         * modules/localename (Depends-on): Add lock.
31329         Reported by Mike Gran <spk121@yahoo.com>.
31330
31331 2009-12-23  Eric Blake  <ebb9@byu.net>
31332
31333         va-args: new module
31334         * modules/va-args: New file.
31335         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31336         * MODULES.html.sh (Core language properties): Mention it.
31337
31338         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31339         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31340         named alias for __attribute__((__unused__)).
31341         * lib/chown.c: Update client.
31342         * lib/fchmodat.c: Likewise.
31343         * lib/fts.c: Likewise.
31344         * lib/getdate.y: Likewise.
31345         * lib/getgroups.c: Likewise.
31346         * lib/getopt.c: Likewise.
31347         * lib/getugroups.c: Likewise.
31348         * lib/mkdir.c: Likewise.
31349         * lib/mkfifo.c: Likewise.
31350         * lib/mkfifoat.c: Likewise.
31351         * lib/mknod.c: Likewise.
31352         * lib/mknodat.c: Likewise.
31353         * lib/readlink.c: Likewise.
31354         * lib/se-context.in.h: Likewise.
31355         * lib/se-selinux.in.h: Likewise.
31356         * lib/sockets.c: Likewise.
31357         * lib/symlink.c: Likewise.
31358         * lib/symlinkat.c: Likewise.
31359         * lib/unicodeio.c: Likewise.
31360         * lib/unistr.h: Likewise.
31361         * tests/test-areadlink.c: Likewise.
31362         * tests/test-areadlinkat.c: Likewise.
31363         * tests/test-filenamecat.c: Likewise.
31364         * tests/test-fseeko.c: Likewise.
31365         * tests/test-ftello.c: Likewise.
31366         * tests/test-getdate.c: Likewise.
31367         * tests/test-getgroups.c: Likewise.
31368         * tests/test-gethostname.c: Likewise.
31369         * tests/test-quotearg.c: Likewise.
31370         * tests/test-version-etc.c: Likewise.
31371         * tests/test-xalloc-die.c: Likewise.
31372         * tests/test-xfprintf-posix.c: Likewise.
31373         * tests/test-xprintf-posix.c: Likewise.
31374         * tests/test-xvasprintf.c: Likewise.
31375
31376         tests: avoid compiler warnings
31377         * tests/test-fcntl.c (main): Delete unused parameters.
31378         * tests/test-freopen-safer.c (main): Likewise.
31379         * tests/test-xalloc-die.c (main): Mark unused parameters.
31380         * tests/test-fseeko.c (main): Likewise.
31381         * tests/test-ftello.c (main): Likewise.
31382         * tests/test-nanosleep.c (main): Avoid declaration warning.
31383         * tests/test-sleep.c (main): Likewise.
31384         * tests/test-unsetenv.c (main): Silence warning about string
31385         literal.
31386         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31387
31388 2009-12-23  Bruno Haible  <bruno@clisp.org>
31389
31390         * tests/test-localename.c (test_locale_name): New function, extracted
31391         from main. Also test mixed situations.
31392         (test_locale_name_posix, test_locale_name_environ,
31393         test_locale_name_default): New functions.
31394         (main): Invoke them all.
31395         * modules/localename-tests (configure.ac): Test for newlocale.
31396
31397 2009-12-23  Bruno Haible  <bruno@clisp.org>
31398
31399         unistd: Ensure getcwd gets declared before being overridden.
31400         * lib/unistd.in.h: Conditionally include <io.h>.
31401
31402 2009-12-22  Bruno Haible  <bruno@clisp.org>
31403
31404         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31405         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31406         (gl_WCHAR_H): Invoke it.
31407         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31408         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31409         Reported by Karl Berry <karl@freefriends.org>.
31410
31411 2009-12-22  Eric Blake  <ebb9@byu.net>
31412
31413         math, unistd: avoid redundant includes
31414         * lib/math.in.h (isnan): No need to re-include <math.h>.
31415         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31416
31417         getsubopt: work around cygwin bug
31418         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31419         avoid conflicting with system getsubopt.
31420         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31421         bug.
31422
31423         getopt: synchronize from glibc
31424         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31425         parameter order.  Adjust all callers.
31426         (_getopt_internal_r, main): Adjust quoting in error messages.
31427         Drop considerations for outdated POSIX 1003.2 error message.
31428         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31429         callers.
31430         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31431
31432         test-getopt: test stderr behavior
31433         * modules/getopt-posix-tests (Depends-on): Add dup2.
31434         * tests/test-getopt.c (ASSERT): Avoid stderr.
31435         (main): Move stderr to a temporary file.
31436         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31437         Instead, add parameter to inform caller if output occurred.
31438         (test_getopt): Adjust all existing tests to expect silence, and
31439         add new tests of leading ":".
31440         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31441         glibc shortcomings with leading "-:" or "+:" in optstring.
31442         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31443         Likewise.
31444         * doc/posix-functions/getopt.texi (getopt): Likewise.
31445
31446         test-getopt: enhance test
31447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31448         supports optind=0.
31449         * tests/test-getopt.c (OPTIND_MIN): Move...
31450         * tests/test-getopt.h (OPTIND_MIN): ...here.
31451         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31452         Require that optind=0 works, since modern BSD supports it in
31453         addition to optreset, and since coreutils expects it.
31454         (test_getopt_long_only): New test.
31455         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31456         glibc shortcomings with 'W;', and enforcement of optind=0.
31457         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31458         Likewise.
31459
31460 2009-12-21  Bruno Haible  <bruno@clisp.org>
31461
31462         localename: Improvements for MacOS X and Cygwin.
31463         * lib/localename.h (gl_locale_name_environ): New declaration.
31464         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31465         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31466         (gl_locale_name_posix): Invoke it.
31467         (gl_locale_name_default): Add comments. Use Windows native API also on
31468         Cygwin.
31469
31470 2009-12-21  Bruno Haible  <bruno@clisp.org>
31471
31472         Update list of Win32 locale ids.
31473         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31474         (LANG_SAMI): Renamed from LANG_SAAMI.
31475         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31476         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31477         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31478         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31479         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31480         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31481         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31482         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31483         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31484         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31485         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31486         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31487         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31488         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31489         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31490         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31491         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31492         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31493         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31494         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31495         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31496         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31497         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31498         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31499         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31500         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31501         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31502         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31503         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31504         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31505         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31506         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31507         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31508         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31509         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31510         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31511         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31512         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31513         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31514         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31515         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31516         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31517         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31518         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31519         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31520         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31521         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31522         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31523         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31524         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31525         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31526         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31527         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31528         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31529         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31530         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31531         Add more languages and countries for Sami, Sorbian. Add more countries
31532         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31533         for Pashto. Change country for Syriac, Tswana.
31534
31535 2009-12-21  Eric Blake  <ebb9@byu.net>
31536
31537         test-utimens: avoid spurious failure
31538         * tests/test-chown.h (nap): Factor...
31539         * tests/nap.h: ...into new file.
31540         * tests/test-lchown.h (nap): Avoid duplication.
31541         * tests/test-utimens-common.h (nap): Use shared implementation,
31542         necessary on file systems with 1-second resolution.
31543         * modules/chown-tests (Files): Include new file.
31544         * modules/fdutimensat-tests (Files): Likewise.
31545         * modules/futimens-tests (Files): Likewise.
31546         * modules/lchown-tests (Files): Likewise.
31547         * modules/openat-tests (Files): Likewise.
31548         * modules/utimens-tests (Files): Likewise.
31549         * modules/utimensat-tests (Files): Likewise.
31550
31551 2009-12-19  Eric Blake  <ebb9@byu.net>
31552
31553         futimens, utimensat: work around Linux bug
31554         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31555         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31556         * lib/utimensat.c (rpl_utimensat): Work around it.
31557         * lib/futimens.c (rpl_futimens): Adjust comment.
31558
31559         utimens: work around Linux ctime bug
31560         * lib/utimens.c (detect_ctime_bug): New helper function.
31561         (update_timespec): Differentiate between workaround needed for
31562         this bug vs. what is needed for systems that lack utimensat.
31563         (fdutimens, lutimens): Work around bug.
31564
31565         utimens: check for ctime update
31566         * tests/test-utimens-common.h (check_ctime): Define.
31567         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31568         * tests/test-futimens.h (test_futimens): Likewise.
31569         * tests/test-lutimens.h (test_lutimens): Likewise.
31570         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31571         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31572
31573 2009-12-19  Bruno Haible  <bruno@clisp.org>
31574
31575         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31576         * tests/test-dprintf-posix2.sh: New file.
31577         * tests/test-dprintf-posix2.c: New file.
31578         * modules/dprintf-posix-tests (Files): Add them.
31579         (configure.ac): Check for getrlimit and setrlimit.
31580         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31581
31582 2009-12-19  Bruno Haible  <bruno@clisp.org>
31583
31584         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31585         * tests/test-fprintf-posix3.sh: New file.
31586         * tests/test-fprintf-posix3.c: New file.
31587         * modules/fprintf-posix-tests (Files): Add them.
31588         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31589
31590 2009-12-19  Eric Blake  <ebb9@byu.net>
31591
31592         dirfd: fix prototype
31593         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31594         * lib/dirfd.c (dirfd): Likewise.
31595
31596         canonicalize: reduce memory usage
31597         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31598         allocation to size.
31599         Reported by Solar Designer <solar@openwall.com>.
31600
31601 2009-12-19  Bruno Haible  <bruno@clisp.org>
31602
31603         New module attribute 'Applicability'.
31604         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31605         * gnulib-tool: New option --extract-applicability.
31606         (func_usage): Document it.
31607         (sed_extract_prog): Recognize it.
31608         (func_get_applicability): New function.
31609         (func_import): Generalize handling of 'link-warning' module.
31610         * modules/link-warning (Applicability): New section.
31611         * modules/arg-nonnull (Applicability): New section.
31612         Repoted by Simon Josefsson <simon@josefsson.org>.
31613
31614 2009-12-19  Bruno Haible  <bruno@clisp.org>
31615
31616         fflush: tweak
31617         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31618         * lib/fseeko.c (rpl_fseeko): Likewise.
31619
31620 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31621
31622         * lib/gl_list.h: Fix typo in comment.
31623
31624 2009-12-16  Eric Blake  <ebb9@byu.net>
31625
31626         fcntl: use to simplify other modules
31627         * modules/cloexec (Depends-on): Add fcntl.
31628         * modules/fchdir (Depends-on): Likewise.
31629         * modules/fd-safer-flag (Depends-on): Likewise.
31630         * modules/unistd-safer (Depends-on): Likewise.
31631         * modules/dup3 (configure.ac): Set module indicator.
31632         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31633         missing.
31634         * lib/fchdir.c (_gl_register_dup): Fix comment.
31635         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31636         * lib/dup-safer.c (dup_safer): Likewise.
31637         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31638         * lib/dup3.c (dup3): Likewise.
31639         * tests/test-fchdir.c (main): Enhance test.
31640         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31641
31642         fcntl: port portions of fcntl to mingw
31643         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31644         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31645         replacement for mingw.
31646         * modules/fcntl (Description): Update.
31647         (Depends-on): Add dup2.
31648         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31649         * modules/fcntl-h (Makefile.am): Substitute it.
31650         * lib/fcntl.in.h (fcntl): Update declaration.
31651         (F_DUPFD, F_GETFD): New macros, when needed.
31652         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31653         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31654         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31655         we now guarantee.
31656
31657         fcntl: work around cygwin bug in F_DUPFD
31658         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31659         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31660         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31661         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31662         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31663
31664         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31665         * modules/fcntl (Files): List new files.
31666         (configure.ac): Run a test.
31667         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31668         * lib/fcntl.c (rpl_fcntl): Likewise.
31669         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31670         (gl_FCNTL_H): Always replace fcntl.h.
31671         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31672         * lib/fcntl.in.h (fcntl): Declare replacement.
31673         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31674         needed, plus a witness.
31675         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31676         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31677         * tests/test-fcntl.c: New file.
31678         * modules/fcntl-tests: Likewise.
31679
31680         binary-io: avoid potential compilation warning
31681         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31682         directives.
31683
31684         fflush: avoid compilation error on NetBSD
31685         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31686         between off_t and fpos_t, since the latter is sometimes a struct.
31687         * lib/fseeko.c (rpl_fseeko): Likewise.
31688         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31689
31690 2009-12-15  Eric Blake  <ebb9@byu.net>
31691
31692         fcntl-h, stdio, sys_ioctl: fix declarations
31693         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31694         function must not take arguments.
31695         * lib/sys_ioctl.in.h (ioctl): Likewise.
31696         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31697         (open): Add a link warning.
31698
31699 2009-12-15  Jim Meyering  <meyering@redhat.com>
31700
31701         areadlink, areadlink-with-size: relax license to LGPLv2+
31702         * modules/areadlink (License): Relax to LGPLv2+.
31703         * modules/areadlink-with-size (License): Likewise.
31704
31705 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31706             Bruno Haible  <bruno@clisp.org>
31707
31708         *printf: Fix memory leak.
31709         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31710         * lib/vfprintf.c (vfprintf): Likewise.
31711         * lib/dprintf.c (dprintf): Likewise.
31712         * lib/vdprintf.c (vdprintf): Likewise.
31713
31714 2009-12-14  Eric Blake  <ebb9@byu.net>
31715
31716         accept4: adjust module dependencies
31717         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31718
31719         utimens: one more try at avoiding compiler warning
31720         * lib/utimens.c (lutimens): Lower scope of result.
31721
31722 2009-12-13  Bruno Haible  <bruno@clisp.org>
31723
31724         Move the malloc checking from module 'list' to new module 'xlist'.
31725         * modules/xlist: New file.
31726         * lib/gl_xlist.h: New file.
31727         * lib/gl_xlist.c: New file.
31728         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31729         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31730         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31731         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31732         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31733         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31734         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31735         gl_sortedlist_nx_add): New declarations.
31736         (struct gl_list_implementation): Rename and change methods accordingly.
31737         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31738         (gl_list_nx_create): Renamed from gl_list_create.
31739         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31740         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31741         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31742         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31743         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31744         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31745         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31746         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31747         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31748         gl_list_create_empty.
31749         (gl_list_nx_create): Renamed from gl_list_create.
31750         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31751         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31752         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31753         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31754         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31755         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31756         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31757         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31758         * lib/gl_array_list.c: Don't include xalloc.h.
31759         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31760         NULL upon out-of-memory.
31761         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31762         out-of-memory.
31763         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31764         Change return type to 'int'.
31765         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31766         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31767         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31768         upon out-of-memory.
31769         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31770         upon out-of-memory.
31771         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31772         upon out-of-memory.
31773         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31774         upon out-of-memory.
31775         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31776         out-of-memory.
31777         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31778         Update.
31779         (gl_array_list_implementation): Update.
31780         * lib/gl_carray_list.c: Don't include xalloc.h.
31781         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31782         Return NULL upon out-of-memory.
31783         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31784         out-of-memory.
31785         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31786         Change return type to 'int'.
31787         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31788         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31789         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31790         upon out-of-memory.
31791         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31792         upon out-of-memory.
31793         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31794         out-of-memory.
31795         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31796         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31797         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31798         Update.
31799         (gl_carray_list_implementation): Update.
31800         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31801         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31802         gl_linked_create_empty. Return NULL upon out-of-memory.
31803         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31804         out-of-memory.
31805         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31806         Change return type to 'int'. Return -1 upon out-of-memory.
31807         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31808         out-of-memory.
31809         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31810         upon out-of-memory.
31811         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31812         upon out-of-memory.
31813         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31814         NULL upon out-of-memory.
31815         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31816         upon out-of-memory.
31817         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31818         out-of-memory.
31819         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31820         Update.
31821         * lib/gl_linked_list.c: Don't include xalloc.h.
31822         (gl_linked_list_implementation): Update.
31823         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31824         (add_to_bucket): Change return type to 'int'.
31825         (gl_linkedhash_list_implementation): Update.
31826         * lib/gl_anytree_list1.h (free_subtree): New function.
31827         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31828         gl_tree_create_empty. Return NULL upon out-of-memory.
31829         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31830         Change return type to 'int'. Return -1 upon out-of-memory.
31831         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31832         out-of-memory.
31833         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31834         (gl_tree_remove_node): New function, moved here from
31835         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31836         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31837         Update.
31838         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31839         malloc, not xmalloc. Return NULL upon out-of-memory.
31840         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31841         out-of-memory.
31842         (gl_tree_remove_node_from_tree): New function, extracted from
31843         gl_tree_remove_node.
31844         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31845         upon out-of-memory.
31846         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31847         out-of-memory.
31848         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31849         upon out-of-memory.
31850         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31851         upon out-of-memory.
31852         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31853         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31854         not xmalloc. Return NULL upon out-of-memory.
31855         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31856         out-of-memory.
31857         (gl_tree_remove_node_from_tree): New function, extracted from
31858         gl_tree_remove_node.
31859         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31860         upon out-of-memory.
31861         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31862         out-of-memory.
31863         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31864         upon out-of-memory.
31865         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31866         upon out-of-memory.
31867         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31868         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31869         gl_anytree_list1.h before gl_anyavltree_list2.h.
31870         (gl_avltree_list_implementation): Update.
31871         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31872         gl_anytree_list1.h before gl_anyavltree_list2.h.
31873         (gl_rbtree_list_implementation): Update.
31874         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31875         Change return type to 'int'. Return -1 upon out-of-memory. Use
31876         __builtin_expect.
31877         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31878         (gl_avltreehash_list_implementation): Update.
31879         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31880         (gl_rbtreehash_list_implementation): Update.
31881         * modules/array-list (Depends-on): Remove xalloc.
31882         * modules/carray-list (Depends-on): Likewise.
31883         * modules/linked-list (Depends-on): Likewise.
31884         * modules/linkedhash-list (Depends-on): Likewise.
31885         * modules/avltree-list (Depends-on): Likewise.
31886         * modules/rbtree-list (Depends-on): Likewise.
31887         * modules/avltreehash-list (Depends-on): Likewise.
31888         * modules/rbtreehash-list (Depends-on): Likewise.
31889
31890         * modules/xsublist: New file.
31891         * lib/gl_xsublist.h: New file.
31892         * lib/gl_xsublist.c: New file.
31893         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31894         (gl_sublist_nx_create): New declaration.
31895         * lib/gl_sublist.c: Don't include xalloc.h.
31896         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31897         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31898         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31899         Change return type to 'int'. Return -1 upon out-of-memory.
31900         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31901         upon out-of-memory.
31902         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31903         NULL upon out-of-memory.
31904         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31905         upon out-of-memory.
31906         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31907         NULL upon out-of-memory.
31908         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31909         NULL upon out-of-memory.
31910         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31911         upon out-of-memory.
31912         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31913         (gl_sublist_list_implementation): Update.
31914         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31915         upon out-of-memory.
31916         * modules/sublist (Depends-on): Remove xalloc.
31917
31918         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31919         * tests/test-carray_list.c: Likewise.
31920         * tests/test-linked_list.c: Likewise.
31921         * tests/test-linkedhash_list.c: Likewise.
31922         * tests/test-avltree_list.c: Likewise.
31923         * tests/test-rbtree_list.c: Likewise.
31924         * tests/test-avltreehash_list.c: Likewise.
31925         * tests/test-rbtreehash_list.c: Likewise.
31926         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31927         * modules/carray-list-tests (Makefile.am): Likewise.
31928         * modules/linked-list-tests (Makefile.am): Likewise.
31929         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31930         * modules/avltree-list-tests (Makefile.am): Likewise.
31931         * modules/rbtree-list-tests (Makefile.am): Likewise.
31932         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31933         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31934
31935         * NEWS: Mention the changes.
31936
31937         * lib/clean-temp.c: Include gl_xlist.h.
31938         * modules/clean-temp (Depends-on): Add xlist.
31939
31940         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31941         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31942
31943         * tests/test-array_oset.c: Include gl_xlist.h.
31944         * modules/array-oset-tests (Depends-on): Add xlist.
31945
31946         Reported by José E. Marchesi <jemarch@gnu.org>.
31947
31948 2009-12-13  Bruno Haible  <bruno@clisp.org>
31949
31950         Move the malloc checking from module 'oset' to new module 'xoset'.
31951         * modules/xoset: New file.
31952         * lib/gl_xoset.h: New file.
31953         * lib/gl_xoset.c: New file.
31954         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31955         declarations.
31956         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31957         (struct gl_oset_implementation): Rename and change methods accordingly.
31958         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31959         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31960         'int'. Mark as __warn_unused_result__.
31961         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31962         gl_oset_create_empty.
31963         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31964         'int'.
31965         * lib/gl_array_oset.c: Don't include xalloc.h.
31966         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31967         malloc, not xmalloc.
31968         (grow): Change return type to 'int'. Don't call xalloc_die.
31969         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31970         to 'int'.
31971         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31972         'int'.
31973         (gl_array_oset_implementation): Update.
31974         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31975         gl_tree_create_empty.
31976         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31977         'int'.
31978         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31979         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31980         xmalloc.
31981         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31982         not xmalloc.
31983         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31984         xmalloc.
31985         (gl_avltree_oset_implementation): Update.
31986         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31987         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31988         xmalloc.
31989         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31990         not xmalloc.
31991         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31992         xmalloc.
31993         (gl_rbtree_oset_implementation): Update.
31994         * modules/array-oset (Depends-on): Remove xalloc.
31995         * modules/avltree-oset (Depends-on): Likewise.
31996         * modules/rbtree-oset (Depends-on): Likewise.
31997         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31998         * tests/test-avltree_oset.c: Likewise.
31999         * tests/test-rbtree_oset.c: Likewise.
32000         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32001         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32002         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32003         * NEWS: Mention the change.
32004
32005 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32006
32007         maint.mk: allow a project to override release-prep commands
32008         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32009         commands into a new rule.
32010         (release-prep): New rule.
32011         (release-prep-hook): New overridable variable.
32012
32013 2009-12-13  Bruno Haible  <bruno@clisp.org>
32014
32015         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32016
32017 2009-12-13  Jim Meyering  <meyering@redhat.com>
32018
32019         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32020         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32021
32022 2009-12-12  Bruno Haible  <bruno@clisp.org>
32023
32024         duplocale: Tweak.
32025         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32026
32027 2009-12-12  Karl Berry  <karl@gnu.org>
32028
32029         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32030
32031 2009-12-12  Bruno Haible  <bruno@clisp.org>
32032
32033         * m4/po.m4: Undo incorrect untabification.
32034
32035 2009-12-12  Bruno Haible  <bruno@clisp.org>
32036
32037         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32038         * modules/c-strtod (Depends-on): Add locale.
32039         * modules/c-strtold (Depends-on): Likewise.
32040
32041 2009-12-12  Bruno Haible  <bruno@clisp.org>
32042
32043         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32044
32045 2009-12-11  Eric Blake  <ebb9@byu.net>
32046
32047         setenv: relax requirement in light of POSIX ruling
32048         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32049         not NULL.
32050         * tests/test-setenv.c (main): Relax test.
32051         * tests/test-unsetenv.c (main): Likewise.
32052         * doc/posix-functions/setenv.texi (setenv): Document this.
32053         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32054
32055 2009-12-11  Bruno Haible  <bruno@clisp.org>
32056
32057         New module 'fd-safer-flag'.
32058         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32059         * lib/dup-safer.c (dup_safer_flag): Remove function.
32060         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32061         * lib/fd-safer.c (fd_safer_flag): Remove function.
32062         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32063         * modules/cloexec (configure.ac): Drop indicator macro.
32064         * modules/fd-safer-flag: New file.
32065         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32066         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32067         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32068
32069 2009-12-11  Bruno Haible  <bruno@clisp.org>
32070
32071         Tests for module 'nl_langinfo'.
32072         * modules/nl_langinfo-tests: New file.
32073         * tests/test-nl_langinfo.sh: New file.
32074         * tests/test-nl_langinfo.c: New file.
32075
32076         New module 'nl_langinfo'.
32077         * lib/nl_langinfo.c: New file.
32078         * m4/nl_langinfo.m4: New file.
32079         * modules/nl_langinfo: New file.
32080         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32081
32082 2009-12-11  Bruno Haible  <bruno@clisp.org>
32083
32084         Tests for module 'langinfo'.
32085         * modules/langinfo-tests: New file.
32086         * tests/test-langinfo.c: New file.
32087
32088         New module 'langinfo'.
32089         * lib/langinfo.in.h: New file.
32090         * m4/langinfo_h.m4: New file.
32091         * modules/langinfo: New file.
32092         * doc/posix-headers/langinfo.texi: Mention the new module.
32093
32094 2009-12-11  Bruno Haible  <bruno@clisp.org>
32095
32096         * lib/config.charset: Untabify.
32097
32098 2009-12-11  Bruno Haible  <bruno@clisp.org>
32099
32100         * modules/unistd-safer (configure.ac): Drop indicator macro.
32101
32102 2009-12-11  Bruno Haible  <bruno@clisp.org>
32103
32104         Move pipe2-safer code to its own file.
32105         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32106         * lib/pipe-safer.c (pipe2_safer): Remove function.
32107         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32108         (Makefile.am): Add it to lib_SOURCES.
32109
32110 2009-12-10  Bruno Haible  <bruno@clisp.org>
32111
32112         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32113
32114 2009-12-10  Bruno Haible  <bruno@clisp.org>
32115
32116         Declare which arguments expect non-NULL values, for GCC and clang.
32117         * build-aux/arg-nonnull.h: New file.
32118         * modules/arg-nonnull: New file.
32119         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32120         (inet_ntop, inet_pton): Use it.
32121         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32122         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32123         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32124         (open, openat): Use it.
32125         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32126         (fnmatch): Use it.
32127         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32128         (getopt, getopt_long, getopt_long_only): Use it.
32129         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32130         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32131         Use it.
32132         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32133         (iconv_open): Use it.
32134         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32135         (strtoimax, strtoumax): Use it.
32136         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32137         (duplocale): Use it.
32138         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32139         (frexp, frexpl): Use it.
32140         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32141         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32142         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32143         (tsearch, tfind, tdelete, twalk): Use it.
32144         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32145         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32146         sigpending): Use it.
32147         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32148         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32149         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32150         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32151         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32152         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32153         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32154         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32155         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32156         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32157         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32158         Use it.
32159         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32160         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32161         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32162         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32163         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32164         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32165         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32166         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32167         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32168         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32169         strtoull, unsetenv): Use it.
32170         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32171         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32172         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32173         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32174         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32175         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32176         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32177         (strcasecmp, strncasecmp): Use it.
32178         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32179         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32180         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32181         rpl_setsockopt): Use it.
32182         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32183         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32184         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32185         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32186         (gettimeofday): Use it.
32187         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32188         (times): Use it.
32189         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32190         (uname): Use it.
32191         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32192         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32193         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32194         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32195         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32196         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32197         unlinkat, write): Use it.
32198         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32199         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32200         * lib/argv-iter.h: Include arg-nonnull.h.
32201         (_ATTRIBUTE_NONNULL_): Remove macro.
32202         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32203         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32204         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32205         optimization.
32206         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32207         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32208         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32209         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32210         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32211         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32212         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32213         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32214         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32215         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32216         * modules/dirent (Depends-on): Add arg-nonnull.
32217         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32218         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32219         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32220         * modules/fnmatch (Depends-on): Add arg-nonnull.
32221         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32222         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32223         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32224         * modules/glob (Depends-on): Add arg-nonnull.
32225         (Makefile.am): Insert arg-nonnull.h into glob.h.
32226         * modules/iconv_open (Depends-on): Add arg-nonnull.
32227         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32228         * modules/inttypes (Depends-on): Add arg-nonnull.
32229         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32230         * modules/locale (Depends-on): Add arg-nonnull.
32231         (Makefile.am): Insert arg-nonnull.h into locale.h.
32232         * modules/math (Depends-on): Add arg-nonnull.
32233         (Makefile.am): Insert arg-nonnull.h into math.h.
32234         * modules/netdb (Depends-on): Add arg-nonnull.
32235         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32236         * modules/search (Depends-on): Add arg-nonnull.
32237         (Makefile.am): Insert arg-nonnull.h into search.h.
32238         * modules/signal (Depends-on): Add arg-nonnull.
32239         (Makefile.am): Insert arg-nonnull.h into signal.h.
32240         * modules/spawn (Depends-on): Add arg-nonnull.
32241         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32242         * modules/stdio (Depends-on): Add arg-nonnull.
32243         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32244         * modules/stdlib (Depends-on): Add arg-nonnull.
32245         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32246         * modules/string (Depends-on): Add arg-nonnull.
32247         (Makefile.am): Insert arg-nonnull.h into string.h.
32248         * modules/strings (Depends-on): Add arg-nonnull.
32249         (Makefile.am): Insert arg-nonnull.h into strings.h.
32250         * modules/sys_socket (Depends-on): Add arg-nonnull.
32251         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32252         * modules/sys_stat (Depends-on): Add arg-nonnull.
32253         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32254         * modules/sys_time (Depends-on): Add arg-nonnull.
32255         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32256         * modules/sys_times (Depends-on): Add arg-nonnull.
32257         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32258         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32259         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32260         * modules/time (Depends-on): Add arg-nonnull.
32261         (Makefile.am): Insert arg-nonnull.h into time.h.
32262         * modules/unistd (Depends-on): Add arg-nonnull.
32263         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32264         * modules/wchar (Depends-on): Add arg-nonnull.
32265         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32266         * modules/argv-iter (Depends-on): Add arg-nonnull.
32267         * tests/test-canonicalize.c (null_ptr): New function.
32268         (main): Use it.
32269         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32270         (main): Use it.
32271         * tests/test-memmem.c (null_ptr): New function.
32272         (main): Use it.
32273         Reported by Jim Meyering.
32274
32275 2009-12-10  Bruno Haible  <bruno@clisp.org>
32276
32277         Use spaces for indentation, not tabs.
32278         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32279         * m4/*.m4: Untabify.
32280         * build-aux/*.h: Untabify.
32281         * tests/**/*.[hc]: Untabify.
32282         * README: New section "Indent with spaces, not TABs", based on
32283         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32284         * NEWS: Mention the change.
32285
32286 2009-12-10  Bruno Haible  <bruno@clisp.org>
32287
32288         pty test: Fix link error.
32289         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32290         test_pty_LDADD.
32291
32292 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32293
32294         * modules/pty: New file.
32295         * modules/pty-tests: New file.
32296         * m4/pty.m4: New file.
32297         * tests/test-pty.c: New file.
32298         * doc/glibc-headers/pty.texi: Modified.
32299         * doc/glibc-functions/forkpty.texi: Modified.
32300         * doc/glibc-functions/openpty.texi: Modified.
32301
32302 2009-12-10  Bruno Haible  <bruno@clisp.org>
32303
32304         Avoid syntax error in C++ mode.
32305         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32306
32307 2009-12-10  Bruno Haible  <bruno@clisp.org>
32308
32309         Use sed with option -e.
32310         * gnulib-tool (func_version, func_emit_copyright_notice,
32311         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32312         option -e to sed.
32313         * modules/link-warning (Makefile.am): Likewise.
32314
32315 2009-12-10  Jim Meyering  <meyering@redhat.com>
32316
32317         mgetgroups: do not write bytes beyond end of malloc'd buffer
32318         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32319         username, we call getgroups with a one-element-shorter buffer,
32320         but still told it the length was original, max_n_groups.
32321
32322 2009-12-09  Eric Blake  <ebb9@byu.net>
32323
32324         cloexec: relax license
32325         * modules/cloexec (Maintainer): Add myself.
32326         (License): Use LGPL, not GPL.
32327
32328         link-warning: optimize generation
32329         * modules/link-warning (Makefile.am): Reduce process usage.
32330
32331 2009-12-09  Bruno Haible  <bruno@clisp.org>
32332
32333         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32334         workaround was added on 2009-11-17.
32335
32336 2009-12-09  Jim Meyering  <meyering@redhat.com>
32337             Bruno Haible  <bruno@clisp.org>
32338
32339         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32340         * modules/link-warning (Makefile.am): Make the comment-removing sed
32341         command more robust in the face of bootstrap-prepended comment lines.
32342
32343 2009-12-09  Bruno Haible  <bruno@clisp.org>
32344
32345         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32346         most one group.
32347
32348 2009-12-09  Simon Josefsson <simon@josefsson.org>
32349             Bruno Haible  <bruno@clisp.org>
32350
32351         * build-aux/link-warning.h: Add copyright notice.
32352         * modules/link-warning (Makefile.am): Generate link-warning.h from
32353         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32354         * NEWS: Mention change in link-warning module.
32355         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32356         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32357         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32358         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32359         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32360         * modules/math (Makefile.am): Add dependency to math.h.
32361         * modules/search (Makefile.am): Add dependency to search.h.
32362         * modules/signal (Makefile.am): Add dependency to signal.h.
32363         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32364         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32365         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32366         * modules/string (Makefile.am): Add dependency to string.h.
32367         * modules/strings (Makefile.am): Add dependency to strings.h.
32368         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32369         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32370         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32371         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32372         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32373         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32374         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32375         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32376         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32377
32378 2009-12-09  Bruno Haible  <bruno@clisp.org>
32379
32380         fchdir: Optimize away rpl_fstat when possible.
32381         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32382         REPLACE_OPEN_DIRECTORY.
32383         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32384
32385 2009-12-09  Bruno Haible  <bruno@clisp.org>
32386
32387         * lib/fchdir.c: Update comment.
32388
32389 2009-12-09  Bruno Haible  <bruno@clisp.org>
32390
32391         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32392
32393 2009-12-08  Eric Blake  <ebb9@byu.net>
32394
32395         fchdir: avoid memory leak on re-registration.
32396         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32397
32398 2009-12-08  Jim Meyering  <meyering@redhat.com>
32399
32400         init.sh: avoid Solaris 10 /bin/sh portability problem
32401         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32402         sourced script:
32403           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32404           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32405           bar
32406         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32407         and two tests used that idiom.
32408         * tests/init.sh: Update suggested usage comments.
32409         (path_prepend_): New function, to be used in place
32410         of the --src-path=DIR option.
32411         (setup_): Move PATH-prepending code into path_prepend_.
32412         * tests/test-pread.sh: Adapt to new usage.
32413         * tests/test-xalloc-die.sh: Likewise.
32414
32415 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32416
32417         * doc/gnulib.texi (Glibc pty.h): Add.
32418         * doc/glibc-functions/forkpty.texi: Add.
32419         * doc/glibc-functions/openpty.texi: Add.
32420         Suggested by Bruno Haible.
32421
32422 2009-12-08  Eric Blake  <ebb9@byu.net>
32423
32424         fchdir: fix logic bugs
32425         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32426         * tests/test-fchdir.c (main): Enhance test.
32427         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32428         is in use.
32429
32430         dup2: fix logic bugs
32431         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32432         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32433         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32434         exists.
32435         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32436
32437 2009-12-07  Eric Blake  <ebb9@byu.net>
32438
32439         unlink: fix m4 detection
32440         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32441
32442         unistd-safer: add unit test
32443         * modules/unistd-safer-tests: New file.
32444         * tests/test-dup-safer.c: Likewise.
32445         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32446         * tests/test-dup2.c (setmode): Likewise.
32447         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32448
32449         cloexec: preserve text vs. binary across dup_cloexec
32450         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32451         mode.
32452         * modules/dup2-tests (Depends-on): Add binary-io.
32453         * modules/cloexec-tests (Depends-on): Likewise.
32454         * tests/test-dup2.c (setmode, is_mode): New helpers.
32455         (main): Add tests that translation mode is preserved.
32456         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32457         Reported by Bruno Haible.
32458
32459         mgetgroups: reduce duplicate listings
32460         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32461         resulting array.
32462         * tests/test-chown.h (test_chown): Simplify client.
32463         * tests/test-lchown.h (test_lchown): Likewise.
32464
32465 2009-12-06  Bruno Haible  <bruno@clisp.org>
32466
32467         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32468         value.
32469
32470 2009-12-06  Bruno Haible  <bruno@clisp.org>
32471
32472         * lib/progname.c: Include stdio.h, stdlib.h.
32473         (set_program_name): Reject a NULL argument.
32474
32475 2009-12-05  Eric Blake  <ebb9@byu.net>
32476
32477         pipe2-safer: new module
32478         * modules/pipe2-safer: New file.
32479         * lib/unistd-safer.h (pipe2_safer): New prototype.
32480         * lib/unistd--.h (pipe2): New wrapper.
32481         * lib/pipe-safer.c (pipe2_safer): New function.
32482         * modules/pipe (Depends-on): Add pipe2-safer.
32483         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32484
32485         stdlib-safer: preserve cloexec flag for mkostemp[s]
32486         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32487         fd_safer_flag.
32488
32489         unistd-safer: allow preservation of cloexec status via flag
32490         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32491         prototypes.
32492         * lib/dup-safer.c (dup_safer_flag): New function.
32493         * lib/fd-safer.c (fd_safer_flag): Likewise.
32494         * modules/cloexec (configure.ac): Set witness.
32495
32496         test-dup2: enhance test
32497         * modules/dup2-tests (Depends-on): Add cloexec.
32498         * tests/test-dup2.c (main): Enhance test.
32499
32500         cloexec: add dup_cloexec
32501         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32502         header and comments.
32503         * lib/cloexec.c (set_cloexec_flag): Add comments.
32504         (dup_cloexec): New function, with mingw implementation borrowed
32505         from...
32506         * lib/w32spawn.h (dup_noinherit): ...here.
32507         * modules/execute (Depends-on): Add cloexec.
32508         * modules/pipe (Depends-on): Likewise.
32509         * modules/cloexec (Depends-on): Add dup2.
32510         * modules/cloexec-tests (Files): New file.
32511         * tests/test-cloexec.c: Likewise.
32512
32513         test-xalloc-die: fix test for mingw
32514         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32515         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32516         directory and .exe suffix off argv[0] output.
32517
32518         test-fseeko: fix test for mingw
32519         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32520         than undefining fseek, so test will pass on mingw.
32521
32522 2009-12-05  Bruno Haible  <bruno@clisp.org>
32523
32524         * lib/progname.h (set_program_name): Clarify specification.
32525         * lib/progname.c (set_program_name): Likewise.
32526         Reported by Jim Meyering.
32527
32528 2009-12-05  Jim Meyering  <meyering@redhat.com>
32529
32530         maint.mk: backslash-escape parens in default regexp
32531         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32532         backslash-escape the literal parentheses.
32533
32534         maint.mk: news-date-check: use grep -E
32535         * top/maint.mk (today): Define a Make variable, not a...
32536         (news-date-check): ...shell variable.
32537         (news-date-regexp): Use the Make variable.
32538         Use grep's -E option.  Change the failing diagnostic to mention
32539         the variable, $(news-date-regexp).
32540
32541 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32542
32543         maintainer-makefile: allow customization of NEWS entry format
32544         * top/maint.mk (news-date-regexp): New overridable variable.
32545         (news-date-check): Use it.
32546
32547 2009-12-04  Eric Blake  <ebb9@byu.net>
32548
32549         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32550         * lib/mgetgroups.h (xgetgroups): New prototype.
32551         * lib/mgetgroups.c (xgetgroups): New wrapper.
32552         (mgetgroups): Handle ENOSYS.
32553         * modules/mgetgroups (Depends-on): Add realloc.
32554         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32555
32556         mgetgroups: avoid argument promotion issues with -1
32557         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32558         for invalid gid_t.
32559         * tests/test-chown.h (getegid, test_chown): Likewise.
32560         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32561
32562 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32563
32564         exclude: Fix header file problems.
32565         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32566
32567 2009-12-01  Jim Meyering  <meyering@redhat.com>
32568
32569         fts: fts_open: do not let an empty string cause immediate failure
32570         This is required in support of GNU rm, for which the command
32571         "rm A '' B" must process and remove both A and B, in spite of
32572         the empty string argument.
32573         * lib/fts.c (fts_open): Do not let the presence of an empty string
32574         cause fts_open to fail immediately.  Most fts-using tools must be
32575         able to process all arguments, in order, and can be expected to
32576         diagnose such arguments themselves.
32577
32578 2009-11-30  Eric Blake  <ebb9@byu.net>
32579
32580         utimens: fix compilation error
32581         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32582         Declare variable at right scope.
32583
32584 2009-11-29  Jim Meyering  <meyering@redhat.com>
32585
32586         bootstrap: handle perl-5.11's changed --version output
32587         * build-aux/bootstrap (get_version): Handle perl separately,
32588         since perl-5.11's --version output is different.
32589
32590 2009-11-28  Jim Meyering  <meyering@redhat.com>
32591
32592         userspec: depend on the inttostr module, too
32593         * modules/userspec (Depends-on): Add inttostr.
32594
32595         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32596         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32597         number of MAXUID when it evaluates to (uid_t) -1.
32598         Likewise for group ID.  Reported by Matt McCutchen in
32599         <http://savannah.gnu.org/bugs/?28113>
32600
32601         userspec: reformat to use spaces, not TABs
32602         * lib/userspec.c: Expand TABs to spaces.
32603         Add Emacs' "indent-tabs-mode: nil" hint.
32604
32605 2009-11-27  Eric Blake  <ebb9@byu.net>
32606
32607         getopt-gnu: flush out another BSD bug
32608         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32609         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32610         flush out BSD bug.
32611         * tests/test-getopt.h (test_getopt): End lists with NULL.
32612         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32613         (test_getopt_long_posix): Enhance test.
32614         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32615         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32616         getopt-gnu.
32617         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32618         Likewise.
32619
32620 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32621
32622         * modules/idpriv-droptemp-tests (Notice): Fix text.
32623
32624 2009-11-27  Jim Meyering  <meyering@redhat.com>
32625
32626         test-xalloc-die: avoid spurious failure due to libtool argv difference
32627         In a libtool-enabled project, this test would fail due to a difference
32628         in the emitted program name, e.g.,
32629         -test-xalloc-die: memory exhausted
32630         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32631         Use program to avoid that.
32632         * modules/xalloc-die-tests (Depends-on): Add progname.
32633         * tests/test-xalloc-die.c: Include progname.h".
32634         (program_name): Remove decl.
32635         (main): Call set_program_name.
32636         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32637
32638 2009-11-26  Richard Jones  <rjones@redhat.com>
32639
32640         w32sock: leave win32 error in place.
32641         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32642
32643 2009-11-26  Eric Blake  <ebb9@byu.net>
32644
32645         init.sh: suggest to use skip_ and fail_ functions in comments
32646         * tests/init.sh: Add a sentence.
32647
32648 2009-11-25  Bruno Haible  <bruno@clisp.org>
32649
32650         init.sh: add documentation in comments
32651         * tests/init.sh: Add some developer and user documentation.
32652
32653 2009-11-26  Jim Meyering  <meyering@redhat.com>
32654
32655         init.sh: accommodate even those who specify bogus srcdir manually
32656         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32657         configure-time tests to be sanitized, so that there is no need to
32658         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32659         (with no double quotes) suffices.  However, since tests may be
32660         invoked manually, and since you may explicitly set srcdir to the
32661         name of a directory containing spaces, do quote its uses here.
32662         * tests/test-pread.sh: Likewise.
32663         Suggested by Bruno Haible.
32664
32665         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32666         * tests/test-pread.sh: Write no data into the pipe, because
32667         test-pread actually reads none.  This avoids a diagnostic,
32668         "bash: echo: write error: Broken pipe", that arises in the unusual
32669         event something is ignoring SIGPIPE, and might be interpreted
32670         as some sort of failure.  Reported by Bruno Haible.
32671
32672 2009-11-25  Jim Meyering  <meyering@redhat.com>
32673
32674         test-pread: cover failure with ESPIPE and EINVAL
32675         * tests/test-pread.c (main): Test for failure, too.
32676         * tests/test-pread.sh: Invoke with stdin on a pipe.
32677         Suggested by Eric Blake.
32678
32679         pread: improvement and fix
32680         * modules/pread (Depends-on): Depend on lseek, for portability to
32681         e.g., mingw.  Suggested by Eric Blake.
32682         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32683
32684         unistd.in.h: correct declaration of pread
32685         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32686         Reported by Richard W.M. Jones.
32687
32688         test-pread.sh: distribute the test script
32689         * modules/pread-tests (Files): Include test-pread.sh.
32690
32691         test-pread.sh: clean up
32692         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32693         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32694         That is unnecessary, since it's always ".".
32695         Suggestion from Eric Blake.
32696
32697         test-pread.sh: make executable
32698         * tests/test-pread.sh: Set executable bit.
32699         Reported by Eric Blake.
32700
32701         correct typo in test-pread.sh
32702         * tests/test-pread.sh: Add #! line.
32703
32704         test pread
32705         * tests/test-pread.c: New file.
32706         * tests/test-pread.sh: Likewise.
32707         * modules/pread-tests: Likewise.
32708
32709         pread: new module
32710         * modules/pread: New file.
32711         * lib/unistd.in.h (pread): Define/declare.
32712         * lib/pread.c (pread): New file.
32713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32714         * modules/unistd (Makefile.am): Substitute witnesses.
32715         * doc/posix-functions/pread.texi (pread): Update.
32716         * MODULES.html.sh: Add pread.
32717
32718 2009-11-25  Jim Meyering  <meyering@redhat.com>
32719
32720         tests/init.sh: new file to be used via most *.sh tests
32721         * tests/init.sh: New file.
32722
32723 2009-11-25  Eric Blake  <ebb9@byu.net>
32724
32725         utimens: work around older Linux failure with symlinks
32726         * lib/utimens.c (lutimensat_works_really): New variable.
32727         (fdutimens, lutimens): Use it to manage kernels that support
32728         nanosecond times on files, but not on symlinks.
32729         Reported by OndÅ™ej Vašík.
32730
32731         utimes: fix configure grammar
32732         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32733
32734 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32735
32736         regex: Fix fastmap for multibyte character ranges.
32737         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32738         characters when a multibyte character range is included.
32739
32740 2009-11-22  Andy Wingo  <wingo@pobox.com>
32741
32742         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32743         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32744
32745 2009-11-24  Bruno Haible  <bruno@clisp.org>
32746
32747         doc: Most *_l functions exist in MacOS X 10.5.
32748         * doc/posix-functions/duplocale.texi: Update platforms list.
32749         * doc/posix-functions/freelocale.texi: Likewise.
32750         * doc/posix-functions/newlocale.texi: Likewise.
32751         * doc/posix-functions/uselocale.texi: Likewise.
32752         * doc/posix-functions/isalnum_l.texi: Likewise.
32753         * doc/posix-functions/isalpha_l.texi: Likewise.
32754         * doc/posix-functions/isblank_l.texi: Likewise.
32755         * doc/posix-functions/iscntrl_l.texi: Likewise.
32756         * doc/posix-functions/isdigit_l.texi: Likewise.
32757         * doc/posix-functions/isgraph_l.texi: Likewise.
32758         * doc/posix-functions/islower_l.texi: Likewise.
32759         * doc/posix-functions/isprint_l.texi: Likewise.
32760         * doc/posix-functions/ispunct_l.texi: Likewise.
32761         * doc/posix-functions/isspace_l.texi: Likewise.
32762         * doc/posix-functions/isupper_l.texi: Likewise.
32763         * doc/posix-functions/iswalnum_l.texi: Likewise.
32764         * doc/posix-functions/iswalpha_l.texi: Likewise.
32765         * doc/posix-functions/iswblank_l.texi: Likewise.
32766         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32767         * doc/posix-functions/iswctype_l.texi: Likewise.
32768         * doc/posix-functions/iswdigit_l.texi: Likewise.
32769         * doc/posix-functions/iswgraph_l.texi: Likewise.
32770         * doc/posix-functions/iswlower_l.texi: Likewise.
32771         * doc/posix-functions/iswprint_l.texi: Likewise.
32772         * doc/posix-functions/iswpunct_l.texi: Likewise.
32773         * doc/posix-functions/iswspace_l.texi: Likewise.
32774         * doc/posix-functions/iswupper_l.texi: Likewise.
32775         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32776         * doc/posix-functions/isxdigit_l.texi: Likewise.
32777         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32778         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32779         * doc/posix-functions/strcoll_l.texi: Likewise.
32780         * doc/posix-functions/strfmon_l.texi: Likewise.
32781         * doc/posix-functions/strftime_l.texi: Likewise.
32782         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32783         * doc/posix-functions/strxfrm_l.texi: Likewise.
32784         * doc/posix-functions/tolower_l.texi: Likewise.
32785         * doc/posix-functions/toupper_l.texi: Likewise.
32786         * doc/posix-functions/towctrans_l.texi: Likewise.
32787         * doc/posix-functions/towlower_l.texi: Likewise.
32788         * doc/posix-functions/towupper_l.texi: Likewise.
32789         * doc/posix-functions/wcscoll_l.texi: Likewise.
32790         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32791         * doc/posix-functions/wctrans_l.texi: Likewise.
32792         * doc/posix-functions/wctype_l.texi: Likewise.
32793         * doc/glibc-functions/strptime_l.texi: Likewise.
32794         * doc/glibc-functions/strtod_l.texi: Likewise.
32795         * doc/glibc-functions/strtof_l.texi: Likewise.
32796         * doc/glibc-functions/strtol_l.texi: Likewise.
32797         * doc/glibc-functions/strtold_l.texi: Likewise.
32798         * doc/glibc-functions/strtoll_l.texi: Likewise.
32799         * doc/glibc-functions/strtoul_l.texi: Likewise.
32800         * doc/glibc-functions/strtoull_l.texi: Likewise.
32801         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32802         * doc/glibc-functions/wcstod_l.texi: Likewise.
32803         * doc/glibc-functions/wcstof_l.texi: Likewise.
32804         * doc/glibc-functions/wcstol_l.texi: Likewise.
32805         * doc/glibc-functions/wcstold_l.texi: Likewise.
32806         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32807         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32808         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32809
32810 2009-11-24  Bruno Haible  <bruno@clisp.org>
32811
32812         duplocale: Fix logic bug.
32813         * lib/duplocale.c: Don't include <langinfo.h>.
32814         (_NL_LOCALE_NAME): Remove macro.
32815         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32816         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32817
32818 2009-11-23  Jim Meyering  <meyering@redhat.com>
32819
32820         test-update-copyright: don't hard-code /usr/bin/perl
32821         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32822         perl to print the current year.  Gilles Espinasse reported that
32823         the replaced use of perl was hard-coded as /usr/bin/perl.
32824
32825 2009-11-23  Bruno Haible  <bruno@clisp.org>
32826
32827         duplocale: Add support for glibc 2.3.x.
32828         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32829
32830 2009-11-22  Bruno Haible  <bruno@clisp.org>
32831
32832         vasnprintf: Tiny optimization.
32833         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32834         MacOS X.
32835
32836 2009-11-22  Bruno Haible  <bruno@clisp.org>
32837
32838         Tests for module 'duplocale'.
32839         * modules/duplocale-tests: New file.
32840         * tests/test-duplocale.c: New file.
32841
32842         New module 'duplocale'.
32843         * m4/duplocale.m4: New file.
32844         * lib/locale.in.h (duplocale): New declaration.
32845         * lib/duplocale.c: New file.
32846         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32847         gl_LOCALE_H_DEFAULTS): New macros.
32848         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32849         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32850         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32851         REPLACE_DUPLOCALE.
32852         * modules/duplocale: New file.
32853         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32854
32855 2009-11-22  Bruno Haible  <bruno@clisp.org>
32856
32857         * modules/locale-tests (configure.ac): Test for newlocale function.
32858         * tests/test-locale.c: When the system has extended locale functions,
32859         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32860
32861         locale: Make locale_t available when possible.
32862         * lib/locale.in.h: Include <xlocale.h> when it exists.
32863         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32864         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32865         * modules/locale (Depends-on): Add extensions.
32866         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32867         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32868
32869 2009-11-22  Bruno Haible  <bruno@clisp.org>
32870
32871         Add comments.
32872         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32873         invocation.
32874         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32875         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32876         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32877
32878 2009-11-22  Bruno Haible  <bruno@clisp.org>
32879
32880         error: account for the possibility of freopen (stdout).
32881         * lib/error.c: Include <unistd.h>.
32882         (flush_stdout): New function, extracted from error and error_at_line.
32883         Determine stdout's fd dynamically.
32884         (error, error_at_line): Invoke flush_stdout.
32885         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32886         * modules/error (Depends-on): Add unistd.
32887
32888 2009-11-22  Bruno Haible  <bruno@clisp.org>
32889
32890         diffseq: Add comment.
32891         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32892
32893 2009-11-22  Jim Meyering  <meyering@redhat.com>
32894
32895         c-stack: avoid defining an unused static function
32896         * lib/c-stack.c (find_stack_direction): Do not define this function
32897         when it will not be used.
32898
32899         diffseq: avoid spurious gcc warnings
32900         * lib/diffseq.h (IF_LINT2): Define.
32901         (compareseq): Use it to initialize two members of "part".
32902         This avoids two used-uninitialized warnings.
32903
32904 2009-11-21  Jim Meyering  <meyering@redhat.com>
32905
32906         c-stack: avoid "ignoring return value of `write'" warning
32907         * lib/c-stack.c: Include "ignore-value.h".
32908         (die): Explicitly ignore each write return value.
32909         * modules/c-stack (Depends-on): Add ignore-value.
32910
32911 2009-11-21  Bruno Haible  <bruno@clisp.org>
32912
32913         diffseq: reduce scope of variable 'best'.
32914         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32915         variable, earlier used for two different purposes.
32916
32917 2009-11-21  Jim Meyering  <meyering@redhat.com>
32918
32919         diffseq: remove useless assignment to "best"
32920         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32921         assignment.  At that point "best" is already guaranteed to be zero.
32922
32923 2009-11-20  Eric Blake  <ebb9@byu.net>
32924
32925         build: mention ftp redirector in release announcements
32926         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32927         values that used to come from cfg.mk; mention FTP redirect URL.
32928         * build-aux/announce-gen: Mention the mirror list.
32929         Suggested by Karl Berry.
32930
32931         nanosleep: improve port to mingw
32932         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32934         LIB_NANOSLEEP, but only when needed.
32935         * modules/select (Link): Document LIBSOCKET.
32936         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32937         enough.
32938
32939         nanosleep: work around cygwin bug
32940         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32941         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32942         bug.
32943         (getnow): Delete, not needed.
32944         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32945         LIB_CLOCK_GETTIME.
32946         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32947         clock-time, gettime.
32948         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32949         bug.
32950         * modules/nanosleep-tests: New test.
32951         * tests/test-nanosleep.c: New file.
32952
32953         sleep: work around cygwin bug
32954         * lib/sleep.c (rpl_sleep): Work around the bug.
32955         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32956         (gl_PREREQ_SLEEP): Delete unused macro.
32957         * modules/sleep (Depends-on): Add verify.
32958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32959         * modules/unistd (Makefile.am): Substitute witness.
32960         * lib/unistd.in.h (sleep): Update prototype.
32961         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32962         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32963         * modules/sleep-tests (Depends-on): Check for alarm.
32964
32965 2009-11-20  Jim Meyering  <meyering@redhat.com>
32966
32967         maint.mk: improve sc_prohibit_magic_number_exit
32968         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32969         so it does not match uses like System.exit(1).
32970         Add comments showing how to correct all offenders.
32971
32972 2009-11-19  Eric Blake  <ebb9@byu.net>
32973
32974         xalloc-die-tests: add missing library
32975         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32976
32977         test-xvasprintf: silence compiler warnings
32978         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32979         empty string from gcc.
32980
32981 2009-11-19  Jim Meyering  <meyering@redhat.com>
32982
32983         xfreopen: new module, from coreutils
32984         * modules/xfreopen: New module.
32985         * lib/xfreopen.c: New file.
32986         * lib/xfreopen.h: New file.
32987         * MODULES.html.sh (File stream based Input/Output"): Add it.
32988
32989 2009-11-19  Eric Blake  <ebb9@byu.net>
32990
32991         manywarnings: depend on warnings
32992         * modules/manywarnings (Depends-on): Add warnings.
32993
32994         build: avoid compiler warnings
32995         * lib/select.c (rpl_select): Delete unused variable.
32996         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32997
32998 2009-11-18  Eric Blake  <ebb9@byu.net>
32999
33000         tests: avoid false negative with --with-packager
33001         * tests/test-version-etc.sh: Discard packager information.
33002         * tests/test-argp-version-etc-1.sh: Likewise.
33003         Reported by Mike Frysinger.
33004
33005         utimens: fix regression on Solaris
33006         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33007         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33008         can only change fd timestamps via futimesat.  Instead, use an
33009         additional witness macro to avoid BSD bug.
33010         Reported by Jim Meyering.
33011
33012 2009-11-17  Eric Blake  <ebb9@byu.net>
33013
33014         usleep: use it to simplify tests
33015         * modules/stat-time-tests (Depends-on): Add usleep.
33016         (configure.ac): Drop usleep check.
33017         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33018         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33019         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33020         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33021         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33022         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33023         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33024         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33025         Likewise.
33026         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33027         * tests/test-lchown.h (nap): Likewise.
33028         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33029         * tests/test-stat-time.c (nap): Likewise.
33030         * tests/test-utimens-common.h (nap): Update comments.
33031
33032         usleep: new module
33033         * modules/usleep: New file.
33034         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33035         * lib/usleep.c (usleep): Likewise.
33036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33037         * modules/unistd (Makefile.am): Substitute witnesses.
33038         * lib/unistd.in.h (usleep): Add declaration.
33039         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33040         * MODULES.html.sh (Date and time): Likewise.
33041         * modules/usleep-tests (Depends-on): New test.
33042         * tests/test-usleep.c: New file.
33043
33044         chown: work around OpenBSD bug
33045         * lib/chown.c (rpl_chown): Work around the bug.
33046         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33047         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33048         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33049         * modules/chown (Depends-on): Add stdbool.
33050         * modules/lchown (Depends-on): Likewise.
33051         * doc/posix-functions/chown.texi (chown): Document the bug.
33052         * doc/posix-functions/lchown.texi (lchown): Likewise.
33053         * tests/test-lchown.h (test_chown): Relax test.
33054
33055         mkstemp: avoid conflict with C++ keyword template
33056         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33057         * lib/mkostemp.c (mkostemp): Likewise.
33058         * lib/mkostemps.c (mkostemps): Likewise.
33059         * lib/mkstemp.c (mkstemp): Likewise.
33060         * lib/mkstemps.c (mkstemps): Likewise.
33061
33062         xalloc-die-tests: optimize
33063         * tests/test-xalloc-die.sh: Reduce number of processes.
33064
33065 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33066
33067         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33068         patch from ludo@gnu.org (Ludovic Courtès).
33069
33070 2009-11-17  Jim Meyering  <meyering@redhat.com>
33071
33072         version-etc: use proper license string
33073         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33074         * modules/version-etc-fsf: Likewise.
33075
33076 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33077
33078         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33079         printed to stdout.  Deal with EOL differences.
33080
33081 2009-11-17  Eric Blake  <ebb9@byu.net>
33082
33083         unsetenv: work around Solaris bug
33084         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33085         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33086         Reported by Jim Meyering.
33087
33088         vasnprintf: avoid compiler warnings
33089         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33090         variables.
33091         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33092
33093 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33094
33095         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33096         settings since xalloc-die is no longer the self test,
33097         xalloc-die.sh is.
33098
33099 2009-11-17  Jim Meyering  <meyering@redhat.com>
33100
33101         test-xalloc-die.sh: make the code agree with the commit log
33102         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33103         at the end, just in case you happen to have a test-xalloc-die
33104         program in some other PATH directory.
33105
33106         test-xalloc-die.sh: fix a portability bug
33107         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33108         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33109         Otherwise, argv[0] (as often seen in diagnostics) would be too
33110         system-dependent, sometimes with, and sometimes without the leading "./".
33111
33112         version-etc-fsf: relax license to LGPLv3+
33113         * modules/version-etc-fsf (License): Relax license.
33114
33115 2009-11-16  Eric Blake  <ebb9@byu.net>
33116
33117         xalloc-die-tests: avoid printing null pointer
33118         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33119         shell script.
33120         * tests/test-xalloc-die.c (program_name): Declare.
33121         * tests/test-xalloc-die.sh (tmpfiles): New file.
33122
33123         setenv, unsetenv: work around various bugs
33124         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33125         (setenv) [HAVE_SETENV]: Work around bugs.
33126         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33127         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33128         for bugs.
33129         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33130         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33132         * modules/stdlib (Makefile.am): Update substitutions.
33133         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33134         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33135         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33136         * modules/setenv-tests: New test.
33137         * modules/unsetenv-tests: Likewise.
33138         * tests/test-setenv.c: New file.
33139         * tests/test-unsetenv.c: Likewise.
33140
33141 2009-11-16  Jim Meyering  <meyering@redhat.com>
33142
33143         version-etc: relax license to LGPLv3+
33144         * modules/version-etc (License): Relax license.
33145
33146         better AC_REQUIRE expanded-before-required-warning avoidance
33147         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33148         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33149         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33150         which is no longer needed.
33151
33152 2009-11-16  Eric Blake  <ebb9@byu.net>
33153
33154         test-freading: clean up temporary file
33155         * tests/test-freading.c (main): Remove file on success, and use
33156         ASSERT more liberally.
33157         Reported by Jim Meyering.
33158
33159 2009-11-16  Jim Meyering  <meyering@redhat.com>
33160
33161         avoid new AC_REQUIRE expanded-before-required warnings
33162         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33163         merely using it.
33164         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33165         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33166
33167 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33168
33169         * tests/test-xalloc-die.c: New file.
33170         * modules/xalloc-die-tests: New file.
33171         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33172         XFAIL_TESTS so it can be appended by modules.
33173
33174 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33175
33176         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33177         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33178
33179 2009-11-14  Eric Blake  <ebb9@byu.net>
33180
33181         fnmatch: avoid compiler warning
33182         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33183         to silence compiler warning about mismatch signedness in ?:.
33184         Reported by Robert Millan.
33185
33186         intprops: add double-inclusion guard
33187         * lib/intprops.h: Allow idempotent includes.
33188         Suggested by Bruce Korb.
33189
33190         openat: detect Solaris fchownat bug
33191         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33192         penalizing glibc chownat when only lchownat is broken.
33193         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33194         trailing slash bugs.
33195         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33196         * modules/openat-tests (Files): Include more files.
33197         (Depends-on): Add mgetgroups, sleep, stat-time.
33198         (configure.ac): Add additional checks.
33199         (Makefile.am): Build new test.
33200         * tests/test-fchownat.c: New file.
33201
33202         lchown: detect Solaris and FreeBSD bug
33203         * lib/lchown.c (rpl_lchown): Work around bug.
33204         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33206         * modules/unistd (Makefile.am): Populate it.
33207         * lib/unistd.in.h (lchown): Update declaration.
33208         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33209         * modules/lchown-tests: New file.
33210         * tests/test-lchown.h (test_lchown): Likewise.
33211         * tests/test-lchown.c (main): Likewise.
33212
33213         chown: detect Solaris and FreeBSD bug
33214         * lib/chown.c (rpl_chown): Work around bug.
33215         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33216         (gl_PREREQ_CHOWN): Delete.
33217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33218         * modules/unistd (Makefile.am): Populate it.
33219         * lib/unistd.in.h (chown): Update declaration.
33220         * lib/lchown.c (chown): Update client.
33221         * modules/lchown (Depends-on): Add lstat.
33222         * doc/posix-functions/chown.texi (chown): Document the bug.
33223         * doc/posix-functions/getgroups.texi (getgroups): Document
33224         getgroups pitfall.
33225         * modules/chown-tests: New file.
33226         * tests/test-chown.h (test_chown): Likewise.
33227         * tests/test-chown.c (main): Likewise.
33228
33229 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33230
33231         gnulib-tool: correctly detect absence of m4 directories
33232         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33233
33234 2009-11-14  Jim Meyering  <meyering@redhat.com>
33235
33236         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33237         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33238
33239 2009-11-14  John W. Eaton  <jwe@gnu.org>
33240
33241         strftime.h: wrap funtion declaration in extern "C" block
33242         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33243
33244 2009-11-13  Eric Blake  <ebb9@byu.net>
33245
33246         getgroups: avoid compiler warning
33247         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33248
33249         getgroups: work around FreeBSD bug
33250         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33251         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33252         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33253         * tests/test-getgroups.c (main): Fix buffer overrun.
33254
33255         getgroups: avoid compilation failure
33256         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33257         * modules/getgroups (Depends-on): Add stdint.
33258
33259 2009-11-13  Jim Meyering  <meyering@redhat.com>
33260
33261         test-getgroups: avoid compilation failure
33262         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33263
33264 2009-11-13  Eric Blake  <ebb9@byu.net>
33265
33266         mgetgroups: new module, taken from coreutils
33267         * modules/mgetgroups: New file.
33268         * lib/mgetgroups.h: Likewise.
33269         * lib/mgetgroups.c (mgetgroups): Likewise.
33270         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33271         * MODULES.html.sh (Users and groups): Mention it.
33272
33273         getgroups: don't expose GETGROUPS_T to user
33274         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33275         an element at a time if GETGROUPS_T is wrong size.
33276         * lib/getugroups.h (getugroups): Change signature.
33277         * lib/unistd.in.h (getgroups): Likewise.
33278         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33279         signature needs fixing.
33280         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33281         AC_TYPE_GETGROUPS.
33282         * modules/group-member (Depends-on): Add getgroups.
33283         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33284         (group_member): Rely on getgroups replacement.
33285         * lib/getugroups.c (getugroups): Use gid_t.
33286         * tests/test-getgroups.c (main): Likewise.
33287         * NEWS: Mention the signature change.
33288         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33289         problem with signature.
33290         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33291         GETGROUPS_T is still useful for setgroups.
33292
33293         getgroups, getugroups: provide stubs for mingw
33294         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33295         * lib/getugroups.c (getugroups): Likewise.
33296         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33297         function.  Modernize replacement scheme.
33298         (gl_PREREQ_GETGROUPS): Delete.
33299         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33300         * modules/getgroups (configure.ac): Declare witness.
33301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33302         * modules/unistd (Depends-on): Substitute witness.
33303         * lib/unistd.in.h (getgroups): Declare replacement.
33304
33305         getgroups: avoid calling exit
33306         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33307         drop xalloc.
33308         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33309         dependencies.
33310         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33311         exiting, in the rare case of malloc failure.
33312
33313         getgroups: fix logic error
33314         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33315         has more than 20 groups.
33316         * modules/getgroups-tests: New test.
33317         * tests/test-getgroups.c: New file.
33318
33319 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33320
33321         * tests/test-base64.c: Improve.
33322
33323 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33324
33325         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33326         Blake <ebb9@byu.net>.
33327
33328 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33329
33330         * tests/test-xvasprintf.c: Add %s%s related checks.
33331
33332 2009-11-12  Eric Blake  <ebb9@byu.net>
33333
33334         version-etc: match standards.texi style
33335         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33336         and use <> only for URLs.
33337
33338 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33339
33340         fts: do not fail on a submount during traversal
33341         * lib/fts.c (fts_build): Read the stat info again after opening
33342         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33343         Original report at http://bugzilla.redhat.com/501848.
33344
33345 2009-11-12  Jim Meyering  <meyering@redhat.com>
33346
33347         bootstrap: sync from coreutils
33348         * build-aux/bootstrap (bootstrap_epilogue): New function.
33349         Use git_modules_config in one more place.  This make bootstrap's
33350         --gnulib-srcdir option more useful for testing.
33351
33352         bootstrap: generalize autoheader check
33353         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33354         AC_CONFIG_HEADERS.
33355
33356 2009-11-11  Eric Blake  <ebb9@byu.net>
33357
33358         mkfifoat: use new modules for Solaris and BSD bugs
33359         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33360         * lib/mkfifoat.c (mknodat): Split...
33361         * lib/mknodat.c (mknodat): ...into new file.
33362         * modules/mkfifoat (Files): Ship new file.
33363         (Depends-on): Add mkfifo, mknod.
33364         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33365         (Depends-on): Add symlink.
33366         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33367         redundant with test_mkfifo.h.
33368         (do_mkfifoat, do_mknodat): New helpers.
33369
33370         mknod: new module
33371         * modules/mknod: New file.
33372         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33373         * lib/mknod.c (mknod): Likewise.
33374         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33375         defaults.
33376         * modules/sys_stat (Makefile.am): Substitute them.
33377         * lib/sys_stat.in.h (mknod): Declare replacement.
33378         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33379         Document it.
33380         * doc/posix-functions/mknod.texi (mknod): Likewise.
33381         * modules/mknod-tests: New test.
33382         * tests/test-mknod.c: Likewise.
33383
33384         mkfifo: new module
33385         * modules/mkfifo: New file.
33386         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33387         * lib/mkfifo.c (mkfifo): Likewise.
33388         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33389         defaults.
33390         * modules/sys_stat (Makefile.am): Substitute them.
33391         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33392         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33393         Document it.
33394         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33395         * modules/mkfifo-tests: New test.
33396         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33397         from test-mkfifoat.c.
33398         * tests/test-mkfifo.c: New file.
33399
33400         readlink: detect FreeBSD bug
33401         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33402         slash on symlink.
33403         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33404         * tests/test-readlink.h (test_readlink): Enhance test.
33405
33406         symlink: detect FreeBSD bug
33407         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33408         slash on symlink.
33409         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33410         * tests/test-symlink.h (test_symlink): Enhance test.
33411
33412 2009-11-10  Eric Blake  <ebb9@byu.net>
33413
33414         link: detect FreeBSD bug
33415         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33416         symlink.
33417         * doc/posix-functions/link.texi (link): Document the bug.
33418         * tests/test-link.h (test_link): Enhance test.
33419         * tests/test-linkat.c (main): Update caller.
33420
33421         unlink, remove: detect FreeBSD bug
33422         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33423         slash on symlink.
33424         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33425         * doc/posix-functions/remove.texi (remove): Likewise.
33426         * tests/test-unlink.h (test_unlink): Enhance test.
33427         * tests/test-remove.c (main): Likewise.
33428
33429 2009-11-09  Eric Blake  <ebb9@byu.net>
33430
33431         rename: detect FreeBSD bug
33432         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33433         slash on symlink.
33434         * modules/renameat-tests (Depends-on): Add filenamecat.
33435         * tests/test-rename.h (test_rename): Allow one more errno.
33436         * tests/test-renameat.c (main): Likewise.
33437         * doc/posix-functions/rename.texi (rename): Document the bug.
33438
33439         open: detect FreeBSD bug
33440         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33441         symlink.
33442         * doc/posix-functions/open.texi (open): Document the bug.
33443         * doc/posix-functions/utimes.texi (utimes): Likewise.
33444         * tests/test-open.h (test_open): Add parameters, and test symlink
33445         handling.
33446         * tests/test-open.c (main): Adjust caller.
33447         * tests/test-fcntl-safer.c (main): Likewise.
33448         * modules/open-tests (Depends-on): Add stdbool, symlink.
33449         * modules/fcntl-safer-tests (Depends-on): Likewise.
33450         * tests/test-openat.c (main): Add test-open tests.
33451
33452         stat: detect FreeBSD bug
33453         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33454         symlink.
33455         * doc/posix-functions/stat.texi (stat): Document the bug.
33456         * tests/test-stat.h (test_stat_func): Add argument.
33457         * tests/test-stat.c (main): Adjust caller.
33458         * tests/test-fstatat.c (main): Likewise.
33459         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33460         Reported by Jim Meyering.
33461
33462 2009-11-09  James Youngman  <jay@gnu.org>
33463
33464         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33465         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33466
33467 2009-11-08  Jim Meyering  <meyering@redhat.com>
33468
33469         utimens: remove invalid futimesat call
33470         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33471         It used the file descriptor of the target file as the DIR_FD
33472         parameter and NULL as the file name.  That caused failure with
33473         errno == EFAULT on FreeBSD-8.0-rc2
33474
33475 2009-11-07  Eric Blake  <ebb9@byu.net>
33476
33477         fflush, freadseek: use fseeko, not fseek
33478         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33479         (clear_ungetc_buffer): Avoid potential problems on large files.
33480         * lib/freadseek.c (freadseek): Likewise.
33481         * modules/freadseek (Depends-on): Add fseeko.
33482         * modules/fseek (configure.ac): Set a witness.
33483         * tests/test-fflush.c (main): Use fseeko.
33484         * tests/test-fpurge.c (fseek): Disable link warning.
33485         * tests/test-freadable.c (fseek): Likewise.
33486         * tests/test-freading.c (fseek): Likewise.
33487         * tests/test-fseeko.c (fseek): Likewise.
33488         * tests/test-ftell.c (fseek): Likewise.
33489         * tests/test-ftello.c (fseek): Likewise.
33490         * tests/test-fwritable.c (fseek): Likewise.
33491         * tests/test-fwriting.c (fseek): Likewise.
33492
33493 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33494
33495         * modules/memchr (Depends-on): Drop getpagesize dependency.
33496
33497 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33498
33499         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33500         Reported by Ludovic Courtès.
33501         * build-aux/pmccabe2html: Improve example usage.
33502         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33503
33504 2009-11-06  Jim Meyering  <meyering@redhat.com>
33505
33506         do-release-commit-and-tag: New module.
33507         Automate the release-commit and tag process.
33508         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33509         * modules/do-release-commit-and-tag: New file.
33510         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33511
33512 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33513
33514         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33515         because test-select.c uses inet_pton.
33516
33517 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33518
33519         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33520         GETADDRINFO_LIB.  Bump serial number.
33521         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33522         Suggested by Eric Blake <ebb9@byu.net>.
33523
33524 2009-11-05  Eric Blake  <ebb9@byu.net>
33525
33526         strtod: detect darwin bug
33527         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33528         Reported by Leo Davis.
33529
33530         freopen-safer: new module
33531         * modules/freopen-safer: New module.
33532         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33533         * lib/freopen-safer.c (freopen_safer): New file.
33534         * lib/stdio-safer.h (freopen_safer): New declaration.
33535         * lib/stdio--.h (freopen): New override.
33536         * MODULES.html.sh (File stream based Input/Output): Mention it.
33537         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33538         freopen-safer module.
33539         * doc/posix-functions/stderr.texi (stderr): Likewise.
33540         * doc/posix-functions/stdin.texi (stdin): Likewise.
33541         * doc/posix-functions/stdout.texi (stdout): Likewise.
33542         * modules/freopen-safer-tests: New test.
33543         * tests/test-reopen-safer.c: New file.
33544
33545 2009-11-05  Jim Meyering  <meyering@redhat.com>
33546
33547         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33548         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33549
33550 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33551
33552         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33553
33554 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33555
33556         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33557
33558 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33559
33560         Fix link error.
33561         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33562         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33563
33564 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33565
33566         * tests/test-func.c: Also test value of __func__.
33567
33568 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33569
33570         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33571         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33572
33573 2009-11-05  Bruno Haible  <bruno@clisp.org>
33574
33575         Fix link error.
33576         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33577         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33578         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33579
33580 2009-11-05  Bruno Haible  <bruno@clisp.org>
33581
33582         Tests for module 'inet_pton'.
33583         * modules/inet_pton-tests: New file.
33584         * tests/test-inet_pton.c: New file.
33585
33586 2009-11-05  Bruno Haible  <bruno@clisp.org>
33587
33588         Tests for module 'inet_ntop'.
33589         * modules/inet_ntop-tests: New file.
33590         * tests/test-inet_ntop.c: New file.
33591
33592 2009-11-04  Eric Blake  <ebb9@byu.net>
33593
33594         stdlib-safer: wrap all mkstemp variants
33595         * modules/mkostemp (configure.ac): Set witness.
33596         * modules/mkostemps (configure.ac): Likewise.
33597         * modules/mkstemps (configure.ac): Likewise.
33598         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33599         (mkstemps_safer): Wrap more functions.
33600         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33601         wrapping.
33602         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33603         (mkstemps_safer): Implement the wrappers.
33604
33605         mkstemps, mkostemps: new modules
33606         * modules/mkostemps: New module.
33607         * modules/mkstemps: Likewise.
33608         * lib/mkostemps.c (mkostemps): New file.
33609         * lib/mkstemps.c (mkstemps): Likewise.
33610         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33611         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33612         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33613         * modules/stdlib (Makefile.am): Substitute them.
33614         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33615         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33616         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33617         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33618         * MODULES.html.sh (File system functions): Mention them.
33619
33620         tempname: resync from glibc
33621         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33622         same values for __GT_FILE as glibc.  Abort even when assertions
33623         are disabled.
33624         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33625         match its value otherwise.  Allow idempotent inclusion.
33626         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33627         * lib/mkostemp.c (mkostemp): Likewise.
33628         * lib/mkstemp.c (mkstemp): Likewise.
33629         * lib/tmpfile.c (tmpfile): Likewise.
33630         * NEWS: Document this.
33631
33632         utimens: fix use of futimens on older Linux
33633         * lib/utimens.c (fdutimens): Use updated, rather than original,
33634         timespec to avoid bug in older Linux kernel.
33635         Reported by Simon Josefsson.
33636
33637 2009-11-04  Bruno Haible  <bruno@clisp.org>
33638
33639         Make num_processors more flexible and consistent.
33640         * lib/nproc.h (enum nproc_query): New type.
33641         (num_processors): Add a 'query' argument.
33642         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33643         (num_processors): Add a 'query' argument. Test the value of the
33644         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33645         mingw, count the number of CPUs available for the current process.
33646         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33647         Check for sched_getaffinity and sched_getaffinity_np.
33648         * modules/nproc (Depends-on): Add c-ctype, extensions.
33649         * NEWS: Mention the change.
33650
33651 2009-11-03  Bruno Haible  <bruno@clisp.org>
33652
33653         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33654
33655 2009-11-03  Jim Meyering  <meyering@redhat.com>
33656
33657         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33658         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33659         if it is defined.
33660
33661 2009-11-02  Eric Blake  <ebb9@byu.net>
33662
33663         mktime, timegm: share common declaration
33664         * lib/mktime-internal.h: New file.
33665         * lib/mktime.c: Use it rather than open-coding a declaration.
33666         * lib/timegm.c: Likewise.
33667         * modules/mktime (Files): Ship it.
33668         * modules/timegm (Files): Likewise.
33669         Suggested by Bruno Haible.
33670
33671         test-update-copyright: update test to match script changes
33672         * tests/test-update-copyright.sh: Avoid hard-coding perl
33673         location.  Don't update *.bak created by earlier runs.
33674
33675 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33676             Simon Josefsson  <simon@josefsson.org>
33677             Bruno Haible  <bruno@clisp.org>
33678
33679         Fix link error on Solaris 8.
33680         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33681         also in libnsl. Define also INET_PTON_LIB.
33682         * modules/inet_pton (Link): New section.
33683
33684 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33685             Bruno Haible  <bruno@clisp.org>
33686
33687         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33688         * modules/inet_ntop (Link): New section.
33689         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33690
33691 2009-11-02  Eric Blake  <ebb9@byu.net>
33692
33693         maint: avoid compiler warnings in m4 macros
33694         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33695         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33696
33697 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33698
33699         * m4/pmccabe2html.m4: Remove file.
33700         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33701         function.  Change maintainer.
33702         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33703         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33704         Courtès).
33705
33706 2009-10-31  Eric Blake  <ebb9@byu.net>
33707
33708         fseeko: fix m4 regression
33709         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33710         regression from 2009-10-27.
33711         Reported by Ralf Wildenhues.
33712
33713 2009-10-31  Jim Meyering  <meyering@redhat.com>
33714
33715         inttostr: aesthetics and improved (compile-time) safety
33716         Define inttype_is_signed rather than inttype_is_unsigned,
33717         since the sole use is via "#if inttype_is_signed".
33718         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33719         inttype_is_unsigned.
33720         * lib/offtostr.c (inttype_is_signed): Likewise.
33721         * lib/uinttostr.c (inttype_is_signed): Likewise.
33722         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33723         * lib/inttostr.c (inttostr): Use verify to cross-check the
33724         inttype_is_signed value and the signedness of the actual type.
33725         * modules/inttostr (Depends-on): Add verify.
33726
33727 2009-10-30  Eric Blake  <ebb9@byu.net>
33728
33729         build: avoid compiler warnings
33730         * lib/fchmodat.c (lchmod): Mark unused variables.
33731         * lib/getopt.c (_getopt_initialize): Likewise.
33732         * lib/mktime.c (__mktime_internal): Provide prototype.
33733         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33734         older gcc that do not understand #pragma GCC diagnostic.
33735         * lib/uinttostr.c (inttype_is_unsigned): Define.
33736         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33737
33738 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33739
33740         stat: fix compilation on AIX
33741         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33742         only see struct stat64.
33743
33744 2009-10-30  Eric Blake  <ebb9@byu.net>
33745
33746         exclude: make more robust
33747         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33748         rather than masking a coding bug.
33749         Suggested by Bruno Haible.
33750
33751 2009-10-30  Jim Meyering  <meyering@redhat.com>
33752
33753         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33754         Rather than putting #!/usr/bin/perl on the first line,
33755         start with a variant of what's recommended by "man perlrun" that
33756         invokes the first "perl" program from your shell's search path.
33757         * build-aux/gitlog-to-changelog: Replace #!... as above.
33758         Add a "Local Variables" perl mode setting.
33759         Prompted by a patch from Ludovic Courtès.
33760         Improved by Eric Blake.
33761         * build-aux/useless-if-before-free: Likewise.
33762         * build-aux/announce-gen: Likewise.
33763         * build-aux/update-copyright: Likewise.
33764
33765 2009-10-29  Eric Blake  <ebb9@byu.net>
33766
33767         filenamecat-lgpl: adjust clients
33768         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33769         filenamecat.
33770         * modules/renameat (Depends-on): Likewise.
33771
33772         filenamecat: split into filenamecat-lgpl
33773         * modules/filenamecat-lgpl: New module.
33774         * modules/filenamecat (Files): Move library-safe files into
33775         filenamecat-lgpl.
33776         (Depends-on): Add filenamecat-lgpl.
33777         (configure.ac): Declare witness.
33778         * lib/filenamecat.h (file_name_concat): Only declare when using
33779         GPL module.
33780         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33781         Move...
33782         * lib/filenamecat-lgpl.c: ...into new file.
33783         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33784         (gl_FILE_NAME_CONCAT): Use it.
33785         * MODULES.html.sh (File system functions): Mention new module.
33786
33787         argp: avoid memory leak
33788         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33789         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33790         base_name, since the latter malloc()s and can call exit().
33791         Leak introduced 2006-07-03.
33792
33793         dirname-lgpl: adjust clients that don't need full dirname
33794         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33795         * modules/filenamecat (Depends-on): Likewise.
33796         * modules/linkat (Depends-on): Likewise.
33797         * modules/mkancesdirs (Depends-on): Likewise.
33798         * modules/mkdir (Depends-on): Likewise.
33799         * modules/openat (Depends-on): Likewise.
33800         * modules/savewd (Depends-on): Likewise.
33801         * modules/rename (Depends-on): Likewise.
33802         (License): Relax license.
33803         * modules/mkdir-tests (Depends-on): Drop progname.
33804         (Makefile.am): Delete unneeded LDADD.
33805         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33806
33807         dirname: split into dirname-lgpl
33808         * modules/dirname-lgpl: New module.
33809         * modules/dirname (Files): Move library-safe files into
33810         dirname-lgpl.
33811         (Depends-on): Add dirname-lgpl.
33812         (configure.ac): Declare witness.
33813         * modules/double-slash-root (License): Relax license.
33814         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33815         module.
33816         * lib/dirname.c (dir_len, mdir_name): Move...
33817         * lib/dirname-lgpl.c: ...into new file.
33818         * lib/basename.c (last_component, base_len): Move...
33819         * lib/basename-lgpl.c: ...into new file.
33820         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33821         (gl_DIRNAME): Use it.
33822         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33823         Mention new module.
33824         * modules/dirname-tests (Depends-on): Add progname.
33825         * tests/test-dirname.c (program_name): Delete.
33826
33827         mkdir: make safe for libraries
33828         * modules/mkdir (Depends-on): Drop xalloc.
33829         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33830         exit.
33831
33832         tests: avoid some compiler warnings
33833         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33834         literals.
33835         * tests/test-memchr.c (main): Avoid type mismatch.
33836         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33837         * tests/test-base64.c (main): Likewise.
33838         * tests/test-getdelim.c (main): Likewise.
33839         * tests/test-gethostname.c (main): Likewise.
33840         * tests/test-getline.c (main): Likewise.
33841         * tests/test-netinet_in.c (main): Likewise.
33842         * tests/test-select.c (open_server_socket, main): Likewise.
33843         * tests/test-select-stdin.c (main): Likewise.
33844         * tests/test-sockets.c (main): Likewise.
33845         * tests/test-strsignal.c (main): Likewise.
33846         * tests/test-sys_select.c (main): Likewise.
33847         * tests/test-sys_socket.c (main): Likewise.
33848         * tests/test-u64.c (main): Likewise.
33849         * tests/test-xfprintf-posix.c (main): Likewise.
33850         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33851
33852         sockets: avoid compiler warning
33853         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33854
33855         maint: detect usage(1) and other suspicious exits
33856         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33857
33858 2009-10-29  Jim Meyering  <meyering@redhat.com>
33859
33860         timespec: long-to-int truncation could make timespec_cmp malfunction
33861         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33862         a multiple of 2^32 nanoseconds as no difference.
33863
33864 2009-10-28  Jim Meyering  <meyering@redhat.com>
33865
33866         fprintftime: wrap macro code argument in "do {...} while(0)"
33867         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33868         cpy macro must be a statement that can be followed by a semicolon.
33869         Now that the else clause contains a comment and is hence longer
33870         than one line, I require curly braces.  That in turn requires
33871         that we wrap this code block in the standard do...while(0).
33872
33873         fprintftime: remove stray semicolon from previous change
33874         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33875
33876         fprintftime: avoid a warning about ignored fwrite return value
33877         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33878         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33879         that is unsafe.
33880         * modules/fprintftime (Depends-on): Add ignore-value.
33881
33882         exclude: avoid an unwarranted warning
33883         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33884
33885 2009-10-27  Eric Blake  <ebb9@byu.net>
33886
33887         fseek: avoid compilation failure when fflush is replaced
33888         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33889         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33890         module is in use.
33891         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33892         module is not in use; since REPLACE_FSEEK worked otherwise.
33893         (GNULIB_FTELLO): Likewise for ftell.
33894         Reported by Ian Beckwith and others.
33895
33896 2009-10-27  Bruno Haible  <bruno@clisp.org>
33897
33898         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33899         Reported by Jim Meyering.
33900
33901 2009-10-27  Jim Meyering  <jim@meyering.net>
33902             Bruno Haible  <bruno@clisp.org>
33903
33904         Avoid warning despite dropping the return value of fwrite.
33905         * lib/unicodeio.c: Include ignore-value.h.
33906         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33907         * modules/unicodeio (Depends-on): Add ignore-value.
33908
33909 2009-10-26  Eric Blake  <ebb9@byu.net>
33910
33911         areadlinkat: fix fallback path
33912         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33913         pointer and zero.
33914
33915 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33916
33917         Use a better IO block size for modern systems
33918         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33919         * lib/md2.c: Likewise.
33920         * lib/md4.c: Likewise.
33921         * lib/md5.c: Likewise.
33922         * lib/sha1.c: Likewise.
33923         * lib/sha256.c: Likewise.
33924         * lib/sha512.c: Likewise.
33925
33926 2009-10-22  Eric Blake  <ebb9@byu.net>
33927
33928         tests: avoid several compiler warnings
33929         * tests/test-getcwd.c (main): Avoid buffer underflow.
33930         * tests/test-getdate.c (main): String literals are not safe with
33931         putenv, so use setenv.  Declare unused argument.
33932         * modules/getdate-tests (Depends-on): Add setenv.
33933         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33934         problems with string literals in char *.
33935         * tests/test-hash.c (main): Avoid shadowing declaration.
33936         (insert_new): Treat string literals as char const *.
33937         * tests/test-getopt.h (test_getopt): Likewise.
33938         (getopt_loop): Alter types to minimize casting elsewhere.
33939         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33940         (test_getopt_long_posix): Likewise.
33941         (do_getopt_long): Add wrapper to minimize casting.
33942         * tests/test-atexit.c (clear_temp_file): Use void.
33943         * tests/test-areadlink-with-size.c (main): Declare unused
33944         arguments.
33945         * tests/test-areadlink.c (main): Likewise.
33946         * tests/test-areadlinkat-with-size.c (main): Likewise.
33947         * tests/test-areadlinkat.c (main): Likewise.
33948         * tests/test-canonicalize-lgpl.c (main): Likewise.
33949         * tests/test-canonicalize.c (main): Likewise.
33950         * tests/test-dirent-safer.c (main): Likewise.
33951         * tests/test-dirname.c (main): Likewise.
33952         * tests/test-dup2.c (main): Likewise.
33953         * tests/test-fchdir.c (main): Likewise.
33954         * tests/test-fcntl-h.c (main): Likewise.
33955         * tests/test-fcntl-safer.c (main): Likewise.
33956         * tests/test-fdopendir.c (main): Likewise.
33957         * tests/test-fdutimensat.c (main): Likewise.
33958         * tests/test-fflush.c (main): Likewise.
33959         * tests/test-filenamecat.c (main): Likewise.
33960         * tests/test-filevercmp.c (main): Likewise.
33961         * tests/test-fopen-safer.c (main): Likewise.
33962         * tests/test-fopen.c (main): Likewise.
33963         * tests/test-fpending.c (main): Likewise.
33964         * tests/test-fpurge.c (main): Likewise.
33965         * tests/test-freading.c (main): Likewise.
33966         * tests/test-fstatat.c (main): Likewise.
33967         * tests/test-fsync.c (main): Likewise.
33968         * tests/test-futimens.c (main): Likewise.
33969         * tests/test-getndelim2.c (main): Likewise.
33970         * tests/test-gettimeofday.c (main): Likewise.
33971         * tests/test-getopt.c (main): Likewise.
33972         * tests/test-i-ring.c (main): Likewise.
33973         * tests/test-inttypes.c (main): Likewise.
33974         * tests/test-link.c (main): Likewise.
33975         * tests/test-lstat.c (main): Likewise.
33976         * tests/test-math.c (main): Likewise.
33977         * tests/test-md5.c (main): Likewise.
33978         * tests/test-memchr2.c (main): Likewise.
33979         * tests/test-memrchr.c (main): Likewise.
33980         * tests/test-mkdir.c (main): Likewise.
33981         * tests/test-mkdirat.c (main): Likewise.
33982         * tests/test-mkfifoat.c (main): Likewise.
33983         * tests/test-open.c (main): Likewise.
33984         * tests/test-openat-safer.c (main): Likewise.
33985         * tests/test-openat.c (main): Likewise.
33986         * tests/test-quotearg.c (main): Likewise.
33987         * tests/test-rawmemchr.c (main): Likewise.
33988         * tests/test-readlink.c (main): Likewise.
33989         * tests/test-remove.c (main): Likewise.
33990         * tests/test-rename.c (main): Likewise.
33991         * tests/test-renameat.c (main): Likewise.
33992         * tests/test-rmdir.c (main): Likewise.
33993         * tests/test-sha1.c (main): Likewise.
33994         * tests/test-signal.c (main): Likewise.
33995         * tests/test-sigaction.c (main): Likewise.
33996         * tests/test-stat.c (main): Likewise.
33997         * tests/test-stat-time.c (main): Likewise.
33998         * tests/test-stddef.c (main): Likewise.
33999         * tests/test-stdint.c (main): Likewise.
34000         * tests/test-stdio.c (main): Likewise.
34001         * tests/test-stdlib.c (main): Likewise.
34002         * tests/test-strchrnul.c (main): Likewise.
34003         * tests/test-strerror.c (main): Likewise.
34004         * tests/test-string.c (main): Likewise.
34005         * tests/test-strtod.c (main): Likewise.
34006         * tests/test-strverscmp.c (main): Likewise.
34007         * tests/test-symlink.c (main): Likewise.
34008         * tests/test-symlinkat.c (main): Likewise.
34009         * tests/test-sys_stat.c (main): Likewise.
34010         * tests/test-sys_time.c (main): Likewise.
34011         * tests/test-time.c (main): Likewise.
34012         * tests/test-unistd.c (main): Likewise.
34013         * tests/test-unlink.c (main): Likewise.
34014         * tests/test-unlinkat.c (main): Likewise.
34015         * tests/test-utimens.c (main): Likewise.
34016         * tests/test-utimensat.c (main): Likewise.
34017         * tests/test-version-etc.c (main): Likewise.
34018         * tests/test-wchar.c (main): Likewise.
34019         * tests/test-wctype.c (main): Likewise.
34020         * tests/test-xprintf-posix.c (main): Likewise.
34021         * tests/test-posixtm.c (main): Likewise.
34022         (STREQ): Delete unused macro.
34023         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34024         shadowed variables.
34025         * tests/test-memchr.c (main): Likewise.
34026
34027 2009-10-21  Eric Blake  <ebb9@byu.net>
34028
34029         areadlinkat: avoid failure on older glibc
34030         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34031         rather than mis-comparing 0 against FUNC_RESULT of char*.
34032
34033 2009-10-21  Bruno Haible  <bruno@clisp.org>
34034
34035         * modules/stpncpy (License): Relicense under LGPLv2+.
34036         Reported by David Lutterkort <lutter@redhat.com>.
34037
34038 2009-10-20  Eric Blake  <ebb9@byu.net>
34039
34040         utimensat: work around Solaris 9 bug
34041         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34042         has trailing slash bugs.
34043         * tests/test-lutimens.h (test_lutimens): Enhance test.
34044         * tests/test-utimens.h (test_utimens): Likewise.
34045         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34046         * doc/posix-functions/utimes.texi (utimes): Likewise.
34047         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34048         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34049         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34050         * doc/posix-functions/futimens.texi (futimens): Likewise.
34051
34052         fdutimensat: new module
34053         * modules/fdutimensat: New file.
34054         * lib/fdutimensat.c (fdutimensat): Likewise.
34055         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34056         * MODULES.html.sh (File system functions): Mention module.
34057         * modules/fdutimensat-tests: New test.
34058         * tests/test-fdutimensat.c: Likewise.
34059
34060         doc: regenerate INSTALL
34061         * doc/INSTALL: Reflect recent autoconf update.
34062         * doc/INSTALL.ISO: Likewise.
34063         * doc/INSTALL.UTF-8: Likewise.
34064
34065 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34066
34067         acl: warn if ACL support is not detected
34068         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34069
34070 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34071
34072         * lib/nproc.h: Add extern "C" block for C++.
34073
34074 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34075             Bruno Haible  <bruno@clisp.org>
34076
34077         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34078         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34079         * doc/posix-functions/isalpha.texi: Likewise.
34080         * doc/posix-functions/isblank.texi: Likewise.
34081         * doc/posix-functions/iscntrl.texi: Likewise.
34082         * doc/posix-functions/isdigit.texi: Likewise.
34083         * doc/posix-functions/isgraph.texi: Likewise.
34084         * doc/posix-functions/islower.texi: Likewise.
34085         * doc/posix-functions/isprint.texi: Likewise.
34086         * doc/posix-functions/ispunct.texi: Likewise.
34087         * doc/posix-functions/isspace.texi: Likewise.
34088         * doc/posix-functions/isupper.texi: Likewise.
34089         * doc/posix-functions/isxdigit.texi: Likewise.
34090
34091 2009-10-18  Bruno Haible  <bruno@clisp.org>
34092
34093         Tests for module 'isblank'.
34094         * modules/isblank-tests: New file.
34095         * tests/test-isblank.c: New file.
34096
34097         New module 'isblank'.
34098         * lib/isblank.c: New file.
34099         * m4/isblank.m4: New file.
34100         * modules/isblank: New file.
34101         * doc/posix-functions/isblank.texi: Mention the new module.
34102
34103 2009-10-18  Bruno Haible  <bruno@clisp.org>
34104
34105         New module 'ctype'.
34106         * lib/ctype.in.h: New file.
34107         * m4/ctype.m4: New file.
34108         * modules/ctype: New file.
34109         * doc/posix-headers/ctype.texi: Mention the new module.
34110
34111 2009-10-18  Jim Meyering  <meyering@redhat.com>
34112
34113         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34114         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34115         right after its initialization, rather than farther down.
34116         Keeping these in close proximity makes it easier to ensure
34117         that each such variable is initialized.  E.g.,
34118
34119             LIB_CLOCK_GETTIME=
34120             AC_SUBST([LIB_CLOCK_GETTIME])
34121
34122         This change also increments these serial numbers.
34123         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34124         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34125         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34126
34127 2009-10-18  Bruno Haible  <bruno@clisp.org>
34128
34129         Don't let environment variables perturb build.
34130         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34131         (gl_PREREQ_GETHRXTIME): ... not here.
34132
34133 2009-10-18  Bruno Haible  <bruno@clisp.org>
34134
34135         Avoid symlink attack in localcharset module.
34136         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34137         (O_NOFOLLOW): Define fallback.
34138         (get_charset_aliases): Don't open the file if it is a symbolic link.
34139         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34140         gl_FCNTL_H.
34141         (gl_FCNTL_H): Require it.
34142         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34143         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34144         Reported by Fergal Glynn <fglynn@veracode.com>.
34145
34146 2009-10-18  Bruno Haible  <bruno@clisp.org>
34147
34148         Implement nproc for mingw.
34149         * lib/nproc.c: Include <windows.h>
34150         (num_processors): On native Windows platforms, try GetSystemInfo.
34151
34152 2009-10-18  Bruno Haible  <bruno@clisp.org>
34153
34154         Implement nproc for IRIX.
34155         * lib/nproc.c: Include <sys/sysmp.h>.
34156         (num_processors): On IRIX systems, try sysmp.
34157         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34158
34159 2009-10-18  Bruno Haible  <bruno@clisp.org>
34160
34161         Implement nproc for HP-UX.
34162         * lib/nproc.c: Include <sys/pstat.h>
34163         (num_processors): On HP-UX systems, try pstat_getdynamic.
34164         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34165         pstat_getdynamic.
34166
34167 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34168             Bruno Haible  <bruno@clisp.org>
34169
34170         Implement nproc for NetBSD, OpenBSD.
34171         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34172         (ARRAY_SIZE): New macro.
34173         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34174         * m4/nproc.m4: New file.
34175         * modules/nproc (Files): Add m4/nproc.m4.
34176         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34177         (Makefile.am): Instead, augment lib_SOURCES.
34178
34179 2009-10-18  Bruno Haible  <bruno@clisp.org>
34180
34181         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34182         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34183         sys/param.h.
34184
34185 2009-10-16  Eric Blake  <ebb9@byu.net>
34186
34187         utimensat: new module
34188         * modules/utimensat: New file.
34189         * lib/utimensat.c (utimensat): Likewise.
34190         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34191         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34192         so we can work around Linux bugs.
34193         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34194         * modules/sys_stat (Makefile.am): Substitute them.
34195         * lib/sys_stat.in.h (utimensat): Declare it.
34196         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34197         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34198         * modules/utimensat-tests: New test.
34199         * tests/test-utimensat.c: Likewise.
34200
34201         utimens: let lutimens work on non-symlinks
34202         * lib/utimens.c (lutimens): Fall back to utimens rather than
34203         failing with ENOSYS, when file is not a symlink.
34204         (utimens): Reduce redirection.
34205         * tests/test-lutimens.h (test_lutimens): Update test to cover
34206         non-symlinks.
34207         * tests/test-utimens.h (test_utimens): Update test to cover
34208         symlinks.
34209         * tests/test-utimens.c (main): Update caller.
34210
34211         utimens: cache whether utimensat syscall works
34212         * lib/utimens.c (utimensat_works_really): New cache variable.
34213         (fdutimens, lutimens): Use it to avoid failing syscall.
34214
34215         test-stat-time, test-utimens: improve portability
34216         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34217         ext4 on alpha, and for cygwin.
34218         * tests/test-utimens-common.h: New file.
34219         (nap): Factor delays into single function.
34220         * tests/test-lutimens.h (test_lutimens): Use new header.
34221         * tests/test-futimens.h (test_futimens): Likewise.
34222         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34223         timestamps to occur from same machine, as was done previously for
34224         test_utimens.
34225         * modules/utimens-tests (Files): Ship new file.
34226         * modules/futimens-tests (Files): Likewise.
34227         Reported in part by Jim Meyering.
34228
34229         sys_stat: sort replacement declarations
34230         * lib/sys_stat.in.h: Sort declarations.
34231         * lib/futimens.c (futimens): Fix typo.
34232
34233 2009-10-15  Jim Meyering  <meyering@redhat.com>
34234
34235         don't let environment settings perturb build
34236         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34237         could cause a configure-time and/or build-time malfunction.
34238         Typically, a configure-time function-in-library test is performed
34239         via code like this:
34240
34241           LIB_VAR=
34242           AC_SUBST([LIB_VAR])
34243           prefix_saved_LIBS=$LIBS
34244             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34245                        [test "$ac_cv_search_FUNC" = "none required" ||
34246                         LIB_VAR=$ac_cv_search_FUNC])
34247           LIBS=$prefix_saved_LIBS
34248
34249         However, in each of the files affected by this change, the LIB_VAR=
34250         initialization was omitted.  Thus, when set in the environment, its
34251         value would propagate into generated Makefiles when FUNC is not found
34252         in LIB_NAME.
34253         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34254         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34255         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34256
34257 2009-10-14  Eric Blake  <ebb9@byu.net>
34258
34259         fchdir: avoid infinite recursion in mingw
34260         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34261         recursing.
34262
34263         test-stat-time: port to mingw
34264         * tests/test-stat-time.c (force_unlink): Return a value.
34265         (test_ctime) [W32]: Fix compilation error.
34266         (nap): Don't call usleep with too large an argument.  Use
34267         force_unlink.
34268         * doc/pastposix-functions/usleep.texi (usleep): Document the
34269         portability issue.
34270
34271 2009-10-13  Jim Meyering  <meyering@redhat.com>
34272
34273         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34274         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34275         * modules/pipe-filter-ii: Likewise.
34276         * modules/sys_socket-tests: Likewise.
34277         * modules/tsearch-tests: Likewise.
34278         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34279         (check): Depend on it.
34280
34281 2009-10-12  Eric Blake  <ebb9@byu.net>
34282
34283         utimens-tests: port to NFS file systems
34284         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34285         comparisons to avoid spurious failures from timestamp drift
34286         between NFS machines.
34287
34288 2009-10-12  Eric Blake  <ebb9@byu.net>
34289
34290         stat-time-tests: minor cleanups
34291         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34292         * tests/test-stat-time.c (nap): Separate assignment from call.
34293         Suggested by Paolo Bonzini and Bruno Haible.
34294
34295         sys_stat: guarantee struct timespec
34296         * lib/sys_stat.in.h (includes): Always include <time.h>
34297         * modules/sys_stat (Depends-on): Add time.
34298         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34299         mode_t permission values.
34300         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34301         get at subsecond timestamps.
34302
34303 2009-10-10  Eric Blake  <ebb9@byu.net>
34304
34305         futimens: new module
34306         * modules/futimens: New file.
34307         * lib/futimens.c (futimens): Likewise.
34308         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34309         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34310         we can work around Linux bugs.
34311         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34312         * modules/sys_stat (Makefile.am): Substitute them.
34313         * lib/sys_stat.in.h (futimens): Declare it.
34314         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34315         * doc/posix-functions/futimens.texi (futimens): Likewise.
34316         * modules/futimens-tests: New test.
34317         * tests/test-futimens.c: Likewise.
34318
34319         utimens: introduce fdutimens
34320         * lib/utimens.h (fdutimens): New prototype.
34321         * lib/utimens.c (gl_futimens): Move guts...
34322         (fdutimens): ...to new interface.
34323         * tests/test-utimens.c (do_fdutimens): Use it.
34324
34325         utimens: add UTIME_NOW and UTIME_OMIT support
34326         * lib/utimens.c (validate_timespec, update_timespec): New helper
34327         functions.
34328         (gl_futimens, lutimens): Use them.
34329         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34330         stdbool, sys_stat.
34331         (Link): Mention resulting library dependency.
34332         * modules/utimecmp (Link): Likewise.
34333         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34334         (Makefile.am): Pick up library dependency.
34335         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34336         definition.
34337         * tests/test-sys_stat.c: Test the definitions.
34338         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34339         * NEWS: Document library dependency.
34340
34341         utimecmp: support symlink timestamps
34342         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34343         hashing when possible.  Use pathconf when available.
34344         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34345         * modules/utimecmp (Depends-on): Add lstat.
34346
34347         utimens: add lutimens interface
34348         * lib/utimens.c (lutimens): New function.
34349         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34350         * lib/utimens.h (lutimens): Declare new interface.
34351         * tests/test-utimens.c (main): Enhance test.
34352         * tests/test-lutimens.h (test_lutimens): New file.
34353         * modules/utimens-tests (Files): Distribute it.
34354         (Depends-on): Add symlink.
34355         (configure.ac): Check for usleep.
34356
34357         utimens: validate futimens usage
34358         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34359         fewer syscalls on failure later on.  Avoid compiler warning on
34360         mingw.
34361         * modules/utimens (Depends-on): Add dup2.
34362
34363         utimens: add test
34364         * modules/utimens-tests: New test.
34365         * tests/test-utimens.h: New file.
34366         * tests/test-futimens.h: Likewise.
34367         * tests/test-utimens.c: Likewise.
34368
34369         doc: mention timestamp portability issues
34370         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34371         instead.
34372         * doc/posix-functions/utime.texi (utime): Likewise.
34373         * doc/posix-functions/utimes.texi (utimes): Likewise.
34374         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34375         instead.
34376         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34377         module.
34378         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34379         Mention weakness with symlink timestamps.
34380         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34381         to utimensat/futimens instead.
34382         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34383
34384         test-dup2: enhance test
34385         * tests/test-dup2.c (main): Also check AT_FDCWD.
34386
34387         test-stat-time: avoid more spurious failures
34388         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34389         xfs; and avoid race if the two timestamps cross quantization edge.
34390
34391         relocatable: prefer 'file system' over 'filesystem'
34392         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34393         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34394         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34395         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34396         * lib/relocatable.c (compute_curr_prefix): Likewise.
34397
34398 2009-10-10  Jim Meyering  <meyering@redhat.com>
34399
34400         stat-time-tests: check for the usleep function
34401         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34402
34403 2009-10-10  Bruno Haible  <bruno@clisp.org>
34404
34405         * modules/xnanosleep: Put the Link section after the Include section.
34406
34407 2009-10-09  Eric Blake  <ebb9@byu.net>
34408
34409         dup2: work around FreeBSD 6.1 bug
34410         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34411         * doc/posix-functions/dup2.texi (dup2): Document it.
34412         Reported by Nelson H. F. Beebe and Jim Meyering.
34413
34414         test-stat-time: port to buggy NFS clients
34415         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34416         (test_ctime): Also skip test if mtime and ctime are skewed.
34417
34418         maint: prefer 'file system' over 'filesystem'
34419         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34420         * doc/posix-functions/lstat.texi (lstat): Likewise.
34421         * lib/file-has-acl.c (file_has_acl): Likewise.
34422         * lib/fwriteerror.c [TEST]: Likewise.
34423         * tests/test-areadlink.h (test_areadlink): Likewise.
34424         * tests/test-areadlinkat-with-size.c (main): Likewise.
34425         * tests/test-areadlinkat.c (main): Likewise.
34426         * tests/test-canonicalize-lgpl.c (main): Likewise.
34427         * tests/test-canonicalize.c (main): Likewise.
34428         * tests/test-fstatat.c (main): Likewise.
34429         * tests/test-linkat.c (main): Likewise.
34430         * tests/test-lstat.h (test_lstat_func): Likewise.
34431         * tests/test-mkdir.h (test_mkdir): Likewise.
34432         * tests/test-readlink.h (test_readlink): Likewise.
34433         * tests/test-remove.c (main): Likewise.
34434         * tests/test-rename.h (test_rename): Likewise.
34435         * tests/test-renameat.c (main): Likewise.
34436         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34437         * tests/test-symlink.h (test_symlink): Likewise.
34438         * tests/test-symlinkat.c (main): Likewise.
34439         * tests/test-unlink.h (test_unlink_func): Likewise.
34440         * tests/test-unlinkat.c (main): Likewise.
34441
34442         maint: make realtime library usage explicit
34443         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34444         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34445         * modules/settime (Link): Likewise.
34446         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34447
34448         test-stat-time: speed up execution
34449         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34450         warning on mingw.
34451         (nap): New helper function.
34452         (prepare_test): Use it to reduce sleep time.
34453         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34454         execution.
34455         * modules/stat-time-tests (configure.ac): Check for usleep.
34456
34457 2009-10-09  Jim Meyering  <meyering@redhat.com>
34458
34459         selinux-h: always use getfilecon wrappers
34460         * lib/getfilecon.c: New file.
34461         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34462         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34463         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34464         (fgetfilecon): Provide a stub.
34465         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34466         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34467         file unconditionally.
34468         When <selinux/selinux.h> is found, arrange to use wrappers.
34469         * modules/selinux-h (Files): Add getfilecon.c.
34470         (Makefile.am): Substitute include-next-related bits
34471         into the now-always-generated selinux/selinux.h file.
34472         * doc/glibc-functions/lgetfilecon.texi: New file.
34473         * doc/glibc-functions/fgetfilecon.texi: New file.
34474         * doc/glibc-functions/getfilecon.texi: New file.
34475         * doc/glibc-functions/getfilecon-desc.texi: New file.
34476         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34477         which to pull in the new files.
34478         * MODULES.html.sh (Misc): Add selinux-h.
34479
34480 2009-10-08  Jim Meyering  <meyering@redhat.com>
34481
34482         unistd: fix comment typo
34483         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34484
34485 2009-10-08  Eric Blake  <ebb9@byu.net>
34486
34487         areadlink: use SIZE_MAX consistently
34488         * modules/areadlink (Depends-on): Add stdint.
34489         * modules/areadlink-with-size (Depends-on): Likewise.
34490         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34491         gives NULL; drop sys/types, since unistd gives size_t; and add
34492         stdint for SIZE_MAX.
34493         (SIZE_MAX): Rely on headers.
34494         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34495         and add stdint.
34496         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34497         (SIZE_MAX): Likewise.
34498         (INITIAL_BUF_SIZE): Turn into enum.
34499         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34500
34501 2009-10-08  Jim Meyering  <meyering@redhat.com>
34502
34503         areadlinkat: avoid compilation failure
34504         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34505         Fix typo in comment.
34506
34507 2009-10-07  Eric Blake  <ebb9@byu.net>
34508
34509         areadlinkat-with-size: new module
34510         * modules/areadlinkat-with-size: New module.
34511         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34512         * lib/areadlink.h (areadlinkat): Declare it.
34513         * MODULES.html.sh (File system functions): Mention it.
34514         * modules/areadlinkat-with-size-tests: New test.
34515         * tests/test-areadlinkat-with-size.c: New file.
34516
34517         xreadlinkat: new module
34518         * modules/xreadlinkat: New module.
34519         * lib/xreadlinkat.c (xreadlinkat): New file.
34520         * lib/xreadlink.h (xreadlinkat): Declare it.
34521         * MODULES.html.sh (File system functions): Mention it.
34522
34523         areadlinkat: new module
34524         * lib/at-func.c (FUNC_FAIL): New define.
34525         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34526         * modules/areadlinkat: New module.
34527         * lib/linkat.c (areadlinkat): Move...
34528         * lib/areadlinkat.c (areadlinkat): ...to new file.
34529         * lib/areadlink.h (areadlinkat): Declare it.
34530         * modules/linkat (Depends-on): Add areadlinkat.
34531         * MODULES.html.sh (File system functions): Mention it.
34532         * modules/areadlinkat-tests: New test.
34533         * tests/test-areadlinkat.c: New file.
34534
34535         areadlink, areadlink-with-size: add tests
34536         * modules/areadlink-tests: New test.
34537         * modules/areadlink-with-size-tests: Likewise.
34538         * tests/test-areadlink.h: New file.
34539         * tests/test-areadlink.c: Likewise.
34540         * tests/test-areadlink-with-size.c: Likewise.
34541
34542         maint: minor cleanups
34543         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34544         _UNUSED_PARAMETER_ instead.
34545         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34546         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34547         * modules/linkat-tests (Files): Distribute test-link.h.
34548
34549         openat, utimens: whitespace cleanup
34550         * lib/openat.c: Prefer space throughout, rather than mix of 8
34551         spaces vs. tabs.
34552         * lib/at-func.c: Likewise.
34553         * lib/utimens.c: Likewise.
34554
34555         openat: avoid using wrong fd
34556         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34557         working directory chooses same fd.
34558         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34559
34560         mkdir, mkdirat: fix cygwin 1.5.x bug
34561         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34562         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34563         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34564         bug.
34565         (gl_PREREQ_MKDIR): Delete unused macro.
34566         * modules/mkdir (Files): Track file rename.
34567         (configure.ac): Update macro name.
34568         * modules/openat (Depends-on): Add mkdir.
34569         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34570
34571         mkdir, mkdirat: add tests
34572         * modules/mkdir-tests: New test.
34573         * tests/test-mkdir.h: New file.
34574         * tests/test-mkdir.c: Likewise.
34575         * tests/test-mkdirat.c: Likewise.
34576         * modules/openat-tests (Files): Add new files.
34577         (Makefile.am): Run new test.
34578
34579 2009-10-06  Eric Blake  <ebb9@byu.net>
34580
34581         doc: tweak *at function documentation
34582         * doc/posix-functions/faccessat.texi (faccessat): Mention
34583         known issue with replacement.
34584         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34585         * doc/posix-functions/linkat.texi (linkat): Likewise.
34586         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34587         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34588         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34589         * doc/posix-functions/renameat.texi (renameat): Likewise.
34590         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34591
34592         openat: fix GNU/Hurd bug in unlinkat
34593         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34594         broken.
34595         * doc/posix-functions/unlink.texi (unlink): Document this.
34596         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34597
34598         fdopendir: fix GNU/Hurd bug
34599         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34600         allowing non-directory fds.
34601         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34602         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34603         * modules/dirent (Makefile.am): Substitute it.
34604         * lib/dirent.in.h (fdopendir): Declare replacement.
34605         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34606         * tests/test-fdopendir.c (main): Test something other than
34607         /dev/null, since on Hurd that behaves like a directory.
34608
34609         test-symlink: port to GNU/Hurd
34610         * tests/test-symlink.h (test_symlink): Relax expected errno.
34611
34612         doc: tweak more cygwin information
34613         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34614         now compatible with glibc.
34615         * doc/posix-functions/getopt.texi (getopt): Likewise.
34616
34617         getopt-gnu: add another test
34618         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34619         guarantee behavior relied on by m4.
34620         * tests/test-getopt.c (main): Use it.
34621         * modules/getopt-posix-tests (Depends-on): Add setenv.
34622         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34623
34624         getopt: fix compilation on darwin
34625         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34626         include.
34627         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34628         Reported by Ludovic Courtès.
34629
34630 2009-10-06  Bruno Haible  <bruno@clisp.org>
34631
34632         * modules/size_max (Description): Discourage its use.
34633         Reported by Simon Josefsson.
34634
34635 2009-10-06  Jim Meyering  <meyering@redhat.com>
34636
34637         linkat: avoid compilation failure
34638         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34639
34640 2009-10-05  Eric Blake  <ebb9@byu.net>
34641
34642         linkat: support Linux 2.6.17
34643         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34644         linkat on Linux, but allow cache variable override.
34645         * lib/linkat.c (rpl_linkat): Define override.
34646         * modules/linkat (Depends-on): Add symlinkat.
34647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34648         * modules/unistd (Makefile.am): Substitute it.
34649         * lib/unistd.in.h (linkat): Declare replacement.
34650         Reported by Pádraig Brady.
34651
34652         quotearg: port test to systems with C.UTF-8 locale
34653         * tests/test-quotearg.c (struct result_strings): Add another
34654         member, differentiating between C.ASCII and C.UTF-8 handling.
34655         (compare_strings): Add parameter.
34656         (main): Adjust all callers.
34657
34658         getopt: avoid clash with FreeBSD _getopt_internal
34659         * lib/getopt.in.h (_getopt_internal): Override the name.
34660         * lib/getopt_int.h (includes): Pick up any overrides.
34661         Reported by Reuben Thomas.
34662
34663         hash: allow C89 compilation
34664         * lib/hash.c (check_tuning): Move declaration before statement.
34665         Reported by Reuben Thomas.
34666
34667 2009-10-05  Karl Berry  <karl@gnu.org>
34668
34669         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34670
34671 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34672             Bruno Haible  <bruno@clisp.org>
34673
34674         * lib/uname.c (uname): Use a table-driven algorithm to compute
34675         Windows NT versions.
34676
34677 2009-10-04  Bruno Haible  <bruno@clisp.org>
34678
34679         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34680         program_invocation_short_name.
34681         * modules/progname (configure.ac): Test for presence of
34682         program_invocation_short_name.
34683         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34684
34685 2009-10-04  Bruno Haible  <bruno@clisp.org>
34686
34687         * lib/progname.c (set_program_name): Fix comment.
34688         Reported by Jim Meyering.
34689
34690 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34691             Bruno Haible  <bruno@clisp.org>
34692
34693         * lib/uname.c: Include <string.h>.
34694         (uname): Do only one call to GetVersionEx in the common case.
34695
34696 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34697             Bruno Haible  <bruno@clisp.org>
34698
34699         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34700         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34701         (uname): Add support for Windows CE and various non-x86 CPU types.
34702
34703 2009-10-03  Bruno Haible  <bruno@clisp.org>
34704
34705         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34706         invocation to tests/configure.ac.
34707         Reported by Ian Beckwith <ianb@erislabs.net>.
34708
34709 2009-10-02  Eric Blake  <ebb9@byu.net>
34710
34711         fchdir: avoid compiler warning
34712         * lib/fchdir.c (canonicalize_file_name)
34713         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34714
34715         test-open: support mingw errno values
34716         * tests/test-open.h (test_open): Relax test.
34717         * tests/test-fopen.h (test_fopen): Likewise.
34718         * tests/test-openat-safer.c (main): Likewise.
34719
34720         open: fix opening directory on mingw
34721         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34722
34723         test-open: on GNU/Hurd, /dev/null is a directory
34724         * tests/test-fopen.h (main): Rename...
34725         (test_fopen): ...to this.  Use a guaranteed non-directory when
34726         confirming open behavior on trailing slash.
34727         * tests/test-openat-safer.c (main): Likewise.
34728         * tests/test-open.h (main): Likewise....
34729         (test_open): ...to this.
34730         * tests/test-fopen.c (main): Adjust caller.
34731         * tests/test-fopen-safer.c (main): Likewise.
34732         * tests/test-open.c (main): Likewise.
34733         * tests/test-fcntl-safer.c (main): Likewise.
34734         Reported by Samuel Thibault.
34735
34736         rename, fchdir: don't ignore chdir failure
34737         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34738         * lib/rename.c (rpl_rename) [W32]: Likewise.
34739         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34740         an empty destination directory if source cannot be renamed,
34741         although there is still possibility for failure.
34742         * doc/posix-functions/rename.texi (rename): Document the race.
34743         Reported by Jim Meyering.
34744
34745         maint: cleanup whitespace in recent commits
34746         * lib/rename.c (rpl_rename): Remove tabs.
34747         * tests/test-link.h (test_link): Likewise.
34748         * lib/fchdir.c (get_name): Likewise.
34749         Reported by Jim Meyering.
34750
34751 2009-10-02  Ben Pfaff  <blp@gnu.org>
34752
34753         relocatable-prog-wrapper: Add missing dependency on
34754         double-slash-root.
34755         * modules/relocatable-prog-wrapper: Add dependency.
34756         Reported by Ian Beckwith <ianb@erislabs.net>.
34757
34758 2009-10-02  Eric Blake  <ebb9@byu.net>
34759
34760         renameat: fix Solaris bugs
34761         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34762         needed fixing.
34763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34764         * modules/stdio (Makefile.am): Substitute it.
34765         * lib/stdio.in.h (renameat): Declare replacement.
34766         * lib/renameat.c (rpl_renameat): Implement fix.
34767
34768         renameat: new module
34769         * modules/renameat: New file.
34770         * lib/renameat.c (renameat): Likewise.
34771         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34773         * modules/stdio (Makefile.am): Substitute them.
34774         * lib/stdio.in.h (renameat): Declare it.
34775         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34776         * doc/posix-functions/renameat.texi (renameat): Likewise.
34777         * modules/renameat-tests: New test.
34778         * tests/test-renameat.c: Likewise.
34779
34780         rename: fix mingw bugs
34781         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34782         directory overwrite bugs.
34783
34784         rename: fix another cygwin 1.5 bug
34785         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34786         checks.
34787         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34788         unnecessary cygwin workarounds.  Also work around bug with moving
34789         full directory onto an empty one.
34790         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34791
34792         rename-dest-slash: merge into rename module
34793         * modules/rename-dest-slash (Status): Mark obsolete.
34794         (Depends-on): Add rename.
34795         (Files): Let rename do it all.
34796         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34797         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34798         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34799         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34800         * lib/rename.c (rpl_rename): Update comments.
34801
34802         rename: fix cygwin 1.5.x bugs
34803         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34804         * lib/rename.c (rpl_rename): Work around them.
34805         * modules/rename (Depends-on): Add same-inode.
34806
34807         rename: fix Solaris 10 bug
34808         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34809         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34810         was the only bug.
34811
34812         rename: fix Solaris 9 bug
34813         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34814         on non-directory.  Avoid calling exit.
34815         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34816         strdup.
34817         * modules/rename-tests (Depends-on): Drop lstat.
34818         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34819         (gl_PREREQ_RENAME): Delete unused macro.
34820
34821         rename-dest-slash: fix NetBSD bug
34822         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34823         links.
34824         * modules/rename-dest-slash (Depends-on): Add same-inode.
34825
34826         rename-tests: new test, exposes several platform bugs
34827         * modules/rename-tests: New file.
34828         * tests/test-rename.h: Likewise.
34829         * tests/test-rename.c: Likewise.
34830         * doc/posix-functions/rename.texi (rename): Improve documentation,
34831         including bugs that will eventually be fixed in gnulib.
34832
34833 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34834
34835         * lib/uname.c: Include <stdlib.h>
34836         (uname): Assume version info is available.
34837
34838 2009-10-02  Jim Meyering  <meyering@redhat.com>
34839
34840         gnu-web-doc-update: correct --help output
34841         * build-aux/gnu-web-doc-update: Make --help output relevant.
34842
34843         gnu-web-doc-update: add standard options
34844         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34845
34846         gnu-web-doc-update: New module.
34847         Use this script to automatically update the on-line web documentation
34848         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34849         * modules/gnu-web-doc-update: New file, from coreutils.
34850         * build-aux/gnu-web-doc-update: New script.
34851
34852 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34853
34854         link: LoadLibrary is not needed.
34855         * lib/link.c: Use GetModuleHandle.
34856
34857 2009-10-01  Eric Blake  <ebb9@byu.net>
34858
34859         getopt: bump serial number
34860         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34861         change.
34862
34863         tests: tighten link, rmdir, and remove tests
34864         * tests/test-link.h (includes): No need to use <config.h> here.
34865         Clean up if directory hard link was created, otherwise test for
34866         trailing '.'.
34867         * tests/test-linkat.c (main): Simplify.
34868         * tests/test-remove.c (main): Enhance test for trailing '.'.
34869         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34870
34871 2009-10-01  Jim Meyering  <meyering@redhat.com>
34872
34873         maint.mk: requiring "make major" was annoying, for a "minor" release.
34874         What is intended is "stable", to contrast with alpha and beta,
34875         so require "make stable", not "make major".
34876         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34877         (get_tool_versions): Likewise.
34878         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34879
34880 2009-09-30  Ben Pfaff  <blp@gnu.org>
34881
34882         Fix broken build of replacement for Windows tmpfile().
34883         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34884         flags argument added along with the 'mkostemp' module.
34885
34886 2009-09-28  Bruno Haible  <bruno@clisp.org>
34887
34888         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34889         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34890         to 'remove_elt'.
34891         (gl_list_remove): Update.
34892         * lib/gl_list.c (gl_list_remove): Update.
34893         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34894         to 'remove_elt'.
34895         (gl_oset_remove): Update.
34896         * lib/gl_list.c (gl_oset_remove): Update.
34897         Reported by Eric Blake.
34898
34899 2009-09-28  Eric Blake  <ebb9@byu.net>
34900
34901         doc: mention yet more cygwin 1.7 status
34902         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34903         cygwin.
34904         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34905         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34906
34907         argp: fix test failure
34908         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34909         that are not upper-case.  Pass correct range to tolower.
34910
34911 2009-09-27  Jim Meyering  <meyering@redhat.com>
34912
34913         test-yesno: work around sparc-dash here-document infelicity
34914         Without this change, the literal \177 byte in a here document
34915         would make dash 0.5.5.1-3 access uninitialized memory.
34916         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34917         Instead, use a marker, "@", and filter through tr to create the desired
34918         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34919
34920 2009-09-27  Bruno Haible  <bruno@clisp.org>
34921
34922         Disable untested support for new flavours of ACLs on AIX.
34923         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34924         progress.
34925         * lib/set-mode-acl.c (qset_acl): Likewise.
34926
34927 2008-12-07  Bruno Haible  <bruno@clisp.org>
34928
34929         Add support for new flavours of ACLs on AIX. (Untested.)
34930         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34931         (file_has_acl): Add support for newer AIX.
34932         * lib/set-mode-acl.c (qset_acl): Likewise.
34933         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34934         Rainer Tammer <tammer@tammer.net>.
34935
34936 2009-09-26  Eric Blake  <ebb9@byu.net>
34937
34938         argp: fix compilation of getopt
34939         * lib/getopt.in.h (includes): Use different guard than glibc.
34940         Reported by Sergey Poznyakoff.
34941
34942         doc: mention more cygwin 1.7 status
34943         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34944         bug.
34945         * doc/posix-functions/execl.texi (execl): Likewise.
34946         * doc/posix-functions/execle.texi (execle): Likewise.
34947         * doc/posix-functions/execlp.texi (execlp): Likewise.
34948         * doc/posix-functions/execv.texi (execv): Likewise.
34949         * doc/posix-functions/execve.texi (execve): Likewise.
34950         * doc/posix-functions/execvp.texi (execvp): Likewise.
34951         * doc/glibc-functions/canonicalize_file_name.texi
34952         (canonicalize_file_name): Cygwin 1.7 now provides this.
34953         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34954         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34955         on AT_SYMLINK_NOFOLLOW.
34956
34957 2009-09-24  Eric Blake  <ebb9@byu.net>
34958
34959         test-linkat: make test more robust
34960         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34961
34962         getopt: fix inclusion guards for cygwin
34963         * modules/getopt-posix (Depends-on): Add include-next.
34964         (Makefile.am): Substitute more items in replacement header.
34965         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34966         <getopt.h>.
34967         * lib/getopt.in.h (includes): Use split inclusion guard, and
34968         prefer <getopt.h> over include <unistd.h> when one is present.
34969         (option): Also override name of 'struct option'.
34970
34971         same-inode: revert prior change; it is not yet ready
34972         * NEWS: Undo mention of this change.
34973         * lib/same-inode.h (same-inode.h): Undo tri-state change.
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         * lib/at-func2.c (at_func2): Likewise.
34978
34979 2009-09-23  Eric Blake  <ebb9@byu.net>
34980
34981         linkat: new module
34982         * modules/linkat: New file.
34983         * lib/at-func2.c (at_func2): Likewise.
34984         * lib/linkat.c (linkat): Likewise.
34985         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34986         * lib/openat-priv.h (at_func2): Add declaration.
34987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34988         * modules/unistd (Makefile.am): Substitute them.
34989         * lib/unistd.in.h (linkat): Declare it.
34990         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34991         * doc/posix-functions/linkat.texi (linkat): Likewise.
34992         * doc/posix-functions/link.texi (link): Tweak wording.
34993         * tests/test-link.c (main): Move guts...
34994         * tests/test-link.h (test_link): ...into new file.
34995         * modules/linkat-tests: New test.
34996         * tests/test-linkat.c: Likewise.
34997         * modules/link-tests (Files): Ship new file.
34998         (Depends-on): Add stdbool.
34999
35000         dirname: add library-safe mdir_name
35001         * lib/dirname.h (mdir_name): New prototype.
35002         * lib/dirname.c (dir_name): Move guts...
35003         (mdir_name): ...to new function that avoids xalloc_die.
35004
35005         fchdir: another mingw fix
35006         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35007         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35008         on mingw (where it has not yet been ported), and make it optional
35009         elsewhere.
35010         (_gl_register_fd): Use it.
35011
35012         same-inode: make SAME_INODE tri-state, to port to mingw
35013         * NEWS: Mention this change.
35014         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35015         st_ino always being 0.
35016         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35017         * lib/cycle-check.c (cycle_check): Likewise.
35018         * lib/same.c (same_name): Likewise.
35019
35020         lstat: avoid mingw compilation error
35021         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35022         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35023         lstat ourselves.
35024         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35025         was adequate.
35026         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35027         the checks for lstat.
35028         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35029
35030         link: fix test failure on Solaris 9
35031         * lib/link.c (rpl_link): Don't assume link will catch bogus
35032         trailing slash on source.
35033
35034         test-symlinkat: enhance test
35035         * tests/test-readlink.c (main): Move guts...
35036         * tests/test-readlink.h (test_readlink): ...into new file.
35037         * tests/test-symlink.c (main): Move guts...
35038         * tests/test-symlink.h (test_symlink): ...into new file.
35039         * tests/test-symlinkat.c (main): Use new files for further
35040         coverage.
35041         (do_symlink, do_readlink): New helper functions.
35042         * modules/symlink-tests (Files): Ship new file.
35043         (Depends-on): Add stdbool.
35044         * modules/readlink-tests (Files): Ship new file.
35045         (Depends-on): Add stdbool.
35046         * modules/symlinkat-tests (Files): Use new files.
35047
35048 2009-09-23  Eric Blake  <ebb9@byu.net>
35049
35050         readlink: document portability issue with symlink length
35051         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35052         systems have bogus st_size on symlinks, and mention the
35053         areadlink-with-size module.
35054         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35055         * doc/posix-functions/readlink.texi (readlink): Mention the
35056         areadlink module, and ERANGE failure.
35057         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35058         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35059
35060         readlink: fix Solaris 9 bug with trailing slash
35061         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35062         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35063         * doc/posix-functions/readlink.texi (readlink): Document this.
35064         * modules/readlink-tests: New test.
35065         * tests/test-readlink.c: Likewise.
35066
35067         readlink: fix cygwin 1.5.x bug with return type
35068         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35069         * lib/unistd.in.h (readlink): Use ssize_t.
35070         * lib/readlink.c (readlink): Likewise.
35071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35072         * modules/unistd (Makefile.am): Substitute it.
35073         * lib/unistd.in.h (readlink): Declare replacement.
35074         * doc/posix-functions/readlink.texi (readlink): Document this.
35075
35076         symlink: use throughout gnulib
35077         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35078         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35079         symlink is not used.
35080         * modules/symlinkat (Depends-on): Add symlink.
35081         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35082         * modules/canonicalize-tests (Depends-on): Likewise.
35083         * modules/lstat-tests (Depends-on): Likewise.
35084         * modules/openat-tests (Depends-on): Likewise.
35085         * modules/remove-tests (Depends-on): Likewise.
35086         * modules/rmdir-tests (Depends-on): Likewise.
35087         * modules/unlink-tests (Depends-on): Likewise.
35088         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35089         * tests/test-canonicalize.c (symlink): Likewise.
35090         * tests/test-fstatat.c (symlink): Likewise.
35091         * tests/test-lstat.c (symlink): Likewise.
35092         * tests/test-remove.c (symlink): Likewise.
35093         * tests/test-rmdir.c (symlink): Likewise.
35094         * tests/test-unlink.c (symlink): Likewise.
35095         * tests/test-unlinkat.c (symlink): Likewise.
35096
35097         symlink: new module, for Solaris 9 bug
35098         * modules/symlink: New file.
35099         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35100         * lib/symlink.c: Likewise.
35101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35102         * modules/unistd (Makefile.am): Substitute them.
35103         * lib/unistd.in.h (symlink): Declare replacement.
35104         * MODULES.html.sh (File system functions): Mention it.
35105         * doc/posix-functions/symlink.texi (symlink): Likewise.
35106         * modules/symlink-tests: New test.
35107         * tests/test-symlink.c: Likewise.
35108
35109 2009-09-23  Bruno Haible  <bruno@clisp.org>
35110
35111         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35112         when needed.
35113         Test case: gnulib-tool --import --with-tests atexit inttypes.
35114         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35115
35116 2009-09-23  Bruno Haible  <bruno@clisp.org>
35117
35118         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35119         subcommand, not in a subshell.
35120
35121 2009-09-22  Eric Blake  <ebb9@byu.net>
35122
35123         unistd: sort replacement declarations
35124         * lib/unistd.in.h: Sort declarations.
35125
35126         open, openat: minor optimization
35127         * lib/open.c (open): If open succeeded, len is non-zero.
35128         * lib/openat.c (rpl_openat): Likewise.
35129
35130         link-follow: ensure correct result
35131         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35132         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35133         distinguish between possible failures.
35134
35135 2009-09-21  Eric Blake  <ebb9@byu.net>
35136
35137         fts: avoid compiler warning
35138         * lib/fts.c (dirent_inode_sort_may_be_useful)
35139         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35140
35141 2009-09-19  Bruno Haible  <bruno@clisp.org>
35142
35143         * lib/progreloc.c (canonicalize_file_name): New declaration.
35144
35145 2009-09-19  Eric Blake  <ebb9@byu.net>
35146
35147         link: fix quoting
35148         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35149
35150         openat: fix openat bugs on Solaris 9
35151         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35152         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35153         * modules/openat (Depends-on): Add open.
35154         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35155         * modules/fcntl-h (Makefile.am): Substitute it.
35156         * lib/fcntl.in.h (openat): Declare replacement.
35157         * doc/posix-functions/openat.texi (openat): Document this.
35158
35159         openat: move fstatat and unlinkat into correct files
35160         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35161         compiled.
35162         * lib/openat.c (fstatat, unlinkat): Move...
35163         * lib/fstatat.c (fstatat): ...into correct files.
35164         * lib/unlinkat.c (unlinkat): Likewise.
35165
35166         openat: fix unlinkat bugs on Solaris 9
35167         * lib/unlinkat.c (unlinkat): New file.
35168         * modules/openat (Depends-on): Add unlink.
35169         (Files): Distribute it.
35170         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35171         trailing slash behavior is broken.
35172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35173         * modules/unistd (Makefile.am): Substitute it.
35174         * lib/unistd.in.h (unlinkat): Declare replacement.
35175         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35176
35177         openat: fix fstatat bugs on Solaris 9
35178         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35179         stat.
35180         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35181
35182         test-unlinkat: enhance test, to expose Solaris 9 bug
35183         * tests/test-unlink.c (main): Factor guts...
35184         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35185         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35186         * tests/test-rmdir.c (main): Adjust caller.
35187         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35188         (unlinker): New helper function.
35189         (rmdirat): Enhance check.
35190         * modules/rmdir-tests (Depends-on): Add stdbool.
35191         * modules/unlink-tests (Depends-on): Likewise.
35192         (Files): Add test-unlink.h.
35193         * modules/openat-tests (Files): Likewise.
35194         (Depends-on): Add unlinkdir.
35195
35196         test-fstatat: new test, to expose Solaris 9 bugs
35197         * tests/test-stat.c (main): Factor guts...
35198         * tests/test-stat.h (test_stat_func): ...into new file.
35199         * tests/test-lstat.c (main): Factor guts...
35200         * tests/test-lstat.h (test_lstat_func): ...into new file.
35201         * tests/test-fstatat.c: New file.
35202         * modules/stat-tests (Files): Add test-stat.h.
35203         * modules/lstat-tests (Files): Add test-lstat.h.
35204         (Depends-on): Add stdbool.
35205         * modules/openat-tests (Depends-on): Add pathmax.
35206         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35207         (Makefile.am): Run new test.
35208
35209         remove: new module, for mingw and Solaris 9 bugs
35210         * modules/remove: New file.
35211         * lib/remove.c: Likewise.
35212         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35214         * modules/stdio (Makefile.am): Use them.
35215         * lib/stdio.in.h (remove): Declare replacement.
35216         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35217         * doc/posix-functions/remove.texi (remove): Likewise.
35218         * modules/remove-tests: New test.
35219         * tests/test-remove.c: Likewise.
35220
35221         unlink: new module, for Solaris 9 bug
35222         * modules/unlink: New file.
35223         * lib/unlink.c: Likewise.
35224         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35226         * modules/unistd (Makefile.am): Use them.
35227         * lib/unistd.in.h (stat): Declare replacement.
35228         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35229         * doc/posix-functions/unlink.texi (unlink): Likewise.
35230         * modules/unlink-tests: New test.
35231         * tests/test-unlink.c: Likewise.
35232
35233         lstat: fix Solaris 9 bug
35234         * lib/lstat.c (lstat): Also check for trailing slash on
35235         non-symlink, non-directories.  Use stat module to simplify logic.
35236         * doc/posix-functions/lstat.texi (lstat): Document it.
35237         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35238         (configure.ac): Check for symlink.
35239         * tests/test-lstat.c (main): Add more tests.
35240
35241         stat: add as dependency to other modules
35242         * modules/chown (Depends-on): Add stat.
35243         * modules/euidaccess (Depends-on): Likewise.
35244         * modules/fchdir (Depends-on): Likewise.
35245         * modules/isdir (Depends-on): Likewise.
35246         * modules/link (Depends-on): Likewise.
35247         * modules/lstat (Depends-on): Likewise.
35248         * modules/mkdir-p (Depends-on): Likewise.
35249         * modules/modechange (Depends-on): Likewise.
35250         * modules/open (Depends-on): Likewise.
35251         * modules/readlink (Depends-on): Likewise.
35252         * modules/same (Depends-on): Likewise.
35253
35254         stat: fix Solaris 9 bug
35255         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35256         slash.
35257         * lib/stat.c (rpl_stat): Work around it.
35258         * doc/posix-functions/stat.texi (stat): Update documentation.
35259
35260         stat: new module, for mingw bug
35261         * modules/stat: New file.
35262         * lib/stat.c: Likewise.
35263         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35264         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35265         * modules/sys_stat (Makefile.am): Use them.
35266         * lib/sys_stat.in.h (stat): Declare replacement.
35267         * lib/openat.c (fstatat): Deal with lstat and stat being function
35268         macros.
35269         * modules/openat (Depends-on): Add inline.
35270         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35271         * doc/posix-functions/stat.texi (stat): Likewise.
35272         * modules/stat-tests: New test.
35273         * tests/test-stat.c: Likewise.
35274
35275 2009-09-19  Jim Meyering  <meyering@redhat.com>
35276
35277         syntax-check: detect unnecessary inclusion of canonicalize.h
35278         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35279
35280 2009-09-19  Eric Blake  <ebb9@byu.net>
35281
35282         canonicalize-lgpl: adjust clients to use correct header
35283         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35284         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35285         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35286         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35287         * lib/progreloc.c (includes): Likewise.
35288
35289 2009-09-19  Jim Meyering  <meyering@redhat.com>
35290
35291         test-posixtm.c: correct a comment
35292         * tests/test-posixtm.c: Correct first-line comment.
35293         Spotted by Eric Blake.
35294
35295 2009-09-16  Jim Meyering  <meyering@redhat.com>
35296
35297         posixtm-tests: make T const-correct; add a test case
35298         * tests/test-posixtm.c (T): Declare const.
35299         Add a test for -(2^31+1).
35300         Remove useless can-succeed-only-in-2002 test.
35301
35302         posixtm-tests: adjust the sole failing test
35303         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35304         expected output matches what mktime now produces.  Cross-checked via
35305         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35306
35307         posixtm: move #ifdef'd tests into a new module
35308         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35309         * tests/test-posixtm.c: ... this new file.
35310         * modules/posixtm-tests: New module.
35311
35312 2009-09-19  Eric Blake  <ebb9@byu.net>
35313
35314         openat: simplify use of at-func.c
35315         * lib/at-func.c (includes): Include prerequisites here, to
35316         simplify requirements on client files.
35317         * lib/openat-priv.h: Add double-inclusion guard.
35318         * lib/faccessat.c (includes): Simplify.
35319         * lib/fchmodat.c (includes): Likewise.
35320         * lib/fchownat.c (includes): Likewise.
35321         * lib/mkdirat.c (includes): Likewise.
35322         * lib/mkfifoat.c (includes): Likewise.
35323         * lib/symlinkat.c (includes): Likewise.
35324
35325         openat: allow return of fd 0
35326         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35327         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35328         unistd-safer.
35329         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35330         <fcntl.h>; this module does not leak fds.
35331         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35332         must be allowed to return 0, leaving openat_safer to add the
35333         safety.
35334         (openat_permissive): Avoid writing to just-opened fd 2 if
35335         restoring the current directory fails.
35336         * lib/openat-die.c (openat_restore_fail): Add comment.
35337         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35338         (save_cwd): Guarantee safe fd, but without use of open_safer.
35339         * tests/test-openat.c: New test.
35340         * modules/openat-tests (Files, Makefile.am): Distribute and build
35341         new file.
35342
35343         relocatable-prog-wrapper: fix build
35344         * modules/relocatable-prog-wrapper (Files): Update name of
35345         canonicalize m4 file, broken on 2009-09-17.
35346         Reported by emad hajjar <aleppos@hotmail.com>.
35347
35348 2009-09-19  Bruno Haible  <bruno@clisp.org>
35349
35350         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35351         * lib/safe-alloc.c: Likewise.
35352         Reported by Ian Beckwith <ianb@erislabs.net>.
35353
35354 2009-09-18  Bruno Haible  <bruno@clisp.org>
35355
35356         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35357         Reported by <erobles@sensacd.com.mx>.
35358
35359 2009-09-17  Eric Blake  <ebb9@byu.net>
35360
35361         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35362         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35363         slashes when checking if last component is missing.
35364         * tests/test-canonicalize.c (main): Test this.
35365
35366         canonicalize, canonicalize-lgpl: honor // if distinct from /
35367         * modules/canonicalize (Files): Add double-slash-root.m4.
35368         * modules/canonicalize-lgpl (Files): Likewise.
35369         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35370         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35371         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35372         fallback definition.
35373         (canonicalize_filename_mode): Use it to protect //.
35374         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35375         (__realpath): Likewise.
35376         * tests/test-canonicalize.c (main): Test this.
35377         * tests/test-canonicalize-lgpl.c (main): Likewise.
35378         * modules/canonicalize-tests (Depends-on): Add same-inode.
35379         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35380
35381         canonicalize-lgpl: fix glibc bug with trailing slash
35382         * m4/canonicalize-lgpl.m4: Move contents...
35383         * m4/canonicalize.m4: ...here.
35384         (gl_CANONICALIZE_LGPL): Factor realpath check...
35385         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35386         glibc 2.3.5 bug, fixed 2005-04-27.
35387         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35388         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35389         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35390         * modules/canonicalize-lgpl (Files): Manage file rename.
35391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35392         * modules/stdlib (Makefile.am): Substitute witness.
35393         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35394         is needed.
35395         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35396         replacement is required.
35397         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35398         * doc/glibc-functions/canonicalize_file_name.texi
35399         (canonicalize_file_name): Document this.
35400         * doc/posix-functions/realpath.texi (realpath): Likewise.
35401
35402         canonicalize-lgpl: reject non-directory with trailing slash
35403         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35404         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35405         catches failures in glibc 2.3.5.
35406         * tests/test-canonicalize.c (main): Likewise.
35407
35408         canonicalize-lgpl: use native realpath if it works
35409         * lib/canonicalize-lgpl.c (realpath): Guard with
35410         FUNC_REALPATH_WORKS.
35411         * lib/stdlib.in.h (realpath): Make declaration optional based on
35412         HAVE_REALPATH.
35413         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35414         native realpath works.
35415         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35416         * modules/stdlib (Makefile.am): Substitute witness.
35417
35418         canonicalize, canonicalize-lgpl: use <stdlib.h>
35419         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35420         (Include): Mention <stdlib.h>.
35421         (configure.ac): Mention functions we provide.
35422         * modules/canonicalize (configure.ac): Likewise.
35423         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35424         realpath if canonicalize_file_name is missing.
35425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35426         * modules/stdlib (Makefile.am): Substitute witnesses.
35427         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35428         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35429         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35430         * NEWS: Document this.
35431         * doc/glibc-functions/canonicalize_file_name.texi
35432         (canonicalize_file_name): Likewise.
35433         * doc/posix-functions/realpath.texi (realpath): Likewise.
35434         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35435
35436         test-canonicalize: consolidate into single C program
35437         * tests/test-canonicalize.sh: Delete; move setup into...
35438         * tests/test-canonicalize.c (main): ...the program, making it
35439         easier to run in debugger.  Add some tests.
35440         * modules/canonicalize-tests (Files): Remove unused file.
35441         (Depends-on): Add progname.
35442         (configure.ac, Makefile.am): Simplify.
35443
35444         test-canonicalize-lgpl: consolidate into single C program
35445         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35446         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35447         easier to run in debugger.  Add some tests.
35448         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35449         (configure.ac, Makefile.am): Simplify.
35450
35451         canonicalize: avoid resolvepath
35452         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35453         unnecessary checks.
35454         * lib/canonicalize.c (includes): Simplify.
35455         (canonicalize_file_name): Drop resolvepath implementation.
35456         * modules/canonicalize (Depends-on): Drop filenamecat.
35457
35458         canonicalize: don't lose errno
35459         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35460         over calls to free.
35461
35462         canonicalize: simplify errno handling
35463         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35464         assignment.
35465
35466         canonicalize, canonicalize-lgpl: update module dependencies
35467         * modules/canonicalize (Depends-on): Add extensions, lstat,
35468         pathmax, stdlib.
35469         (Files): Drop pathmax.h.
35470         (configure.ac): Adjust macro name.
35471         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35472         lstat, stdlib, sys_stat.
35473         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35474         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35475         extensions.
35476         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35477         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35478         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35479         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35480         declaration, if available.
35481         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35482         we can rely on the readlink module.
35483         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35484         (includes): Use <unistd.h> unconditionally.
35485
35486 2009-09-17  Eric Blake  <ebb9@byu.net>
35487
35488         maint: make Include sections of modules consistent
35489         * modules/alloca: Use only header name; no need to list #include.
35490         * modules/alloca-opt: Likewise.
35491         * modules/arpa_inet: Likewise.
35492         * modules/canon-host: Likewise.
35493         * modules/configmake: Likewise.
35494         * modules/dirent: Likewise.
35495         * modules/eealloc: Likewise.
35496         * modules/environ: Likewise.
35497         * modules/fchdir: Likewise.
35498         * modules/fcntl: Likewise.
35499         * modules/fcntl-h: Likewise.
35500         * modules/gethrxtime: Likewise.
35501         * modules/gettime: Likewise.
35502         * modules/ignore-value: Likewise.
35503         * modules/inet_ntop: Likewise.
35504         * modules/inet_pton: Likewise.
35505         * modules/inttypes: Likewise.
35506         * modules/isnand-nolibm: Likewise.
35507         * modules/isnanf-nolibm: Likewise.
35508         * modules/mbchar: Likewise.
35509         * modules/mbfile: Likewise.
35510         * modules/mbiter: Likewise.
35511         * modules/mbuiter: Likewise.
35512         * modules/netdb: Likewise.
35513         * modules/netinet_in: Likewise.
35514         * modules/nproc: Likewise.
35515         * modules/pagealign_alloc: Likewise.
35516         * modules/poll: Likewise.
35517         * modules/printf-frexp: Likewise.
35518         * modules/pthread: Likewise.
35519         * modules/putenv: Likewise.
35520         * modules/random_r: Likewise.
35521         * modules/relocatable-prog: Likewise.
35522         * modules/search: Likewise.
35523         * modules/select: Likewise.
35524         * modules/selinux-h: Likewise.
35525         * modules/settime: Likewise.
35526         * modules/signal: Likewise.
35527         * modules/size_max: Likewise.
35528         * modules/socklen: Likewise.
35529         * modules/ssize_t: Likewise.
35530         * modules/stdarg: Likewise.
35531         * modules/stdbool: Likewise.
35532         * modules/stddef: Likewise.
35533         * modules/stdint: Likewise.
35534         * modules/stdio: Likewise.
35535         * modules/stdlib: Likewise.
35536         * modules/string: Likewise.
35537         * modules/strings: Likewise.
35538         * modules/sys_file: Likewise.
35539         * modules/sys_ioctl: Likewise.
35540         * modules/sys_select: Likewise.
35541         * modules/sys_socket: Likewise.
35542         * modules/sys_stat: Likewise.
35543         * modules/sys_time: Likewise.
35544         * modules/sys_times: Likewise.
35545         * modules/sys_utsname: Likewise.
35546         * modules/sys_wait: Likewise.
35547         * modules/sysexits: Likewise.
35548         * modules/time: Likewise.
35549         * modules/times: Likewise.
35550         * modules/tmpfile: Likewise.
35551         * modules/trim: Likewise.
35552         * modules/unistd: Likewise.
35553         * modules/wchar: Likewise.
35554         * modules/wctype: Likewise.
35555
35556 2009-09-17  Bruno Haible  <bruno@clisp.org>
35557
35558         Make getdate.y compile on QNX and NetBSD 5 / i386.
35559         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35560         TIME_T_FITS_IN_LONG_INT.
35561         * lib/getdate.y (long_time_t): New type.
35562         (relative_time): Change type of 'seconds' field to long_time_t.
35563         (get_date): Update types of local variables. Check against overflow
35564         during conversion from long_time_t to time_t.
35565         Reported by Matt Kraai <kraai@ftbfs.org>
35566         and Hasso Tepper <hasso@netbsd.org>.
35567
35568 2009-09-17  Bruno Haible  <bruno@clisp.org>
35569
35570         * modules/COPYING: Update copyright years.
35571         * modules/README: Likeiwse.
35572         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35573         Reported by Ian Beckwith <ianb@erislabs.net>.
35574
35575 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35576
35577         * users.txt: Update references for gnuit package.
35578
35579 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35580
35581         * m4/getdelim.m4: Fix typo in copyright line.
35582
35583 2009-09-17  Bruno Haible  <bruno@clisp.org>
35584
35585         * lib/atoll.c: Use the standard header with GPL copyright.
35586         * lib/argz.in.h: Likewise.
35587         * lib/glob.c: Likewise.
35588         * lib/glob-libc.h: Likewise.
35589         * lib/random_r.c: Likewise.
35590         * lib/siglist.h: Likewise.
35591         * lib/strsignal.c: Likewise.
35592         Reported by Ian Beckwith <ianb@erislabs.net>.
35593
35594 2009-09-17  Eric Blake  <ebb9@byu.net>
35595
35596         rmdir: ensure correct dependency order
35597         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35598
35599 2009-09-17  Bruno Haible  <bruno@clisp.org>
35600
35601         Disable assertion that fails on NetBSD 5 / i386.
35602         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35603         Reported by Sam Steingold <sds@gnu.org>
35604         and Hasso Tepper <hasso@netbsd.org>.
35605
35606 2009-09-16  Eric Blake  <ebb9@byu.net>
35607
35608         unlinkdir: port to mingw
35609         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35610         on which no one can unlink a directory.
35611
35612         stdlib: sort witness names
35613         * modules/stdlib (Makefile.am): Sort replacements.
35614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35615         * lib/stdlib.in.h: Likewise.
35616
35617         parse-duration-tests: avoid link failure
35618         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35619         LIBINTL.
35620         Reported by Tom G. Christensen.
35621
35622         openat-tests: ensure unlinkat behaves like rmdir
35623         * tests/test-rmdir.c (main): Factor guts...
35624         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35625         * modules/rmdir-tests (Files): Ship new file.
35626         * modules/openat-tests: New test.
35627         * tests/test-unlinkat.c: Likewise.
35628
35629         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35630         * modules/rmdir-errno (Status, Notice): Now obsolete.
35631
35632         rmdir: work around cygwin 1.5.x and mingw bugs
35633         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35634         * lib/rmdir.c (rmdir): Work around it.
35635         * modules/rmdir (Status, Notice): No longer obsolete.
35636         (Files): Add dos.m4.
35637         (Depends-on): Add unistd.
35638         (configure.ac): Set witnesses.
35639         (License): Relax to LGPLv2+.
35640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35641         * modules/unistd (Makefile.am): Substitute witnesses.
35642         * lib/unistd.in.h (rmdir): Declare replacement.
35643         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35644         * modules/rmdir-tests: New tests.
35645         * tests/test-rmdir.c: Likewise.
35646
35647 2009-09-15  Eric Blake  <ebb9@byu.net>
35648
35649         fchdir: improve use of replacement functions
35650         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35651         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35652         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35653         REPLACE_CLOSEDIR.
35654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35655         * modules/sys_stat (Makefile.am): Substitute correct witness.
35656         * modules/dirent (Makefile.am): Likewise.
35657         * modules/unistd (Makefile.am): Likewise.
35658         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35659         * lib/unistd.in.h (dup): Likewise.
35660         * lib/sys_stat.in.h (fstat): Likewise.
35661
35662         maint: ignore gnulib-tool temp files
35663         * .gitignore: Ignore files created during gnulib-tool --test.
35664
35665 2009-09-13  Jim Meyering  <meyering@redhat.com>
35666
35667         posixtm: don't reject a time that specify "60" as the number of seconds
35668         * lib/posixtm.c (posixtime): The code to reject invalid dates
35669         would also reject a time specified with the .60 suffix.
35670         But POSIX allows that, in order to accommodate leap seconds.
35671         So don't reject it.
35672         (main): Adjust tests accordingly.
35673         * modules/posixtm (Depends-on): Add stpcpy.
35674
35675 2009-09-11  Jim Meyering  <meyering@redhat.com>
35676
35677         announce-gen: include [$release_type] in emitted Subject:
35678         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35679         e.g., [stable] in the emitted Subject: line.
35680
35681 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35682
35683         Remove obsolete macros from several modules.
35684         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35685         obsolete Autoconf macros with their modern counterparts.
35686         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35687         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35689         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35690         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35691         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35692         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35693         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35694         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35695         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35696         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35697         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35698         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35699         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35700         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35701         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35702         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35703         * m4/time_r.m4 (gl_TIME_R): Likewise.
35704         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35705         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35706         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35707
35708         Fix copyright header in build-aux scripts.
35709         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35710         recommendation.
35711         * build-aux/ncftpput-ftp: Likewise.
35712         * build-aux/update-copyright: Likewise.
35713
35714 2009-09-09  Eric Blake  <ebb9@byu.net>
35715
35716         test-link: allow Linux choice of errno
35717         * tests/test-link.c (main): Relax test for alternate error.
35718
35719         strndup: fix improper m4 caching
35720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35721         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35722         (gl_PREREQ_STRNDUP): Delete.
35723         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35724         * modules/string (Makefile.am): Substitute it.
35725         * lib/string.in.h (strndup): Modernize prototype.
35726
35727         getcwd: port to mingw
35728         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35729         different from the POSIX assumptions made throughout the getcwd
35730         module; fortunately, the mingw getcwd does not need replacement.
35731         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35732         * modules/getcwd-tests: New test.
35733         * tests/test-getcwd.c: Likewise.
35734
35735         link: fix platform bugs
35736         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35737         * lib/link.c (link): Work around them.  Fix related mingw bug.
35738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35739         * modules/unistd (Makefile.am): Substitute it.
35740         * lib/unistd.in.h (link): Declare replacement.
35741         * doc/posix-functions/link.texi (link): Document this.
35742         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35743
35744         test-link: consolidate into single C program, test more cases
35745         * tests/test-link.sh: Delete.
35746         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35747         at least Cygwin and Solaris.
35748         * modules/link-tests (Files): Remove unused file.
35749         (Depends-on): Add errno, sys_stat.
35750         (Makefile.am): Simplify.
35751
35752 2009-09-08  Bruno Haible  <bruno@clisp.org>
35753
35754         Work around towlower, towupper bug on mingw.
35755         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35756         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35757         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35758         * doc/posix-functions/towupper.texi: Likewise.
35759         Reported by Eric Blake.
35760
35761 2009-09-08  Jim Meyering  <meyering@redhat.com>
35762
35763         build: don't try to run autoheader if we don't use it
35764         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35765         is not used in configure.ac.
35766
35767 2009-09-08  Eric Blake  <ebb9@byu.net>
35768
35769         euidaccess: fix compilation error
35770         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35771
35772         rawmemchr: relax license
35773         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35774         okay.
35775         Reported by Jim Meyering.
35776
35777         mkfifoat: new module
35778         * modules/mkfifoat: New file.
35779         * lib/mkfifoat.c: Likewise.
35780         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35781         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35782         * modules/sys_stat (Makefile.am): Use them.
35783         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35784         * MODULES.html.sh (File system functions): Mention module.
35785         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35786         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35787         * modules/mkfifoat-tests: New test.
35788         * tests/test-mkfifoat.c: Likewise.
35789
35790         strchrnul: relax license
35791         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35792         okay.
35793         Reported by Jim Meyering.
35794
35795 2009-09-08  Eric Blake  <ebb9@byu.net>
35796
35797         fstatat: fix compilation on Solaris
35798         * lib/fstatat.c (includes): Add fcntl.h.
35799         Reported by Pádraig Brady.
35800
35801 2009-09-07  Eric Blake  <ebb9@byu.net>
35802
35803         rename: modernize replacement
35804         * modules/rename (Depends-on): Add stdio.
35805         (configure.ac): Declare witness.
35806         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35807         stdio take care of replacement.
35808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35809         * modules/stdio (Makefile.am): Substitute them.
35810         * lib/stdio.in.h (rename): Declare replacement.
35811         * lib/rename.c (includes): Allow cross-compilation to non-windows
35812         machines.
35813         * doc/posix-functions/rename.texi (rename): Improve
35814         documentation.
35815
35816         stdio: sort witness names
35817         * modules/stdio (Makefile.am): Sort replacements.
35818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35819         * lib/stdio.in.h: Likewise.
35820
35821         getcwd: minor cleanups
35822         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35823         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35824
35825         openat: provide more convenience names
35826         * modules/faccessat (configure.ac): Add C witness.
35827         * lib/unistd.in.h (readlinkat): Fix typo.
35828         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35829         convenience wrappers.
35830         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35831         wrappers in syntax checks.
35832
35833 2009-09-06  Eric Blake  <ebb9@byu.net>
35834
35835         doc: fix comments in recent patches
35836         * lib/faccessat.c: Mention correct function.
35837         * lib/fchmodat.c: Likewise.
35838         * lib/fchownat.c: Likewise.
35839         * lib/symlinkat.c: Likewise.
35840         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35841         constants.
35842
35843         faccessat, symlinkat: continue cleanup of previous patch
35844         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35845         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35846         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35848         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35849         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35850         set.
35851
35852 2009-09-06  Bruno Haible  <bruno@clisp.org>
35853
35854         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35855         (fstatat): Declare if GNULIB_FSTATAT is set.
35856         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35857         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35858         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35859         * modules/fcntl-h (Files): Remove m4/openat.m4.
35860         * modules/sys_stat (Files): Remove m4/openat.m4.
35861         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35862         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35863         * modules/unistd (Files): Remove m4/openat.m4.
35864         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35865         GNULIB_OPENAT.
35866         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35867         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35868         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35869         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35870         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35871         gl_OPENAT_DEFAULTS.
35872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35873         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35874         Don't require gl_OPENAT_DEFAULTS.
35875         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35876         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35877         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35878         (gl_OPENAT_DEFAULTS): Remove macro.
35879
35880 2009-09-06  Bruno Haible  <bruno@clisp.org>
35881
35882         * modules/openat (configure.ac): Remove unneeded witness.
35883
35884 2009-09-06  Bruno Haible  <bruno@clisp.org>
35885
35886         Set errno to ENOSYS when a function is entirely unsupported.
35887         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35888         EOPNOTSUPP.
35889         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35890         * modules/chown (Depends-on): Remove errno.
35891
35892 2009-09-06  Bruno Haible  <bruno@clisp.org>
35893
35894         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35895
35896 2009-09-06  Bruno Haible  <bruno@clisp.org>
35897
35898         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35899
35900 2009-09-06  Ben Pfaff  <blp@gnu.org>
35901             Bruno Haible  <bruno@clisp.org>
35902
35903         Work around a glibc bug in strtok_r.
35904         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35905         Undefine if UNDEFINE_STRTOK_R is set.
35906         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35908         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35909         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35910         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35911         UNDEFINE_STRTOK_R.
35912         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35913
35914 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35915
35916         exclude: minor fix
35917         * lib/exclude.c: Include wctype.h
35918
35919 2009-09-06  Akim Demaille  <demaille@gostai.com>
35920
35921         bootstrap: improve error message
35922         * build-aux/bootstrap (find_tool): Upon failure, report the list
35923         of candidates.
35924         Honor the initial value of the envvar.
35925
35926 2009-09-05  Eric Blake  <ebb9@byu.net>
35927
35928         symlinkat: new module
35929         * modules/symlinkat: New file.
35930         * lib/symlinkat.c: Likewise.
35931         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35933         * modules/unistd (Makefile.am): Use them.
35934         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35935         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35936         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35937         * MODULES.html.sh (File system functions): Mention module.
35938         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35939         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35940         * modules/symlinkat-tests: New test.
35941         * tests/test-symlinkat.c: Likewise.
35942
35943         test-openat-safer: add more checks
35944         * tests/test-openat-safer.c (main): Check more code paths.
35945
35946 2009-09-05  Jim Meyering  <meyering@redhat.com>
35947
35948         syntax-check: detect unnecessary inclusion of openat.h
35949         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35950
35951 2009-09-05  Bruno Haible  <bruno@clisp.org>
35952
35953         Support towlower, towupper.
35954         * doc/posix-functions/towlower.texi: Mention module wctype.
35955         * doc/posix-functions/towupper.texi: Likewise.
35956         * lib/wctype.in.h (towlower, towupper): New functions.
35957         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35958         (ASSERT): New macro.
35959         (e): New variable.
35960         (main): Test also towlower, towupper. Test WEOF argument.
35961         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35962
35963 2009-09-05  Bruno Haible  <bruno@clisp.org>
35964
35965         Fix conversion behaviour when the input is invalid.
35966         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35967         mark occurring in first pass of indirect conversion.
35968         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35969         input.
35970         Found by clang's static analyzer.
35971
35972 2009-09-05  Bruno Haible  <bruno@clisp.org>
35973
35974         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35975         where direct conversion is possible.
35976
35977 2009-09-04  Eric Blake  <ebb9@byu.net>
35978
35979         openat: fail with ENOENT on empty name
35980         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35981         buffer.
35982
35983         link-follow: fix logic bug in prior patch
35984         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35985         reversed sense of yes and no in prior patch.  Avoid confusing
35986         compilation failure with desired semantics.
35987
35988         link-follow: accomodate mingw and cross-compilation
35989         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35990         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35991         cross-compilation results to -1, to make linkat easier to
35992         implement when cross-compiling.  Trivially support mingw.
35993         * modules/link-follow (configure.ac): Call new name.
35994         * NEWS: Mention this.
35995
35996 2009-09-03  Eric Blake  <ebb9@byu.net>
35997
35998         faccessat: compile replacement
35999         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36000         needed.
36001
36002         fts: fix compilation error
36003         * lib/fts.c (includes): Re-add "openat.h", for
36004         openat_needs_fchdir.
36005
36006         faccessat: new module
36007         * modules/faccessat: New file.
36008         * lib/faccessat.c: Likewise.
36009         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36011         * modules/unistd (Makefile.am): Use it.
36012         * lib/unistd.in.h (faccessat): Declare it.
36013         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36014         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36015         * MODULES.html.sh (File system functions): Mention it.
36016         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36017         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36018
36019         euidaccess: prefer POSIX over non-standard implementation
36020         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36021         * lib/euidaccess.c (euidaccess): Use it if available.
36022
36023         openat: make template easier to use
36024         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36025         AT_FUNC_F2 to be undefined.
36026         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36027         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36028         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36029         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36030         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36031         Likewise.
36032         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36033         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36034         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36035         Likewise.
36036
36037         openat: declare in POSIX headers
36038         * NEWS: Mention this.
36039         * modules/openat (configure.ac): Declare witnesses.
36040         (Depends-on): Add fcntl-h, sys_stat, unistd.
36041         (Include): Mention correct headers.
36042         * modules/fcntl-h (Depends-on): Add link-warning.
36043         (Files): Add openat.m4.
36044         (Makefile.am): Substitute witnesses.
36045         * modules/sys_stat (Files, Makefile.am): Likewise.
36046         * modules/unistd (Files, Makefile.am): Likewise.
36047         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36048         (gl_OPENAT_DEFAULTS): New macro.
36049         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36051         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36052         (SYS_STAT_H): Remove unused variable.
36053         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36054         * lib/fcntl--.h (includes): Remove unneeded header.
36055         * lib/openat-safer.c (includes): Likewise.
36056         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36057         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36058         appropriate headers.
36059         (__OPENAT_PREFIX): Delete.
36060         * lib/fcntl.in.h (openat): Provide declaration.
36061         (AT_FDCWD): Fix Solaris bug.
36062         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36063         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36064         * lib/fchmodat.c (includes):  Adjust to find declaration.
36065         * lib/fchownat.c (includes): Likewise.
36066         * lib/mkdirat.c (includes): Likewise.
36067         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36068         still visible.
36069
36070 2009-09-02  Eric Blake  <ebb9@byu.net>
36071
36072         errno: use consistently
36073         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36074         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36075         * lib/canonicalize.c (ELOOP): Likewise.
36076         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36077         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36078         * lib/lchown.c (EOPNOTSUPP): Likewise.
36079         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36080         * lib/savewd.c (ESTALE): Likewise.
36081         * lib/settime.c (ENOSYS): Likewise.
36082         * lib/utimens.c (ENOSYS): Likewise.
36083         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36084         * lib/chdir-safer.c (ELOOP): Likewise.
36085         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36086         * modules/c-stack (Depends-on): Add errno.
36087         * modules/canonicalize (Depends-on): Likewise.
36088         * modules/chdir-safer (Depends-on): Likewise.
36089         * modules/fdopendir (Depends-on): Likewise.
36090         * modules/inet_ntop (Depends-on): Likewise.
36091         * modules/inet_pton (Depends-on): Likewise.
36092         * modules/lchown (Depends-on): Likewise.
36093         * modules/openat (Depends-on): Likewise.
36094         * modules/savewd (Depends-on): Likewise.
36095         * modules/settime (Depends-on): Likewise.
36096         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36097
36098         fts: avoid leaking fds
36099         * modules/fts (Depends-on): Add cloexec.
36100         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36101         flag.
36102
36103         fts: make directory fds more robust
36104         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36105         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36106
36107         backupfile, chdir-long, fts, savedir: make safer
36108         * lib/backupfile.c (includes): Use "dirent--.h", since
36109         numbered_backup can write to stderr during readdir.
36110         * lib/savedir.c (includes): Likewise.
36111         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36112         emulation can write to stderr on failure.
36113         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36114         * lib/getcwd.c: Document why opendir_safer is unused.
36115         * lib/glob.c: Likewise.
36116         * lib/scandir.c: Likewise.
36117         * lib/openat-proc.c: Likewise, for open_safer.
36118         * modules/backupfile (Depends-on): Add dirent-safer.
36119         * modules/savedir (Depends-on): Likewise.
36120         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36121         * modules/chdir-long (Depends-on): Add openat-safer.
36122
36123         openat-safer: new module
36124         * modules/openat-safer: New file.
36125         * lib/openat-safer.c: Likewise.
36126         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36127         * lib/fcntl-safer.h (openat_safer): Declare.
36128         * lib/fcntl--.h (openat): Override.
36129         * MODULES.html.sh (File descriptor based I/O): Mention it.
36130         * lib/openat.h: Add double-inclusion guards.
36131         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36132         "fcntl--.h", so we can implement openat.
36133         * modules/openat-safer-tests: New test.
36134         * tests/test-openat-safer.c: New file.
36135
36136         dirent-safer: new module
36137         * modules/dirent-safer: New file.
36138         * lib/dirent--.h: Likewise.
36139         * lib/dirent-safer.h: Likewise.
36140         * lib/opendir-safer.c: Likewise.
36141         * m4/dirent-safer.m4: Likewise.
36142         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36143         * modules/dirent-safer-tests: New test.
36144         * tests/test-dirent-safer.c: New file.
36145         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36146
36147         fdopendir: optimize on mingw
36148         * lib/unistd.in.h (_gl_directory_name): New prototype.
36149         * lib/fchdir.c (_gl_directory_name): Implement it.
36150         (fchdir): Use it to simplify implementation.
36151         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36152         fchdir, when available, to avoid calling [f]chdir().
36153
36154         fdopendir: split into its own module
36155         * lib/openat.c (fdopendir): Move...
36156         * lib/fdopendir.c: ...into new file.
36157         * modules/fdopendir: New module.
36158         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36159         * modules/openat (Depends-on): Add fdopendir.
36160         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36161         fdopendir here.
36162         * modules/savedir (Depends-on): Only need fdopendir, not full
36163         openat.
36164         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36165         * lib/openat.h (fdopendir): Drop prototype.
36166         * lib/dirent.in.h (fdopendir): Provide prototype.
36167         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36168         * modules/dirent (Makefile.am): Substitute them.
36169         * MODULES.html.sh (File system functions): Mention it.
36170         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36171         * modules/fdopendir-tests: New file.
36172         * tests/test-fdopendir.c: Likewise.
36173
36174         fchdir: use more consistent macro convention
36175         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36176         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36177         REPLACE_FCHDIR, rather than relying on config.h macros.
36178         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36179         inside a single make-time REPLACE_FCHDIR block, rather than using
36180         the config.h FCHDIR_REPLACEMENT.
36181         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36182         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36183         Manage fstat replacement.
36184         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36185         REPLACE_FCHDIR.
36186         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36187         (Makefile.am): Substitute REPLACE_FCHDIR.
36188         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36189         FCHDIR_REPLACEMENT.
36190         * lib/dup-safer.c (dup_safer): Likewise.
36191         * lib/dup2.c (rpl_dup2): Likewise.
36192         * lib/dup3.c (rpl_dup3): Likewise.
36193         * lib/open.c (rpl_open): Likewise.
36194
36195         fchdir: simplify error handling, and support dup3
36196         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36197         stdbool, malloc-posix, realloc-posix.
36198         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36199         (ensure_dirs_slot): Return false on allocation failure.
36200         (rpl_dup2): Delete.
36201         (_gl_register_dup): New function.
36202         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36203         (_gl_register_fd): Close fd on allocation failure.
36204         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36205         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36206         prototype.
36207         (rpl_dup2_fchdir): Delete prototype.
36208         * lib/open.c (open): Update caller.
36209         * lib/dup2.c (dup2): Track fchdir metadata.
36210         * lib/dup3.c (dup3): Likewise.
36211         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36213
36214 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36215
36216         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36217         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36218         don't pass arguments to AC_OUTPUT.
36219
36220 2009-09-02  Bruno Haible  <bruno@clisp.org>
36221
36222         * modules/mkdtemp (License): Relicense under LGPLv2+.
36223         Reported by Paolo Bonzini.
36224
36225 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36226
36227         Replace uses of obsolete autoconf macros in Jim's modules.
36228         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36229         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36230         can evoke a warning from autoconf when run with -Wobsolete
36231         enabled.  They were declared obsolete for good reasons (see
36232         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36233         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36234         should not continue using the deprecated macros.
36235         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36236         obsolete Autoconf macros with modern counterparts.
36237         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36238         * m4/dos.m4 (gl_AC_DOS): Likewise.
36239         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36240         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36241         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36242         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36243         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36244         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36245         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36246         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36247         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36248         Likewise.
36249         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36250         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36251         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36252         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36253         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36254         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36255
36256 2009-09-01  Eric Blake  <ebb9@byu.net>
36257
36258         fchdir: fix off-by-one bug in previous patch
36259         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36260         (_gl_unregister_fd): Delete useless if.
36261
36262 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36263
36264         maint.mk: sort the list of syntax-check rules
36265         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36266         easier to get a sense of progress when the rules are run sequentially
36267         and take a long time.
36268
36269 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36270
36271         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36272         * modules/netinet_in: Likewise.
36273         * modules/sys_file: Likewise.
36274         * modules/sys_ioctl: Likewise.
36275         * modules/sys_select: Likewise.
36276         * modules/sys_socket: Likewise.
36277         * modules/sys_stat: Likewise.
36278         * modules/sys_time: Likewise.
36279         * modules/sys_times: Likewise.
36280         * modules/sys_utsname: Likewise.
36281         * modules/sys_wait: Likewise.
36282
36283 2009-09-01  Jim Meyering  <meyering@redhat.com>
36284
36285         fts: help ensure that return values are not ignored
36286         * lib/fts_.h (__GNUC_PREREQ): Define.
36287         (__attribute_warn_unused_result__): Define.
36288         (fts_children, fts_close, fts_open, fts_read): Declare with
36289         __attribute_warn_unused_result__.
36290
36291         fts: fts_close now fails also when closing a dir file descriptor fails
36292         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36293         and propagate to caller, along with errno.
36294
36295         announce-gen: correct formatting in --help output
36296         * build-aux/announce-gen (usage): Move the one-line description in
36297         --help output "up", to where it belongs, just after Usage:.
36298
36299 2009-08-31  Eric Blake  <ebb9@byu.net>
36300
36301         fchdir: port to mingw
36302         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36303         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36304         opened, then use a substitute.
36305         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36306         replacement.
36307         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36308         (_gl_register_fd): No need to check stat if open already filters
36309         all directories.
36310         (fchdir): Fix error condition to match POSIX.
36311         * modules/fchdir (Depends-on): Add sys_stat.
36312         * doc/posix-functions/open.texi (open): Document the limitation.
36313         * modules/fchdir-tests: New file.
36314         * tests/test-fchdir.c: Likewise.
36315
36316         canonicalize: allow cross-testing from cygwin to mingw
36317         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36318         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36319         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36320         Likewise.
36321         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36322         target does not support symlinks.
36323         * tests/test-canonicalize-lgpl.sh: Likewise.
36324
36325         chown: avoid compilation warning on mingw
36326         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36327         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36328         mingw.
36329         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36330         * modules/chown (Depends-on): Add errno.
36331
36332 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36333
36334         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36335         command.
36336
36337 2009-08-31  Jim Meyering  <meyering@redhat.com>
36338
36339         canonicalize: remove useless initialization
36340         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36341         initialization of local, "end".
36342
36343 2009-08-30  Bruno Haible  <bruno@clisp.org>
36344
36345         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36346         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36347         ENOSYS.
36348
36349 2009-08-30  Bruno Haible  <bruno@clisp.org>
36350
36351         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36352         /usr/xpg4/bin/tr when it exists.
36353         * tests/test-pipe-filter-gi1.sh: Likewise.
36354
36355 2009-08-30  Bruno Haible  <bruno@clisp.org>
36356
36357         Work around deficient /usr/bin/id program on Solaris.
36358         * tests/test-file-has-acl.sh (ID): New variable.
36359         * tests/test-set-mode-acl.sh (ID): Likewise.
36360         * tests/test-copy-acl.sh (ID): Likewise.
36361         * tests/test-copy-file.sh (ID): Likewise.
36362
36363 2009-08-30  Bruno Haible  <bruno@clisp.org>
36364
36365         New module 'xstriconveh'.
36366         * lib/xstriconveh.h: New file.
36367         * lib/xstriconveh.c: New file.
36368         * modules/xstriconveh: New file.
36369
36370 2009-08-30  Bruno Haible  <bruno@clisp.org>
36371
36372         Make it easier to use mem_cd_iconveh.
36373         * lib/striconveh.h (iconveh_t): New type.
36374         (iconveh_open, iconveh_close): New declarations.
36375         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36376         with a single 'const iconveh_t *' argument.
36377         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36378         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36379         with a single 'const iconveh_t *' argument.
36380         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36381         * tests/test-striconveh.c (main): Update.
36382         * NEWS: Mention the change.
36383
36384 2009-08-30  Bruno Haible  <bruno@clisp.org>
36385
36386         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36387         problem.
36388
36389 2009-08-30  Bruno Haible  <bruno@clisp.org>
36390
36391         Work around iconv_open problem on Solaris.
36392         * lib/iconv_open-solaris.gperf: New file.
36393         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36394         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36395         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36396         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36397         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36398         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36399
36400 2009-08-29  Jim Meyering  <meyering@redhat.com>
36401
36402         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36403         * top/maint.mk (cvs-check): Remove target; it was just an alias
36404         to the better-named vc-diff-check.
36405         (maintainer-distcheck): Remove rule.  It was used only from
36406         the (alpha/beta/major) target, and all of its commands but one
36407         were coreutils-specific.
36408         (vc-dist): Remove rule.
36409         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36410         Run vc-diff-check, not vc-dist.
36411         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36412
36413 2009-08-27  Bruno Haible  <bruno@clisp.org>
36414
36415         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36416         of 0.
36417
36418 2009-08-27  Bruno Haible  <bruno@clisp.org>
36419
36420         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36421         compilers.
36422         * doc/func.texi: Document the SunPRO C bug.
36423
36424 2009-08-27  Bruno Haible  <bruno@clisp.org>
36425
36426         Fix link error on Solaris.
36427         * tests/test-parse-duration.c (xstrdup): Remove function.
36428
36429 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36430
36431         ignore-value: handle pointer types, too
36432         * lib/ignore-value.h (__attribute__): Remove definition.
36433         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36434         of a more concise and more-often effective "(void) i" statement.
36435         (ignore_ptr): New function to suppress warnings from functions that
36436         return pointers, and to make it explicit that one function doesn't
36437         handle all cases.
36438
36439 2009-08-25  Bruno Haible  <bruno@clisp.org>
36440
36441         dup2: work around a Linux bug.
36442         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36443         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36444         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36445         Reported by Simon Josefsson.
36446
36447 2009-08-25  Jim Meyering  <meyering@redhat.com>
36448
36449         libguestfs uses gnulib
36450         * users.txt: Add libguestfs.
36451
36452 2009-08-24  Eric Blake  <ebb9@byu.net>
36453
36454         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36455         * lib/pipe2.c (includes): Add binary-io.h.
36456         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36457
36458 2009-08-24  Bruno Haible  <bruno@clisp.org>
36459
36460         Tolerate declared but missing accept4 syscall.
36461         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36462         available.
36463         * lib/sys_socket.in.h (accept4): If the function is already present,
36464         override it.
36465         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36466         * modules/accept4 (Makefile.am): Compile accept4.c always.
36467         Reported by Paolo Bonzini and Eric Blake.
36468
36469 2009-08-23  Bruno Haible  <bruno@clisp.org>
36470
36471         New module 'accept4'.
36472         * lib/sys_socket.in.h (accept4): New declaration.
36473         * lib/accept4.c: New file.
36474         * m4/accept4.m4: New file.
36475         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36476         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36477         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36478         HAVE_ACCEPT4.
36479         * modules/accept4: New file.
36480         * doc/glibc-functions/accept4.texi: Mention the new module.
36481
36482 2009-08-24  Jim Meyering  <meyering@redhat.com>
36483
36484         progname: also set global program_invocation_name, when possible
36485         Before this change, a libtool-enabled program that calls glibc's
36486         error function would report the program name as
36487         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36488         * modules/progname (configure.ac): Check for a declaration of
36489         program_invocation_name.
36490         * lib/progname.c:  Include <errno.h>.
36491         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36492         Set program_invocation_name.
36493
36494 2009-08-23  Bruno Haible  <bruno@clisp.org>
36495
36496         * lib/dup3.c: Include <string.h>.
36497
36498 2009-08-23  Bruno Haible  <bruno@clisp.org>
36499
36500         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36501         * lib/pipe2.c (pipe2): Likewise.
36502         Suggested by Eric Blake.
36503
36504 2009-08-23  Bruno Haible  <bruno@clisp.org>
36505
36506         Tolerate declared but missing dup3 syscall.
36507         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36508         * lib/unistd.in.h (dup3): If the function is already present,
36509         override it.
36510         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36511         * modules/dup3 (Makefile.am): Compile dup3.c always.
36512         Reported by Paolo Bonzini.
36513
36514 2009-08-23  Bruno Haible  <bruno@clisp.org>
36515
36516         Tolerate declared but missing pipe2 syscall.
36517         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36518         available.
36519         * lib/unistd.in.h (pipe2): If the function is already present,
36520         override it.
36521         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36522         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36523         Reported by Paolo Bonzini.
36524
36525 2009-08-23  Bruno Haible  <bruno@clisp.org>
36526
36527         * lib/pipe2.c (pipe2): Move #ifs inside function.
36528
36529 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36530
36531         quotearg: document limitations of quote_these_too
36532         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36533         those limitations are created.
36534         * lib/quotearg.h (set_char_quoting): Document that digits and
36535         letters that are special after backslash are not permitted.
36536         (quotearg_char): Cross-reference set_char_quoting documentation.
36537
36538 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36539
36540         quotearg: implement custom_quoting_style
36541         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36542         right_quote fields.
36543         (set_custom_quoting): New public function.
36544         (quotearg_buffer_restyled): Add left_quote and right_quote
36545         arguments, handle them very much like locale quoting, and update
36546         all uses.
36547         (quotearg_n_custom): New public function.
36548         (quotearg_n_custom_mem): New public function.
36549         (quotearg_custom): New public function.
36550         (quotearg_custom_mem): New public function.
36551         * lib/quotearg.h: Prototype and document new public functions.
36552         (enum quoting_style): For escape_quoting_style and
36553         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36554         ignored even though they're otherwise like c_quoting_style.
36555         Add custom_quoting_style member and document with comparison to
36556         clocale_quoting_style.
36557         * tests/test-quotearg.c (custom_quotes): New array.
36558         (custom_results): New array.
36559         (main): Extend to test custom quoting.
36560
36561 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36562
36563         quotearg: fix right quote escaping when it's in quote_these_too
36564         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36565         quote, be sure to prepend only one backslash.
36566         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36567         (main): Test it.
36568
36569 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36570
36571         quotearg-tests: test escaping of embedded locale quotes
36572         * tests/test-quotearg.c (struct result_strings): Add member for
36573         new input.
36574         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36575         (inputs): Add new input.
36576         (results_g): Add expected results.
36577         (flag_results): Likewise.
36578         (locale_results): Likewise.
36579         (compare_strings): Check those.
36580
36581 2009-08-23  Bruno Haible  <bruno@clisp.org>
36582
36583         Tests for module 'dup3'.
36584         * modules/dup3-tests: New file.
36585         * tests/test-dup3.c: New file.
36586
36587         New module 'dup3'.
36588         * lib/unistd.in.h (dup3): New declaration.
36589         * lib/dup3.c: New file.
36590         * m4/dup3.m4: New file.
36591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36592         HAVE_DUP3.
36593         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36594         * modules/dup3: New file.
36595         * doc/glibc-functions/dup3.texi: Mention the new module.
36596
36597 2009-08-23  Bruno Haible  <bruno@clisp.org>
36598
36599         Tweak the dup2 test.
36600         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36601         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36602         the test file is still empty. Fix argument order of lseek.
36603
36604 2009-08-23  Bruno Haible  <bruno@clisp.org>
36605
36606         Avoid test link errors when the modules getopt-gnu, gettext are used.
36607         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36608         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36609
36610 2009-08-23  Bruno Haible  <bruno@clisp.org>
36611
36612         Fix getdtablesize() on mingw.
36613         * lib/getdtablesize.c (getdtablesize): Implement differently.
36614         * lib/unistd.in.h (getdtablesize): Improve comment.
36615
36616 2009-08-23  Bruno Haible  <bruno@clisp.org>
36617
36618         New module 'mkostemp'.
36619         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36620         * lib/stdlib.in.h (mksotemp): New declaration.
36621         * lib/mkostemp.c: New file, from glibc with modifications.
36622         * lib/tempname.h (GT_FILE): Remove outdated comment.
36623         (gen_tempname): Add flags argument.
36624         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36625         (__GT_FILE): Map to 1.
36626         (small_open, large_open): Remove macros.
36627         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36628         * lib/mkstemp.c (mkstemp): Update.
36629         * lib/mkdtemp.c (mkdtemp): Likewise.
36630         * m4/mkostemp.m4: New file.
36631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36632         HAVE_MKOSTEMP.
36633         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36634         HAVE_MKOSTEMP.
36635         * modules/mkostemp: New file, based on modules/mkstemp.
36636         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36637         * NEWS: Mention the change.
36638
36639 2009-08-23  Bruno Haible  <bruno@clisp.org>
36640
36641         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36642         Reported by Eric Blake.
36643
36644 2009-08-23  Bruno Haible  <bruno@clisp.org>
36645
36646         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36647         Reported by Eric Blake.
36648
36649 2009-08-23  Bruno Haible  <bruno@clisp.org>
36650
36651         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36652         * modules/pipe2 (Depends-on): Likewise.
36653
36654 2009-08-23  Eric Blake  <ebb9@byu.net>
36655
36656         fcntl-h: add O_TTY_INIT support
36657         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36658         * tests/test-fcntl-h.c (o): Test it.
36659         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36660
36661         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36662         * modules/fcntl: Move <fcntl.h> header replacement...
36663         * modules/fcntl-h: ...to new name, so as not to collide with
36664         like-named function.
36665         * tests/test-fcntl.c: Rename...
36666         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36667         * modules/fcntl-tests: Rename...
36668         * modules/fcntl-h-tests: ...to this.  Update test file name.
36669         * modules/chdir-long (Depends-on): Update clients.
36670         * modules/chdir-safer (Depends-on): Likewise.
36671         * modules/fcntl-safer (Depends-on): Likewise.
36672         * modules/fts (Depends-on): Likewise.
36673         * modules/mkancesdirs (Depends-on): Likewise.
36674         * modules/mkdir-p (Depends-on): Likewise.
36675         * modules/open (Depends-on): Likewise.
36676         * modules/savewd (Depends-on): Likewise.
36677         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36678         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36679
36680 2009-08-22  Bruno Haible  <bruno@clisp.org>
36681
36682         * modules/binary-io (License): Relicense under LGPL.
36683         * modules/pipe2 (License): Likewise.
36684
36685 2009-08-22  Bruno Haible  <bruno@clisp.org>
36686
36687         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36688         return value.
36689         * lib/pipe-filter-gi.c (filter_init): Likewise.
36690         Reported by Eric Blake.
36691
36692 2009-08-22  Bruno Haible  <bruno@clisp.org>
36693
36694         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36695         * modules/pipe (Depends-on): Add pipe2.
36696
36697 2009-08-22  Bruno Haible  <bruno@clisp.org>
36698
36699         Tests for module 'pipe2'.
36700         * modules/pipe2-tests: New file.
36701         * tests/test-pipe2.c: New file.
36702
36703         New module 'pipe2'.
36704         * lib/unistd.in.h (pipe2): New declaration.
36705         * lib/pipe2.c: New file.
36706         * m4/pipe2.m4: New file.
36707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36708         HAVE_PIPE2.
36709         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36710         * modules/pipe2: New file.
36711         * doc/glibc-functions/pipe2.texi: Mention the new module.
36712
36713 2009-08-22  Bruno Haible  <bruno@clisp.org>
36714
36715         Reference some new glibc functions.
36716         * doc/glibc-functions/accept4.texi: New file.
36717         * doc/glibc-functions/dup3.texi: New file.
36718         * doc/glibc-functions/mkostemp.texi: New file.
36719         * doc/glibc-functions/pipe2.texi: New file.
36720         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36721         (Glibc sys/socket.h): Refer to accept4.
36722         (Glibc unistd.h): Refer to dup3, pipe2.
36723         Reported by Eric Blake.
36724
36725 2009-08-22  Jim Meyering  <meyering@redhat.com>
36726             Bruno Haible  <bruno@clisp.org>
36727
36728         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36729         This makes it so packages using automake-1.11's silent-rules option
36730         can print e.g., a single "GEN    configmake.h" line, rather than
36731         the 30+ statements that perform the job.  If you want to see the
36732         actual commands, you can still run "make V=1".
36733         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36734         so that make output is abbreviated when those variables are defined
36735         appropriately.
36736         * modules/argz: Likewise.
36737         * modules/arpa_inet: Likewise.
36738         * modules/byteswap: Likewise.
36739         * modules/configmake: Likewise.
36740         * modules/dirent: Likewise.
36741         * modules/errno: Likewise.
36742         * modules/fcntl: Likewise.
36743         * modules/float: Likewise.
36744         * modules/fnmatch: Likewise.
36745         * modules/getopt-posix: Likewise.
36746         * modules/glob: Likewise.
36747         * modules/iconv_open: Likewise.
36748         * modules/inttypes: Likewise.
36749         * modules/localcharset: Likewise.
36750         * modules/locale: Likewise.
36751         * modules/math: Likewise.
36752         * modules/netdb: Likewise.
36753         * modules/netinet_in: Likewise.
36754         * modules/poll: Likewise.
36755         * modules/posix_spawnp-tests: Likewise.
36756         * modules/sched: Likewise.
36757         * modules/search: Likewise.
36758         * modules/selinux-h: Likewise.
36759         * modules/signal: Likewise.
36760         * modules/spawn: Likewise.
36761         * modules/stdarg: Likewise.
36762         * modules/stdbool: Likewise.
36763         * modules/stddef: Likewise.
36764         * modules/stdint: Likewise.
36765         * modules/stdio: Likewise.
36766         * modules/stdlib: Likewise.
36767         * modules/string: Likewise.
36768         * modules/strings: Likewise.
36769         * modules/sys_file: Likewise.
36770         * modules/sys_ioctl: Likewise.
36771         * modules/sys_select: Likewise.
36772         * modules/sys_socket: Likewise.
36773         * modules/sys_stat: Likewise.
36774         * modules/sys_time: Likewise.
36775         * modules/sys_times: Likewise.
36776         * modules/sys_utsname: Likewise.
36777         * modules/sys_wait: Likewise.
36778         * modules/sysexits: Likewise.
36779         * modules/time: Likewise.
36780         * modules/unistd: Likewise.
36781         * modules/wchar: Likewise.
36782         * modules/wctype: Likewise.
36783
36784 2009-08-22  Jim Meyering  <meyering@redhat.com>
36785
36786         announce-gen: detect write failure
36787         * build-aux/announce-gen: Add Coda at end.
36788         Remove equivalent-but-more-verbose block at top.
36789
36790 2009-08-19  Akim Demaille  <demaille@gostai.com>
36791
36792         bootstrap: --help to stdout.
36793         * bootstrap (usage): Don't send --help to stderr.
36794         Use a here doc instead of a long string.
36795
36796 2009-08-21  Eric Blake  <ebb9@byu.net>
36797
36798         test-popen-safer: split from test-popen
36799         * tests/test-popen.c (main): Move...
36800         * tests/test-popen.h: ...into new file.
36801         * tests/test-popen-safer2.c: New file.
36802         * modules/popen-tests (Files): Add test-popen.h.
36803         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36804         Suggested by Bruno Haible.
36805
36806         test-fcntl-safer: split from test-open
36807         * tests/test-open.c (main): Move...
36808         * tests/test-open.h: ...into new file.
36809         * tests/test-fcntl-safer.c: New file.
36810         * modules/open-tests (Files): Add test-open.h.
36811         * modules/fcntl-safer-tests: New file.
36812         Suggested by Bruno Haible.
36813
36814         test-fopen-safer: split from test-fopen
36815         * tests/test-fopen.c (main): Move...
36816         * tests/test-fopen.h: ...into new file.
36817         * tests/test-fopen-safer.c: New file.
36818         * modules/fopen-tests (Files): Add test-fopen.h.
36819         * modules/fopen-safer-tests: New file.
36820         Suggested by Bruno Haible.
36821
36822 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36823
36824         popen-safer: test O_CLOEXEC at run-time.
36825         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36826
36827 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36828
36829         fcntl: move more flags to the header
36830         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36831         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36832         * lib/fcntl.in.h: Do both things here.
36833
36834 2009-08-21  Jim Meyering  <meyering@redhat.com>
36835
36836         consistently remove $@-t before redirecting to it
36837         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36838         * modules/alloca-opt: Likewise.
36839         * modules/byteswap: Likewise.
36840         * modules/fnmatch: Likewise.
36841         * modules/getopt-posix: Likewise.
36842         * modules/glob: Likewise.
36843         * modules/poll: Likewise.
36844         * modules/posix_spawnp-tests: Likewise.
36845         * modules/sys_socket: Likewise.
36846         * modules/sysexits: Likewise.
36847
36848 2009-08-21  Eric Blake  <ebb9@byu.net>
36849
36850         popen: simplify access to original popen
36851         * lib/popen.c (rpl_popen): No need to worry about popen being a
36852         macro.
36853         Reported by Bruno Haible.
36854
36855 2009-08-20  Eric Blake  <ebb9@byu.net>
36856
36857         build: avoid some compiler warnings
36858         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36859         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36860         type.
36861         (new_exclude_segment, excluded_file_pattern_p)
36862         (excluded_file_name_p): Reduce scope.
36863         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36864         old-style declaration.
36865
36866 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36867
36868         * tests/test-exclude1.sh: Handle Windows EOL.
36869         * tests/test-exclude2.sh: Likewise.
36870         * tests/test-exclude3.sh: Likewise.
36871         * tests/test-exclude4.sh: Likewise.
36872         * tests/test-exclude5.sh: Likewise.
36873         * tests/test-exclude6.sh: Likewise.
36874         * tests/test-exclude7.sh: Likewise.
36875
36876 2009-08-19  Akim Demaille  <demaille@gostai.com>
36877
36878         bootstrap: find sha1sum when named gsha1sum.
36879         * bootstrap (find_tool): New.
36880         ($SHA1SUM): New.
36881         Use it.
36882
36883 2009-08-20  Jim Meyering  <meyering@redhat.com>
36884
36885         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36886         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36887         expression that converts "." in a file name to "\." in the resulting
36888         regexp.  Start with a dummy statement, so that prior shell variable
36889         definitions are expanded portably.  Reported by Simon Josefsson.
36890
36891 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36892
36893         Fix polling for writeability of a screen buffer.
36894         * lib/poll.c: Distinguish input and screen buffers for the
36895         Win32 implementation.
36896         * lib/select.c: Likewise.
36897
36898 2009-08-19  Eric Blake  <ebb9@byu.net>
36899
36900         popen-safer: prevent popen from clobbering std descriptors
36901         * modules/popen-safer: New file.
36902         * lib/popen-safer.c: Likewise.
36903         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36904         * lib/stdio--.h (popen): Provide override.
36905         * lib/stdio-safer.h (popen_safer): Provide declaration.
36906         * tests/test-popen.c (includes): Partially test this.
36907         * modules/popen-safer-tests: New file, for more tests.
36908         * tests/test-popen-safer.c: Likewise.
36909         * MODULES.html.sh (file stream based Input/Output): Mention it.
36910
36911         tests: test some of the *-safer modules
36912         * modules/fopen-safer (Depends-on): Add fopen.
36913         * modules/fcntl-safer (Depends-on): Add fcntl.
36914         * modules/stdlib-safer (Depends-on): Add stdlib.
36915         (configure.ac): Set indicator.
36916         * modules/unistd-safer (configure.ac): Likewise.
36917         * modules/tmpfile-safer (configure.ac): Likewise.
36918         (Depends-on): Add tmpfile.
36919         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36920         active.
36921         * tests/test-fopen.c (includes): Test safer versions when they are
36922         in use.
36923         * tests/test-open.c (includes): Likewise.
36924
36925         popen: fix cygwin 1.5 bug when stdin closed
36926         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36927         * modules/popen: New file.
36928         * modules/popen-tests: Likewise.
36929         * tests/test-popen.c: Likewise.
36930         * m4/popen.m4: Likewise.
36931         * lib/popen.c: Likewise.
36932         * lib/stdio.in.h (popen): New declaration.
36933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36934         * modules/stdio (Makefile.am): Likewise.
36935         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36936
36937 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36938
36939         maint.mk: give full control over update-copyright exclusions
36940         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36941         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36942         (update-copyright): Don't force inclusion of top-level
36943         ChangeLog.  Don't force exclusion of all COPYING files, but make
36944         them the default exclusion instead.
36945
36946 2009-08-16  Bruno Haible  <bruno@clisp.org>
36947
36948         Fix test failures on Solaris 10.
36949         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36950         tests when Solaris iconv() is used.
36951         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36952         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36953         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36954         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36955         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36956
36957 2009-08-16  Bruno Haible  <bruno@clisp.org>
36958
36959         Fix test failures on Solaris 10.
36960         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36961         'tr' program and pass it as first argument.
36962         * tests/test-pipe-filter-gi1.sh: Likewise.
36963         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36964         program as first argument.
36965         * tests/test-pipe-filter-gi1.c (main): Likewise.
36966
36967 2009-08-16  Eric Blake  <ebb9@byu.net>
36968
36969         fpurge: fix previous commits
36970         * modules/fpurge (Makefile.am): Make replacement conditional,
36971         partially reverting 2007-04-29 change; missed in previous
36972         attempt.
36973         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36974         is missing.
36975
36976 2009-08-16  Bruno Haible  <bruno@clisp.org>
36977
36978         Clarify fpurge's effect on the file position.
36979         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36980         * tests/test-fpurge.c (main): Make a second pass for checking the file
36981         position.
36982
36983 2009-08-16  Bruno Haible  <bruno@clisp.org>
36984
36985         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36986         declaration of fpurge is missing.
36987         * tests/test-fpurge.c (main): Check that the file has not more contents
36988         than expected. Close the file before removing it.
36989
36990 2009-08-15  Eric Blake  <ebb9@byu.net>
36991
36992         fpurge: don't wrap working cygwin implementation
36993         * lib/fpurge.c (fpurge): Fix comment typo.
36994         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36995         1.7 to avoid replacement.
36996         * tests/test-fpurge.c (main): Enhance test.
36997
36998 2009-08-15  Eric Blake  <ebb9@byu.net>
36999         and Jim Meyering  <meyering@redhat.com>
37000
37001         test-update-copyright: skip if perl is insufficient
37002         * tests/test-update-copyright.sh: Failure to run maintainer tool
37003         should not cause testsuite failure on cygwin 1.5.
37004
37005 2009-08-14  Eric Blake  <ebb9@byu.net>
37006
37007         doc: mention more functions added in cygwin 1.7.0
37008         * doc/posix-headers/limits.texi (limits.h): Update for recent
37009         cygwin additions.
37010         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37011         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37012         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37013         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37014         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37015
37016 2009-08-14  Eric Blake  <ebb9@byu.net>
37017
37018         maint.mk: simplify update-copyright rule
37019         * top/maint.mk (update-copyright-local): Delete, and document how
37020         to do it in cfg.mk instead.
37021         (update-copyright-exclude-regexp): Delete, and document how to do
37022         it in .x-update-copyright instead.
37023         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37024         exclude ChangeLog.
37025
37026 2009-08-14  Bruno Haible  <bruno@clisp.org>
37027
37028         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37029
37030 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37031
37032         maint.mk: support update-copyright-env
37033         * top/maint.mk (update-copyright-env): Define place-holder.
37034         (update-copyright): Expand $(update-copyright-env) before
37035         invoking update-copyright.
37036
37037 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37038
37039         update-copyright: implement forced reformatting
37040         * build-aux/update-copyright: Implement and document
37041         UPDATE_COPYRIGHT_FORCE.
37042         * tests/test-update-copyright.sh: Test it.
37043
37044 2009-08-14  Eric Blake  <ebb9@byu.net>
37045         and Bruno Haible  <bruno@clisp.org>
37046
37047         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37048         * tests/test-locale.c: Revert previous patch related to NULL.
37049         * tests/test-stdio.c: Likewise.
37050         * tests/test-stdlib.c: Likewise.
37051         * tests/test-string.c: Likewise.
37052         * tests/test-unistd.c: Likewise.
37053         * modules/time-tests (Depends-on): Add verify.
37054         * modules/wchar-tests (Depends-on): Likewise.
37055         * tests/test-time.c: Test for NULL compliance.
37056         * tests/test-wchar.c: Likewise.
37057         * modules/locale (Depends-on): Add stddef.
37058         * modules/stdio (Depends-on): Likewise.
37059         * modules/stdlib (Depends-on): Likewise.
37060         * modules/string (Depends-on): Likewise.
37061         * modules/time (Depends-on): Likewise.
37062         * modules/unistd (Depends-on): Likewise.
37063         * modules/wchar (Depends-on): Likewise.
37064         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37065         * lib/stdlib.in.h (includes): Likewise.
37066         * lib/string.in.h (includes): Likewise.
37067         * lib/time.in.h (includes): Likewise.
37068         * lib/unistd.in.h (includes): Likewise.
37069         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37070         replaced.
37071         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37072         * m4/stddef_h.m4: New file.
37073         * modules/stddef: Likewise.
37074         * lib/stddef.in.h: Likewise.
37075         * modules/stddef-tests: Likewise.
37076         * tests/test-stddef.c: Likewise.
37077         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37078         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37079         * doc/posix-headers/locale.texi (locale.h): Likewise.
37080         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37081         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37082         * doc/posix-headers/string.texi (string.h): Likewise.
37083         * doc/posix-headers/time.texi (time.h): Likewise.
37084         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37085         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37086
37087 2009-08-14  Eric Blake  <ebb9@byu.net>
37088
37089         doc: improve git diff of texinfo files
37090         * .gitattributes: Add rule for *.texi files, with hint on how to
37091         use it.
37092         Copied from m4, and based on a report by Bruno Haible.
37093
37094 2009-08-14  Bruno Haible  <bruno@clisp.org>
37095
37096         Disable multithread support by default on Cygwin 1.5.x for real.
37097         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37098
37099 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37100
37101         update-copyright: much ado about intervals
37102         * build-aux/update-copyright: Implement and document
37103         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37104         of copyright year intervals.
37105         Also, document UPDATE_COPYRIGHT_YEAR.
37106         * tests/test-update-copyright.sh: Test it.
37107
37108         update-copyright: convert 2-digit to 4-digit years
37109         * build-aux/update-copyright: Implement and document.
37110         * tests/test-update-copyright.sh: Update.
37111
37112 2009-08-14  Jim Meyering  <meyering@redhat.com>
37113
37114         test-exclude: avoid coreutils "make check" failure
37115         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37116         just as in test-argmatch.c.
37117
37118 2009-08-13  Eric Blake  <ebb9@byu.net>
37119
37120         test-dup2: fix bad assumption
37121         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37122         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37123
37124         test-version-etc: fix CRLF portability issue
37125         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37126         recognize \r.
37127         * tests/test-argp-version-etc-1.sh: Likewise.
37128
37129         getopt: update client modules
37130         * modules/argp (Depends-on): Use getopt-gnu.
37131         * modules/git-merge-changelog (Depends-on): Likewise.
37132         * modules/long-options (Depends-on): Likewise.
37133         * modules/xstrtol (Depends-on): Likewise.
37134
37135 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37136
37137         * tests/test-version-etc.sh: Don't fail on different
37138         project/version.  Don't fail on CRLF differences.  Rewrite to use
37139         multiple -e instead of multiple sed forks, suggested by Eric Blake
37140         <ebb9@byu.net>.
37141         * tests/test-argp-version-etc-1.sh: Likewise.
37142
37143 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37144
37145         * tests/test-version-etc.sh: Don't fail on different
37146         project/version.
37147
37148 2009-08-12  Bruno Haible  <bruno@clisp.org>
37149
37150         Tests for modules 'getopt-posix', 'getopt-gnu'.
37151         * modules/getopt-posix-tests: New file.
37152         * tests/test-getopt.c: New file.
37153         * tests/test-getopt.h: New file.
37154         * tests/test-getopt_long.h: New file.
37155
37156         New modules 'getopt-posix', 'getopt-gnu'.
37157         * modules/getopt-gnu: New file, renamed from modules/getopt.
37158         * modules/getopt-posix: New file.
37159         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37160         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37161         (gl_GETOPT): Remove macro.
37162         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37163         Disable the test against BSD systems that declare optreset. Test
37164         against mingw bug. Test against lack of support of optional arguments
37165         on many platforms.
37166         * doc/glibc-headers/getopt.texi: Update module name and list of
37167         relevant platforms.
37168         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37169         'getopt-gnu' and more portability problems.
37170         * NEWS: Mention the changes.
37171
37172 2009-08-12  Bruno Haible  <bruno@clisp.org>
37173
37174         Ensure that optarg etc. get declared by <unistd.h>.
37175         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37176         AC_USE_SYSTEM_EXTENSIONS.
37177         * modules/getopt (Depends-on): Add 'extensions'.
37178
37179 2009-08-12  Bruno Haible  <bruno@clisp.org>
37180
37181         Avoid test link errors.
37182         * modules/pipe-filter-ii-tests (Makefile.am): Define
37183         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37184         * modules/pipe-filter-gi-tests (Makefile.am): Define
37185         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37186         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37187
37188 2009-08-12  Bruno Haible  <bruno@clisp.org>
37189
37190         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37191         gl_GETOPT_SUBSTITUTE before.
37192         (gl_GETOPT): Use it.
37193         * m4/argp.m4 (gl_ARGP): Update.
37194         Reported by Sergey Poznyakoff.
37195
37196         * m4/getopt.m4: Reorder macros.
37197         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37198         (gl_GETOPT_SUBSTITUTE): Remove macro.
37199
37200 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37201
37202         Minor improvement in gitlog-to-changelog
37203
37204         * build-aux/gitlog-to-changelog: New option `--format' makes
37205         output format string configurable.
37206
37207 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37208
37209         Optimize exclude: use hash tables for non-wildcard patterns.
37210
37211         * lib/exclude.c: Include hash.h and mbuiter.h
37212         (struct exclude_pattern, exclude_segment): New data types.
37213         (struct exclude): Rewrite.
37214         (fnmatch_pattern_has_wildcards): New function.
37215         (new_exclude_segment, free_exclude_segment): New functions.
37216         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37217         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37218         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37219         * modules/exclude: Depend on hash and mbuiter.
37220
37221         * modules/exclude-tests: New file.
37222         * tests/test-exclude.c: New file.
37223         * tests/test-exclude1.sh: New file.
37224         * tests/test-exclude2.sh: New file.
37225         * tests/test-exclude3.sh: New file.
37226         * tests/test-exclude4.sh: New file.
37227         * tests/test-exclude5.sh: New file.
37228         * tests/test-exclude6.sh: New file.
37229         * tests/test-exclude7.sh: New file.
37230
37231 2009-08-12  Bruno Haible  <bruno@clisp.org>
37232
37233         Ensure that getopt() gets declared by <unistd.h>.
37234         * lib/unistd.in.h: Conditionally include getopt.h.
37235         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37236         Set GNULIB_UNISTD_H_GETOPT.
37237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37238         GNULIB_UNISTD_H_GETOPT.
37239         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37240
37241 2009-08-12  Bruno Haible  <bruno@clisp.org>
37242
37243         Clarify logic.
37244         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37245         gl_replace_getopt instead of GETOPT_H.
37246
37247 2009-08-12  Bruno Haible  <bruno@clisp.org>
37248
37249         * m4/getopt.m4: Add comments.
37250
37251 2009-08-12  Bruno Haible  <bruno@clisp.org>
37252
37253         Disable multithread support by default on Cygwin 1.5.x.
37254         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37255         set gl_use_threads=no if not specified otherwise.
37256
37257 2009-08-11  Bruno Haible  <bruno@clisp.org>
37258
37259         Avoid compilation error on NetBSD 5.0.
37260         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37261         * tests/test-stdio.c: Likewise.
37262         * tests/test-stdlib.c: Likewise.
37263         * tests/test-string.c: Likewise.
37264         * tests/test-unistd.c: Likewise.
37265         Reported by Greg Troxel <gdt@ir.bbn.com>
37266         at <https://savannah.gnu.org/support/?106973>.
37267
37268 2009-08-11  Bruno Haible  <bruno@clisp.org>
37269
37270         * modules/dup2-tests (Depends-on): Remove close.
37271
37272         Undo 2009-07-19 commit.
37273         * modules/acl-tests (Depends-on): Remove close.
37274         * modules/binary-io-tests (Depends-on): Likewise.
37275         * modules/closein-tests (Depends-on): Likewise.
37276         * modules/flock-tests (Depends-on): Likewise.
37277         * modules/fsync-tests (Depends-on): Likewise.
37278         * modules/lseek-tests (Depends-on): Likewise.
37279         * modules/pipe-tests (Depends-on): Likewise.
37280         * modules/posix_spawn-tests (Depends-on): Likewise.
37281         * modules/posix_spawnp-tests (Depends-on): Likewise.
37282         * modules/stat-time-tests (Depends-on): Likewise.
37283         * modules/yesno-tests (Depends-on): Likewise.
37284
37285 2009-08-10  Bruno Haible  <bruno@clisp.org>
37286
37287         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37288
37289 2009-08-10  Bruno Haible  <bruno@clisp.org>
37290
37291         Fix a gcc warning.
37292         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37293
37294 2009-08-10  Bruno Haible  <bruno@clisp.org>
37295
37296         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37297         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37298         not only the first time.
37299         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37300         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37301         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37302         is 1, not only the the first time.
37303
37304 2009-08-10  Bruno Haible  <bruno@clisp.org>
37305
37306         Make it possible to use module 'gethostname' without module 'close'.
37307         * lib/unistd.in.h (close): Evoke a link error only if
37308         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37310         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37311         * modules/unistd (Makefile.am): Substitute
37312         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37313         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37314         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37315         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37316         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37317         * modules/sys_ioctl (Makefile.am): Substitute
37318         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37319         * modules/socket (configure.ac): On native Windows, set
37320         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37321         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37322         Reported by Sam Steingold <sds@gnu.org>.
37323
37324 2009-08-10  Bruno Haible  <bruno@clisp.org>
37325
37326         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37327         * modules/ioctl (configure.ac): Likewise.
37328
37329 2009-08-10  Bruno Haible  <bruno@clisp.org>
37330
37331         Avoid collision between gnulib wrapper and libintl wrapper.
37332         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37333         already defined in intl/printf.c.
37334         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37335         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37336
37337 2009-08-09  Bruno Haible  <bruno@clisp.org>
37338
37339         Make <sys/select.h> really self-contained, also on Solaris 10.
37340         * lib/sys_select.in.h: Include <string.h>.
37341         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37342         Solaris 10 problem.
37343         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37344         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37345         Reported by Jim Meyering.
37346
37347 2009-08-09  Bruno Haible  <bruno@clisp.org>
37348
37349         Avoid warnings from 'aclocal' that are due to a use of macro name
37350         AM_XGETTEXT_OPTION that is not defined in automake.
37351         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37352         automake.
37353         * modules/error (configure.ac): Likewise.
37354         * modules/propername (configure.ac): Likewise.
37355         * modules/vasprintf (configure.ac): Likewise.
37356         * modules/verror (configure.ac): Likewise.
37357         * modules/xprintf (configure.ac): Likewise.
37358         * modules/xvasprintf (configure.ac): Likewise.
37359
37360 2009-08-08  Bruno Haible  <bruno@clisp.org>
37361
37362         Avoid compilation error in C++ mode.
37363         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37364         Reported by Sam Steingold <sds@gnu.org>.
37365
37366 2009-08-08  Bruno Haible  <bruno@clisp.org>
37367
37368         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37369         for the various Unix platforms.
37370         * doc/posix-headers/limits.texi: Update platforms list regarding
37371         HOST_NAME_MAX.
37372         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37373
37374 2009-08-07  Jim Meyering  <meyering@redhat.com>
37375
37376         selinux-at: fix typo in a comment
37377         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37378         Spotted by Paolo Bonzini.
37379
37380         selinux-at: remove redundant m4 code, add documentation
37381         * modules/selinux-at (configure.ac): Remove redundant code.
37382         LIB_SELINUX is already set via the dependent module, selinux-h.
37383         (Include): Add quotes around selinux-at.h.
37384         * lib/selinux-at.h: Add documentation.
37385         Reported by Bruno Haible in
37386         http://marc.info/?l=gnulib-bug&m=124958988300749
37387
37388 2009-08-07  Bruno Haible  <bruno@clisp.org>
37389
37390         Avoid link error on MacOS X 10.3 and 10.4.
37391         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37392         on non-ELF systems.
37393         * lib/argp-pv.c (argp_program_version): Likewise.
37394         Reported by Simon Josefsson.
37395
37396 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37397
37398         * tests/test-version-etc.sh: Use $EXEEXT.
37399
37400 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37401
37402         update-copyright: update documentation to point to maint.mk
37403         * build-aux/update-copyright: Here.
37404
37405 2009-08-06  Jim Meyering  <meyering@redhat.com>
37406
37407         maint.mk: support update-copyright-local
37408         * top/maint.mk (update-copyright-local): Define place-holder.
37409         (update-copyright): Depend on $(update-copyright-local).
37410
37411 2009-08-06  Jim Meyering  <meyering@redhat.com>
37412
37413         selinux-at: new module
37414         Initially written for coreutils, this module will soon be
37415         used by findutils, too.
37416         * MODULES.html.sh [Misc]: Add selinux-at.
37417         * lib/selinux-at.h: New file, from coreutils.
37418         * lib/selinux-at.c: Likewise.
37419         * modules/selinux-at: Likewise.
37420         (License): Change from LGPL to GPL, since it depends
37421         on the GPL'd openat module.
37422
37423         doc: update README
37424         * README: Remove references to cogito.
37425         Remove cvs-repo-updating instructions from 2007.
37426         Don't imply that CVS is better if you have limited disk space.
37427
37428 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37429
37430         update-copyright: support C-style comments
37431         * build-aux/update-copyright: Implement and document.
37432         * tests/test-update-copyright.sh: Test.
37433
37434 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37435
37436         update-copyright: support omitted "(C)"
37437         * build-aux/update-copyright: Implement and document.  Also,
37438         allow variable whitespace before "(C)".
37439         * tests/test-update-copyright.sh: Test.
37440
37441 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37442
37443         update-copyright: don't trip on non-FSF copyright statements
37444         * build-aux/update-copyright: Fix so that the first correctly
37445         formatted FSF copyright statement is recognized no matter what
37446         appears before it.  Update documentation.
37447         * tests/test-update-copyright.sh: Test that.
37448
37449 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37450
37451         update-copyright: clean up code a little
37452         * build-aux/update-copyright: Append "_re" to the name of any
37453         variable holding a regular expression.
37454         Replace "old" and "new" with "stmt" in variable names.
37455         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37456         handled correctly.
37457         Format code more consistently.
37458
37459 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37460
37461         update-copyright-tests: improve portability
37462         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37463         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37464
37465 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37466
37467         update-copyright: support @copyright{} and &copy;
37468         * build-aux/update-copyright: Implement and document.
37469         * tests/test-update-copyright.sh: Test.
37470
37471 2009-08-04  Jim Meyering  <meyering@redhat.com>
37472
37473         update-copyright-tests: correctly test EOL=\r\n handling
37474         * tests/test-update-copyright.sh: Put \r at the end of some lines
37475         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37476
37477         maint.mk: make update-copyright exclusion list more configurable
37478         * top/maint.mk (update-copyright): Default to excluding COPYING,
37479         but allow an override, in case someone does want to update that file.
37480
37481         maint.mk: don't update copyright date in COPYING
37482         * top/maint.mk (update-copyright): Exclude COPYING.
37483
37484         maint.mk: add a copyright-updating rule
37485         * top/maint.mk (update-copyright): New rule.
37486         Derived from coreutils/Makefile.am.
37487
37488         update-copyright: rename some variables
37489         * build-aux/update-copyright: Rename a few variables for clarity.
37490         Tweak syntax.  List Joel E. Denny as coauthor.
37491
37492 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37493
37494         update-copyright: fix bug for 2-digit last year and add tests
37495         * build-aux/update-copyright: Fix bug.
37496         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37497         specified.
37498         * modules/update-copyright-tests: New
37499         * tests/test-update-copyright.sh: New.
37500
37501 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37502
37503         update-copyright: handle leading tabs in line prefix
37504         * build-aux/update-copyright: Count leading tabs as 8 spaces
37505         when computing margin.  This helps with the formatting of
37506         ChangeLogs, for example.
37507         Fix documentation a little.
37508
37509 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37510
37511         update-copyright: support EOL=\r\n
37512         * build-aux/update-copyright: Implement that.
37513
37514 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37515
37516         update-copyright: automatically format copyright statements
37517         * build-aux/update-copyright: Implement that.
37518         Also, be a little more predictable and safer by always failing
37519         when the full copyright format is not perfectly recognized as an
37520         unbroken whole.  Discussed at
37521         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37522         Rewrite documentation.
37523
37524 2009-08-03  Bruno Haible  <bruno@clisp.org>
37525
37526         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37527
37528 2009-08-02  Bruno Haible  <bruno@clisp.org>
37529
37530         Tests for module 'uname'.
37531         * modules/uname-tests: New file.
37532         * tests/test-uname.c: New file.
37533
37534         New module 'uname'.
37535         * lib/uname.c: New file.
37536         * m4/uname.m4: New file.
37537         * modules/uname: New file.
37538         * doc/posix-functions/uname.texi: Mention the new module.
37539
37540 2009-08-02  Bruno Haible  <bruno@clisp.org>
37541
37542         Tests for module 'sys_utsname'.
37543         * modules/sys_utsname-tests: New file.
37544         * tests/test-sys_utsname.c: New file.
37545
37546         New module 'sys_utsname'.
37547         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37548         * m4/sys_utsname_h.m4: New file.
37549         * modules/sys_utsname: New file.
37550         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37551
37552 2009-08-02  Bruno Haible  <bruno@clisp.org>
37553
37554         Implicitly initialize the sockets library.
37555         * lib/gethostname.c: Include sockets.h.
37556         (rpl_gethostname): Invoke gl_sockets_startup.
37557         * lib/socket.c: Include sockets.h.
37558         (rpl_socket): Invoke gl_sockets_startup.
37559         * modules/gethostname (Depends-on): Add sockets.
37560         * modules/socket (Depends-on): Likewise.
37561         * tests/test-poll.c: Don't include sockets.h.
37562         (main): Don't invoke gl_sockets_startup.
37563         * tests/test-select.c: Don't include sockets.h.
37564         (main): Don't invoke gl_sockets_startup.
37565
37566 2009-08-02  Bruno Haible  <bruno@clisp.org>
37567
37568         Allow multiple calls to gl_sockets_startup.
37569         * lib/sockets.c (initialized_sockets_version): New variable.
37570         (gl_sockets_startup): Do nothing if already called for this or a higher
37571         version.
37572         (gl_sockets_cleanup): Reset initialized_sockets_version.
37573
37574 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37575
37576         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37577         different project/version.
37578
37579 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37580             Bruno Haible  <bruno@clisp.org>
37581
37582         Tests for module 'pipe-filter-gi'.
37583         * modules/pipe-filter-gi-tests: New file.
37584         * tests/test-pipe-filter-gi1.sh: New file.
37585         * tests/test-pipe-filter-gi1.c: New file.
37586         * tests/test-pipe-filter-gi2.sh: New file.
37587         * tests/test-pipe-filter-gi2-main.c: New file.
37588         * tests/test-pipe-filter-gi2-child.c: New file.
37589
37590         New module 'pipe-filter-gi'.
37591         * lib/pipe-filter-gi.c: New file.
37592         * modules/pipe-filter-gi: New file.
37593
37594 2009-08-02  Bruno Haible  <bruno@clisp.org>
37595             Paolo Bonzini  <bonzini@gnu.org>
37596
37597         Tests for module 'pipe-filter-ii'.
37598         * modules/pipe-filter-ii-tests: New file.
37599         * tests/test-pipe-filter-ii1.sh: New file.
37600         * tests/test-pipe-filter-ii1.c: New file.
37601         * tests/test-pipe-filter-ii2.sh: New file.
37602         * tests/test-pipe-filter-ii2-main.c: New file.
37603         * tests/test-pipe-filter-ii2-child.c: New file.
37604
37605         New module 'pipe-filter-ii'.
37606         * lib/pipe-filter.h: New file.
37607         * lib/pipe-filter-ii.c: New file.
37608         * lib/pipe-filter-aux.h: New file.
37609         * modules/pipe-filter-ii: New file.
37610
37611 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37612
37613         * lib/gc-libgcrypt.c: Change copyright to FSF.
37614         * lib/gc-gnulib.c: Likewise.
37615
37616 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37617
37618         * lib/gethostname.c: Include limits.h.
37619
37620 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37621             Bruno Haible  <bruno@clisp.org>
37622
37623         Ensure HOST_NAME_MAX as part of the gethostname module.
37624         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37625         define also HOST_NAME_MAX.
37626         * tests/test-gethostname.c: Include <limits.h>.
37627         (main): Check also HOST_NAME_MAX.
37628         * doc/posix-headers/limits.texi: Document the mingw problem.
37629
37630 2009-08-02  Bruno Haible  <bruno@clisp.org>
37631
37632         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37633         Add comments.
37634
37635 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37636
37637         * lib/gethostname.c: Add Windows wrapper.
37638         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37639         * modules/gethostname: Depend on sys_socket & errno, for also
37640         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37641         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37642
37643 2009-07-31  Jim Meyering  <meyering@redhat.com>
37644
37645         getloadavg: fix symbol name in comment
37646         * lib/getloadavg.c: Correct a typo I introduced when adding
37647         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37648         Matt Kraai spotted the problem.
37649
37650 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37651
37652         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37653         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37654         code also if ! defined N_NAME_POINTER.
37655         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37656         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37657         but the n_name member is a 12-byte array.
37658
37659 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37660
37661         update-copyright: generalize comment handling
37662         * build-aux/update-copyright: Handle copyright statements
37663         within more comment styles.
37664         Document usage.
37665         Report any file with an external copyright holder or parse failure.
37666
37667 2009-07-29  Jim Meyering  <meyering@redhat.com>
37668
37669         mktime: correct setting of REPLACE_MKTIME
37670         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37671
37672         update-copyright: new module
37673         * modules/update-copyright: New file.
37674         * build-aux/update-copyright: New file.
37675         * MODULES.html.sh (maint+release support): Add update-copyright.
37676
37677 2009-07-27  Bruno Haible  <bruno@clisp.org>
37678
37679         Fix compilation error when <ctime> is used and mktime is replaced.
37680         * lib/time.in.h (mktime): New declaration.
37681         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37682         REPLACE_MKTIME instead of defining mktime in config.h.
37683         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37684         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37685         Reported by Ross McFarland <rwmcfa1@neces.com>.
37686
37687 2009-07-27  Bruno Haible  <bruno@clisp.org>
37688
37689         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37690         Reported by Matt Kraai <mkraai@beckman.com>.
37691
37692 2009-07-25  Jim Meyering  <meyering@redhat.com>
37693
37694         maint.mk: avoid warnings about missing files
37695         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37696         diagnostic when .prev-version does not exist.
37697         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37698         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37699         nonexistent cfg.mk.
37700         Suggestions from Simon Josefsson.
37701
37702 2009-07-25  Bruno Haible  <bruno@clisp.org>
37703
37704         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37705         defined as macros. Needed on QNX 6.4.1.
37706         Reported by Matt Kraai <mkraai@beckman.com>.
37707
37708 2009-07-23  Jim Meyering  <meyering@redhat.com>
37709
37710         maint.mk: invoke "make dist" with a working value of XZ_OPT
37711         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37712
37713 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37714
37715         Make fseeko.c compile on QNX.
37716         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37717
37718 2009-07-22  Peter Simons  <simons@cryp.to>
37719
37720         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37721         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37722         * lib/md4.h: Likewise.
37723         * lib/md5.h: Likewise.
37724         * lib/sha1.h: Likewise.
37725         * lib/sha256.h: Likewise.
37726         * lib/sha512.h: Likewise.
37727
37728         tests-sha1: don't assign literal string to 'char *' variable
37729         * tests/test-sha1.c (main): Declare locals with "const" to match
37730         attributes of the right hand side.
37731
37732 2009-07-21  Eric Blake  <ebb9@byu.net>
37733
37734         dup2: fix more mingw problems
37735         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37736         fd to itself.
37737         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37738         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37739         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37740         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37741         care of mingw bugs.
37742
37743 2009-07-21  Jim Meyering  <meyering@redhat.com>
37744
37745         vc-list-files: avoid failure when /bin/sh is dash
37746         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37747         On some Debian based systems, /bin/sh is a symlink to dash, and running
37748         this command would omit the "/" following each 'tests' prefix:
37749           dash -x build-aux/vc-list-files -C . tests
37750         That is because bash and dash work differently:
37751           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37752           bash ok
37753           dash odd
37754
37755 2009-07-21  Eric Blake  <ebb9@byu.net>
37756
37757         dup2-tests: test previous patch
37758         * modules/dup2-tests: New file.
37759         * tests/test-dup2.c: Likewise.
37760         * tests/test-open.c (main): Avoid unspecified behavior.
37761         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37762         test.
37763
37764         dup2: work around mingw and cygwin 1.5 bug
37765         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37767         * modules/unistd (Makefile.am): Substitute it.
37768         * lib/unistd.in.h (dup2): Declare the replacement.
37769         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37770         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37771         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37772         * modules/execute (Depends-on): Add dup2.
37773         * modules/fseterr (Depends-on): Likewise.
37774         * modules/pipe (Depends-on): Likewise.
37775         * modules/posix_spawn-internal (Depends-on): Likewise.
37776
37777 2009-07-21  Bruno Haible  <bruno@clisp.org>
37778
37779         * modules/.gitattributes: New file.
37780
37781 2009-07-20  Bruno Haible  <bruno@clisp.org>
37782
37783         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37784         (main): Use it.
37785
37786 2009-07-20  Eric Blake  <ebb9@byu.net>
37787
37788         test-pipe: make a bit more robust.
37789         * tests/test-pipe.c (myerr): Allow error messages regardless of
37790         what we do to stderr.
37791         (test_pipe): Rearrange to avoid deadlock.
37792         (child_main): Try a larger read, to ensure we avoided deadlock.
37793         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37794         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37795         if misused.
37796
37797 2009-07-19  Jim Meyering  <meyering@redhat.com>
37798
37799         fts: avoid false-positive cycle-detection
37800         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37801         for each new command line argument.
37802
37803 2009-07-19  Bruno Haible  <bruno@clisp.org>
37804
37805         Fix build error on mingw with the modules sys_select and unistd.
37806         * modules/acl-tests (Depends-on): Add close.
37807         * modules/binary-io-tests (Depends-on): Likewise.
37808         * modules/closein-tests (Depends-on): Likewise.
37809         * modules/flock-tests (Depends-on): Likewise.
37810         * modules/fsync-tests (Depends-on): Likewise.
37811         * modules/lseek-tests (Depends-on): Likewise.
37812         * modules/pipe-tests (Depends-on): Likewise.
37813         * modules/posix_spawn-tests (Depends-on): Likewise.
37814         * modules/posix_spawnp-tests (Depends-on): Likewise.
37815         * modules/stat-time-tests (Depends-on): Likewise.
37816         * modules/yesno-tests (Depends-on): Likewise.
37817
37818 2009-07-19  Bruno Haible  <bruno@clisp.org>
37819
37820         Unify conditionals.
37821         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37822         macros, not at the compiler macros.
37823         * lib/pipe.c: Likewise.
37824         * lib/execute.c: Likewise.
37825         * lib/spawni.c: Likewise.
37826
37827 2009-07-19  Bruno Haible  <bruno@clisp.org>
37828
37829         Fix handling of closed stdin/stdout/stderr on mingw.
37830         * lib/w32spawn.h: Include unistd.h.
37831         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37832         file descriptor with O_NOINHERIT flag.
37833         (fd_safer_noinherit): New function, based on fd-safer.c.
37834         (dup_safer_noinherit): New function, based on dup-safer.c.
37835         (undup_safer_noinherit): New function.
37836         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37837         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37838         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37839         instead of fd_safer.
37840         * tests/test-pipe.c: Include <windows.h>.
37841         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37842         result.
37843
37844         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37845         from main.
37846         (test_pipe): Pass an extra argument for disambiguation.
37847         (main): Invoke parent_main or child_main.
37848
37849         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37850         consistently.
37851
37852 2009-07-18  Eric Blake  <ebb9@byu.net>
37853
37854         test-pipe: fix mingw build
37855         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37856
37857 2009-07-18  Bruno Haible  <bruno@clisp.org>
37858
37859         * modules/pipe-tests (Makefile.am): Fix typo.
37860
37861 2009-07-18  Eric Blake  <ebb9@byu.net>
37862
37863         error: fix mingw build
37864         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37865         Reported by Bruno Haible.
37866
37867         error: avoid undefined use of stdout
37868         * lib/error.c (error, error_at_line): Check that fd 1 is open
37869         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37870         is handling faults and the close_stdout module wants to report the
37871         detection of closed stdout as an error.
37872
37873 2009-07-17  Eric Blake  <ebb9@byu.net>
37874
37875         pipe: be robust in face of closed fds
37876         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37877         should cause child to misbehave.
37878         * modules/pipe-tests: New module.
37879         * tests/test-pipe.c: New file.
37880         * tests/test-pipe.sh: New file.
37881         Reported by Akim Demaille.
37882
37883 2009-07-14  Bruno Haible  <bruno@clisp.org>
37884
37885         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37886         Reported by anonymous kc.
37887
37888 2009-07-07  Jim Meyering  <meyering@redhat.com>
37889
37890         maint.mk: don't look for translatable strings in *.m4 or *.mk
37891         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37892         when searching for translatable strings.
37893
37894 2009-07-05  Jim Meyering  <meyering@redhat.com>
37895
37896         remove superfluous parentheses in STREQ definition
37897         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37898         * lib/getugroups.c (STREQ): Likewise.
37899         * lib/fnmatch.c (STREQ): Likewise.
37900         Spotted by Bruno Haible.
37901
37902 2009-07-04  Jim Meyering  <meyering@redhat.com>
37903
37904         argv-iter: new module
37905         * MODULES.html.sh: Add argv-iter.
37906         * lib/argv-iter.c, lib/argv-iter.h: New files.
37907         * modules/argv-iter: New file.
37908         * modules/argv-iter-tests: New file.
37909         * tests/test-argv-iter.c: Test it.
37910
37911 2009-07-04  Bruno Haible  <bruno@clisp.org>
37912
37913         Fix assertion.
37914         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37915         contains more exact copies of a given entry than file2, leave the extra
37916         copies unpaired rather than aborting.
37917         Reported by Eric Blake.
37918
37919 2009-07-02  Bruno Haible  <bruno@clisp.org>
37920
37921         Speedup git-merge-changelog for git cherry-pick.
37922         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37923         (entries_mapping_get): New function, extracted from compute_mapping.
37924         (entries_mapping_reverse_get): New function.
37925         (compute_mapping): Add a 'full' argument. Return the result in a
37926         'struct entries_mapping'.
37927         (main): Update. Access the mappings through entries_mapping_get.
37928         Reported by Eric Blake.
37929
37930 2009-07-02  Bruno Haible  <bruno@clisp.org>
37931
37932         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37933         best_i.
37934
37935 2009-07-02  Bruno Haible  <bruno@clisp.org>
37936
37937         Speed up approximate search for matching ChangeLog entries.
37938         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37939         argument. Call fstrcmp_bounded instead of fstrcmp.
37940         (compute_mapping, try_split_merged_entry, main): Update callers.
37941
37942 2009-07-02  Bruno Haible  <bruno@clisp.org>
37943
37944         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37945
37946 2009-06-30  Bruno Haible  <bruno@clisp.org>
37947
37948         Reduce the number of uc_is_cased calls.
37949         * lib/unicase.h (casing_suffix_context_t): Add
37950         'first_char_except_ignorable' field.
37951         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37952         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37953         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37954         Update initializer.
37955         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37956         case-ignorable characters.
37957         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37958         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37959         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37960         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37961         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37962
37963 2009-06-30  Bruno Haible  <bruno@clisp.org>
37964
37965         Tests for module 'unicase/ignorable'.
37966         * modules/unicase/ignorable-tests: New file.
37967         * tests/unicase/test-ignorable.c: New file, generated by
37968         gen-uni-tables.
37969
37970         Tests for module 'unicase/cased'.
37971         * modules/unicase/cased-tests: New file.
37972         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37973         * tests/unicase/test-predicate-part1.h: New file, derived from
37974         tests/unictype/test-predicate-part1.h.
37975         * tests/unicase/test-predicate-part2.h: New file, same as
37976         tests/unictype/test-predicate-part2.h.
37977
37978         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37979         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37980         (output_casing_properties): New function.
37981         (main): Call it.
37982         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37983         * lib/unicase/cased.c: Include unictype/bitmap.h.
37984         (uc_is_cased): Define through a bitmap lookup.
37985         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37986         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37987         (uc_is_case_ignorable): Define through a bitmap lookup.
37988         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37989         lib/unictype/bitmap.h.
37990         (Depends-on): Add inline. Clean up.
37991         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37992         lib/unictype/bitmap.h.
37993         (Depends-on): Add inline. Clean up.
37994         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37995         recognition.
37996         * tests/unicase/test-u16-tolower.c (main): Likewise.
37997         * tests/unicase/test-u32-tolower.c (main): Likewise.
37998
37999 2009-06-30  Bruno Haible  <bruno@clisp.org>
38000
38001         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38002         * lib/unicase/u16-casemap.c: Likewise.
38003         * lib/unicase/u32-casemap.c: Likewise.
38004
38005 2009-06-29  Bruno Haible  <bruno@clisp.org>
38006
38007         Define u32_casefold as a wrapper around u32_ct_casefold.
38008         * lib/unicase/u32-casefold.c: Update.
38009         * modules/unicase/u32-casefold (Depends-on): Add
38010         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38011         unicase/empty-suffix-context. Clean up.
38012
38013         Define u16_casefold as a wrapper around u16_ct_casefold.
38014         * lib/unicase/u16-casefold.c: Update.
38015         * modules/unicase/u16-casefold (Depends-on): Add
38016         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38017         unicase/empty-suffix-context. Clean up.
38018
38019         Define u8_casefold as a wrapper around u8_ct_casefold.
38020         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38021         * lib/unicase/u8-casefold.c: Update.
38022         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38023         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38024
38025         Define u32_totitle as a wrapper around u32_ct_totitle.
38026         * lib/unicase/u32-totitle.c: Update.
38027         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38028         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38029
38030         Define u16_totitle as a wrapper around u16_ct_totitle.
38031         * lib/unicase/u16-totitle.c: Update.
38032         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38033         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38034
38035         Define u8_totitle as a wrapper around u8_ct_totitle.
38036         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38037         functions.
38038         (FUNC): Delegate to U_CT_TOTITLE.
38039         * lib/unicase/u8-totitle.c: Update.
38040         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38041         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38042
38043         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38044         invocation.
38045         * modules/unicase/u32-tolower (Depends-on): Add
38046         unicase/empty-prefix-context, unicase/empty-suffix-context.
38047
38048         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38049         invocation.
38050         * modules/unicase/u16-tolower (Depends-on): Add
38051         unicase/empty-prefix-context, unicase/empty-suffix-context.
38052
38053         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38054         * modules/unicase/u8-tolower (Depends-on): Add
38055         unicase/empty-prefix-context, unicase/empty-suffix-context.
38056
38057         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38058         invocation.
38059         * modules/unicase/u32-toupper (Depends-on): Add
38060         unicase/empty-prefix-context, unicase/empty-suffix-context.
38061
38062         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38063         invocation.
38064         * modules/unicase/u16-toupper (Depends-on): Add
38065         unicase/empty-prefix-context, unicase/empty-suffix-context.
38066
38067         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38068         * modules/unicase/u8-toupper (Depends-on): Add
38069         unicase/empty-prefix-context, unicase/empty-suffix-context.
38070
38071         New module 'unicase/u32-ct-casefold'.
38072         * lib/unicase/u32-ct-casefold.c: New file.
38073         * modules/unicase/u32-ct-casefold: New file.
38074
38075         New module 'unicase/u16-ct-casefold'.
38076         * lib/unicase/u16-ct-casefold.c: New file.
38077         * modules/unicase/u16-ct-casefold: New file.
38078
38079         New module 'unicase/u8-ct-casefold'.
38080         * lib/unicase/u8-ct-casefold.c: New file.
38081         * lib/unicase/u-ct-casefold.h: New file, derived from
38082         lib/unicase/u-casefold.h.
38083         * modules/unicase/u8-ct-casefold: New file.
38084
38085         New module 'unicase/u32-ct-totitle'.
38086         * lib/unicase/u32-ct-totitle.c: New file.
38087         * modules/unicase/u32-ct-totitle: New file.
38088
38089         New module 'unicase/u16-ct-totitle'.
38090         * lib/unicase/u16-ct-totitle.c: New file.
38091         * modules/unicase/u16-ct-totitle: New file.
38092
38093         New module 'unicase/u8-ct-totitle'.
38094         * lib/unicase/u8-ct-totitle.c: New file.
38095         * lib/unicase/u-ct-totitle.h: New file, derived from
38096         lib/unicase/u-totitle.h.
38097         * modules/unicase/u8-ct-totitle: New file.
38098
38099         New module 'unicase/u32-ct-tolower'.
38100         * lib/unicase/u32-ct-tolower.c: New file.
38101         * modules/unicase/u32-ct-tolower: New file.
38102
38103         New module 'unicase/u16-ct-tolower'.
38104         * lib/unicase/u16-ct-tolower.c: New file.
38105         * modules/unicase/u16-ct-tolower: New file.
38106
38107         New module 'unicase/u8-ct-tolower'.
38108         * lib/unicase/u8-ct-tolower.c: New file.
38109         * modules/unicase/u8-ct-tolower: New file.
38110
38111         New module 'unicase/u32-ct-toupper'.
38112         * lib/unicase/u32-ct-toupper.c: New file.
38113         * modules/unicase/u32-ct-toupper: New file.
38114
38115         New module 'unicase/u16-ct-toupper'.
38116         * lib/unicase/u16-ct-toupper.c: New file.
38117         * modules/unicase/u16-ct-toupper: New file.
38118
38119         New module 'unicase/u8-ct-toupper'.
38120         * lib/unicase/u8-ct-toupper.c: New file.
38121         * modules/unicase/u8-ct-toupper: New file.
38122
38123         Add context arguments to u*_casemap functions.
38124         * lib/unicase/unicasemap.h: Include unicase.h.
38125         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38126         suffix_context arguments.
38127         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38128         functions.
38129         (FUNC): Add prefix_context and suffix_context arguments. Use
38130         uc_is_cased and uc_is_case_ignorable.
38131         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38132         * lib/unicase/u16-casemap.c: Likewise.
38133         * lib/unicase/u32-casemap.c: Likewise.
38134         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38135         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38136         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38137         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38138         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38139         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38140
38141         New module 'unicase/u32-suffix-context'.
38142         * lib/unicase/u32-suffix-context.c: New file.
38143         * modules/unicase/u32-suffix-context: New file.
38144
38145         New module 'unicase/u16-suffix-context'.
38146         * lib/unicase/u16-suffix-context.c: New file.
38147         * modules/unicase/u16-suffix-context: New file.
38148
38149         New module 'unicase/u8-suffix-context'.
38150         * lib/unicase/u8-suffix-context.c: New file.
38151         * lib/unicase/u-suffix-context.h: New file.
38152         * modules/unicase/u8-suffix-context: New file.
38153
38154         New module 'unicase/empty-suffix-context'.
38155         * lib/unicase/empty-suffix-context.c: New file.
38156         * modules/unicase/empty-suffix-context: New file.
38157
38158         New module 'unicase/u32-prefix-context'.
38159         * lib/unicase/u32-prefix-context.c: New file.
38160         * modules/unicase/u32-prefix-context: New file.
38161
38162         New module 'unicase/u16-prefix-context'.
38163         * lib/unicase/u16-prefix-context.c: New file.
38164         * modules/unicase/u16-prefix-context: New file.
38165
38166         New module 'unicase/u8-prefix-context'.
38167         * lib/unicase/u8-prefix-context.c: New file.
38168         * lib/unicase/u-prefix-context.h: New file.
38169         * lib/unicase/context.h: New file.
38170         * modules/unicase/u8-prefix-context: New file.
38171
38172         New module 'unicase/empty-prefix-context'.
38173         * lib/unicase/empty-prefix-context.c: New file.
38174         * modules/unicase/empty-prefix-context: New file.
38175
38176         New module 'unicase/ignorable'.
38177         * lib/unicase/ignorable.c: New file.
38178         * modules/unicase/ignorable: New file.
38179
38180         New module 'unicase/cased'.
38181         * lib/unicase/caseprop.h: New file.
38182         * lib/unicase/cased.c: New file.
38183         * modules/unicase/cased: New file.
38184
38185         New functions for case mapping of substrings.
38186         * lib/unicase.h (casing_prefix_context_t): New type.
38187         (unicase_empty_prefix_context): New variable.
38188         (u8_casing_prefix_context, u16_casing_prefix_context,
38189         u32_casing_prefix_context, u8_casing_prefixes_context,
38190         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38191         declarations.
38192         (casing_suffix_context_t): New type.
38193         (unicase_empty_suffix_context): New variable.
38194         (u8_casing_suffix_context, u16_casing_suffix_context,
38195         u32_casing_suffix_context, u8_casing_suffixes_context,
38196         u16_casing_suffixes_context, u32_casing_suffixes_context,
38197         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38198         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38199         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38200         declarations.
38201
38202 2009-06-28  Jim Meyering  <meyering@redhat.com>
38203
38204         boostrap: indent only with spaces
38205         * build-aux/bootstrap: Indent only with spaces, never TABs.
38206
38207         bootstrap: split long lines
38208         * build-aux/bootstrap: Keep line length < 80.
38209
38210         bootstrap: sync from coreutils
38211         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38212         just as autoreconf does.  Verify a list of prerequisite
38213         package-name,version-number pairs if defined in bootstrap.conf.
38214         Refer to README-prereq, if prerequisites are not satisfied.
38215
38216 2009-06-27  Eric Blake  <ebb9@byu.net>
38217
38218         tests: add test for bogus NULL definition
38219         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38220         * tests/test-stdlib.c: Likewise.
38221         * tests/test-string.c: Likewise.
38222         * tests/test-locale.c: Likewise.
38223         * tests/test-unistd.c: Likewise.
38224         * modules/stdio-tests (Depends-on): Add verify.
38225         * modules/stdlib-tests (Depends-on): Likewise.
38226         * modules/string-tests (Depends-on): Likewise.
38227         * modules/locale-tests (Depends-on): Likewise.
38228         * modules/unistd-tests (Depends-on): Likewise.
38229
38230 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38231
38232         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38233         self-explaining comment.
38234         * m4/selinux-selinux-h: Update serial.
38235         (gl_LIBSELINUX): New macro, adding a warning for missing development
38236         packages to code extracted from...
38237         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38238         Add warning for missing development packages here, too.
38239
38240 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38241
38242         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38243
38244 2009-06-25  Eric Blake  <ebb9@byu.net>
38245
38246         version-etc: fix regression
38247         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38248         gcc.
38249         (version_etc): Use it, to catch bugs with trailing NULL.
38250         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38251         (version_etc_va): Fix logic bug.
38252         * modules/version-etc-tests: Add test.
38253         * tests/test-version-etc.c: New file.
38254         * tests/test-version-etc.sh: Likewise.
38255
38256 2009-06-25  Sam Steingold  <sds@gnu.org>
38257
38258         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38259         mbtowc declaration.
38260
38261 2009-06-25  Eric Blake  <ebb9@byu.net>
38262
38263         fpurge: migrate into <stdio.h>
38264         * lib/fpurge.h: Delete...
38265         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38266         * lib/fpurge.c (fpurge): Change declaring header.
38267         * modules/fpurge (Files): Drop deleted file.
38268         (Depends-on): Add stdio.
38269         (configure.ac): Set witness.
38270         * modules/stdio (Makefile.am): Support fpurge macros.
38271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38272         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38273         * lib/fflush.c: Update client.
38274         * tests/test-fpurge.c: Likewise.
38275         * NEWS: Mention the change.
38276
38277 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38278
38279         * lib/argp-version-etc.c (program_authors): Add const
38280         qualifier.
38281         * lib/version-etc.c: Fix typos in the comments.
38282         * modules/argp-version-etc: Depends on version-etc.
38283
38284 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38285
38286         argp-version-etc: new module.
38287
38288         * lib/argp-version-etc.c: New file.
38289         * lib/argp-version-etc.h: New file.
38290         * modules/argp-version-etc: New file.
38291         * modules/argp-version-etc-tests: New file.
38292         * tests/test-argp-version-etc.c: New test.
38293         * tests/test-argp-version-etc-1.sh: New test.
38294
38295 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38296
38297         Provide additional interfaces and documentation for version-etc
38298         module.
38299
38300         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38301         interfaces.
38302         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38303         prototypes.
38304
38305 2009-06-24  Bruno Haible  <bruno@clisp.org>
38306
38307         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38308         HAVE_LIB${NAME} macro.
38309         Reported by Sam Steingold <sds@gnu.org>.
38310
38311 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38312
38313         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38314         needed.
38315
38316 2009-06-21  Bruno Haible  <bruno@clisp.org>
38317
38318         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38319         work.
38320         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38321         together with LIB${NAME}, LTLIB${NAME}.
38322         Reported by Sam Steingold <sds@gnu.org>.
38323
38324 2009-06-20  Jim Meyering  <meyering@redhat.com>
38325
38326         tests: make sc_require_test_exit_idiom more generic
38327         * top/maint.mk (Exit_witness_file): New overridable variable.
38328         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38329         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38330
38331 2009-06-19  Jim Meyering  <meyering@redhat.com>
38332
38333         hash: reverse order of src/dst parameters in an internal interface
38334         * lib/hash.c (transfer_entries): Reverse order of parameters to
38335         put DST before SRC.  Adjust callers.
38336
38337         tests: test-hash: avoid wholesale duplication
38338         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38339         Instead, use a loop and add a single conditional.
38340
38341         tests: test-hash: allow seed selection via a command line argument
38342         * tests/test-hash.c (get_seed): New function.
38343         (main): Use it.
38344
38345 2009-06-19  Eric Blake  <ebb9@byu.net>
38346
38347         hash: avoid memory leak on allocation failure
38348         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38349         failure.  Factor repeated algorithm...
38350         (transfer_entries): ...into new helper routine.
38351         (hash_delete): React to hash_rehash return value.
38352
38353         hash: reduce memory pressure in hash_rehash no-op case
38354         * lib/hash.c (next_prime): Avoid overflow.
38355         (hash_initialize): Factor bucket size computation...
38356         (compute_bucket_size): ...into new helper function.
38357         (hash_rehash): Use new function and open coding to reduce memory
38358         pressure, and avoid a memory leak in USE_OBSTACK code.
38359         Reported by Jim Meyering.
38360
38361 2009-06-18  Eric Blake  <ebb9@byu.net>
38362
38363         hash: make rotation more obvious
38364         * modules/hash (Depends-on): Add bitrotate and stdint.
38365         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38366         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38367         (SIZE_MAX): Rely on headers for definition.
38368         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38369         (raw_hasher): Use rotr_sz.
38370         Suggested by Jim Meyering.
38371
38372         hash: fix memory leak in last patch
38373         * lib/hash.c (hash_rehash): Avoid memory leak.
38374
38375         hash: avoid no-op rehashing
38376         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38377
38378         hash: provide default callback functions
38379         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38380         (hash_initialize): Use them as defaults.
38381         * tests/test-hash.c (main): Test this.
38382
38383         hash: minor optimization
38384         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38385         when possible.
38386         (hash_initialize): Document this promise.
38387         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38388         * tests/test-hash.c (hash_compare_strings): Test this.
38389
38390 2009-06-18  Bruno Haible  <bruno@clisp.org>
38391
38392         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38393         going to be replaced anyway.
38394
38395 2009-06-18  Bruno Haible  <bruno@clisp.org>
38396
38397         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38398         in one place.
38399         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38400         be replaced anyway.
38401
38402 2009-06-18  Eric Blake  <ebb9@byu.net>
38403
38404         hash: check for resize before insertion
38405         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38406         threshold before insertion, so that a pathological hash_rehash
38407         that fills every bucket can still trigger another rehash.
38408
38409 2009-06-18  Jim Meyering  <meyering@redhat.com>
38410
38411         hash-tests: add a loop around the small tests
38412         * tests/test-hash.c (main): Repeat small tests with selected
38413         small initial table sizes.
38414
38415 2009-06-17  Eric Blake  <ebb9@byu.net>
38416
38417         hash: minor cleanups
38418         * lib/hash.h (hash_entry): Make opaque, by moving...
38419         * lib/hash.c (hash_entry): ...here.
38420         (hash_insert): Clarify restrictions on what can be inserted.
38421         (hash_get_next): Clarify when it is safe to remove an element
38422         during traversal.
38423         (check_tuning): Skip verification when tuning is known safe.
38424         (hash_initialize): Clarify restrictions on tuning.
38425
38426 2009-06-17  Jim Meyering  <jim@meyering.net>
38427         and Eric Blake  <ebb9@byu.net>
38428
38429         hash-tests: new module
38430         * modules/hash-tests: New file.
38431         * tests/test-hash.c: New file.
38432
38433 2009-06-17  Eric Blake  <ebb9@byu.net>
38434
38435         strstr-simple: document new module
38436         * MODULES.html.sh: Document new module.
38437
38438         strstr, strcasestr: replace on platforms with broken memchr
38439         * modules/strstr: Split into...
38440         * modules/strstr-simple: ...new module that does not care about
38441         performance, but does care about glibc bug.
38442         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38443         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38444         if platform memchr is broken, per Debian bug 521737.
38445         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38446         memchr.
38447         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38448         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38449         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38450         * modules/mountlist (Depends-on): Add strstr-simple.
38451         * modules/gen-uni-tables (Depends-on): Likewise.
38452         * modules/argz (Depends-on): Add strstr.
38453
38454 2009-06-17  Bruno Haible  <bruno@clisp.org>
38455
38456         * modules/posix_spawn-internal (Depends-on): Add errno.
38457
38458 2009-06-17  Bruno Haible  <bruno@clisp.org>
38459
38460         Define missing ESTALE on Interix 3.5.
38461         * lib/errno.in.h (ESTALE): Assign a value if missing.
38462         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38463         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38464         missing.
38465         * doc/posix-headers/errno.texi: Mention the Interix bug.
38466         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38467
38468 2009-06-15  Eric Blake  <ebb9@byu.net>
38469
38470         memchr, memchr2: add valgrind exception
38471         * lib/memchr.valgrind: New file.
38472         * lib/memchr2.valgrind: New file.
38473         * modules/memchr (Files): Distribute valgrind file.
38474         * modules/memchr2 (Files): Likewise.
38475
38476         docs: memchr is no longer obsolete
38477         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38478         * lib/string.in.h (memchr): Simplify logic.
38479
38480 2009-06-14  Jim Meyering  <meyering@redhat.com>
38481
38482         link-follow: fix the "checking..." message to not mention trailing slash
38483         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38484         never considered trailing slashes.
38485
38486 2009-06-14  Bruno Haible  <bruno@clisp.org>
38487
38488         * m4/memchr.m4: Mention also the bug on IA-64.
38489         * doc/posix-functions/memchr.texi: Likewise.
38490
38491 2009-06-12  Eric Blake  <ebb9@byu.net>
38492
38493         memchr: detect broken x86_64 and alpha implementations
38494         * modules/memchr-tests (Depends-on): Move mmap detection...
38495         * modules/memchr (Depends-on): ...here.
38496         (configure.ac): Set indicator.
38497         * lib/string.in.h (memchr): Declare replacement.
38498         * modules/string (Makefile.am): Trigger replacement.
38499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38500         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38501         bugs.
38502         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38503         * modules/getpagesize (License): Relax license.
38504
38505 2009-06-11  Bruno Haible  <bruno@clisp.org>
38506
38507         * lib/idpriv.h: Add more references.
38508
38509 2009-06-08  Bruno Haible  <bruno@clisp.org>
38510
38511         Tests for module 'idpriv-droptemp'.
38512         * modules/idpriv-droptemp-tests: New file.
38513         * tests/test-idpriv-droptemp.sh: New file.
38514         * tests/test-idpriv-droptemp.su.sh: New file.
38515         * tests/test-idpriv-droptemp.c: New file.
38516
38517         New module 'idpriv-droptemp'.
38518         * lib/idpriv-droptemp.c: New file.
38519         * modules/idpriv-droptemp: New file.
38520
38521 2009-06-08  Bruno Haible  <bruno@clisp.org>
38522
38523         Tests for module 'idpriv-drop'.
38524         * modules/idpriv-drop-tests: New file.
38525         * tests/test-idpriv-drop.sh: New file.
38526         * tests/test-idpriv-drop.su.sh: New file.
38527         * tests/test-idpriv-drop.c: New file.
38528
38529         New module 'idpriv-drop'.
38530         * lib/idpriv.h: New file.
38531         * lib-idpriv-drop.c: New file.
38532         * m4/idpriv.m4: New file.
38533         * modules/idpriv-drop: New file.
38534
38535 2009-06-08  Bruno Haible  <bruno@clisp.org>
38536
38537         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38538         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38539         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38540         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38541         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38542         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38543         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38544
38545 2009-06-08  Eric Blake  <ebb9@byu.net>
38546
38547         test-strstr: use memory fence, when possible
38548         * tests/test-strstr.c (main): Use memory fence, in order to be
38549         more likely to trigger Debian bug 521737.
38550         * modules/strstr-tests (Files): Pull in additional files.
38551
38552         memchr: no longer obsolete, for wider field testing
38553         * modules/memchr (Status, Notice): Delete, this module is no
38554         longer obsolete.
38555         * modules/vasnprintf (Depends-on): Add memchr.
38556
38557 2009-06-07  Jim Meyering  <meyering@redhat.com>
38558
38559         hash: declare some functions with the warn_unused_result attribute
38560         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38561
38562 2009-06-07  Bruno Haible  <bruno@clisp.org>
38563
38564         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38565         Reported by Eric Blake.
38566
38567 2009-06-06  Eric Blake  <ebb9@byu.net>
38568
38569         test-alignof: fix typo with long double
38570         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38571         compiler error.
38572
38573 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38574
38575         Escape non-texinfo { and }s.
38576         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38577         markup error.
38578
38579 2009-06-04  Jim Meyering  <meyering@redhat.com>
38580
38581         gitlog-to-changelog: don't infloop on an empty commit log
38582         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38583         Reported by Boris Petersen <transacid@centerim.org>.
38584
38585 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38586
38587         version-etc: extend for packagers
38588         Add three new configure options, intended for packagers:
38589           --with-packager="packager name"
38590           --with-packager-version="packager-specific version"
38591           --with-packager-bug-reports="packager bug reporting"
38592         An example with coreutils:
38593           $ ./configure \
38594             --with-packager=Gentoo \
38595             --with-packager-bug-report=http://bugs.gentoo.org/ \
38596             --with-packager-version="patchset 1.6"
38597           $ ./src/ls --version | head -n2
38598           ls (GNU coreutils) 7.1-dirty
38599           Packaged by Gentoo (patchset 1.6)
38600         Note that the bug reporting info via --help doesn't show up because
38601         coreutils uses its own custom emit_bug_reporting_address() implementation
38602         in src/system.h.  If it didn't, it'd look like:
38603           $ ./src/ls --help | tail -n4
38604           Report bugs to <bug-coreutils@gnu.org>.
38605           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38606           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38607           General help using GNU software: <http://www.gnu.org/gethelp/>.
38608         * lib/version-etc.c: Print new information, if provided.
38609         * m4/version-etc.m4: New file.
38610         * modules/version-etc (Files): Add m4/version-etc.m4.
38611         (configure.ac): Add gl_VERSION_ETC.
38612
38613 2009-05-31  Bruno Haible  <bruno@clisp.org>
38614
38615         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38616         and 'int64_t'.
38617         * modules/alignof-tests (Dependencies): Add stdint.
38618         Reported by Eric Blake.
38619
38620 2009-05-31  Bruno Haible  <bruno@clisp.org>
38621
38622         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38623         restriction due to compiler bugs.
38624         Reported by Eric Blake.
38625
38626 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38627             Bruno Haible  <bruno@clisp.org>
38628
38629         Fix test-alignof failure.
38630         * lib/alignof.h (alignof_slot): New macro.
38631         (alignof_type): New macro, with the same semantics as the previous
38632         'alignof'.
38633         (alignof): Alias to alignof_slot.
38634         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38635         check that the results are usable as constant expressions.
38636
38637 2009-05-31  Bruno Haible  <bruno@clisp.org>
38638
38639         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38640         * tests/test-memchr.c (main): Check that memchr does not read past the
38641         first occurrence of the byte.
38642         * tests/test-strstr.c (main): Update comment.
38643         Suggested by Eric Blake.
38644
38645 2009-05-30  Bruno Haible  <bruno@clisp.org>
38646
38647         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38648         detail how to use dumpbin.
38649         Reported by David Byron <dbyron@dbyron.com>.
38650
38651 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38652
38653         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38654
38655 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38656
38657         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38658
38659 2009-05-28  Bruno Haible  <bruno@clisp.org>
38660
38661         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38662         build-aux/ files.
38663
38664 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38665
38666         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38667
38668 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38669
38670         * gnulib-tool (sed_transform_main_lib_file)
38671         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38672         regexps.
38673
38674 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38675
38676         * tests/test-strstr.c: Add another self-test.
38677         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38678         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38679
38680 2009-05-23  Bruno Haible  <bruno@clisp.org>
38681
38682         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38683         change.
38684
38685 2009-05-21  Bruno Haible  <bruno@clisp.org>
38686
38687         Simplify use of mode_t varargs.
38688         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38689         uses 'mode_t' or 'int'.
38690         * lib/openat.c (openat): Likewise.
38691         * lib/open-safer.c (open_safer): Likewise.
38692         * m4/mode_t.m4: New file.
38693         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38694         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38695         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38696         * modules/open (Files): Add m4/mode_t.m4.
38697         * modules/openat (Files): Likewise.
38698         * modules/fcntl-safer (Files): Likewise.
38699         Suggested by Eric Blake.
38700
38701 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38702
38703         * doc/glibc-functions/fallocate.texi: New file.
38704         * doc/gnulib.texi: Include it.
38705
38706 2009-05-21  Eric Blake  <ebb9@byu.net>
38707             Bruno Haible  <bruno@clisp.org>
38708
38709         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38710         invocations.
38711         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38712
38713 2009-05-21  Eric Blake  <ebb9@byu.net>
38714             Bruno Haible  <bruno@clisp.org>
38715
38716         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38717         include_next. Fix of 2008-11-20 commit.
38718         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38719         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38720         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38721         NEXT_MATH_H.
38722         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38723         instead of NEXT_MATH_H.
38724
38725 2009-05-21  Bruno Haible  <bruno@clisp.org>
38726
38727         Avoid redefinition warnings for SIZE_MAX.
38728         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38729         Reported by Simon Josefsson.
38730
38731 2009-05-21  Bruno Haible  <bruno@clisp.org>
38732
38733         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38734         AC_CACHE_VAL.
38735
38736 2009-05-20  Bruno Haible  <bruno@clisp.org>
38737
38738         Make zeroptr.h work on mingw.
38739         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38740         mprotect.
38741         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38742         * modules/memchr2-tests (configure.ac): Likewise.
38743         * modules/memcmp-tests (configure.ac): Likewise.
38744         * modules/memmem-tests (configure.ac): Likewise.
38745         * modules/memrchr-tests (configure.ac): Likewise.
38746         Reported by Simon Josefsson.
38747
38748 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38749
38750         * tests/test-glob.c: Include string.h for strcmp prototype.
38751
38752 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38753
38754         * modules/getdelim (Depends-on): Add explicit stdint, although it
38755         was implicitly already pulled in via realloc-posix.
38756         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38757
38758 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38759
38760         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38761         G. Christensen" <tgc@jupiterrise.com>.
38762         * m4/sys_socket_h.m4: Check for sa_family_t.
38763         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38764         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38765         * tests/test-sys_socket.c: Check that sa_family_t works.
38766
38767 2009-05-18  Eric Blake  <ebb9@byu.net>
38768
38769         maint.mk: allow gnulib_dir in VPATH build
38770         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38771
38772 2009-05-15  Jim Meyering  <meyering@redhat.com>
38773
38774         maint.mk: Give gnulib_dir a default definition.
38775         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38776         Thus, most packages no longer need to specify this variable in cfg.mk
38777
38778 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38779
38780         rename.m4: fix typos that would make non-mingw cross-configure fail
38781         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38782
38783 2009-05-13  Eric Blake  <ebb9@byu.net>
38784
38785         mmap-anon: avoid out-of-order autoconf expansion
38786         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38787         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38788         * modules/memchr-tests (Depends-on): Add extensions.
38789         * modules/memchr2-tests (Depends-on): Add extensions.
38790         * modules/memcmp-tests (Depends-on): Add extensions.
38791         * modules/memmem-tests (Depends-on): Add extensions.
38792         * modules/memrchr-tests (Depends-on): Add extensions.
38793
38794 2009-05-13  Bruno Haible  <bruno@clisp.org>
38795
38796         Make some tests ISO C 99 compliant.
38797         * tests/zerosize-ptr.h: New file.
38798         * tests/test-memchr.c: Include zerosize-ptr.h.
38799         (main): Use a zero-size object pointer instead of NULL.
38800         * tests/test-memchr2.c: Include zerosize-ptr.h.
38801         (main): Use a zero-size object pointer instead of NULL.
38802         * tests/test-memcmp.c: Include zerosize-ptr.h.
38803         (main): Use a zero-size object pointer instead of NULL.
38804         * tests/test-memmem.c: Include zerosize-ptr.h.
38805         (main): Use a zero-size object pointer instead of NULL.
38806         * tests/test-memrchr.c: Include zerosize-ptr.h.
38807         (main): Use a zero-size object pointer instead of NULL.
38808         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38809         m4/mmap-anon.m4.
38810         (Depends-on): Add getpagesize.
38811         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38812         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38813         m4/mmap-anon.m4.
38814         (Depends-on): Add getpagesize.
38815         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38816         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38817         m4/mmap-anon.m4.
38818         (Depends-on): Add getpagesize.
38819         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38820         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38821         m4/mmap-anon.m4.
38822         (Depends-on): Add getpagesize.
38823         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38824         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38825         m4/mmap-anon.m4.
38826         (Depends-on): Add getpagesize.
38827         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38828
38829 2009-05-12  Bruno Haible  <bruno@clisp.org>
38830
38831         Tests for module 'alignof'.
38832         * modules/alignof-tests: New file.
38833         * tests/test-alignof.c: New file.
38834
38835 2009-05-12  Bruno Haible  <bruno@clisp.org>
38836
38837         Fix alignof macro.
38838         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38839         vendor compilers that are always correct.
38840
38841 2009-05-12  Bruno Haible  <bruno@clisp.org>
38842
38843         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38844         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38845         not whether its fully works.
38846
38847 2009-05-12  Bruno Haible  <bruno@clisp.org>
38848
38849         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38850
38851 2009-05-12  Jim Meyering  <meyering@redhat.com>
38852
38853         * top/maint.mk: Adjust backslash alignment.
38854
38855 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38856
38857         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38858
38859 2009-05-11  Eric Blake  <ebb9@byu.net>
38860
38861         argp: avoid undefined behavior
38862         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38863         macros.
38864
38865 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38866
38867         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38868         user.name to prevent git commit from complaining.
38869
38870 2009-05-10  Bruno Haible  <bruno@clisp.org>
38871
38872         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38873         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38874         it rewrites every file name only once.
38875         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38876
38877 2009-05-08  Bruno Haible  <bruno@clisp.org>
38878
38879         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38880         instead of 'max'.
38881
38882 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38883
38884         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38885         sockaddr_storage test.
38886
38887 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38888
38889         * modules/sys_socket (Makefile.am): Substitute
38890         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38891         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38892         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38893         * tests/test-sys_socket.c: Check sockaddr_storage.
38894
38895 2009-05-08  Bruno Haible  <bruno@clisp.org>
38896
38897         New module 'alignof'.
38898         * lib/alignof.h: New file.
38899         * modules/alignof: New file.
38900
38901 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38902             Bruno Haible  <bruno@clisp.org>
38903
38904         Fix test-file-has-acl on FreeBSD.
38905         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38906         mask is implicitly added.
38907         * tests/test-file-has-acl.c: Include <signal.h>.
38908         (main): Terminate the test after 5 seconds.
38909         * modules/acl-tests (configure.ac): Check for alarm function.
38910
38911 2009-05-04  Bruno Haible  <bruno@clisp.org>
38912
38913         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38914         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38915         * modules/errno (configure.ac): Drop AC_REQUIRE.
38916         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38917         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38918
38919 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38920
38921         * modules/glob-tests: New module.
38922         * tests/test-glob.c: Add.
38923
38924 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38925
38926         * modules/fnmatch-tests: New module.
38927         * tests/test-fnmatch.c: Add.
38928
38929 2009-05-04  Eric Blake  <ebb9@byu.net>
38930
38931         maint: make the new no-submodule-changes rule VPATH-safe
38932         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38933
38934 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38935             Bruno Haible  <bruno@clisp.org>
38936
38937         acl: Fix infinite loop on FreeBSD.
38938         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38939         of return value from acl_get_entry.
38940         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38941         Likewise.
38942
38943 2009-05-03  Bruno Haible  <bruno@clisp.org>
38944
38945         * lib/acl-internal.h (acl_entries): Clarify return value.
38946         * lib/acl_entries.c (acl_entries): Likewise.
38947
38948 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38949
38950         Bug fix in acl module.
38951         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38952
38953 2009-05-03  Bruno Haible  <bruno@clisp.org>
38954
38955         Create gperf-generated file in the source dir, not in the build dir.
38956         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38957         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38958         * modules/unicase/locale-language (unicase/locale-languages.h):
38959         Likewise.
38960         * modules/unicase/special-casing (unicase/special-casing-table.h):
38961         Likewise.
38962         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38963         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38964         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38965         Reported by Ralf Wildenhues.
38966
38967 2009-05-03  Bruno Haible  <bruno@clisp.org>
38968
38969         * modules/fnmatch (Description, configure.ac): Taken from
38970         fnmatch-posix.
38971         * modules/fnmatch-posix: Turn into a symbolic reference to the
38972         'fnmatch' module, and deprecate.
38973         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38974
38975 2009-05-03  Bruno Haible  <bruno@clisp.org>
38976
38977         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38978         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38979         Reported by Ralf Wildenhues.
38980
38981 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38982
38983         * m4/fnmatch.m4: Fix fnmatch re-define.
38984
38985 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38986
38987         priv-set: new module and tests; adapt write-any-file
38988         * lib/priv-set.c: New file.
38989         * lib/priv-set.h: New file.
38990         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38991         * lib/write-any-file.c: Simplify by using priv-set module.
38992         * m4/priv-set.m4: New file.
38993         * modules/priv-set: New file.
38994         * modules/unlinkdir: Add dependency on priv-set module.
38995         * modules/write-any-file: Likewise.
38996
38997         Tests for module 'priv-set'.
38998         * modules/priv-set-tests: New file.
38999         * tests/test-priv-set.c: New file.
39000
39001 2009-05-03  Jim Meyering  <meyering@redhat.com>
39002             Bruno Haible  <bruno@clisp.org>
39003
39004         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39005         use the converted UTF-8 variant of the name instead.
39006
39007 2009-05-03  Jim Meyering  <meyering@redhat.com>
39008
39009         tests: tighten some getdate tests
39010         * tests/test-getdate.c (main): Tighten tests: require equality,
39011         not just greater than.  Set TZ envvar to UTC0.
39012
39013 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39014
39015         getdate: correctly interpret "next monday" when run on a Monday
39016         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39017         that e.g., "next tues" (when run on a tuesday) results in a date
39018         that is one week in the future, and not today's date.
39019         I.e., add a week when the wday is the same as the current one.
39020         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39021         and earlier by Martin Bernreuther and Jan Minář.
39022         * tests/test-getdate.c (main): Check that "next DAY" is always in
39023         the future and that "last DAY" is always in the past.
39024
39025 2009-05-02  Jim Meyering  <meyering@redhat.com>
39026
39027         build: ensure that a release build fails when a submodule is unclean
39028         * top/maint.mk (no-submodule-changes): New rule.
39029         (alpha beta major): Depend on it.
39030
39031 2009-05-02  Bruno Haible  <bruno@clisp.org>
39032
39033         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39034         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39035         shell variable gl_fnmatch_required to detect which variant is
39036         requested.
39037         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39038         gl_FUNC_FNMATCH_POSIX.
39039         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39040         exclude fnmatch-posix.
39041
39042 2009-05-02  Bruno Haible  <bruno@clisp.org>
39043
39044         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39045         * modules/mbsrtowcs (License): Change to LGPLv2+.
39046         * modules/strnlen1 (License): Likewise.
39047         Reported by Simon Josefsson.
39048
39049 2009-05-02  Bruno Haible  <bruno@clisp.org>
39050
39051         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39052         "cross".
39053         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39054         gnulib-tool was called with option --source-base=lib.
39055
39056 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39057
39058         Use automake *-local hooks without commands, for extensibility.
39059         * modules/localcharset (Makefile.am): Rename install-exec-local
39060         rule to install-exec-localcharset, and make it a prerequisite of
39061         install-exec-local.  Likewise, rename the uninstall-local rule to
39062         uninstall-localcharset, and make it a prerequisite of the former.
39063
39064 2009-05-01  Bruno Haible  <bruno@clisp.org>
39065
39066         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39067         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39068         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39069         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39070         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39071         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39072         m4/locale-zh.m4, m4/codeset.m4.
39073
39074         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39075         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39076         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39077         m4/locale-zh.m4.
39078
39079         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39080         REPLACE_WCRTOMB if mbstate_t must be replaced.
39081         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39082         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39083
39084 2009-05-01  Bruno Haible  <bruno@clisp.org>
39085
39086         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39087         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39088         dngettext, dcngettext, textdomain, bindtextdomain,
39089         bind_textdomain_codeset): Undefine before redefining.
39090
39091 2009-04-30  Bruno Haible  <bruno@clisp.org>
39092
39093         Fix bug introduced on 2009-04-25.
39094         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39095         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39096         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39097         is defined.
39098         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39099         is defined.
39100         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39101         is defined.
39102         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39103
39104 2009-04-28  Bruno Haible  <bruno@clisp.org>
39105
39106         Comment tweaks.
39107         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39108         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39109         * lib/unicase.h (u*_casexfrm): Likewise.
39110         Reported by Paolo Bonzini.
39111
39112 2009-04-28  Bruno Haible  <bruno@clisp.org>
39113
39114         Fix a compilation error.
39115         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39116         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39117         Reported by Jim Meyering.
39118
39119 2009-04-27  Bruno Haible  <bruno@clisp.org>
39120
39121         New module 'libunistring'.
39122         * modules/libunistring: New file.
39123         * m4/libunistring.m4: New file.
39124         * MODULES.html.sh (Unicode string functions): Add it.
39125
39126 2009-04-27  Eric Blake  <ebb9@byu.net>
39127
39128         maint.mk: allow package-specific header to provide <config.h>
39129         * top/maint.mk (sc_require_config_h): New variable.
39130         (sc_require_config_h, sc_require_config_h_first): Use it.
39131
39132 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39133
39134         * top/maint.mk (sc_avoid_if_before_free): Except
39135         useless-if-before-free script.
39136
39137 2009-04-27  Eric Blake  <ebb9@byu.net>
39138
39139         maintainer-makefile: depend on all required helper scripts
39140         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39141         useless-if-before-free.
39142         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39143         version, rather than assuming gnulib checkout is available.
39144         Reported by Simen Josefsson.
39145
39146 2009-04-26  Bruno Haible  <bruno@clisp.org>
39147
39148         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39149         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39150         "../" or "..".
39151
39152 2009-04-26  Bruno Haible  <bruno@clisp.org>
39153
39154         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39155         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39156         AC_LIB_HAVE_LINKFLAGS.
39157
39158 2009-04-26  Bruno Haible  <bruno@clisp.org>
39159
39160         Simplify calling convention of u*_conv_from_encoding.
39161         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39162         u32_conv_from_encoding): Expect a resultbuf argument and return the
39163         result directly as a pointer.
39164         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39165         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39166         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39167         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39168         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39169         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39170         Update.
39171         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39172         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39173         * lib/vasnprintf.c (VASNPRINTF): Update.
39174         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39175         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39176         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39177         * NEWS: Mention the change.
39178
39179 2009-04-26  Bruno Haible  <bruno@clisp.org>
39180
39181         Simplify calling convention of u*_conv_to_encoding.
39182         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39183         u32_conv_to_encoding): Expect a resultbuf argument and return the
39184         result directly as a pointer.
39185         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39186         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39187         freeing scaled_offsets if mem_iconveha failed.
39188         * lib/unicase/u-casexfrm.h (FUNC): Update.
39189         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39190         * lib/vasnprintf.c (VASNPRINTF): Update.
39191         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39192         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39193         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39194         * NEWS: Mention the change.
39195
39196 2009-04-26  Bruno Haible  <bruno@clisp.org>
39197
39198         Avoid test failures on AIX and OSF/1.
39199         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39200         malloc(0).
39201         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39202         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39203         Likewise.
39204         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39205         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39206         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39207         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39208         * doc/posix-functions/malloc.texi: Document the portability problem
39209         related to malloc(0).
39210
39211 2009-04-26  Bruno Haible  <bruno@clisp.org>
39212
39213         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39214         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39215         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39216
39217 2009-04-25  Bruno Haible  <bruno@clisp.org>
39218
39219         Avoid link error when creating a namespace clean library.
39220         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39221         as macro with arguments if already defined as an alias.
39222         * lib/signbitf.c (gl_signbitf): Don't undefine.
39223         * lib/signbitd.c (gl_signbitd): Don't undefine.
39224         * lib/signbitl.c (gl_signbitl): Don't undefine.
39225
39226 2009-04-25  Jim Meyering  <meyering@redhat.com>
39227
39228         vc-list-files: fix another quoting bug
39229         * build-aux/vc-list-files: Avoid sed backslash expansion
39230         of pathological directory names.
39231
39232 2009-04-25  Eric Blake  <ebb9@byu.net>
39233
39234         vc-list-files: fix shell quoting error
39235         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39236         timestamp.
39237
39238 2009-04-25  Jim Meyering  <meyering@redhat.com>
39239
39240         vc-list-files: restore lost functionality with subdir argument
39241         * build-aux/vc-list-files: When given a non-"." sub-directory
39242         argument, substitute the $dir/ prefix back onto each resulting name.
39243         Otherwise, coreutils' root_tests check would fail.
39244
39245 2009-04-24  Eric Blake  <ebb9@byu.net>
39246
39247         vc-list-files: ignore git symlinks
39248         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39249         than ls-files, to ignore git symlinks.
39250
39251         maint.mk: import improvements from m4
39252         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39253         (move_if_change): Delete unused macro.
39254         (news-date-check, vc-diff-check): Support VPATH builds.
39255         (announcement): Likewise.  Split --bootstrap-tools list...
39256         (boostrap-tools): ...into separate list, which can be overridden
39257         in cfg.mk.
39258         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39259         requiring dependency on useless-if-before-free module.
39260         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39261         Support VPATH builds.
39262
39263 2009-04-24  Jim Meyering  <meyering@redhat.com>
39264
39265         maint.mk: remove coreutils-specific rules and variables
39266         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39267         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39268         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39269
39270         maint.mk: remove obsolete rule
39271         * top/maint.mk (rel-check): Remove rule.
39272         (WGET, WGETFLAGS): Remove now-unused variables.
39273
39274 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39275
39276         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39277         consistency.
39278
39279         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39280         '$(PATH_SEPARATOR)' instead of ':'.
39281
39282 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39283
39284         * lib/getopt1.c (main): Use 'const' for static array.
39285
39286 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39287
39288         * top/maint.mk: Sync with coreutils.
39289         * NEWS: Explain incompatibilities.
39290
39291 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39292             Bruno Haible  <bruno@clisp.org>
39293
39294         Fix cross-compilation results.
39295         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39296         statement, as third argument of AC_TRY_RUN.
39297         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39298         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39299         Likewise.
39300         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39301         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39302         Likewise.
39303         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39304         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39305         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39306
39307 2009-04-20  Bruno Haible  <bruno@clisp.org>
39308
39309         Avoid test failure on mingw.
39310         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39311
39312 2009-04-20  Bruno Haible  <bruno@clisp.org>
39313
39314         Avoid compilation error on mingw.
39315         * modules/localename-tests (Depends-on): Add locale.
39316
39317 2009-04-19  Bruno Haible  <bruno@clisp.org>
39318
39319         Support for building a shared library on Windows platforms.
39320         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39321         (main): Test the presence of UNINORM_NFC here.
39322         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39323         (main): Test the presence of UNINORM_NFD here.
39324         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39325         (main): Test the presence of UNINORM_NFKC here.
39326         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39327         (main): Test the presence of UNINORM_NFKD here.
39328
39329 2009-04-19  Bruno Haible  <bruno@clisp.org>
39330
39331         Avoid a compiler warning.
39332         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39333         Change type of variable 'sequence'.
39334
39335 2009-04-19  Bruno Haible  <bruno@clisp.org>
39336
39337         * modules/configmake (Makefile.am): When the contents of configmake.h
39338         does not change, arrange to preserve its modification time.
39339
39340 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39341
39342         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39343         gettext domain.
39344
39345 2009-04-16  Jim Meyering  <meyering@redhat.com>
39346
39347         useless-if-before-free: improve conversion code
39348         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39349         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39350
39351 2009-04-14  Bruno Haible  <bruno@clisp.org>
39352
39353         * modules/fcntl (Depends-on): Add extensions.
39354         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39355
39356 2009-04-12  Ben Pfaff  <blp@gnu.org>
39357
39358         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39359         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39360
39361 2009-03-20  Ben Pfaff  <blp@gnu.org>
39362
39363         Make rename replace existing destinations on Windows.
39364         * m4/rename.m4: Add test for Mingw.
39365         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39366         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39367         * doc/posix-functions/rename.texi: Document.
39368
39369 2009-04-10  Bruno Haible  <bruno@clisp.org>
39370
39371         New include file "iconveh.h".
39372         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39373         * lib/striconveh.h: Include it.
39374         (enum iconv_ilseq_handler): Remove definition.
39375         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39376         striconveh.h.
39377         * lib/striconveha.c: Include striconveh.h.
39378         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39379         * modules/striconveh (Files): Add lib/iconveh.h.
39380         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39381         lib/striconveh.h.
39382
39383 2009-04-10  Bruno Haible  <bruno@clisp.org>
39384
39385         * lib/uniconv.h: Update comment.
39386
39387 2009-04-10  Bruno Haible  <bruno@clisp.org>
39388
39389         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39390         always.
39391         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39392         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39393         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39394         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39395         "unistring-notinline.h", so that the function gets defined always.
39396         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39397         * lib/unistr/u8-uctomb.c: Likewise.
39398         * lib/unistr/u16-mbtouc.c: Likewise.
39399         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39400         * lib/unistr/u16-uctomb.c: Likewise.
39401         * lib/unistr/u32-mbtouc.c: Likewise.
39402         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39403         * lib/unistr/u32-uctomb.c: Likewise.
39404
39405 2009-04-10  Bruno Haible  <bruno@clisp.org>
39406
39407         Mark 'utime' obsolete.
39408         * modules/utime (Status, Notice): New sections.
39409         Suggested by Jim Meyering.
39410
39411         Fix cross-compile guess for utime test.
39412         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39413         autoconf.
39414         * doc/posix-functions/utime.texi: Give more precisions.
39415         Reported by Jan <ipif@ymail.com>.
39416
39417 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39418
39419         filevercmp: correct today's change
39420         * lib/filevercmp.c: Also handle coreutils' test inputs.
39421         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39422
39423         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39424         for reporting it.
39425         * lib/filevercmp.c: Special handle for "", "." and "..".
39426         * tests/test-filevercmp.c: Enlarge the set suite.
39427
39428 2009-04-07  Jim Meyering  <meyering@redhat.com>
39429
39430         useless-if-before-free: show how to remove braced useless free, too
39431         * build-aux/useless-if-before-free: still only in a comment, though.
39432
39433 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39434
39435         maint.mk: import changes to syntax-check macros from coreutils
39436         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39437         Use them in the relevant macros.
39438
39439 2009-04-06  Bruno Haible  <bruno@clisp.org>
39440
39441         Fix unportable use of bit-fields.
39442         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39443         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39444         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39445
39446 2009-04-06  Bruno Haible  <bruno@clisp.org>
39447
39448         Avoid test failures on AIX and OSF/1.
39449         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39450         that malloc(0) = NULL.
39451         * tests/unicase/test-u8-tolower.c (check): Likewise.
39452         * tests/unicase/test-u8-totitle.c (check): Likewise.
39453         * tests/unicase/test-u8-toupper.c (check): Likewise.
39454         * tests/unicase/test-u16-casefold.c (check): Likewise.
39455         * tests/unicase/test-u16-tolower.c (check): Likewise.
39456         * tests/unicase/test-u16-totitle.c (check): Likewise.
39457         * tests/unicase/test-u16-toupper.c (check): Likewise.
39458         * tests/unicase/test-u32-casefold.c (check): Likewise.
39459         * tests/unicase/test-u32-tolower.c (check): Likewise.
39460         * tests/unicase/test-u32-totitle.c (check): Likewise.
39461         * tests/unicase/test-u32-toupper.c (check): Likewise.
39462         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39463         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39464         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39465         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39466         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39467         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39468         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39469         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39470         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39471         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39472         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39473         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39474
39475 2009-04-05  Bruno Haible  <bruno@clisp.org>
39476
39477         Work around an autoconf limitation.
39478         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39479         comment line if it would be longer than 3 KB.
39480
39481 2009-04-05  Bruno Haible  <bruno@clisp.org>
39482
39483         Avoid test failure with libiconv-1.13.
39484         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39485         of the expected test results.
39486
39487 2009-04-05  Bruno Haible  <bruno@clisp.org>
39488
39489         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39490         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39491         that it should be installed.
39492
39493 2009-04-05  Bruno Haible  <bruno@clisp.org>
39494
39495         * gnulib-tool: New option --copy-file.
39496         (func_usage): Document it.
39497         (func_dest_tmpfilename): Moved out of func_import.
39498         (func_add_file, func_update_file): New functions, extracted from
39499         func_import.
39500         (func_import): Update.
39501
39502 2009-04-05  Karl Berry  <karl@gnu.org>
39503
39504         * README: prominently mention gnulib-tool.
39505         Rearrange sections so getting the code is near the top.
39506
39507 2009-04-05  Bruno Haible  <bruno@clisp.org>
39508
39509         * lib/unicase.h: Mention u*_cmp2.
39510         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39511         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39512         * lib/unicase/ulc-casecmp.c: Likewise.
39513         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39514         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39515         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39516         unistr/u8-cmp.
39517         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39518         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39519         unistr/u16-cmp.
39520         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39521         unistr/u32-cmp.
39522
39523         * lib/uninorm.h: Mention u*_cmp2.
39524         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39525         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39526         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39527         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39528         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39529         unistr/u8-cmp.
39530         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39531         unistr/u16-cmp.
39532         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39533         unistr/u32-cmp.
39534
39535         New module 'unistr/u32-cmp2'.
39536         * lib/unistr/u32-cmp2.c: New file.
39537         * modules/unistr/u32-cmp2: New file.
39538
39539         New module 'unistr/u16-cmp2'.
39540         * lib/unistr/u16-cmp2.c: New file.
39541         * modules/unistr/u16-cmp2: New file.
39542
39543         New module 'unistr/u8-cmp2'.
39544         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39545         * lib/unistr/u8-cmp2.c: New file.
39546         * lib/unistr/u-cmp2.h: New file.
39547         * modules/unistr/u8-cmp2: New file.
39548
39549 2009-04-05  Bruno Haible  <bruno@clisp.org>
39550
39551         * lib/unictype.h (uc_property_is_valid): New macro.
39552         * tests/unictype/test-pr_byname.c (main): Use it.
39553
39554         * lib/unistr.h: Doc fixes.
39555         * lib/uniconv.h: Doc fixes.
39556         * lib/unictype.h: Doc fixes.
39557
39558 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39559
39560         Port coreutils 7.2 to Solaris 8.
39561
39562         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39563         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39564         for Solaris 8.  This is a bit of a hack, as it means it's the
39565         caller's responsibility to add -lnsl if needed, but most likely it
39566         won't be needed since only getaddrinfo uses this and getaddrinfo
39567         isn't needed on Solaris 8.
39568
39569         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39570         problem to Solaris 8 encountered with coreutils 7.2, which
39571         resulted in a message "fnmatch.c:292: warning: passing argument 4
39572         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39573         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39574
39575 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39576
39577         * m4/ld-version-script.m4: Add FIXME comment.
39578
39579 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39580
39581         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39582         SOVERSION variable.
39583
39584 2009-04-02  Bruno Haible  <bruno@clisp.org>
39585
39586         * Makefile (info, html, dvi, pdf): Combine the rules.
39587         Suggested by Jim Meyering.
39588
39589 2009-04-01  Bruno Haible  <bruno@clisp.org>
39590
39591         * Makefile (info, html, dvi, pdf): New targets.
39592         Reported by Reuben Thomas <rrt@sc3d.org>.
39593
39594 2009-04-01  Bruno Haible  <bruno@clisp.org>
39595
39596         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39597         can be put into PATH.
39598         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39599
39600 2009-04-01  Bruno Haible  <bruno@clisp.org>
39601
39602         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39603
39604 2009-04-01  Bruno Haible  <bruno@clisp.org>
39605
39606         Rename module 'visibility'.
39607         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39608         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39609         * doc/gnulib.texi: Update.
39610         * MODULES.html.sh (Misc): Update.
39611         * NEWS: Mention the change.
39612
39613 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39614
39615         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39616         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39617         Eric Blake <ebb9@byu.net> for review.
39618         * MODULES.html.sh: Add lib-msvc-compat.
39619         * doc/gnulib.texi: Link to new section.
39620         * m4/ld-output-def.m4: New file.
39621         * doc/ld-output-def.texi: New file.
39622
39623 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39624
39625         Rename ld-version-script to lib-symbol-versions.  Suggested by
39626         Bruno Haible <bruno@clisp.org>.
39627         * modules/ld-version-script: Renamed to lib-symbol-versions.
39628         * doc/ld-version-script.texi: Fix module name.
39629         * MODULES.html.sh: Add lib-symbol-versions.
39630
39631 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39632
39633         * modules/u64-tests: New file.
39634         * tests/test-u64.c: New file.
39635
39636 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39637
39638         * MODULES.html.sh: Mention u64.
39639         * modules/u64: New module.
39640         * modules/crypto/sha512: Depend on u64 module instead of providing
39641         u64.h.
39642
39643 2009-03-27  Eric Blake  <ebb9@byu.net>
39644
39645         test-strerror: make debugging EAI_SYSTEM easier
39646         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39647         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39648         failure was EAI_SYSTEM.
39649
39650 2009-03-25  Bruno Haible  <bruno@clisp.org>
39651
39652         Fix a problem with --enable-relocatable on Solaris 7.
39653         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39654         since 2008-02-24.
39655
39656 2009-03-25  Eric Blake  <ebb9@byu.net>
39657
39658         test-sockets: avoid gcc warning
39659         * tests/test-sockets.c (main): Silence compiler warning.
39660
39661 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39662
39663         New modules nproc, pthread, contributed by Glen Lenker.
39664
39665         * MODULES.html.sh: Add pthread, nproc.
39666         * lib/nproc.c: New file.
39667         * lib/nproc.h: New file.
39668         * lib/pthread.in.h: New file.
39669         * m4/pthread.m4: New file.
39670         * modules/nproc: New file.
39671         * modules/pthread: New file.
39672
39673 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39674
39675         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39676         New variable.
39677
39678 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39679
39680         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39681         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39682         * tests/test-filevercmp.c: Add tests for backup suffixes.
39683
39684 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39685
39686         * modules/stdlib (Depends-on): Add stdint, needed when defining
39687         struct random_data on, for example, HP-UX 10.20.  Reported by
39688         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39689
39690 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39691
39692         * lib/readline.c (readline): Call fflush on stdout after printing
39693         prompt.
39694
39695 2009-03-20  Bruno Haible  <bruno@clisp.org>
39696
39697         Remove dependency from 'close' module to -lws2_32 on native Windows.
39698         * lib/close-hook.h: New file.
39699         * lib/close-hook.c: New file.
39700         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39701         w32sock.h.
39702         (_gl_close_fd_maybe_socket): Remove function.
39703         (rpl_close): Invoke execute_all_close_hooks instead of
39704         _gl_close_fd_maybe_socket.
39705         * lib/sockets.c: Include close-hook.h, w32sock.h.
39706         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39707         (close_sockets_hook): New variable.
39708         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39709         (gl_sockets_cleanup): Unregister it.
39710         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39711         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39712         * modules/close-hook: New file.
39713         * modules/close (Files): Remove lib/w32sock.h.
39714         (Depends-on): Add close-hook.
39715         (Link): Remove section.
39716         * modules/sockets (Files): Add lib/w32sock.h.
39717         (Depends-on): Add close-hook.
39718         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39719         invocation.
39720         * NEWS: Mention that LIB_CLOSE is gone.
39721
39722 2009-03-23  Eric Blake  <ebb9@byu.net>
39723
39724         signal-tests: test previous patch
39725         * tests/test-signal.c: New file.
39726         * modules/signal-tests: Likewise.
39727
39728         signal.h: always support 'volatile sig_atomic_t'
39729         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39730         (gl_SIGNAL_H_DEFAULTS): Add a default.
39731         * modules/signal (Makefile.am): Substitute if needed.
39732         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39733         users can blindly add volatile.
39734         * doc/posix-headers/signal.texi (signal.h): Document it.
39735         Reported by Matthew Woehlke.
39736
39737 2009-03-23  Jim Meyering  <meyering@redhat.com>
39738
39739         pathmax: PATH_MAX: use pathconf only when available
39740         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39741         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39742         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39743         This avoids a link failure in a PSP cross-compilation environment
39744         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39745
39746         * lib/vasnprintf.c (divide): Fix typo in comment.
39747
39748 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39749
39750         * gnulib-tool (func_filter_filelist): Fix comment.
39751
39752 2009-03-20  Bruno Haible  <bruno@clisp.org>
39753
39754         Make sockets.h self-contained.
39755         * lib/sockets.c: Include sockets.h first.
39756         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39757
39758 2009-03-19  Eric Blake  <ebb9@byu.net>
39759
39760         doc: mention more functions added in cygwin 1.7.0
39761         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39762         addition.
39763         * doc/posix-functions/log2f.texi: Likewise.
39764
39765 2009-03-19  Jim Meyering  <meyering@redhat.com>
39766
39767         fsusage: avoid syntax error due to statement-before-declaration
39768         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39769         after all declarations.  Reported by Matthew Woehlke in
39770         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39771
39772 2009-03-18  Eric Blake  <ebb9@byu.net>
39773
39774         build-aux/compile: sync from automake
39775         * build-aux/compile: New file, from automake.
39776         * config/srclist.txt: Mention build-aux/compile.
39777
39778 2009-03-17  Bruno Haible  <bruno@clisp.org>
39779
39780         * lib/git-merge-changelog.c: Fix typo in comment.
39781         Reported by Reuben Thomas <rrt@sc3d.org>.
39782
39783 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39784
39785         * m4/regex.m4: update and improve help for
39786         --without-included-regex.
39787
39788 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39789
39790         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39791         failure on missing include files.
39792
39793 2009-03-17  Eric Blake  <ebb9@byu.net>
39794
39795         doc: mention more functions added in cygwin 1.7.0
39796         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39797         addition.
39798         * doc/posix-functions/fwscanf.texi: Likewise.
39799         * doc/posix-functions/swprintf.texi: Likewise.
39800         * doc/posix-functions/swscanf.texi: Likewise.
39801         * doc/posix-functions/vfwprintf.texi: Likewise.
39802         * doc/posix-functions/vfwscanf.texi: Likewise.
39803         * doc/posix-functions/vswprintf.texi: Likewise.
39804         * doc/posix-functions/vswscanf.texi: Likewise.
39805         * doc/posix-functions/vwprintf.texi: Likewise.
39806         * doc/posix-functions/vwscanf.texi: Likewise.
39807         * doc/posix-functions/wcscasecmp.texi: Likewise.
39808         * doc/posix-functions/wcsdup.texi: Likewise.
39809         * doc/posix-functions/wcsftime.texi: Likewise.
39810         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39811         * doc/posix-functions/wprintf.texi: Likewise.
39812         * doc/posix-functions/wscanf.texi: Likewise.
39813         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39814
39815 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39816
39817         maint.mk: really add $(AM_MAKEFLAGS)
39818         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39819         was inadvertently omitted in the last commit.
39820         Spotted by Bruno Haible.
39821
39822         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39823         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39824         $(AM_MAKEFLAGS)' rather than plain `make'.
39825
39826         gnulib-tool: execute $MAKE not make
39827         * gnulib-tool: Default $MAKE to 'make'.
39828         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39829         than make.  Initialize $MAKE in the do-autobuild script.
39830
39831         gnulib-tool: use $MAKE not make in generated files
39832         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39833         make, in generated files.  Initialize $MAKE in the do-autobuild
39834         script.
39835
39836         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39837
39838         GNUmakefile: disable parallelism only for multiple, recursive targets
39839         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39840         additions in the Makefile.
39841         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39842         by Automake.
39843         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39844         are listed on the command line and at least one of them is
39845         listed in $(ALL_RECURSIVE_TARGETS).
39846
39847 2009-03-14  Bruno Haible  <bruno@clisp.org>
39848
39849         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39850         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39851         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39852         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39853         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39854         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39855         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39856         unistr/u8-uctomb.
39857         * modules/unistr/u8-strchr (Depends-on): Likewise.
39858         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39859         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39860         unistr/u16-uctomb.
39861         * modules/unistr/u16-strchr (Depends-on): Likewise.
39862         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39863
39864 2009-03-12  Bruno Haible  <bruno@clisp.org>
39865
39866         Work around select() bug on Interix 3.5.
39867         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39868         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39869         * m4/select.m4: New file.
39870         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39871         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39872         * modules/select (Files): Add m4/select.m4.
39873         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39874         * modules/nanosleep (Depends-on): Add select.
39875         * modules/poll (Depends-on): Likewise.
39876         * doc/posix-functions/select.texi: Mention the Interix bug.
39877         Reported by Markus Duft <mduft@gentoo.org>.
39878
39879         * lib/select.c: Renamed from lib/winsock-select.c.
39880         * modules/select (Files): Add lib/select.c, remove
39881         lib/winsock-select.c.
39882         (configure.ac): Update.
39883
39884 2009-03-12  Jim Meyering  <meyering@redhat.com>
39885
39886         avoid gcc warnings about unused macro definitions
39887         * lib/readtokens.c (STREQ): Remove unused definition.
39888         * lib/xmalloc.c (SIZE_MAX): Likewise.
39889         * lib/openat-die.c (N_): Likewise.
39890         * lib/mountlist.c (SIZE_MAX): Remove definition.
39891         Instead, include <stdint.h>.
39892         * lib/readutmp.c: Likewise.
39893         * modules/readutmp (Depends-on): Add stdint.
39894         * modules/mountlist (Depends-on): Add stdint.
39895         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39896
39897 2009-03-10  Bruno Haible  <bruno@clisp.org>
39898
39899         Tests for module 'mbmemcasecoll'.
39900         * modules/mbmemcasecoll-tests: New file.
39901         * tests/test-mbmemcasecoll1.sh: New file.
39902         * tests/test-mbmemcasecoll2.sh: New file.
39903         * tests/test-mbmemcasecoll3.sh: New file.
39904         * tests/test-mbmemcasecoll.c: New file.
39905
39906         New module 'mbmemcasecoll'.
39907         * lib/mbmemcasecoll.h: New file.
39908         * lib/mbmemcasecoll.c: New file.
39909         * modules/mbmemcasecoll: New file.
39910
39911         * tests/test-mbmemcasecmp.h: New file, extracted from
39912         tests/test-mbmemcasecmp.c.
39913         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39914         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39915         (main): Update.
39916         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39917
39918 2009-03-09  Bruno Haible  <bruno@clisp.org>
39919
39920         Tests for module 'mbmemcasecmp'.
39921         * modules/mbmemcasecmp-tests: New file.
39922         * tests/test-mbmemcasecmp1.sh: New file.
39923         * tests/test-mbmemcasecmp2.sh: New file.
39924         * tests/test-mbmemcasecmp3.sh: New file.
39925         * tests/test-mbmemcasecmp.c: New file.
39926
39927         New module 'mbmemcasecmp'.
39928         * lib/mbmemcasecmp.h: New file.
39929         * lib/mbmemcasecmp.c: New file.
39930         * modules/mbmemcasecmp: New file.
39931
39932 2009-03-09  Bruno Haible  <bruno@clisp.org>
39933
39934         Tests for module 'unicase/ulc-casecoll'.
39935         * modules/unicase/ulc-casecoll-tests: New file.
39936         * tests/unicase/test-ulc-casecoll1.sh: New file.
39937         * tests/unicase/test-ulc-casecoll2.sh: New file.
39938         * tests/unicase/test-ulc-casecoll.c: New file.
39939
39940         New module 'unicase/ulc-casecoll'.
39941         * lib/unicase.h (ulc_casecoll): New declaration.
39942         * lib/unicase/ulc-casecoll.c: New file.
39943         * modules/unicase/ulc-casecoll: New file.
39944
39945         New module 'unicase/ulc-casexfrm'.
39946         * lib/unicase.h (ulc_casexfrm): New declaration.
39947         * lib/unicase/ulc-casexfrm.c: New file.
39948         * modules/unicase/ulc-casexfrm: New file.
39949
39950 2009-03-09  Bruno Haible  <bruno@clisp.org>
39951
39952         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39953         invocations.
39954
39955         * m4/mbscasecmp.m4: Remove file.
39956         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39957         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39958
39959         * m4/mbscasestr.m4: Remove file.
39960         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39961         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39962
39963         * m4/mbschr.m4: Remove file.
39964         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39965         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39966
39967         * m4/mbscspn.m4: Remove file.
39968         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39969         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39970
39971         * m4/mbslen.m4: Remove file.
39972         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39973         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39974
39975         * m4/mbsncasecmp.m4: Remove file.
39976         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39977         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39978
39979         * m4/mbsnlen.m4: Remove file.
39980         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39981         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39982
39983         * m4/mbspbrk.m4: Remove file.
39984         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39985         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39986
39987         * m4/mbspcasecmp.m4: Remove file.
39988         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39989         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39990
39991         * m4/mbsrchr.m4: Remove file.
39992         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39993         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39994
39995         * m4/mbssep.m4: Remove file.
39996         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39997         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39998
39999         * m4/mbsspn.m4: Remove file.
40000         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40001         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40002
40003         * m4/mbsstr.m4: Remove file.
40004         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40005         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40006
40007         * m4/mbstok_r.m4: Remove file.
40008         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40009         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40010
40011         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40012
40013         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40014         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40015
40016         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40017
40018 2009-03-08  Bruno Haible  <bruno@clisp.org>
40019
40020         Tests for module 'unicase/ulc-casecmp'.
40021         * modules/unicase/ulc-casecmp-tests: New file.
40022         * tests/unicase/test-ulc-casecmp1.sh: New file.
40023         * tests/unicase/test-ulc-casecmp2.sh: New file.
40024         * tests/unicase/test-ulc-casecmp.c: New file.
40025
40026         New module 'unicase/ulc-casecmp'.
40027         * lib/unicase.h (ulc_casecmp): New declaration.
40028         * lib/unicase/ulc-casecmp.c: New file.
40029         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40030         'const SRC_UNIT *'.
40031         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40032         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40033         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40034         * modules/unicase/ulc-casecmp: New file.
40035
40036         Tests for module 'unicase/u32-is-cased'.
40037         * modules/unicase/u32-is-cased-tests: New file.
40038         * tests/unicase/test-u32-is-cased.c: New file.
40039
40040         Tests for module 'unicase/u16-is-cased'.
40041         * modules/unicase/u16-is-cased-tests: New file.
40042         * tests/unicase/test-u16-is-cased.c: New file.
40043
40044         Tests for module 'unicase/u8-is-cased'.
40045         * modules/unicase/u8-is-cased-tests: New file.
40046         * tests/unicase/test-u8-is-cased.c: New file.
40047         * tests/unicase/test-is-cased.h: New file.
40048
40049         New module 'unicase/u32-is-cased'.
40050         * lib/unicase/u32-is-cased.c: New file.
40051         * modules/unicase/u32-is-cased: New file.
40052
40053         New module 'unicase/u16-is-cased'.
40054         * lib/unicase/u16-is-cased.c: New file.
40055         * modules/unicase/u16-is-cased: New file.
40056
40057         New module 'unicase/u8-is-cased'.
40058         * lib/unicase/u8-is-cased.c: New file.
40059         * lib/unicase/u-is-cased.h: New file.
40060         * modules/unicase/u8-is-cased: New file.
40061
40062         Tests for module 'unicase/u32-is-casefolded'.
40063         * modules/unicase/u32-is-casefolded-tests: New file.
40064         * tests/unicase/test-u32-is-casefolded.c: New file.
40065
40066         Tests for module 'unicase/u16-is-casefolded'.
40067         * modules/unicase/u16-is-casefolded-tests: New file.
40068         * tests/unicase/test-u16-is-casefolded.c: New file.
40069
40070         Tests for module 'unicase/u8-is-casefolded'.
40071         * modules/unicase/u8-is-casefolded-tests: New file.
40072         * tests/unicase/test-u8-is-casefolded.c: New file.
40073         * tests/unicase/test-is-casefolded.h: New file.
40074
40075         New module 'unicase/u32-is-casefolded'.
40076         * lib/unicase/u32-is-casefolded.c: New file.
40077         * modules/unicase/u32-is-casefolded: New file.
40078
40079         New module 'unicase/u16-is-casefolded'.
40080         * lib/unicase/u16-is-casefolded.c: New file.
40081         * modules/unicase/u16-is-casefolded: New file.
40082
40083         New module 'unicase/u8-is-casefolded'.
40084         * lib/unicase/u8-is-casefolded.c: New file.
40085         * modules/unicase/u8-is-casefolded: New file.
40086
40087         Tests for module 'unicase/u32-is-titlecase'.
40088         * modules/unicase/u32-is-titlecase-tests: New file.
40089         * tests/unicase/test-u32-is-titlecase.c: New file.
40090
40091         Tests for module 'unicase/u16-is-titlecase'.
40092         * modules/unicase/u16-is-titlecase-tests: New file.
40093         * tests/unicase/test-u16-is-titlecase.c: New file.
40094
40095         Tests for module 'unicase/u8-is-titlecase'.
40096         * modules/unicase/u8-is-titlecase-tests: New file.
40097         * tests/unicase/test-u8-is-titlecase.c: New file.
40098         * tests/unicase/test-is-titlecase.h: New file.
40099
40100         New module 'unicase/u32-is-titlecase'.
40101         * lib/unicase/u32-is-titlecase.c: New file.
40102         * modules/unicase/u32-is-titlecase: New file.
40103
40104         New module 'unicase/u16-is-titlecase'.
40105         * lib/unicase/u16-is-titlecase.c: New file.
40106         * modules/unicase/u16-is-titlecase: New file.
40107
40108         New module 'unicase/u8-is-titlecase'.
40109         * lib/unicase/u8-is-titlecase.c: New file.
40110         * modules/unicase/u8-is-titlecase: New file.
40111
40112         Tests for module 'unicase/u32-is-lowercase'.
40113         * modules/unicase/u32-is-lowercase-tests: New file.
40114         * tests/unicase/test-u32-is-lowercase.c: New file.
40115
40116         Tests for module 'unicase/u16-is-lowercase'.
40117         * modules/unicase/u16-is-lowercase-tests: New file.
40118         * tests/unicase/test-u16-is-lowercase.c: New file.
40119
40120         Tests for module 'unicase/u8-is-lowercase'.
40121         * modules/unicase/u8-is-lowercase-tests: New file.
40122         * tests/unicase/test-u8-is-lowercase.c: New file.
40123         * tests/unicase/test-is-lowercase.h: New file.
40124
40125         New module 'unicase/u32-is-lowercase'.
40126         * lib/unicase/u32-is-lowercase.c: New file.
40127         * modules/unicase/u32-is-lowercase: New file.
40128
40129         New module 'unicase/u16-is-lowercase'.
40130         * lib/unicase/u16-is-lowercase.c: New file.
40131         * modules/unicase/u16-is-lowercase: New file.
40132
40133         New module 'unicase/u8-is-lowercase'.
40134         * lib/unicase/u8-is-lowercase.c: New file.
40135         * modules/unicase/u8-is-lowercase: New file.
40136
40137         Tests for module 'unicase/u32-is-uppercase'.
40138         * modules/unicase/u32-is-uppercase-tests: New file.
40139         * tests/unicase/test-u32-is-uppercase.c: New file.
40140
40141         Tests for module 'unicase/u16-is-uppercase'.
40142         * modules/unicase/u16-is-uppercase-tests: New file.
40143         * tests/unicase/test-u16-is-uppercase.c: New file.
40144
40145         Tests for module 'unicase/u8-is-uppercase'.
40146         * modules/unicase/u8-is-uppercase-tests: New file.
40147         * tests/unicase/test-u8-is-uppercase.c: New file.
40148         * tests/unicase/test-is-uppercase.h: New file.
40149
40150         New module 'unicase/u32-is-uppercase'.
40151         * lib/unicase/u32-is-uppercase.c: New file.
40152         * modules/unicase/u32-is-uppercase: New file.
40153
40154         New module 'unicase/u16-is-uppercase'.
40155         * lib/unicase/u16-is-uppercase.c: New file.
40156         * modules/unicase/u16-is-uppercase: New file.
40157
40158         New module 'unicase/u8-is-uppercase'.
40159         * lib/unicase/u8-is-uppercase.c: New file.
40160         * modules/unicase/u8-is-uppercase: New file.
40161
40162         New module 'unicase/u32-is-invariant'.
40163         * lib/unicase/u32-is-invariant.c: New file.
40164         * modules/unicase/u32-is-invariant: New file.
40165
40166         New module 'unicase/u16-is-invariant'.
40167         * lib/unicase/u16-is-invariant.c: New file.
40168         * modules/unicase/u16-is-invariant: New file.
40169
40170         New module 'unicase/u8-is-invariant'.
40171         * lib/unicase/u8-is-invariant.c: New file.
40172         * lib/unicase/invariant.h: New file.
40173         * lib/unicase/u-is-invariant.h: New file.
40174         * modules/unicase/u8-is-invariant: New file.
40175
40176         Tests for module 'unicase/u32-casecoll'.
40177         * modules/unicase/u32-casecoll-tests: New file.
40178         * tests/unicase/test-u32-casecoll.c: New file.
40179
40180         Tests for module 'unicase/u16-casecoll'.
40181         * modules/unicase/u16-casecoll-tests: New file.
40182         * tests/unicase/test-u16-casecoll.c: New file.
40183
40184         Tests for module 'unicase/u8-casecoll'.
40185         * modules/unicase/u8-casecoll-tests: New file.
40186         * tests/unicase/test-u8-casecoll.c: New file.
40187
40188         New module 'unicase/u32-casecoll'.
40189         * lib/unicase/u32-casecoll.c: New file.
40190         * modules/unicase/u32-casecoll: New file.
40191
40192         New module 'unicase/u16-casecoll'.
40193         * lib/unicase/u16-casecoll.c: New file.
40194         * modules/unicase/u16-casecoll: New file.
40195
40196         New module 'unicase/u8-casecoll'.
40197         * lib/unicase/u8-casecoll.c: New file.
40198         * lib/unicase/u-casecoll.h: New file.
40199         * modules/unicase/u8-casecoll: New file.
40200
40201         New module 'unicase/u32-casexfrm'.
40202         * lib/unicase/u32-casexfrm.c: New file.
40203         * modules/unicase/u32-casexfrm: New file.
40204
40205         New module 'unicase/u16-casexfrm'.
40206         * lib/unicase/u16-casexfrm.c: New file.
40207         * modules/unicase/u16-casexfrm: New file.
40208
40209         New module 'unicase/u8-casexfrm'.
40210         * lib/unicase/u8-casexfrm.c: New file.
40211         * lib/unicase/u-casexfrm.h: New file.
40212         * modules/unicase/u8-casexfrm: New file.
40213
40214         Tests for module 'unicase/u32-casecmp'.
40215         * modules/unicase/u32-casecmp-tests: New file.
40216         * tests/unicase/test-u32-casecmp.c: New file.
40217
40218         Tests for module 'unicase/u16-casecmp'.
40219         * modules/unicase/u16-casecmp-tests: New file.
40220         * tests/unicase/test-u16-casecmp.c: New file.
40221
40222         Tests for module 'unicase/u8-casecmp'.
40223         * modules/unicase/u8-casecmp-tests: New file.
40224         * tests/unicase/test-u8-casecmp.c: New file.
40225         * tests/unicase/test-casecmp.h: New file.
40226
40227         New module 'unicase/u32-casecmp'.
40228         * lib/unicase/u32-casecmp.c: New file.
40229         * modules/unicase/u32-casecmp: New file.
40230
40231         New module 'unicase/u16-casecmp'.
40232         * lib/unicase/u16-casecmp.c: New file.
40233         * modules/unicase/u16-casecmp: New file.
40234
40235         New module 'unicase/u8-casecmp'.
40236         * lib/unicase/u8-casecmp.c: New file.
40237         * lib/unicase/u-casecmp.h: New file.
40238         * modules/unicase/u8-casecmp: New file.
40239
40240         Tests for module 'unicase/u32-casefold'.
40241         * modules/unicase/u32-casefold-tests: New file.
40242         * tests/unicase/test-u32-casefold.c: New file.
40243
40244         Tests for module 'unicase/u16-casefold'.
40245         * modules/unicase/u16-casefold-tests: New file.
40246         * tests/unicase/test-u16-casefold.c: New file.
40247
40248         Tests for module 'unicase/u8-casefold'.
40249         * modules/unicase/u8-casefold-tests: New file.
40250         * tests/unicase/test-u8-casefold.c: New file.
40251
40252         New module 'unicase/u32-casefold'.
40253         * lib/unicase/u32-casefold.c: New file.
40254         * modules/unicase/u32-casefold: New file.
40255
40256         New module 'unicase/u16-casefold'.
40257         * lib/unicase/u16-casefold.c: New file.
40258         * modules/unicase/u16-casefold: New file.
40259
40260         New module 'unicase/u8-casefold'.
40261         * lib/unicase/u8-casefold.c: New file.
40262         * lib/unicase/u-casefold.h: New file.
40263         * modules/unicase/u8-casefold: New file.
40264
40265         New module 'unicase/tocasefold'.
40266         * lib/unicase/casefold.h: New file.
40267         * lib/unicase/tocasefold.c: New file.
40268         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40269         * modules/unicase/tocasefold: New file.
40270
40271         Tests for module 'unicase/u32-totitle'.
40272         * modules/unicase/u32-totitle-tests: New file.
40273         * tests/unicase/test-u32-totitle.c: New file.
40274
40275         Tests for module 'unicase/u16-totitle'.
40276         * modules/unicase/u16-totitle-tests: New file.
40277         * tests/unicase/test-u16-totitle.c: New file.
40278
40279         Tests for module 'unicase/u8-totitle'.
40280         * modules/unicase/u8-totitle-tests: New file.
40281         * tests/unicase/test-u8-totitle.c: New file.
40282
40283         New module 'unicase/u32-totitle'.
40284         * lib/unicase/u32-totitle.c: New file.
40285         * modules/unicase/u32-totitle: New file.
40286
40287         New module 'unicase/u16-totitle'.
40288         * lib/unicase/u16-totitle.c: New file.
40289         * modules/unicase/u16-totitle: New file.
40290
40291         New module 'unicase/u8-totitle'.
40292         * lib/unicase/u8-totitle.c: New file.
40293         * lib/unicase/u-totitle.h: New file.
40294         * modules/unicase/u8-totitle: New file.
40295
40296         Tests for module 'unicase/u32-tolower'.
40297         * modules/unicase/u32-tolower-tests: New file.
40298         * tests/unicase/test-u32-tolower.c: New file.
40299
40300         Tests for module 'unicase/u16-tolower'.
40301         * modules/unicase/u16-tolower-tests: New file.
40302         * tests/unicase/test-u16-tolower.c: New file.
40303
40304         Tests for module 'unicase/u8-tolower'.
40305         * modules/unicase/u8-tolower-tests: New file.
40306         * tests/unicase/test-u8-tolower.c: New file.
40307
40308         New module 'unicase/u32-tolower'.
40309         * lib/unicase/u32-tolower.c: New file.
40310         * modules/unicase/u32-tolower: New file.
40311
40312         New module 'unicase/u16-tolower'.
40313         * lib/unicase/u16-tolower.c: New file.
40314         * modules/unicase/u16-tolower: New file.
40315
40316         New module 'unicase/u8-tolower'.
40317         * lib/unicase/u8-tolower.c: New file.
40318         * modules/unicase/u8-tolower: New file.
40319
40320         Tests for module 'unicase/u32-toupper'.
40321         * modules/unicase/u32-toupper-tests: New file.
40322         * tests/unicase/test-u32-toupper.c: New file.
40323
40324         Tests for module 'unicase/u16-toupper'.
40325         * modules/unicase/u16-toupper-tests: New file.
40326         * tests/unicase/test-u16-toupper.c: New file.
40327
40328         Tests for module 'unicase/u8-toupper'.
40329         * modules/unicase/u8-toupper-tests: New file.
40330         * tests/unicase/test-u8-toupper.c: New file.
40331
40332         New module 'unicase/u32-toupper'.
40333         * lib/unicase/u32-toupper.c: New file.
40334         * modules/unicase/u32-toupper: New file.
40335
40336         New module 'unicase/u16-toupper'.
40337         * lib/unicase/u16-toupper.c: New file.
40338         * modules/unicase/u16-toupper: New file.
40339
40340         New module 'unicase/u8-toupper'.
40341         * lib/unicase/u8-toupper.c: New file.
40342         * modules/unicase/u8-toupper: New file.
40343
40344         New module 'unicase/u32-casemap'.
40345         * lib/unicase/u32-casemap.c: New file.
40346         * modules/unicase/u32-casemap: New file.
40347
40348         New module 'unicase/u16-casemap'.
40349         * lib/unicase/u16-casemap.c: New file.
40350         * modules/unicase/u16-casemap: New file.
40351
40352         New module 'unicase/u8-casemap'.
40353         * lib/unicase/unicasemap.h: New file.
40354         * lib/unicase/u8-casemap.c: New file.
40355         * lib/unicase/u-casemap.h: New file.
40356         * modules/unicase/u8-casemap: New file.
40357
40358         New module 'unicase/special-casing'.
40359         * lib/unicase/special-casing.h: New file.
40360         * lib/unicase/special-casing.c: New file.
40361         * lib/unicase/special-casing-table.gperf: New file, generated by
40362         gen-uni-tables.c.
40363         * modules/unicase/special-casing: New file.
40364
40365         Tests for module 'unicase/locale-language'.
40366         * modules/unicase/locale-language-tests: New file.
40367         * tests/unicase/test-locale-language.sh: New file.
40368         * tests/unicase/test-locale-language.c: New file.
40369
40370         New module 'unicase/locale-language'.
40371         * lib/unicase/locale-language.c: New file.
40372         * lib/unicase/locale-languages.gperf: New file.
40373         * modules/unicase/locale-language: New file.
40374
40375         Generate more tables for case conversion and case folding.
40376         * lib/gen-uni-tables.c (SCC_*): New enum items.
40377         (struct special_casing_rule): New type.
40378         (casing_rules, num_casing_rules, allocated_casing_rules): New
40379         variables.
40380         (add_casing_rule, fill_casing_rules): New functions.
40381         (struct casefold_rule): New type.
40382         (casefolding_rules, num_casefolding_rules,
40383         allocated_casefolding_rules): New variables.
40384         (fill_casefolding_rules): New function.
40385         (unicode_casefold): New variable.
40386         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40387         sort_casing_rules, output_casing_rules): New functions.
40388         (main): Accept to more arguments: SpecialCasing.txt and
40389         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40390         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40391         Output mapping for casefolding.
40392
40393         * lib/unicase.h: Include stdbool.h, uninorm.h.
40394         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40395         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40396         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40397         arguments.
40398         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40399         resultp arguments.
40400         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40401         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40402         resultp arguments.
40403         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40404         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40405         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40406         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40407         declarations.
40408         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40409
40410 2009-03-08  Bruno Haible  <bruno@clisp.org>
40411
40412         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40413         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40414         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40415         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40416
40417 2009-03-07  Bruno Haible  <bruno@clisp.org>
40418
40419         Adjust u*_normcmp, u*_normcoll API.
40420         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40421         u16_normcoll, u32_normcoll): Change failure conventions.
40422         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40423         errno and return -1.
40424         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40425
40426 2009-03-07  Bruno Haible  <bruno@clisp.org>
40427
40428         Tests for module 'uninorm/u32-normcoll'.
40429         * modules/uninorm/u32-normcoll-tests: New file.
40430         * tests/uninorm/test-u32-normcoll.c: New file.
40431
40432         Tests for module 'uninorm/u16-normcoll'.
40433         * modules/uninorm/u16-normcoll-tests: New file.
40434         * tests/uninorm/test-u16-normcoll.c: New file.
40435
40436         Tests for module 'uninorm/u8-normcoll'.
40437         * modules/uninorm/u8-normcoll-tests: New file.
40438         * tests/uninorm/test-u8-normcoll.c: New file.
40439
40440 2009-03-07  Bruno Haible  <bruno@clisp.org>
40441
40442         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40443         tests/uninorm/test-u32-normcmp.c.
40444         * tests/uninorm/test-u32-normcmp.c: Include it.
40445         (test_nonascii): New function, extracted from main. Add some more
40446         tests.
40447         (main): Invoke test_ascii and test_nonascii.
40448         * modules/uninorm/u32-normcmp-tests (Files): Add
40449         tests/uninorm/test-u32-normcmp.h.
40450         (Depends-on): Remove uninorm/u32-normcmp.
40451
40452         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40453         tests/uninorm/test-u16-normcmp.c.
40454         * tests/uninorm/test-u16-normcmp.c: Include it.
40455         (test_nonascii): New function, extracted from main. Add some more
40456         tests.
40457         (main): Invoke test_ascii and test_nonascii.
40458         * modules/uninorm/u16-normcmp-tests (Files): Add
40459         tests/uninorm/test-u16-normcmp.h.
40460         (Depends-on): Remove uninorm/u16-normcmp.
40461
40462         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40463         tests/uninorm/test-u8-normcmp.c.
40464         * tests/uninorm/test-u8-normcmp.c: Include it.
40465         (test_nonascii): New function, extracted from main. Add some more
40466         tests.
40467         (main): Invoke test_ascii and test_nonascii.
40468         * modules/uninorm/u8-normcmp-tests (Files): Add
40469         tests/uninorm/test-u8-normcmp.h.
40470         (Depends-on): Remove uninorm/u8-normcmp.
40471
40472 2009-03-07  Bruno Haible  <bruno@clisp.org>
40473
40474         New module 'uninorm/u32-normcoll'.
40475         * lib/uninorm/u32-normcoll.c: New file.
40476         * modules/uninorm/u32-normcoll: New file.
40477
40478         New module 'uninorm/u16-normcoll'.
40479         * lib/uninorm/u16-normcoll.c: New file.
40480         * modules/uninorm/u16-normcoll: New file.
40481
40482         New module 'uninorm/u8-normcoll'.
40483         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40484         declarations.
40485         * lib/uninorm/u8-normcoll.c: New file.
40486         * lib/uninorm/u-normcoll.h: New file.
40487         * modules/uninorm/u8-normcoll: New file.
40488
40489         New module 'uninorm/u32-normxfrm'.
40490         * lib/uninorm/u32-normxfrm.c: New file.
40491         * modules/uninorm/u32-normxfrm: New file.
40492
40493         New module 'uninorm/u16-normxfrm'.
40494         * lib/uninorm/u16-normxfrm.c: New file.
40495         * modules/uninorm/u16-normxfrm: New file.
40496
40497         New module 'uninorm/u8-normxfrm'.
40498         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40499         declarations.
40500         * lib/uninorm/u8-normxfrm.c: New file.
40501         * lib/uninorm/u-normxfrm.h: New file.
40502         * modules/uninorm/u8-normxfrm: New file.
40503
40504 2009-03-07  Bruno Haible  <bruno@clisp.org>
40505
40506         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40507         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40508         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40509
40510 2009-03-07  Bruno Haible  <bruno@clisp.org>
40511
40512         New module 'memxfrm'.
40513         * lib/memxfrm.h: New file.
40514         * lib/memxfrm.c: New file.
40515         * modules/memxfrm: New file.
40516
40517 2009-03-07  Bruno Haible  <bruno@clisp.org>
40518
40519         New module 'memcmp2'.
40520         * lib/memcmp2.h: New file.
40521         * lib/memcmp2.c: New file.
40522         * modules/memcmp2: New file.
40523
40524 2009-03-07  Bruno Haible  <bruno@clisp.org>
40525
40526         Tests for module 'uninorm/decomposing-form'.
40527         * modules/uninorm/decomposing-form-tests: New file.
40528         * tests/uninorm/test-decomposing-form.c: New file.
40529
40530         New module 'uninorm/decomposing-form'.
40531         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40532         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40533         Add 'decomposing_variant' field.
40534         * lib/uninorm/decomposing-form.c: New file.
40535         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40536         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40537         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40538         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40539         * modules/uninorm/decomposing-form: New file.
40540         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40541         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40542
40543 2009-03-07  Bruno Haible  <bruno@clisp.org>
40544
40545         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40546         strings.
40547
40548 2009-03-06  Bruno Haible  <bruno@clisp.org>
40549
40550         Tests for module 'uninorm/u32-normcmp'.
40551         * tests/uninorm/test-u32-normcmp.c: New file.
40552         * modules/uninorm/u32-normcmp-tests: New file.
40553
40554         Tests for module 'uninorm/u16-normcmp'.
40555         * tests/uninorm/test-u16-normcmp.c: New file.
40556         * modules/uninorm/u16-normcmp-tests: New file.
40557
40558         Tests for module 'uninorm/u8-normcmp'.
40559         * tests/uninorm/test-u8-normcmp.c: New file.
40560         * modules/uninorm/u8-normcmp-tests: New file.
40561
40562         New module 'uninorm/u32-normcmp'.
40563         * lib/uninorm/u32-normcmp.c: New file.
40564         * modules/uninorm/u32-normcmp: New file.
40565
40566         New module 'uninorm/u16-normcmp'.
40567         * lib/uninorm/u16-normcmp.c: New file.
40568         * modules/uninorm/u16-normcmp: New file.
40569
40570         New module 'uninorm/u8-normcmp'.
40571         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40572         declarations.
40573         * lib/uninorm/u8-normcmp.c: New file.
40574         * lib/uninorm/u-normcmp.h: New file.
40575         * modules/uninorm/u8-normcmp: New file.
40576
40577 2009-03-06  Bruno Haible  <bruno@clisp.org>
40578
40579         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40580         Reported by Eric Blake.
40581
40582 2009-03-06  Eric Blake  <ebb9@byu.net>
40583             Bruno Haible  <bruno@clisp.org>
40584
40585         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40586         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40587         condition.
40588         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40589         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40590         condition.
40591         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40592
40593 2009-03-06  Eric Blake  <ebb9@byu.net>
40594
40595         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40596         to avoid compiler warnings.
40597         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40598
40599 2009-03-05  Bruno Haible  <bruno@clisp.org>
40600
40601         * tests/test-ftell.c (main): Disable test beyond end of file on
40602         FreeMiNT.
40603         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40604
40605 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40606
40607         * lib/filevercmp.c: Move hidden files up in ordering.
40608         * tests/test-filevercmp.c: Add tests for hidden files.
40609
40610 2009-03-04  Bruno Haible  <bruno@clisp.org>
40611
40612         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40613         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40614         AM_CFLAGS.
40615         Reported by Simon Josefsson.
40616
40617 2009-03-03  Bruno Haible  <bruno@clisp.org>
40618
40619         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40620         Reported by Simon Josefsson.
40621
40622         * doc/ld-version-script.texi: Update node reference.
40623
40624 2009-03-03  Bruno Haible  <bruno@clisp.org>
40625
40626         * modules/visibility (License): Change to 'unlimited'.
40627         Suggested by Simon Josefsson.
40628
40629 2009-03-03  Jim Meyering  <meyering@redhat.com>
40630
40631         unlinkdir: cannot_unlink_dir may modify process state
40632         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40633         it's neither thread-safe nor appropriate for use in a library.
40634
40635 2009-03-03  Eric Blake  <ebb9@byu.net>
40636
40637         test-closein: silence test under Darwin
40638         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40639         care if it dies from EPIPE or EBADF.
40640
40641 2009-03-03  Bruno Haible  <bruno@clisp.org>
40642
40643         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40644         earlier.
40645         * doc/visibility.texi: Fix @node and @section.
40646
40647 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40648
40649         * doc/gnulib.texi: Link to sections for ld version script and
40650         visibility.
40651         * doc/visibility.texi: Add @node and @section.
40652         * modules/ld-version-script: New module.
40653         * m4/ld-version-script.m4: New file.
40654         * doc/ld-version-script.texi: New file.
40655
40656 2009-03-02  David Lutterkort  <lutter@redhat.com>
40657
40658         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40659         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40660
40661 2009-03-02  Bruno Haible  <bruno@clisp.org>
40662
40663         * doc/visibility.texi: Mention libtool's -export-symbols option.
40664
40665 2009-03-02  Jim Meyering  <meyering@redhat.com>
40666
40667         announce-gen: new option: --no-print-checksums
40668         * build-aux/announce-gen (usage): Describe it.
40669         (print_checksums): Print a newline here, not in the [*] footnote.
40670         (main): Honor it.
40671
40672 2009-03-01  Bruno Haible  <bruno@clisp.org>
40673
40674         Use socklen_t in the native Windows replacements prototypes.
40675         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40676         instead of 'int'.
40677         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40678         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40679         * modules/getsockopt (Depends-on): Add socklen.
40680         * modules/setsockopt (Depends-on): Add socklen.
40681
40682 2009-03-01  Bruno Haible  <bruno@clisp.org>
40683
40684         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40685         least 4.2.
40686
40687 2009-03-01  Eric Blake  <ebb9@byu.net>
40688             Bruno Haible  <bruno@clisp.org>
40689
40690         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40691         error messages.
40692         * lib/wait-process.c (wait_subprocess): Omit error message about
40693         deadly signal sent to the child of termsigp != NULL.
40694
40695 2009-03-01  Eric Blake  <ebb9@byu.net>
40696
40697         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40698
40699 2009-03-01  Bruno Haible  <bruno@clisp.org>
40700
40701         Avoid a gcc warning.
40702         * tests/test-sched.c (b): Make global.
40703         Reported by Eric Blake.
40704
40705 2009-01-19  Martin Lambers  <marlam@marlam.de>
40706
40707         Provide POSIX semantics for socket timeout options on W32.
40708         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40709         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40710         * modules/setsockopt: Depend on sys_time module for struct timeval.
40711         * modules/getsockopt: Depend on sys_time module for struct timeval.
40712
40713 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40714
40715         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40716         __USE_GNU, for consistency with netdb.in.h.
40717         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40718
40719 2009-03-01  Bruno Haible  <bruno@clisp.org>
40720
40721         More support for FreeMiNT.
40722         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40723         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40724
40725 2009-03-01  Bruno Haible  <bruno@clisp.org>
40726
40727         More support for FreeMiNT.
40728         * lib/fpurge.c (fpurge): Correct last commit.
40729         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40730
40731 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40732
40733         Fix unportable awk script in vc-list-files.
40734         * build-aux/vc-list-files: In the replacement awk script, use
40735         substr with a second argument of 1, not zero.
40736         Report by Simon Josefsson.
40737
40738 2009-02-28  Bruno Haible  <bruno@clisp.org>
40739
40740         More support for FreeMiNT.
40741         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40742         to FreeMiNT today.
40743         * lib/fwriting.c (fwriting): Likewise.
40744         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40745
40746 2009-02-28  Bruno Haible  <bruno@clisp.org>
40747
40748         * tests/test-freadseek.c (main): Disable test beyond end of file on
40749         FreeMiNT.
40750         * tests/test-ftello.c (main): Likewise.
40751         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40752
40753 2009-02-28  Bruno Haible  <bruno@clisp.org>
40754
40755         Add tentative support for FreeMiNT.
40756         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40757         * lib/fpurge.c (fpurge): Likewise.
40758         * lib/freadable.c (freadable): Likewise.
40759         * lib/freading.c (freading): Likewise.
40760         * lib/freadptr.c (freadptr): Likewise.
40761         * lib/freadseek.c (freadptrinc): Likewise.
40762         * lib/fseeko.c (rpl_fseeko): Likewise.
40763         * lib/fseterr.c (fseterr): Likewise.
40764         * lib/fwritable.c (fwritable): Likewise.
40765         * lib/fwriting.c (fwriting): Likewise.
40766         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40767         Hourihane.
40768         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40769
40770 2009-02-28  Bruno Haible  <bruno@clisp.org>
40771
40772         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40773         SIGCHLD.
40774         Reported by Jim Meyering.
40775
40776 2009-02-28  Bruno Haible  <bruno@clisp.org>
40777
40778         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40779         Mention the results of these tests on various platforms.
40780         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40781         order.
40782         * doc/posix-functions/printf.texi: Likewise.
40783         * doc/posix-functions/snprintf.texi: Likewise.
40784         * doc/posix-functions/sprintf.texi: Likewise.
40785         * doc/posix-functions/vfprintf.texi: Likewise.
40786         * doc/posix-functions/vprintf.texi: Likewise.
40787         * doc/posix-functions/vsnprintf.texi: Likewise.
40788         * doc/posix-functions/vsprintf.texi: Likewise.
40789         * doc/glibc-functions/obstack_printf.texi: Likewise.
40790         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40791
40792 2009-02-28  Bruno Haible  <bruno@clisp.org>
40793
40794         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40795         Reported by Loïc Minier <lool@dooz.org>.
40796
40797 2009-02-27  Bruno Haible  <bruno@clisp.org>
40798
40799         * gnulib-tool (func_import): Make the sed expression used to create the
40800         sed script for updating the .gitignore file POSIX compliant.
40801         Reported by Eric Blake.
40802
40803 2009-02-27  Bruno Haible  <bruno@clisp.org>
40804
40805         * gnulib-tool (sed): Don't alias as "sed --posix".
40806         Reported by Eric Blake.
40807
40808 2009-02-27  Bruno Haible  <bruno@clisp.org>
40809
40810         Avoid test link errors.
40811         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40812         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40813         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40814         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40815         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40816
40817 2009-02-27  Bruno Haible  <bruno@clisp.org>
40818
40819         Avoid spurious "(cached)" in configure output.
40820         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40821         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40822         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40823         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40824         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40825         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40826         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40827         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40828         Reported by Eric Blake.
40829
40830 2009-02-27  Eric Blake  <ebb9@byu.net>
40831
40832         printf: fix regression in previous patch
40833         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40834
40835 2009-02-27  Bruno Haible  <bruno@clisp.org>
40836
40837         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40838         value.
40839         * lib/stdint.in.h: Likewise.
40840         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40841
40842 2009-02-27  Eric Blake  <ebb9@byu.net>
40843
40844         doc: mention more functions added in cygwin 1.7.0
40845         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40846         addition.
40847         * doc/posix-functions/open_wmemstream.texi: Likewise.
40848         * doc/posix-functions/wcsnlen.texi: Likewise.
40849         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40850         * doc/posix-functions/wcstod.texi: Likewise.
40851         * doc/posix-functions/wcstof.texi: Likewise.
40852         * doc/posix-functions/wcstoimax.texi: Likewise.
40853         * doc/posix-functions/wcstok.texi: Likewise.
40854         * doc/posix-functions/wcstoumax.texi: Likewise.
40855
40856         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40857         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40858         * doc/posix-functions/fprintf.texi: Update.
40859         * doc/posix-functions/printf.texi: Update.
40860         * doc/posix-functions/snprintf.texi: Update.
40861         * doc/posix-functions/sprintf.texi: Update.
40862         * doc/posix-functions/vfprintf.texi: Update.
40863         * doc/posix-functions/vprintf.texi: Update.
40864         * doc/posix-functions/vsnprintf.texi: Update.
40865         * doc/posix-functions/vsprintf.texi: Update.
40866         * doc/glibc-functions/obstack_printf.texi: Update.
40867         * doc/glibc-functions/obstack_vprintf.texi: Update.
40868
40869 2009-02-26  Eric Blake  <ebb9@byu.net>
40870
40871         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40872         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40873         compilation bug by using runtime conversion.
40874         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40875         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40876         * modules/ceill-tests (Files): Use nan.h.
40877         * modules/floorl-tests (Files): Likewise.
40878         * modules/frexpl-tests (Files): Likewise.
40879         * modules/isnanl-tests (Files): Likewise.
40880         * modules/ldexpl-tests (Files): Likewise.
40881         * modules/roundl-tests (Files): Likewise.
40882         * modules/truncl-tests (Files): Likewise.
40883         * tests/test-ceill.c (main): Use a working NaN.
40884         * tests/test-floorl.c (main): Likewise.
40885         * tests/test-frexpl.c (main): Likewise.
40886         * tests/test-isnan.c (test_long_double): Likewise.
40887         * tests/test-isnanl.h (main): Likewise.
40888         * tests/test-ldexpl.h (main): Likewise.
40889         * tests/test-roundl.h (main): Likewise.
40890         * tests/test-truncl.h (main): Likewise.
40891         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40892
40893 2009-02-26  Eric Blake  <ebb9@byu.net>
40894             Bruno Haible  <bruno@clisp.org>
40895
40896         Work around a *printf bug with %ls on Solaris.
40897         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40898         precision is specified, sprintf stops converting the wide string
40899         argument when the number of bytes that have been produced by this
40900         conversion equals or exceeds the precision.
40901         * doc/posix-functions/fprintf.texi: Update.
40902         * doc/posix-functions/printf.texi: Update.
40903         * doc/posix-functions/snprintf.texi: Update.
40904         * doc/posix-functions/sprintf.texi: Update.
40905         * doc/posix-functions/vfprintf.texi: Update.
40906         * doc/posix-functions/vprintf.texi: Update.
40907         * doc/posix-functions/vsnprintf.texi: Update.
40908         * doc/posix-functions/vsprintf.texi: Update.
40909         * doc/glibc-functions/obstack_printf.texi: Update.
40910         * doc/glibc-functions/obstack_vprintf.texi: Update.
40911
40912 2009-02-26  Eric Blake  <ebb9@byu.net>
40913
40914         stdlib: favor compiler check of random.h
40915         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40916         to avoid an ObjC random.h installed by Swarm.
40917
40918 2009-02-26  Bruno Haible  <bruno@clisp.org>
40919
40920         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40921         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40922         Reported by Gary V. Vaughan <gary@gnu.org>.
40923
40924 2009-02-26  Bruno Haible  <bruno@clisp.org>
40925
40926         Fix *printf behaviour regarding the %ls directive.
40927         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40928         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40929         NEED_PRINTF_DIRECTIVE_LS.
40930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40931         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40932         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40933         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40934         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40935         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40936         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40937         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40938         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40939         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40940         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40941         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40942         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40943         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40944         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40945         * doc/posix-functions/fprintf.texi: Update.
40946         * doc/posix-functions/printf.texi: Update.
40947         * doc/posix-functions/snprintf.texi: Update.
40948         * doc/posix-functions/sprintf.texi: Update.
40949         * doc/posix-functions/vfprintf.texi: Update.
40950         * doc/posix-functions/vprintf.texi: Update.
40951         * doc/posix-functions/vsnprintf.texi: Update.
40952         * doc/posix-functions/vsprintf.texi: Update.
40953         * doc/glibc-functions/obstack_printf.texi: Update.
40954         * doc/glibc-functions/obstack_vprintf.texi: Update.
40955         Reported by Eric Blake.
40956
40957 2009-02-25  Bruno Haible  <bruno@clisp.org>
40958
40959         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40960         with known value.
40961         Reported by Gary V. Vaughan <gary@gnu.org>.
40962
40963 2009-02-25  Bruno Haible  <bruno@clisp.org>
40964
40965         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40966         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40967         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40968         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40969         Reported by Gary V. Vaughan <gary@gnu.org>.
40970
40971 2009-02-25  Bruno Haible  <bruno@clisp.org>
40972
40973         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40974         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40975         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40976         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40977         Reported by Gary V. Vaughan <gary@gnu.org>.
40978
40979 2009-02-25  Eric Blake  <ebb9@byu.net>
40980
40981         tests: skip fseek/ftell tests if ungetc is broken
40982         * m4/ungetc.m4: New file.
40983         * modules/fseek-tests: Split test, so ungetc dependency is
40984         separate from rest of test.
40985         * modules/fseeko-tests: Likewise.
40986         * modules/ftell-tests: Likewise.
40987         * modules/ftello-tests: Likewise.
40988         * tests/test-fseek.c (main): Isolate ungetc dependency.
40989         * tests/test-fseeko.c (main): Likewise.
40990         * tests/test-ftell.c (main): Likewise.
40991         * tests/test-ftello.c (main): Likewise.
40992         * tests/test-fseek2.sh: New file.
40993         * tests/test-fseeko2.sh: Likewise.
40994         * tests/test-ftell2.sh: Likewise.
40995         * tests/test-ftello2.sh: Likewise.
40996
40997 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40998
40999         test-getaddrinfo: fix usage of skip return code 77
41000         * tests/test-gettaddrinfo.c: Return skip code 77 only
41001         for first occurance of skip (4x77 is not 77)
41002
41003 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41004
41005         strtod: avoid C99 decl-after-statement
41006         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41007
41008 2009-02-24  Eric Blake  <ebb9@byu.net>
41009
41010         strtod: detect HP-UX 11.31 bug
41011         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41012         Reported by Gary V. Vaughan.
41013
41014 2009-02-23  Bruno Haible  <bruno@clisp.org>
41015
41016         Fix invalid read past end of memory block.
41017         * lib/vasnprintf.c (DCHAR_SET): Define.
41018         (local_wcslen): Define only when needed.
41019         (local_strnlen, local_wcsnlen): New functions.
41020         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41021         directives that involve a conversion ourselves.
41022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41023         wcsnlen, mbrtowc, wcrtomb.
41024         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41025         * tests/test-vasprintf-posix.c (test_function): Likewise.
41026         * tests/test-snprintf-posix.h (test_function): Likewise.
41027         * tests/test-sprintf-posix.h (test_function): Likewise.
41028         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41029
41030 2009-02-22  Bruno Haible  <bruno@clisp.org>
41031
41032         Implement new clarified decomposition of Hangul syllables.
41033         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41034         of type LTV, return only a pairwise decomposition.
41035         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41036         Likewise.
41037         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41038         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41039         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41040
41041 2009-02-22  Bruno Haible  <bruno@clisp.org>
41042
41043         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41044         zero-length results and shrink excess allocated memory.
41045         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41046         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41047         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41048         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41049         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41050         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41051         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41052         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41053         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41054         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41055         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41056         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41057
41058 2009-02-21  Bruno Haible  <bruno@clisp.org>
41059
41060         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41061         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41062         spaces after a period. Put a space between a macro name and its
41063         argument list. Trivial rewordings.
41064         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41065         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41066         (main): Return 0 explicitly.
41067
41068 2009-02-21  Bruno Haible  <bruno@clisp.org>
41069
41070         Tests for module 'uninorm/filter'.
41071         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41072         * modules/uninorm/filter-tests: New file.
41073
41074         New module 'uninorm/filter'.
41075         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41076         uninorm_filter_flush, uninorm_filter_free): New declarations.
41077         * lib/uninorm/uninorm-filter.c: New file.
41078         * modules/uninorm/filter: New file.
41079
41080 2009-02-21  Bruno Haible  <bruno@clisp.org>
41081
41082         Tests for module 'uninorm/nfkc'.
41083         * tests/uninorm/test-nfkc.c: New file.
41084         * tests/uninorm/test-u8-nfkc.c: New file.
41085         * tests/uninorm/test-u16-nfkc.c: New file.
41086         * tests/uninorm/test-u32-nfkc.c: New file.
41087         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41088         * tests/uninorm/test-u32-nfkc-big.c: New file.
41089         * modules/uninorm/nfkc-tests: New file.
41090
41091         New module 'uninorm/nfkc'.
41092         * lib/uninorm/nfkc.c: New file.
41093         * modules/uninorm/nfkc: New file.
41094
41095         Tests for module 'uninorm/nfkd'.
41096         * tests/uninorm/test-nfkd.c: New file.
41097         * tests/uninorm/test-u8-nfkd.c: New file.
41098         * tests/uninorm/test-u16-nfkd.c: New file.
41099         * tests/uninorm/test-u32-nfkd.c: New file.
41100         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41101         * tests/uninorm/test-u32-nfkd-big.c: New file.
41102         * modules/uninorm/nfkd-tests: New file.
41103
41104         New module 'uninorm/nfkd'.
41105         * lib/uninorm/nfkd.c: New file.
41106         * modules/uninorm/nfkd: New file.
41107
41108         Tests for module 'uninorm/nfc'.
41109         * tests/uninorm/test-nfc.c: New file.
41110         * tests/uninorm/test-u8-nfc.c: New file.
41111         * tests/uninorm/test-u16-nfc.c: New file.
41112         * tests/uninorm/test-u32-nfc.c: New file.
41113         * tests/uninorm/test-u32-nfc-big.sh: New file.
41114         * tests/uninorm/test-u32-nfc-big.c: New file.
41115         * modules/uninorm/nfc-tests: New file.
41116
41117         New module 'uninorm/nfc'.
41118         * lib/uninorm/nfc.c: New file.
41119         * modules/uninorm/nfc: New file.
41120
41121         Tests for module 'uninorm/nfd'.
41122         * tests/uninorm/test-nfd.c: New file.
41123         * tests/uninorm/test-u8-nfd.c: New file.
41124         * tests/uninorm/test-u16-nfd.c: New file.
41125         * tests/uninorm/test-u32-nfd.c: New file.
41126         * tests/uninorm/test-u32-nfd-big.sh: New file.
41127         * tests/uninorm/test-u32-nfd-big.c: New file.
41128         * tests/uninorm/test-u32-normalize-big.h: New file.
41129         * tests/uninorm/test-u32-normalize-big.c: New file.
41130         * tests/uninorm/NormalizationTest.txt: New file, created from
41131         Unicode 5.1.0 NormalizationTest.txt.
41132         * modules/uninorm/nfd-tests: New file.
41133
41134         New module 'uninorm/nfd'.
41135         * lib/uninorm/nfd.c: New file.
41136         * modules/uninorm/nfd: New file.
41137
41138         New module 'uninorm/u32-normalize'.
41139         * lib/uninorm/u32-normalize.c: New file.
41140         * modules/uninorm/u32-normalize: New file.
41141
41142         New module 'uninorm/u16-normalize'.
41143         * lib/uninorm/u16-normalize.c: New file.
41144         * modules/uninorm/u16-normalize: New file.
41145
41146         New module 'uninorm/u8-normalize'.
41147         * lib/uninorm/u8-normalize.c: New file.
41148         * lib/uninorm/normalize-internal.h: New file.
41149         * lib/uninorm/u-normalize-internal.h: New file.
41150         * modules/uninorm/u8-normalize: New file.
41151
41152         New module 'uninorm/decompose-internal'.
41153         * lib/uninorm/decompose-internal.c: New file.
41154         * modules/uninorm/decompose-internal: New file.
41155
41156         Tests for module 'uninorm/composition'.
41157         * tests/uninorm/test-composition.c: New file.
41158         * modules/uninorm/composition-tests: New file.
41159
41160         New module 'uninorm/composition'.
41161         * lib/uninorm/composition.c: New file.
41162         * lib/uninorm/composition-table.gperf: New file, generated by
41163         gen-uni-tables.
41164         * modules/uninorm/composition: New file.
41165
41166         Tests for module 'uninorm/compat-decomposition'.
41167         * tests/uninorm/test-compat-decomposition.c: New file.
41168         * modules/uninorm/compat-decomposition-tests: New file.
41169
41170         New module 'uninorm/compat-decomposition'.
41171         * lib/uninorm/decompose-internal.h: New file.
41172         * lib/uninorm/compat-decomposition.c: New file.
41173         * modules/uninorm/compat-decomposition: New file.
41174
41175         Tests for module 'uninorm/canonical-decomposition'.
41176         * tests/uninorm/test-canonical-decomposition.c: New file.
41177         * modules/uninorm/canonical-decomposition-tests: New file.
41178
41179         New module 'uninorm/canonical-decomposition'.
41180         * lib/uninorm/canonical-decomposition.c: New file.
41181         * modules/uninorm/canonical-decomposition: New file.
41182
41183         Tests for module 'uninorm/decomposition'.
41184         * tests/uninorm/test-decomposition.c: New file.
41185         * modules/uninorm/decomposition-tests: New file.
41186
41187         New module 'uninorm/decomposition'.
41188         * lib/uninorm/decomposition.c: New file.
41189         * modules/uninorm/decomposition: New file.
41190
41191         New module 'uninorm/decomposition-table'.
41192         * lib/uninorm/decomposition-table.h: New file.
41193         * lib/uninorm/decomposition-table.c: New file.
41194         * lib/uninorm/decomposition-table1.h: New file, generated by
41195         gen-uni-tables.
41196         * lib/uninorm/decomposition-table2.h: New file, generated by
41197         gen-uni-tables.
41198         * modules/uninorm/decomposition-table: New file.
41199
41200         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41201         (UC_DECOMP_*): New enumeration items.
41202         (get_decomposition): New function.
41203         (struct decomp_table): New type.
41204         (output_decomposition, output_decomposition_tables): New functions.
41205         (unicode_composition_exclusions): New variable.
41206         (fill_composition_exclusions, debug_output_composition_tables): New
41207         functions.
41208         (main): Accept one more argument. Invoke fill_composition_exclusions.
41209         Output decomposition and composition tables.
41210
41211         New module 'uninorm/base'.
41212         * lib/uninorm.h: New file.
41213         * lib/unictype.h: Update comment.
41214         * modules/uninorm/base: New file.
41215
41216 2009-02-21  David Lutterkort  <lutter@redhat.com>
41217
41218         Tests for module 'safe-alloc'.
41219         * tests/test-safe-alloc.c: New file.
41220         * modules/safe-alloc-tests: New file.
41221
41222         New module 'safe-alloc'.
41223         * lib/safe-alloc.h: New file.
41224         * lib/safe-alloc.c: New file.
41225         * m4/safe-alloc.m4: New file.
41226         * modules/safe-alloc: New file.
41227         * doc/safe-alloc.texi: New file.
41228         * doc/gnulib.texi: Include it.
41229         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41230         safe-alloc.
41231
41232 2009-02-18  Bruno Haible  <bruno@clisp.org>
41233
41234         Fix link error on non-glibc systems.
41235         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41236         variable.
41237         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41238
41239 2009-02-18  Jim Meyering  <meyering@redhat.com>
41240
41241         fts: avoid used-uninitialized error due to recent change
41242         * lib/fts.c (fts_read): Guard uses of the new member,
41243         parent->fts_n_dirs_remaining, since it's not relevant for
41244         the parent of a directory specified on the command-line.
41245
41246 2009-02-17  James Youngman  <jay@gnu.org>
41247             Bruno Haible  <bruno@clisp.org>
41248
41249         * m4/include_next.m4: Reformulate comment.
41250
41251 2009-02-16  Jim Meyering  <meyering@redhat.com>
41252
41253         fts: add #if guards so that the fts_lgpl module still builds
41254         * lib/fts.c: Guard just-added hash-table-using parts with
41255         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41256         Reported by Simon Josefsson.
41257
41258 2009-02-15  Bruno Haible  <bruno@clisp.org>
41259
41260         * modules/array-mergesort-tests: New file.
41261         * tests/test-array-mergesort.c: New file.
41262
41263         New module 'array-mergesort'.
41264         * modules/array-mergesort: New file.
41265         * lib/array-mergesort.h: New file.
41266
41267 2009-02-15  Bruno Haible  <bruno@clisp.org>
41268
41269         Fix 2009-02-07 commit.
41270         * lib/gen-uni-tables.c (output_predicate, output_category,
41271         output_combclass, output_bidi_category, output_decimal_digit,
41272         output_digit, output_numeric, output_mirror, output_scripts,
41273         output_ident_category, output_simple_mapping): Fix format directives.
41274         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41275
41276 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41277
41278         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41279         fixes are available from IBM.
41280
41281 2009-02-13  Jim Meyering  <meyering@redhat.com>
41282
41283         fts: arrange not to stat non-directories in more cases
41284         This makes GNU find (when it doesn't need to stat each file)
41285         *much* more efficient at traversing reiserfs file systems.
41286         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41287         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41288         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41289         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41290         (leaf_optimization_applies): New function.
41291         (LCO_hash, LCO_compare): New helper functions.
41292         (link_count_optimize_ok): New function.
41293         (fts_stat): Initialize new member (if dir).
41294         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41295         we've just stat'ed a directory.  Skip the stat call when possible.
41296         ---
41297         Note this AFS-related exchange:
41298         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41299         and note find's pioctl call in find/fstype.c.
41300         But that is necessary only if you want to enable the
41301         optimization for AFS, and for now, I don't.
41302
41303         fts: move a function definition "up" (no semantic change)
41304         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41305         "up" to precede upcoming use of a related function.
41306
41307 2009-02-11  Jim Meyering  <meyering@redhat.com>
41308
41309         fts: correct internal computation of nlinks (optimization-related)
41310         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41311         whether the current entry is a directory, so don't test it.
41312
41313 2009-02-10  Bruno Haible  <bruno@clisp.org>
41314
41315         Tests for module 'uniwbrk/ulc-wordbreaks'.
41316         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41317         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41318         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41319
41320         Tests for module 'uniwbrk/u32-wordbreaks'.
41321         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41322         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41323
41324         Tests for module 'uniwbrk/u16-wordbreaks'.
41325         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41326         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41327
41328         Tests for module 'uniwbrk/u8-wordbreaks'.
41329         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41330         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41331
41332 2009-02-10  Bruno Haible  <bruno@clisp.org>
41333
41334         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41335         property.
41336         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41337         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41338         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41339
41340 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41341
41342         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41343         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41344
41345 2009-02-10  Bruno Haible  <bruno@clisp.org>
41346
41347         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41348         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41349         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41350         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41351         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41352         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41353
41354 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41355
41356         * lib/sockets.h (gl_fd_to_handle): New function.
41357
41358         * tests/test-sockets.c: Call gl_fd_to_handle.
41359
41360 2009-02-09  Bruno Haible  <bruno@clisp.org>
41361
41362         * doc/havelib.texi: Document the conventions on bi-arch systems.
41363
41364 2009-02-08  Bruno Haible  <bruno@clisp.org>
41365
41366         Document the AC_LIB_LINKFLAGS macro.
41367         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41368         * doc/gnulib.texi: Include it.
41369
41370 2009-02-08  Bruno Haible  <bruno@clisp.org>
41371
41372         Fix wrong order of sections, compared to TOC.
41373         * doc/gnulib.texi: Include relocatable-maint.texi after the
41374         "Regular expressions" node, not before.
41375
41376 2009-02-08  Bruno Haible  <bruno@clisp.org>
41377
41378         Tests for module 'unicase/totitle'.
41379         * modules/unicase/totitle-tests: New file.
41380
41381         Tests for module 'unicase/tolower'.
41382         * modules/unicase/tolower-tests: New file.
41383
41384         Tests for module 'unicase/toupper'.
41385         * modules/unicase/toupper-tests: New file.
41386         * tests/unicase/test-mapping-part1.h: New file.
41387         * tests/unicase/test-mapping-part2.h: New file.
41388
41389         New module 'unicase/totitle'.
41390         * modules/unicase/totitle: New file.
41391         * lib/unicase/totitle.c: New file.
41392
41393         New module 'unicase/tolower'.
41394         * modules/unicase/tolower: New file.
41395         * lib/unicase/tolower.c: New file.
41396
41397         New module 'unicase/toupper'.
41398         * modules/unicase/toupper: New file.
41399         * lib/unicase/toupper.c: New file.
41400         * lib/unicase/simple-mapping.h: New file.
41401
41402         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41403         (mapping_table): New structure.
41404         (output_simple_mapping): New function.
41405         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41406         * modules/gen-uni-tables (Description): Update.
41407         * lib/unicase/toupper.h: New file, automatically generated by
41408         gen-uni-tables.
41409         * lib/unicase/tolower.h: New file, automatically generated by
41410         gen-uni-tables.
41411         * lib/unicase/totitle.h: New file, automatically generated by
41412         gen-uni-tables.
41413         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41414         gen-uni-tables.
41415         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41416         gen-uni-tables.
41417         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41418         gen-uni-tables.
41419
41420         New module 'unicase/base'.
41421         * modules/unicase/base: New file.
41422         * lib/unicase.h: New file.
41423
41424 2009-02-08  Bruno Haible  <bruno@clisp.org>
41425
41426         New module 'uniwbrk/ulc-wordbreaks'.
41427         * modules/uniwbrk/ulc-wordbreaks: New file.
41428         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41429
41430         New module 'uniwbrk/u32-wordbreaks'.
41431         * modules/uniwbrk/u32-wordbreaks: New file.
41432         * lib/uniwbrk/u32-wordbreaks.c: New file.
41433
41434         New module 'uniwbrk/u16-wordbreaks'.
41435         * modules/uniwbrk/u16-wordbreaks: New file.
41436         * lib/uniwbrk/u16-wordbreaks.c: New file.
41437
41438         New module 'uniwbrk/u8-wordbreaks'.
41439         * modules/uniwbrk/u8-wordbreaks: New file.
41440         * lib/uniwbrk/u8-wordbreaks.c: New file.
41441         * lib/uniwbrk/u-wordbreaks.h: New file.
41442
41443         New module 'uniwbrk/table'.
41444         * modules/uniwbrk/table: New file.
41445         * lib/uniwbrk/wbrktable.h: New file.
41446         * lib/uniwbrk/wbrktable.c: New file.
41447
41448         New module 'uniwbrk/wordbreak-property'.
41449         * modules/uniwbrk/wordbreak-property: New file.
41450         * lib/uniwbrk/wordbreak-property.c: New file.
41451
41452         * lib/gen-uni-tables.c (WBP_*): New enum items.
41453         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41454         (unicode_org_wbp): New variable.
41455         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41456         New functions.
41457         (wbp_table): New structure.
41458         (output_wbp, output_wbrk_tables): New functions.
41459         (main): Accept additional argument. Invoke fill_org_wbp,
41460         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41461         output_wbrk_tables.
41462         * modules/gen-uni-tables (Description): Update.
41463         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41464         gen-uni-tables.
41465
41466         New module 'uniwbrk/base'.
41467         * modules/uniwbrk/base: New file.
41468         * lib/uniwbrk.h: New file.
41469
41470 2009-02-08  Bruno Haible  <bruno@clisp.org>
41471
41472         Update to Unicode 5.1.0.
41473         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41474         U+2185..U+2188.
41475         (is_property_default_ignorable_code_point): Don't include characters
41476         of category Cc or Cs and not-a-characters.
41477         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41478         U+0D79, U+109E, U+109F, U+A60C.
41479         * lib/unictype/bidi_of.h: Regenerated.
41480         * lib/unictype/blocks.h: Regenerated.
41481         * lib/unictype/categ_C.h: Regenerated.
41482         * lib/unictype/categ_Cf.h: Regenerated.
41483         * lib/unictype/categ_Cn.h: Regenerated.
41484         * lib/unictype/categ_L.h: Regenerated.
41485         * lib/unictype/categ_Ll.h: Regenerated.
41486         * lib/unictype/categ_Lm.h: Regenerated.
41487         * lib/unictype/categ_Lo.h: Regenerated.
41488         * lib/unictype/categ_Lu.h: Regenerated.
41489         * lib/unictype/categ_M.h: Regenerated.
41490         * lib/unictype/categ_Mc.h: Regenerated.
41491         * lib/unictype/categ_Me.h: Regenerated.
41492         * lib/unictype/categ_Mn.h: Regenerated.
41493         * lib/unictype/categ_N.h: Regenerated.
41494         * lib/unictype/categ_Nd.h: Regenerated.
41495         * lib/unictype/categ_Nl.h: Regenerated.
41496         * lib/unictype/categ_No.h: Regenerated.
41497         * lib/unictype/categ_P.h: Regenerated.
41498         * lib/unictype/categ_Pd.h: Regenerated.
41499         * lib/unictype/categ_Pe.h: Regenerated.
41500         * lib/unictype/categ_Pf.h: Regenerated.
41501         * lib/unictype/categ_Pi.h: Regenerated.
41502         * lib/unictype/categ_Po.h: Regenerated.
41503         * lib/unictype/categ_Ps.h: Regenerated.
41504         * lib/unictype/categ_S.h: Regenerated.
41505         * lib/unictype/categ_Sk.h: Regenerated.
41506         * lib/unictype/categ_Sm.h: Regenerated.
41507         * lib/unictype/categ_So.h: Regenerated.
41508         * lib/unictype/categ_of.h: Regenerated.
41509         * lib/unictype/combining.h: Regenerated.
41510         * lib/unictype/ctype_alnum.h: Regenerated.
41511         * lib/unictype/ctype_alpha.h: Regenerated.
41512         * lib/unictype/ctype_graph.h: Regenerated.
41513         * lib/unictype/ctype_lower.h: Regenerated.
41514         * lib/unictype/ctype_print.h: Regenerated.
41515         * lib/unictype/ctype_punct.h: Regenerated.
41516         * lib/unictype/ctype_upper.h: Regenerated.
41517         * lib/unictype/decdigit.h: Regenerated.
41518         * lib/unictype/digit.h: Regenerated.
41519         * lib/unictype/mirror.h: Regenerated.
41520         * lib/unictype/numeric.h: Regenerated.
41521         * lib/unictype/pr_alphabetic.h: Regenerated.
41522         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41523         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41524         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41525         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41526         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41527         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41528         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41529         * lib/unictype/pr_combining.h: Regenerated.
41530         * lib/unictype/pr_dash.h: Regenerated.
41531         * lib/unictype/pr_decimal_digit.h: Regenerated.
41532         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41533         * lib/unictype/pr_deprecated.h: Regenerated.
41534         * lib/unictype/pr_diacritic.h: Regenerated.
41535         * lib/unictype/pr_extender.h: Regenerated.
41536         * lib/unictype/pr_format_control.h: Regenerated.
41537         * lib/unictype/pr_grapheme_base.h: Regenerated.
41538         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41539         * lib/unictype/pr_grapheme_link.h: Regenerated.
41540         * lib/unictype/pr_id_continue.h: Regenerated.
41541         * lib/unictype/pr_id_start.h: Regenerated.
41542         * lib/unictype/pr_ideographic.h: Regenerated.
41543         * lib/unictype/pr_ignorable_control.h: Regenerated.
41544         * lib/unictype/pr_lowercase.h: Regenerated.
41545         * lib/unictype/pr_math.h: Regenerated.
41546         * lib/unictype/pr_numeric.h: Regenerated.
41547         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41548         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41549         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41550         * lib/unictype/pr_other_id_continue.h: Regenerated.
41551         * lib/unictype/pr_other_lowercase.h: Regenerated.
41552         * lib/unictype/pr_other_math.h: Regenerated.
41553         * lib/unictype/pr_punctuation.h: Regenerated.
41554         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41555         * lib/unictype/pr_soft_dotted.h: Regenerated.
41556         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41557         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41558         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41559         * lib/unictype/pr_uppercase.h: Regenerated.
41560         * lib/unictype/pr_xid_continue.h: Regenerated.
41561         * lib/unictype/pr_xid_start.h: Regenerated.
41562         * lib/unictype/pr_zero_width.h: Regenerated.
41563         * lib/unictype/scripts.h: Regenerated.
41564         * lib/unictype/scripts_byname.gperf: Regenerated.
41565         * lib/unictype/sy_java_ident.h: Regenerated.
41566         * lib/unilbrk/lbrkprop1.h: Regenerated.
41567         * lib/unilbrk/lbrkprop2.h: Regenerated.
41568         * tests/unictype/test-categ_C.c: Regenerated.
41569         * tests/unictype/test-categ_Cf.c: Regenerated.
41570         * tests/unictype/test-categ_Cn.c: Regenerated.
41571         * tests/unictype/test-categ_L.c: Regenerated.
41572         * tests/unictype/test-categ_Ll.c: Regenerated.
41573         * tests/unictype/test-categ_Lm.c: Regenerated.
41574         * tests/unictype/test-categ_Lo.c: Regenerated.
41575         * tests/unictype/test-categ_Lu.c: Regenerated.
41576         * tests/unictype/test-categ_M.c: Regenerated.
41577         * tests/unictype/test-categ_Mc.c: Regenerated.
41578         * tests/unictype/test-categ_Me.c: Regenerated.
41579         * tests/unictype/test-categ_Mn.c: Regenerated.
41580         * tests/unictype/test-categ_N.c: Regenerated.
41581         * tests/unictype/test-categ_Nd.c: Regenerated.
41582         * tests/unictype/test-categ_Nl.c: Regenerated.
41583         * tests/unictype/test-categ_No.c: Regenerated.
41584         * tests/unictype/test-categ_P.c: Regenerated.
41585         * tests/unictype/test-categ_Pd.c: Regenerated.
41586         * tests/unictype/test-categ_Pe.c: Regenerated.
41587         * tests/unictype/test-categ_Pf.c: Regenerated.
41588         * tests/unictype/test-categ_Pi.c: Regenerated.
41589         * tests/unictype/test-categ_Po.c: Regenerated.
41590         * tests/unictype/test-categ_Ps.c: Regenerated.
41591         * tests/unictype/test-categ_S.c: Regenerated.
41592         * tests/unictype/test-categ_Sk.c: Regenerated.
41593         * tests/unictype/test-categ_Sm.c: Regenerated.
41594         * tests/unictype/test-categ_So.c: Regenerated.
41595         * tests/unictype/test-ctype_alnum.c: Regenerated.
41596         * tests/unictype/test-ctype_alpha.c: Regenerated.
41597         * tests/unictype/test-ctype_graph.c: Regenerated.
41598         * tests/unictype/test-ctype_lower.c: Regenerated.
41599         * tests/unictype/test-ctype_print.c: Regenerated.
41600         * tests/unictype/test-ctype_punct.c: Regenerated.
41601         * tests/unictype/test-ctype_upper.c: Regenerated.
41602         * tests/unictype/test-decdigit.h: Regenerated.
41603         * tests/unictype/test-digit.h: Regenerated.
41604         * tests/unictype/test-numeric.h: Regenerated.
41605         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41606         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41607         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41608         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41609         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41610         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41611         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41612         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41613         * tests/unictype/test-pr_combining.c: Regenerated.
41614         * tests/unictype/test-pr_dash.c: Regenerated.
41615         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41616         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41617         * tests/unictype/test-pr_deprecated.c: Regenerated.
41618         * tests/unictype/test-pr_diacritic.c: Regenerated.
41619         * tests/unictype/test-pr_extender.c: Regenerated.
41620         * tests/unictype/test-pr_format_control.c: Regenerated.
41621         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41622         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41623         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41624         * tests/unictype/test-pr_id_continue.c: Regenerated.
41625         * tests/unictype/test-pr_id_start.c: Regenerated.
41626         * tests/unictype/test-pr_ideographic.c: Regenerated.
41627         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41628         * tests/unictype/test-pr_lowercase.c: Regenerated.
41629         * tests/unictype/test-pr_math.c: Regenerated.
41630         * tests/unictype/test-pr_numeric.c: Regenerated.
41631         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41632         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41633         Regenerated.
41634         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41635         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41636         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41637         * tests/unictype/test-pr_other_math.c: Regenerated.
41638         * tests/unictype/test-pr_punctuation.c: Regenerated.
41639         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41640         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41641         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41642         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41643         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41644         * tests/unictype/test-pr_uppercase.c: Regenerated.
41645         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41646         * tests/unictype/test-pr_xid_start.c: Regenerated.
41647         * tests/unictype/test-pr_zero_width.c: Regenerated.
41648
41649         Update to Unicode 5.1.0.
41650         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41651         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41652         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41653         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41654         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41655         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41656         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41657         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41658         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41659         (nonspacing_table_ind): Update.
41660         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41661
41662         Update to Unicode 5.1.0.
41663         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41664         code transform.
41665         * lib/uniname/uniname.c (unicode_character_name,
41666         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41667         * lib/uniname/uninames.h: Regenerated.
41668         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41669
41670 2009-02-07  Bruno Haible  <bruno@clisp.org>
41671
41672         Merge gen-ctype and gen-lbrk into a single program.
41673         * lib/gen-uni-tables.c: New file, incorporating
41674         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41675         Add directory prefixes to the names of the generated files.
41676         * lib/unictype/gen-ctype.c: Remove file.
41677         * lib/unilbrk/gen-lbrk.c: Remove file.
41678         * modules/gen-uni-tables: New file.
41679         * modules/unictype/gen-ctype: Remove file.
41680         * modules/unilbrk/gen-lbrk: Remove file.
41681
41682 2009-02-07  Bruno Haible  <bruno@clisp.org>
41683
41684         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41685
41686         New module 'unistr/u32-strcoll'.
41687         * modules/unistr/u32-strcoll: New file.
41688         * lib/unistr/u32-strcoll.c: New file.
41689
41690         New module 'unistr/u16-strcoll'.
41691         * modules/unistr/u16-strcoll: New file.
41692         * lib/unistr/u16-strcoll.c: New file.
41693
41694         New module 'unistr/u8-strcoll'.
41695         * modules/unistr/u8-strcoll: New file.
41696         * lib/unistr/u8-strcoll.c: New file.
41697         * lib/unistr/u-strcoll.h: New file.
41698
41699 2009-02-07  Bruno Haible  <bruno@clisp.org>
41700
41701         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41702         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41703         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41704         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41705         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41706         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41707
41708 2009-02-07  Bruno Haible  <bruno@clisp.org>
41709
41710         Make 64-bit clean.
41711         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41712         output_combclass, output_bidi_category, output_decimal_digit,
41713         output_digit, output_numeric, output_mirror, output_scripts,
41714         output_ident_category): Use proper width specifier in format strings.
41715
41716 2009-02-07  Bruno Haible  <bruno@clisp.org>
41717
41718         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41719         failure behaviour.
41720
41721 2009-02-07  Jim Meyering  <meyering@redhat.com>
41722
41723         regex: avoid compilation failure with upcoming gcc-4.4
41724         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41725         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41726         "... error: integer overflow in preprocessor expression".
41727
41728 2009-02-05  Ben Pfaff  <blp@gnu.org>
41729
41730         Fix link errors on Windows when close module is used.
41731         * modules/close: Add $(LIB_CLOSE) to Link section.
41732         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41733         $(LIB_CLOSE) on Windows.
41734
41735 2009-02-05  Jim Meyering  <meyering@redhat.com>
41736
41737         still avoid unused-parameter warnings, but do it cleanly
41738         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41739         (get_fs_usage): Cast to void instead.
41740         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41741         (dev_from_mount_options, read_file_system_list): Cast to void.
41742         Prompted by Bruno Haible.
41743
41744 2009-02-04  Jim Meyering  <meyering@redhat.com>
41745
41746         fsusage.c: correct copyright year
41747         * lib/fsusage.c: Reflect year in which the change is pushed into
41748
41749         avoid misc. warnings
41750         * lib/fsusage.c (UNUSED_PARAM): Define.
41751         (get_fs_usage): Mark parameter "disk" as unused.
41752         * lib/getugroups.c (getgrent): Use "void" in prototype.
41753         * lib/mountlist.c: Mark unused parameters.
41754         (read_file_system_list): Declare a local with "const".
41755         * lib/nanosleep.c (getnow): Declare static.
41756         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41757
41758         dirfd: set errno upon failure
41759         * lib/dirfd.c: Include <errno.h>.
41760         Set errno to ENOTSUP when returning -1.
41761         * modules/dirfd (Depends-on): Add errno.
41762         Suggested by John Kodis <kodis@comcast.net>.
41763
41764 2009-02-01  Bruno Haible  <bruno@clisp.org>
41765
41766         Don't assume sizeof (long) >= sizeof (void *).
41767         * lib/memcmp.c: Include stdint.h.
41768         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41769         srcp2 to 'const byte *'.
41770         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41771         types to uintptr_t.
41772         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41773         * modules/memcmp (Depends-on): Add stdint.
41774         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41775
41776 2009-01-30  Eric Blake  <ebb9@byu.net>
41777
41778         fix more require-before-expand issues
41779         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41780         expand, AC_PROG_AWK.
41781         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41782
41783 2009-01-28  Eric Blake  <ebb9@byu.net>
41784
41785         version-etc: use consistent URL formatting
41786         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41787         Improve formatting.  Use fputs for string without %.
41788
41789 2009-01-28  Jim Meyering  <meyering@redhat.com>
41790
41791         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41792         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41793         "underquoted definition of NAME" from autoconf-2.59.
41794
41795 2009-01-28  Bruno Haible  <bruno@clisp.org>
41796
41797         * doc/gnulib.texi: Add "Obsolete modules" to index.
41798
41799 2009-01-28  Jim Meyering  <meyering@redhat.com>
41800
41801         useless-if-before-free: recognize more variants
41802         * build-aux/useless-if-before-free: Also recognize e.g.,
41803         if (NULL != p) free (p);
41804
41805 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41806
41807         test-getaddrinfo: skip (don't fail) this test when there's no network
41808         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41809         on the presumption that it means you lack network access.
41810
41811 2009-01-26  Jim Meyering  <meyering@redhat.com>
41812
41813         fflush: avoid warnings on modern systems
41814         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41815         pos and result, into scopes where they're used.
41816
41817 2009-01-26  Eric Blake  <ebb9@byu.net>
41818
41819         Silence warning reintroduced by recent extensions patch.
41820         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41821         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41822         autoconf.
41823
41824         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41825         * m4/00gnulib.m4: New file.
41826         * gnulib-tool (func_get_filelist): Always use it.
41827         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41828         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41829
41830 2009-01-25  Bruno Haible  <bruno@clisp.org>
41831
41832         Make test-quotearg work on MacOS X and AIX.
41833         * tests/test-quotearg.sh: New file.
41834         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41835         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41836         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41837         include <libintl.h>.
41838         (fake_locale): Remove variable.
41839         (gettext, dgettext, dcgettext): Remove functions.
41840         (main): Instead of setting a fake locale, set a real locale. Call
41841         textdomain and bindtextdomain.
41842         * modules/quotearg-tests (Files): Add the new files.
41843         (Depends-on): Add gettext, setenv, unsetenv.
41844         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41845         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41846         Augment TESTS_ENVIRONMENT.
41847
41848 2009-01-25  Bruno Haible  <bruno@clisp.org>
41849
41850         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41851         fr_FR.ISO8859-1 locale on MacOS X.
41852         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41853         ja_JP.eucJP locale on MacOS X.
41854         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41855         zh_CN.GB18030 locale on MacOS X.
41856
41857 2009-01-25  Bruno Haible  <bruno@clisp.org>
41858
41859         Avoid link errors on MacOS X 10.3.
41860         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41861         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41862
41863 2009-01-25  Bruno Haible  <bruno@clisp.org>
41864
41865         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41866         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41867         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41868         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41869         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41870         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41871         posix_spawnattr_init, posix_spawnattr_setsigmask,
41872         posix_spawnattr_setflags, posix_spawnattr_destroy.
41873
41874         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41875         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41876         * modules/execute (Files): Remove m4/posix_spawn.m4.
41877         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41878         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41879         posix_spawnattr_init, posix_spawnattr_setsigmask,
41880         posix_spawnattr_setflags, posix_spawnattr_destroy.
41881
41882 2009-01-25  Bruno Haible  <bruno@clisp.org>
41883
41884         * lib/glthread/threadlib.c: Include <stdlib.h>.
41885
41886 2009-01-25  Bruno Haible  <bruno@clisp.org>
41887
41888         * lib/glthread/threadlib.c (dummy): New declaration.
41889
41890 2009-01-25  Bruno Haible  <bruno@clisp.org>
41891
41892         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41893         multibyte characters also for the GB18030 encoding. Don't crash when
41894         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41895
41896 2009-01-25  Bruno Haible  <bruno@clisp.org>
41897
41898         Avoid redefining 'struct random_data' on OSF/1 5.1.
41899         * lib/stdlib.in.h: Include <random.h> if it exists.
41900         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41901         HAVE_RANDOM_H. Include <random.h> when testing whether
41902         'struct random_data' exists.
41903         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41904
41905 2009-01-25  Bruno Haible  <bruno@clisp.org>
41906
41907         Don't install charset.alias on MacOS X >= 10.3.
41908         * lib/localcharset.c (DARWIN7): New macro.
41909         (get_charset_aliases): Hardcode the result for Darwin7.
41910         * modules/localcharset (install-exec-local): Don't install
41911         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41912
41913 2009-01-25  Bruno Haible  <bruno@clisp.org>
41914
41915         Don't install charset.alias on mingw and Cygwin.
41916         * modules/localcharset (install-exec-local): Don't install
41917         charset.alias on mingw and Cygwin, if the file does not yet exist.
41918         The result for these platforms is hardcoded in localcharset.c.
41919
41920 2009-01-25  Bruno Haible  <bruno@clisp.org>
41921
41922         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41923         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41924         before requiring AC_USE_SYSTEM_EXTENSIONS.
41925
41926 2009-01-25  Jim Meyering  <meyering@redhat.com>
41927
41928         c-strtod: avoid warnings
41929         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41930         "assignment discards qualifiers from pointer target type" warnings.
41931
41932 2009-01-24  Bruno Haible  <bruno@clisp.org>
41933
41934         Add support for non-UTF-8 locales on MacOS X.
41935         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41936         canonical encodings. For Darwin 7 and newer, don't map traditional
41937         encodings to UTF-8.
41938         Reported by Vincent Lefevre <vincent@vinc17.org>
41939         at <http://savannah.gnu.org/bugs/?25235>.
41940
41941 2009-01-24  Bruno Haible  <bruno@clisp.org>
41942
41943         * doc/gnulib.texi (Obsolete modules): New section.
41944         Reported by Mike Frysinger <vapier@gentoo.org>.
41945
41946 2009-01-24  Bruno Haible  <bruno@clisp.org>
41947
41948         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41949         (%.dvi): New rule.
41950
41951 2009-01-24  Bruno Haible  <bruno@clisp.org>
41952
41953         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41954         Reported by Eric Blake.
41955
41956 2009-01-24  Bruno Haible  <bruno@clisp.org>
41957
41958         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41959         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41960         Reported by Gary V. Vaughan <gary@gnu.org>.
41961
41962 2009-01-24  Bruno Haible  <bruno@clisp.org>
41963
41964         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41965
41966 2009-01-23  Bruno Haible  <bruno@clisp.org>
41967
41968         Make c-strtod, c-strtold usable in libraries.
41969         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41970         (C_STRTOD): Call strdup instead of xstrdup.
41971         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41972         * modules/c-strtold (Depends-on): Likewise.
41973         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41974         * NEWS: Mention the change.
41975         Reported by Michael Gold <mgold@ncf.ca>.
41976
41977 2009-01-23  Jim Meyering  <meyering@redhat.com>
41978
41979         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41980         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41981         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41982
41983 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41984
41985         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41986         GNU CoreUtils.
41987         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41988         * modules/version-etc (Description): Update.
41989
41990 2009-01-22  Bruno Haible  <bruno@clisp.org>
41991
41992         Cache the C locale object.
41993         * lib/c-strtod.c (c_locale_cache): New variable.
41994         (c_locale): New function.
41995         (C_STRTOD): Use it, and don't call freelocale.
41996         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41997         Suggested by Paolo Bonzini.
41998
41999 2009-01-21  Bruno Haible  <bruno@clisp.org>
42000
42001         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42002         conditions other than overflow.
42003
42004 2009-01-21  Bruno Haible  <bruno@clisp.org>
42005
42006         * lib/c-strtod.c: Include errno.h.
42007         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42008         value from STRTOD_L and STRTOD.
42009
42010 2009-01-21  Bruno Haible  <bruno@clisp.org>
42011         and Jim Meyering  <meyering@redhat.com>
42012
42013         nanosleep: skip configure test (fail it) for apple universal builds
42014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42015         universal builds, assume that nanosleep does not work.
42016         * modules/nanosleep (Depends-on): Add multiarch.
42017
42018         mktime: skip configure test (fail it) for apple universal builds
42019         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42020         universal builds, assume that mktime does not work.
42021         * modules/mktime (Depends-on): Add multiarch.
42022
42023 2009-01-21  Eric Blake  <ebb9@byu.net>
42024
42025         multiarch: avoid expand-before-require warning
42026         * modules/multiarch (configure.ac): Require, rather than expand,
42027         gl_MULTIARCH.
42028         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42029         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42030         enforce that all clients require it.  Partial reversion of
42031         2008-12-29 patch.
42032
42033         error: avoid expand-before-require warning
42034         * modules/errno (configure.ac): Require, rather than expand,
42035         gl_HEADER_ERRNO_H.
42036         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42037         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42038         enforce that all clients require it.
42039
42040         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42041         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42042         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42043         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42044
42045 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42046
42047         Revert:
42048         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42049
42050         regex: do not depend on obsolete modules.
42051         * modules/regex: Remove memcmp and memmove.
42052
42053 2009-01-20  Bruno Haible  <bruno@clisp.org>
42054
42055         Make the 'link' module link on Windows NT 4.
42056         * lib/link.c (_WIN32_WINNT): Don't define.
42057         (CreateHardLinkFuncType): New type.
42058         (CreateHardLinkFunc, initialized): New variables.
42059         (initialize): New function.
42060         (link): Invoke CreateHardLink indirectly through the function pointer.
42061
42062 2009-01-20  Bruno Haible  <bruno@clisp.org>
42063
42064         Fix compilation failure on mingw.
42065         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42066
42067 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42068
42069         * doc/c-strtod.texi: Mention a couple of restrictions.
42070
42071 2009-01-20  Jim Meyering  <meyering@redhat.com>
42072
42073         gettimeofday: move more declarations out of functions
42074         * lib/gettimeofday.c: Move extern declarations of tzset and
42075         gmtime out of containing functions.  Prompted by Bruno Haible.
42076
42077 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42078
42079         regex: do not depend on obsolete modules.
42080         * modules/regex: Remove memcmp and memmove.
42081
42082 2009-01-19  Bruno Haible  <bruno@clisp.org>
42083
42084         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42085         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42086         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42087         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42088         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42089
42090 2009-01-19  Bruno Haible  <bruno@clisp.org>
42091
42092         * tests/test-link.c: Include <errno.h>.
42093         (main): Exit with code 77 when a hard link cannot be created due to
42094         the file system.
42095         * tests/test-link.sh: Skip test when a hard link cannot be created due
42096         to the file system.
42097         Suggested by Eric Blake.
42098
42099 2009-01-19  Martin Lambers  <marlam@marlam.de>
42100
42101         * modules/link-tests: New file.
42102         * tests/test-link.sh: New file.
42103         * tests/test-link.c: New file.
42104
42105 2009-01-19  Eric Blake  <ebb9@byu.net>
42106
42107         doc: mention another function added in cygwin 1.7.0
42108         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42109         Another new function in cygwin 1.7.
42110
42111 2009-01-19  Bruno Haible  <bruno@clisp.org>
42112
42113         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42114         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42115         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42116         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42117         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42118         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42119         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42120         * m4/md4.m4 (gl_MD4): Likewise.
42121         * m4/md5.m4 (gl_MD5): Likewise.
42122         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42123         * m4/sha1.m4 (gl_SHA1): Likewise.
42124         * m4/sha256.m4 (gl_SHA256): Likewise.
42125         * m4/sha512.m4 (gl_SHA512): Likewise.
42126
42127 2009-01-19  Bruno Haible  <bruno@clisp.org>
42128
42129         * modules/uniname/uniname-tests (Depends-on): Add progname.
42130         * tests/uniname/test-uninames.c: Include progname.h.
42131         (main): Call set_program_name.
42132
42133         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42134         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42135         (main): Call set_program_name.
42136
42137         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42138         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42139         (main): Call set_program_name.
42140
42141         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42142         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42143         (main): Call set_program_name.
42144
42145         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42146         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42147         (main): Call set_program_name.
42148
42149         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42150         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42151         (main): Call set_program_name.
42152
42153         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42154         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42155         (main): Call set_program_name.
42156
42157         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42158         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42159         (main): Call set_program_name.
42160
42161         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42162         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42163         (main): Call set_program_name.
42164
42165 2009-01-19  Eric Blake  <ebb9@byu.net>
42166
42167         test-unistd: test previous patch
42168         * tests/test-unistd.c: Test *_FILENO macros.
42169
42170         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42171         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42172         Guarantee a definition.
42173         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42174         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42175         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42176         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42177         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42178         Likewise.
42179         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42180         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42181         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42182         Likewise.
42183         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42184         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42185         (STDERR_FILENO): Likewise.
42186         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42187         (STDERR_FILENO): Likewise.
42188         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42189         (STDERR_FILENO): Likewise.
42190         Reported by Elbert Pol.
42191
42192 2009-01-19  Eric Blake  <ebb9@byu.net>
42193
42194         doc: mention more functions added in cygwin 1.7.0
42195         * doc/posix-functions/abort.texi (abort): Update wording related
42196         to cygwin.
42197         * doc/posix-functions/daylight.texi (daylight): Likewise.
42198         * doc/posix-functions/optarg.texi (optarg): Likewise.
42199         * doc/posix-functions/optarg.texi (opterr): Likewise.
42200         * doc/posix-functions/optarg.texi (optind): Likewise.
42201         * doc/posix-functions/optarg.texi (optopt): Likewise.
42202         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42203         worked in 1.5.x, and was withdrawn in 1.7.
42204         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42205         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42206         cygwin versions.
42207         * doc/posix-functions/perror.texi (perror): Likewise.
42208         * doc/posix-functions/printf.texi (printf): Likewise.
42209         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42210         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42211         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42212         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42213         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42214         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42215         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42216         Likewise.
42217         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42218         Likewise.
42219         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42220         this function.
42221         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42222         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42223         Likewise.
42224         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42225         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42226         * doc/posix-functions/confstr.texi (confstr): Likewise.
42227         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42228         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42229         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42230         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42231         * doc/posix-functions/fputws.texi (fputws): Likewise.
42232         * doc/posix-functions/fwide.texi (fwide): Likewise.
42233         * doc/posix-functions/getwc.texi (getwc): Likewise.
42234         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42235         * doc/posix-functions/putwc.texi (putwc): Likewise.
42236         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42237         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42238         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42239         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42240         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42241         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42242         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42243         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42244         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42245         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42246         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42247
42248 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42249
42250         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42251         * lib/ioctl.c: Include <sys/ioctl.h>.
42252
42253 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42254
42255         * modules/getdate-tests (Depends-on): Add progname.
42256         * tests/test-getdate.c: Use progname module, to avoid link errors
42257         on non-glibc systems.
42258
42259 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42260
42261         * modules/filenamecat-tests (Depends-on): Add progname.
42262         * modules/fstrcmp-tests (Depends-on): Likewise.
42263
42264         * tests/test-filenamecat.c: Use progname module, to avoid link
42265         errors on non-glibc systems.
42266         * tests/test-fstrcmp.c: Likewise.
42267
42268 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42269
42270         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42271         * lib/gettimeofday.c: Move extern declaration out of function.
42272
42273 2009-01-18  Bruno Haible  <bruno@clisp.org>
42274
42275         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42276         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42277         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42278
42279 2009-01-18  Bruno Haible  <bruno@clisp.org>
42280
42281         * lib/strftime.c (MEMPCPY): Remove unused macro.
42282         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42283
42284 2009-01-18  Martin Lambers  <marlam@marlam.de>
42285
42286         New module 'link'.
42287         * lib/unistd.in.h (link): New declaration.
42288         * lib/link.c: New file.
42289         * m4/link.m4: New file.
42290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42291         HAVE_LINK.
42292         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42293         * modules/link: New file.
42294         * doc/posix-functions/link.texi: Mention the new module.
42295
42296 2009-01-18  Bruno Haible  <bruno@clisp.org>
42297
42298         * tests/test-avltree_list.c (main): Call set_program_name.
42299         * tests/test-avltree_oset.c (main): Likewise.
42300         * tests/test-obstack-printf.c: Include progname.h.
42301         (main): Call set_program_name.
42302         * tests/test-quotearg.c: Include progname.h.
42303         (main): Call set_program_name.
42304         * tests/test-xmemdup0.c: Include progname.h.
42305         (main): Call set_program_name.
42306
42307 2009-01-18  Bruno Haible  <bruno@clisp.org>
42308
42309         New module 'alphasort'.
42310         * lib/dirent.in.h (alphasort): New declaration.
42311         * lib/alphasort.c: New file, from glibc with modifications.
42312         * m4/alphasort.m4: New file.
42313         * modules/alphasort: New file.
42314         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42315         HAVE_ALPHASORT.
42316         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42317         HAVE_ALPHASORT.
42318         * doc/posix-functions/alphasort.texi: Mention the new module and the
42319         portability problems.
42320
42321 2009-01-18  Bruno Haible  <bruno@clisp.org>
42322
42323         New module 'scandir'.
42324         * lib/dirent.in.h (scandir): New declaration.
42325         * lib/scandir.c: New file, from glibc with modifications.
42326         * m4/scandir.m4: New file.
42327         * modules/scandir: New file.
42328         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42329         HAVE_SCANDIR.
42330         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42331         HAVE_SCANDIR.
42332         * doc/posix-functions/scandir.texi: Mention the new module and the
42333         portability problems.
42334
42335 2009-01-17  Bruno Haible  <bruno@clisp.org>
42336
42337         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42338         Update documentation.
42339         (func_remove_suffix): Escape all dots in the suffix. Update
42340         documentation.
42341         (func_filter_filelist): Update documentation.
42342         Reported by Ralf Wildenhues.
42343
42344 2009-01-17  Bruno Haible  <bruno@clisp.org>
42345
42346         * modules/dprintf-posix-tests: New file.
42347         * tests/test-dprintf-posix.sh: New file.
42348         * tests/test-dprintf-posix.c: New file.
42349
42350         New modules 'dprintf', 'dprintf-posix'.
42351         * lib/stdio.in.h (dprintf): New declaration.
42352         * lib/dprintf.c: New file.
42353         * m4/dprintf.m4: New file.
42354         * m4/dprintf-posix.m4: New file.
42355         * modules/dprintf: New file.
42356         * modules/dprintf-posix: New file.
42357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42358         HAVE_DPRINTF, REPLACE_DPRINTF.
42359         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42360         HAVE_DPRINTF, REPLACE_DPRINTF.
42361         * doc/posix-functions/dprintf.texi: Mention the new modules.
42362
42363 2009-01-17  Bruno Haible  <bruno@clisp.org>
42364
42365         * modules/vdprintf-posix-tests: New file.
42366         * tests/test-vdprintf-posix.sh: New file.
42367         * tests/test-vdprintf-posix.c: New file.
42368
42369         New modules 'vdprintf', 'vdprintf-posix'.
42370         * lib/stdio.in.h (vdprintf): New declaration.
42371         * lib/vdprintf.c: New file.
42372         * m4/vdprintf.m4: New file.
42373         * m4/vdprintf-posix.m4: New file.
42374         * modules/vdprintf: New file.
42375         * modules/vdprintf-posix: New file.
42376         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42377         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42378         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42379         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42380         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42381
42382 2009-01-17  Bruno Haible  <bruno@clisp.org>
42383
42384         Fix replacement of fopen on mingw.
42385         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42386         mingw.
42387
42388 2009-01-17  Bruno Haible  <bruno@clisp.org>
42389
42390         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42391         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42392
42393 2009-01-17  Bruno Haible  <bruno@clisp.org>
42394
42395         Avoid test-fflush2.sh failure on mingw.
42396         * tests/test-fflush2.c: Include binary-io.h.
42397         (main): Put standard input into binary mode.
42398         * modules/fflush-tests (Depends-on): Add binary-io.
42399
42400 2009-01-17  Bruno Haible  <bruno@clisp.org>
42401
42402         * lib/wchar.in.h: In another particular situation, include only the
42403         system's <wchar.h> file.
42404         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42405         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42406         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42407
42408 2009-01-17  Bruno Haible  <bruno@clisp.org>
42409
42410         Support for stripping executables in --enable-relocatable.
42411         * build-aux/install-reloc: Expect one more argument, or an environment
42412         variable RELOC_STRIP_PROG. If set, strip the destination program and
42413         its wrapper.
42414         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42415         RELOC_STRIP_PROG.
42416         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42417         to set RELOCATABLE_STRIP.
42418         * NEWS: Mention the new Makefile requirement.
42419
42420 2009-01-17  Bruno Haible  <bruno@clisp.org>
42421
42422         * build-aux/install-reloc: Remove debugging information left over by
42423         C compiler on MacOS X.
42424
42425 2009-01-17  Bruno Haible  <bruno@clisp.org>
42426
42427         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42428         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42429         _NSGetExecutablePath.
42430
42431 2009-01-16  Jim Meyering  <meyering@redhat.com>
42432
42433         strerror: avoid warnings about discarding "const"
42434         * lib/strerror.c (rpl_strerror): Instead of returning a const
42435         string from each and every "case", use a variable, and add a single
42436         cast after the switch.
42437
42438 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42439
42440         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42441
42442 2009-01-16  Bruno Haible  <bruno@clisp.org>
42443
42444         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42445         array initializer syntax that also works in C++ mode.
42446         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42447
42448 2009-01-16  Jim Meyering  <meyering@redhat.com>
42449
42450         poll: suppress a warning
42451         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42452         to ignore "...unsigned expression < 0 is always false" warnings.
42453
42454 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42455
42456         poll: remove declarations of unused variables
42457         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42458         sockbuf and optlen.
42459
42460 2009-01-15  Bruno Haible  <bruno@clisp.org>
42461
42462         Make fflush-after-ungetc POSIX compliant on BSD systems.
42463         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42464         (clear_ungetc_buffer): Implement also for other systems.
42465         (rpl_fflush): On glibc systems, invoke
42466         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42467         clear_ungetc_buffer after fetching the stream's position, not before.
42468
42469 2009-01-15  Bruno Haible  <bruno@clisp.org>
42470
42471         Make fflush-after-ungetc POSIX compliant on glibc systems.
42472         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42473         after ungetc.
42474         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42475         (rpl_fflush): On glibc systems, simply call the system's fflush
42476         function after clearing the ungetc buffer.
42477         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42478         Instead, lseek only to the end of file, then use the system's fseeko
42479         for the rest. On glibc systems, reset the EOF indicator bit.
42480
42481 2009-01-15  Jim Meyering  <meyering@redhat.com>
42482
42483         openmp.m4: revert quote-adding change, for portability to older autoconf
42484         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42485         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42486         Simon Josefsson noticed the problem when using autoconf-2.61.
42487
42488 2009-01-15  Bruno Haible  <bruno@clisp.org>
42489
42490         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42491         * tests/test-fflush2.c (ASSERT): Always fail.
42492         (main): Add two tests for fflush() after ungetc(), taking into account
42493         the Austin Group's clarification.
42494         Suggested by Eric Blake.
42495
42496 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42497
42498         mktime.m4: remove K&R-style function prototypes
42499         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42500         for the Sun C++ compiler.
42501
42502 2009-01-14  Bruno Haible  <bruno@clisp.org>
42503
42504         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42505         while including <wchar.h>.
42506         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42507         the system's <wchar.h> file.
42508         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42509
42510 2009-01-14  Bruno Haible  <bruno@clisp.org>
42511
42512         * m4/csharp.m4: Don't mention gettext on the serial number line.
42513         * m4/csharpexec.m4: Likewise.
42514         * m4/eaccess.m4: Likewise.
42515         * m4/javaexec.m4: Likewise.
42516         * m4/sig_atomic_t.m4: Likewise.
42517         * m4/tmpdir.m4: Likewise.
42518         * m4/intldir.m4: Bump gettext version.
42519         * m4/lib-ld.m4: Likewise.
42520
42521 2009-01-14  Bruno Haible  <bruno@clisp.org>
42522
42523         * lib/progname.c (set_program_name): Add more comments.
42524         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42525
42526 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42527
42528         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42529         were sys/stat.h does not define it.
42530
42531 2009-01-14  Jim Meyering  <meyering@redhat.com>
42532
42533         many *.m4 files: improve m4 quoting
42534         99% of this change was performed by running the following commands:
42535         git ls-files | grep '\.m4$' | xargs perl -pi \
42536           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42537           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42538           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42539           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42540         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42541         The remainder were to add Copyright dates, increment serial numbers,
42542         undo some changes in comments, exclude m4/intl.m4, and add quotes
42543         around the "1" in ",1" where the unusual spacing prohibited the
42544         above regexps from doing the job.  For more details, see
42545         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42546         * m4/acl.m4: Modified.
42547         * m4/afs.m4: Likewise.
42548         * m4/alloca.m4: Likewise.
42549         * m4/argp.m4: Likewise.
42550         * m4/argz.m4: Likewise.
42551         * m4/atexit.m4: Likewise.
42552         * m4/bison-i18n.m4: Likewise.
42553         * m4/bison.m4: Likewise.
42554         * m4/byteswap.m4: Likewise.
42555         * m4/c-stack.m4: Likewise.
42556         * m4/c-strtod.m4: Likewise.
42557         * m4/calloc.m4: Likewise.
42558         * m4/canonicalize-lgpl.m4: Likewise.
42559         * m4/chown.m4: Likewise.
42560         * m4/clock_time.m4: Likewise.
42561         * m4/codeset.m4: Likewise.
42562         * m4/copy-file.m4: Likewise.
42563         * m4/csharp.m4: Likewise.
42564         * m4/csharpcomp.m4: Likewise.
42565         * m4/csharpexec.m4: Likewise.
42566         * m4/d-ino.m4: Likewise.
42567         * m4/d-type.m4: Likewise.
42568         * m4/dirfd.m4: Likewise.
42569         * m4/double-slash-root.m4: Likewise.
42570         * m4/eaccess.m4: Likewise.
42571         * m4/eealloc.m4: Likewise.
42572         * m4/environ.m4: Likewise.
42573         * m4/errno_h.m4: Likewise.
42574         * m4/euidaccess.m4: Likewise.
42575         * m4/execute.m4: Likewise.
42576         * m4/fatal-signal.m4: Likewise.
42577         * m4/fchdir.m4: Likewise.
42578         * m4/fcntl_h.m4: Likewise.
42579         * m4/fileblocks.m4: Likewise.
42580         * m4/filenamecat.m4: Likewise.
42581         * m4/findprog.m4: Likewise.
42582         * m4/flexmember.m4: Likewise.
42583         * m4/fnmatch.m4: Likewise.
42584         * m4/fopen.m4: Likewise.
42585         * m4/fpending.m4: Likewise.
42586         * m4/fprintf-posix.m4: Likewise.
42587         * m4/free.m4: Likewise.
42588         * m4/frexp.m4: Likewise.
42589         * m4/frexpl.m4: Likewise.
42590         * m4/fsusage.m4: Likewise.
42591         * m4/ftruncate.m4: Likewise.
42592         * m4/gc-camellia.m4: Likewise.
42593         * m4/gc-random.m4: Likewise.
42594         * m4/gc.m4: Likewise.
42595         * m4/getaddrinfo.m4: Likewise.
42596         * m4/getcwd-abort-bug.m4: Likewise.
42597         * m4/getcwd-path-max.m4: Likewise.
42598         * m4/getdate.m4: Likewise.
42599         * m4/getdomainname.m4: Likewise.
42600         * m4/getgroups.m4: Likewise.
42601         * m4/gethostname.m4: Likewise.
42602         * m4/gethrxtime.m4: Likewise.
42603         * m4/getline.m4: Likewise.
42604         * m4/getloadavg.m4: Likewise.
42605         * m4/getndelim2.m4: Likewise.
42606         * m4/getpass.m4: Likewise.
42607         * m4/gettext.m4: Likewise.
42608         * m4/gettime.m4: Likewise.
42609         * m4/gettimeofday.m4: Likewise.
42610         * m4/gnulib-common.m4: Likewise.
42611         * m4/group-member.m4: Likewise.
42612         * m4/host-os.m4: Likewise.
42613         * m4/iconv.m4: Likewise.
42614         * m4/iconv_open.m4: Likewise.
42615         * m4/inet_ntop.m4: Likewise.
42616         * m4/inet_pton.m4: Likewise.
42617         * m4/inline.m4: Likewise.
42618         * m4/intldir.m4: Likewise.
42619         * m4/intlmacosx.m4: Likewise.
42620         * m4/intmax.m4: Likewise.
42621         * m4/intmax_t.m4: Likewise.
42622         * m4/inttypes.m4: Likewise.
42623         * m4/inttypes_h.m4: Likewise.
42624         * m4/inttypes-pri.m4: Likewise.
42625         * m4/isapipe.m4: Likewise.
42626         * m4/isnand.m4: Likewise.
42627         * m4/isnanf.m4: Likewise.
42628         * m4/isnanl.m4: Likewise.
42629         * m4/javacomp.m4: Likewise.
42630         * m4/javaexec.m4: Likewise.
42631         * m4/jm-winsz1.m4: Likewise.
42632         * m4/jm-winsz2.m4: Likewise.
42633         * m4/lchown.m4: Likewise.
42634         * m4/lcmessage.m4: Likewise.
42635         * m4/ldexpl.m4: Likewise.
42636         * m4/lib-ld.m4: Likewise.
42637         * m4/lib-link.m4: Likewise.
42638         * m4/libsigsegv.m4: Likewise.
42639         * m4/link-follow.m4: Likewise.
42640         * m4/localcharset.m4: Likewise.
42641         * m4/locale-fr.m4: Likewise.
42642         * m4/locale-ja.m4: Likewise.
42643         * m4/locale-tr.m4: Likewise.
42644         * m4/locale-zh.m4: Likewise.
42645         * m4/lock.m4: Likewise.
42646         * m4/longlong.m4: Likewise.
42647         * m4/ls-mntd-fs.m4: Likewise.
42648         * m4/lstat.m4: Likewise.
42649         * m4/malloc.m4: Likewise.
42650         * m4/mathl.m4: Likewise.
42651         * m4/mbrtowc.m4: Likewise.
42652         * m4/mbstate_t.m4: Likewise.
42653         * m4/mbswidth.m4: Likewise.
42654         * m4/memchr.m4: Likewise.
42655         * m4/memcmp.m4: Likewise.
42656         * m4/memcpy.m4: Likewise.
42657         * m4/memmem.m4: Likewise.
42658         * m4/memmove.m4: Likewise.
42659         * m4/mempcpy.m4: Likewise.
42660         * m4/memrchr.m4: Likewise.
42661         * m4/memset.m4: Likewise.
42662         * m4/minmax.m4: Likewise.
42663         * m4/mkdir-slash.m4: Likewise.
42664         * m4/mkdtemp.m4: Likewise.
42665         * m4/mktime.m4: Likewise.
42666         * m4/mmap-anon.m4: Likewise.
42667         * m4/mountlist.m4: Likewise.
42668         * m4/nanosleep.m4: Likewise.
42669         * m4/nls.m4: Likewise.
42670         * m4/nocrash.m4: Likewise.
42671         * m4/open.m4: Likewise.
42672         * m4/openat.m4: Likewise.
42673         * m4/openmp.m4: Likewise.
42674         * m4/pathmax.m4: Likewise.
42675         * m4/perl.m4: Likewise.
42676         * m4/physmem.m4: Likewise.
42677         * m4/pipe.m4: Likewise.
42678         * m4/po.m4: Likewise.
42679         * m4/poll.m4: Likewise.
42680         * m4/posixtm.m4: Likewise.
42681         * m4/posixver.m4: Likewise.
42682         * m4/printf-frexp.m4: Likewise.
42683         * m4/printf-frexpl.m4: Likewise.
42684         * m4/printf-posix.m4: Likewise.
42685         * m4/printf-posix-rpl.m4: Likewise.
42686         * m4/printf.m4: Likewise.
42687         * m4/progtest.m4: Likewise.
42688         * m4/putenv.m4: Likewise.
42689         * m4/readline.m4: Likewise.
42690         * m4/readlink.m4: Likewise.
42691         * m4/readutmp.m4: Likewise.
42692         * m4/realloc.m4: Likewise.
42693         * m4/regex.m4: Likewise.
42694         * m4/relocatable.m4: Likewise.
42695         * m4/relocatable-lib.m4: Likewise.
42696         * m4/rename-dest-slash.m4: Likewise.
42697         * m4/rename.m4: Likewise.
42698         * m4/rmdir-errno.m4: Likewise.
42699         * m4/rmdir.m4: Likewise.
42700         * m4/roundf.m4: Likewise.
42701         * m4/roundl.m4: Likewise.
42702         * m4/rpmatch.m4: Likewise.
42703         * m4/save-cwd.m4: Likewise.
42704         * m4/selinux-selinux-h.m4: Likewise.
42705         * m4/setenv.m4: Likewise.
42706         * m4/settime.m4: Likewise.
42707         * m4/sig2str.m4: Likewise.
42708         * m4/sig_atomic_t.m4: Likewise.
42709         * m4/signalblocking.m4: Likewise.
42710         * m4/signbit.m4: Likewise.
42711         * m4/sigpipe.m4: Likewise.
42712         * m4/sockets.m4: Likewise.
42713         * m4/sockpfaf.m4: Likewise.
42714         * m4/st_dm_mode.m4: Likewise.
42715         * m4/stat-time.m4: Likewise.
42716         * m4/stdbool.m4: Likewise.
42717         * m4/stdint.m4: Likewise.
42718         * m4/stdint_h.m4: Likewise.
42719         * m4/stpcpy.m4: Likewise.
42720         * m4/stpncpy.m4: Likewise.
42721         * m4/strcase.m4: Likewise.
42722         * m4/strchrnul.m4: Likewise.
42723         * m4/strcspn.m4: Likewise.
42724         * m4/strdup.m4: Likewise.
42725         * m4/strftime.m4: Likewise.
42726         * m4/strndup.m4: Likewise.
42727         * m4/strnlen.m4: Likewise.
42728         * m4/strpbrk.m4: Likewise.
42729         * m4/strptime.m4: Likewise.
42730         * m4/strsep.m4: Likewise.
42731         * m4/strtod.m4: Likewise.
42732         * m4/strtoimax.m4: Likewise.
42733         * m4/strtok_r.m4: Likewise.
42734         * m4/strtol.m4: Likewise.
42735         * m4/strtoll.m4: Likewise.
42736         * m4/strtoul.m4: Likewise.
42737         * m4/strtoull.m4: Likewise.
42738         * m4/strtoumax.m4: Likewise.
42739         * m4/strverscmp.m4: Likewise.
42740         * m4/threadlib.m4: Likewise.
42741         * m4/timegm.m4: Likewise.
42742         * m4/tm_gmtoff.m4: Likewise.
42743         * m4/tmpdir.m4: Likewise.
42744         * m4/tmpfile.m4: Likewise.
42745         * m4/tzset.m4: Likewise.
42746         * m4/uintmax_t.m4: Likewise.
42747         * m4/unlinkdir.m4: Likewise.
42748         * m4/unlocked-io.m4: Likewise.
42749         * m4/uptime.m4: Likewise.
42750         * m4/userspec.m4: Likewise.
42751         * m4/utimbuf.m4: Likewise.
42752         * m4/utime.m4: Likewise.
42753         * m4/utimes-null.m4: Likewise.
42754         * m4/utimes.m4: Likewise.
42755         * m4/vararrays.m4: Likewise.
42756         * m4/vasnprintf.m4: Likewise.
42757         * m4/vfprintf-posix.m4: Likewise.
42758         * m4/vprintf-posix.m4: Likewise.
42759         * m4/wait-process.m4: Likewise.
42760         * m4/wchar_t.m4: Likewise.
42761         * m4/wint_t.m4: Likewise.
42762         * m4/write-any-file.m4: Likewise.
42763         * m4/yield.m4: Likewise.
42764
42765 2009-01-13  Bruno Haible  <bruno@clisp.org>
42766
42767         Avoid test-copy-file.sh failures when ACL support insufficient.
42768         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42769         TESTS_ENVIRONMENT.
42770         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42771         Reported by Jim Meyering.
42772
42773 2009-01-13  Bruno Haible  <bruno@clisp.org>
42774
42775         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42776         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42777         * modules/unistdio/u8-printf-parse (Files): Likewise.
42778         * modules/unistdio/u32-printf-parse (Files): Likewise.
42779         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42780
42781 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42782
42783         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42784         and m4/inttypes_h.m4 too.
42785
42786 2009-01-12  Eric Blake  <ebb9@byu.net>
42787
42788         tests: IRIX 6.2 cc can't compile -0.0 into .data
42789         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42790         rather than at compile-time.
42791         * tests/test-floorl.c (minus_zero): Likewise.
42792         * tests/test-frexpl.c (minus_zero): Likewise.
42793         * tests/test-isnan.c (minus_zerol): Likewise.
42794         * tests/test-isnanl.h (minus_zero): Likewise.
42795         * tests/test-ldexpl.c (minus_zero): Likewise.
42796         * tests/test-roundl.c (minus_zero): Likewise.
42797         * tests/test-signbit.c (minus_zerol): Likewise.
42798         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42799         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42800         * tests/test-truncl.c (minus_zero): Likewise.
42801         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42802         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42803         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42804
42805 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42806
42807         regex: fix glibc bug 9697
42808         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42809         handling.
42810
42811 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42812
42813         regex: fix glibc bug 697
42814         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42815         being NULL also if there are no backreferences.
42816
42817 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42818
42819         regex: merge glibc changes
42820         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42821         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42822         re_string_skip_chars, re_string_reconstruct): Likewise.
42823         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42824
42825 2009-01-07  Jim Meyering  <meyering@redhat.com>
42826
42827         poll: filter through cppi
42828         * lib/poll.c: Indent cpp directives to reflect nesting.
42829
42830 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42831
42832         poll: don't return uninitialized
42833         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42834
42835 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42836
42837         avoid compile failure on AIX 6.1
42838         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42839         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42840
42841 2009-01-04  Jim Meyering  <meyering@redhat.com>
42842
42843         remove duplicate inclusion of <stdio.h>
42844         * tests/test-fprintf-posix.c: Likewise.
42845         * tests/test-printf-posix.c: Likewise.
42846         * tests/test-snprintf-posix.c: Likewise.
42847         * tests/test-sprintf-posix.c: Likewise.
42848         * tests/test-vasprintf-posix.c: Likewise.
42849         * tests/test-vfprintf-posix.c: Likewise.
42850         * tests/test-vprintf-posix.c: Likewise.
42851         * tests/test-vsnprintf-posix.c: Likewise.
42852         * tests/test-vsprintf-posix.c: Likewise.
42853
42854 2009-01-03  Jim Meyering  <meyering@redhat.com>
42855
42856         gnulib-tool: fix sed-based filtering
42857         * gnulib-tool (func_filter_filelist): Remove extra backslash
42858         in sed_fff_filter definition.
42859
42860 2009-01-02  Jim Meyering  <meyering@redhat.com>
42861
42862         strftime: avoid compilation failure on Solaris 2.6
42863         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42864         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42865         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42866         be available.  Reported by Tom G. Christensen.  Details in
42867         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42868
42869 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42870             Bruno Haible  <bruno@clisp.org>
42871
42872         Speed up gnulib-tool by doing more string processing through shell
42873         built-ins.
42874         * gnulib-tool (fast_func_append): New variable.
42875         (func_remove_prefix, func_remove_suffix): New functions.
42876         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42877         (func_filter_filelist): New function.
42878         (func_get_dependencies): Use func_remove_suffix instead of sed.
42879         (func_get_automake_snippet): Use func_filter_filelist instead of a
42880         subshell and sed invocation.
42881
42882 2009-01-01  Bruno Haible  <bruno@clisp.org>
42883
42884         Fix a security bug.
42885         * gnulib-tool (func_import, import, update): Don't allow the characters
42886         '"', '$', '`', '\' in macro arguments that become part of commands that
42887         are evaluated.
42888
42889 2009-01-01  Bruno Haible  <bruno@clisp.org>
42890
42891         * gnulib-tool (func_reset_sigpipe): Add more comments.
42892
42893 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42894
42895         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42896         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42897         already know the answer.
42898
42899 2009-01-01  Jim Meyering  <meyering@redhat.com>
42900
42901         * lib/version-etc.c (version_etc_va): Update copyright year.
42902
42903 2008-12-30  Bruno Haible  <bruno@clisp.org>
42904
42905         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42906         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42907         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42908
42909 2008-12-29  Eric Blake  <ebb9@byu.net>
42910
42911         multiarch: avoid autoconf AC_REQUIRE bug
42912         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42913         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42914         2.63 and older.
42915         Reported by Bruno Haible, and analyzed in
42916         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42917
42918 2008-12-29  Bruno Haible  <bruno@clisp.org>
42919
42920         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42921         files in subdirectories correctly.
42922         Reported by Ralf Wildenhues.
42923
42924 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42925
42926         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42927         rather than 'join FILE -', for Solaris join.
42928
42929 2008-12-29  Bruno Haible  <bruno@clisp.org>
42930
42931         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42932         quoting.
42933         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42934         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42935         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42936         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42937         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42938         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42939         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42940         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42941         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42942         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42943         * m4/nls.m4 (AM_NLS): Likewise.
42944         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42945         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42946         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42947         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42948         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42949         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42950         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42951         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42952         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42953         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42954         * m4/xsize.m4 (gl_XSIZE): Likewise.
42955         Suggested by Jim Meyering.
42956
42957 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42958
42959         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42960         * lib/parse-duration.c: use a switch instead of cascading if's.
42961
42962 2008-12-29  Eric Blake  <ebb9@byu.net>
42963
42964         wchar.h: supply WEOF on Irix 5.3
42965         * lib/wchar.in.h (wint_t): Also supply WEOF.
42966         * lib/wctype.in.h (wint_t): Likewise.
42967         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42968         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42969         Reported by Tom G. Christensen.
42970
42971 2008-12-26  Bruno Haible  <bruno@clisp.org>
42972
42973         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42974         i486, i586, i686.
42975
42976 2008-12-26  Bruno Haible  <bruno@clisp.org>
42977
42978         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42979
42980 2008-12-26  Bruno Haible  <bruno@clisp.org>
42981
42982         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42983         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42984         not __STDC_CONSTANT_MACROS.
42985         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42986
42987 2008-12-25  Bruno Haible  <bruno@clisp.org>
42988
42989         Add support for universal builds to vasnprintf.
42990         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42991         universal builds, guess no.
42992         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42993         * modules/vasprintf-posix (Depends-on): Likewise.
42994         * modules/fprintf-posix (Depends-on): Likewise.
42995         * modules/vfprintf-posix (Depends-on): Likewise.
42996         * modules/snprintf-posix (Depends-on): Likewise.
42997         * modules/vsnprintf-posix (Depends-on): Likewise.
42998         * modules/sprintf-posix (Depends-on): Likewise.
42999         * modules/vsprintf-posix (Depends-on): Likewise.
43000         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43001         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43002         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43003         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43004         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43005         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43006         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43007
43008         Add support for universal builds to <inttypes.h>.
43009         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43010         _SCNu64_PREFIX): In Apple
43011         universal builds, define directly, using _LP64.
43012         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43013         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43014         * modules/inttypes (Depends-on): Add multiarch.
43015         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43016
43017         Add support for universal builds to <stdint.h>.
43018         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43019         universal builds, define directly, using _LP64.
43020         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43021         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43022         and size_t.
43023         * modules/stdint (Depends-on): Add multiarch.
43024         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43025
43026         New module 'multiarch'.
43027         * modules/multiarch: New file.
43028         * m4/multiarch.m4: New file.
43029
43030 2008-12-25  Bruno Haible  <bruno@clisp.org>
43031
43032         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43033
43034 2008-12-25  Bruno Haible  <bruno@clisp.org>
43035
43036         * modules/btowc (License): Relicense under LGPLv2+.
43037         * modules/mbsinit (License): Likewise.
43038         * modules/mbrtowc (License): Likewise.
43039         * modules/wcrtomb (License): Likewise.
43040         * modules/streq (License): Likewise.
43041         Reported by David Lutterkort <lutter@redhat.com>.
43042
43043 2008-12-23  Bruno Haible  <bruno@clisp.org>
43044
43045         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43046
43047 2008-12-23  Bruno Haible  <bruno@clisp.org>
43048
43049         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43050         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43051         GETADDRINFO_LIB, not in LIBS.
43052         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43053         * modules/canon-host (Link): Likewise.
43054         * NEWS: Mention the change.
43055         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43056         GETADDRINFO_LIB.
43057
43058 2008-12-22  Bruno Haible  <bruno@clisp.org>
43059
43060         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43061         * doc/posix-functions/iswalpha_l.texi: Likewise.
43062         * doc/posix-functions/iswblank_l.texi: Likewise.
43063         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43064         * doc/posix-functions/iswctype_l.texi: Likewise.
43065         * doc/posix-functions/iswdigit_l.texi: Likewise.
43066         * doc/posix-functions/iswgraph_l.texi: Likewise.
43067         * doc/posix-functions/iswlower_l.texi: Likewise.
43068         * doc/posix-functions/iswprint_l.texi: Likewise.
43069         * doc/posix-functions/iswpunct_l.texi: Likewise.
43070         * doc/posix-functions/iswspace_l.texi: Likewise.
43071         * doc/posix-functions/iswupper_l.texi: Likewise.
43072         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43073         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43074         * doc/posix-functions/open_wmemstream.texi: Likewise.
43075         * doc/posix-functions/swscanf.texi: Likewise.
43076         * doc/posix-functions/towctrans_l.texi: Likewise.
43077         * doc/posix-functions/towlower.texi: Likewise.
43078         * doc/posix-functions/towlower_l.texi: Likewise.
43079         * doc/posix-functions/towupper.texi: Likewise.
43080         * doc/posix-functions/towupper_l.texi: Likewise.
43081         * doc/posix-functions/vfwprintf.texi: Likewise.
43082         * doc/posix-functions/vfwscanf.texi: Likewise.
43083         * doc/posix-functions/vswscanf.texi: Likewise.
43084         * doc/posix-functions/vwprintf.texi: Likewise.
43085         * doc/posix-functions/vwscanf.texi: Likewise.
43086         * doc/posix-functions/wcpcpy.texi: Likewise.
43087         * doc/posix-functions/wcpncpy.texi: Likewise.
43088         * doc/posix-functions/wcscasecmp.texi: Likewise.
43089         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43090         * doc/posix-functions/wcscoll_l.texi: Likewise.
43091         * doc/posix-functions/wcsdup.texi: Likewise.
43092         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43093         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43094         * doc/posix-functions/wcsnlen.texi: Likewise.
43095         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43096         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43097         * doc/posix-functions/wctrans_l.texi: Likewise.
43098         * doc/posix-functions/wctype_l.texi: Likewise.
43099         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43100         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43101         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43102         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43103         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43104         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43105         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43106         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43107         * doc/glibc-functions/wcschrnul.texi: Likewise.
43108         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43109         * doc/glibc-functions/wcstod_l.texi: Likewise.
43110         * doc/glibc-functions/wcstof_l.texi: Likewise.
43111         * doc/glibc-functions/wcstol_l.texi: Likewise.
43112         * doc/glibc-functions/wcstold_l.texi: Likewise.
43113         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43114         * doc/glibc-functions/wcstoq.texi: Likewise.
43115         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43116         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43117         * doc/glibc-functions/wcstouq.texi: Likewise.
43118         * doc/glibc-functions/wmempcpy.texi: Likewise.
43119
43120 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43121             Eric Blake  <ebb9@byu.net>
43122             Paolo Bonzini  <bonzini@gnu.org>
43123             Bruno Haible  <bruno@clisp.org>
43124
43125         Make c-stack work on Haiku.
43126         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43127         (c_stack_action): Use SA_ONSTACK flag.
43128
43129 2008-12-22  Bruno Haible  <bruno@clisp.org>
43130
43131         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43132
43133 2008-12-22  Bruno Haible  <bruno@clisp.org>
43134
43135         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43136         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43137         being overridden.
43138         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43139         New macros.
43140         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43141         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43142         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43143         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43144
43145 2008-12-22  Bruno Haible  <bruno@clisp.org>
43146
43147         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43148         from test code.
43149
43150 2008-12-22  Eric Blake  <ebb9@byu.net>
43151
43152         Avoid gcc warnings on cygwin.
43153         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43154         Avoid unused variable.
43155         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43156         Likewise.
43157
43158 2008-12-22  Bruno Haible  <bruno@clisp.org>
43159
43160         Remove HAVE_MBRTOWC conditionals.
43161         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43162         (mbscasecmp): Assume mbrtowc function.
43163         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43164         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43165         * lib/mbschr.c: Include mbuiter.h unconditionally.
43166         (mbschr): Assume mbrtowc function.
43167         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43168         (mbscspn): Assume mbrtowc function.
43169         * lib/mbslen.c: Include mbuiter.h unconditionally.
43170         (mbslen): Assume mbrtowc function.
43171         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43172         (mbsncasecmp): Assume mbrtowc function.
43173         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43174         (mbsnlen): Assume mbrtowc function.
43175         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43176         (mbspbrk): Assume mbrtowc function.
43177         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43178         (mbspcasecmp): Assume mbrtowc function.
43179         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43180         (mbsrchr): Assume mbrtowc function.
43181         * lib/mbssep.c: Include mbuiter.h unconditionally.
43182         (mbssep): Assume mbrtowc function.
43183         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43184         (mbsspn): Assume mbrtowc function.
43185         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43186         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43187         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43188         (mbstok_r): Assume mbrtowc function.
43189         * lib/propername.c: Include mbuiter.h unconditionally.
43190         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43191         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43192         (trim2): Assume mbrtowc function.
43193         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43194         (mbsnwidth): Assume mbrtowc function.
43195         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43196         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43197         fallback definitions.
43198         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43199
43200 2008-12-22  Bruno Haible  <bruno@clisp.org>
43201
43202         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43203
43204 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43205
43206         * modules/regex: Request emulations for the mb*/wc* functions we need.
43207         * m4/regex.m4: Don't look for those functions here.
43208         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43209
43210 2008-12-22  Bruno Haible  <bruno@clisp.org>
43211
43212         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43213
43214 2008-12-21  Bruno Haible  <bruno@clisp.org>
43215
43216         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43217         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43218         (Include): Remove conditionalization.
43219         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43220         (Include): Remove conditionalization.
43221         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43222         (Include): Remove conditionalization.
43223         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43224         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43225         * NEWS: Mention the change.
43226         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43227         via Sergey Poznyakoff <gray@gnu.org.ua>.
43228
43229 2008-12-21  Bruno Haible  <bruno@clisp.org>
43230
43231         * MODULES.html.sh (Extended multibyte and wide character utilities
43232         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43233         wcrtomb, wcsrtombs.
43234         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43235         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43236         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43237         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43238
43239 2008-12-21  Bruno Haible  <bruno@clisp.org>
43240
43241         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43242
43243 2008-12-21  Bruno Haible  <bruno@clisp.org>
43244
43245         * modules/wcsnrtombs-tests: New file.
43246         * tests/test-wcsnrtombs1.sh: New file.
43247         * tests/test-wcsnrtombs2.sh: New file.
43248         * tests/test-wcsnrtombs3.sh: New file.
43249         * tests/test-wcsnrtombs4.sh: New file.
43250         * tests/test-wcsnrtombs.c: New file.
43251
43252         New module 'wcsnrtombs'.
43253         * lib/wchar.in.h (wcsnrtombs): New declaration.
43254         * lib/wcsnrtombs.c: New file.
43255         * lib/wcsrtombs-state.c: New file.
43256         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43257         (internal_state): Remove variable.
43258         * m4/wcsnrtombs.m4: New file.
43259         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43260         compilation units.
43261         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43262         HAVE_WCSNRTOMBS.
43263         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43264         HAVE_WCSNRTOMBS.
43265         * modules/wcsnrtombs: New file.
43266         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43267         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43268
43269 2008-12-21  Bruno Haible  <bruno@clisp.org>
43270
43271         * modules/wcsrtombs-tests: New file.
43272         * tests/test-wcsrtombs1.sh: New file.
43273         * tests/test-wcsrtombs2.sh: New file.
43274         * tests/test-wcsrtombs3.sh: New file.
43275         * tests/test-wcsrtombs4.sh: New file.
43276         * tests/test-wcsrtombs.c: New file.
43277
43278         New module 'wcsrtombs'.
43279         * lib/wchar.in.h (wcsrtombs): New declaration.
43280         * lib/wcsrtombs.c: New file.
43281         * m4/wcsrtombs.m4: New file.
43282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43283         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43284         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43285         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43286         * modules/wcsrtombs: New file.
43287         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43288         bugs.
43289
43290 2008-12-21  Bruno Haible  <bruno@clisp.org>
43291
43292         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43293         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43294         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43295         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43296         if not correct.
43297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43298         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43299         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43300         m4/locale-zh.m4, m4/codeset.m4.
43301         * doc/posix-functions/wcrtomb.texi: Document the bug.
43302
43303 2008-12-21  Bruno Haible  <bruno@clisp.org>
43304
43305         Work around a btowc() bug on IRIX 6.5.
43306         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43307         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43308         REPLACE_WTOBC if not.
43309         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43310         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43311         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43312
43313 2008-12-21  Bruno Haible  <bruno@clisp.org>
43314
43315         * modules/wcrtomb-tests: New file.
43316         * tests/test-wcrtomb.sh: New file.
43317         * tests/test-wcrtomb.c: New file.
43318
43319         New module 'wcrtomb'.
43320         * lib/wchar.in.h (wcrtomb): New declaration.
43321         * lib/wcrtomb.c: New file.
43322         * m4/wcrtomb.m4: New file.
43323         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43324         HAVE_WCRTOMB.
43325         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43326         HAVE_WCRTOMB.
43327         * modules/wcrtomb: New file.
43328         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43329
43330 2008-12-21  Bruno Haible  <bruno@clisp.org>
43331
43332         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43333         * modules/mbsrtowcs (Files): Likewise.
43334         * modules/wctob (Files): Likewise.
43335         * modules/c-strcase-tests (Files): Likewise.
43336         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43337         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43338         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43339         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43340         * modules/vasnprintf-posix-tests (Files): Likewise.
43341
43342 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43343
43344         gitlog-to-changelog: pass all command-line arguments to git-log
43345         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43346         it is sometimes convenient to filter the commits in various ways.
43347         gitlog-to-changelog only allows --since to specify a start date,
43348         but git-log itself supports many other filtering mechanisms.
43349         At the moment, I want to filter by branch name.  Rather than
43350         adding a --branch option to gitlog-to-changelog, it seems more
43351         flexible to simply pass all options directly to git-log and let
43352         git do the work.  Notice that this effectively makes --since a
43353         redundant option for gitlog-to-changelog, but removing it would
43354         require current usage to change since calls would then require
43355         an additional '--'.
43356
43357 2008-12-21  Bruno Haible  <bruno@clisp.org>
43358
43359         * modules/mbsnrtowcs-tests: New file.
43360         * tests/test-mbsnrtowcs1.sh: New file.
43361         * tests/test-mbsnrtowcs2.sh: New file.
43362         * tests/test-mbsnrtowcs3.sh: New file.
43363         * tests/test-mbsnrtowcs4.sh: New file.
43364         * tests/test-mbsnrtowcs.c: New file.
43365
43366         New module 'mbsnrtowcs'.
43367         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43368         * lib/mbsnrtowcs.c: New file.
43369         * lib/mbsrtowcs-state.c: New file.
43370         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43371         (internal_state): Remove variable.
43372         * m4/mbsnrtowcs.m4: New file.
43373         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43374         compilation units.
43375         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43376         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43377         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43378         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43379         * modules/mbsnrtowcs: New file.
43380         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43381         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43382         portability problem.
43383
43384 2008-12-21  Bruno Haible  <bruno@clisp.org>
43385
43386         Work around mbsrtowcs bug.
43387         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43388         (gl_FUNC_MBSRTOWCS): Invoke it.
43389         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43390         m4/locale-zh.m4.
43391         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43392
43393 2008-12-21  Bruno Haible  <bruno@clisp.org>
43394
43395         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43396
43397 2008-12-21  Bruno Haible  <bruno@clisp.org>
43398
43399         Update doc for AIX.
43400         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43401         16-bit wchar_t type.
43402         * doc/posix-functions/btowc.texi: Likewise.
43403         * doc/posix-functions/fgetwc.texi: Likewise.
43404         * doc/posix-functions/fgetws.texi: Likewise.
43405         * doc/posix-functions/fputwc.texi: Likewise.
43406         * doc/posix-functions/fputws.texi: Likewise.
43407         * doc/posix-functions/fwide.texi: Likewise.
43408         * doc/posix-functions/fwprintf.texi: Likewise.
43409         * doc/posix-functions/fwscanf.texi: Likewise.
43410         * doc/posix-functions/getwchar.texi: Likewise.
43411         * doc/posix-functions/getwc.texi: Likewise.
43412         * doc/posix-functions/iswalnum.texi: Likewise.
43413         * doc/posix-functions/iswalpha.texi: Likewise.
43414         * doc/posix-functions/iswblank.texi: Likewise.
43415         * doc/posix-functions/iswcntrl.texi: Likewise.
43416         * doc/posix-functions/iswctype.texi: Likewise.
43417         * doc/posix-functions/iswdigit.texi: Likewise.
43418         * doc/posix-functions/iswgraph.texi: Likewise.
43419         * doc/posix-functions/iswlower.texi: Likewise.
43420         * doc/posix-functions/iswprint.texi: Likewise.
43421         * doc/posix-functions/iswpunct.texi: Likewise.
43422         * doc/posix-functions/iswspace.texi: Likewise.
43423         * doc/posix-functions/iswupper.texi: Likewise.
43424         * doc/posix-functions/iswxdigit.texi: Likewise.
43425         * doc/posix-functions/mbrtowc.texi: Likewise.
43426         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43427         * doc/posix-functions/mbstowcs.texi: Likewise.
43428         * doc/posix-functions/mbtowc.texi: Likewise.
43429         * doc/posix-functions/putwchar.texi: Likewise.
43430         * doc/posix-functions/putwc.texi: Likewise.
43431         * doc/posix-functions/swprintf.texi: Likewise.
43432         * doc/posix-functions/tolower.texi: Likewise.
43433         * doc/posix-functions/toupper.texi: Likewise.
43434         * doc/posix-functions/towctrans.texi: Likewise.
43435         * doc/posix-functions/ungetwc.texi: Likewise.
43436         * doc/posix-functions/vswprintf.texi: Likewise.
43437         * doc/posix-functions/wcrtomb.texi: Likewise.
43438         * doc/posix-functions/wcscat.texi: Likewise.
43439         * doc/posix-functions/wcschr.texi: Likewise.
43440         * doc/posix-functions/wcscmp.texi: Likewise.
43441         * doc/posix-functions/wcscoll.texi: Likewise.
43442         * doc/posix-functions/wcscpy.texi: Likewise.
43443         * doc/posix-functions/wcscspn.texi: Likewise.
43444         * doc/posix-functions/wcsftime.texi: Likewise.
43445         * doc/posix-functions/wcslen.texi: Likewise.
43446         * doc/posix-functions/wcsncat.texi: Likewise.
43447         * doc/posix-functions/wcsncmp.texi: Likewise.
43448         * doc/posix-functions/wcsncpy.texi: Likewise.
43449         * doc/posix-functions/wcspbrk.texi: Likewise.
43450         * doc/posix-functions/wcsrchr.texi: Likewise.
43451         * doc/posix-functions/wcsrtombs.texi: Likewise.
43452         * doc/posix-functions/wcsspn.texi: Likewise.
43453         * doc/posix-functions/wcsstr.texi: Likewise.
43454         * doc/posix-functions/wcstod.texi: Likewise.
43455         * doc/posix-functions/wcstof.texi: Likewise.
43456         * doc/posix-functions/wcstoimax.texi: Likewise.
43457         * doc/posix-functions/wcstok.texi: Likewise.
43458         * doc/posix-functions/wcstold.texi: Likewise.
43459         * doc/posix-functions/wcstoll.texi: Likewise.
43460         * doc/posix-functions/wcstol.texi: Likewise.
43461         * doc/posix-functions/wcstombs.texi: Likewise.
43462         * doc/posix-functions/wcstoull.texi: Likewise.
43463         * doc/posix-functions/wcstoul.texi: Likewise.
43464         * doc/posix-functions/wcstoumax.texi: Likewise.
43465         * doc/posix-functions/wcswidth.texi: Likewise.
43466         * doc/posix-functions/wcsxfrm.texi: Likewise.
43467         * doc/posix-functions/wctob.texi: Likewise.
43468         * doc/posix-functions/wctomb.texi: Likewise.
43469         * doc/posix-functions/wctrans.texi: Likewise.
43470         * doc/posix-functions/wctype.texi: Likewise.
43471         * doc/posix-functions/wcwidth.texi: Likewise.
43472         * doc/posix-functions/wmemchr.texi: Likewise.
43473         * doc/posix-functions/wmemcmp.texi: Likewise.
43474         * doc/posix-functions/wmemcpy.texi: Likewise.
43475         * doc/posix-functions/wmemmove.texi: Likewise.
43476         * doc/posix-functions/wmemset.texi: Likewise.
43477         * doc/posix-functions/wprintf.texi: Likewise.
43478         * doc/posix-functions/wscanf.texi: Likewise.
43479
43480 2008-12-21  Bruno Haible  <bruno@clisp.org>
43481
43482         Update doc for HP-UX 11.11.
43483         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43484         in HP-UX version 11.00, not in all versions of HP-UX 11.
43485         * doc/posix-functions/fwide.texi: Likewise.
43486         * doc/posix-functions/fwprintf.texi: Likewise.
43487         * doc/posix-functions/fwscanf.texi: Likewise.
43488         * doc/posix-functions/inet_ntop.texi: Likewise.
43489         * doc/posix-functions/inet_pton.texi: Likewise.
43490         * doc/posix-functions/mbrlen.texi: Likewise.
43491         * doc/posix-functions/mbrtowc.texi: Likewise.
43492         * doc/posix-functions/mbsinit.texi: Likewise.
43493         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43494         * doc/posix-functions/swprintf.texi: Likewise.
43495         * doc/posix-functions/swscanf.texi: Likewise.
43496         * doc/posix-functions/towctrans.texi: Likewise.
43497         * doc/posix-functions/vfwprintf.texi: Likewise.
43498         * doc/posix-functions/vswprintf.texi: Likewise.
43499         * doc/posix-functions/vwprintf.texi: Likewise.
43500         * doc/posix-functions/wcrtomb.texi: Likewise.
43501         * doc/posix-functions/wcsrtombs.texi: Likewise.
43502         * doc/posix-functions/wcsstr.texi: Likewise.
43503         * doc/posix-functions/wctob.texi: Likewise.
43504         * doc/posix-functions/wctrans.texi: Likewise.
43505         * doc/posix-functions/wmemchr.texi: Likewise.
43506         * doc/posix-functions/wmemcmp.texi: Likewise.
43507         * doc/posix-functions/wmemcpy.texi: Likewise.
43508         * doc/posix-functions/wmemmove.texi: Likewise.
43509         * doc/posix-functions/wmemset.texi: Likewise.
43510         * doc/posix-functions/wprintf.texi: Likewise.
43511         * doc/posix-functions/wscanf.texi: Likewise.
43512
43513 2008-12-21  Bruno Haible  <bruno@clisp.org>
43514
43515         Work around a portability problem.
43516         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43517         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43518
43519 2008-12-20  Bruno Haible  <bruno@clisp.org>
43520
43521         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43522         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43523         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43524         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43525         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43526
43527         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43528         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43529         set.
43530         (GNULIB_defined_mbstate_t): New macro.
43531         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43532         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43533         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43534         reuses the system's mbrtowc function but works around the bugs.
43535         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43536         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43537         macros.
43538         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43539         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43540         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43541         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43542         REPLACE_MBSINIT if mbsinit needs to be overridden.
43543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43544         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43545         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43546         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43547         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43548         m4/locale-zh.m4.
43549         (Depends): Add mbsinit.
43550         * modules/mbsinit (Depends): Add mbrtowc.
43551         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43552
43553 2008-12-20  Bruno Haible  <bruno@clisp.org>
43554
43555         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43556         so that there are no conversion errors on AIX.
43557         * tests/test-mbsrtowcs.c (main): LIkewise.
43558
43559 2008-12-20  Bruno Haible  <bruno@clisp.org>
43560
43561         Work around wctob bug on Solaris <= 9.
43562         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43563         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43565         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43566         * modules/wctob (Files): Add m4/locale-fr.m4.
43567         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43568
43569 2008-12-20  Bruno Haible  <bruno@clisp.org>
43570
43571         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43572         /dev/null.
43573         * tests/test-select-in.sh: Likewise.
43574         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43575
43576 2008-12-20  Bruno Haible  <bruno@clisp.org>
43577
43578         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43579         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43580         Cygwin 1.5.x.
43581
43582 2008-12-20  Bruno Haible  <bruno@clisp.org>
43583
43584         Ensure mbstate_t is defined on HP-UX 11.11.
43585         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43586         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43587         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43588         AC_USE_SYSTEM_EXTENSIONS.
43589         * modules/fnmatch (Depends-on): Add extensions.
43590         * modules/mbrlen (Depends-on): Likewise.
43591         * modules/mbrtowc (Depends-on): Likewise.
43592         * modules/mbsinit (Depends-on): Likewise.
43593         * modules/mbsrtowcs (Depends-on): Likewise.
43594         * modules/mbswidth (Depends-on): Likewise.
43595         * modules/quotearg (Depends-on): Likewise.
43596         * modules/strftime (Depends-on): Likewise.
43597
43598 2008-12-20  Bruno Haible  <bruno@clisp.org>
43599
43600         Ensure wctob is declared on IRIX 6.5.
43601         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43602         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43603         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43604         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43605         of HAVE_WCTOB.
43606         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43607         HAVE_WCTOB.
43608         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43609
43610 2008-12-19  Bruno Haible  <bruno@clisp.org>
43611
43612         * modules/mbsrtowcs-tests: New file.
43613         * tests/test-mbsrtowcs1.sh: New file.
43614         * tests/test-mbsrtowcs2.sh: New file.
43615         * tests/test-mbsrtowcs3.sh: New file.
43616         * tests/test-mbsrtowcs4.sh: New file.
43617         * tests/test-mbsrtowcs.c: New file.
43618
43619         New module 'mbsrtowcs'.
43620         * lib/wchar.in.h (mbsrtowcs): New declaration.
43621         * lib/mbsrtowcs.c: New file.
43622         * m4/mbsrtowcs.m4: New file.
43623         * modules/mbsrtowcs: New file.
43624         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43625         HAVE_MBSRTOWCS.
43626         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43627         HAVE_MBSRTOWCS.
43628         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43629
43630 2008-12-19  Bruno Haible  <bruno@clisp.org>
43631
43632         New module 'mbrlen'.
43633         * lib/wchar.in.h (mbrlen): New declaration.
43634         * lib/mbrlen.c: New file.
43635         * m4/mbrlen.m4: New file.
43636         * modules/mbrlen: New file.
43637         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43638         HAVE_MBRLEN.
43639         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43640         HAVE_MBRLEN.
43641         * doc/posix-functions/mbrlen.texi: Document the new module.
43642
43643 2008-12-19  Bruno Haible  <bruno@clisp.org>
43644
43645         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43646         * modules/mbrtowc (Depends-on): Add verify.
43647         Suggested by Paul Eggert.
43648
43649 2008-12-18  Bruno Haible  <bruno@clisp.org>
43650
43651         * modules/mbsinit-tests: New file.
43652         * tests/test-mbsinit.sh: New file.
43653         * tests/test-mbsinit.c: New file.
43654
43655 2008-12-18  Bruno Haible  <bruno@clisp.org>
43656
43657         * modules/mbrtowc-tests: New file.
43658         * tests/test-mbrtowc1.sh: New file.
43659         * tests/test-mbrtowc2.sh: New file.
43660         * tests/test-mbrtowc3.sh: New file.
43661         * tests/test-mbrtowc4.sh: New file.
43662         * tests/test-mbrtowc.c: New file.
43663
43664         New module 'mbrtowc'.
43665         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43666         mbsinit and mbrtowc.
43667         (mbrtowc): New declaration.
43668         * lib/mbrtowc.c: New file.
43669         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43670         * modules/mbrtowc: New file.
43671         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43672         HAVE_MBRTOWC.
43673         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43674         HAVE_MBRTOWC.
43675         * doc/posix-functions/mbrtowc.texi: Document the new module.
43676
43677 2008-12-18  Bruno Haible  <bruno@clisp.org>
43678
43679         New module 'wctob'.
43680         * lib/wchar.in.h (wctob): New declaration.
43681         * lib/wctob.c: New file.
43682         * m4/wctob.m4: New file.
43683         * modules/wctob: New file.
43684         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43685         HAVE_WCTOB.
43686         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43687         * doc/posix-functions/wctob.texi: Document the new module.
43688
43689 2008-12-18  Bruno Haible  <bruno@clisp.org>
43690
43691         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43692         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43693
43694 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43695
43696         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43697         G. Christensen" <tgc@jupiterrise.com>.
43698
43699         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43700         G. Christensen" <tgc@jupiterrise.com>.
43701
43702         * lib/flock.c: Need to include string.h.  Reported by "Tom
43703         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43704         <ebb9@byu.net>.
43705
43706 2008-12-18  Bruno Haible  <bruno@clisp.org>
43707
43708         * m4/locale-ja.m4: New file, from GNU gettext.
43709
43710 2008-12-17  Bruno Haible  <bruno@clisp.org>
43711
43712         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43713         Suggested by Eric Blake.
43714
43715 2008-12-17  Bruno Haible  <bruno@clisp.org>
43716
43717         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43718
43719 2008-12-17  Bruno Haible  <bruno@clisp.org>
43720
43721         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43722         * modules/mbsinit (Depends-on): Add verify.
43723         Suggested by Paul Eggert.
43724
43725 2008-12-17  Bruno Haible  <bruno@clisp.org>
43726
43727         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43728         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43729         gl_FUNC_MBRTOWC.
43730         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43731         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43732         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43733         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43734         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43735         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43736         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43737         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43738         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43739         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43740         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43741         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43742         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43743         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43744         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43745         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43746         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43747         * modules/trim (configure.ac): Likewise.
43748
43749 2008-12-17  Bruno Haible  <bruno@clisp.org>
43750
43751         * modules/btowc-tests: New file.
43752         * tests/test-btowc1.sh: New file.
43753         * tests/test-btowc2.sh: New file.
43754         * tests/test-btowc.c: New file.
43755
43756         New module 'btowc'.
43757         * lib/wchar.in.h (btowc): New declaration.
43758         * lib/btowc.c: New file.
43759         * m4/btowc.m4: New file.
43760         * modules/btowc: New file.
43761         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43762         HAVE_BTOWC.
43763         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43764         * doc/posix-functions/btowc.texi: Document the new module.
43765
43766 2008-12-17  Bruno Haible  <bruno@clisp.org>
43767
43768         New module 'mbsinit'.
43769         * lib/wchar.in.h (mbsinit): New declaration.
43770         * lib/mbsinit.c: New file.
43771         * m4/mbsinit.m4: New file.
43772         * modules/mbsinit: New file.
43773         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43774         HAVE_MBSINIT.
43775         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43776         HAVE_MBSINIT.
43777         * doc/posix-functions/mbsinit.texi: Document the new module.
43778
43779 2008-12-16  Bruno Haible  <bruno@clisp.org>
43780
43781         * lib/unistd.in.h: Add comment.
43782         * tests/test-environ.c: Don't include <stdlib.h>.
43783
43784 2008-12-16  Bruno Haible  <bruno@clisp.org>
43785
43786         * lib/parse-duration.h (parse_duration): Document return value
43787         convention.
43788         * lib/parse-duration.c: Include specification header first. Add
43789         comments.
43790         (_): Remove macro.
43791         (parse_year_month_day, parse_hour_minute_second): Move side effects
43792         outside of strchr call.
43793         (parse_non_iso8601): Move side effects outside of isspace call.
43794         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43795         call.
43796
43797 2008-12-16  Bruno Haible  <bruno@clisp.org>
43798
43799         * tests/test-parse-duration.sh: Produce no output when the test
43800         succeeds.
43801
43802 2008-12-16  Bruno Haible  <bruno@clisp.org>
43803
43804         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43805         expressions.
43806
43807 2008-12-15  Bruno Haible  <bruno@clisp.org>
43808
43809         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43810         * doc/glibc-functions/flistxattr.texi: Likewise.
43811         * doc/glibc-functions/fopencookie.texi: Likewise.
43812         * doc/glibc-functions/fremovexattr.texi: Likewise.
43813         * doc/glibc-functions/fsetxattr.texi: Likewise.
43814         * doc/glibc-functions/getxattr.texi: Likewise.
43815         * doc/glibc-functions/lgetxattr.texi: Likewise.
43816         * doc/glibc-functions/listxattr.texi: Likewise.
43817         * doc/glibc-functions/llistxattr.texi: Likewise.
43818         * doc/glibc-functions/lremovexattr.texi: Likewise.
43819         * doc/glibc-functions/lsetxattr.texi: Likewise.
43820         * doc/glibc-functions/removexattr.texi: Likewise.
43821         * doc/glibc-functions/setxattr.texi: Likewise.
43822         * doc/posix-functions/open_memstream.texi: Likewise.
43823
43824 2008-12-15  Eric Blake  <ebb9@byu.net>
43825
43826         Update doc for cygwin 1.7.
43827         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43828         functions.
43829         * doc/posix-functions/fchmodat.texi: Likewise.
43830         * doc/posix-functions/fchownat.texi: Likewise.
43831         * doc/posix-functions/fdopendir.texi: Likewise.
43832         * doc/posix-functions/fmemopen.texi: Likewise.
43833         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43834         * doc/posix-functions/fstatat.texi: Likewise.
43835         * doc/posix-functions/futimens.texi: Likewise.
43836         * doc/posix-functions/gai_strerror.texi: Likewise.
43837         * doc/posix-functions/getaddrinfo.texi: Likewise.
43838         * doc/posix-functions/getnameinfo.texi: Likewise.
43839         * doc/posix-functions/if_freenameindex.texi: Likewise.
43840         * doc/posix-functions/if_indextoname.texi: Likewise.
43841         * doc/posix-functions/if_nameindex.texi: Likewise.
43842         * doc/posix-functions/if_nametoindex.texi: Likewise.
43843         * doc/posix-functions/insque.texi: Likewise.
43844         * doc/posix-functions/linkat.texi: Likewise.
43845         * doc/posix-functions/llrint.texi: Likewise.
43846         * doc/posix-functions/llrintf.texi: Likewise.
43847         * doc/posix-functions/llrintl.texi: Likewise.
43848         * doc/posix-functions/lockf.texi: Likewise.
43849         * doc/posix-functions/lrintl.texi: Likewise.
43850         * doc/posix-functions/mkdirat.texi: Likewise.
43851         * doc/posix-functions/mkfifoat.texi: Likewise.
43852         * doc/posix-functions/mknodat.texi: Likewise.
43853         * doc/posix-functions/mq_close.texi: Likewise.
43854         * doc/posix-functions/mq_getattr.texi: Likewise.
43855         * doc/posix-functions/mq_notify.texi: Likewise.
43856         * doc/posix-functions/mq_open.texi: Likewise.
43857         * doc/posix-functions/mq_receive.texi: Likewise.
43858         * doc/posix-functions/mq_send.texi: Likewise.
43859         * doc/posix-functions/mq_setattr.texi: Likewise.
43860         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43861         * doc/posix-functions/mq_timedsend.texi: Likewise.
43862         * doc/posix-functions/mq_unlink.texi: Likewise.
43863         * doc/posix-functions/open_memstream.texi: Likewise.
43864         * doc/posix-functions/openat.texi: Likewise.
43865         * doc/posix-functions/posix_fadvise.texi: Likewise.
43866         * doc/posix-functions/posix_fallocate.texi: Likewise.
43867         * doc/posix-functions/posix_madvise.texi: Likewise.
43868         * doc/posix-functions/posix_memalign.texi: Likewise.
43869         * doc/posix-functions/posix_openpt.texi: Likewise.
43870         * doc/posix-functions/readlinkat.texi: Likewise.
43871         * doc/posix-functions/remque.texi: Likewise.
43872         * doc/posix-functions/renameat.texi: Likewise.
43873         * doc/posix-functions/rintl.texi: Likewise.
43874         * doc/posix-functions/sem_unlink.texi: Likewise.
43875         * doc/posix-functions/shm_open.texi: Likewise.
43876         * doc/posix-functions/shm_unlink.texi: Likewise.
43877         * doc/posix-functions/signgam.texi: Likewise.
43878         * doc/posix-functions/sigset.texi: Likewise.
43879         * doc/posix-functions/stpcpy.texi: Likewise.
43880         * doc/posix-functions/stpncpy.texi: Likewise.
43881         * doc/posix-functions/strerror.texi: Likewise.
43882         * doc/posix-functions/strtod.texi: Likewise.
43883         * doc/posix-functions/symlinkat.texi: Likewise.
43884         * doc/posix-functions/unlinkat.texi: Likewise.
43885         * doc/posix-functions/utimensat.texi: Likewise.
43886         * doc/glibc-functions/bindresvport.texi: Likewise.
43887         * doc/glibc-functions/dn_expand.texi: Likewise.
43888         * doc/glibc-functions/exp10.texi: Likewise.
43889         * doc/glibc-functions/exp10f.texi: Likewise.
43890         * doc/glibc-functions/fgetxattr.texi: Likewise.
43891         * doc/glibc-functions/flistxattr.texi: Likewise.
43892         * doc/glibc-functions/fopencookie.texi: Likewise.
43893         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43894         * doc/glibc-functions/fremovexattr.texi: Likewise.
43895         * doc/glibc-functions/fsetxattr.texi: Likewise.
43896         * doc/glibc-functions/getifaddrs.texi: Likewise.
43897         * doc/glibc-functions/getxattr.texi: Likewise.
43898         * doc/glibc-functions/lgetxattr.texi: Likewise.
43899         * doc/glibc-functions/listxattr.texi: Likewise.
43900         * doc/glibc-functions/llistxattr.texi: Likewise.
43901         * doc/glibc-functions/lremovexattr.texi: Likewise.
43902         * doc/glibc-functions/lsetxattr.texi: Likewise.
43903         * doc/glibc-functions/pow10.texi: Likewise.
43904         * doc/glibc-functions/pow10f.texi: Likewise.
43905         * doc/glibc-functions/rcmd_af.texi: Likewise.
43906         * doc/glibc-functions/removexattr.texi: Likewise.
43907         * doc/glibc-functions/res_init.texi: Likewise.
43908         * doc/glibc-functions/res_mkquery.texi: Likewise.
43909         * doc/glibc-functions/res_query.texi: Likewise.
43910         * doc/glibc-functions/res_querydomain.texi: Likewise.
43911         * doc/glibc-functions/res_send.texi: Likewise.
43912         * doc/glibc-functions/rresvport_af.texi: Likewise.
43913         * doc/glibc-functions/setxattr.texi: Likewise.
43914         * doc/glibc-functions/strcasestr.texi: Likewise.
43915
43916 2008-12-15  Bruno Haible  <bruno@clisp.org>
43917
43918         Fix compilation error on OSF/1 4.0.
43919         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43920         <sys/time.h>, simply delegate to the system header.
43921         Reported by Daniel Richard G. <oss@teragram.com>.
43922
43923 2008-12-15  Bruno Haible  <bruno@clisp.org>
43924
43925         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43926         * doc/posix-functions/fchmodat.texi: Likewise.
43927         * doc/posix-functions/fchownat.texi: Likewise.
43928         * doc/posix-functions/fdopendir.texi: Likewise.
43929         * doc/posix-functions/fstatat.texi: Likewise.
43930         * doc/posix-functions/mkdirat.texi: Likewise.
43931         * doc/posix-functions/unlinkat.texi: Likewise.
43932
43933 2008-12-14  Bruno Haible  <bruno@clisp.org>
43934
43935         Update doc for POSIX:2008.
43936         * doc/posix-functions/faccessat.texi: New file.
43937         * doc/posix-functions/fchmodat.texi: New file.
43938         * doc/posix-functions/fchownat.texi: New file.
43939         * doc/posix-functions/fdopendir.texi: New file.
43940         * doc/posix-functions/fstatat.texi: New file.
43941         * doc/posix-functions/futimens.texi: New file.
43942         * doc/posix-functions/linkat.texi: New file.
43943         * doc/posix-functions/mkdirat.texi: New file.
43944         * doc/posix-functions/mkfifoat.texi: New file.
43945         * doc/posix-functions/mknodat.texi: New file.
43946         * doc/posix-functions/open_wmemstream.texi: New file.
43947         * doc/posix-functions/openat.texi: New file.
43948         * doc/posix-functions/psiginfo.texi: New file.
43949         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43950         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43951         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43952         * doc/posix-functions/readlinkat.texi: New file.
43953         * doc/posix-functions/renameat.texi: New file.
43954         * doc/posix-functions/strerror_l.texi: New file.
43955         * doc/posix-functions/symlinkat.texi: New file.
43956         * doc/posix-functions/unlinkat.texi: New file.
43957         * doc/posix-functions/utimensat.texi: New file.
43958         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43959
43960 2008-12-14  Bruno Haible  <bruno@clisp.org>
43961
43962         Update doc for POSIX:2008.
43963         * doc/posix-functions/alphasort.texi: Renamed from
43964         doc/glibc-functions/alphasort.texi.
43965         * doc/posix-functions/dirfd.texi: Renamed from
43966         doc/glibc-functions/dirfd.texi.
43967         * doc/posix-functions/dprintf.texi: Renamed from
43968         doc/glibc-functions/dprintf.texi.
43969         * doc/posix-functions/duplocale.texi: Renamed from
43970         doc/glibc-functions/duplocale.texi.
43971         * doc/posix-functions/fexecve.texi: Renamed from
43972         doc/glibc-functions/fexecve.texi.
43973         * doc/posix-functions/fmemopen.texi: Renamed from
43974         doc/glibc-functions/fmemopen.texi.
43975         * doc/posix-functions/freelocale.texi: Renamed from
43976         doc/glibc-functions/freelocale.texi.
43977         * doc/posix-functions/getdate_err.texi: Renamed from
43978         doc/glibc-functions/getdate_err.texi.
43979         * doc/posix-functions/isalnum_l.texi: Renamed from
43980         doc/glibc-functions/isalnum_l.texi.
43981         * doc/posix-functions/isalpha_l.texi: Renamed from
43982         doc/glibc-functions/isalpha_l.texi.
43983         * doc/posix-functions/isblank_l.texi: Renamed from
43984         doc/glibc-functions/isblank_l.texi.
43985         * doc/posix-functions/iscntrl_l.texi: Renamed from
43986         doc/glibc-functions/iscntrl_l.texi.
43987         * doc/posix-functions/isdigit_l.texi: Renamed from
43988         doc/glibc-functions/isdigit_l.texi.
43989         * doc/posix-functions/isgraph_l.texi: Renamed from
43990         doc/glibc-functions/isgraph_l.texi.
43991         * doc/posix-functions/islower_l.texi: Renamed from
43992         doc/glibc-functions/islower_l.texi.
43993         * doc/posix-functions/isprint_l.texi: Renamed from
43994         doc/glibc-functions/isprint_l.texi.
43995         * doc/posix-functions/ispunct_l.texi: Renamed from
43996         doc/glibc-functions/ispunct_l.texi.
43997         * doc/posix-functions/isspace_l.texi: Renamed from
43998         doc/glibc-functions/isspace_l.texi.
43999         * doc/posix-functions/isupper_l.texi: Renamed from
44000         doc/glibc-functions/isupper_l.texi.
44001         * doc/posix-functions/iswalnum_l.texi: Renamed from
44002         doc/glibc-functions/iswalnum_l.texi.
44003         * doc/posix-functions/iswalpha_l.texi: Renamed from
44004         doc/glibc-functions/iswalpha_l.texi.
44005         * doc/posix-functions/iswblank_l.texi: Renamed from
44006         doc/glibc-functions/iswblank_l.texi.
44007         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44008         doc/glibc-functions/iswcntrl_l.texi.
44009         * doc/posix-functions/iswctype_l.texi: Renamed from
44010         doc/glibc-functions/iswctype_l.texi.
44011         * doc/posix-functions/iswdigit_l.texi: Renamed from
44012         doc/glibc-functions/iswdigit_l.texi.
44013         * doc/posix-functions/iswgraph_l.texi: Renamed from
44014         doc/glibc-functions/iswgraph_l.texi.
44015         * doc/posix-functions/iswlower_l.texi: Renamed from
44016         doc/glibc-functions/iswlower_l.texi.
44017         * doc/posix-functions/iswprint_l.texi: Renamed from
44018         doc/glibc-functions/iswprint_l.texi.
44019         * doc/posix-functions/iswpunct_l.texi: Renamed from
44020         doc/glibc-functions/iswpunct_l.texi.
44021         * doc/posix-functions/iswspace_l.texi: Renamed from
44022         doc/glibc-functions/iswspace_l.texi.
44023         * doc/posix-functions/iswupper_l.texi: Renamed from
44024         doc/glibc-functions/iswupper_l.texi.
44025         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44026         doc/glibc-functions/iswxdigit_l.texi.
44027         * doc/posix-functions/isxdigit_l.texi: Renamed from
44028         doc/glibc-functions/isxdigit_l.texi.
44029         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44030         doc/glibc-functions/mbsnrtowcs.texi.
44031         * doc/posix-functions/mkdtemp.texi: Renamed from
44032         doc/glibc-functions/mkdtemp.texi.
44033         * doc/posix-functions/newlocale.texi: Renamed from
44034         doc/glibc-functions/newlocale.texi.
44035         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44036         doc/glibc-functions/nl_langinfo_l.texi.
44037         * doc/posix-functions/open_memstream.texi: Renamed from
44038         doc/glibc-functions/open_memstream.texi.
44039         * doc/posix-functions/opterr.texi: Renamed from
44040         doc/glibc-functions/opterr.texi.
44041         * doc/posix-functions/optind.texi: Renamed from
44042         doc/glibc-functions/optind.texi.
44043         * doc/posix-functions/optopt.texi: Renamed from
44044         doc/glibc-functions/optopt.texi.
44045         * doc/posix-functions/psignal.texi: Renamed from
44046         doc/glibc-functions/psignal.texi.
44047         * doc/posix-functions/scandir.texi: Renamed from
44048         doc/glibc-functions/scandir.texi.
44049         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44050         doc/glibc-functions/sched_get_priority_min.texi.
44051         * doc/posix-functions/signgam.texi: Renamed from
44052         doc/glibc-functions/signgam.texi.
44053         * doc/posix-functions/stpcpy.texi: Renamed from
44054         doc/glibc-functions/stpcpy.texi.
44055         * doc/posix-functions/stpncpy.texi: Renamed from
44056         doc/glibc-functions/stpncpy.texi.
44057         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44058         doc/glibc-functions/strcasecmp_l.texi.
44059         * doc/posix-functions/strcoll_l.texi: Renamed from
44060         doc/glibc-functions/strcoll_l.texi.
44061         * doc/posix-functions/strfmon_l.texi: Renamed from
44062         doc/glibc-functions/strfmon_l.texi.
44063         * doc/posix-functions/strftime_l.texi: Renamed from
44064         doc/glibc-functions/strftime_l.texi.
44065         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44066         doc/glibc-functions/strncasecmp_l.texi.
44067         * doc/posix-functions/strndup.texi: Renamed from
44068         doc/glibc-functions/strndup.texi.
44069         * doc/posix-functions/strnlen.texi: Renamed from
44070         doc/glibc-functions/strnlen.texi.
44071         * doc/posix-functions/strsignal.texi: Renamed from
44072         doc/glibc-functions/strsignal.texi.
44073         * doc/posix-functions/strxfrm_l.texi: Renamed from
44074         doc/glibc-functions/strxfrm_l.texi.
44075         * doc/posix-functions/timer_gettime.texi: Renamed from
44076         doc/glibc-functions/timer_gettime.texi.
44077         * doc/posix-functions/tolower_l.texi: Renamed from
44078         doc/glibc-functions/tolower_l.texi.
44079         * doc/posix-functions/toupper_l.texi: Renamed from
44080         doc/glibc-functions/toupper_l.texi.
44081         * doc/posix-functions/towctrans_l.texi: Renamed from
44082         doc/glibc-functions/towctrans_l.texi.
44083         * doc/posix-functions/towlower_l.texi: Renamed from
44084         doc/glibc-functions/towlower_l.texi.
44085         * doc/posix-functions/towupper_l.texi: Renamed from
44086         doc/glibc-functions/towupper_l.texi.
44087         * doc/posix-functions/uselocale.texi: Renamed from
44088         doc/glibc-functions/uselocale.texi.
44089         * doc/posix-functions/vdprintf.texi: Renamed from
44090         doc/glibc-functions/vdprintf.texi.
44091         * doc/posix-functions/wcpcpy.texi:
44092         Renamed from doc/glibc-functions/wcpcpy.texi.
44093         * doc/posix-functions/wcpncpy.texi: Renamed from
44094         doc/glibc-functions/wcpncpy.texi.
44095         * doc/posix-functions/wcscasecmp.texi: Renamed from
44096         doc/glibc-functions/wcscasecmp.texi.
44097         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44098         doc/glibc-functions/wcscasecmp_l.texi.
44099         * doc/posix-functions/wcscoll_l.texi: Renamed from
44100         doc/glibc-functions/wcscoll_l.texi.
44101         * doc/posix-functions/wcsdup.texi: Renamed from
44102         doc/glibc-functions/wcsdup.texi.
44103         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44104         doc/glibc-functions/wcsncasecmp.texi.
44105         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44106         doc/glibc-functions/wcsncasecmp_l.texi.
44107         * doc/posix-functions/wcsnlen.texi: Renamed from
44108         doc/glibc-functions/wcsnlen.texi.
44109         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44110         doc/glibc-functions/wcsnrtombs.texi.
44111         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44112         doc/glibc-functions/wcsxfrm_l.texi.
44113         * doc/posix-functions/wctrans_l.texi: Renamed from
44114         doc/glibc-functions/wctrans_l.texi.
44115         * doc/posix-functions/wctype_l.texi: Renamed from
44116         doc/glibc-functions/wctype_l.texi.
44117         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44118         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44119         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44120         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44121         these subsections.
44122         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44123         Remove sections.
44124
44125 2008-12-14  Bruno Haible  <bruno@clisp.org>
44126
44127         Update doc for POSIX:2008.
44128         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44129
44130 2008-12-14  Bruno Haible  <bruno@clisp.org>
44131
44132         Update doc for POSIX:2008.
44133         * doc/pastposix-functions/bcmp.texi: Renamed from
44134         doc/posix-functions/bcmp.texi.
44135         * doc/pastposix-functions/bcopy.texi: Renamed from
44136         doc/posix-functions/bcopy.texi.
44137         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44138         doc/posix-functions/bsd_signal.texi.
44139         * doc/pastposix-functions/bzero.texi: Renamed from
44140         doc/posix-functions/bzero.texi.
44141         * doc/pastposix-functions/ecvt.texi: Renamed from
44142         doc/posix-functions/ecvt.texi.
44143         * doc/pastposix-functions/fcvt.texi: Renamed from
44144         doc/posix-functions/fcvt.texi.
44145         * doc/pastposix-functions/ftime.texi: Renamed from
44146         doc/posix-functions/ftime.texi.
44147         * doc/pastposix-functions/gcvt.texi: Renamed from
44148         doc/posix-functions/gcvt.texi.
44149         * doc/pastposix-functions/getcontext.texi: Renamed from
44150         doc/posix-functions/getcontext.texi.
44151         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44152         doc/posix-functions/gethostbyaddr.texi.
44153         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44154         doc/posix-functions/gethostbyname.texi.
44155         * doc/pastposix-functions/getwd.texi: Renamed from
44156         doc/posix-functions/getwd.texi.
44157         * doc/pastposix-functions/h_errno.texi: Renamed from
44158         doc/posix-functions/h_errno.texi.
44159         * doc/pastposix-functions/index.texi: Renamed from
44160         doc/posix-functions/index.texi.
44161         * doc/pastposix-functions/makecontext.texi: Renamed from
44162         doc/posix-functions/makecontext.texi.
44163         * doc/pastposix-functions/mktemp.texi: Renamed from
44164         doc/posix-functions/mktemp.texi.
44165         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44166         doc/posix-functions/pthread_attr_getstackaddr.texi.
44167         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44168         doc/posix-functions/pthread_attr_setstackaddr.texi.
44169         * doc/pastposix-functions/rindex.texi: Renamed from
44170         doc/posix-functions/rindex.texi.
44171         * doc/pastposix-functions/scalb.texi: Renamed from
44172         doc/posix-functions/scalb.texi.
44173         * doc/pastposix-functions/setcontext.texi: Renamed from
44174         doc/posix-functions/setcontext.texi.
44175         * doc/pastposix-functions/swapcontext.texi: Renamed from
44176         doc/posix-functions/swapcontext.texi.
44177         * doc/pastposix-functions/ualarm.texi: Renamed from
44178         doc/posix-functions/ualarm.texi.
44179         * doc/pastposix-functions/usleep.texi: Renamed from
44180         doc/posix-functions/usleep.texi.
44181         * doc/pastposix-functions/vfork.texi: Renamed from
44182         doc/posix-functions/vfork.texi.
44183         * doc/pastposix-functions/wcswcs.texi: Renamed from
44184         doc/posix-functions/wcswcs.texi.
44185         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44186         (Function Substitutes): Update.
44187
44188 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44189
44190         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44191         m4/strerror.m4.
44192
44193 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44194             Bruno Haible  <bruno@clisp.org>
44195
44196         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44197
44198 2008-12-13  Bruno Haible  <bruno@clisp.org>
44199
44200         * modules/strtoull (Depends-on): Remove unistd.
44201
44202 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44203
44204         * modules/strtoull (Depends-on): Add stdlib.
44205
44206 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44207
44208         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44209
44210 2008-12-10  Jim Meyering  <meyering@redhat.com>
44211
44212         gl_ASSERT: don't say assertions are disabled when they're not
44213         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44214         "checking whether to enable assertions... no", when they are in
44215         fact enabled.  This is solely a bug in the output of configure.
44216         In spite of saying "no", NDEBUG was not defined in that case.
44217         Also, as noted by Eric Blake, leave assertions enabled upon
44218         --enable-assert=INVALID.
44219
44220 2008-12-10  Bruno Haible  <bruno@clisp.org>
44221
44222         Change MODULES.html to refer to POSIX:2008 where possible.
44223         * MODULES.html.sh (POSIX2008_URL): New variable.
44224         (posix_headers): Remove sys/timeb, ucontext.
44225         (posix2001_headers): New variable.
44226         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44227         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44228         index, makecontext, mktemp, pthread_attr_getstackaddr,
44229         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44230         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44231         (posix2001_functions): New variable.
44232         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44233         otherwise.
44234
44235 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44236
44237         add missing include to parse-duration.c
44238         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44239         * modules/parse-duration (Depends-on): Add xalloc.
44240
44241         fix sed script reading maint.mk
44242         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44243         (syntax-check-rules): Use it.
44244
44245 2008-12-09  Bruno Haible  <bruno@clisp.org>
44246
44247         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44248         MacOS X 10.4/PowerPC.
44249         Reported by Simon Josefsson.
44250
44251 2008-12-08  Jim Meyering  <meyering@redhat.com>
44252
44253         work around mingw's lack of some S_IF definitions
44254         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44255         Reported by Simon Josefsson.
44256
44257 2008-12-08  Bruno Haible  <bruno@clisp.org>
44258
44259         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44260         applied to variables. Needed on MacOS X 10.4/PowerPC.
44261         Reported by Simon Josefsson.
44262
44263 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44264         and Eric Blake  <ebb9@byu.net>
44265
44266         assert: honor --enable-assert
44267         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44268         order to honor --enable-assert, rather than treating it as a
44269         synonym for --disable-assert.
44270
44271 2008-12-08  Jim Meyering  <meyering@redhat.com>
44272
44273         * lib/posixtm.c: Remove now-useless declaration of mktime.
44274
44275         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44276
44277 2008-12-07  Bruno Haible  <bruno@clisp.org>
44278
44279         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44280         test_once): Mark functions as static.
44281         * tests/test-tls.c (test_tls): Likewise.
44282
44283 2008-12-07  Bruno Haible  <bruno@clisp.org>
44284
44285         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44286         iconv_register_autodetect.
44287
44288 2008-12-07  Jim Meyering  <meyering@redhat.com>
44289
44290         posixtm.c: avoid a warning
44291         * lib/posixtm.c (posixtime): Don't initialize tm0.
44292         It's no longer needed to placate gcc4's -Wuninitialized,
44293         and the attempt to placate would elicit a new warning.
44294
44295         unicodeio.c: mark unused parameters
44296         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44297         (fallback_failure_callback): Likewise.
44298
44299 2008-12-07  Bruno Haible  <bruno@clisp.org>
44300
44301         * gnulib-tool (func_create_testdir): When building the tests
44302         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44303         Reported by Simon Josefsson.
44304
44305 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44306
44307         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44308
44309 2008-12-06  Bruno Haible  <bruno@clisp.org>
44310
44311         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44312         Suggested by Eric Blake.
44313
44314 2008-12-06  Bruno Haible  <bruno@clisp.org>
44315
44316         Fix a c-stack test failure on MacOS X.
44317         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44318         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44319         handler for SIGBUS as well.
44320         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44321         install a signal handler for SIGBUS as well.
44322         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44323
44324 2008-12-06  Bruno Haible  <bruno@clisp.org>
44325
44326         Advocacy documentation.
44327         * doc/gnulib-intro.texi (Benefits): New section.
44328         * doc/gnulib.texi: Update.
44329
44330 2008-12-06  Bruno Haible  <bruno@clisp.org>
44331
44332         Document the 'manywarnings' module.
44333         * doc/manywarnings.texi: New file.
44334         * doc/gnulib.texi: Include it.
44335
44336 2008-12-05  Eric Blake  <ebb9@byu.net>
44337
44338         tests: silence some gcc warnings
44339         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44340         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44341         type mismatches.
44342
44343 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44344             Bruno Haible  <bruno@clisp.org>
44345
44346         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44347
44348 2008-11-29  Jim Meyering  <meyering@redhat.com>
44349
44350         unicodeio.c: mark unused parameters
44351         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44352         (fallback_failure_callback): Likewise.
44353
44354         fts: fix a thinko
44355         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44356         (set_stat_type): Return S_IF*-valued "type" directly.
44357         Prompted by James Youngman's spotting a related bug.
44358         Confirmed by further testing through find.
44359
44360         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44361         * lib/fts.c (D_TYPE): Define.
44362         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44363         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44364         (s_ifmt_shift_bits): New function.
44365         (set_stat_type): New function.
44366         (fts_build): When not calling fts_stat, call set_stat_type
44367         to propagate dirent.d_type info to fts_read caller.
44368         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44369         fts_statp->st_mode type information may be valid.
44370
44371 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44372
44373         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44374         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44375         <sds@gnu.org>.
44376
44377 2008-11-20  Bruno Haible  <bruno@clisp.org>
44378
44379         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44380         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44381         INCLUDE_NEXT.
44382         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44383         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44384         * modules/math (Makefile.am): Substitute
44385         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44386         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44387
44388 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44389             Bruno Haible  <bruno@clisp.org>
44390
44391         * lib/stdint.in.h: Define all type macros so that their expansion is
44392         a single typedef'ed token. Fixes a compilation failure in Boost which
44393         does "using ::int8_t;".
44394
44395 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44396
44397         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44398         gl_MANYWARN_ALL_GCC.
44399         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44400         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44401         * modules/manywarnings: New file.
44402         * MODULES.html.sh: Mention manywarnings module.
44403
44404 2008-11-18  Bruno Haible  <bruno@clisp.org>
44405
44406         * doc/gnulib-tool.texi (Unit tests): New section.
44407
44408 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44409
44410         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44411         paths like 'lib/po/foo.po'.
44412
44413 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44414
44415         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44416         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44417
44418 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44419
44420         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44421         parameter works.
44422
44423 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44424
44425         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44426
44427 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44428
44429         * modules/parse-duration-tests: New file.
44430         * tests/test-parse-duration.sh: New file.
44431         * tests/test-parse-duration.c: New file.
44432
44433         New module 'parse-duration'.
44434         * lib/parse-duration.h: New file.
44435         * lib/parse-duration.c: New file.
44436         * modules/parse-duration: New file.
44437
44438 2008-11-17  Bruno Haible  <bruno@clisp.org>
44439
44440         * tests/test-select-out.sh: Comment out the first pipe test.
44441         Reported by Simon Josefsson.
44442
44443 2008-11-17  Bruno Haible  <bruno@clisp.org>
44444
44445         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44446         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44447         gl_HOSTENT.
44448
44449 2008-11-17  Bruno Haible  <bruno@clisp.org>
44450
44451         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44452         -lnetwork and -lnet. Needed for Haiku and BeOS.
44453
44454 2008-11-16  Bruno Haible  <bruno@clisp.org>
44455
44456         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44457
44458 2008-11-16  Bruno Haible  <bruno@clisp.org>
44459
44460         Avoid test failure on Haiku.
44461         * tests/test-fsync.c: Include <errno.h>.
44462         (main): Don't require that fsync (0) fails.
44463
44464 2008-11-15  Bruno Haible  <bruno@clisp.org>
44465
44466         New module 'hostent'.
44467         * modules/hostent: New file.
44468         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44469
44470 2008-11-15  Bruno Haible  <bruno@clisp.org>
44471
44472         New module 'servent'.
44473         * modules/servent: New file.
44474         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44475
44476 2008-11-15  Bruno Haible  <bruno@clisp.org>
44477
44478         Avoid generating same test program with two different rules.
44479         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44480         test-frexp to test-frexp-nolibm.
44481         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44482         test-frexpl to test-frexpl-nolibm.
44483
44484 2008-11-15  Bruno Haible  <bruno@clisp.org>
44485
44486         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44487         $(FREXPL_LIBM).
44488
44489 2008-11-15  Bruno Haible  <bruno@clisp.org>
44490
44491         * lib/netdb.in.h: Activate the definitions also when the system's
44492         <netdb.h> has 'struct addrinfo'.
44493         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44494         EAI_OVERFLOW or AI_NUMERICSERV.
44495         * doc/posix-headers/netdb.texi: Document the problem.
44496
44497 2008-11-15  Bruno Haible  <bruno@clisp.org>
44498
44499         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44500
44501         Make the 'sched' module work on platforms where <sched.h> exists but
44502         is incomplete (such as Haiku).
44503         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44504         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44505         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44506         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44507         HAVE_STRUCT_SCHED_PARAM.
44508         * modules/sched (Depends-on): Add include_next.
44509         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44510         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44511         * doc/posix-headers/sched.texi: Document the issue.
44512
44513 2008-11-13  Jim Meyering  <meyering@redhat.com>
44514
44515         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44516         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44517         test would fail due to the difference in the Report bugs to ...
44518         line.  The expected address is empty, "<>", while the actual
44519         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44520
44521 2008-11-12  Bruno Haible  <bruno@clisp.org>
44522
44523         lstat: don't compile lstat.c on systems lacking lstat
44524         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44525         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44526         Reported by Daniel P. Berrange via Jim Meyering.
44527
44528 2008-11-12  Jim Meyering  <meyering@redhat.com>
44529
44530         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44531
44532 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44533
44534         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44535         instead.
44536
44537 2008-11-12  Bruno Haible  <bruno@clisp.org>
44538
44539         * lib/unicodeio.c: Include unistr.h.
44540         (utf8_wctomb): Remove function.
44541         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44542
44543 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44544
44545         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44546         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44547         <bruno@clisp.org>.
44548         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44549
44550 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44551
44552         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44553         * doc/gnulib.texi: Add section for warnings.
44554
44555 2008-11-11  Bruno Haible  <bruno@clisp.org>
44556
44557         * lib/sockets.h: Add a comment.
44558
44559 2008-11-11  Karl Berry  <karl@gnu.org>
44560
44561         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44562
44563 2008-11-11  Eric Blake  <ebb9@byu.net>
44564
44565         fdl.texi: avoid git symlinks
44566         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44567
44568 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44569
44570         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44571
44572 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44573
44574         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44575         (gl_WARN_ADD): Substitute $2 if literal.
44576
44577 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44578
44579         * m4/warning.m4: Remove.
44580
44581 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44582
44583         * m4/warnings.m4: Almost complete rewrite. :-)
44584
44585 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44586
44587         * modules/warnings: New module.
44588         * m4/warnings.m4: New file.
44589         * MODULES.html.sh: Mention warnings module.
44590         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44591         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44592
44593 2008-11-10  Eric Blake  <ebb9@byu.net>
44594
44595         fdl.texi: make a symlink to the latest version
44596         * doc/standards.texi: Revert today's earlier change.
44597         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44598         * doc/fdl.texi: ...and replace this with a symlink to the newer
44599         fdl-1.3.texi.
44600
44601 2008-11-10  Bruno Haible  <bruno@clisp.org>
44602
44603         * tests/test-select-fd.c (main): Accept the result file name as fourth
44604         argument.
44605         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44606         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44607
44608 2008-11-10  Bruno Haible  <bruno@clisp.org>
44609
44610         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44611         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44612         as autoconf-substituted macros.
44613         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44614         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44615         gl_NETDB_H_DEFAULTS. Set these variables.
44616         * modules/netdb (Makefile.am): Substitute these variables.
44617
44618 2008-11-10  Eric Blake  <ebb9@byu.net>
44619
44620         standards.texi: include correct file for FDL 1.3
44621         * doc/standards.texi (GNU Free Documentation License): Change
44622         include file to pull in FDL 1.3, not 1.2.
44623
44624         fdl.texi: revert accidental change to license
44625         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44626
44627 2008-11-10  Bruno Haible  <bruno@clisp.org>
44628
44629         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44630         cross-compiling guesses also when the native compile gives no result.
44631
44632 2008-11-10  Bruno Haible  <bruno@clisp.org>
44633
44634         * lib/spawni.c (__spawni): Force variable into the stack.
44635
44636 2008-11-10  Bruno Haible  <bruno@clisp.org>
44637
44638         Add support for Haiku.
44639         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44640         glibc and BeOS, but also on Haiku.
44641         * lib/fpurge.c (fpurge): Likewise.
44642         * lib/freadable.c (freadable): Likewise.
44643         * lib/freadahead.c (freadahead): Likewise.
44644         * lib/freading.c (freading): Likewise.
44645         * lib/freadptr.c (freadptr): Likewise.
44646         * lib/freadseek.c (freadptrinc): Likewise.
44647         * lib/fseeko.c (rpl_fseeko): Likewise.
44648         * lib/fseterr.c (fseterr): Likewise.
44649         * lib/fwritable.c (fwritable): Likewise.
44650         * lib/fwriting.c (fwriting): Likewise.
44651         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44652
44653 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44654
44655         * lib/config.charset: Treat Haiku like BeOS.
44656
44657 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44658
44659         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44660         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44661
44662 2008-11-08  Bruno Haible  <bruno@clisp.org>
44663
44664         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44665         AC_CACHE_CHECK.
44666
44667 2008-11-08  Bruno Haible  <bruno@clisp.org>
44668
44669         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44670
44671 2008-11-08  Bruno Haible  <bruno@clisp.org>
44672
44673         * tests/test-select-fd.c: New file.
44674         * tests/test-select-in.sh: New file.
44675         * tests/test-select-out.sh: New file.
44676         * tests/test-select-stdin.c: New file.
44677         * modules/select-tests (Files): Add the new files.
44678         (Depends-on): Add gettimeofday.
44679         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44680         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44681         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44682
44683 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44684             Bruno Haible  <bruno@clisp.org>
44685
44686         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44687
44688 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44689
44690         * build-aux/pmccabe2html: Added support for C++ source files.
44691
44692 2008-11-05  Ben Pfaff  <blp@gnu.org>
44693
44694         Fix lib/close.c build on Windows.
44695         * modules/close (Files): Add lib/w32sock.h.
44696
44697 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44698
44699         Accept Bison's NEWS format.
44700         * build-aux/announce-gen (print_news_deltas): Tweak
44701         $re_prefix.
44702
44703 2008-11-04  Bruno Haible  <bruno@clisp.org>
44704
44705         * modules/random_r (Maintainer): Add glibc.
44706
44707 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44708
44709         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44710         by karl@freefriends.org (Karl Berry).
44711         * doc/alloca.texi: Likewise.
44712         * doc/c-ctype.texi: Likewise.
44713         * doc/c-strcase.texi: Likewise.
44714         * doc/c-strcaseeq.texi: Likewise.
44715         * doc/c-strcasestr.texi: Likewise.
44716         * doc/c-strstr.texi: Likewise.
44717         * doc/c-strtod.texi: Likewise.
44718         * doc/c-strtold.texi: Likewise.
44719         * doc/ctime.texi: Likewise.
44720         * doc/error.texi: Likewise.
44721         * doc/fdl.texi: Likewise.
44722         * doc/gcd.texi: Likewise.
44723         * doc/getdate.texi: Likewise.
44724         * doc/gnulib-intro.texi: Likewise.
44725         * doc/gnulib-tool.texi: Likewise.
44726         * doc/gnulib.texi: Likewise.
44727         * doc/inet_ntoa.texi: Likewise.
44728         * doc/maintain.texi: Likewise.
44729         * doc/make-stds.texi: Likewise.
44730         * doc/quote.texi: Likewise.
44731         * doc/regexprops-generic.texi: Likewise.
44732         * doc/standards.texi: Likewise.
44733         * doc/verify.texi: Likewise.
44734         * doc/visibility.texi: Likewise.
44735         * doc/gnulib.texi (GNU Free Documentation License): Include
44736         fdl-1.3.texi instead of fdl.texi.
44737
44738 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44739
44740         * doc/fdl-1.3.texi: New file, from
44741         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44742         * modules/fdl-1.3: Add.
44743         * MODULES.html.sh: Add fdl-1.3.
44744
44745 2008-11-03  Bruno Haible  <bruno@clisp.org>
44746
44747         Make determination of absolute name of header file work with AIX xlc.
44748         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44749         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44750         preprocessing.
44751         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44752         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44753
44754 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44755
44756         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44757         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44758         <ludo@gnu.org>.
44759
44760 2008-11-02  Bruno Haible  <bruno@clisp.org>
44761
44762         Mark 'strpbrk' obsolete.
44763         * modules/strpbrk (Status, Notice): New sections.
44764         * modules/strtok_r (Depends-on): Add strpbrk.
44765
44766 2008-11-02  Bruno Haible  <bruno@clisp.org>
44767
44768         Mark 'strdup' obsolete.
44769         * modules/strdup (Status, Notice): New sections.
44770         * modules/findprog (Depends-on): Add strdup.
44771         * modules/getaddrinfo (Depends-on): Likewise.
44772         * modules/localename (Depends-on): Likewise.
44773         * modules/relocatable-lib (Depends-on): Likewise.
44774         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44775         * modules/relocatable-prog (Depends-on): Likewise.
44776         * modules/trim (Depends-on): Likewise.
44777         * modules/unictype/gen-ctype (Depends-on): Likewise.
44778         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44779
44780 2008-11-02  Bruno Haible  <bruno@clisp.org>
44781
44782         Mark 'strcspn' obsolete.
44783         * modules/strcspn (Status, Notice): New sections.
44784
44785 2008-11-02  Bruno Haible  <bruno@clisp.org>
44786
44787         Mark 'rmdir' obsolete.
44788         * modules/rmdir (Status, Notice): New sections.
44789         * modules/clean-temp (Depends-on): Add rmdir.
44790         * modules/openat (Depends-on): Likewise.
44791
44792 2008-11-02  Bruno Haible  <bruno@clisp.org>
44793
44794         Mark 'raise' obsolete.
44795         * modules/raise (Status, Notice): New sections.
44796         (Include): Specify <signal.h>.
44797         * modules/stdio (Depends-on): Add raise.
44798         * modules/write (Depends-on): Likewise.
44799
44800 2008-11-02  Bruno Haible  <bruno@clisp.org>
44801
44802         Mark 'memset' obsolete.
44803         * modules/memset (Status, Notice): New sections.
44804
44805 2008-11-02  Bruno Haible  <bruno@clisp.org>
44806
44807         Mark 'memmove' obsolete.
44808         * modules/memmove (Status, Notice): New sections.
44809         * modules/argp (Depends-on): Add memmove.
44810         * modules/argz (Depends-on): Likewise.
44811         * modules/canonicalize (Depends-on): Likewise.
44812         * modules/canonicalize-lgpl (Depends-on): Likewise.
44813         * modules/fts (Depends-on): Likewise.
44814         * modules/getcwd (Depends-on): Likewise.
44815         * modules/human (Depends-on): Likewise.
44816         * modules/regex (Depends-on): Likewise.
44817         * modules/striconveh (Depends-on): Likewise.
44818         * modules/trim (Depends-on): Likewise.
44819         * modules/unistr/u8-move (Depends-on): Likewise.
44820         * modules/unistr/u16-move (Depends-on): Likewise.
44821         * modules/unistr/u32-move (Depends-on): Likewise.
44822
44823 2008-11-02  Bruno Haible  <bruno@clisp.org>
44824
44825         Mark 'memcpy' obsolete.
44826         * modules/memcpy (Status, Notice): New sections.
44827
44828 2008-11-02  Bruno Haible  <bruno@clisp.org>
44829
44830         Mark 'memcmp' obsolete.
44831         * modules/memcmp (Status, Notice): New sections.
44832         * modules/argmatch (Depends-on): Add memchr.
44833         * modules/backupfile (Depends-on): Likewise.
44834         * modules/c-strcasestr (Depends-on): Likewise.
44835         * modules/crypto/des (Depends-on): Likewise.
44836         * modules/csharpcomp (Depends-on): Likewise.
44837         * modules/fnmatch (Depends-on): Likewise.
44838         * modules/git-merge-changelog (Depends-on): Likewise.
44839         * modules/isnand (Depends-on): Likewise.
44840         * modules/isnand-nolibm (Depends-on): Likewise.
44841         * modules/isnanf (Depends-on): Likewise.
44842         * modules/isnanf-nolibm (Depends-on): Likewise.
44843         * modules/isnanl (Depends-on): Likewise.
44844         * modules/isnanl-nolibm (Depends-on): Likewise.
44845         * modules/mbchar (Depends-on): Likewise.
44846         * modules/memcoll (Depends-on): Likewise.
44847         * modules/quotearg (Depends-on): Likewise.
44848         * modules/regex (Depends-on): Likewise.
44849         * modules/relocatable-prog (Depends-on): Likewise.
44850         * modules/same (Depends-on): Likewise.
44851         * modules/signbit (Depends-on): Likewise.
44852         * modules/strcasestr-simple (Depends-on): Likewise.
44853         * modules/unictype/gen-ctype (Depends-on): Likewise.
44854         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44855         * modules/uniname/uniname (Depends-on): Likewise.
44856         * modules/unistr/u8-cmp (Depends-on): Likewise.
44857
44858 2008-11-02  Bruno Haible  <bruno@clisp.org>
44859
44860         Mark 'memchr' obsolete.
44861         * modules/memchr (Status, Notice): New sections.
44862         * modules/argp (Depends-on): Add memchr.
44863         * modules/base64 (Depends-on): Likewise.
44864         * modules/c-strcasestr (Depends-on): Likewise.
44865         * modules/chdir-long (Depends-on): Likewise.
44866         * modules/fnmatch (Depends-on): Likewise.
44867         * modules/getsubopt (Depends-on): Likewise.
44868         * modules/git-merge-changelog (Depends-on): Likewise.
44869         * modules/glob (Depends-on): Likewise.
44870         * modules/strcasestr-simple (Depends-on): Likewise.
44871         * modules/strnlen (Depends-on): Likewise.
44872
44873 2008-11-02  Bruno Haible  <bruno@clisp.org>
44874
44875         Mark 'atexit' obsolete.
44876         * modules/atexit (Status, Notice): New sections.
44877         * modules/chdir-long (Depends-on): Add atexit.
44878         * modules/wait-process (Depends-on): Likewise.
44879
44880 2008-11-02  Bruno Haible  <bruno@clisp.org>
44881
44882         * gnulib-tool: New option --with-obsolete.
44883         (func_usage): Document it.
44884         (func_modules_transitive_closure): Drop obsolete dependencies if
44885         incobsolete is not true.
44886         (func_import): Read and save the incobsolete variable to the cache.
44887
44888 2008-11-02  Bruno Haible  <bruno@clisp.org>
44889
44890         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44891         * gnulib-tool: New option --extract-status.
44892         (func_usage): Document it.
44893         (sed_extract_prog): Recognize it.
44894         (func_get_status): New function.
44895
44896 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44897
44898         * modules/sockets (License): Change from LGPL to LGPLv2+.
44899
44900 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44901
44902         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44903
44904 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44905
44906         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44907         Mention times and sys_times.
44908         * modules/sys_times, modules/sys_times-tests: New modules.
44909         * modules/times, modules/times-tests: Likewise
44910         * m4/sys_times_h.m4: New file.
44911         * lib/sys_times.in.h: Likewise
44912         * lib/times.c: Likewise.
44913         * tests/test-sys_times.c: Likewise.
44914         * tests/test-times.c: Likewise.
44915         * doc/posix-headers/sys_times.texi: Update.
44916         * doc/posix-functions/times.texi: Update.
44917
44918 2008-10-28  Jim Meyering  <meyering@redhat.com>
44919
44920         * modules/tempname (Depends-on): Add lstat.
44921
44922         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44923
44924 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44925
44926         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44927         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44928         using idiom used elsewhere in gnulib.
44929
44930 2008-10-27  Jim Meyering  <meyering@redhat.com>
44931
44932         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44933
44934 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44935
44936         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44937         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44938         programs.
44939         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44940
44941 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44942
44943         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44944
44945 2008-10-27  Bruno Haible  <bruno@clisp.org>
44946
44947         * tests/test-lstat.c: Include <stdio.h>.
44948
44949 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44950
44951         * modules/lstat-tests: New module.
44952         * tests/test-lstat.c: New file.
44953
44954 2008-10-26  Jim Meyering  <meyering@redhat.com>
44955
44956         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44957
44958 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44959             Bruno Haible  <bruno@clisp.org>
44960
44961         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44962         * modules/configmake (Include): Add a note that the include must come
44963         after all system headers.
44964         * lib/javaversion.c: Include configmake.h after all other includes.
44965
44966 2008-10-26  Bruno Haible  <bruno@clisp.org>
44967
44968         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44969         HAVE_STRUCT_RANDOM_DATA to 1.
44970         (gl_STDLIB_H): Simplify.
44971
44972 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44973
44974         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44975         substitute HAVE_STRUCT_RANDOM_DATA.
44976         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44977         random_data.
44978         * modules/stdlib (Makefile.am): Substitute
44979         HAVE_STRUCT_RANDOM_DATA.
44980
44981 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44982
44983         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44984         * doc/gnulib-intro.texi (Copyright): Likewise.
44985
44986 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44987
44988         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44989         findings.
44990
44991 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44992             Bruno Haible  <bruno@clisp.org>
44993
44994         * lib/unistd.in.h: Include <winsock2.h>.
44995         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44996         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44997         Provide dummy declarations.
44998         (gethostname): Override.
44999         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45000         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45001         gl_PREREQ_SYS_H_WINSOCK2.
45002         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45003         * doc/posix-functions/gethostname.texi: More details.
45004
45005 2008-10-25  Bruno Haible  <bruno@clisp.org>
45006
45007         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45008         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45009         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45010
45011         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45012         here ...
45013         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45014         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45015         gl_UNISTD_H_DEFAULTS.
45016
45017 2008-10-25  Eric Blake  <ebb9@byu.net>
45018
45019         signbit: avoid spurious compiler failure
45020         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45021         declarations inside function.
45022
45023 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45024             Bruno Haible  <bruno@clisp.org>
45025
45026         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45027         * modules/random_r (Depends-on): Add stdint.
45028
45029 2008-10-24  Bruno Haible  <bruno@clisp.org>
45030
45031         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45032         Eggert.
45033         * modules/strerror (License): Likewise.
45034
45035 2008-10-24  Jim Meyering  <meyering@redhat.com>
45036
45037         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45038         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45039
45040 2008-10-24  Eric Blake  <ebb9@byu.net>
45041
45042         getgroups: fix compilation when getgroups is available
45043         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45044         but with <config.h> override of getgroups disabled.
45045
45046 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45047
45048         * doc/gnulib.texi (Header files): Add note about C++ problems.
45049         Explained by Bruno Haible <bruno@clisp.org>.
45050
45051 2008-10-23  Bruno Haible  <bruno@clisp.org>
45052
45053         Define a dummy SA_NODEFER macro on Interix.
45054         * lib/signal.in.h (SA_NODEFER): Define fallback.
45055         Reported by Aleksey Cheusov <cheusov@tut.by> via
45056         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45057
45058 2008-10-23  Bruno Haible  <bruno@clisp.org>
45059
45060         * modules/freadahead (License): Change to LGPLv2+.
45061         Suggested by Simon Josefsson.
45062
45063 2008-10-23  Jim Meyering  <meyering@redhat.com>
45064
45065         random_r: new module
45066         * modules/random_r: New file.
45067         * m4/random_r.m4: New file.
45068         * lib/random_r.c: New file, from glibc.
45069         * modules/random_r-tests: New file.
45070         * tests/test-random_r.c: New file.
45071         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45072          Declare.
45073         (RAND_MAX): Define.
45074         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45075         * modules/stdlib: Substitute them, too.
45076         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45077         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45078         * doc/glibc-functions/random_r.texi: Likewise.
45079         * doc/glibc-functions/setstate_r.texi: Likewise.
45080         * doc/glibc-functions/srandom_r.texi: Likewise.
45081         * config/srclist.txt: Mention it.
45082
45083 2008-10-23  David Lutterkort  <lutter@redhat.com>
45084
45085         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45086         link requirement
45087
45088 2008-10-23  Jim Meyering  <meyering@redhat.com>
45089
45090         selinux-h: mark parameters of stub functions as intentionally unused
45091         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45092         * lib/se-context.in.h: Likewise.
45093
45094 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45095
45096         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45097
45098 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45099
45100         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45101
45102 2008-10-22  Eric Blake  <ebb9@byu.net>
45103
45104         glthread/thread: avoid compiler warning
45105         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45106         Add unreachable abort to silence compiler.
45107
45108 2008-10-22  Eric Blake  <ebb9@byu.net>
45109
45110         netdb: also supply struct addrinfo for cygwin 1.5.x
45111         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45112         older cygwin.
45113         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45114         cygwin.
45115         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45116
45117 2008-10-22  Bruno Haible  <bruno@clisp.org>
45118
45119         * users.txt: Update entry about pspp.
45120
45121 2008-10-21  Bruno Haible  <bruno@clisp.org>
45122
45123         Simplification.
45124         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45125         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45126
45127         Simplification.
45128         * lib/ioctl.c (ioctl): Don't undefine.
45129         * lib/socket.c (socket): Don't undefine.
45130
45131         Remove unused module indicator macros.
45132         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45133         GNULIB_$1 as a C macro.
45134
45135         * doc/posix-functions/close.texi: Undo last change.
45136         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45137         Windows platforms.
45138
45139 2008-10-21  Bruno Haible  <bruno@clisp.org>
45140
45141         Add gethostname() declaration to <unistd.h>.
45142         * lib/unistd.in.h (gethostname): New declaration.
45143         * lib/gethostname.c: Include <unistd.h>.
45144         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45145         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45147         and HAVE_GETHOSTNAME.
45148         * modules/gethostname (Depends-on): Add unistd.
45149         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45150         (Include): Specify <unistd.h>.
45151         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45152         HAVE_GETHOSTNAME.
45153         * tests/test-gethostname.c: Include <unistd.h> first.
45154
45155 2008-10-21  Bruno Haible  <bruno@clisp.org>
45156
45157         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45158         * modules/select-tests (Depends-on): Likewise.
45159         Reported by Simon Josefsson.
45160
45161 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45162
45163         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45164         * lib/accept.c: New file, based on winsock.c.
45165         * lib/bind.c: New file, based on winsock.c.
45166         * lib/connect.c: New file, based on winsock.c.
45167         * lib/getpeername.c: New file, based on winsock.c.
45168         * lib/getsockname.c: New file, based on winsock.c.
45169         * lib/getsockopt.c: New file, based on winsock.c.
45170         * lib/ioctl.c: New file, based on winsock.c.
45171         * lib/listen.c: New file, based on winsock.c.
45172         * lib/recv.c: New file, based on winsock.c.
45173         * lib/recvfrom.c: New file, based on winsock.c.
45174         * lib/send.c: New file, based on winsock.c.
45175         * lib/sendto.c: New file, based on winsock.c.
45176         * lib/setsockopt.c: New file, based on winsock.c.
45177         * lib/shutdown.c: New file, based on winsock.c.
45178         * lib/socket.c: New file, based on winsock.c.
45179         * lib/w32sock.h: New file, based on winsock.c.
45180         * lib/winsock.c: Remove file.
45181         * modules/accept: Likewise.
45182         * modules/bind: Likewise.
45183         * modules/connect: Likewise.
45184         * modules/getpeername: Likewise.
45185         * modules/getsockname: Likewise.
45186         * modules/getsockopt: Likewise.
45187         * modules/ioctl: Likewise.
45188         * modules/listen: Likewise.
45189         * modules/recv: Likewise.
45190         * modules/recvfrom: Likewise.
45191         * modules/send: Likewise.
45192         * modules/sendto: Likewise.
45193         * modules/setsockopt: Likewise.
45194         * modules/shutdown: Likewise.
45195         * modules/socket: Use socket.c instead of winsock.c.
45196         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45197         * doc/posix-functions/accept.texi: Doc fix.
45198         * doc/posix-functions/bind.texi: Doc fix.
45199         * doc/posix-functions/close.texi: Doc fix.
45200         * doc/posix-functions/connect.texi: Doc fix.
45201         * doc/posix-functions/getpeername.texi: Doc fix.
45202         * doc/posix-functions/getsockname.texi: Doc fix.
45203         * doc/posix-functions/getsockopt.texi: Doc fix.
45204         * doc/posix-functions/ioctl.texi: Doc fix.
45205         * doc/posix-functions/listen.texi: Doc fix.
45206         * doc/posix-functions/recv.texi: Doc fix.
45207         * doc/posix-functions/recvfrom.texi: Doc fix.
45208         * doc/posix-functions/send.texi: Doc fix.
45209         * doc/posix-functions/sendto.texi: Doc fix.
45210         * doc/posix-functions/setsockopt.texi: Doc fix.
45211         * doc/posix-functions/shutdown.texi: Doc fix.
45212         * doc/posix-functions/socket.texi: Doc fix.
45213
45214 2008-10-20  Bruno Haible  <bruno@clisp.org>
45215
45216         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45217         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45218         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45219         as an alias for SIGABRT.
45220         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45221         (sigaction): Map it to SIGABRT.
45222         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45223
45224 2008-10-20  Bruno Haible  <bruno@clisp.org>
45225
45226         * lib/fts.c: Don't include lstat.h.
45227         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45228
45229         Move the lstat() declaration to <sys/stat.h>.
45230         * lib/lstat.h: Remove file.
45231         * lib/sys_stat.in.h: Add special invocation convention.
45232         (lstat): New declaration.
45233         * lib/lstat.c (orig_lstat): New function.
45234         (rpl_lstat): Use orig_lstat instead of lstat.
45235         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45236         AC_C_INLINE. Set REPLACE_LSTAT.
45237         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45238         and REPLACE_LSTAT.
45239         * modules/lstat (Files): Remove lib/lstat.h.
45240         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45241         (Include): Specify <sys/stat.h> instead of lstat.h.
45242         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45243         REPLACE_LSTAT.
45244         * NEWS: Mention the change.
45245
45246 2008-10-20  Bruno Haible  <bruno@clisp.org>
45247
45248         * modules/posix_spawn-tests: New file.
45249         * tests/test-posix_spawn3.c: New file.
45250
45251 2008-10-20  Bruno Haible  <bruno@clisp.org>
45252
45253         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45254         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45255         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45256         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45257         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45258
45259 2008-10-20  Bruno Haible  <bruno@clisp.org>
45260
45261         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45262         of posix_spawn on AIX 5.3.
45263
45264 2008-10-20  Bruno Haible  <bruno@clisp.org>
45265
45266         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45267
45268 2008-10-20  Bruno Haible  <bruno@clisp.org>
45269
45270         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45271         of AC_LANG_PROGRAM.
45272
45273 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45274
45275         * lib/netdb.in.h: Don't define GNU specific constants until they
45276         are supported or needed.  Reported by Bruno Haible
45277         <bruno@clisp.org>.
45278
45279 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45280
45281         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45282
45283 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45284
45285         * lib/getaddrinfo.h: Remove file.
45286         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45287         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45288         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45289         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45290         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45291         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45292         * tests/test-getaddrinfo.c: Likewise.
45293         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45294         * NEWS: Mention change.
45295
45296 2008-10-19  Bruno Haible  <bruno@clisp.org>
45297
45298         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45299
45300 2008-10-19  Bruno Haible  <bruno@clisp.org>
45301
45302         * lib/wait-process.c: Include simply <sys/wait.h>.
45303         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45304         WIFSTOPPED): Remove fallback definitions.
45305         * modules/wait-process (Depends-on): Add sys_wait.
45306
45307         New module 'sys_wait'.
45308         * modules/sys_wait: New file.
45309         * lib/sys_wait.in.h: New file, partially copied from
45310         lib/wait-process.c.
45311         * m4/sys_wait_h.m4: New file.
45312         * doc/posix-headers/sys_wait.texi: Mention the new module.
45313
45314 2008-10-19  Bruno Haible  <bruno@clisp.org>
45315
45316         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45317
45318 2008-10-19  Bruno Haible  <bruno@clisp.org>
45319
45320         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45321         * lib/wait-process.c (WAIT_T): Remove type.
45322         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45323         (wait_subprocess): Update.
45324
45325 2008-10-19  Bruno Haible  <bruno@clisp.org>
45326
45327         New module 'atoll'.
45328         * modules/atoll: New file.
45329         * lib/stdlib.in.h (atoll): New declaration.
45330         * lib/atoll.c: New file, from glibc with modifications.
45331         * m4/atoll.m4: New file.
45332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45333         HAVE_ATOLL.
45334         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45335         * doc/posix-functions/atoll.texi: Mention the new module.
45336
45337 2008-10-19  Bruno Haible  <bruno@clisp.org>
45338
45339         Add strtoull() declaration to <stdlib.h>.
45340         * lib/stdlib.in.h (strtoull): New declaration.
45341         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45342         Set HAVE_STRTOULL.
45343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45344         HAVE_STRTOULL.
45345         * modules/strtoull (Depends-on): Add stdlib.
45346         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45347         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45348         HAVE_STRTOULL.
45349
45350 2008-10-19  Bruno Haible  <bruno@clisp.org>
45351
45352         Add strtoll() declaration to <stdlib.h>.
45353         * lib/stdlib.in.h (strtoll): New declaration.
45354         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45355         Set HAVE_STRTOLL.
45356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45357         HAVE_STRTOLL.
45358         * modules/strtoll (Depends-on): Add stdlib.
45359         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45360         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45361
45362 2008-10-19  Bruno Haible  <bruno@clisp.org>
45363
45364         * modules/bcopy (Depends-on): Add strings.
45365         (Include): Specify <strings.h>.
45366
45367 2008-10-19  Bruno Haible  <bruno@clisp.org>
45368
45369         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45370
45371 2008-10-19  Bruno Haible  <bruno@clisp.org>
45372
45373         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45374         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45375         mingw.
45376
45377 2008-10-19  Bruno Haible  <bruno@clisp.org>
45378
45379         * lib/atanl.c: Don't include isnanl.h.
45380         * lib/cosl.c: Likewise.
45381         * lib/ldexpl.c: Likewise.
45382         * lib/logl.c: Likewise.
45383         * lib/sinl.c: Likewise.
45384         * lib/sqrtl.c: Likewise.
45385         * lib/tanl.c: Likewise.
45386
45387         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45388         * lib/isnanf.h: Remove file.
45389         * lib/isnand.h: Remove file.
45390         * lib/isnanl.h: Remove file.
45391         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45392         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45393         macros.
45394         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45395         HAVE_ISNANF, don't define it as a C macro.
45396         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45397         HAVE_ISNAND, don't define it as a C macro.
45398         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45399         HAVE_ISNANL, don't define it as a C macro.
45400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45401         HAVE_ISNAN[FDL].
45402         * modules/isnanf (Files): Remove lib/isnanf.h.
45403         (Depends-on): Add math.
45404         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45405         (Include): Specify <math.h> instead of isnanf.h.
45406         * modules/isnand (Files): Remove lib/isnand.h.
45407         (Depends-on): Add math.
45408         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45409         (Include): Specify <math.h> instead of isnand.h.
45410         * modules/isnanl (Files): Remove lib/isnanl.h.
45411         (Depends-on): Add math.
45412         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45413         (Include): Specify <math.h> instead of isnanl.h.
45414         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45415         HAVE_ISNAN[FDL].
45416         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45417         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45418         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45419         * NEWS: Mention the change.
45420
45421 2008-10-18  Bruno Haible  <bruno@clisp.org>
45422
45423         Add getusershell(), setusershell(), endusershell() declarations to
45424         <unistd.h>.
45425         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45426         declarations.
45427         * lib/getusershell.c: Include unistd.h.
45428         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45429         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45430         HAVE_GETUSERSHELL.
45431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45432         and HAVE_GETUSERSHELL.
45433         * modules/getusershell (Depends-on): Add unistd, extensions.
45434         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45435         (Include): Specify <unistd.h>.
45436         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45437         HAVE_GETUSERSHELL.
45438
45439 2008-10-18  Bruno Haible  <bruno@clisp.org>
45440
45441         Add a getloadavg() declaration to <stdlib.h>.
45442         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45443         getloadavg declaration.
45444         (getloadavg): New declaration.
45445         * lib/getloadavg.c: Include <stdlib.h> first.
45446         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45447         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45448         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45450         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45451         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45452         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45453         (Include): Specify <stdlib.h>.
45454         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45455         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45456
45457 2008-10-18  Bruno Haible  <bruno@clisp.org>
45458
45459         * lib/dirchownmod.c: Don't include lchmod.h.
45460
45461         Move the lchmod() declaration to <sys/stat.h>.
45462         * lib/lchmod.h: Remove file.
45463         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45464         (lchmod): New declaration, moved here from lib/lchown.h.
45465         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45466         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45467         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45468         and HAVE_LCHMOD.
45469         * modules/lchmod (Files): Remove lib/lchmod.h.
45470         (Depends-on): Add sys_stat, extensions.
45471         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45472         (Include): Specify <sys/stat.h> instead of lchmod.h.
45473         * modules/sys_stat (Depends-on): Add link-warning.
45474         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45475         definition of GL_LINK_WARNING.
45476         * NEWS: Mention the change.
45477
45478 2008-10-18  Bruno Haible  <bruno@clisp.org>
45479
45480         * lib/fchdir.c: Don't include dirfd.h.
45481         * lib/fts.c: Likewise.
45482         * lib/getcwd.c: Likewise.
45483         * lib/glob.c: Likewise.
45484
45485         Move the dirfd() declaration to <dirent.h>.
45486         * lib/dirfd.h: Remove file.
45487         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45488         (dirfd): New declaration.
45489         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45490         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45491         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45492         HAVE_DECL_DIRFD.
45493         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45494         HAVE_DECL_DIRFD.
45495         * modules/dirfd (Files): Remove lib/dirfd.h.
45496         (Depends-on): Add dirent, extensions.
45497         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45498         (Include): Specify <dirent.h> instead of dirfd.h.
45499         * modules/dirent (Depends-on): Add link-warning.
45500         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45501         definition of GL_LINK_WARNING.
45502         * NEWS: Mention the change.
45503
45504 2008-10-18  Bruno Haible  <bruno@clisp.org>
45505
45506         Move the euidaccess() declaration to <unistd.h>.
45507         * lib/euidaccess.h: Remove file.
45508         * lib/unistd.in.h (euidaccess): New declaration.
45509         * lib/euidaccess.c: Don't include euidaccess.h.
45510         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45511         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45513         and HAVE_EUIDACCESS.
45514         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45515         (Depends-on): Add unistd.
45516         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45517         (Include): Specify <unistd.h> instead of euidaccess.h.
45518         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45519         HAVE_EUIDACCESS.
45520         * NEWS: Mention the change.
45521
45522 2008-10-18  Bruno Haible  <bruno@clisp.org>
45523
45524         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45525
45526         Move the getdomainname() declaration to <unistd.h>.
45527         * lib/getdomainname.h: Remove file.
45528         * lib/unistd.in.h (getdomainname): New declaration.
45529         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45530         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45531         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45532         HAVE_GETDOMAINNAME.
45533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45534         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45535         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45536         (Depends-on): Add unistd, extensions.
45537         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45538         (Includes): Specify <unistd.h> instead of getdomainname.h.
45539         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45540         HAVE_GETDOMAINNAME.
45541         * NEWS: Mention the change.
45542
45543 2008-10-18  Bruno Haible  <bruno@clisp.org>
45544
45545         * modules/dirent: New file.
45546         * m4/dirent_h.m4: New file.
45547         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45548         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45549         * modules/fchdir (Files): Remove lib/dirent.in.h.
45550         (Depends-on): Add dirent.
45551         (Makefile.am): Move rules to modules/dirent.
45552         * doc/posix-headers/dirent.texi: Mention the new module.
45553
45554 2008-10-18  Bruno Haible  <bruno@clisp.org>
45555
45556         Avoid -Wunused-parameter warnings in public gnulib header files.
45557         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45558         macro.
45559         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45560
45561 2008-10-18  Bruno Haible  <bruno@clisp.org>
45562
45563         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45564         * doc/glibc-functions/error.texi: Mention the module 'error'.
45565         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45566         * doc/glibc-functions/getdomainname.texi: Mention the module
45567         'getdomainname'.
45568         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45569         * doc/glibc-functions/getpagesize.texi: Mention the module
45570         'getpagesize'.
45571         * doc/glibc-functions/getusershell.texi: Mention the module
45572         'getusershell'.
45573         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45574         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45575         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45576         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45577         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45578         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45579         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45580         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45581         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45582         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45583         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45584         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45585         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45586         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45587
45588 2008-10-17  Bruno Haible  <bruno@clisp.org>
45589
45590         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45591         HP-UX and IRIX, use -0.0L.
45592         * tests/test-ceill.c (minus_zero): Likewise.
45593         * tests/test-floorl.c (minus_zero): Likewise.
45594         * tests/test-frexpl.c (minus_zero): Likewise.
45595         * tests/test-isnan.c (minus_zerol): Likewise.
45596         * tests/test-isnanl.h (minus_zero): Likewise.
45597         * tests/test-ldexpl.c (minus_zero): Likewise.
45598         * tests/test-roundl.c (minus_zero): Likewise.
45599         * tests/test-signbit.c (minus_zerol): Likewise.
45600         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45601         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45602         * tests/test-truncl.c (minus_zero): Likewise.
45603         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45604         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45605         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45606         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45607
45608 2008-10-17  Bruno Haible  <bruno@clisp.org>
45609
45610         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45611         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45612         that it gets activated only for gcc >= 3.0.
45613         * lib/dirent.in.h: Likewise.
45614         * lib/errno.in.h: Likewise.
45615         * lib/fcntl.in.h: Likewise.
45616         * lib/float.in.h: Likewise.
45617         * lib/iconv.in.h: Likewise.
45618         * lib/inttypes.in.h: Likewise.
45619         * lib/locale.in.h: Likewise.
45620         * lib/math.in.h: Likewise.
45621         * lib/netdb.in.h: Likewise.
45622         * lib/netinet_in.in.h: Likewise.
45623         * lib/search.in.h: Likewise.
45624         * lib/signal.in.h: Likewise.
45625         * lib/spawn.in.h: Likewise.
45626         * lib/stdarg.in.h: Likewise.
45627         * lib/stdint.in.h: Likewise.
45628         * lib/stdio.in.h: Likewise.
45629         * lib/stdlib.in.h: Likewise.
45630         * lib/string.in.h: Likewise.
45631         * lib/strings.in.h: Likewise.
45632         * lib/sys_file.in.h: Likewise.
45633         * lib/sys_ioctl.in.h: Likewise.
45634         * lib/sys_select.in.h: Likewise.
45635         * lib/sys_socket.in.h: Likewise.
45636         * lib/sys_stat.in.h: Likewise.
45637         * lib/sys_time.in.h: Likewise.
45638         * lib/sysexits.in.h: Likewise.
45639         * lib/time.in.h: Likewise.
45640         * lib/unistd.in.h: Likewise.
45641         * lib/wchar.in.h: Likewise.
45642         * lib/wctype.in.h: Likewise.
45643         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45644
45645 2008-10-17  Jim Meyering  <meyering@redhat.com>
45646
45647         ignore-value: don't depend on inline module
45648         * modules/ignore-value (Depends-on): Remove 'inline'.
45649         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45650         Suggestion from Bruno Haible.
45651
45652 2008-10-17  Bruno Haible  <bruno@clisp.org>
45653
45654         New implementation of condition variables for Win32.
45655         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45656         (gl_linked_waitqueue_t): New type.
45657         (gl_cond_t): Use it.
45658         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45659         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45660         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45661         (glthread_cond_init_func, glthread_cond_wait_func,
45662         glthread_cond_timedwait_func, glthread_cond_signal_func,
45663         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45664         Reimplemented on the basis of gl_linked_waitqueue_t.
45665         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45666         gl_waitqueue_t.
45667         (gl_rwlock_t): Update.
45668         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45669
45670 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45671
45672         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45673         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45674
45675 2008-10-17  Jim Meyering  <meyering@redhat.com>
45676
45677         ignore-value: new module
45678         * modules/ignore-value: New file.
45679         * lib/ignore-value.h: New file.
45680         * MODULES.html.sh (Compiler warning management): New section,
45681         just for this module.  More to come.
45682
45683 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45684
45685         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45686         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45687         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45688
45689 2008-10-16  Jim Meyering  <meyering@redhat.com>
45690
45691         openat-die.c: avoid 'no previous prototype' warning
45692         * lib/openat-die.c: Include "openat.h".
45693         Reported by Reuben Thomas <rrt@sc3d.org>.
45694
45695 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45696
45697         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45698         * lib/netdb.in.h: Fix typo.
45699         Reported by Bruno Haible  <bruno@clisp.org>
45700
45701         * lib/netdb.in.h: Include sys/socket.h for platforms without
45702         netdb.h, to get structures like hostent on MinGW.
45703         * modules/netdb (Depends-on): Add sys_socket.
45704
45705 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45706
45707         * modules/netdb, modules/netdb-tests: New file.
45708         * m4/netdb_h.m4: New file.
45709         * lib/netdb.in.h: Add, currently just an empty file pending
45710         definitions.
45711         * tests/test-netdb.c: New file.
45712         * doc/posix-headers/netdb.texi: Mention that we replace it if
45713         needed.
45714         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45715         netdb.
45716
45717 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45718
45719         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45720         with code.
45721
45722 2008-10-13  Bruno Haible  <bruno@clisp.org>
45723
45724         * lib/glthread/cond.c (glthread_cond_wait_func,
45725         glthread_cond_timedwait_func): Add a comment.
45726
45727 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45728
45729         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45730         * tests/test-select.c: Likewise,
45731
45732 2008-10-13  Bruno Haible  <bruno@clisp.org>
45733
45734         * lib/glthread/cond.c (glthread_cond_wait_func,
45735         glthread_cond_timedwait_func): Fix variable name.
45736         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45737
45738 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45739
45740         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45741         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45742         struct sockaddr.sa_len.
45743         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45744
45745 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45746
45747         * build-aux/pmccabe2html: Add css and css_url parameters.
45748
45749 2008-10-12  Bruno Haible  <bruno@clisp.org>
45750
45751         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45752         calling aclx_get.
45753         Reported by Rainer Tammer <tammer@tammer.net>.
45754
45755 2008-10-12  Bruno Haible  <bruno@clisp.org>
45756
45757         Use msvcrt aware primitives for creation/termination of Win32 threads.
45758         * lib/glthread/thread.c: Include <process.h>.
45759         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45760         (wrapper_func): Update signature.
45761         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45762
45763 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45764             Bruno Haible  <bruno@clisp.org>
45765
45766         Provide a Win32 implementation of the 'cond' module.
45767         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45768         * lib/glthread/cond.c (glthread_cond_init_func,
45769         glthread_cond_wait_func, glthread_cond_timedwait_func,
45770         glthread_cond_signal_func, glthread_cond_broadcast_func,
45771         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45772         * modules/cond (Dependencies): Add gettimeofday.
45773
45774 2008-10-11  Bruno Haible  <bruno@clisp.org>
45775
45776         Make sleep work on older versions of mingw.
45777         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45778         only whether it exists.
45779         * doc/posix-functions/sleep.texi: Mention the problem with older
45780         versions of mingw.
45781
45782 2008-10-11  Bruno Haible  <bruno@clisp.org>
45783
45784         New module 'shutdown'.
45785         * modules/shutdown: New file.
45786         * lib/sys_socket.in.h (shutdown): New declaration.
45787         * lib/winsock.c (shutdown): New function.
45788         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45789         GNULIB_SHUTDOWN.
45790         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45791         * doc/posix-functions/shutdown.texi: Document the new module.
45792
45793 2008-10-11  Jim Meyering  <meyering@redhat.com>
45794
45795         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45796
45797 2008-10-11  Bruno Haible  <bruno@clisp.org>
45798
45799         New module 'fclose'.
45800         * modules/fclose: New file.
45801         * lib/stdio.in.h (fclose): New declaration.
45802         * lib/fclose.c: New file.
45803         * m4/fclose.m4: New file.
45804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45805         REPLACE_FCLOSE.
45806         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45807         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45808         REPLACE_FCLOSE.
45809         * modules/close (Depends-on): fclose.
45810         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45811
45812 2008-10-11  Bruno Haible  <bruno@clisp.org>
45813
45814         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45815         set errno and don't call _close.
45816
45817 2008-10-10  Bruno Haible  <bruno@clisp.org>
45818
45819         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45820         ACL, not afterwards. Fixes test failure on Cygwin.
45821
45822 2008-10-09  Ben Pfaff  <blp@gnu.org>
45823
45824         * build-aux/announce-gen: Fix gnulib version related part of usage
45825         message.  Die with a useful error message if no tarballs are
45826         found.
45827
45828 2008-10-10  Jim Meyering  <meyering@redhat.com>
45829
45830         bootstrap: use git's --depth=N option only if it's supported
45831         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45832         recognize the --depth option.  Reported by Pádraig Brady.
45833
45834 2008-10-09  Bruno Haible  <bruno@clisp.org>
45835
45836         New module 'ioctl'.
45837         * modules/ioctl: New file.
45838         * lib/sys_socket.in.h (ioctl): Remove declaration.
45839         * lib/winsock.c: Include <sys/ioctl.h>.
45840         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45841         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45842         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45843         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45844         * doc/posix-functions/ioctl.texi: Mention the new module.
45845
45846 2008-10-09  Bruno Haible  <bruno@clisp.org>
45847
45848         New module 'sys_ioctl'.
45849         * lib/sys_ioctl.in.h: New file.
45850         * m4/sys_ioctl_h.m4: New file.
45851         * modules/sys_ioctl: New file.
45852         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45853
45854 2008-10-09  Bruno Haible  <bruno@clisp.org>
45855
45856         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45857         * lib/winsock.c: Include <stdarg.h>.
45858         (rpl_ioctl): Change to second argument 'int' and then varargs.
45859
45860 2008-10-09  Bruno Haible  <bruno@clisp.org>
45861
45862         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45863         when the sys_socket module is present and the system has <winsock2.h>.
45864
45865 2008-10-09  Bruno Haible  <bruno@clisp.org>
45866
45867         * doc/posix-functions/close.texi: Mention module 'close' instead of
45868         module 'sys_socket'.
45869
45870 2008-10-09  Bruno Haible  <bruno@clisp.org>
45871
45872         * doc/glibc-headers/sys_ioctl.texi: New file.
45873         * doc/gnulib.texi: Include it.
45874
45875 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45876             Bruno Haible  <bruno@clisp.org>
45877
45878         Combine the two replacements of 'close'.
45879         * lib/sys_socket.in.h (close): Define to a reminder to include
45880         <unistd.h>.
45881         (_gl_close_fd_maybe_socket): New declaration.
45882         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45883         * lib/winsock.c (close): Remove undefinition.
45884         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45885         needed for the gnulib module 'close'.
45886         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45887         define to an error symbol or to a warning, if suitable.
45888         * lib/close.c: Include <sys/socket.h>.
45889         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45890         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45891         UNISTD_H_HAVE_WINSOCK2_H.
45892         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45894         UNISTD_H_HAVE_WINSOCK2_H.
45895         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45896         (configure.ac): Set a module indicator.
45897         (Makefile.am): Substitute GNULIB_CLOSE.
45898         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45899         * modules/poll-tests (Depends-on): Add close.
45900         * modules/select-tests (Depends-on): Likewise.
45901
45902 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45903             Bruno Haible  <bruno@clisp.org>
45904
45905         New module 'close'.
45906         * modules/close: New file.
45907         * lib/unistd.in.h (close): Move declaration out of the
45908         FCHDIR_REPLACEMENT scope.
45909         (_gl_unregister_fd): New declaration.
45910         * lib/close.c: New file.
45911         * lib/fchdir.c (rpl_close): Remove function.
45912         * m4/close.m4: New file.
45913         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45914         close.
45915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45916         REPLACE_CLOSE.
45917         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45918         REPLACE_CLOSE.
45919         * modules/fchdir (Depends-on): Add close.
45920
45921 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45922             Bruno Haible  <bruno@clisp.org>
45923
45924         * lib/fcntl.in.h (open): Simplify conditionals.
45925         (_gl_register_fd): New declaration.
45926         * lib/fchdir.c (rpl_open): Remove function.
45927         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45928         also.
45929         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45930         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45931         open.
45932
45933 2008-10-09  Jim Meyering  <meyering@redhat.com>
45934
45935         GNUmakefile: use the more name-space-friendly "_version"
45936         * top/GNUmakefile (_dummy): Update.
45937         (_version): Rename from "version".
45938
45939 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45940             Bruno Haible  <bruno@clisp.org>
45941
45942         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45943         rpl_close.
45944         (_gl_register_fd): New function, extracted from rpl_open.
45945         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45946         (rpl_open, rpl_opendir): Use _gl_register_fd.
45947
45948 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45949
45950         Fix organization of 'open' replacement.
45951         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45952         (gl_FUNC_OPEN): Use it.
45953         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45954
45955 2008-10-08  Bruno Haible  <bruno@clisp.org>
45956
45957         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45958
45959 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45960
45961         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45962         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45963         listen).
45964
45965 2008-10-08  Eric Blake  <ebb9@byu.net>
45966
45967         GNUmakefile: add 'make version' target
45968         * top/GNUmakefile (_curr-ver): Split version update rules...
45969         (version): ...into a target.
45970
45971 2008-10-07  Bruno Haible  <bruno@clisp.org>
45972
45973         Use a more portable replacement expression for -0.0L.
45974         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45975         instead of -0.0L. Fix m4 quotation.
45976
45977         * tests/test-signbit.c: Include <float.h>.
45978         (minus_zero): New variable.
45979         (test_signbitl): Use minus_zero instead of -zero.
45980         * modules/signbit-tests (Depends-on): Add float.
45981
45982         * tests/test-ceill.c: Include <float.h>.
45983         (zero): Remove variable.
45984         (minus_zero): New variable.
45985         (main): Use minus_zero instead of -zero.
45986         * modules/ceill-tests (Depends-on): Add float.
45987
45988         * tests/test-floorl.c: Include <float.h>.
45989         (zero): Remove variable.
45990         (minus_zero): New variable.
45991         (main): Use minus_zero instead of -zero.
45992         * modules/floorl-tests (Depends-on): Add float.
45993
45994         * tests/test-roundl.c: Include <float.h>.
45995         (zero): Remove variable.
45996         (minus_zero): New variable.
45997         (main): Use minus_zero instead of -zero.
45998         * modules/roundl-tests (Depends-on): Add float.
45999
46000         * tests/test-truncl.c: Include <float.h>.
46001         (zero): Remove variable.
46002         (minus_zero): New variable.
46003         (main): Use minus_zero instead of -zero.
46004         * modules/truncl-tests (Depends-on): Add float.
46005
46006         * tests/test-frexpl.c (zero): Remove variable.
46007         (minus_zero): New variable.
46008         (main): Use minus_zero instead of -zero.
46009         * modules/frexpl-tests (Depends-on): Add float.
46010
46011         * tests/test-isnan.c (zerol): Remove variable.
46012         (minus_zerol): New variable.
46013         (test_long_double): Use minus_zerol instead of -zerol.
46014         * modules/isnan-tests (Depends-on): Add float.
46015
46016         * tests/test-isnanl.h (zero): Remove variable.
46017         (minus_zero): New variable.
46018         (main): Use minus_zero instead of -zero.
46019         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46020         * modules/isnanl-tests (Depends-on): Add float.
46021
46022         * tests/test-ldexpl.c (zero): Remove variable.
46023         (minus_zero): New variable.
46024         (main): Use minus_zero instead of -zero.
46025         * modules/ldexpl-tests (Depends-on): Add float.
46026
46027         * tests/test-snprintf-posix.h (zerol): Remove variable.
46028         (minus_zerol): New variable.
46029         (test_function): Use minus_zerol instead of -zerol.
46030         * modules/snprintf-posix-tests (Depends-on): Add float.
46031         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46032
46033         * tests/test-sprintf-posix.h (zerol): Remove variable.
46034         (minus_zerol): New variable.
46035         (test_function): Use minus_zerol instead of -zerol.
46036         * modules/sprintf-posix-tests (Depends-on): Add float.
46037         * modules/vsprintf-posix-tests (Depends-on): Add float.
46038
46039         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46040         (minus_zerol): New variable.
46041         (test_function): Use minus_zerol instead of -zerol.
46042         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46043
46044         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46045         (minus_zerol): New variable.
46046         (test_function): Use minus_zerol instead of -zerol.
46047         * modules/vasprintf-posix-tests (Depends-on): Add float.
46048
46049 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46050
46051         * MODULES.html.sh (Support for building documentation): Mention
46052         pmccabe2html.  Sort entries.
46053
46054         Add pmccabe2html module, from gnupdf.
46055         * build-aux/pmccabe.css: New file.
46056         * build-aux/pmccabe2html: New file.
46057         * m4/pmccabe2html.m4: New file.
46058         * modules/pmccabe2html: New file.
46059
46060 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46061
46062         flock: new module
46063         * MODULES.html.sh: Add to list of modules.
46064         * lib/flock.c: flock implementation for Windows and Unix systems
46065         which have fcntl.
46066         * doc/glibc-functions/flock.texi: Update documentation.
46067         * lib/sys_file.in.h: <sys/file.h> header file.
46068         * m4/flock.m4: M4 macros.
46069         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46070         * modules/flock: flock module.
46071         * modules/flock-tests: flock tests module.
46072         * modules/sys_file: sys/file.h module.
46073         * tests/test-flock.c: test suite for flock.
46074
46075 2008-10-06  Jim Meyering  <meyering@redhat.com>
46076
46077         bootstrap: check for LT_INIT more portably still ;-)
46078         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46079         Spotted by Bruno Haible.
46080
46081 2008-10-06  Eric Blake  <ebb9@byu.net>
46082
46083         test-signbit: avoid tripping Irix cc bug on -0.0L
46084         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46085         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46086         entire testsuite consistent and avoids an Irix 6.2 bug.
46087
46088 2008-10-05  Bruno Haible  <bruno@clisp.org>
46089             Jim Meyering  <jim@meyering.net>
46090
46091         Add an option for ignoring EPIPE during close_stdout.
46092         * lib/closeout.h: Include <stdbool.h>.
46093         (close_stdout_set_ignore_EPIPE): New declaration.
46094         * lib/closeout.c: Include <stdbool.h>.
46095         (ignore_EPIPE): New variable.
46096         (close_stdout_set_ignore_EPIPE): New function.
46097         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46098         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46099         failure.
46100         * modules/closeout (Depends-on): Add stdbool.
46101
46102 2008-10-05  Bruno Haible  <bruno@clisp.org>
46103
46104         * modules/accept: New file.
46105         * modules/bind: New file.
46106         * modules/connect: New file.
46107         * modules/getpeername: New file.
46108         * modules/getsockname: New file.
46109         * modules/getsockopt: New file.
46110         * modules/listen: New file.
46111         * modules/recv: New file.
46112         * modules/recvfrom: New file.
46113         * modules/send: New file.
46114         * modules/sendto: New file.
46115         * modules/setsockopt: New file.
46116         * modules/socket: New file.
46117         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46118         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46119         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46120         the particular module is requested. Add a link warning when the
46121         particular module is not requested.
46122         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46123         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46124         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46125         the particular module is requested.
46126         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46127         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46128         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46129         * modules/sys_socket (Depends-on): Add link-warning.
46130         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46131         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46132         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46133         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46134         GL_LINK_WARNING.
46135         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46136         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46137         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46138         * doc/posix-functions/getpeername.texi: Mention the new module
46139         'getpeername'.
46140         * doc/posix-functions/getsockname.texi: Mention the new module
46141         'getsockname'.
46142         * doc/posix-functions/getsockopt.texi: Mention the new module
46143         'getsockopt'.
46144         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46145         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46146         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46147         * doc/posix-functions/send.texi: Mention the new module 'send'.
46148         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46149         * doc/posix-functions/setsockopt.texi: Mention the new module
46150         'setsockopt'.
46151         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46152         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46153         listen, connect, accept.
46154         * modules/select-tests (Depends-on): Likewise.
46155
46156 2008-10-05  Bruno Haible  <bruno@clisp.org>
46157
46158         * lib/winsock.c (strerror): Remove unused #undef.
46159         (rpl_close): Remove unused local variable.
46160
46161         * modules/sys_socket (Depends-on); Add errno.
46162
46163 2008-10-05  Bruno Haible  <bruno@clisp.org>
46164
46165         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46166         (select): Add a link warning when the 'select' module is not used.
46167         * modules/sys_select (Depends-on): Add link-warning.
46168         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46169         Suggested by Paolo Bonzini.
46170
46171 2008-10-05  Jim Meyering  <meyering@redhat.com>
46172
46173         bootstrap: check for LT_INIT more portably
46174         * build-aux/bootstrap: Avoid using grep -E, since it's not
46175         portable enough.  Suggestion from Bruno Haible.
46176
46177 2008-10-05  Bruno Haible  <bruno@clisp.org>
46178
46179         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46180         as being fixed by gnulib.
46181
46182 2008-10-05  Bruno Haible  <bruno@clisp.org>
46183
46184         * modules/select-tests: New file, mostly copied from
46185         modules/sys_select-tests.
46186         * tests/test-select.c: New file, mostly copied from
46187         tests/test-sys_select.c.
46188         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46189         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46190         (Makefile.am): Remove test_sys_select_LDADD.
46191
46192         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46193         to an undefined symbol, for an error message.
46194         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46195         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46196         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46197         winsock-select.c here.
46198         * modules/sys_select (Files): Remove lib/winsock-select.c.
46199         (Depends-on): Remove alloca.
46200         (Makefile.am): Substitute GNULIB_SELECT.
46201         * modules/select: New file.
46202         * doc/posix-functions/select.texi: Update.
46203
46204 2008-10-05  Bruno Haible  <bruno@clisp.org>
46205
46206         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46207         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46208         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46209         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46210         getdtablesize.
46211         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46212         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46213
46214 2008-10-05  Bruno Haible  <bruno@clisp.org>
46215
46216         * modules/getdtablesize-tests: New file.
46217         * tests/test-getdtablesize.c: New file.
46218
46219         New module 'getdtablesize'.
46220         * lib/unistd.in.h (getdtablesize): New declaration.
46221         * lib/getdtablesize.c: New file.
46222         * m4/getdtablesize.m4: New file.
46223         * modules/getdtablesize: New file.
46224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46225         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46226         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46227         HAVE_GETDTABLESIZE.
46228         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46229
46230 2008-10-05  Bruno Haible  <bruno@clisp.org>
46231
46232         * modules/sched (Makefile.am): Fix typo.
46233         Reported by Simon Josefsson.
46234
46235 2008-10-05  Jim Meyering  <meyering@redhat.com>
46236
46237         bootstrap: check for LT_INIT, too
46238         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46239         are deprecated.  Suggestion from Ralf Wildenhues.
46240
46241 2008-10-05  Bruno Haible  <bruno@clisp.org>
46242
46243         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46244         overriding them by ours.
46245         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46246
46247 2008-10-05  Jim Meyering  <meyering@redhat.com>
46248
46249         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46250         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46251         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46252
46253 2008-10-04  Bruno Haible  <bruno@clisp.org>
46254
46255         * modules/dup2 (License): Change to LGPLv2+.
46256         * modules/sleep (License): Likewise.
46257         * modules/perror (License): Likewise.
46258         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46259         Blake.
46260         * modules/signal (License): Likewise.
46261         * modules/sigprocmask (License): Likewise.
46262         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46263         Meyering.
46264
46265 2008-10-04  Bruno Haible  <bruno@clisp.org>
46266
46267         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46268         Reported by Rainer Tammer <tammer@tammer.net>.
46269
46270 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46271             Bruno Haible  <bruno@clisp.org>
46272
46273         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46274         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46275         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46276
46277 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46278
46279         filevercmp: new module
46280         * lib/filevercmp.h: New function filevercmp comparing version strings.
46281         * lib/filevercmp.c: Implementation of filevercmp function.
46282         * modules/filevercmp: Module metadata.
46283         * tests/test-filevercmp.c: Unit test for new module.
46284         * modules/filevercmp-tests: Unit test metadata.
46285         * MODULES.html.sh: Add filevercmp module.
46286
46287 2008-10-03  Bruno Haible  <bruno@clisp.org>
46288
46289         * lib/c-ctype.h: Add comment.
46290         Reported by Jim Meyering.
46291
46292 2008-10-02  Bruno Haible  <bruno@clisp.org>
46293
46294         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46295
46296 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46297
46298         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46299         name of bootstrap.conf accordingly.
46300
46301 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46302
46303         * build-aux/bootstrap: Install git-merge-changelog configuration
46304         items into .gitconfig if needed.
46305
46306 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46307
46308         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46309         git repository, and initialize/update it accordingly.
46310
46311 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46312
46313         * modules/fsync-tests: New file.
46314         * tests/test-fsync.c: New file.
46315
46316         New module 'fsync'.
46317         * lib/fsync.c: New file.
46318         * m4/fsync.m4: New file.
46319         * modules/fsync: New file.
46320         * lib/unistd.in.h (fsync): New declaration.
46321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46322         GNULIB_FSYNC and HAVE_FSYNC.
46323         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46324         * MODULES.html.sh (posix_functions): Add fsync.
46325         * doc/posix-functions/fsync.texi: Mention the new module.
46326
46327 2008-10-02  Jim Meyering  <meyering@redhat.com>
46328
46329         fts.c: sync with similar code from coreutils' remove.c
46330         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46331         Guard also with "#if defined __linux__", since for now at least,
46332         this code is Linux-kernel-specific.
46333
46334 2008-10-02  Jim Meyering  <meyering@redhat.com>
46335
46336         fts: bug fixes
46337         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46338         Include <sys/vfs.h>, not <sys/statfs.h>.
46339
46340         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46341         Include <sys/vfs.h>, not <sys/statfs.h>.
46342
46343 2008-10-01  Bruno Haible  <bruno@clisp.org>
46344
46345         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46346         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46347         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46348         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46349         * doc/posix-functions/posix_spawnp.texi: Likewise.
46350         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46351         whether posix_spawn actually works.
46352         * m4/pipe.m4 (gl_PIPE): Likewise.
46353         * modules/execute (Files): Add m4/posix_spawn.m4.
46354         * modules/pipe (Files): Add m4/posix_spawn.m4.
46355         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46356
46357 2008-10-01  Jim Meyering  <meyering@redhat.com>
46358
46359         remove trailing spaces
46360         * NEWS: Likewise.
46361         * lib/poll.c (poll): Likewise.
46362         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46363         * lib/winsock.c (rpl_close): Likewise.
46364         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46365         * modules/yield: Likewise.
46366         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46367         * tests/test-sys_select.c (connect_to_socket): Likewise.
46368
46369         fts.c: adjust a new interface to be more generally useful
46370         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46371         (fts_build): Adjust caller.
46372
46373 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46374
46375         * modules/cond-tests: New file.
46376         * tests/test-cond.c: New file.
46377
46378 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46379             Bruno Haible  <bruno@clisp.org>
46380
46381         * modules/cond (Dependencies): Add errno, time.
46382         * lib/glthread/cond.h: Include <time.h>.
46383         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46384         across platforms.
46385
46386 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46387             Bruno Haible  <bruno@clisp.org>
46388
46389         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46390
46391 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46392             Bruno Haible  <bruno@clisp.org>
46393
46394         * modules/tls-tests (Depends-on): Add thread, yield.
46395         (configure.ac): Remove all checks.
46396         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46397         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46398         gl_thread_self): Remove definitions. Include glthread/thread.h and
46399         glthread/yield.h instead.
46400         (test_tls): Pass an additional NULL argument to gl_thread_join.
46401
46402 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46403             Bruno Haible  <bruno@clisp.org>
46404
46405         * modules/lock-tests (Depends-on): Add thread, yield.
46406         (configure.ac): Remove all checks.
46407         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46408         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46409         gl_thread_self): Remove definitions. Include glthread/thread.h and
46410         glthread/yield.h instead.
46411         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46412         additional NULL argument to gl_thread_join.
46413
46414 2008-09-30  Bruno Haible  <bruno@clisp.org>
46415
46416         Fix the Win32 implementation of the 'thread' module.
46417         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46418         pointer type.
46419         (gl_thread_self): Invoke gl_thread_self_func.
46420         (gl_thread_self_func): New declaration.
46421         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46422         (do_init_self_key, init_self_key): New functions.
46423         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46424         Remove some fields.
46425         (running_threads, running_lock): Remove variables.
46426         (get_current_thread_handle): New function.
46427         (gl_thread_self_func, wrapper_func, glthread_create_func,
46428         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46429         simplified.
46430
46431 2008-09-30  Bruno Haible  <bruno@clisp.org>
46432
46433         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46434         files.
46435
46436 2008-09-30  Jim Meyering  <meyering@redhat.com>
46437
46438         fts.m4: correct the test for statfs.f_type
46439         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46440         when checking for statfs.f_type.
46441
46442 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46443
46444         tests: avoid some compiler warnings
46445         * tests/test-memchr.c (main): Pass NULL indirectly.
46446         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46447
46448 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46449
46450         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46451         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46452         exactly specified dayshifts.
46453         (dayshift): New rule.
46454         (rel): Add dayshift.
46455         (relative_time_table) [tomorrow, yesterday, today, now]:
46456         Use tDAY_SHIFT in place of tDAY_UNIT.
46457         * tests/test-getdate.c: Add tests for now-disallowed countable
46458         dayshifts, e.g., "4 yesterday ago".
46459
46460 2008-09-29  Bruno Haible  <bruno@clisp.org>
46461
46462         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46463         * tests/test-posix_spawn1.in.sh: Renamed from
46464         tests/test-posix_spawn.in.sh.
46465         * tests/test-posix_spawn2.c: New file.
46466         * tests/test-posix_spawn2.in.sh: New file.
46467         * modules/posix_spawnp-tests (Files): Update.
46468         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46469
46470 2008-09-29  Bruno Haible  <bruno@clisp.org>
46471
46472         Propagate effects of putenv/setenv/unsetenv to child processes.
46473         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46474         * lib/pipe.c (create_pipe): Likewise.
46475
46476 2008-09-29  Bruno Haible  <bruno@clisp.org>
46477
46478         Enable use of shell scripts as executables in mingw.
46479         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46480         run the program as a shell script.
46481         * lib/pipe.c (create_pipe): Likewise.
46482         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46483         resulting array.
46484
46485 2008-09-29  Eric Blake  <ebb9@byu.net>
46486
46487         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46488
46489 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46490
46491         * doc/posix-functions/accept.texi: Update mingw problems.
46492         * doc/posix-functions/bind.texi: Update mingw problems.
46493         * doc/posix-functions/close.texi: Update mingw problems.
46494         * doc/posix-functions/connect.texi: Update mingw problems.
46495         * doc/posix-functions/getpeername.texi: Update mingw problems.
46496         * doc/posix-functions/getsockname.texi: Update mingw problems.
46497         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46498         * doc/posix-functions/ioctl.texi: Update mingw problems.
46499         * doc/posix-functions/listen.texi: Update mingw problems.
46500         * doc/posix-functions/recv.texi: Update mingw problems.
46501         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46502         * doc/posix-functions/select.texi: Update mingw problems.
46503         * doc/posix-functions/send.texi: Update mingw problems.
46504         * doc/posix-functions/sendto.texi: Update mingw problems.
46505         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46506         * doc/posix-functions/socket.texi: Update mingw problems.
46507
46508 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46509             Bruno Haible  <bruno@clisp.org>
46510
46511         * lib/sys_select.in.h: Include sys/time.h.
46512         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46513         * modules/sys_select: Depend on sys_time.
46514         * tests/test-sys_select.c: Test that sys/select.h defines struct
46515         timeval fully.
46516
46517 2008-09-29  Bruno Haible  <bruno@clisp.org>
46518
46519         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46520         * lib/sys_select.in.h: Likewise.
46521
46522 2008-09-29  Bruno Haible  <bruno@clisp.org>
46523
46524         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46525
46526 2008-09-29  Bruno Haible  <bruno@clisp.org>
46527
46528         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46529         Set LIBSOCKET instead of augmenting LIBS.
46530         * modules/sockets (Link): New section.
46531         * modules/sockets-tests (test_sockets_LDADD): New variable.
46532         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46533         * modules/poll-tests (test_poll_LDADD): New variable.
46534         * NEWS: Document the change.
46535
46536 2008-09-29  Bruno Haible  <bruno@clisp.org>
46537
46538         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46539         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46540         ARPA_INET_H directly.
46541         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46542
46543 2008-09-28  Bruno Haible  <bruno@clisp.org>
46544
46545         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46546         from gl_HEADER_SYS_SOCKET.
46547         (gl_HEADER_SYS_SOCKET): Invoke it.
46548         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46549
46550 2008-09-28  Bruno Haible  <bruno@clisp.org>
46551
46552         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46553         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46554         Needed on OSF/1 4.0.
46555
46556 2008-09-28  Bruno Haible  <bruno@clisp.org>
46557
46558         Override open more carefully.
46559         * lib/open.c (orig_open): New function.
46560         (rpl_open): Use orig_open instead of open.
46561         * lib/fcntl.in.h: Add special invocation convention.
46562         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46563         (gl_FUNC_OPEN): Invoke it.
46564
46565         Override freopen more carefully.
46566         * lib/freopen.c (orig_freopen): New function.
46567         (rpl_freopen): Use orig_freopen instead of freopen.
46568         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46569         (gl_FUNC_FREOPEN): Invoke it.
46570
46571         Override fopen more carefully.
46572         * lib/fopen.c (orig_fopen): New function.
46573         (rpl_fopen): Use orig_fopen instead of fopen.
46574         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46575         (gl_FUNC_FOPEN): Invoke it.
46576         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46577
46578 2008-09-28  Bruno Haible  <bruno@clisp.org>
46579
46580         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46581         SIGPIPE.
46582
46583 2008-09-28  Bruno Haible  <bruno@clisp.org>
46584
46585         * tests/test-sigaction.c (handler, main): Disable the check whether
46586         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46587         glibc systems with LinuxThreads.
46588
46589 2008-09-28  Bruno Haible  <bruno@clisp.org>
46590
46591         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46592
46593         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46594         with AIX xlc.
46595         * lib/fcntl.in.h (open): Likewise.
46596         Reported by Rainer Tammer <tammer@tammer.net>.
46597
46598 2008-09-28  Bruno Haible  <bruno@clisp.org>
46599
46600         * modules/posix_spawnp-tests: New file.
46601         * tests/test-posix_spawn.c: New file.
46602         * tests/test-posix_spawn.in.sh: New file.
46603
46604         New module 'posix_spawnp'.
46605         * modules/posix_spawnp: New file.
46606         * lib/spawnp.c: New file, from GNU libc with modifications.
46607         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46608
46609         New module 'posix_spawn'.
46610         * modules/posix_spawn: New file.
46611         * lib/spawn.c: New file, from GNU libc with modifications.
46612         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46613
46614         New module 'posix_spawnattr_destroy'.
46615         * modules/posix_spawnattr_destroy: New file.
46616         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46617         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46618         module.
46619
46620         New module 'posix_spawnattr_setsigmask'.
46621         * modules/posix_spawnattr_setsigmask: New file.
46622         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46623         modifications.
46624         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46625         new module.
46626
46627         New module 'posix_spawnattr_getsigmask'.
46628         * modules/posix_spawnattr_getsigmask: New file.
46629         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46630         modifications.
46631         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46632         new module.
46633
46634         New module 'posix_spawnattr_setsigdefault'.
46635         * modules/posix_spawnattr_setsigdefault: New file.
46636         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46637         modifications.
46638         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46639         new module.
46640
46641         New module 'posix_spawnattr_getsigdefault'.
46642         * modules/posix_spawnattr_getsigdefault: New file.
46643         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46644         modifications.
46645         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46646         new module.
46647
46648         New module 'posix_spawnattr_setschedpolicy'.
46649         * modules/posix_spawnattr_setschedpolicy: New file.
46650         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46651         modifications.
46652         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46653         new module.
46654
46655         New module 'posix_spawnattr_getschedpolicy'.
46656         * modules/posix_spawnattr_getschedpolicy: New file.
46657         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46658         modifications.
46659         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46660         new module.
46661
46662         New module 'posix_spawnattr_setschedparam'.
46663         * modules/posix_spawnattr_setschedparam: New file.
46664         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46665         modifications.
46666         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46667         new module.
46668
46669         New module 'posix_spawnattr_getschedparam'.
46670         * modules/posix_spawnattr_getschedparam: New file.
46671         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46672         modifications.
46673         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46674         new module.
46675
46676         New module 'posix_spawnattr_setpgroup'.
46677         * modules/posix_spawnattr_setpgroup: New file.
46678         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46679         modifications.
46680         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46681         module.
46682
46683         New module 'posix_spawnattr_getpgroup'.
46684         * modules/posix_spawnattr_getpgroup: New file.
46685         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46686         modifications.
46687         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46688         module.
46689
46690         New module 'posix_spawnattr_setflags'.
46691         * modules/posix_spawnattr_setflags: New file.
46692         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46693         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46694         module.
46695
46696         New module 'posix_spawnattr_getflags'.
46697         * modules/posix_spawnattr_getflags: New file.
46698         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46699         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46700         module.
46701
46702         New module 'posix_spawnattr_init'.
46703         * modules/posix_spawnattr_init: New file.
46704         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46705         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46706         module.
46707
46708         New module 'posix_spawn_file_actions_destroy'.
46709         * modules/posix_spawn_file_actions_destroy: New file.
46710         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46711         modifications.
46712         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46713         the new module.
46714
46715         New module 'posix_spawn_file_actions_addopen'.
46716         * modules/posix_spawn_file_actions_addopen: New file.
46717         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46718         modifications.
46719         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46720         the new module.
46721
46722         New module 'posix_spawn_file_actions_adddup2'.
46723         * modules/posix_spawn_file_actions_adddup2: New file.
46724         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46725         modifications.
46726         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46727         the new module.
46728
46729         New module 'posix_spawn_file_actions_addclose'.
46730         * modules/posix_spawn_file_actions_addclose: New file.
46731         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46732         modifications.
46733         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46734         the new module.
46735
46736         New module 'posix_spawn_file_actions_init'.
46737         * modules/posix_spawn_file_actions_init: New file.
46738         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46739         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46740         new module.
46741
46742         New module 'posix_spawn-internal'.
46743         * modules/posix_spawn-internal: New file.
46744         * lib/spawn_int.h: New file, from GNU libc with modifications.
46745         * lib/spawni.c: New file, from GNU libc with modifications.
46746         * m4/posix_spawn.m4: New file.
46747
46748         New module 'spawn'.
46749         * modules/spawn: New file.
46750         * lib/spawn.in.h: New file, from GNU libc with modifications.
46751         * m4/spawn_h.m4: New file.
46752         * doc/posix-headers/spawn.texi: Mention the new module.
46753
46754 2008-09-28  Bruno Haible  <bruno@clisp.org>
46755
46756         * modules/sched-tests: New file.
46757         * tests/test-sched.c: New file.
46758
46759         New module 'sched'.
46760         * modules/sched: New file.
46761         * lib/sched.in.h: New file.
46762         * m4/sched_h.m4: New file.
46763         * doc/posix-headers/sched.texi: Mention the new module.
46764
46765 2008-09-27  Eric Blake  <ebb9@byu.net>
46766
46767         Fix previous patch, and tweak references to $0.
46768         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46769         (func_version, func_gnulib_dir): Don't call this program
46770         gnulib-tool.
46771         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46772         with using $0 in function.
46773         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46774         (func_fatal_error): Reuse the name the user invoked us with.
46775
46776 2008-09-27  Bruno Haible  <bruno@clisp.org>
46777
46778         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46779         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46780         (gl_ICONV_H): Not here.
46781         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46782         instead of assigning ICONV_H directly.
46783
46784         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46786         WCHAR_H directly.
46787
46788 2008-09-27  Bruno Haible  <bruno@clisp.org>
46789
46790         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46791         * modules/arpa_inet (Depends-on): Add link-warning.
46792         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46793         * modules/unistd (Makefile.am): Likewise.
46794
46795 2008-09-26  Bruno Haible  <bruno@clisp.org>
46796
46797         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46798         variables.
46799         (func_version): Essentially copied from gnulib-tool.
46800         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46801         func_readlink): Copied from gnulib-tool.
46802
46803 2008-09-26  Bruno Haible  <bruno@clisp.org>
46804
46805         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46806         invoking git-version-gen.
46807
46808 2008-09-26  Bruno Haible  <bruno@clisp.org>
46809
46810         * posix-modules: Update to directory names changed on 2008-01-19.
46811         Remove commas in output before splitting into words. No more need to
46812         avoid 'ftruncate' since 2007-02-19.
46813
46814 2008-09-26  Bruno Haible  <bruno@clisp.org>
46815
46816         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46817
46818 2008-09-26  Bruno Haible  <bruno@clisp.org>
46819
46820         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46821         * modules/fwriteerror (Depends-on): Add errno.
46822
46823 2008-09-26  Bruno Haible  <bruno@clisp.org>
46824
46825         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46826         * tests/test-vc-list-files-cvs.sh: Likewise.
46827
46828 2008-09-26  Bruno Haible  <bruno@clisp.org>
46829
46830         * doc/posix-headers/sys_resource.texi: Reorder items.
46831
46832 2008-09-26  Jim Meyering  <meyering@redhat.com>
46833
46834         fts: tweak inode comparison function
46835         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46836         inode numbers, as documented.
46837
46838         fts: sort dirent entries on inode number before traversing
46839         This avoids a quadratic, seek-related performance penalty when
46840         operating on a directory containing many entries (measurable at 10k;
46841         3.5 hours at 2 million entries with a cold cache) on certain types
46842         of file systems, including ext3 and ext4, but not tmpfs.
46843         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46844         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46845         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46846         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46847         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46848         (fts_build): Set the stat.st_ino member from D_INO.
46849         If it is likely to be useful, sort dirent entries on inode number.
46850
46851         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46852         and the struct statfs.f_type member.
46853         * modules/fts (Depends-on): Add d-ino.
46854
46855 2008-09-26  Bruno Haible  <bruno@clisp.org>
46856
46857         * modules/sigpipe-die (Depends-on): Add sigpipe.
46858
46859         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46860         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46861         and GNULIB_STDIO_H_SIGPIPE are set.
46862         * lib/stdio-write.c: New file.
46863         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46864         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46865         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46866         REPLACE_STDIO_WRITE_FUNCS.
46867         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46868         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46869         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46870         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46871         * modules/stdio (Files): Add lib/stdio-write.c.
46872         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46873         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46874         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46875         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46876         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46877         REPLACE_FPRINTF_POSIX.
46878         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46879         REPLACE_PRINTF_POSIX.
46880         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46881         REPLACE_VFPRINTF_POSIX.
46882         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46883         REPLACE_VPRINTF_POSIX.
46884         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46885         SIGPIPE issue.
46886         * doc/posix-functions/fputc.texi: Likewise.
46887         * doc/posix-functions/fputs.texi: Likewise.
46888         * doc/posix-functions/fwrite.texi: Likewise.
46889         * doc/posix-functions/printf.texi: Likewise.
46890         * doc/posix-functions/putc.texi: Likewise.
46891         * doc/posix-functions/putchar.texi: Likewise.
46892         * doc/posix-functions/puts.texi: Likewise.
46893         * doc/posix-functions/vfprintf.texi: Likewise.
46894         * doc/posix-functions/vprintf.texi: Likewise.
46895
46896         * modules/safe-write (Depends-on): Add write.
46897
46898         * modules/sigpipe-tests: New file.
46899         * tests/test-sigpipe.c: New file.
46900         * tests/test-sigpipe.sh: New file.
46901
46902         * modules/write: New file.
46903         * lib/unistd.in.h: Include <sys/types.h>.
46904         (write): New declaration.
46905         * lib/write.c: New file.
46906         * m4/write.m4: New file.
46907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46908         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46909         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46910         GNULIB_WRITE, REPLACE_WRITE.
46911         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46912         and the SIGPIPE issue.
46913
46914         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46915         (raise): New declaration.
46916         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46917         (ext_signal): New function.
46918         (rpl_raise): New function.
46919         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46920         GNULIB_SIGNAL_H_SIGPIPE.
46921         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46922         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46923
46924         * modules/sigpipe: New file.
46925         * m4/sigpipe.m4: New file.
46926
46927 2008-09-25  Derek Price  <derek@ximbiot.com>
46928             Bruno Haible  <bruno@clisp.org>
46929
46930         * gnulib-tool (func_import): Report all license incompatibilities, not
46931         just the first one.
46932
46933 2008-09-25  Bruno Haible  <bruno@clisp.org>
46934
46935         * gnulib-tool (func_import): When computing the edits, consider not
46936         only the Makefile.ams that exist but also those that will be generated.
46937
46938 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46939
46940         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46941         fixes gnulib-tool --test warning about duplicate dependency.
46942
46943 2008-09-25  Bruno Haible  <bruno@clisp.org>
46944
46945         * gnulib-tool: Don't ask the user to perform edits in the generated
46946         Makefile.ams.
46947         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46948         apply to the Makefile.am being generated.
46949         (func_emit_tests_Makefile_am): Execute edits that apply to the
46950         Makefile.am being generated.
46951         (func_import): Setup list of Makefile.am edits before emitting the
46952         Makefile.ams, not at the end.
46953         (func_create_testdir): Update.
46954         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46955
46956 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46957
46958         * gnulib-tool (func_import): Store the --tests-base option in the
46959         comment in gnulib-cache.m4.
46960
46961 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46962
46963         * NEWS: Document increased portability that sys_select now provides.
46964
46965         * lib/sys_select.in.h: Install select wrapper.
46966         * lib/sys_socket.in.h: Use more descriptive name when there is no
46967         select wrapper.
46968         * lib/winsock-select.c: New.
46969         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46970         Require gl_HEADER_SYS_SOCKET.
46971         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46972         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46973         * tests/test-sys_select.c: Add functional tests.
46974
46975 2008-09-24  Eric Blake  <ebb9@byu.net>
46976
46977         open, fopen: close fd leak in last patch
46978         * lib/open.c (rpl_open): Close fd before returning error.
46979         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46980         * doc/posix-functions/open.texi (open): Document that Irix also
46981         has the bug.
46982         * doc/posix-functions/fopen.texi (fopen): Likewise.
46983         Reported by Paolo Bonzini.
46984
46985 2008-09-24  Bruno Haible  <bruno@clisp.org>
46986
46987         Ensure that a filename ending in a slash cannot be used to access a
46988         non-directory.
46989         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46990         to check whether it's really a directory.
46991         * lib/fopen.c: Include fcntl.h, unistd.h.
46992         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46993         and fdopen().
46994         * modules/fopen (Depends-on): Add unistd.
46995         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46996         * tests/test-fopen.c (main): Likewise.
46997         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46998         * doc/posix-functions/fopen.texi: Likewise.
46999         Reported by Eric Blake.
47000
47001 2008-09-23  Eric Blake  <ebb9@byu.net>
47002
47003         c-stack: avoid compiler optimizations when provoking overflow
47004         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47005         recursion harder to optimize, to ensure a stack overflow occurs.
47006         * tests/test-c-stack.c (recurse): Likewise.
47007         Borrowed from libsigsegv.
47008
47009         c-stack: work around Irix sigaltstack bug
47010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47011         whether sigaltstack uses wrong end of stack_t (copied in part from
47012         libsigsegv).
47013         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47014         Irix bug, without requiring an over-allocation.
47015         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47016         bug.
47017
47018         fopen: document mingw bug on directories
47019         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47020         not allowing a stream visiting a directory, even though reading
47021         from such a stream is not portable.
47022
47023 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47024
47025         * lib/poll.c: Rewrite.
47026         * modules/poll: Depend on alloca.
47027
47028 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47029
47030         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47031         instead define prototypes for a full set of wrappers.  Ensure
47032         that Cygwin does not use the compatibility code, which is only
47033         for MinGW.
47034         * lib/winsock.c: New.
47035         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47036         * modules/sys_socket: Add lib/winsock.c.
47037
47038         * modules/poll-tests: Add errno and perror.
47039         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47040
47041 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47042
47043         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47044
47045 2008-09-23  Bruno Haible  <bruno@clisp.org>
47046
47047         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47048         * doc/glibc-functions/*: Likewise.
47049
47050 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47051
47052         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47053         success.
47054
47055 2008-09-22  Eric Blake  <ebb9@byu.net>
47056             Bruno Haible  <bruno@clisp.org>
47057
47058         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47059         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47060         supply %A but mishandle pseudo-NaN.
47061         Reported by Simon Josefsson.
47062
47063 2008-09-21  Bruno Haible  <bruno@clisp.org>
47064
47065         * tests/test-lock.c (main): Tweak skip message.
47066         * tests/test-tls.c (main): Likewise.
47067
47068 2008-09-21  Bruno Haible  <bruno@clisp.org>
47069
47070         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47071         whether 'struct sigaction' has sa_sigaction here...
47072         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47073         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47074
47075 2008-09-21  Bruno Haible  <bruno@clisp.org>
47076
47077         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47078         section.
47079         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47080         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47081         the new section.
47082         (Support for obsolete systems lacking POSIX:2001): New section.
47083         (String handling <string.h>): Move strdup to the new section.
47084         Suggested by Simon Josefsson and Paolo Bonzini.
47085
47086 2008-09-21  Bruno Haible  <bruno@clisp.org>
47087
47088         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47089         exponents in %e and %g results on 'long double'. Needed for mingw's
47090         improved *printf functions.
47091         * tests/test-vasprintf-posix.c (test_function): Likewise.
47092         * tests/test-snprintf-posix.h (test_function): Likewise.
47093         * tests/test-sprintf-posix.h (test_function): Likewise.
47094         Reported by Eric Blake.
47095
47096 2008-09-21  Bruno Haible  <bruno@clisp.org>
47097
47098         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47099         * tests/test-sprintf-posix.h (test_function): Likewise.
47100
47101 2008-09-21  Bruno Haible  <bruno@clisp.org>
47102
47103         * modules/getpass (Depends-on): Add strdup-posix.
47104
47105         New module 'strdup-posix'.
47106         * modules/strdup-posix: New file.
47107         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47108         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47110         REPLACE_STRDUP.
47111         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47112         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47113         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47114         strdup-posix.
47115
47116         * modules/strdup (Depends-on): Remove malloc-posix.
47117
47118 2008-09-20  Bruno Haible  <bruno@clisp.org>
47119
47120         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47121         Wildenhues.
47122
47123 2008-09-20  Bruno Haible  <bruno@clisp.org>
47124
47125         Ensure that wint_t gets defined on IRIX 5.3.
47126         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47127         * lib/wctype.in.h (wint_t): Likewise.
47128         (__wctype_wint_t): Remove type.
47129         (isw*): Use wint_t instead of __wctype_wint_t.
47130         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47131         * modules/wchar (Files): Add m4/wint_t.m4.
47132         (Makefile.am): Substitute HAVE_WINT_T.
47133         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47134         * tests/test-wctype.c: Check that wint_t is defined.
47135         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47136         * doc/posix-headers/wctype.texi: Likewise.
47137         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47138
47139 2008-09-18  Bruno Haible  <bruno@clisp.org>
47140
47141         * gnulib-tool (func_exit): Update comment.
47142
47143 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47144
47145         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47146         assumes strdup exists and does not depend on strdup to return
47147         ENOMEM on out of memory conditions.
47148
47149 2008-09-18  Bruno Haible  <bruno@clisp.org>
47150
47151         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
47152         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47153         digits for the exponent.
47154
47155 2008-09-18  Jim Meyering  <meyering@redhat.com>
47156             Bruno Haible  <bruno@clisp.org>
47157
47158         * lib/vasnprintf.c (decimal_point_char): Define also if
47159         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47160
47161 2008-09-16  Bruno Haible  <bruno@clisp.org>
47162         and Eric Blake  <ebb9@byu.net>
47163
47164         vasnprintf: support Irix 5.3
47165         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47166         that mishandle long double infinity.
47167         Reported by Tom G. Christensen.
47168
47169 2008-09-16  Bruno Haible  <bruno@clisp.org>
47170
47171         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47172         Solaris 9.
47173         * doc/glibc-functions/alphasort.texi: Likewise.
47174         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47175
47176 2008-09-16  Jim Meyering  <meyering@redhat.com>
47177
47178         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47179         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47180         a umask modification leak out of a subshell.  Otherwise, the
47181         opensolaris /bin/sh would be accepted and thus cause unwarranted
47182         failures in the coreutils test suite.
47183
47184 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47185
47186         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47187         to succeed.
47188
47189 2008-09-16  Jim Meyering  <meyering@redhat.com>
47190
47191         avoid spurious test failure when library is built without ACL support
47192         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47193         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47194         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47195         * tests/test-copy-acl.sh: Likewise.
47196
47197 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47198
47199         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47200         based on character occurrence counts.
47201
47202 2008-09-15  Eric Blake  <ebb9@byu.net>
47203
47204         tests: avoid some compiler warnings
47205         * tests/test-memchr.c (main): Pass NULL indirectly.
47206         * tests/test-closein.c (main): Avoid unused variable.
47207
47208 2008-09-15  Bruno Haible  <bruno@clisp.org>
47209
47210         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47211         are missing on OpenBSD 4.0 individually.
47212         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47213
47214 2008-09-15  Bruno Haible  <bruno@clisp.org>
47215
47216         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47217         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47218         * doc/posix-functions/perror.texi: Likewise.
47219         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47220         is missing.
47221         Reported by Eric Blake.
47222
47223         * lib/errno.in.h: Use replacement values >= 2000.
47224         Reported by Eric Blake.
47225
47226 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47227
47228         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47229         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47230         limit.
47231         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47232         compareseq was aborted.
47233
47234 2008-09-14  Bruno Haible  <bruno@clisp.org>
47235
47236         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47237         yvec_edit_count.
47238         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47239         (fstrcmp_bounded): Simplify result computation accordingly.
47240
47241 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47242
47243         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47244         (fstrcmp): Define in terms of fstrcmp_bounded.
47245         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47246         lower_bound argument.
47247         Return quickly if the result is certainly < lower_bound.
47248         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47249
47250 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47251
47252         * lib/diffseq.h (EARLY_ABORT): New macro.
47253         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47254         evaluates to true.
47255
47256 2008-09-14  Bruno Haible  <bruno@clisp.org>
47257
47258         * modules/perror-tests: New file.
47259         * tests/test-perror.sh: New file.
47260         * tests/test-perror.c: New file.
47261
47262         New module 'perror'.
47263         * lib/stdio.in.h (perror): New declaration.
47264         * lib/perror.c: New file.
47265         * m4/perror.m4: New file.
47266         * modules/perror: New file.
47267         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47268         * doc/posix-functions/perror.texi: Mention the perror module.
47269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47270         REPLACE_PERROR.
47271         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47272         REPLACE_PERROR.
47273
47274 2008-09-14  Bruno Haible  <bruno@clisp.org>
47275
47276         * modules/stdio (Makefile.am): Reorder to match the order in
47277         lib/stdio.in.h.
47278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47279
47280 2008-09-13  Bruno Haible  <bruno@clisp.org>
47281
47282         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47283
47284 2008-09-13  Bruno Haible  <bruno@clisp.org>
47285
47286         Extend strerror to cover the added errno values.
47287         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47288         (rpl_strerror): Provide error messages for the added errno values and
47289         for the WSA* values.
47290         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47291         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47292         strerror.
47293         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47294         * modules/strerror (Depends-on): Add errno.
47295         * doc/posix-functions/strerror.texi: Document the change.
47296         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47297         and EOVERFLOW.
47298
47299 2008-09-13  Bruno Haible  <bruno@clisp.org>
47300
47301         * modules/EOVERFLOW: Remove file.
47302         * m4/eoverflow.m4: Remove file.
47303         * modules/EOVERFLOW-tests: Remove file.
47304         * tests/test-EOVERFLOW.c: Remove file.
47305         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47306         * modules/ftell (Depends-on): Likewise.
47307         * modules/getdelim (Depends-on): Likewise.
47308         * modules/getugroups (Depends-on): Likewise.
47309         * modules/poll (Depends-on): Likewise.
47310         * modules/snprintf (Depends-on): Likewise.
47311         * modules/sprintf-posix (Depends-on): Likewise.
47312         * modules/vasnprintf (Depends-on): Likewise.
47313         * modules/vasprintf (Depends-on): Likewise.
47314         * modules/vfprintf-posix (Depends-on): Likewise.
47315         * modules/vsnprintf (Depends-on): Likewise.
47316         * modules/vsprintf-posix (Depends-on): Likewise.
47317         * modules/xvasprintf (Depends-on): Likewise.
47318         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47319         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47320         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47321         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47322         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47323         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47324         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47325         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47326         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47327         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47328         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47329         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47330         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47331         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47332         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47333         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47334         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47335         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47336         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47337         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47338         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47339         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47340         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47341         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47342         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47343         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47344         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47345         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47346         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47347         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47348         * MODULES.html.sh: Remove EOVERFLOW.
47349         * NEWS: Mention the change.
47350
47351 2008-09-13  Bruno Haible  <bruno@clisp.org>
47352
47353         * modules/errno-tests: New file.
47354         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47355
47356         * lib/errno.in.h: New file.
47357         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47358         * modules/errno: New file.
47359         * doc/posix-headers/errno.texi: Update documentation.
47360         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47361
47362 2008-09-13  Bruno Haible  <bruno@clisp.org>
47363
47364         * tests/test-poll.c: Use #if for native Windows, rather than testing
47365         __MSVCRT__.
47366
47367 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47368             Bruno Haible  <bruno@clisp.org>
47369
47370         * lib/glob.c: Don't include <pwd.h> on native Windows.
47371         (WINDOWS32): New macro.
47372         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47373
47374 2008-09-13  Bruno Haible  <bruno@clisp.org>
47375
47376         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47377         (ETIMEDOUT): Remove macro.
47378         (glthread_cond_timedwait_multithreaded): New declaration.
47379         (glthread_cond_timedwait): Use it.
47380         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47381         (glthread_cond_timedwait_multithreaded): New function.
47382
47383 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47384
47385         * modules/poll-tests: Do not check for io.h.
47386         * tests/test-poll.c: Check for __MSVCRT__ instead.
47387
47388 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47389
47390         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47391         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47392         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47393
47394 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47395
47396         * modules/poll-tests: New.
47397         * tests/test-poll.c: New.
47398
47399 2008-09-12  Eric Blake  <ebb9@byu.net>
47400
47401         frexp: test for NetBSD failure on -0.0
47402         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47403         not all, bugs from NetBSD 3.0 have been fixed.
47404         * doc/posix-functions/frexp.texi (frexp): Document bug.
47405         Reported by Thomas Klausner.
47406
47407         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47408         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47409         literal -0.0.
47410         Reported by Jonathan C. Patschke <jp@centtech.com>.
47411
47412 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47413
47414         * lib/glthread/cond.h: Use dummy implementation also if
47415         USE_WIN32_THREADS.
47416
47417 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47418
47419         * modules/fnmatch-posix (License): Change to LGPLv2+.
47420         * modules/fnmatch-gnu (License): Likewise.
47421
47422 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47423
47424         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47425
47426 2008-09-11  Jim Meyering  <meyering@redhat.com>
47427
47428         * users.txt: Add gtk-vnc.
47429
47430 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47431
47432         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47433         rotate amounts.
47434
47435         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47436         required for 16-bit and 8-bit rotates.
47437         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47438         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47439         UINT8_MAX instead of hard-coded constants.
47440         Suggested by Paul Eggert.
47441
47442 2008-09-07  Bruno Haible  <bruno@clisp.org>
47443
47444         * tests/test-striconveh.c (main): Check behaviour when converting from
47445         UTF-7.
47446
47447         Make striconveh work better with stateful encodings.
47448         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47449         that iconv does not increment the inptr when returning -1/EINVAL.
47450
47451 2008-09-07  Bruno Haible  <bruno@clisp.org>
47452
47453         * build-aux/config.rpath: Update according to libtool-2.2.6.
47454         * build-aux/config.libpath: Likewise.
47455
47456 2008-09-06  Bruno Haible  <bruno@clisp.org>
47457
47458         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47459         * lib/freadptr.c (freadptr): Likewise.
47460         * lib/freadseek.c (freadptrinc): Likewise.
47461         Reported by Simon Josefsson.
47462
47463 2008-09-06  Bruno Haible  <bruno@clisp.org>
47464
47465         * modules/freadptr (License): Change to LGPLv2+.
47466         * modules/freadseek (License): Likewise.
47467         Suggested by Eric Blake.
47468
47469         * modules/memchr2 (License): Change to LGPLv2+.
47470         Approved by Eric Blake.
47471
47472 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47473             Bruno Haible  <bruno@clisp.org>
47474
47475         Make gnulib-tool work with native 'sed' on AIX.
47476         * gnulib-tool (sed_noop): New variable.
47477         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47478         func_add_or_update, func_create_testdir): Use it to initialize sed
47479         script variables.
47480         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47481
47482 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47483             Bruno Haible  <bruno@clisp.org>
47484
47485         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47486         also works after #include directives.
47487
47488 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47489
47490         getdate.y: reject an out-of-range timezone value
47491         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47492         the range [-24...+24].  When specified with only one or two digits,
47493         * tests/test-getdate.c: Tests for the fix.
47494         * doc/getdate.texi: Document this change.
47495
47496 2008-09-03  Bruno Haible  <bruno@clisp.org>
47497
47498         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47499
47500 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47501
47502         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47503         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47504         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47505         Blake <ebb9@byu.net>.
47506
47507         * tests/test-bitrotate.c: Add more test vectors.
47508
47509 2008-09-02  Eric Blake  <ebb9@byu.net>
47510
47511         vasnprintf-posix: handle large precision via %.*d
47512         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47513         when handling it ourselves.
47514         * tests/test-vasnprintf-posix.c (test_function): Add test.
47515         * tests/test-snprintf-posix.h (test_function): Likewise.
47516         * tests/test-sprintf-posix.h (test_function): Likewise.
47517         * tests/test-vasprintf-posix.c (test_function): Likewise.
47518         Reported by Alain Guibert.
47519
47520 2008-09-01  Eric Blake  <ebb9@byu.net>
47521
47522         c-stack: make configure-time check more robust
47523         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47524         successful sigaction call.
47525         Reported by Tom G. Christensen.
47526
47527 2008-09-01  Bruno Haible  <bruno@clisp.org>
47528
47529         New module 'findprog-lgpl'.
47530         * modules/findprog-lgpl: New file.
47531         * lib/findprog-lgpl.c: New file.
47532         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47533         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47534         to decide whether to use strdup or xstrdup, concatenated_filename or
47535         xconcatenated_filename.
47536
47537 2008-09-01  Bruno Haible  <bruno@clisp.org>
47538
47539         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47540         'xconcat-filename' (GPL).
47541         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47542         (License): Change to LGPLv2+.
47543         * modules/xconcat-filename: New file.
47544         * lib/concat-filename.h (concatenated_filename): Change specification.
47545         (xconcatenated_filename): New declaration.
47546         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47547         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47548         memory situations.
47549         * lib/xconcat-filename.c: New file.
47550         * NEWS: Mention the change.
47551         * lib/findprog.c: Include concat-filename.h, not filename.h.
47552         (find_in_path): Use xconcatenated_filename instead of
47553         concatenated_filename.
47554         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47555         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47556         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47557         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47558         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47559         instead of concatenated_filename.
47560         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47561         (execute_java_class): Use xconcatenated_filename instead of
47562         concatenated_filename.
47563         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47564         * modules/javacomp (Depends-on): Likewise.
47565         * modules/javaexec (Depends-on): Likewise.
47566
47567 2008-09-01  Bruno Haible  <bruno@clisp.org>
47568
47569         Split module 'filename' into 'filename' and 'concat-filename'.
47570         * modules/filename: Keep only lib/filename.h.
47571         (License): Change to LGPLv2+.
47572         * modules/concat-filename: New file, extracted from modules/filename.
47573         * lib/filename.h (concatenated_filename): Remove declaration.
47574         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47575         * lib/concat-filename.c: Include concat-filename.h.
47576         * NEWS: Mention the change.
47577
47578 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47579
47580         * lib/bitrotate.h (rotl8, rotr8): Add.
47581
47582         * modules/bitrotate (configure.ac): Need
47583         AC_REQUIRE([AC_C_INLINE]).
47584         (Description): Mention stdint.h.  Reported by Bruno Haible
47585         <bruno@clisp.org>.
47586
47587         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47588         Paolo Bonzini <bonzini@gnu.org>.
47589
47590 2008-08-31  Bruno Haible  <bruno@clisp.org>
47591
47592         Assume Solaris specific bi-arch conventions on Solaris systems.
47593         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47594         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47595         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47596         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47597         like acl_libdirstem.
47598         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47599         acl_libdirstem.
47600         * NEWS: Mention the change.
47601         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47602
47603 2008-08-31  Jim Meyering  <meyering@redhat.com>
47604
47605         * lib/strftime.h: Add comments describing the two added arguments.
47606
47607         remove duplicate #include directives
47608         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47609         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47610
47611 2008-08-31  Bruno Haible  <bruno@clisp.org>
47612
47613         New module 'sigpipe-die'.
47614         * modules/sigpipe-die: New file.
47615         * lib/sigpipe-die.h: New file.
47616         * lib/sigpipe-die.c: New file.
47617         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47618
47619 2008-08-31  Bruno Haible  <bruno@clisp.org>
47620
47621         Don't override previously installed signal handlers.
47622         * lib/fatal-signal.c (saved_sigactions): New variable.
47623         (uninstall_handlers): Reset the signal to the saved handler, not
47624         to SIG_DFL (except when ignored).
47625         (install_handlers): Save the previous handlers.
47626
47627 2008-08-30  Bruno Haible  <bruno@clisp.org>
47628
47629         * gnulib-tool (func_reset_sigpipe): New function.
47630         (func_get_automake_snippet, func_modules_transitive_closure,
47631         func_import): Invoke it before a join command that reads from stdin,
47632         to avoid "echo: write error: Broken pipe" error messages on stderr.
47633         Reported by Sam Steingold <sds@gnu.org>.
47634
47635 2008-08-30  Bruno Haible  <bruno@clisp.org>
47636
47637         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47638         Code copied from m4/open.m4.
47639         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47640         access and the filename ends in a slash. Code copied from lib/open.c.
47641         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47642         * tests/test-fopen.c (main): Check against bug with trailing slash.
47643
47644 2008-08-29  Bruno Haible  <bruno@clisp.org>
47645
47646         Avoid some "gcc -pedantic" warnings.
47647         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47648         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47649         * lib/dirent.in.h: Likewise.
47650         * lib/fcntl.in.h: Likewise.
47651         * lib/float.in.h: Likewise.
47652         * lib/iconv.in.h: Likewise.
47653         * lib/inttypes.in.h: Likewise.
47654         * lib/locale.in.h: Likewise.
47655         * lib/math.in.h: Likewise.
47656         * lib/netinet_in.in.h: Likewise.
47657         * lib/search.in.h: Likewise.
47658         * lib/signal.in.h: Likewise.
47659         * lib/stdarg.in.h: Likewise.
47660         * lib/stdint.in.h: Likewise.
47661         * lib/stdio.in.h: Likewise.
47662         * lib/stdlib.in.h: Likewise.
47663         * lib/string.in.h: Likewise.
47664         * lib/strings.in.h: Likewise.
47665         * lib/sys_select.in.h: Likewise.
47666         * lib/sys_socket.in.h: Likewise.
47667         * lib/sys_stat.in.h: Likewise.
47668         * lib/sys_time.in.h: Likewise.
47669         * lib/sysexits.in.h: Likewise.
47670         * lib/time.in.h: Likewise.
47671         * lib/unistd.in.h: Likewise.
47672         * lib/wchar.in.h: Likewise.
47673         * lib/wctype.in.h: Likewise.
47674         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47675         * modules/fchdir (Makefile.am): Likewise.
47676         * modules/fcntl (Makefile.am): Likewise.
47677         * modules/float (Makefile.am): Likewise.
47678         * modules/iconv_open (Makefile.am): Likewise.
47679         * modules/inttypes (Makefile.am): Likewise.
47680         * modules/locale (Makefile.am): Likewise.
47681         * modules/math (Makefile.am): Likewise.
47682         * modules/netinet_in (Makefile.am): Likewise.
47683         * modules/search (Makefile.am): Likewise.
47684         * modules/signal (Makefile.am): Likewise.
47685         * modules/stdarg (Makefile.am): Likewise.
47686         * modules/stdint (Makefile.am): Likewise.
47687         * modules/stdio (Makefile.am): Likewise.
47688         * modules/stdlib (Makefile.am): Likewise.
47689         * modules/string (Makefile.am): Likewise.
47690         * modules/strings (Makefile.am): Likewise.
47691         * modules/sys_select (Makefile.am): Likewise.
47692         * modules/sys_socket (Makefile.am): Likewise.
47693         * modules/sys_stat (Makefile.am): Likewise.
47694         * modules/sys_time (Makefile.am): Likewise.
47695         * modules/sysexits (Makefile.am): Likewise.
47696         * modules/time (Makefile.am): Likewise.
47697         * modules/unistd (Makefile.am): Likewise.
47698         * modules/wchar (Makefile.am): Likewise.
47699         * modules/wctype (Makefile.am): Likewise.
47700         Reported by Reuben Thomas <rrt@sc3d.org>.
47701
47702 2008-08-29  Bruno Haible  <bruno@clisp.org>
47703
47704         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47705         any more.
47706
47707 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47708
47709         * MODULES.html.sh (Misc): Add bitrotate.
47710
47711         * modules/bitrotate: New file.
47712
47713         * lib/bitrotate.h: New file.
47714
47715         * modules/bitrotate-tests: New file.
47716
47717         * tests/test-bitrotate.c: New file.
47718
47719         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47720         on the bitrotate module.
47721
47722         * lib/arctwo.c: Use new bitrotate module.
47723
47724 2008-08-29  Jim Meyering  <meyering@redhat.com>
47725
47726         bootstrap: merge changes from coreutils
47727         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47728         of copied files.  Remove a kludge, now that this is fixed.
47729         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47730         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47731         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47732
47733 2008-08-29  Bruno Haible  <bruno@clisp.org>
47734
47735         * MODULES.html.sh: Remove --cvs-urls option.
47736
47737 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47738
47739         maint.mk: adjust to file name change
47740         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47741
47742 2008-08-28  Jim Meyering  <meyering@redhat.com>
47743
47744         * modules/getndelim2 (License): Relicense to LGPLv2+.
47745         Approved by Richard Stallman for the version of 1995, and by
47746         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47747
47748 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47749
47750         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47751         dummy if one is not available.  Do not touch them if
47752         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47753         (getc_maybe_unlocked): New.
47754         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47755
47756 2008-08-26  Eric Blake  <ebb9@byu.net>
47757
47758         doc/INSTALL: resync from autoconf
47759         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47760         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47761         moving...
47762         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47763         * INSTALL: Regenerate.
47764         * INSTALL.ISO: New file.
47765         * INSTALL.UTF-8: Likewise.
47766
47767 2008-08-26  Jim Meyering  <meyering@redhat.com>
47768
47769         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47770         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47771         these definitions conditional, so that they may be overridden, too.
47772
47773 2008-08-26  Bruno Haible  <bruno@clisp.org>
47774
47775         Generate INSTALL file variants with prettier quotes.
47776         * doc/Makefile (INSTALL_PRELUDE): New macro.
47777         (INSTALL): Use it.
47778         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47779
47780 2008-08-26  Bruno Haible  <bruno@clisp.org>
47781
47782         Run makeinfo in an English locale.
47783         * doc/Makefile (MAKEINFO): New variable.
47784
47785 2008-08-26  Bruno Haible  <bruno@clisp.org>
47786
47787         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47788         Suggested by Eric Blake.
47789
47790 2008-08-25  Bruno Haible  <bruno@clisp.org>
47791
47792         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47793
47794 2008-08-25  Eric Blake  <ebb9@byu.net>
47795
47796         c-stack: test that stack overflow can be caught
47797         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47798         that platform allows handling stack overflow; at least OS/2 EMX
47799         has sigaltstack, but crashes before transferring control to
47800         handler on stack overflow.
47801         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47802         check for HAVE_STACK_OVERFLOW_HANDLING.
47803         Reported by Elbert Pol.
47804
47805 2008-08-25  Bruno Haible  <bruno@clisp.org>
47806
47807         * doc/posix-functions/strftime.texi: Fix description of strftime
47808         module.
47809
47810 2008-08-24  Bruno Haible  <bruno@clisp.org>
47811
47812         * tests/uniwidth/test-uc_width2.c: New file.
47813         * tests/uniwidth/test-uc_width2.sh: New file.
47814         * modules/uniwidth/width-tests (Files): Add the new files.
47815         (TESTS): Add uniwidth/test-uc_width2.sh.
47816         (TESTS_ENVIRONMENT): New variable.
47817         (check_PROGRAMS): Add test-uc_width2.
47818         (test_uc_width2_SOURCES): New variable.
47819
47820         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47821         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47822         not 0x00AB.
47823         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47824
47825 2008-08-22  Eric Blake  <ebb9@byu.net>
47826
47827         test-lock, test-tls: mention why a test is skipped
47828         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47829         skipped.
47830         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47831
47832         count-one-bits: relax license
47833         * modules/count-one-bits (License): Relicense to LGPLv2+.
47834         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47835
47836 2008-08-22  Andreas Schwab  <schwab@suse.de>
47837
47838         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47839         Remove spurious space in assignment.
47840
47841 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47842
47843         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47844         Paul Eggert <eggert@CS.UCLA.EDU>.
47845
47846 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47847
47848         * modules/gettext: Add m4/threadlib.m4.
47849
47850 2008-08-19  Eric Blake  <ebb9@byu.net>
47851
47852         test-c-stack: fix compilation failure on FreeBSD 5.0
47853         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47854         headers before <sys/resource.h>.
47855         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47856         the bug.
47857         Reported by Nelson H. F. Beebe.
47858
47859         strverscmp: migrate from "strverscmp.h" to <string.h>
47860         * modules/string (Makefile.am): Add new hooks.
47861         * modules/strverscmp (Files): Remove strverscmp.h.
47862         (Depends-on): Add string.
47863         (configure.ac): Add indicator.
47864         (Include): Mention new header.
47865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47866         defaults.
47867         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47868         results.
47869         * lib/strverscmp.h: Delete.
47870         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47871         * tests/test-strverscmp.c (includes): Adjust client.
47872         * lib/check-version.c (includes): Likewise.
47873         * NEWS: Document the change.
47874
47875         strverscmp: add unit test
47876         * modules/strverscmp-tests: New file.
47877         * tests/test-strverscmp.c: Likewise.
47878
47879 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47880
47881         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47882         regarding Windows crypto stuff, from Mono.
47883
47884 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47885
47886         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47887         if present, for intel RND.  Return error on failures.
47888
47889 2008-08-18  Ben Pfaff  <blp@gnu.org>
47890
47891         gitlog-to-changelog: give better diagnostic for failed pipe-open
47892         * build-aux/gitlog-to-changelog: Improve error message: suggest
47893         that the version of Git may be too old.
47894
47895 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47896
47897         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47898         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47899
47900 2008-08-18  Bruno Haible  <bruno@clisp.org>
47901
47902         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47903         pthread_in_use().
47904
47905 2008-08-18  Bruno Haible  <bruno@clisp.org>
47906
47907         * lib/glthread/threadlib.c: Include <pthread.h>.
47908
47909 2008-08-18  Bruno Haible  <bruno@clisp.org>
47910
47911         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47912         glthread_recursive_lock_* macros.
47913         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47914         Fix syntax error.
47915
47916 2008-08-18  Bruno Haible  <bruno@clisp.org>
47917
47918         * lib/glthread/thread.c: Avoid forcing a context switch right after
47919         thread creation.
47920
47921 2008-08-17  Bruno Haible  <bruno@clisp.org>
47922
47923         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47924         * lib/glthread/thread.h: Provide Win32 specific implementation.
47925         * modules/thread (Files): Add lib/glthread/thread.c.
47926         (Depends-on): Add lock.
47927         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47928
47929 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47930
47931         New module 'yield'.
47932         * modules/yield: New file.
47933         * lib/glthread/yield.h: New file.
47934         * m4/yield.m4: New file.
47935         * MODULES.html.sh (Multithreading): Add yield.
47936
47937 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47938
47939         New module 'thread'.
47940         * modules/thread: New file.
47941         * lib/glthread/thread.h: New file.
47942         * m4/thread.m4: New file.
47943         * MODULES.html.sh (Multithreading): Add thread.
47944
47945 2008-08-17  Bruno Haible  <bruno@clisp.org>
47946
47947         * lib/glthread/lock.h: Include <stdlib.h> always.
47948         * lib/glthread/tls.h: Likewise.
47949         * lib/glthread/cond.h: Likewise.
47950
47951 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47952
47953         New module 'cond'.
47954         * modules/cond: New file.
47955         * lib/glthread/cond.h: New file.
47956         * lib/glthread/cond.c: New file.
47957         * m4/cond.m4: New file.
47958         * MODULES.html.sh (Multithreading): Add cond.
47959
47960 2008-08-16  Eric Blake  <ebb9@byu.net>
47961
47962         c-stack: fix regression on Irix 5.3 from 2008-06-21
47963         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47964         sa_sigaction...
47965         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47966         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47967         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47968         * modules/signal (Makefile.am): Use the value.
47969         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47970         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47971         * doc/posix-headers/signal.texi (signal.h): Document this
47972         portability issue.
47973         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47974         Reported by Tom G. Christensen.
47975
47976 2008-08-17  Bruno Haible  <bruno@clisp.org>
47977
47978         New module 'threadlib'.
47979         * modules/threadlib: New file.
47980         * lib/glthread/threadlib.c: New file, extracted from
47981         lib/glthread/lock.c.
47982         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47983         functions.
47984         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47985         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47986         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47987         macros.
47988         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47989         (gl_DISABLE_THREADS): Remove macro.
47990         * modules/lock (Files): Remove build-aux/config.rpath.
47991         (Depends-on): Remove havelib. Add threadlib.
47992         (configure.ac-early): Remove section.
47993         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47994         * modules/tls (Depends-on): Remove lock. Add threadlib.
47995         (Link): New section, copied from threadlib.
47996         * MODULES.html.sh (Multithreading): Add threadlib.
47997
47998 2008-08-14  Bruno Haible  <bruno@clisp.org>
47999
48000         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48001         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48002         glthread_rwlock_unlock, glthread_rwlock_destroy,
48003         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48004         glthread_recursive_lock_destroy): Define as macros always.
48005         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48006         glthread_lock_lock.
48007         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48008         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48009         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48010         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48011         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48012         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48013         (glthread_recursive_lock_lock_func): Renamed from
48014         glthread_recursive_lock_lock.
48015         (glthread_recursive_lock_unlock_func): Renamed from
48016         glthread_recursive_lock_unlock.
48017         (glthread_recursive_lock_destroy_func): Renamed from
48018         glthread_recursive_lock_destroy.
48019
48020 2008-08-14  Bruno Haible  <bruno@clisp.org>
48021
48022         * lib/glthread/lock.h: Renamed from lib/lock.h.
48023         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48024         * lib/glthread/tls.h: Renamed from lib/tls.h.
48025         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48026         * lib/fstrcmp.c: Update includes.
48027         * lib/strsignal.c: Update includes.
48028         * modules/lock (Files, Makefile.am): Update.
48029         (Include): Change to "glthread/lock.h".
48030         * modules/tls (Files, Makefile.am): Update.
48031         (Include): Change to "glthread/tls.h".
48032         * tests/test-lock.c: Update includes.
48033         * tests/test-tls.c: Update includes.
48034         * NEWS: Mention the renamed header files.
48035
48036 2008-08-11  Jim Meyering  <meyering@redhat.com>
48037
48038         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48039
48040 2008-08-11  Eric Blake  <ebb9@byu.net>
48041
48042         test-c-stack: avoid C99-ism
48043         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48044         before statement.
48045         Reported by Alain Guibert.
48046
48047 2008-08-10  Jim Meyering  <meyering@redhat.com>
48048
48049         ensure that return value of uinttostr et al are not ignored
48050         * lib/inttostr.h (__GNUC_PREREQ): Define.
48051         (__attribute_warn_unused_result__): Define.
48052         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48053
48054 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48055
48056         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48057         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48058
48059 2008-08-07  Jim Meyering  <meyering@redhat.com>
48060
48061         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48062
48063         * modules/mkstemp (License): Relicense under LGPLv2+.
48064         * modules/tempname (License): Likewise.
48065
48066 2008-08-06  Bruno Haible  <bruno@clisp.org>
48067
48068         * lib/poll.c (poll): Further micro-optimization.
48069
48070 2008-08-06  Jim Meyering  <meyering@redhat.com>
48071
48072         inet_pton.c: use locale-independent tolower
48073         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48074         (inet_pton6): Use c_tolower rather than tolower.
48075         * modules/inet_pton (Depends-on): Add c-ctype.
48076
48077 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48078
48079         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48080         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48081
48082 2008-08-06  Jim Meyering  <meyering@redhat.com>
48083
48084         * modules/inet_pton (License): Relicense under LGPLv2+.
48085
48086 2008-08-03  Bruno Haible  <bruno@clisp.org>
48087
48088         Additional non-aborting API for lock and tls.
48089         * lib/lock.h: Include <errno.h>.
48090         (glthread_lock_init): New macro/function.
48091         (gl_lock_init): Define as wrapper around glthread_lock_init.
48092         (glthread_lock_lock): New macro/function.
48093         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48094         (glthread_lock_unlock): New macro/function.
48095         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48096         (glthread_lock_destroy): New macro/function.
48097         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48098         (glthread_rwlock_init): New macro/function.
48099         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48100         (glthread_rwlock_rdlock): New macro/function.
48101         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48102         (glthread_rwlock_wrlock): New macro/function.
48103         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48104         (glthread_rwlock_unlock): New macro/function.
48105         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48106         (glthread_rwlock_destroy): New macro/function.
48107         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48108         (glthread_recursive_lock_init): New macro/function.
48109         (gl_recursive_lock_init): Define as wrapper around
48110         glthread_recursive_lock_init.
48111         (glthread_recursive_lock_lock): New macro/function.
48112         (gl_recursive_lock_lock): Define as wrapper around
48113         glthread_recursive_lock_lock.
48114         (glthread_recursive_lock_unlock): New macro/function.
48115         (gl_recursive_lock_unlock): Define as wrapper around
48116         glthread_recursive_lock_unlock.
48117         (glthread_recursive_lock_destroy): New macro/function.
48118         (gl_recursive_lock_destroy): Define as wrapper around
48119         glthread_recursive_lock_destroy.
48120         (glthread_once): New macro/function.
48121         (gl_once): Define as wrapper around glthread_once.
48122         Update function declarations.
48123         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48124         glthread_rwlock_init. Return error code.
48125         (glthread_rwlock_rdlock_multithreaded): Renamed from
48126         glthread_rwlock_rdlock. Return error code.
48127         (glthread_rwlock_wrlock_multithreaded): Renamed from
48128         glthread_rwlock_wrlock. Return error code.
48129         (glthread_rwlock_unlock_multithreaded): Renamed from
48130         glthread_rwlock_unlock. Return error code.
48131         (glthread_rwlock_destroy_multithreaded): Renamed from
48132         glthread_rwlock_destroy. Return error code.
48133         (glthread_recursive_lock_init_multithreaded): Renamed from
48134         glthread_recursive_lock_init. Return error code.
48135         (glthread_recursive_lock_lock_multithreaded): Renamed from
48136         glthread_recursive_lock_lock. Return error code.
48137         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48138         glthread_recursive_lock_unlock. Return error code.
48139         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48140         glthread_recursive_lock_destroy. Return error code.
48141         (glthread_once_call): Make static.
48142         (glthread_once_multithreaded): Renamed from glthread_once.
48143         * lib/tls.h: Include <errno.h>.
48144         (glthread_tls_key_init): New macro/function.
48145         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48146         (glthread_tls_set): New macro/function.
48147         (gl_tls_set): Define as wrapper around glthread_tls_set.
48148         (glthread_tls_key_destroy): New macro/function.
48149         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48150         Update function declarations.
48151         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48152         glthread_tls_get.
48153         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48154
48155 2008-08-04  Eric Blake  <ebb9@byu.net>
48156
48157         gnumakefile: use space, not TAB, outside of targets
48158         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48159
48160 2008-08-02  Jim Meyering  <meyering@redhat.com>
48161
48162         getdate.y: avoid locale-dependent date parsing failure
48163         In Turkish locales, getdate would fail to recognize keywords
48164         containing a lowercase "i".  The solution is not to rely on
48165         locale-sensitive case-conversion.
48166         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48167         (lookup_word): Use c_toupper in place of toupper.
48168         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48169         Reported by Vefa Bicakci <bicave@superonline.com> in
48170         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48171         * modules/getdate (Depends-on): Add c-ctype.
48172
48173 2008-08-02  Bruno Haible  <bruno@clisp.org>
48174
48175         * gnulib-tool (func_import): When updating or creating a .gitignore
48176         file, prepend each added line with a slash, and ignore leading slashes
48177         from the existing lines.
48178         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48179
48180 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48181
48182         Portability fix for GNU make 3.79.1.
48183         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48184         versions do not understand.
48185
48186 2008-08-01  Bruno Haible  <bruno@clisp.org>
48187
48188         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48189         * tests/test-isnanf.h (zero): New variable.
48190         (main): Avoid literal -0.0f.
48191         * tests/test-isnand.h (zero): New variable.
48192         (main): Avoid literal -0.0.
48193         * tests/test-isnanl.h (zero): New variable.
48194         (main): Avoid literal -0.0L.
48195         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48196         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48197         -0.0, -0.0L.
48198         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48199         (test_signbitd): Avoid literal -0.0.
48200         (test_signbitl): Avoid literal -0.0L.
48201         * tests/test-ceilf1.c (zero): New variable.
48202         (main): Avoid literal -0.0f.
48203         * tests/test-ceill.c (zero): New variable.
48204         (main): Avoid literal -0.0L.
48205         * tests/test-floorf1.c (zero): New variable.
48206         (main): Avoid literal -0.0f.
48207         * tests/test-floorl.c (zero): New variable.
48208         (main): Avoid literal -0.0L.
48209         * tests/test-roundf1.c (zero): New variable.
48210         (main): Avoid literal -0.0f.
48211         * tests/test-round1.c (zero): New variable.
48212         (main): Avoid literal -0.0.
48213         * tests/test-roundl.c (zero): New variable.
48214         (main): Avoid literal -0.0L.
48215         * tests/test-truncf1.c (zero): New variable.
48216         (main): Avoid literal -0.0f.
48217         * tests/test-trunc1.c (zero): New variable.
48218         (main): Avoid literal -0.0.
48219         * tests/test-truncl.c (zero): New variable.
48220         (main): Avoid literal -0.0L.
48221         * tests/test-frexp.c (zero): New variable.
48222         (main): Avoid literal -0.0.
48223         * tests/test-frexpl.c (zero): New variable.
48224         (main): Avoid literal -0.0L.
48225         * tests/test-ldexpl.c (zero): New variable.
48226         (main): Avoid literal -0.0L.
48227         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48228         (zerod, zerol): New variables.
48229         (test_function): Avoid literals -0.0, -0.0L.
48230         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48231         (zerod, zerol): New variables.
48232         (test_function): Avoid literals -0.0, -0.0L.
48233         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48234         (zerod, zerol): New variables.
48235         (test_function): Avoid literals -0.0, -0.0L.
48236         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48237         (zerod, zerol): New variables.
48238         (test_function): Avoid literals -0.0, -0.0L.
48239         * tests/test-strtod.c (zero): New variable.
48240         (main): Avoid literal -0.0.
48241         Reported by Jonathan C. Patschke <jp@centtech.com>.
48242
48243 2008-07-31  Jim Meyering  <meyering@redhat.com>
48244
48245         sha256.h: correct definition of SHA224_DIGEST_SIZE
48246         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48247         Reported by Paulie Pena IV <paulie4@gmail.com>.
48248         Define as 224 / 8, rather than as a literal.
48249         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48250         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48251         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48252
48253 2008-07-31  Bruno Haible  <bruno@clisp.org>
48254
48255         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48256         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48257         Reported by Jonathan Patschke <jp@centtech.com>.
48258
48259 2008-07-31  Bruno Haible  <bruno@clisp.org>
48260
48261         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48262         Reported by Paolo Bonzini <bonzini@gnu.org>.
48263
48264 2008-07-30  Eric Blake  <ebb9@byu.net>
48265
48266         test-strtod: allow compilation without -lm
48267         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48268         Reported by Dennis Clarke <blastwave@gmail.com>.
48269
48270 2008-07-28  Jim Meyering  <meyering@redhat.com>
48271
48272         bootstrap: work also when there are no .po files in po/
48273         * build-aux/bootstrap (update_po_files): Complete the change
48274         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48275
48276 2008-07-27  Jim Meyering  <meyering@redhat.com>
48277
48278         * users.txt: Add zile.
48279
48280 2008-07-26  Ben Pfaff  <blp@gnu.org>
48281
48282         Add missing dependencies on new m4/exponent[fdl].m4 files.
48283         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48284         * modules/isnand-nolibm: Add m4/exponentd.m4.
48285         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48286         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48287         m4/isnan[fdl].m4, because the macros actually used moved.
48288         Reported by Jim Meyering.
48289
48290 2008-07-14  Ben Pfaff  <blp@gnu.org>
48291
48292         Add isinf module.
48293         * lib/isinf.c: New file.
48294         * lib/math.in.h: Define isinf macro if we have decided to replace
48295         it.
48296         * m4/isinf.m4: New file.
48297         * m4/math_h.m4: Initialize and substitute variables for isinf
48298         module.
48299         * modules/isinf: New file.
48300         * modules/isinf-tests: New file.
48301         * modules/math: Add substitutions for new module.
48302         * tests/test-isinf.c: New file.
48303         * doc/posix-functions/isinf.texi: Mention new module.
48304         * MODULES.html.sh: Mention new module.
48305
48306 2008-07-14  Ben Pfaff  <blp@gnu.org>
48307
48308         Factor out some macros for use by additional modules.
48309         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48310         exponentf.m4.
48311         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48312         exponentd.m4.
48313         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48314         file exponentl.m4.
48315         * m4/exponentf.m4: New file.
48316         * m4/exponentd.m4: New file.
48317         * m4/exponentl.m4: New file.
48318         * modules/isnanf: Use new file m4/exponentf.m4.
48319         * modules/isnand: Use new file m4/exponentd.m4.
48320         * modules/isnanl: Use new file m4/exponentl.m4.
48321
48322 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48323
48324         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48325         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48326         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48327         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48328
48329         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48330         readlink on platforms without PATH_MAX.
48331
48332 2008-07-21  Eric Blake  <ebb9@byu.net>
48333
48334         Warn, not fail, on stale version.
48335         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48336
48337         Don't allow installation with stale devel version number.
48338         * top/GNUmakefile (_is-install-target): New macro.
48339         (_curr-ver): Forbid installation with stale version number.
48340
48341 2008-07-20  Bruno Haible  <bruno@clisp.org>
48342
48343         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48344         TESTS_ENVIRONMENT.
48345         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48346
48347 2008-07-20  Bruno Haible  <bruno@clisp.org>
48348
48349         * lib/c-stack.h (c_stack_action): Add documentation.
48350         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48351
48352 2008-07-20  Bruno Haible  <bruno@clisp.org>
48353
48354         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48355         * modules/readlink (License): Likewise.
48356
48357 2008-07-17  Eric Blake  <ebb9@byu.net>
48358
48359         * modules/c-stack (Link): Fix typo.
48360
48361         Make c-stack use libsigsegv, when available.
48362         * modules/c-stack (Depends-on): Add libsigsegv.
48363         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48364         needed.
48365         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48366         (segv_handler, overflow_handler, c_stack_action)
48367         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48368         implementation when libsigsegv is available, but only when using
48369         the library is necessary.
48370         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48371         comment, explaining why XSI check fails on Linux.
48372         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48373         * tests/test-c-stack2.sh: Tweak skip message.
48374         * NEWS: Document new link-time requirements.
48375
48376 2008-07-16  Eric Blake  <ebb9@byu.net>
48377
48378         c-stack: Expose false positives when not using libsigsegv.
48379         * modules/c-stack-tests (Files): Expand test.
48380         * tests/test-c-stack.c (main): Add means to conditionally trigger
48381         non-overflow SIGSEGV.
48382         * tests/test-c-stack2.sh: New file.
48383
48384 2008-07-14  Bruno Haible  <bruno@clisp.org>
48385
48386         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48387         Reported by Eric Blake.
48388
48389 2008-07-14  Sam Steingold  <sds@gnu.org>
48390             Bruno Haible  <bruno@clisp.org>
48391
48392         New module libsigsegv.
48393         * modules/libsigsegv: New file.
48394         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48395         modifications.
48396         * MODULES.html.sh (Signal handling): New section.
48397
48398 2008-07-14  Bruno Haible  <bruno@clisp.org>
48399
48400         * modules/unictype/ctype-* (Description): Add the word "function".
48401         Improves the resulting doc in MODULES.html.
48402
48403 2008-07-12  Ben Pfaff  <blp@gnu.org>
48404
48405         Add longlong module.
48406         * modules/longlong: New file.
48407
48408 2008-07-12  Bruno Haible  <bruno@clisp.org>
48409
48410         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48411         to empty.
48412
48413 2008-07-10  Ben Pfaff  <blp@gnu.org>
48414
48415         Add isnan module.
48416         * doc/posix-functions/isnan.texi: Mention new module.
48417         * lib/math.in.h: Define isnan macro if we have decided to replace
48418         it.
48419         * m4/isnan.m4: New file.
48420         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48421         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48422         also.
48423         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48424         redundancy.
48425         * m4/math_h.m4: Initialize and substitute variables for isnan
48426         module.
48427         * modules/isnan: New file.
48428         * modules/isnan-tests: New file.
48429         * modules/math: Add substitutions for new module.
48430         * tests/test-isnan.c: New file.
48431         * MODULES.html.sh: Mention new module.
48432
48433 2008-07-10  Ben Pfaff  <blp@gnu.org>
48434
48435         Add isnanf module.
48436         * lib/isnanf.m4: New file.
48437         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48438         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48439         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48440         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48441         * modules/isnanf: New file.
48442         * modules/isnanf-tests: New file.
48443         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48444         files.
48445         * tests/test-isnanf-nolibm.c: factored most of its contents into
48446         new file tests/test-isnanf.h.
48447         * tests/test-isnanf.h: New file.
48448         * tests/test-isnanf.c: New file.
48449         * MODULES.html.sh: Mention new module.
48450         * doc/glibc-functions/isnanf.texi: Mention new module.
48451
48452 2008-07-10  Ben Pfaff  <blp@gnu.org>
48453
48454         Add isnand module.
48455         * lib/isnand.h: New file.
48456         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48457         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48458         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48459         functionality also.
48460         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48461         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48462         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48463         * modules/isnand: New file.
48464         * modules/isnand-tests: New file.
48465         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48466         files.
48467         * tests/test-isnand-nolibm.c: factored most of its contents into
48468         new file tests/test-isnand.h.
48469         * tests/test-isnand.h: New file.
48470         * tests/test-isnand.c: New file.
48471         * MODULES.html.sh: Mention new module.
48472
48473 2008-07-10  Ben Pfaff  <blp@gnu.org>
48474
48475         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48476         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48477         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48478         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48479         * modules/isnanf-nolibm: Update references to renamed files.
48480         * modules/isnand-nolibm: Likewise.
48481         * modules/isnanf-nolibm-tests: Likewise.
48482         * modules/isnand-nolibm-tests: Likewise.
48483         * lib/frexp.c: Likewise.
48484         * lib/isfinite.c: Likewise.
48485         * lib/signbitd.c: Likewise.
48486         * lib/signbitf.c: Likewise.
48487         * lib/vasnprintf.c: Likewise.
48488         * tests/test-ceilf1.c: Likewise.
48489         * tests/test-ceilf2.c: Likewise.
48490         * tests/test-floorf1.c: Likewise.
48491         * tests/test-floorf2.c: Likewise.
48492         * tests/test-frexp.c: Likewise.
48493         * tests/test-round1.c: Likewise.
48494         * tests/test-round2.c: Likewise.
48495         * tests/test-roundf1.c: Likewise.
48496         * tests/test-strtod.c: Likewise.
48497         * tests/test-trunc1.c: Likewise.
48498         * tests/test-trunc2.c: Likewise.
48499         * tests/test-truncf1.c: Likewise.
48500         * tests/test-truncf2.c: Likewise.
48501         * NEWS: Mention the renamed header files.
48502
48503 2008-07-11  Jim Meyering  <meyering@redhat.com>
48504
48505         vc-list-files: make the last-resort awk code more portable
48506         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48507         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48508         does not support it.
48509
48510 2008-07-10  Eric Blake  <ebb9@byu.net>
48511
48512         Work with tar's bootstrap.
48513         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48514         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48515         an m4 comment.
48516
48517 2008-07-09  Jim Meyering  <meyering@redhat.com>
48518
48519         posix-shell.m4: fix typo that made this test malfunction
48520         * m4/posix-shell.m4: Remove capitalization in variable name.
48521
48522 2008-07-08  Bruno Haible  <bruno@clisp.org>
48523
48524         * m4/onceonly.m4: Update comments.
48525         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48526
48527 2008-07-04  Jim Meyering  <meyering@redhat.com>
48528
48529         * users.txt: Add vc-dwim.
48530         (bison, coreutils): Use the gitweb URL.
48531
48532 2008-07-03  Jim Meyering  <meyering@redhat.com>
48533
48534         * users.txt: Add libffcall.  From Sam Steingold.
48535
48536 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48537
48538         getdate.y: do not ignore TZ with relative day, month or year offset
48539         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48540         relative-date-handling, since otherwise, the latter would clobber the
48541         sole output (an updated Start value) of the tz-handling block.
48542         * tests/test-getdate.c: Tests for the fix
48543
48544 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48545
48546         Recognize 'foo_LIBRARIES += libgnu.a'.
48547         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48548         makefile snippet has already specified an installation location,
48549         also using '+='.
48550
48551 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48552
48553         getdate.y: factor out common actions
48554         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48555         Use them in place of open-coded actions.
48556
48557 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48558
48559         Add self-test for getdate module.
48560         * modules/getdate-tests: New file.
48561         * tests/test-getdate.c: New file.
48562
48563 2008-06-29  Bruno Haible  <bruno@clisp.org>
48564
48565         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48566         .gitignore.
48567         Reported by Sylvain Beucler <beuc@beuc.net>.
48568
48569 2008-06-29  Bruno Haible  <bruno@clisp.org>
48570
48571         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48572         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48573
48574 2008-06-29  Bruno Haible  <bruno@clisp.org>
48575
48576         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48577         EXTRA_DIST.
48578         Reported by Sylvain Beucler <beuc@beuc.net>.
48579
48580 2008-06-26  Jim Meyering  <meyering@redhat.com>
48581
48582         make several modules depend on the "open" module
48583         This provides slightly increased consistency when opening-for-write
48584         the name of a non-directory spelled with a trailing slash.
48585         * modules/chdir-safer: Likewise.
48586         * modules/chown: Likewise.
48587         * modules/clean-temp: Likewise.
48588         * modules/copy-file: Likewise.
48589         * modules/fchdir: Likewise.
48590         * modules/fcntl-safer: Likewise.
48591         * modules/pipe: Likewise.
48592         * modules/utime: Likewise.
48593         Prompted by Eric Blake and Bruno Haible.
48594
48595 2008-06-24  Andreas Schwab  <schwab@suse.de>
48596
48597         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48598         literals can be used as initializers for global variables.
48599
48600 2008-06-23  Eric Blake  <ebb9@byu.net>
48601
48602         Make gnulib-cache.m4 easier to diff.
48603         * gnulib-tool (func_import): Allow newlines when reading cached
48604         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48605
48606 2008-06-23  Bruno Haible  <bruno@clisp.org>
48607
48608         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48609         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48610         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48611         m4/signalblocking.m4.
48612         (gl_PREREQ_SIGACTION): Don't invoke it.
48613         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48614         gl_PREREQ_SIG_HANDLER_H.
48615         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48616         Don't check for sigaction here.
48617
48618 2008-06-23  Bruno Haible  <bruno@clisp.org>
48619
48620         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48621         (install_handlers): Don't set the SA_RESETHAND flag.
48622
48623 2008-06-23  Bruno Haible  <bruno@clisp.org>
48624
48625         * m4/sigaction.m4: Comment fixes.
48626         * lib/signal.in.h: Likewise.
48627
48628 2008-06-23  Eric Blake  <ebb9@byu.net>
48629
48630         Fix typo.
48631         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48632
48633         Avoid SA_ namespace.
48634         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48635         Reported by Ralf Wildenhues.
48636
48637         Avoid test failure due to SA_RESTORER.
48638         * tests/test-sigaction.c (SA_MASK): New macro.
48639         (main): Avoid failing due to extension flags being set.
48640         Reported by Jim Meyering.
48641
48642         Revert use of sig-handler.h in sigprocmask.c.
48643         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48644         it requires the existence of struct sigaction.
48645         * lib/sigprocmask.c (handler_t): Restore typedef.
48646         (rpl_signal, old_handlers): Use local type.
48647
48648 2008-06-22  Bruno Haible  <bruno@clisp.org>
48649
48650         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48651         conditionally.
48652         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48653
48654 2008-06-22  Bruno Haible  <bruno@clisp.org>
48655
48656         * doc/posix-functions/siginterrupt.texi: Move note.
48657
48658         * lib/signal.in.h (SA_RESTART): New macro.
48659         * lib/sigaction.c: Update comment.
48660
48661         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48662
48663         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48664         (gl_PREREQ_SIGPROCMASK): Invoke it.
48665         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48666
48667         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48668
48669         * lib/sigprocmask.c: Update a comment.
48670
48671 2008-06-21  Eric Blake  <ebb9@byu.net>
48672
48673         Use sigaction module rather than signal().
48674         * modules/c-stack (Depends-on): Add sigaction.
48675         * modules/fatal-signal (Depends-on): Likewise.
48676         * modules/nanosleep (Depends-on): Likewise.
48677         * modules/sigprocmask (Files): Add sig-handler.h.
48678         * modules/sigaction (Files): Likewise.
48679         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48680         Eggert.
48681         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48682         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48683         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48684         (init_fatal_signals): Likewise.
48685         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48686         (siginterrupt): Delete fallback.
48687         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48688         instead.
48689         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48690         siginterrupt.
48691
48692         New module sigaction, for mingw.
48693         * modules/sigaction: New module...
48694         * modules/sigaction-tests: ...and its test.
48695         * m4/sigaction.m4: New file.
48696         * lib/sigaction.c: Likewise.
48697         * tests/test-sigaction.c: Likewise.
48698         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48699         * modules/signal (Makefile.am): Likewise.
48700         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48701         needed.
48702         * doc/posix-headers/signal.texi (signal.h): Mention provided
48703         types.
48704         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48705         that sigaction is preferable.
48706         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48707         module.
48708         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48709         sigaction.
48710
48711         Improve robustness of sigprocmask by overriding signal.
48712         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48713         is in use.
48714         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48715         (SIGKILL, SIGSTOP): Provide fallbacks.
48716         (rpl_signal): Implement.
48717         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48718         signal can be called inside handlers.
48719
48720         Fix nanosleep module on mingw.
48721         * modules/nanosleep (Depends-on): Add sys_select.
48722         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48723
48724         Fix licensing of sigprocmask.
48725         * modules/raise (License): Relicense as LGPL.
48726
48727 2008-06-21  Bruno Haible  <bruno@clisp.org>
48728
48729         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48730         result if it contains question marks.
48731         Reported by Michael Geng <linux@michaelgeng.de>.
48732
48733 2008-06-19  Bruno Haible  <bruno@clisp.org>
48734
48735         Fix CVS-ism.
48736         * doc/gnulib.texi: Include updated-stamp.texi.
48737         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48738         (updated-stamp.texi): New rule.
48739         (gnulib.info): Depend on it.
48740         * doc/.gitignore: Add updated-stamp.texi.
48741         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48742
48743 2008-06-19  Bruno Haible  <bruno@clisp.org>
48744
48745         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48746         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48747
48748 2008-06-19  Eric Blake  <ebb9@byu.net>
48749
48750         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48751         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48752         Reported by Stepan Kasal.
48753
48754 2008-06-18  Bruno Haible  <bruno@clisp.org>
48755
48756         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48757         Reported by Eric Blake.
48758
48759 2008-06-18  Eric Blake  <ebb9@byu.net>
48760
48761         Work around cygwin 1.5.25 strsignal bug.
48762         * tests/test-strsignal.c: Allow for const char *.
48763         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48764
48765 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48766
48767         * users.txt: Update URL to article and add author/date
48768         information.
48769
48770 2008-06-17  Bruno Haible  <bruno@clisp.org>
48771
48772         New macro gl_DISABLE_THREADS.
48773         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48774         if the user did not pass --enable-threads or --disable-threads option.
48775         (gl_DISABLE_THREADS): New macro.
48776         Reported by Eric Blake <ebb9@byu.net>.
48777
48778 2008-06-17  Bruno Haible  <bruno@clisp.org>
48779
48780         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48781         when the macro ignores it.
48782         Based on a patch by Eric Blake <ebb9@byu.net>.
48783
48784 2008-06-17  Bruno Haible  <bruno@clisp.org>
48785
48786         * modules/tls (License): Change to LGPLv2+.
48787         Reported by Eric Blake.
48788
48789 2008-06-17  Eric Blake  <ebb9@byu.net>
48790
48791         Simplify c-stack prerequisites.
48792         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48793         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48794         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48795         check.
48796         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48797         <sys/resource.h>.
48798
48799         Move c-stack test into testsuite.
48800         * modules/c-stack-tests: New file.
48801         * lib/c-stack.c [DEBUG]: Move test program...
48802         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48803         fail test if sigaltstack is lacking.
48804         * tests/test-c-stack.sh: New driver file.
48805
48806 2008-06-16  Eric Blake  <ebb9@byu.net>
48807
48808         Use raise module consistently.
48809         * modules/fatal-signal (Depends-on): Add raise.
48810         * modules/sigprocmask (Depends-on): Likewise.
48811         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48812         * lib/sigprocmask.c (sigprocmask): Likewise.
48813         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48814         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48815
48816         Fix compliance bug in sigpending.
48817         * lib/sigprocmask.c (sigpending): Return pending array via
48818         parameter, not return value.
48819
48820 2008-06-14  Eric Blake  <ebb9@byu.net>
48821
48822         Improve obstack-printf test code.
48823         * tests/test-obstack-printf.c (test_function): Fix comment, and
48824         simplify usage of obstack_* in macros.  Add a test for coverage.
48825         Reported by Bruno Haible.
48826
48827 2008-06-14  Bruno Haible  <bruno@clisp.org>
48828
48829         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48830         array size as a constant, not as a const variable.
48831         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48832         AC_USE_SYSTEM_EXTENSIONS.
48833         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48834         Test whether the obstack_printf function actually exists.
48835         * modules/obstack-printf (Depends-on): Add extensions.
48836         (Include): Remove obstack.h.
48837         * modules/obstack-printf-posix (Depends-on): Add extensions.
48838         (Include): Remove obstack.h.
48839
48840 2008-06-13  Eric Blake  <ebb9@byu.net>
48841
48842         Add obstack-printf and obstack-printf-posix modules.
48843         * modules/obstack-printf: New file.
48844         * modules/obstack-printf-posix: Likewise.
48845         * MODULES.html.sh (Misc): Mention them.
48846         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48847         Likewise.
48848         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48849         Likewise.
48850         * modules/stdio (Makefile.am): Accomodate new modules.
48851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48852         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48853         Declare.
48854         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48855         functions.
48856         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48857         (gl_REPLACE_OBSTACK_PRINTF): New macros
48858         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48859         * tests/test-obstack-printf.c: New file.
48860         * modules/obstack-printf-tests: Likewise.
48861         * modules/obstack-printf-posix-tests: Likewise.
48862
48863 2008-06-11  Bruno Haible  <bruno@clisp.org>
48864
48865         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48866         * lib/open.c: Include errno.h.
48867         (open): Fail when attempting to write to a file that has a trailing
48868         slash.
48869         * tests/test-open.c (main): Test against trailing slash bug.
48870         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48871
48872 2008-06-10  Bruno Haible  <bruno@clisp.org>
48873
48874         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48875         for $? to work inside the trap command, with various /bin/sh-s.
48876         * tests/test-vc-list-files-cvs.sh: Likewise.
48877
48878 2008-06-10  Bruno Haible  <bruno@clisp.org>
48879
48880         * lib/acl-internal.h: Don't include gettext.h here.
48881         * lib/set-mode-acl.c: Include gettext.h here.
48882         * lib/copy-acl.c: Likewise.
48883
48884 2008-06-10  Bruno Haible  <bruno@clisp.org>
48885
48886         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48887         * lib/wait-process.c (wait_subprocess): Likewise.
48888         * lib/execute.h (execute): Add termsigp argument.
48889         * lib/execute.c (execute): Likewise.
48890         * lib/csharpcomp.c (compile_csharp_using_pnet,
48891         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48892         * lib/csharpexec.c (execute_csharp_using_pnet,
48893         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48894         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48895         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48896         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48897         is_jikes_present): Update.
48898         * lib/javaexec.c (execute_java_class): Update.
48899         * lib/javaversion.c (execute_and_read_line): Update.
48900         * NEWS: Document the changes.
48901         Reported by Eric Blake.
48902
48903 2008-06-10  Eric Blake  <ebb9@byu.net>
48904
48905         Add missing include.
48906         * tests/test-strstr.c (includes): Add <signal.h>.
48907         * tests/test-strcasestr.c (includes): Likewise.
48908         * tests/test-memmem.c (includes): Likewise.
48909
48910 2008-06-10  Bruno Haible  <bruno@clisp.org>
48911
48912         * lib/wait-process.c (wait_subprocess): Add an assertion.
48913
48914 2008-06-10  Bruno Haible  <bruno@clisp.org>
48915
48916         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48917
48918 2008-06-10  Bruno Haible  <bruno@clisp.org>
48919
48920         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48921         using alarm().
48922         * tests/test-strcasestr.c (main): Likewise.
48923         * tests/test-strstr.c (main): Likewise.
48924
48925 2008-06-09  Bruno Haible  <bruno@clisp.org>
48926
48927         Work around the Solaris 10 ACE ACLs ABI change.
48928         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48929         declare if ACL_NO_TRIVIAL is present.
48930         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48931         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48932         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48933         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48934         define if ACL_NO_TRIVIAL is present.
48935         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48936         and use the current ABI.
48937         (file_has_acl): Use same #if condition as elsewhere.
48938         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48939         in use, and use the current ABI.
48940         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48941         Reported by Jim Meyering.
48942
48943 2008-06-09  Eric Blake  <ebb9@byu.net>
48944
48945         Work around environments that (stupidly) ignore SIGALRM.
48946         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48947         before using alarm().
48948         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48949         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48950         Reported by Ian Beckwith <ianb@erislabs.net>.
48951
48952         Produce autobuild blurb earlier in log.
48953         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48954
48955 2008-06-09  Jim Meyering  <meyering@redhat.com>
48956         and OndÅ™ej Vašík  <ovasik@redhat.com>
48957
48958         utimens.c: correct kernel bug work-around
48959         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48960         failure, not success, and the kernel bug we're trying to work
48961         around affects not just the utimensat call, but also the fallback
48962         futimens call.
48963         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48964         not success.
48965         [HAVE_FUTIMENS]: Use the same work-around, here.
48966
48967 2008-06-09  Jim Meyering  <meyering@redhat.com>
48968
48969         add more guards around definition of ACE_-related code
48970         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48971         ALLOW and ACE_OWNER are also defined.
48972
48973 2008-06-08  Bruno Haible  <bruno@clisp.org>
48974
48975         * lib/acl-internal.h: Add me as co-author.
48976         * lib/file-has-acl.c: Likewise.
48977         * lib/set-mode-acl.c: Likewise.
48978         * lib/copy-acl.c: Likewise.
48979
48980 2008-06-08  Bruno Haible  <bruno@clisp.org>
48981
48982         Add support for AIX ACLs.
48983         * lib/acl-internal.h (acl_nontrivial): New declaration.
48984         * lib/file-has-acl.c (acl_nontrivial): New function.
48985         (file_has_acl): Add implementation using AIX 4 ACL API.
48986         * lib/set-mode-acl.c (qset_acl): Likewise.
48987         * lib/copy-acl.c (qcopy_acl): Likewise.
48988
48989 2008-06-08  Bruno Haible  <bruno@clisp.org>
48990
48991         Add support for HP-UX ACLs.
48992         * lib/acl-internal.h (acl_nontrivial): New declaration.
48993         * lib/file-has-acl.c (acl_nontrivial): New function.
48994         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48995         * lib/set-mode-acl.c (qset_acl): Likewise.
48996         * lib/copy-acl.c (qcopy_acl): Likewise.
48997
48998 2008-06-08  Bruno Haible  <bruno@clisp.org>
48999
49000         Add support for Cygwin ACLs.
49001         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49002         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49003         the chmod_or_fchmod call.
49004         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49005
49006 2008-06-08  Bruno Haible  <bruno@clisp.org>
49007
49008         Fix bug with setuid modes in Solaris 10+ code.
49009         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49010         succeeded, when the mode contains some special bits.
49011
49012 2008-06-08  Bruno Haible  <bruno@clisp.org>
49013
49014         Add support for Solaris 7..10 ACLs.
49015         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49016         declarations.
49017         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49018         functions.
49019         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49020         * lib/set-mode-acl.c (qset_acl): Likewise.
49021         * lib/copy-acl.c (qcopy_acl): Likewise.
49022
49023 2008-06-08  Bruno Haible  <bruno@clisp.org>
49024
49025         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49026         declaration.
49027         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49028         (acl_access_nontrivial): Remove MacOS X case.
49029         (file_has_acl): Use acl_extended_nontrivial.
49030         * lib/copy-acl.c (qcopy_acl): Likewise.
49031
49032 2008-06-08  Bruno Haible  <bruno@clisp.org>
49033
49034         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49035
49036 2008-06-08  Jim Meyering  <meyering@redhat.com>
49037
49038         * modules/acl (Maintainer): Add Bruno Haible.
49039
49040 2008-06-07  Bruno Haible  <bruno@clisp.org>
49041
49042         Improve support for Tru64 ACLs.
49043         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49044         ACL on OSF/1.
49045
49046 2008-06-07  Bruno Haible  <bruno@clisp.org>
49047
49048         Add support for MacOS X ACLs.
49049         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49050         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49051         * lib/set-mode-acl.c (qset_acl): Likewise.
49052         * lib/copy-acl.c (qcopy_acl): Likewise.
49053
49054 2008-06-07  Bruno Haible  <bruno@clisp.org>
49055
49056         Fix memory leak introduced on 2008-05-22.
49057         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49058         use.
49059
49060 2008-06-07  Bruno Haible  <bruno@clisp.org>
49061
49062         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49063         to construct an empty ACL.
49064
49065 2008-06-07  Bruno Haible  <bruno@clisp.org>
49066
49067         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49068         precisely.
49069         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49070
49071 2008-06-07  Bruno Haible  <bruno@clisp.org>
49072
49073         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49074         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49075
49076 2008-06-07  Bruno Haible  <bruno@clisp.org>
49077
49078         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49079         regardless of POSIX.
49080         * doc/posix-functions/_longjmp.texi: Likewise.
49081         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49082         SystemV platform in this case.
49083
49084 2008-06-06  Eric Blake  <ebb9@byu.net>
49085
49086         Document abort() bugs.
49087         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49088
49089         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49090         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49091         sigsetjmp.
49092         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49093         siglongjmp, but only as a macro.
49094         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49095         is obsolete.
49096         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49097
49098         Tweak documentation to cover cygwin argz bugs.
49099         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49100         argz bug fix; no code change needed since no cygwin releases
49101         occurred between the last fix and the bug being tested.
49102         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49103         module and recently fixed cygwin bugs.
49104         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49105         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49106         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49107         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49108         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49109         Likewise.
49110         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49111         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49112         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49113         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49114         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49115         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49116         Likewise.
49117
49118         Avoid gcc warning on cygwin.
49119         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49120         !ACL_NO_TRIVIAL]: Avoid unused variable.
49121
49122 2008-06-05  Eric Blake  <ebb9@byu.net>
49123
49124         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49125         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49126         git-version-gen fails to come up with a version.
49127         Reported by Simon Josefsson.
49128
49129 2008-06-05  Jim Meyering  <meyering@redhat.com>
49130             Paul Eggert  <eggert@cs.ucla.edu>
49131
49132         utimens.c: work around a probable Linux kernel bug
49133         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49134         appears to be a kernel bug that causes utimensat to return 280
49135         instead of 0, indicating success.
49136
49137 2008-06-04  Bruno Haible  <bruno@clisp.org>
49138
49139         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49140         2008-06-01 commit.
49141
49142 2008-06-04  Bruno Haible  <bruno@clisp.org>
49143
49144         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49145         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49146         (file_has_acl): Use it. Save errno afterwards.
49147         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49148
49149 2008-06-03  Bruno Haible  <bruno@clisp.org>
49150
49151         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49152         draft code. Simplify #ifs.
49153         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49154         Put Solaris code after POSIX-draft code. Fix comments regarding
49155         Solaris 10, HP-UX. Mention Cygwin.
49156         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49157
49158 2008-06-03  Eric Blake  <ebb9@byu.net>
49159
49160         Provide fallback for older kernels.
49161         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49162         Provide runtime fallback if kernel lacks support.
49163         Reported by Mike Frysinger.
49164
49165 2008-06-02  Bruno Haible  <bruno@clisp.org>
49166
49167         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49168         it exists.
49169
49170 2008-06-02  Bruno Haible  <bruno@clisp.org>
49171
49172         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49173         * lib/copy-acl.c (qcopy_acl): Update comment.
49174
49175 2008-06-02  Bruno Haible  <bruno@clisp.org>
49176
49177         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49178         like ACL APIs.
49179
49180 2008-06-02  Bruno Haible  <bruno@clisp.org>
49181
49182         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49183         * tests/test-set-mode-acl.sh: Likewise.
49184         * tests/test-copy-acl.sh: Likewise.
49185         * tests/test-copy-file.sh: Likewise.
49186
49187 2008-06-02  Bruno Haible  <bruno@clisp.org>
49188
49189         * tests/test-file-has-acl.sh: Remove unused code.
49190
49191 2008-06-01  Bruno Haible  <bruno@clisp.org>
49192
49193         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49194         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49195         messages.
49196         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49197
49198 2008-06-01  Bruno Haible  <bruno@clisp.org>
49199
49200         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49201         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49202         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49203         APIs.
49204         * modules/acl-tests (configure.ac): Remove tests now contained in
49205         m4/acl.m4.
49206
49207 2008-06-02  Jim Meyering  <meyering@redhat.com>
49208
49209         announce-gen: use a better key-server host name
49210         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49211         it may be more consistently reliable.  Suggested by Werner Koch
49212         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49213
49214 2008-06-01  Bruno Haible  <bruno@clisp.org>
49215
49216         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49217         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49218
49219 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49220
49221         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49222
49223 2008-06-01  Bruno Haible  <bruno@clisp.org>
49224
49225         New ACL tests.
49226         * tests/test-file-has-acl.sh: New file.
49227         * tests/test-file-has-acl.c: New file.
49228         * tests/test-set-mode-acl.sh: New file.
49229         * tests/test-set-mode-acl.c: New file.
49230         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49231         * tests/test-copy-acl.c: New file.
49232         * modules/acl-tests: New file, based on modules/copy-file-tests.
49233         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49234         (Depends-on): Add acl-tests.
49235         (configure.ac): Remove checks.
49236         (Makefile.am): Don't create test-sameacls program here any more.
49237
49238 2008-06-01  Bruno Haible  <bruno@clisp.org>
49239
49240         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49241         * tests/test-sameacls.c: Include progname.h.
49242         (main): Invoke set_program_name. Portability fixes for MacOS X,
49243         Solaris, HP-UX.
49244
49245 2008-06-01  Bruno Haible  <bruno@clisp.org>
49246
49247         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49248         function.
49249         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49250
49251 2008-06-01  Bruno Haible  <bruno@clisp.org>
49252
49253         * modules/rpmatch (Depends-on): Add strdup.
49254
49255 2008-06-01  Bruno Haible  <bruno@clisp.org>
49256
49257         * lib/pipe.c: Include unistd-safer.h.
49258         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49259         * modules/pipe (Depends-on): Add unistd-safer.
49260
49261 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49262
49263         * modules/autobuild (configure.ac): Call AB_INIT.
49264
49265 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49266
49267         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49268         Suggested by Bruno Haible <bruno@clisp.org>.
49269
49270 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49271
49272         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49273         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49274         <bruno@clisp.org>.
49275
49276 2008-05-29  Eric Blake  <ebb9@byu.net>
49277
49278         Prefer new POSIX 200x interfaces over futimesat.
49279         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49280         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49281         when available.
49282         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49283
49284 2008-05-28  Bruno Haible  <bruno@clisp.org>
49285
49286         * modules/stpcpy (License): Change to LGPLv2+.
49287         Requested by David Lutterkort <dlutter@redhat.com>.
49288
49289 2008-05-27  Bruno Haible  <bruno@clisp.org>
49290
49291         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49292         current mingw.
49293         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49294
49295 2008-05-27  Bruno Haible  <bruno@clisp.org>
49296
49297         * modules/iconv_open (Link): New section, from module 'iconv'.
49298         * modules/striconv (Link): Likewise.
49299         * modules/striconveh (Link): Likewise.
49300         * modules/xstriconv (Link): Likewise.
49301         * modules/unicodeio (Link): Likewise.
49302         * modules/propername (Link): Likewise.
49303         Reported by Jim Meyering.
49304
49305 2008-05-26  Jim Meyering  <meyering@redhat.com>
49306
49307         sha256: do not artificially restrict buffer length to be < 2^32
49308         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49309         uint32_t to size_t.
49310         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49311         to match.
49312
49313         avoid unaligned access errors, e.g., on sparc
49314         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49315         direct access through a possibly-unaligned uint64* pointer.
49316         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49317         direct access through a possibly-unaligned uint32* pointer.
49318         Prompted by this patch from Tom "spot" Callaway:
49319         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49320
49321         sha512.c: fix typo in comment
49322         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49323
49324 2008-05-25  Bruno Haible  <bruno@clisp.org>
49325
49326         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49327         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49328         (Makefile.am): Update lib_SOURCES.
49329
49330 2008-05-25  Bruno Haible  <bruno@clisp.org>
49331
49332         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49333
49334 2008-05-25  Jim Meyering  <meyering@redhat.com>
49335
49336         useless-if-before-free: freed expr may have white-space differences
49337         * build-aux/useless-if-before-free: Recognize cases in which the
49338         freed expression differs from the tested one in embedded white
49339         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49340         $1 was used, so we can't make any regexp shy.  Improved tests now
49341         detect this.
49342
49343         useless-if-before-free: accept white space in the expression.
49344         * build-aux/useless-if-before-free: For now, any white space
49345         in the expression must be identical in the free argument.
49346
49347         useless-if-before-free: efficiency tweak
49348         * build-aux/useless-if-before-free: Make the expression-matching
49349         regexp "shy".
49350         Make the *outer* regexp shy, not the expr-matching one.
49351
49352         update code-in-comment to accept cast of free arg
49353         * build-aux/useless-if-before-free: Update regexp.
49354
49355 2008-05-25  Bruno Haible  <bruno@clisp.org>
49356
49357         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49358         * modules/copy-file-tests (Files, Makefile.am): Update.
49359         * tests/test-copy-file.c (func_test_copy): Update.
49360
49361 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49362
49363         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49364
49365 2008-05-23  Bruno Haible  <bruno@clisp.org>
49366
49367         Improve support for ACLs on OSF/1.
49368         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49369         Remove fallback for unknown flavors of ACLs.
49370
49371 2008-05-22  Bruno Haible  <bruno@clisp.org>
49372
49373         Add support for ACLs on OSF/1.
49374         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49375         replacements.
49376         (acl_free_text): New macro fallback.
49377         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49378         acl_free.
49379         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49380         acl_free_text function. Require AC_C_INLINE.
49381
49382 2008-05-22  Bruno Haible  <bruno@clisp.org>
49383
49384         Make copy_acl work on MacOS X 10.5.
49385         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49386         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49387         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49388         If MODE_INSIDE_ACL, don't assume that every system has the same text
49389         representation for ACLs as FreeBSD.
49390         * lib/copy-acl.c (copy_acl): Add support for platforms with
49391         !MODE_INSIDE_ACL.
49392         * lib/file-has-acl.c (file_has_acl): Likewise.
49393         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49394         FreeBSD, MacOS X, or IRIX, respectively.
49395
49396 2008-05-22  Bruno Haible  <bruno@clisp.org>
49397
49398         * lib/acl.h: Don't include <sys/acl.h>.
49399         (GETACLCNT): Move fallback to lib/acl-internal.h.
49400         * lib/acl-internal.h: Include <sys/acl.h> here.
49401         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49402
49403 2008-05-22  Bruno Haible  <bruno@clisp.org>
49404
49405         Split off copy_acl function to separate file.
49406         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49407         * lib/acl.c (copy_acl): Moved function to separate file.
49408         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49409         * modules/acl (Files): Add lib/copy-acl.c.
49410         (Makefiles.am): Augment lib_SOURCES.
49411
49412 2008-05-22  Bruno Haible  <bruno@clisp.org>
49413
49414         * modules/copy-file-tests: New file.
49415         * tests/test-copy-file.sh: New file.
49416         * tests/test-copy-file.c: New file.
49417         * tests/test-copy-file-sameacls.c: New file.
49418
49419 2008-05-22  Eric Blake  <ebb9@byu.net>
49420
49421         Avoid gcc warning.
49422         * tests/test-memcmp.c (main): Pass NULL indirectly.
49423
49424 2008-05-21  Bruno Haible  <bruno@clisp.org>
49425
49426         Add reference doc about ACLs.
49427         * doc/acl-resources.txt: New file.
49428         * doc/acl-cygwin.txt: New file.
49429
49430 2008-05-21  Bruno Haible  <bruno@clisp.org>
49431
49432         Avoid one more warning from gcc.
49433         * lib/vasnprintf.c (IF_LINT): Update comments.
49434         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49435
49436 2008-05-21  Jim Meyering  <meyering@redhat.com>
49437
49438         avoid a warning from gcc
49439         * lib/vasnprintf.c (IF_LINT): Define.
49440         (scale10_round_decimal_long_double):
49441         Use it to avoid a "may be used uninitialized" warning.
49442         (scale10_round_decimal_double): Likewise.
49443
49444 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49445
49446         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49447         declared.
49448
49449 2008-05-20  Bruno Haible  <bruno@clisp.org>
49450
49451         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49452         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49453
49454 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49455
49456         * modules/memcmp-tests: New file.
49457         * tests/test-memcmp.c: New file.
49458
49459 2008-05-19  Bruno Haible  <bruno@clisp.org>
49460
49461         * modules/propername (Notice, configure.ac): Put quoted "..." into
49462         --keyword option.
49463         * lib/propername.h: Update comments accordingly.
49464         Reported by Eric Blake.
49465
49466 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49467
49468         * modules/getpass-gnu (Depends-on): Add fseeko.
49469
49470 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49471
49472         * modules/base64-tests: New file.
49473
49474 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49475
49476         * lib/base64.c (base64_decode_ctx): If a decode context structure
49477         was passed in use it to ignore newlines.  If a context structure
49478         was _not_ passed in, continue to treat newlines as garbage (this
49479         is the historical behavior).  Formerly base64_decode.
49480         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49481         takes a decode context structure.
49482         * lib/base64.h (base64_decode): Macro for four-argument calls.
49483         (base64_decode_alloc): Likewise.
49484         * lib/base64.c (base64_decode_ctx): If a decode context structure
49485         was passed in use it to ignore newlines.  If a context structure
49486         was _not_ passed in, continue to treat newlines as garbage (this
49487         is the historical behavior).  Formerly base64_decode.
49488         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49489         takes a decode context structure.
49490         * lib/base64.h (base64_decode): Macro for four-argument calls.
49491         (base64_decode_alloc): Likewise.
49492
49493 2008-05-19  Jim Meyering  <meyering@redhat.com>
49494
49495         avoid a warning from gcc
49496         * lib/trim.c (IF_LINT): Define.
49497         (trim2): Use it to avoid a "may be used uninitialized" warning.
49498
49499         Fix doc typo.
49500         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49501
49502 2008-05-19  Bruno Haible  <bruno@clisp.org>
49503
49504         * doc/glibc-functions/getpass.texi: Document limits of other
49505         implementations.
49506
49507 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49508             Bruno Haible <bruno@clisp.org>
49509
49510         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49511
49512 2008-05-18  Bruno Haible  <bruno@clisp.org>
49513
49514         * modules/propername: New file, from GNU gettext.
49515         * lib/propername.h: New file, from GNU gettext.
49516         * lib/propername.c: New file, from GNU gettext.
49517         * MODULES.html.sh (Internationalization functions): Add propername.
49518
49519 2008-05-16  Jim Meyering  <meyering@redhat.com>
49520             Bruno Haible  <bruno@clisp.org>
49521
49522         Avoid some warnings from "gcc -Wshadow".
49523         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49524
49525 2008-05-15  Eric Blake  <ebb9@byu.net>
49526
49527         Extend previous patch to cygwin 1.7.0.
49528         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49529         fast implementation in cygwin >= 1.7.0.
49530         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49531         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49532
49533 2008-05-15  Bruno Haible  <bruno@clisp.org>
49534
49535         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49536         implementation in glibc >= 2.9.
49537         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49538         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49539
49540 2008-05-15  Bruno Haible  <bruno@clisp.org>
49541
49542         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49543         (Unicode string functions): Add unilbrk/*.
49544         Reported by Karl Berry.
49545
49546 2008-05-15  Eric Blake  <ebb9@byu.net>
49547
49548         Fix violation of <stdbool.h> replacement in regex.
49549         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49550         * lib/regexec.c (re_search_internal): Likewise.
49551         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49552
49553 2008-05-15  Jim Meyering  <meyering@redhat.com>
49554
49555         avoid distracting test output when git or cvs is not found
49556         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49557         * tests/test-vc-list-files-git.sh: Likewise.
49558
49559 2008-05-15  Eric Blake  <ebb9@byu.net>
49560
49561         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49562         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49563         glibc version.
49564         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49565         * doc/posix-functions/strstr.texi (strstr): Likewise.
49566         * lib/str-two-way.h (MAX): Sychronize with glibc.
49567
49568 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49569
49570         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49571         opr.ctx_type.
49572         (calc_first): Initialize constraint field.
49573         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49574         Fix grammar.
49575         (duplicate_node): Merge constraint field for all node types.
49576         (calc_eclosure_iter): Look at constraint field for all node types.
49577         * lib/regex_internal.c (create_cd_newstate): Don't look at
49578         opr.ctx_type.
49579
49580 2008-05-14  Bruno Haible  <bruno@clisp.org>
49581
49582         Help GCC to do better code generation.
49583         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49584         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49585         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49586         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49587         Declare with attribute 'malloc' if supported.
49588
49589 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49590
49591         use "echo STR|wc -c" rather than unportable "expr length STR"
49592         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49593         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49594
49595 2008-05-14  Jim Meyering  <meyering@redhat.com>
49596
49597         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49598         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49599         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49600         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49601         via Collin Lasse.
49602
49603 2008-05-14  Eric Blake  <ebb9@byu.net>
49604
49605         Avoid quadratic growth in gl_LIBSOURCES.
49606         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49607         Suggested by Bruno Haible.
49608
49609         Test xmemdup0.
49610         * modules/xmemdup0-tests: New file.
49611         * tests/test-xmemdup0.c: Likewise.
49612
49613 2008-05-13  Eric Blake  <ebb9@byu.net>
49614
49615         Split xmemdup0 into its own module.
49616         * modules/xmemdup0: New file.
49617         * lib/xmemdup0.h: Likewise.
49618         * lib/xmemdup0.c: Likewise.
49619         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49620         * lib/xalloc.h (xmemdup0): Remove.
49621         * lib/xmalloc.c (xmemdup0): Likewise.
49622
49623 2008-05-13  Eric Blake  <ebb9@byu.net>
49624             Bruno Haible  <bruno@clisp.org>
49625
49626         Reduce number of forks required during autoconf.
49627         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49628         and gl_LIBSOURCES_DIR.
49629         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49630         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49631         m4_syscmd per file.
49632         <m4_foreach_w>: Move...
49633         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49634
49635 2008-05-13  Eric Blake  <ebb9@byu.net>
49636
49637         * gnulib-tool: Fix various comment typos.
49638
49639 2008-05-12  Bruno Haible  <bruno@clisp.org>
49640
49641         Tailor the linebreaking algorithm.
49642         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49643
49644 2008-05-12  Bruno Haible  <bruno@clisp.org>
49645
49646         Update to Unicode 5.0.0.
49647         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49648         LBP_JV, LBP_JT. Redistribute values.
49649         (unilbrk_table): Change size.
49650         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49651         Unicode TR#14 rev. 22.
49652         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49653         LBP_JV, LBP_JT. Redistribute values.
49654         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49655         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49656         Update.
49657         * lib/unilbrk/lbrkprop1.h: Regenerated.
49658         * lib/unilbrk/lbrkprop2.h: Regenerated.
49659         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49660         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49661         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49662         Likewise.
49663         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49664         Likewise.
49665         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49666         result.
49667         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49668         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49669         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49670         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49671         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49672         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49673
49674 2008-05-11  Bruno Haible  <bruno@clisp.org>
49675
49676         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49677
49678 2008-05-11  Bruno Haible  <bruno@clisp.org>
49679
49680         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49681         * modules/unilbrk/gen-lbrk: New file.
49682
49683 2008-05-11  Bruno Haible  <bruno@clisp.org>
49684
49685         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49686         * m4/sha512.m4 (gl_SHA512): Likewise.
49687
49688 2008-05-11  Jim Meyering  <meyering@redhat.com>
49689
49690         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49691         * modules/crypto/sha256: New file.
49692         * modules/crypto/sha512: Likewise.
49693         * lib/sha256.c: Likewise.
49694         * lib/sha256.h: Likewise.
49695         * lib/sha512.c: Likewise.
49696         * lib/sha512.h: Likewise.
49697         * lib/u64.h: Likewise.
49698         * m4/sha256.m4: Likewise.
49699         * m4/sha512.m4: Likewise.
49700         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49701
49702 2008-05-10  Bruno Haible  <bruno@clisp.org>
49703
49704         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49705         (Input/Output <stdio.h>): Add xprintf.
49706         (Signal handling <signal.h>): Add strsignal.
49707         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49708         (Core language properties): Add func.
49709         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49710         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49711         strings.
49712         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49713         (Input/output): New section.
49714         (File system functions): Add openat-die, stat-macros.
49715         (Networking functions): Add sockets.
49716         (Unicode string functions): Add unictype/*.
49717         (Support for building libraries and executables): Add gperf.
49718         (Support for building documentation): Add agpl-3.0.
49719         (Misc): Add nocrash.
49720
49721 2008-05-10  Bruno Haible  <bruno@clisp.org>
49722
49723         * modules/unictype/gen-ctype: New file.
49724
49725 2008-05-10  Jim Meyering  <meyering@redhat.com>
49726
49727         Make chdir-safer.c more efficient on a system with no symlinks.
49728         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49729         also if ELOOP is zero.  Suggested by Bruno Haible.
49730
49731         Make chdir-safer.c slightly safer.
49732         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49733         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49734
49735         Avoid compile failure on systems without ELOOP (like mingw).
49736         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49737         Reported by Bruno Haible.
49738
49739 2008-05-10  Bruno Haible  <bruno@clisp.org>
49740
49741         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49742         (is_utf8_encoding): Use a case-insensitive comparison.
49743         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49744         streq.
49745
49746 2008-05-10  Bruno Haible  <bruno@clisp.org>
49747
49748         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49749         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49750         * lib/unilbrk/ulc-common.h (iconv_string_length,
49751         iconv_string_keeping_offsets): Remove declarations.
49752         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49753         Don't include <iconv.h>, streq.h, xsize.h.
49754         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49755         conversion.
49756         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49757         <iconv.h>, streq.h, xsize.h.
49758         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49759         conversion.
49760         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49761         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49762         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49763         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49764
49765 2008-05-10  Bruno Haible  <bruno@clisp.org>
49766
49767         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49768         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49769
49770         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49771         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49772
49773         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49774         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49775
49776         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49777         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49778
49779         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49780         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49781
49782         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49783         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49784
49785         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49786         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49787
49788         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49789         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49790
49791 2008-05-10  Bruno Haible  <bruno@clisp.org>
49792
49793         Split up 'linebreak' module.
49794         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49795         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49796         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49797         modifications.
49798         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49799         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49800         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49801         lib/linebreak.c.
49802         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49803         lib/linebreak.c.
49804         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49805         lib/linebreak.c.
49806         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49807         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49808         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49809         lib/linebreak.c.
49810         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49811         lib/linebreak.c.
49812         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49813         lib/linebreak.c.
49814         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49815         lib/linebreak.c.
49816         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49817         lib/linebreak.c.
49818         * modules/unilbrk/base: New file.
49819         * modules/unilbrk/tables: New file.
49820         * modules/unilbrk/u8-possible-linebreaks: New file.
49821         * modules/unilbrk/u16-possible-linebreaks: New file.
49822         * modules/unilbrk/u32-possible-linebreaks: New file.
49823         * modules/unilbrk/ulc-common: New file.
49824         * modules/unilbrk/ulc-possible-linebreaks: New file.
49825         * modules/unilbrk/u8-width-linebreaks: New file.
49826         * modules/unilbrk/u16-width-linebreaks: New file.
49827         * modules/unilbrk/u32-width-linebreaks: New file.
49828         * modules/unilbrk/ulc-width-linebreaks: New file.
49829         * lib/linebreak.h: Remove file.
49830         * lib/linebreak.c: Remove file.
49831         * m4/linebreak.m4: Remove file.
49832         * modules/linebreak: Remove file.
49833         * NEWS: Mention the changes.
49834
49835 2008-05-09  Eric Blake  <ebb9@byu.net>
49836
49837         Add xmemdup0.
49838         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49839         implementation.
49840         * lib/xmalloc.c (xmemdup0): New C implementation.
49841
49842 2008-05-08  Bruno Haible  <bruno@clisp.org>
49843
49844         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49845
49846 2008-05-07  Eric Blake  <ebb9@byu.net>
49847
49848         Support cross-compilation of <wctype.h>.
49849         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49850         AC_CACHE_CHECK.
49851
49852 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49853
49854         * build-aux/vc-list-files: Add support for bzr.
49855
49856 2008-05-03  Jim Meyering  <meyering@redhat.com>
49857
49858         avoid failed assertion with tight malloc
49859         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49860
49861 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49862
49863         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49864         are needed from arpa/inet.h.
49865         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49866         Reported by Bruno Haible.
49867
49868 2008-05-02  Jim Meyering  <meyering@redhat.com>
49869
49870         avoid compilation error on FreeBSD 6
49871         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49872
49873 2008-05-01  Jim Meyering  <meyering@redhat.com>
49874
49875         useless-if-before-free: correct --help's exit status description
49876         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49877         for one or more matches, etc.  Reported by Bruno Haible.
49878
49879         vc-list-files: make the stand-alone gnulib test work
49880         * modules/vc-list-files-tests (configure.ac):
49881         Define and AC_SUBST abs_aux_dir.
49882         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49883         $(abs_top_srcdir) to each script and having each of them
49884         duplicate the work of setting PATH, set PATH here, using
49885         the new variable, abs_aux_dir instead.
49886         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49887         * tests/test-vc-list-files-git.sh: Likewise.
49888         Reported by Bruno Haible.
49889
49890 2008-05-01  Bruno Haible  <bruno@clisp.org>
49891
49892         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49893         reallocation. Rename 'done' to 'found_delimiter'.
49894
49895 2008-05-01  Jim Meyering  <meyering@redhat.com>
49896
49897         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49898         * build-aux/vc-list-files: Use `...`, not $(...).
49899
49900 2008-04-30  Jim Meyering  <meyering@redhat.com>
49901
49902         add tests for vc-list-files
49903         * modules/vc-list-files-tests: New module.
49904         * tests/test-vc-list-files-cvs.sh: New file.
49905         * tests/test-vc-list-files-git.sh: New file.
49906
49907         avoid a warning from gcc
49908         * lib/getndelim2.c (IF_LINT): Define.
49909         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49910
49911         vc-list-files: work properly with build-aux/cvsu, too
49912         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49913         to all cvs-based clauses.
49914
49915         vc-list-files: work properly in the CVS+awk case, too
49916         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49917
49918         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49919         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49920         take more than one file argument, so .  Add quotes, just in case $dir
49921         ever contains a shell meta-character.  Prompted by Soren Hansen in
49922         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49923
49924 2008-04-29  Eric Blake  <ebb9@byu.net>
49925
49926         Optimize getndelim2 to use block operations when possible.
49927         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49928         freadseek, and memchr2.
49929         * lib/getndelim2.c (getndelim2): Use them for block reads.
49930
49931 2008-04-29  Bruno Haible  <bruno@clisp.org>
49932
49933         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49934         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49935         * modules/inet_ntop (Depends-on): Add extensions.
49936         * modules/inet_pton (Depends-on): Likewise.
49937         Reported by Simon Josefsson.
49938
49939 2008-04-29  Jim Meyering  <meyering@redhat.com>
49940
49941         When the is more than one match in a block, match all of them.
49942         * build-aux/useless-if-before-free: Iterate through each block
49943         until there are no more matches.
49944
49945         Fix broken useless-if-before-free script.
49946         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49947         the expression to match cast of argument to free-like function.
49948
49949 2008-04-29  Eric Blake  <ebb9@byu.net>
49950
49951         Use new header.
49952         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49953
49954 2008-04-29  Jim Meyering  <meyering@redhat.com>
49955
49956         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49957         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49958         by gnulib to exist and to declare e.g., inet_ntop.
49959         Don't include "inet_ntop.h", now removed.
49960
49961         * m4/arpa_inet_h.m4: Remove trailing blanks.
49962
49963 2008-04-29  Eric Blake  <ebb9@byu.net>
49964
49965         Silence valgrind on safe reads beyond potential array bounds.
49966         * lib/rawmemchr.valgrind: New file.
49967         * lib/strchrnul.valgrind: Likewise.
49968         * modules/rawmemchr (Files): Distribute new file.
49969         * modules/strchrnul (Files): Likewise.
49970         Suggested by Bruno Haible.
49971
49972 2008-04-29  Bruno Haible  <bruno@clisp.org>
49973
49974         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49975         (inet_ntop, inet_pton): Change portability warning's wording.
49976         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49977         Invoke gl_CHECK_NEXT_HEADERS.
49978         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49979         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49980         set ARPA_INET_H.
49981         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49982         * modules/arpa_inet (Description): No longer only for systems that
49983         lack it.
49984         (Depends-on): Add include_next.
49985         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49986         HAVE_ARPA_INET_H.
49987
49988 2008-04-29  Jim Meyering  <meyering@redhat.com>
49989
49990         * modules/mkdir (License): Re-license as LGPLv2+.
49991
49992 2008-04-29  Bruno Haible  <bruno@clisp.org>
49993
49994         * modules/rawmemchr (Maintainer): Set to Eric.
49995         * modules/strchrnul (Maintainer): Likewise.
49996
49997 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49998
49999         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50000         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50001
50002         * modules/arpa_inet (arpa/inet.h): Use them.
50003
50004 2008-04-28  Eric Blake  <ebb9@byu.net>
50005
50006         Test getndelim2.
50007         * modules/getndelim2-tests: New file.
50008         * tests/test-getndelim2.c: Likewise.
50009         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50010         stream.
50011         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50012
50013         * MODULES.html.sh: Document new module.
50014
50015 2008-04-20  Bruno Haible  <bruno@clisp.org>
50016
50017         * lib/c-stack.c (die): Use raise.
50018         * modules/c-stack (Depends-on): Add raise.
50019
50020 2008-04-28  Bruno Haible  <bruno@clisp.org>
50021
50022         Expect rpmatch to be declared.
50023         * lib/yesno.c (rpmatch): Remove declaration.
50024
50025         Declare rpmatch.
50026         * lib/stdlib.in.h (rpmatch): New declaration.
50027         * lib/rpmatch.c: Include <stdlib.h> first.
50028         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50029         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50031         HAVE_RPMATCH.
50032         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50033         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50034         (Include): Set to <stdlib.h>.
50035         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50036         HAVE_RPMATCH.
50037         * NEWS: Document the change.
50038
50039 2008-04-28  Bruno Haible  <bruno@clisp.org>
50040
50041         Change rpmatch to use nl_langinfo when appropriate.
50042         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50043         (N_): New macro.
50044         (localized_pattern): New function/macro.
50045         (try): Remove match, nomatch arguments. Copy the pattern into safe
50046         memory before caching it.
50047         (rpmatch): Use localized_pattern. Add translator comments.
50048         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50049         Suggested by Eric Blake.
50050         * modules/rpmatch (Depends-on): Add stdbool.
50051
50052 2008-04-28  Eric Blake  <ebb9@byu.net>
50053
50054         Add rawmemchr module, matching glibc.
50055         * modules/string (Makefile.am): New indicator.
50056         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50057         * lib/string.in.h (rawmemchr): Declare when appropriate.
50058         * modules/rawmemchr: New file.
50059         * m4/rawmemchr.m4: Likewise.
50060         * lib/rawmemchr.c: Likewise.
50061         * modules/rawmemchr-tests: Likewise.
50062         * tests/test-rawmemchr.c: Likewise.
50063         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50064         module.
50065         * modules/strchrnul (Depends-on): Add rawmemchr.
50066         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50067
50068         Whitespace cleanup.
50069         * tests/test-strchrnul.c: Reindent.
50070         * lib/strchrnul.c: Likewise.
50071
50072         Optimize and test strchrnul.
50073         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50074         * modules/strchrnul-tests: New file.
50075         * tests/test-strchrnul.c: Likewise.
50076
50077         Remove intprops dependency.
50078         * modules/memchr (Depends-on): Remove intprops.
50079         * modules/memrchr (Depends-on): Likewise.
50080         * modules/memchr2 (Depends-on): Likewise.
50081         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50082         * lib/memrchr.c (__memrchr): Likewise.
50083         * lib/memrchr2.c (memchr2): Likewise.
50084         Reported by Simon Josefsson.
50085
50086 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50087
50088         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50089         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50090
50091 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50092
50093         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50094
50095         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50096
50097         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50098
50099         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50100         declarations.
50101         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50102
50103         * m4/inet_pton.m4: Don't check for header files.
50104
50105         * m4/inet_ntop.m4: Don't check for header files.
50106
50107 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50108
50109         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50110         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50111         trigger for cygwin).
50112         Reported by Bruno Haible  <bruno@clisp.org>.
50113
50114 2008-04-28  Bruno Haible  <bruno@clisp.org>
50115
50116         * doc/posix-functions/strdup.texi: Mention mingw problem.
50117
50118 2008-04-27  Bruno Haible  <bruno@clisp.org>
50119
50120         * modules/stat-time-tests (Depends-on): Add sleep.
50121         * tests/test-stat-time.c (force_unlink): New function.
50122         (cleanup): Use it.
50123         (test_mtime): Remove the ctime related tests.
50124         (test_ctime): New function, containing the ctime related tests.
50125         (main): Call test_ctime, except on native Windows platforms.
50126
50127 2008-04-27  Bruno Haible  <bruno@clisp.org>
50128
50129         * lib/rpmatch.c (rpmatch): Add some comments.
50130         Reported by James Youngman <jay@gnu.org>.
50131
50132 2008-04-27  Bruno Haible  <bruno@clisp.org>
50133
50134         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50135         quiet NaNs.
50136
50137 2008-04-27  Bruno Haible  <bruno@clisp.org>
50138
50139         Make test-yesno.sh work on mingw.
50140         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50141         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50142         (main): Set stdin to binary mode.
50143         * modules/yesno-tests (Depends-on): Add binary-io.
50144
50145 2008-04-27  Bruno Haible  <bruno@clisp.org>
50146
50147         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50148         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50149         argument that lie outside the IEEE 854 domain.
50150         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50151         (gl_ISFINITE): Use it.
50152         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50153
50154 2008-04-27  Bruno Haible  <bruno@clisp.org>
50155
50156         Allow local renaming in config.h.
50157         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50158
50159 2008-04-27  Bruno Haible  <bruno@clisp.org>
50160
50161         * lib/memchr.c (__memchr): Change type of 'i'.
50162         * lib/memchr2.c (memchr2): Likewise.
50163
50164 2008-04-26  Eric Blake  <ebb9@byu.net>
50165         and Bruno Haible  <bruno@clisp.org>
50166
50167         Optimize and test memrchr.
50168         * modules/memrchr (Depends-on): Add intprops.
50169         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50170         * modules/memrchr-tests: New file.
50171         * tests/test-memrchr.c: New file.
50172
50173 2008-04-26  Bruno Haible  <bruno@clisp.org>
50174
50175         Add tentative support for DragonFly BSD.
50176         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50177         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50178         fp.
50179         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50180         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50181         * lib/fpurge.c (fpurge): Likewise.
50182         * lib/freadable.c (freaadable): Likewise.
50183         * lib/freadahead.c (freadahead): Likewise.
50184         * lib/freading.c (freading): Likewise.
50185         * lib/freadptr.c (freadptr): Likewise.
50186         * lib/freadseek.c (freadptrinc): Likewise.
50187         * lib/fseeko.c (fseeko): Likewise.
50188         * lib/fseterr.c (fseterr): Likewise.
50189         * lib/fwritable.c (fwritable): Likewise.
50190         * lib/fwriting.c (fwriting): Likewise.
50191
50192 2008-04-26  Bruno Haible  <bruno@clisp.org>
50193
50194         * lib/stdio-impl.h: New file.
50195         * lib/fbufmode.c: Include stdio-impl.h.
50196         (fbufmode): Use fp_, remove redundant #defines.
50197         * lib/fflush.c: Include stdio-impl.h.
50198         (clear_ungetc_buffer): Remove redundant #defines.
50199         * lib/fpurge.c: Include stdio-impl.h.
50200         (fpurge): Remove redundant #defines.
50201         * lib/freadable.c: Include stdio-impl.h.
50202         (freadable): Remove redundant #defines.
50203         * lib/freadahead.c: Include stdio-impl.h.
50204         (freadahead): Remove redundant #defines.
50205         * lib/freading.c: Include stdio-impl.h.
50206         (freading): Remove redundant #defines.
50207         * lib/freadptr.c: Include stdio-impl.h.
50208         (freadptr): Remove redundant #defines.
50209         * lib/freadseek.c: Include stdio-impl.h.
50210         (freadptrinc): Remove redundant #defines.
50211         * lib/fseeko.c: Include stdio-impl.h.
50212         (rpl_fseeko): Remove redundant #defines.
50213         * lib/fseterr.c: Include stdio-impl.h.
50214         (fseterr): Remove redundant #defines.
50215         * lib/fwritable.c: Include stdio-impl.h.
50216         (fwritable: Remove redundant #defines.
50217         * lib/fwriting.c: Include stdio-impl.h.
50218         (fwriting): Remove redundant #defines.
50219         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50220         * modules/fflush (Files): Likewise.
50221         * modules/fpurge (Files): Likewise.
50222         * modules/freadable (Files): Likewise.
50223         * modules/freadahead (Files): Likewise.
50224         * modules/freading (Files): Likewise.
50225         * modules/freadptr (Files): Likewise.
50226         * modules/freadseek (Files): Likewise.
50227         * modules/fseeko (Files): Likewise.
50228         * modules/fseterr (Files): Likewise.
50229         * modules/fwritable (Files): Likewise.
50230         * modules/fwriting (Files): Likewise.
50231
50232 2008-04-26  Bruno Haible  <bruno@clisp.org>
50233
50234         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50235         restore_seek_optimization, update_fpos_cache): New functions, extracted
50236         from rpl_fflush.
50237         (rpl_fflush): Use them.
50238         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50239         (gl_REPLACE_FFLUSH): Use it.
50240
50241 2008-04-26  Bruno Haible  <bruno@clisp.org>
50242
50243         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50244         on Solaris.
50245         * tests/test-xstrtoimax.sh: Likewise.
50246         * tests/test-xstrtoumax.sh: Likewise.
50247         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50248
50249 2008-04-26  Bruno Haible  <bruno@clisp.org>
50250
50251         * modules/memchr-tests: New file.
50252         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50253
50254 2008-04-26  Eric Blake  <ebb9@byu.net>
50255             Bruno Haible  <bruno@clisp.org>
50256
50257         * lib/memchr.c: Include intprops.h.
50258         (__memchr): Optimize parallel detection of matching bytes. Rename local
50259         variables. Add explanatory comments.
50260
50261 2008-04-26  Bruno Haible  <bruno@clisp.org>
50262
50263         Fix module 'memchr', broken since 2000-10-28.
50264         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50265
50266 2008-04-26  Bruno Haible  <bruno@clisp.org>
50267
50268         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50269         comments.
50270
50271 2008-04-25  Eric Blake  <ebb9@byu.net>
50272
50273         Use native fstatat on cygwin 1.7.0.
50274         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50275         first.
50276
50277 2008-04-23  Eric Blake  <ebb9@byu.net>
50278
50279         Improve memchr2 performance.
50280         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50281         NUL bytes.
50282         * modules/memchr2 (Depends-on): Use intprops.h.
50283
50284 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50285
50286         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50287         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50288         <blp@cs.stanford.edu>.
50289
50290 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50291
50292         * lib/arpa_inet.in.h: New file.
50293
50294         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50295         (Makefile.am): Sed in substitute header file.
50296
50297         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50298         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50299
50300         * modules/inet_ntop (configure.ac): Use
50301         gl_ARPA_INET_MODULE_INDICATOR.
50302
50303         * modules/inet_pton (configure.ac): Use
50304         gl_ARPA_INET_MODULE_INDICATOR.
50305
50306 2008-04-22  Jim Meyering  <meyering@redhat.com>
50307
50308         * modules/verify (License): Re-license as LGPLv2+.
50309
50310 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50311
50312         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50313         parameter to void* as per POSIX standard (MinGW uses char*).
50314
50315 2008-04-21  Bruno Haible  <bruno@clisp.org>
50316
50317         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50318         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50319         Define to replacements if REPLACE_ISWCNTRL is 1.
50320         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50321         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50322         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50323         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50324         what it fixes.
50325         * doc/posix-functions/iswalpha.texi: Likewise.
50326         * doc/posix-functions/iswblank.texi: Likewise.
50327         * doc/posix-functions/iswcntrl.texi: Likewise.
50328         * doc/posix-functions/iswdigit.texi: Likewise.
50329         * doc/posix-functions/iswgraph.texi: Likewise.
50330         * doc/posix-functions/iswlower.texi: Likewise.
50331         * doc/posix-functions/iswprint.texi: Likewise.
50332         * doc/posix-functions/iswpunct.texi: Likewise.
50333         * doc/posix-functions/iswspace.texi: Likewise.
50334         * doc/posix-functions/iswupper.texi: Likewise.
50335         * doc/posix-functions/iswxdigit.texi: Likewise.
50336         Reported by Alain Guibert.
50337
50338 2008-04-21  Bruno Haible  <bruno@clisp.org>
50339
50340         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50341         Patch by Alain Guibert.
50342
50343 2008-04-21  Bruno Haible  <bruno@clisp.org>
50344
50345         Fix test failures on mingw.
50346         * tests/test-xstrtol.c (print_no_progname): New function.
50347         (main): Install it in error_print_progname hook.
50348         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50349         * tests/test-xstrtoimax.sh: Likewise.
50350         * tests/test-xstrtoumax.sh: Likewise.
50351
50352 2008-04-21  Bruno Haible  <bruno@clisp.org>
50353
50354         Fix test failure on mingw.
50355         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50356
50357 2008-04-21  Bruno Haible  <bruno@clisp.org>
50358
50359         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50360         Actually assign a value.
50361
50362 2008-04-20  Bruno Haible  <bruno@clisp.org>
50363
50364         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50365         take 2.
50366         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50367         'canonicalize-lgpl' module is also used.
50368         * lib/canonicalize-lgpl.c: Undo last change.
50369         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50370
50371 2008-04-20  Bruno Haible  <bruno@clisp.org>
50372
50373         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50374         config.h. Provide _mkdir based fallback for mingw.
50375         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50376         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50377         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50378         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50379         rather than defining mkdir in config.h.
50380         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50381         (gl_SYS_STAT_H_DEFAULTS): New macro.
50382         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50383         HAVE_IO_H any more.
50384         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50385         HAVE_DECL_MKDIR and HAVE_IO_H.
50386
50387 2008-04-20  Bruno Haible  <bruno@clisp.org>
50388
50389         * lib/isapipe.c: Port to native Windows platforms.
50390
50391 2008-04-20  Bruno Haible  <bruno@clisp.org>
50392
50393         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50394
50395 2008-04-21  Eric Blake  <ebb9@byu.net>
50396
50397         Work around preprocessors that don't handle UINTMAX_MAX.
50398         * lib/memchr2.c (memchr2): Avoid embedded #if.
50399         Reported by Alain Guibert, fix suggested by Bruno Haible.
50400
50401 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50402
50403         * doc/posix-functions/strftime.texi (strftime): Explain better
50404         Windows incompatibility.  Suggested by Micah Cowan
50405         <micah@cowan.name>.
50406
50407 2008-04-20  Bruno Haible  <bruno@clisp.org>
50408
50409         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50410         unistr/u8-mblen.
50411
50412 2008-04-20  Bruno Haible  <bruno@clisp.org>
50413
50414         Fix test failure on platforms with non-GNU iconv.
50415         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50416         (U_TO_U8): Use it, rather than u16_to_u8.
50417         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50418         units at the end of the input string.
50419         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50420
50421 2008-04-20  Bruno Haible  <bruno@clisp.org>
50422
50423         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50424         when the resulting length is 0.
50425         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50426
50427 2008-04-20  Bruno Haible  <bruno@clisp.org>
50428
50429         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50430         works.
50431         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50432
50433 2008-04-20  Bruno Haible  <bruno@clisp.org>
50434
50435         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50436         * modules/tsearch-tests (configure.ac): Test for initstate function.
50437
50438 2008-04-20  Bruno Haible  <bruno@clisp.org>
50439
50440         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50441         for nlink_t if missing.
50442         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50443
50444 2008-04-19  Bruno Haible  <bruno@clisp.org>
50445
50446         Work around snprintf bug on Linux libc5.
50447         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50449         gl_SNPRINTF_SIZE1.
50450         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50451         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50452         that test failed.
50453         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50454         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50455         * modules/snprintf (Files): Add m4/printf.m4.
50456         * modules/vsnprintf (Files): Likewise.
50457         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50458         * doc/posix-functions/vsnprintf.texi: Likewise.
50459
50460 2008-04-19  Bruno Haible  <bruno@clisp.org>
50461
50462         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50463         from 0.0058 to less than 10^-7.
50464
50465 2008-04-19  Bruno Haible  <bruno@clisp.org>
50466
50467         Fix rounding when a precision is given.
50468         * lib/vasnprintf.c (is_borderline): New function.
50469         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50470         9...9x.
50471         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50472         %e, %g.
50473         * tests/test-vasprintf-posix.c (test_function): Likewise.
50474         * tests/test-snprintf-posix.h (test_function): Likewise.
50475         * tests/test-sprintf-posix.h (test_function): Likewise.
50476         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50477         * tests/test-printf-posix.h (test_function): Likewise.
50478         * tests/test-printf-posix.output: Update.
50479         Reported by John Darrington <john@darrington.wattle.id.au> via
50480         Ben Pfaff <blp@cs.stanford.edu>.
50481
50482 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50483
50484         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50485         Suggested by Bruno Haible <bruno@clisp.org>.
50486
50487 2008-04-17  Bruno Haible  <bruno@clisp.org>
50488
50489         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50490         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50491         implementation.
50492         Patch by Bruce Merry <bmerry@gmail.com>.
50493
50494 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50495
50496         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50497         doesn't work under Windows.
50498
50499 2008-04-16  Bruno Haible  <bruno@clisp.org>
50500
50501         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50502         New macros.
50503         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50504         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50505         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50506         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50507         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50508         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50509         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50510         macros.
50511         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50512         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50513         Northern Sotho, Uighur.
50514
50515 2008-04-16  Bruno Haible  <bruno@clisp.org>
50516
50517         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50518         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50519         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50520         Reported by Daniel Bergström <daniel@octocode.com>.
50521
50522 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50523             Bruno Haible  <bruno@clisp.org>
50524
50525         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50526         function.
50527         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50528         New functions, mostly extracted from gl_locale_name_default.
50529         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50530
50531 2008-04-16  Eric Blake  <ebb9@byu.net>
50532
50533         Adjust strtod detection to catch glibc 2.7 bug.
50534         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50535         Reported by John Gatewood Ham.
50536
50537 2008-04-16  Bruno Haible  <bruno@clisp.org>
50538
50539         Add tentative support for Linux libc5.
50540         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50541         * lib/fpurge.c (fpurge): Likewise.
50542         * lib/freadable.c (freadable): Likewise.
50543         * lib/freadahead.c (freadahead): Likewise.
50544         * lib/freading.c (freading): Likewise.
50545         * lib/freadptr.c (freadptr): Likewise.
50546         * lib/freadseek.c (freadptrinc): Likewise.
50547         * lib/fseeko.c (rpl_fseeko): Likewise.
50548         * lib/fseterr.c (fseterr): Likewise.
50549         * lib/fwritable.c (fwritable): Likewise.
50550         * lib/fwriting.c (fwriting): Likewise.
50551         Reported by Alain Guibert <alguibert+bts@free.fr>.
50552
50553 2008-04-15  Bruno Haible  <bruno@clisp.org>
50554
50555         * modules/mathl (configure.ac): Define module indicator.
50556
50557 2008-04-15  Bruno Haible  <bruno@clisp.org>
50558
50559         * lib/logl.c (logl): Remove unused variables.
50560
50561 2008-04-15  Bruno Haible  <bruno@clisp.org>
50562
50563         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50564         fails.
50565
50566 2008-04-15  Bruno Haible  <bruno@clisp.org>
50567
50568         * lib/trim.c (trim2): Fix argument of isspace() macro.
50569
50570 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50571
50572         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50573         to 0.
50574         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50575
50576 2008-04-14  Bruno Haible  <bruno@clisp.org>
50577
50578         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50579         AC_LANG_PROGRAM argument.
50580         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50581         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50583         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50584         * m4/math_h.m4 (gl_MATH_H): Likewise.
50585         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50586         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50587         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50588         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50589         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50590         * m4/regex.m4 (gl_REGEX): Likewise.
50591         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50592         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50594         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50595         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50596         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50597         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50598         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50599
50600 2008-04-14  Jim Meyering  <meyering@redhat.com>
50601
50602         test-strtod: fix typos: s/abs/fabs/
50603         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50604
50605 2008-04-13  Bruno Haible  <bruno@clisp.org>
50606
50607         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50608         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50609         module is also used and while not building the reloc-wrapper.
50610
50611 2008-04-13  Bruno Haible  <bruno@clisp.org>
50612
50613         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50614
50615 2008-04-13  Bruno Haible  <bruno@clisp.org>
50616
50617         Fix AIX compilation failure introduced on 2008-04-02.
50618         * tests/test-frexp.c (exp): Undefine before redefining.
50619         * tests/test-frexpl.c (exp): Likewise.
50620
50621 2008-04-13  Bruno Haible  <bruno@clisp.org>
50622
50623         Work around a HP-UX stdio bug.
50624         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50625         * tests/test-ftello.c (main): Likewise.
50626         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50627         * doc/posix-functions/ftello.texi: Likewise.
50628
50629 2008-04-13  Bruno Haible  <bruno@clisp.org>
50630
50631         Make test-signbit pass on HP-UX/hppa.
50632         * tests/test-signbit.c (minus_zerol): New variable.
50633         (test_signbitl): Use it.
50634
50635 2008-04-13  Bruno Haible  <bruno@clisp.org>
50636
50637         Make truncl work on OSF/1 4.0.
50638         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50639         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50640         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50642         HAVE_DECL_TRUNCL.
50643         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50644         HAVE_DECL_TRUNCL.
50645         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50646
50647 2008-04-13  Bruno Haible  <bruno@clisp.org>
50648
50649         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50650
50651 2008-04-13  Bruno Haible  <bruno@clisp.org>
50652
50653         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50654         expression, so as to avoid HP-UX 11 cc compiler bug.
50655
50656 2008-04-13  Bruno Haible  <bruno@clisp.org>
50657
50658         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50659
50660 2008-04-13  Bruno Haible  <bruno@clisp.org>
50661
50662         * lib/git-merge-changelog.c: Remove empty declaration outside of
50663         functions.
50664
50665 2008-04-13  Bruno Haible  <bruno@clisp.org>
50666
50667         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50668
50669 2008-04-13  Bruno Haible  <bruno@clisp.org>
50670
50671         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50672         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50673         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50674         also if it exists but lacks definitions of the SHUT_* macros.
50675         * modules/sys_socket (Description): Update.
50676         Reported by Elbert Pol <e.pol@chello.nl>.
50677
50678 2008-04-13  Bruno Haible  <bruno@clisp.org>
50679
50680         * lib/localcharset.c (OS2): Don't redefine if already defined.
50681         Reported by Elbert Pol <e.pol@chello.nl>.
50682
50683 2008-04-13  Bruno Haible  <bruno@clisp.org>
50684
50685         * lib/binary-io.h [__EMX__]: Include <io.h>.
50686         Reported by Elbert Pol <e.pol@chello.nl>.
50687
50688 2008-04-12  Bruno Haible  <bruno@clisp.org>
50689
50690         * lib/fpucw.h: Enable the definitions also for x86_64.
50691         Needed for NetBSD/x86_64.
50692         Reported by Thomas Klausner <tk@giga.or.at>.
50693
50694 2008-04-12  Bruno Haible  <bruno@clisp.org>
50695
50696         * tests/test-strtod.c: Include isnand.h.
50697         (main): Use isnand instead of isnan.
50698         Reported by Jim Meyering.
50699
50700 2008-04-12  Bruno Haible  <bruno@clisp.org>
50701
50702         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50703         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50704
50705 2008-04-12  Jim Meyering  <meyering@redhat.com>
50706
50707         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50708
50709 2008-04-12  Bruno Haible  <bruno@clisp.org>
50710
50711         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50712         Reported by Elbert Pol <e.pol@chello.nl>.
50713
50714 2008-04-12  Eric Blake  <ebb9@byu.net>
50715
50716         Work around Solaris 10 math.h bug.
50717         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50718         (gl_MATH_H_DEFAULTS): Set up default.
50719         * modules/math (Makefile.am): Replace new indicators.
50720         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50721         * tests/test-math.c (main): Test this.
50722         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50723         * doc/posix-headers/math.texi (math.h): Mention bug.
50724         Reported by Nelson H. F. Beebe and Jim Meyering.
50725
50726 2008-04-11  Bruno Haible  <bruno@clisp.org>
50727
50728         Adapt to future versions of Apple GCC.
50729         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50730         Reported by Peter O'Gorman <peter@pogma.com>.
50731
50732 2008-04-11  Bruno Haible  <bruno@clisp.org>
50733
50734         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50735
50736 2008-04-11  Bruno Haible  <bruno@clisp.org>
50737
50738         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50739
50740         * modules/getaddrinfo-tests (Makefile.am): Define
50741         test_getaddrinfo_LDADD.
50742
50743 2008-04-11  Bruno Haible  <bruno@clisp.org>
50744
50745         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50746         (init): Fix syntax error.
50747         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50748         is declared.
50749
50750 2008-04-11  Bruno Haible  <bruno@clisp.org>
50751
50752         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50753         * modules/glob (Depends-on): Add stdbool.
50754
50755 2008-04-11  Bruno Haible  <bruno@clisp.org>
50756
50757         * lib/trim.c: Include <string.h>.
50758
50759 2008-04-11  Eric Blake  <ebb9@byu.net>
50760
50761         Avoid compile failure on OS/2.
50762         * lib/regex_internal.h (internal_function): Disable optimization
50763         on OS/2 (__EMX__), where it caused compiler error.
50764         Reported by Elbert Pol.
50765
50766 2008-04-11  Bruno Haible  <bruno@clisp.org>
50767
50768         Flush the standard error stream before aborting. Needed on mingw.
50769         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50770         * tests/test-array_list.c (ASSERT): Likewise.
50771         * tests/test-array_oset.c (ASSERT): Likewise.
50772         * tests/test-avltree_list.c (ASSERT): Likewise.
50773         * tests/test-avltree_oset.c (ASSERT): Likewise.
50774         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50775         * tests/test-binary-io.c (ASSERT): Likewise.
50776         * tests/test-byteswap.c (ASSERT): Likewise.
50777         * tests/test-c-ctype.c (ASSERT): Likewise.
50778         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50779         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50780         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50781         * tests/test-c-strstr.c (ASSERT): Likewise.
50782         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50783         * tests/test-canonicalize.c (ASSERT): Likewise.
50784         * tests/test-carray_list.c (ASSERT): Likewise.
50785         * tests/test-ceilf1.c (ASSERT): Likewise.
50786         * tests/test-ceilf2.c (ASSERT): Likewise.
50787         * tests/test-ceill.c (ASSERT): Likewise.
50788         * tests/test-count-one-bits.c (ASSERT): Likewise.
50789         * tests/test-fbufmode.c (ASSERT): Likewise.
50790         * tests/test-fflush2.c (ASSERT): Likewise.
50791         * tests/test-floorf1.c (ASSERT): Likewise.
50792         * tests/test-floorf2.c (ASSERT): Likewise.
50793         * tests/test-floorl.c (ASSERT): Likewise.
50794         * tests/test-fopen.c (ASSERT): Likewise.
50795         * tests/test-fpending.c (ASSERT): Likewise.
50796         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50797         * tests/test-fpurge.c (ASSERT): Likewise.
50798         * tests/test-freadable.c (ASSERT): Likewise.
50799         * tests/test-freadahead.c (ASSERT): Likewise.
50800         * tests/test-freading.c (ASSERT): Likewise.
50801         * tests/test-freadptr.c (ASSERT): Likewise.
50802         * tests/test-freadptr2.c (ASSERT): Likewise.
50803         * tests/test-freadseek.c (ASSERT): Likewise.
50804         * tests/test-freopen.c (ASSERT): Likewise.
50805         * tests/test-frexp.c (ASSERT): Likewise.
50806         * tests/test-frexpl.c (ASSERT): Likewise.
50807         * tests/test-fseek.c (ASSERT): Likewise.
50808         * tests/test-fseeko.c (ASSERT): Likewise.
50809         * tests/test-fstrcmp.c (ASSERT): Likewise.
50810         * tests/test-ftell.c (ASSERT): Likewise.
50811         * tests/test-ftello.c (ASSERT): Likewise.
50812         * tests/test-func.c (ASSERT): Likewise.
50813         * tests/test-fwritable.c (ASSERT): Likewise.
50814         * tests/test-fwriting.c (ASSERT): Likewise.
50815         * tests/test-getdelim.c (ASSERT): Likewise.
50816         * tests/test-getline.c (ASSERT): Likewise.
50817         * tests/test-i-ring.c (ASSERT): Likewise.
50818         * tests/test-iconv-utf.c (ASSERT): Likewise.
50819         * tests/test-iconv.c (ASSERT): Likewise.
50820         * tests/test-isfinite.c (ASSERT): Likewise.
50821         * tests/test-isnand.c (ASSERT): Likewise.
50822         * tests/test-isnanf.c (ASSERT): Likewise.
50823         * tests/test-isnanl.h (ASSERT): Likewise.
50824         * tests/test-ldexpl.c (ASSERT): Likewise.
50825         * tests/test-linked_list.c (ASSERT): Likewise.
50826         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50827         * tests/test-localename.c (ASSERT): Likewise.
50828         * tests/test-lseek.c (ASSERT): Likewise.
50829         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50830         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50831         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50832         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50833         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50834         * tests/test-mbschr.c (ASSERT): Likewise.
50835         * tests/test-mbscspn.c (ASSERT): Likewise.
50836         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50837         * tests/test-mbspbrk.c (ASSERT): Likewise.
50838         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50839         * tests/test-mbsrchr.c (ASSERT): Likewise.
50840         * tests/test-mbsspn.c (ASSERT): Likewise.
50841         * tests/test-mbsstr1.c (ASSERT): Likewise.
50842         * tests/test-mbsstr2.c (ASSERT): Likewise.
50843         * tests/test-mbsstr3.c (ASSERT): Likewise.
50844         * tests/test-memchr2.c (ASSERT): Likewise.
50845         * tests/test-memmem.c (ASSERT): Likewise.
50846         * tests/test-open.c (ASSERT): Likewise.
50847         * tests/test-printf-frexp.c (ASSERT): Likewise.
50848         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50849         * tests/test-printf-posix.c (ASSERT): Likewise.
50850         * tests/test-quotearg.c (ASSERT): Likewise.
50851         * tests/test-rbtree_list.c (ASSERT): Likewise.
50852         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50853         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50854         * tests/test-round1.c (ASSERT): Likewise.
50855         * tests/test-roundf1.c (ASSERT): Likewise.
50856         * tests/test-roundl.c (ASSERT): Likewise.
50857         * tests/test-signbit.c (ASSERT): Likewise.
50858         * tests/test-sleep.c (ASSERT): Likewise.
50859         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50860         * tests/test-snprintf.c (ASSERT): Likewise.
50861         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50862         * tests/test-stat-time.c (ASSERT): Likewise.
50863         * tests/test-strcasestr.c (ASSERT): Likewise.
50864         * tests/test-strerror.c (ASSERT): Likewise.
50865         * tests/test-striconv.c (ASSERT): Likewise.
50866         * tests/test-striconveh.c (ASSERT): Likewise.
50867         * tests/test-striconveha.c (ASSERT): Likewise.
50868         * tests/test-strsignal.c (ASSERT): Likewise.
50869         * tests/test-strstr.c (ASSERT): Likewise.
50870         * tests/test-strtod.c (ASSERT): Likewise.
50871         * tests/test-trunc1.c (ASSERT): Likewise.
50872         * tests/test-trunc2.c (ASSERT): Likewise.
50873         * tests/test-truncf1.c (ASSERT): Likewise.
50874         * tests/test-truncf2.c (ASSERT): Likewise.
50875         * tests/test-truncl.c (ASSERT): Likewise.
50876         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50877         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50878         * tests/test-vasnprintf.c (ASSERT): Likewise.
50879         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50880         * tests/test-vasprintf.c (ASSERT): Likewise.
50881         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50882         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50883         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50884         * tests/test-vsnprintf.c (ASSERT): Likewise.
50885         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50886         * tests/test-wcwidth.c (ASSERT): Likewise.
50887         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50888         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50889         * tests/test-xvasprintf.c (ASSERT): Likewise.
50890         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50891         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50892         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50893         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50894         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50895         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50896         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50897         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50898         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50899         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50900         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50901         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50902         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50903         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50904         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50905         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50906         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50907         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50908         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50909         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50910         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50911         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50912         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50913         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50914         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50915         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50916         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50917         * tests/unictype/test-combining.c (ASSERT): Likewise.
50918         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50919         * tests/unictype/test-digit.c (ASSERT): Likewise.
50920         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50921         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50922         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50923         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50924         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50925         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50926         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50927         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50928         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50929         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50930         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50931         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50932         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50933         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50934         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50935         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50936         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50937         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50938         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50939         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50940         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50941         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50942         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50943         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50944         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50945         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50946         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50947         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50948         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50949         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50950         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50951         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50952         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50953         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50954         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50955         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50956         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50957         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50958         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50959         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50960         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50961         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50962         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50963         Reported by Eric Blake.
50964
50965 2008-04-11  Bruno Haible  <bruno@clisp.org>
50966
50967         * lib/wchar.in.h: Tweak comment.
50968
50969 2008-04-11  Bruno Haible  <bruno@clisp.org>
50970
50971         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50972         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50973         gl_COMMON.
50974         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50975
50976 2008-04-11  Bruno Haible  <bruno@clisp.org>
50977
50978         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50979
50980 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50981
50982         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50983         of attempting to use non-existing /dev/*random.  Based on patch
50984         from Adam Strzelecki <ono@java.pl> in
50985         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50986
50987 2008-04-08  Bruno Haible  <bruno@clisp.org>
50988
50989         Add tentative support for emx+gcc.
50990         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50991         * lib/fpurge.c (fpurge): Likewise.
50992         * lib/freadable.c (freadable): Likewise.
50993         * lib/freadahead.c (freadahead): Likewise.
50994         * lib/freading.c (freading): Likewise.
50995         * lib/freadptr.c (freadptr): Likewise.
50996         * lib/freadseek.c (freadptrinc): Likewise.
50997         * lib/fseeko.c (rpl_fseeko): Likewise.
50998         * lib/fseterr.c (fseterr): Likewise.
50999         * lib/fwritable.c (fwritable): Likewise.
51000         * lib/fwriting.c (fwriting): Likewise.
51001         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51002
51003 2008-04-09  Eric Blake  <ebb9@byu.net>
51004
51005         Avoid some autoconf warnings.
51006         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51007         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51008         * m4/afs.m4 (gl_AFS): Likewise.
51009         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51010         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51011         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51012         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51013         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51014         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51015         (AC_CHECK_DECLS_ONCE): Likewise.
51016         Rename file...
51017         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51018         gnulib-tool requires autoconf 2.59 or better.
51019         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51020
51021 2008-04-08  Eric Blake  <ebb9@byu.net>
51022
51023         Use 'git describe --match' if present (added in git 1.5.5).
51024         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51025         if possible.
51026
51027 2008-04-08  Bruno Haible  <bruno@clisp.org>
51028
51029         Add tentative support for OpenServer.
51030         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51031         _ptr, _cnt.
51032         * lib/fpurge.c (fpurge): Likewise.
51033         * lib/freadable.c (freadable): Likewise.
51034         * lib/freadahead.c (freadahead): Likewise.
51035         * lib/freading.c (freading): Likewise.
51036         * lib/freadptr.c (freadptr): Likewise.
51037         * lib/freadseek.c (freadptrinc): Likewise.
51038         * lib/fseeko.c (rpl_fseeko): Likewise.
51039         * lib/fseterr.c (fseterr): Likewise.
51040         * lib/fwritable.c (fwritable): Likewise.
51041         * lib/fwriting.c (fwriting): Likewise.
51042         Reported by Roger Cornelius <rac@tenzing.org> and
51043         Brian K. White <brian@aljex.com>.
51044
51045 2008-04-06  Jim Meyering  <meyering@redhat.com>
51046
51047         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51048
51049 2008-04-06  Bruno Haible  <bruno@clisp.org>
51050
51051         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51052         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51053         * tests/test-printf-posix.sh: Likewise.
51054         * tests/test-vfprintf-posix.sh: Likewise.
51055         * tests/test-vprintf-posix.sh: Likewise.
51056         * tests/test-xprintf-posix.sh: Likewise.
51057
51058 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51059
51060         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51061         hide error from 'ls', needed on OS/2.
51062         Report by Elbert Pol <elbert.pol@gmail.com>.
51063
51064 2008-04-04  Eric Blake  <ebb9@byu.net>
51065
51066         Make test-fseeko.c failures meaningful.
51067         * tests/test-fseeko.c: Print line number on failure.
51068         * tests/test-fseek.c: Likewise.
51069         Reported by Nelson H. F. Beebe.
51070
51071         Improve strtod bug detection check.
51072         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51073         required for Solaris 10.
51074         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51075
51076 2008-04-04  Bruno Haible  <bruno@clisp.org>
51077
51078         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51079         by m4/setenv.m4.
51080
51081 2008-04-03  Eric Blake  <ebb9@byu.net>
51082
51083         Ensure sane .version contents.
51084         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51085         version string.
51086         * build-aux/git-version-gen: Improve documentation.
51087
51088         Make GNU make output nicer.
51089         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51090         MAKECMDGOALS to enforce message for all command line targets.  Set
51091         srcdir for use in maint.mk.
51092
51093         Another maintainer tweak.
51094         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51095         a target that regenerates version.
51096
51097 2008-04-03  Jim Meyering  <meyering@redhat.com>
51098
51099         vc-list-files: don't cause coreutils "make po-check" failure
51100         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51101
51102 2008-04-03  Eric Blake  <ebb9@byu.net>
51103
51104         Allow VPATH usage of vc-list-files.
51105         * build-aux/vc-list-files (scriptversion): Add timestamp.
51106         (options): Add --help, --version, -C.
51107         (CVS): Support installed cvsu.
51108
51109 2008-04-02  Bruno Haible  <bruno@clisp.org>
51110
51111         Avoid some "statement with no effect" warnings from gcc.
51112         * tests/test-wctype.c (main): Explicitly ignore unused values.
51113         Reported by Jim Meyering.
51114
51115 2008-04-02  Jim Meyering  <meyering@redhat.com>
51116
51117         Avoid some warnings from "gcc -Wshadow".
51118         * tests/test-frexp.c (exp): Define to a different identifier.
51119         * tests/test-frexpl.c (exp): Likewise.
51120
51121 2008-04-03  Jim Meyering  <meyering@redhat.com>
51122
51123         bootstrap: remove dangling *.[ch] symlinks from lib
51124         * build-aux/bootstrap [dangling symlink removal]: Move find's
51125         -depth option to precede all others, to avoid a warning.
51126         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51127
51128 2008-04-02  Bruno Haible  <bruno@clisp.org>
51129
51130         Avoid some warnings from "gcc -Wshadow".
51131         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51132         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51133         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51134         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51135         Reported by Jim Meyering.
51136
51137 2008-04-01  Bruno Haible  <bruno@clisp.org>
51138
51139         Fix test to work on IRIX 6.5 with cc.
51140         * tests/test-math.c (numeric_equal): New function.
51141         (main): Use it.
51142
51143 2008-04-01  Bruno Haible  <bruno@clisp.org>
51144
51145         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51146
51147 2008-04-01  Bruno Haible  <bruno@clisp.org>
51148
51149         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51150         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51151         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51152         (Depends-on): Remove math.
51153
51154         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51155         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51156         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51157         (Depends-on): Remove math.
51158
51159         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51160         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51161         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51162         (Depends-on): Remove math.
51163         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51164         (Depends-on): Remove math.
51165
51166         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51167         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51168         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51169         (Depends-on): Remove math.
51170         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51171         (Depends-on): Remove math.
51172
51173         * tests/test-round1.c: Include nan.h.
51174         (main): Use NaNd instead of NAN.
51175         * modules/round-tests (Files): Add tests/nan.h.
51176
51177         * tests/test-trunc1.c: Include nan.h.
51178         (main): Use NaNd instead of NAN.
51179         * modules/trunc-tests (Files): Add tests/nan.h.
51180
51181         * tests/test-roundf1.c: Include nan.h.
51182         (main): Use NaNf instead of NAN.
51183         * modules/roundf-tests (Files): Add tests/nan.h.
51184
51185         * tests/test-truncf1.c: Include nan.h.
51186         (main): Use NaNf instead of NAN.
51187         * modules/truncf-tests (Files): Add tests/nan.h.
51188
51189         * tests/test-ceilf1.c: Include nan.h.
51190         (main): Use NaNf instead of NAN.
51191         * modules/ceilf-tests (Files): Add tests/nan.h.
51192
51193         * tests/test-floorf1.c: Include nan.h.
51194         (main): Use NaNf instead of NAN.
51195         * modules/floorf-tests (Files): Add tests/nan.h.
51196
51197         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51198         (main): Use NaNf instead of NAN.
51199         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51200
51201         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51202         (main): Use NaNd instead of NAN.
51203         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51204
51205         * tests/test-frexp.c: Include nan.h.
51206         (main): Use NaNd instead of NAN.
51207         * modules/frexp-tests (Files): Add tests/nan.h.
51208
51209         * lib/isnan.c: Don't include <math.h>.
51210         (FUNC): Don't use NAN macro.
51211         * modules/isnand-nolibm (Depends-on): Remove math.
51212         * modules/isnanf-nolibm (Depends-on): Remove math.
51213         * modules/isnanl (Depends-on): Remove math.
51214         * modules/isnanl-nolibm (Depends-on): Remove math.
51215
51216         * tests/nan.h: New file.
51217
51218 2008-04-01  Eric Blake  <ebb9@byu.net>
51219
51220         Fix typos.
51221         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51222         values to be the right type.
51223
51224         For now, cater to gnulib strtod inaccuracies.
51225         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51226         fractional results.  While not as nice from a QoI perspective, it
51227         is a quicker patch than correctly implementing decimal to binary
51228         rounding.
51229
51230 2008-03-31  Eric Blake  <ebb9@byu.net>
51231
51232         Guarantee a definition of NAN.
51233         * lib/math.in.h (NAN): Define if missing.
51234         * tests/test-math.c (main): Test it.
51235         * doc/posix-headers/math.texi (math.h): Document this.
51236         * lib/isnan.c (rpl_isnand): Use it.
51237         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51238         * tests/test-floorf1.c (NaN): Likewise.
51239         * tests/test-frexp.c (NaN): Likewise.
51240         * tests/test-isnand.c (NaN): Likewise.
51241         * tests/test-isnanf.c (NaN): Likewise.
51242         * tests/test-round1.c (NaN): Likewise.
51243         * tests/test-roundf1.c (NaN): Likewise.
51244         * tests/test-snprintf-posix.h (NaN): Likewise.
51245         * tests/test-sprintf-posix.h (NaN): Likewise.
51246         * tests/test-trunc1.c (NaN): Likewise.
51247         * tests/test-truncf1.c (NaN): Likewise.
51248         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51249         * tests/test-vasprintf-posix.c (NaN): Likewise.
51250         * modules/isnand-nolibm (Depends-on): Add math.
51251         * modules/isnanf-nolibm (Depends-on): Likewise.
51252         * modules/isnanl (Depends-on): Likewise.
51253         * modules/isnanl-nolibm (Depends-on): Likewise.
51254         * modules/snprintf-posix-tests (Depends-on): Likewise.
51255         * modules/sprintf-posix-tests (Depends-on): Likewise.
51256         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51257         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51258         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51259         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51260
51261 2008-03-31  Bruno Haible  <bruno@clisp.org>
51262
51263         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51264         * doc/posix-functions/strtod.texi: Likewise.
51265
51266 2008-03-31  Bruno Haible  <bruno@clisp.org>
51267
51268         * tests/test-strtod.c (main): Don't use C99 syntax.
51269
51270 2008-03-31  Bruno Haible  <bruno@clisp.org>
51271
51272         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51273         Reported by Eric Blake.
51274
51275 2008-03-31  Jim Meyering  <meyering@redhat.com>
51276
51277         Don't compare actual signbit return values.
51278         * tests/test-strtod.c (main): Rather, compare only their
51279         zero/non-zero nature.
51280
51281 2008-03-31  Eric Blake  <ebb9@byu.net>
51282
51283         More strtod documentation.
51284         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51285         failures as distinct bugs.
51286
51287 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51288
51289         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51290         Problem reported by Erik Benada in
51291         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51292
51293 2008-03-30  Bruno Haible  <bruno@clisp.org>
51294
51295         * tests/test-strtod.c: Add comments about which assertion fails on which
51296         platform.
51297         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51298
51299 2008-03-30  Eric Blake  <ebb9@byu.net>
51300
51301         Test signbit behavior on zeros.
51302         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51303         (test_signbitd, test_signbitl): Likewise.
51304
51305         More strtod touchups.
51306         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51307         sign of negative underflow, for now.  Use .5, not .1.
51308         * doc/posix-functions/strtod.texi (strtod): Mention these
51309         limitations.
51310         Reported by Jim Meyering.
51311
51312 2008-03-30  Bruno Haible  <bruno@clisp.org>
51313
51314         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51315         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51316
51317 2008-03-30  Bruno Haible  <bruno@clisp.org>
51318
51319         Avoid failure when attempting to return empty iconv results on some
51320         platforms.
51321         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51322         allocation, don't report ENOMEM when the resulting string is empty.
51323
51324 2008-03-30  Bruno Haible  <bruno@clisp.org>
51325
51326         Fix buffer overrun.
51327         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51328         Don't consider the width for tmp_length. Check count against tmp_length
51329         before doing the padding. Ensure enough allocation during padding.
51330
51331 2008-03-30  Eric Blake  <ebb9@byu.net>
51332
51333         strtod touchups.
51334         * lib/strtod.c (strtod): Avoid compiler warnings.
51335         Reported by Jim Meyering.
51336
51337 2008-03-30  Bruno Haible  <bruno@clisp.org>
51338
51339         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51340         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51341         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51342         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51343         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51344         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51345         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51346         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51347
51348         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51349         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51350         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51351         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51352         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51353         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51354         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51355         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51356
51357         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51358         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51359         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51360         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51361         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51362         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51363         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51364         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51365
51366         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51367         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51368
51369         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51370         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51371
51372         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51373         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51374
51375         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51377         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51378
51379         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51380         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51381         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51382
51383         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51384         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51385         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51386
51387         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51388         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51389         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51390
51391         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51392         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51393         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51394         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51395         (Depends-on): Add EOVERFLOW.
51396         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51397         (Depends-on): Add EOVERFLOW.
51398         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51399         (Depends-on): Add EOVERFLOW.
51400         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51401         (Depends-on): Add EOVERFLOW.
51402         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51403         (Depends-on): Add EOVERFLOW.
51404         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51405         (Depends-on): Add EOVERFLOW.
51406         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51407         (Depends-on): Add EOVERFLOW.
51408         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51409         (Depends-on): Add EOVERFLOW.
51410
51411         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51412         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51413         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51414
51415         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51416         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51417         * modules/snprintf (Depends-on): Add EOVERFLOW.
51418
51419         * lib/poll.c (EOVERFLOW): Remove fallback.
51420         * modules/poll (Depends-on): Add EOVERFLOW.
51421
51422         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51423         * modules/getugroups (Depends-on): Add EOVERFLOW.
51424
51425         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51426         * modules/getdelim (Depends-on): Add EOVERFLOW.
51427
51428         * lib/ftell.c (EOVERFLOW): Remove fallback.
51429         * modules/ftell (Depends-on): Add EOVERFLOW.
51430
51431         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51432         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51433         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51434
51435         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51436
51437         * modules/EOVERFLOW-tests: New file.
51438         * tests/test-EOVERFLOW.c: New file.
51439
51440         * modules/EOVERFLOW: New file.
51441         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51442
51443 2008-03-30  Bruno Haible  <bruno@clisp.org>
51444
51445         Fix bug introduced on 2007-06-10.
51446         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51447         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51448
51449 2008-03-30  Bruno Haible  <bruno@clisp.org>
51450
51451         Improve freadseek's efficiency after ungetc.
51452         * lib/freadseek.c: Include freadahead.h.
51453         (freadptrinc): New function, extracted from freadseek.
51454         (freadseek): Use it in a loop. Use freadahead to determine the number
51455         of loop iterations.
51456         * modules/freadseek (Depends-on): Add freadahead.
51457         (configure.ac): Require AC_C_INLINE.
51458
51459 2008-03-30  Bruno Haible  <bruno@clisp.org>
51460
51461         * lib/freadseek.c (freadseek): Don't ignore the return value of
51462         freadptr.
51463
51464 2008-03-29  Eric Blake  <ebb9@byu.net>
51465
51466         Add hex float support.
51467         * modules/strtod (Depends-on): Add c-ctype.
51468         (Link): Mention POW_LIB.
51469         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51470         whitespace between 'e' and exponent.
51471         * tests/test-strtod.c (main): Enable hex float tests.
51472         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51473         now provides.
51474
51475         Document various strtod bugs, with some fixes.
51476         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51477         "-0x", "inf", "nan", and hex constants.
51478         * doc/posix-functions/atof.texi (atof): Likewise.
51479         * modules/stdlib (Makefile.am): Support strtod.
51480         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51481         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51482         detect additional strtod bugs.
51483         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51484         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51485         bool where appropriate.  Parse 'inf' and 'nan'.
51486         * tests/test-strtod.c: New file.
51487         * modules/strtod (Depends-on): Add stdbool, stdlib.
51488         (configure.ac): Turn on module indicator.
51489         * modules/strtod-tests: New module.
51490
51491 2008-03-29  Eric Blake  <ebb9@byu.net>
51492
51493         Fix ftell on mingw.
51494         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51495         * modules/ftell-tests (Depends-on): Add binary-io.
51496         * modules/ftello-tests (Depends-on): Likewise.
51497         * tests/test-ftell.c (main): Enhance test to cover behavior after
51498         ungetc.  Enforce binary mode.
51499         * tests/test-ftello.c (main): Likewise.
51500
51501         Pass test-freadseek on cygwin.
51502         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51503         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51504         ungetc buffer.
51505
51506         * tests/test-fflush2.c (main): Fix typo.
51507
51508 2008-03-29  Bruno Haible  <bruno@clisp.org>
51509
51510         * tests/test-fflush2.c (main): Temporarily disable the contents of
51511         this test.
51512         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51513         Reported by Eric Blake.
51514
51515 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51516
51517         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51518         (GC_SHA224_DIGEST_SIZE): Add.
51519
51520         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51521         (gc_hash_digest_length): Likewise.
51522         (gc_hash_buffer): Likewise.
51523
51524 2008-03-25  Bruno Haible  <bruno@clisp.org>
51525
51526         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51527         detail which gettext release to use.
51528         Reported by Simon Josefsson.
51529
51530 2008-03-26  Jim Meyering  <meyering@redhat.com>
51531
51532         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51533         * modules/gnumakefile (clean-GNUmakefile): Also, use
51534         test ... && ... || : syntax rather than if-then ... fi.
51535
51536         gnumakefile: Don't double-quote-expand $(VPATH) value.
51537         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51538
51539 2008-03-24  Eric Blake  <ebb9@byu.net>
51540
51541         Alter GNUmakefile to install into top directory.
51542         * modules/maintainer-makefile: Split, and add dependency...
51543         * modules/gnumakefile: to this new module.
51544         * build-aux/GNUmakefile: Move...
51545         * top/GNUmakefile: ...here.
51546         * build-aux/maint.mk: Move...
51547         * top/maint.mk: ...here.
51548         * MODULES.html.sh (Support for maintaining...): Document new
51549         module.
51550
51551 2008-03-23  Bruno Haible  <bruno@clisp.org>
51552
51553         * gnulib-tool: New options --vc-files, --no-vc-files.
51554         (func_usage): Document them.
51555         (vc_files): New variable.
51556         (func_import): Consider vc_files.
51557         (func_create_testdir): Set vc_files to empty.
51558         Suggested by Jim Meyering and Karl Berry.
51559
51560 2008-03-23  Bruno Haible  <bruno@clisp.org>
51561
51562         Fix regex compilation error on HP-UX 11.
51563         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51564         * modules/regex (Files): Add m4/mbstate_t.m4.
51565         Reported by Ton Voon <ton.voon@altinity.com>.
51566
51567 2008-03-23  Bruno Haible  <bruno@clisp.org>
51568
51569         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51570
51571 2008-03-23  Eric Blake  <ebb9@byu.net>
51572             Bruno Haible  <bruno@clisp.org>
51573
51574         Install files from top/ in the destination directory.
51575         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51576         augmentation also for the files from top/.
51577         (func_import, func_create_testdir): Rewrite file names:
51578         top/filename -> filename.
51579
51580 2008-03-23  Bruno Haible  <bruno@clisp.org>
51581
51582         Tweak "gnulib --version" output.
51583         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51584
51585 2008-03-23  Bruno Haible  <bruno@clisp.org>
51586
51587         Tweak "gnulib --version" output.
51588         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51589         rather than contents of ChangeLog, when possible.
51590
51591 2008-03-21  Eric Blake  <ebb9@byu.net>
51592
51593         More --version tweaks.
51594         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51595         date of last ChangeLog entry.
51596
51597 2008-03-21  Jim Meyering  <meyering@redhat.com>
51598
51599         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51600
51601 2008-03-20  Eric Blake  <ebb9@byu.net>
51602
51603         VPATH fix.
51604         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51605
51606 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51607
51608         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51609         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51610
51611 2008-03-20  Eric Blake  <ebb9@byu.net>
51612
51613         Sync GNUmakefile with coreutils.
51614         * build-aux/GNUmakefile (have-Makefile): Rename...
51615         (_have-Makefile): ...to this, for namespace consideration.
51616         (GNUmakefile.cfg): Include, if present.
51617         (_autoreconf): Define a default.
51618         (_is-dist-target): New rule for rebuilds to pick up intra-release
51619         version.
51620         (maint-cfg.mk): Rename...
51621         (cfg.mk): ...to this.
51622
51623 2008-03-18  Jim Meyering  <meyering@redhat.com>
51624
51625         New script and module: mktempd
51626         * MODULES.html.sh (maint+release support): Add mktempd.
51627         * build-aux/mktempd: New file.
51628         * modules/mktempd: New file.
51629
51630 2008-03-15  Jim Meyering  <meyering@redhat.com>
51631
51632         Undo last change.
51633         * lib/sha1.c, lib/md5.c: 63 != ~63.
51634         Reported by Andreas Schwab.
51635
51636         sha1.c, md5.c: Hoist a redundant expression.
51637         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51638         "ctx->buflen" only once, before calling *_process_block.
51639         * lib/md5.c (md5_process_bytes): Likewise.
51640
51641 2008-03-14  Eric Blake  <ebb9@byu.net>
51642
51643         Bump copyright year in files generated by gnulib-tool.
51644         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51645         gnulib-tool, rather than hard-coding it.
51646
51647         Fix 'gnulib-tool --version' output to work with git.
51648         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51649         (startup): ...here.
51650         (func_version): Use it to invoke git-version-gen, rather than
51651         relying on CVS keyword expansion.  Modernize wording.
51652         (cvsdatestamp, last_checkin_date, version): Kill unused
51653         variables.
51654
51655 2008-03-12  Jim Meyering  <meyering@redhat.com>
51656
51657         Recognize optional cast of the argument to free.
51658         * build-aux/useless-if-before-free: Update regexps.
51659
51660         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51661
51662 2008-03-11  Bruno Haible  <bruno@clisp.org>
51663
51664         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51665         by a single package.
51666         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51667         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51668         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51669         Reported by Sam Steingold <sds@gnu.org>.
51670
51671 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51672
51673         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51674         repositories.
51675
51676 2008-03-11  Bruno Haible  <bruno@clisp.org>
51677
51678         Avoid conflicts between local macro definitions.
51679         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51680         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51681
51682 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51683             Bruno Haible  <bruno@clisp.org>
51684
51685         Make va_copy work with some version of xlc on AIX 5.1.
51686         * lib/stdarg.in.h: New file.
51687         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51688         On AIX, use a <stdarg.h> file substitute.
51689         * modules/stdarg (Files): Add lib/stdarg.in.h.
51690         (Depends-on): Add include_next.
51691         (Makefile.am): Build a stdarg.h substitute if requested.
51692         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51693
51694 2008-03-10  Bruno Haible  <bruno@clisp.org>
51695
51696         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51697         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51698         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51699
51700 2008-03-10  Bruno Haible  <bruno@clisp.org>
51701
51702         * modules/stdlib (Depends-on): Add include_next, remove
51703         absolute-header.
51704
51705 2008-03-09  Bruno Haible  <bruno@clisp.org>
51706
51707         * lib/freadahead.h (freadahead): Document more precisely.
51708         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51709         the sum of both buffer sizes.
51710         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51711         * NEWS: Document the change.
51712
51713 2008-03-09  Bruno Haible  <bruno@clisp.org>
51714
51715         Extend freadptr to return also the buffer size.
51716         * lib/freadptr.h (freadptr): Add sizep argument.
51717         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51718         (freadptr): Add sizep argument. Determine buffer size like freadahead
51719         does.
51720         * tests/test-freadptr.c: Don't include freadahead.h.
51721         (main): Adapt for new calling convention of freadptr.
51722         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51723         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51724         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51725         tests/test-freadptr2.sh.
51726         (Depends): Remove freadahead.
51727         (TESTS): Add test-freadptr2.sh.
51728         (check_PROGRAMS): Add test-freadptr2.
51729
51730 2008-03-09  Bruno Haible  <bruno@clisp.org>
51731
51732         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51733         Report and solution by Simon Josefsson.
51734
51735 2008-03-06  Bruno Haible  <bruno@clisp.org>
51736
51737         Make fflush after ungetc work on BSD platforms.
51738         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51739         * tests/test-fflush2.c: New file.
51740         * tests/test-fflush2.sh: New file.
51741         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51742         tests/test-fflush2.c.
51743         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51744         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51745
51746 2008-03-06  Eric Blake  <ebb9@byu.net>
51747
51748         Likewise for ftello.
51749         * modules/ftello (Dependencies): Add extensions.
51750         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51751
51752 2008-03-06  Bruno Haible  <bruno@clisp.org>
51753
51754         * modules/fseeko (Dependencies): Add extensions.
51755         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51756         Needed on glibc systems.
51757
51758 2008-03-06  Bruno Haible  <bruno@clisp.org>
51759
51760         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51761         email address.
51762         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51763
51764 2008-03-06  Bruno Haible  <bruno@clisp.org>
51765
51766         * users.txt: Add libgnupdf.
51767
51768 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51769
51770         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51771         (Header File Substitutes, Function Substitutes,
51772         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51773         (Build robot for gnulib): Fix typo.
51774
51775 2008-03-06  Bruno Haible  <bruno@clisp.org>
51776
51777         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51778         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51779
51780 2008-03-06  Bruno Haible  <bruno@clisp.org>
51781
51782         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51783         * doc/gnulib.texi: Include it.
51784
51785 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51786
51787         * modules/func (License): Change license to unlimited; there was
51788         no LGPL parts in the module anyway.
51789
51790 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51791
51792         * modules/__func__: Renamed to modules/func.
51793         * modules/__func__-tests: Renamed to modules/func-tests.
51794         * tests/test-__func__.c: Renamed to tests/test-func.c.
51795         * m4/__func__.m4: Renamed to m4/func.m4.
51796         * doc/gnulib.texi (__func__): Section renamed to func.
51797         Suggested by Eric Blake <ebb9@byu.net>.
51798
51799 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51800
51801         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51802         about __func__.  Make example self-contained.  Suggested by Eric
51803         Blake <ebb9@byu.net>.
51804
51805         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51806         Suggested by Eric Blake <ebb9@byu.net>.
51807
51808 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51809
51810         * modules/__func__: New file.
51811         * modules/__func__-tests: New file.
51812         * tests/test-__func__.c: New file.
51813         * m4/__func__.m4: New file.
51814         * doc/gnulib.texi (__func__): Document __func__ module.
51815
51816 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51817
51818         * modules/byteswap (License): Re-license as LGPLv2+.
51819
51820 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51821
51822         * doc/Makefile: Add pdf target.
51823
51824 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51825
51826         * modules/inline (License): Use 'unlimited', since there are only
51827         *.m4 files in this module.
51828
51829 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51830             Bruno Haible  <bruno@clisp.org>
51831
51832         Add support for HP C 7.1 on OpenVMS 8.3.
51833         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51834
51835 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51836
51837         Update VMS specifics.
51838         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51839
51840 2008-03-02  Jim Meyering  <meyering@redhat.com>
51841
51842         Remove the last dependency on the "free" module.
51843         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51844         Reported by Bob Proulx.
51845
51846         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51847
51848         Remove useless "if" tests before free.  Deprecate "free" module.
51849         * doc/posix-functions/free.texi: Mention that this
51850         module is no longer useful.
51851         * modules/free (Notice): Say this module is obsolete.
51852         * modules/readutmp (Depends-on): Remove free.
51853         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51854         * lib/putenv.c (putenv): Likewise.
51855         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51856         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51857         * tests/test-c-strcasestr.c (main): Likewise.
51858         * tests/test-c-strstr.c (main): Likewise.
51859         * tests/test-mbscasestr1.c (main): Likewise.
51860         * tests/test-mbscasestr2.c (main): Likewise.
51861         * tests/test-mbsstr1.c (main): Likewise.
51862         * tests/test-mbsstr2.c (main): Likewise.
51863         * tests/test-memmem.c (main): Likewise.
51864         * tests/test-strcasestr.c (main): Likewise.
51865         * tests/test-striconv.c (main): Likewise.
51866         * tests/test-striconveh.c (main): Likewise.
51867         * tests/test-striconveha.c (main): Likewise.
51868         * tests/test-strstr.c (main): Likewise.
51869
51870         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51871
51872         bootstrap: sync from coreutils again
51873         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51874
51875 2008-03-01  Jim Meyering  <meyering@redhat.com>
51876
51877         bootstrap: sync from coreutils
51878         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51879         also when the target doesn't exist.
51880
51881 2008-03-01  Eric Blake  <ebb9@byu.net>
51882
51883         Fix bugs in last patch.
51884         * lib/memchr2.c (memchr2): Fix typo.
51885         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51886         extension.
51887         Reported by Bruce Korb.
51888
51889         New module 'memchr2'.
51890         * modules/memchr2: New file.
51891         * modules/memchr2-tests: Likewise.
51892         * lib/memchr2.h: Likewise.
51893         * lib/memchr2.c: Likewise, based on memchr.c.
51894         * tests/test-memchr2.c: New test.
51895         * MODULES.html.sh (String handling): Add memchr2.
51896
51897 2008-02-29  Bruno Haible  <bruno@clisp.org>
51898
51899         * modules/freadseek-tests: New file.
51900         * tests/test-freadseek.sh: New file.
51901         * tests/test-freadseek.c: New file.
51902
51903         New module 'freadseek'.
51904         * modules/freadseek: New file.
51905         * lib/freadseek.h: New file.
51906         * lib/freadseek.c: New file.
51907         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51908
51909 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51910
51911         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51912         wydawca.
51913
51914         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51915         program_invocation_name and program_invocation_short_name are
51916         present.
51917
51918 2008-02-28  Bruno Haible  <bruno@clisp.org>
51919
51920         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51921         * tests/test-freadptr.sh: Also test non-seekable stdin.
51922
51923 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51924
51925         * build-aux/bootstrap (source_base, m4_base)
51926         (doc_base, tests_base): New variables.
51927         (gnulib_tool_options): Do not hardcode base directories, use
51928         the above variables instead.
51929
51930 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51931
51932         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51933
51934 2008-02-28  Bruno Haible  <bruno@clisp.org>
51935
51936         * modules/freadptr-tests: New file.
51937         * tests/test-freadptr.sh: New file.
51938         * tests/test-freadptr.c: New file.
51939
51940         New module 'freadptr'.
51941         * modules/freadptr: New file.
51942         * lib/freadptr.h: New file.
51943         * lib/freadptr.c: New file.
51944         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51945
51946 2008-02-26  Karl Berry  <karl@freefriends.org>
51947
51948         Sync from Libtool:
51949         * libltdl/argz.c (argz_add, argz_count): New functions.
51950         * libltdl/argz.in.h: Declare them.
51951         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51952
51953 2008-02-22  Bruno Haible  <bruno@clisp.org>
51954
51955         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51956         is a pointer type.  Needed for HP-UX 10.
51957         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51958         * doc/posix-functions/gmtime_r.texi: Likewise.
51959         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51960
51961 2008-02-24  Bruno Haible  <bruno@clisp.org>
51962
51963         * modules/environ-tests: New file.
51964         * tests/test-environ.c: New file.
51965
51966         New module 'environ'.
51967         * modules/environ: New file.
51968         * lib/unistd.in.h (environ): New declaration.
51969         * m4/environ.m4: New file.
51970         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51971         after use.
51972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51973         HAVE_DECL_ENVIRON.
51974         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51975         HAVE_DECL_ENVIRON.
51976         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51977         wrong claim that 'environ' is missing on some systems.
51978         * modules/execute (Depends-on): Add environ.
51979         * lib/execute.c (environ): Remove fallback declaration.
51980         * modules/pipe (Depends-on): Add environ.
51981         * lib/pipe.c (environ): Remove fallback declaration.
51982         * modules/setenv (Depends-on): Add environ.
51983         * lib/setenv.c (environ): Remove fallback declaration.
51984         * modules/unsetenv (Depends-on): Add environ.
51985         * lib/unsetenv.c (environ): Remove fallback declaration.
51986         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51987         m4/environ.m4.
51988         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51989         (gl_PREREQ_UNSETENV): Likewise.
51990
51991 2008-02-24  Bruno Haible  <bruno@clisp.org>
51992
51993         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51994
51995 2008-02-20  Bob Proulx  <bob@proulx.com>
51996
51997         Enable use of older two part flavor 'git describe'.
51998         * build-aux/git-version-gen: If using the older two part flavor of
51999         git version then recreate the third part now present in the
52000         newer three part flavor of git describe.
52001
52002 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52003
52004         * lib/fts.c (fts_build): Typo correction to comment.
52005
52006 2008-02-17  Bruno Haible  <bruno@clisp.org>
52007
52008         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52009         generating no-op conflicts.
52010
52011 2008-02-17  Bruno Haible  <bruno@clisp.org>
52012
52013         Speed up by 10%.
52014         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52015         result_entries, rather than an index-based loop.
52016
52017 2008-02-17  Bruno Haible  <bruno@clisp.org>
52018
52019         Speed up by 25%.
52020         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52021         'hashcode_cached'.
52022         (entry_create): New function.
52023         (entry_hashcode): Use the cached hashcode if possible.
52024         (read_changelog_file, try_split_merged_entry): Use entry_create.
52025
52026 2008-02-17  Bruno Haible  <bruno@clisp.org>
52027
52028         Speed up from O(n^2) to O(n) for long ChangeLog files.
52029         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52030         (read_changelog_file): Change implementation of entries_reversed list
52031         to rbtreehash.
52032         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52033
52034 2008-02-17  Bruno Haible  <bruno@clisp.org>
52035
52036         New option --split-merged-entry.
52037         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52038         (find_paragraph_end, try_split_merged_entry): New functions.
52039         (long_options): Add option --split-merged-entry.
52040         (usage): Document option --split-merged-entry.
52041         (main): Implement option --split-merged-entry.
52042         Reported by Eric Blake.
52043
52044 2008-02-17  Bruno Haible  <bruno@clisp.org>
52045
52046         * lib/git-merge-changelog.c: Include c-strstr.h.
52047         (main): Support the "git pull --rebase" situation.
52048         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52049         Reported by Eric Blake.
52050
52051 2008-02-16  Eric Blake  <ebb9@byu.net>
52052
52053         Avoid doubling \ in common case of "c-maybe" quoting style.
52054         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52055         eliding outer quotes.
52056         * lib/quotearg.h: Document this.
52057         * tests/test-quotearg.c (result_strings, inputs, results_g)
52058         (flag_results, locale_results): Test it by adding a new string to
52059         each test group.
52060         (compare_strings): Test new string.
52061
52062 2008-02-13  Eric Blake  <ebb9@byu.net>
52063
52064         Avoid trigraph quoting in default output.
52065         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52066         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52067         unless explicitly requested.
52068         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52069
52070 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52071
52072         Don't rely on signed integer overflowing to negative value.
52073         * lib/getugroups.c (getugroups): Include <limits.h>.
52074         Instead, compare against INT_MAX, and increment only if the test passes.
52075
52076 2008-02-13  Jim Meyering  <meyering@redhat.com>
52077         and Eric Blake  <ebb9@byu.net>
52078
52079         Avoid shadowing warning and compile errors on Linux.
52080         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52081         forwarding macros on Linux.
52082         (dcgettext): Define a stub, for Linux.
52083         (results_g, main): Avoid warnings.
52084
52085 2008-02-12  Eric Blake  <ebb9@byu.net>
52086
52087         Silence warning in last patch.
52088         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52089
52090         Quotearg part 4: add tests, fix c-maybe colon quoting.
52091         * lib/quotearg.h: Improve documentation.
52092         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52093         escapes when adding outer quotes.  When quoting trigraphs, use
52094         valid C notation.  When quoting NUL, omit extra characters if next
52095         character is not digit.  Alter prototype.
52096         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52097         callers.
52098         * modules/quotearg-tests: New module.
52099         * tests/test-quotearg.c: New test.
52100
52101 2008-02-07  Eric Blake  <ebb9@byu.net>
52102
52103         Quotearg part 3: add flag to control outer quote elision.
52104         * lib/quotearg.h (c_maybe_quoting_style): New style.
52105         (enum quoting_flags): Better documentation of flags.
52106         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52107         c-maybe style.
52108         (quotearg_buffer_restyled): Handle new flag to elide outer
52109         quotes.
52110
52111         Quotearg part 2: add flag that can control NUL elision.
52112         * lib/quotearg.h (set_quoting_flags): New prototype.
52113         * lib/quotearg.c (struct quoting_options): Add flag field.
52114         (set_quoting_flags): New function.
52115         (quotearg_buffer_restyled): Add flags parameter.
52116         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52117         (quotearg_n_options): Set the flag, since length cannot be
52118         returned.
52119         (quoting_options_from_style): Default flags correctly.
52120
52121         Quotearg part 1: more wrappers, restore quotearg_char state.
52122         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52123         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52124         (quotearg_colon_mem): New wrappers.
52125         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52126         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52127         functions.
52128         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52129         (quotearg_colon_mem): New functions.
52130
52131 2008-02-11  Bruno Haible  <bruno@clisp.org>
52132
52133         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52134         library in the current directory: it does not work with parallel make.
52135         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52136
52137 2008-02-11  Bruno Haible  <bruno@clisp.org>
52138
52139         * .gitattributes: New file.
52140
52141 2008-02-11  Jim Meyering  <meyering@redhat.com>
52142
52143         useless-if-before-free: Fix reversed exit values.
52144         * build-aux/useless-if-before-free: Use correct values
52145         for EXIT_MATCH and EXIT_NO_MATCH.
52146
52147         * build-aux/useless-if-before-free: Close stdout carefully.
52148
52149 2008-02-10  Bruno Haible  <bruno@clisp.org>
52150
52151         New module 'git-merge-changelog'.
52152         * modules/git-merge-changelog: New file.
52153         * lib/git-merge-changelog.c: New file.
52154
52155 2008-02-10  Jim Meyering  <meyering@redhat.com>
52156
52157         useless-if-before-free: New option: --list (-l).
52158
52159         useless-if-before-free: Don't exit immediately upon open failure.
52160         * build-aux/useless-if-before-free: Exit 2 for errors.
52161         Upon failure to open a file, don't exit immediately.
52162         Rather, just warn and continue with any remaining files.
52163
52164 2008-02-10  Bruno Haible  <bruno@clisp.org>
52165
52166         New abstract list operation 'node_set_value'.
52167         * lib/gl_list.h (gl_list_node_set_value): New function.
52168         (struct gl_list_implementation): New field node_set_value.
52169         * lib/gl_list.c (gl_list_node_set_value): New function.
52170         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52171         (gl_array_list_implementation): Update.
52172         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52173         (gl_carray_list_implementation): Update.
52174         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52175         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52176         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52177         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52178         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52179         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52180         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52181         Update.
52182         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52183         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52184         (gl_sublist_list_implementation): Update.
52185
52186 2008-02-10  Bruno Haible  <bruno@clisp.org>
52187
52188         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52189         Needed when ELEMENT is #defined to 'some_type *'.
52190
52191 2008-02-10  Jim Meyering  <meyering@redhat.com>
52192
52193         New script and module: useless-if-before-free
52194         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52195         * build-aux/useless-if-before-free: New file.
52196         * modules/useless-if-before-free: New file.
52197
52198         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52199
52200         xstrtol_error: Fix typo.
52201         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52202         s/exit_failure/exit_status/.
52203
52204 2008-02-09  Jim Meyering  <meyering@redhat.com>
52205
52206         New script and module: gitlog-to-changelog
52207         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52208         * modules/gitlog-to-changelog: New file.
52209         * build-aux/gitlog-to-changelog: New file.
52210
52211 2008-02-08  Jim Meyering  <meyering@redhat.com>
52212
52213         Avoid two "parameter unused" warnings.
52214         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52215         Mark "st" as used.
52216
52217         Use "git COMMAND", not "git-COMMAND".
52218         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52219         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52220         * build-aux/git-version-gen: Use "git status", not "git-status".
52221
52222 2008-02-07  Bruno Haible  <bruno@clisp.org>
52223
52224         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52225         Avoids a crash on Windows Vista.
52226         Reported by Adam Strzelecki <ono@java.pl> via
52227         Simon Josefsson <simon@josefsson.org>.
52228
52229 2008-02-06  Bruno Haible  <bruno@clisp.org>
52230
52231         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52232         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52233         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52235         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52236         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52237         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52238         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52240         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52242         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52245         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52246         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52247         left-adjust flag.
52248         * tests/test-snprintf-posix.h (test_function): Likewise.
52249         * tests/test-sprintf-posix.h (test_function): Likewise.
52250         * tests/test-vasprintf-posix.c (test_function): Likewise.
52251         * doc/posix-functions/fprintf.texi: Update.
52252         * doc/posix-functions/printf.texi: Update.
52253         * doc/posix-functions/snprintf.texi: Update.
52254         * doc/posix-functions/sprintf.texi: Update.
52255         * doc/posix-functions/vfprintf.texi: Update.
52256         * doc/posix-functions/vprintf.texi: Update.
52257         * doc/posix-functions/vsnprintf.texi: Update.
52258         * doc/posix-functions/vsprintf.texi: Update.
52259         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52260
52261 2008-02-06  Bruno Haible  <bruno@clisp.org>
52262
52263         Fix bug introduced on 2008-01-26.
52264         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52265
52266 2008-02-06  Bruno Haible  <bruno@clisp.org>
52267
52268         Fix bug introduced on 2007-06-10.
52269         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52270         !NEED_PRINTF_FLAG_ZERO.
52271
52272 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52273
52274         getloadavg: use libperfstat on AIX5
52275         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52276
52277 2008-02-03  Bruno Haible  <bruno@clisp.org>
52278
52279         * lib/diffseq.h: Add comments about required #includes.
52280         Reported by Michael Biggs <gnulib@doubleplum.net>.
52281
52282 2008-02-01  Bruno Haible  <bruno@clisp.org>
52283
52284         * users.txt: Add gnuit.
52285
52286 2008-01-31  Bruno Haible  <bruno@clisp.org>
52287
52288         * lib/md4.c (set_uint32): Mark as inline.
52289         * lib/md5.c (set_uint32): Likewise.
52290         * lib/sha1.c (set_uint32): Likewise.
52291         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52292         * m4/md5.m4 (gl_MD5): Likewise.
52293         * m4/sha1.m4 (gl_SHA1): Likewise.
52294
52295 2008-01-31  Jim Meyering  <meyering@redhat.com>
52296
52297         Use "sizeof VAR", rather than a literal "4".
52298         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52299         * lib/md4.c (md4_read_ctx): Likewise.
52300         * lib/sha1.c (sha1_read_ctx): Likewise.
52301
52302 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52303
52304         * tests/test-sha1.c: New file, based on test-md5.c.
52305
52306         * modules/crypto/sha1-tests: New file.
52307
52308 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52309
52310         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52311
52312 2008-01-31  Jim Meyering  <meyering@redhat.com>
52313
52314         Prefer "sizeof v" over the equivalent "4".
52315         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52316         * lib/md5.c (set_uint32): Likewise.
52317         * lib/sha1.c (set_uint32): Likewise.
52318
52319 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52320
52321         * lib/sha1.c (set_uint32): Mark function as static.
52322
52323 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52324
52325         md2: clarify comments to say that alignment is not required.
52326         * lib/md2.h: Remove warning about alignment in comment.
52327         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52328         never been required.
52329
52330 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52331
52332         md4: adapt alignment constraint fix from sha1.
52333         * lib/md4.c (set_uint32): New function, from sha1.c
52334         (md4_read_ctx): Use it.
52335         (md4_finish_ctx): Doc fix.
52336         * lib/md4.h: Doc fix.
52337
52338 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52339
52340         md5: adapt alignment constraint fix from sha1.
52341         * lib/md5.c (set_uint32): New function, from sha1.c
52342         (md5_read_ctx): Use it.
52343         (md5_finish_ctx): Doc fix.
52344         * lib/md5.h: Doc fix.
52345
52346 2008-01-30  Peter Palfrader  <weasel@debian.org>
52347
52348         sha1: remove the result buffer alignment constraint
52349         * lib/sha1.c (set_uint32): New function.
52350         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52351         constraint.
52352         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52353         * lib/sha1.h: Likewise.
52354
52355 2008-01-30  Andreas Schwab  <schwab@suse.de>
52356             Bruno Haible  <bruno@clisp.org>
52357
52358         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52359         correct definition of LDBL_MIN_EXP.
52360
52361 2008-01-30  Karl Berry  <karl@gnu.org>
52362
52363         * config/srclist-update: try to preserve x bit on updates.
52364         * config/srclistvars.sh: update for karl.
52365
52366 2008-01-29  Jim Meyering  <meyering@redhat.com>
52367
52368         vasnprintf.c: Avoid warning about unused label
52369         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52370         "overflow" label definition and associated code with the
52371         same cpp condition that guards the sole use of that label.
52372
52373 2008-01-26  Bruno Haible  <bruno@clisp.org>
52374
52375         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52376         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52377         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52378         * lib/isnanl-nolibm.h (isnanl): Likewise.
52379         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52380
52381 2008-01-26  Bruno Haible  <bruno@clisp.org>
52382
52383         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52384         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52385
52386 2008-01-26  Bruno Haible  <bruno@clisp.org>
52387
52388         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52389         GCC >= 4.0 built-in.
52390         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52391
52392 2008-01-26  Bruno Haible  <bruno@clisp.org>
52393
52394         Rename isnan, applicable to 'double' only, to isnand.
52395         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52396         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52397         (configure.ac): Update.
52398         (Include): Replace "isnan.h" with "isnand.h".
52399         * m4/isnand.m4: Renamed from m4/isnan.m4.
52400         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52401         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52402         instead of isnan.c.
52403         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52404         instead of HAVE_ISNAN_IN_LIBC.
52405         (isnand): Renamed from isnan.
52406         * lib/isnand.c: New file.
52407         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52408         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52409         (Makefile.am): Update.
52410         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52411         Include isnand.h instead of isnan.h.
52412         (main): Test isnand instead of isnan.
52413         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52414         isnan-nolibm.
52415         * modules/frexp (Depends-on): Likewise.
52416         * modules/frexp-tests (Depends-on): Likewise.
52417         * modules/frexp-nolibm (Depends-on): Likewise.
52418         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52419         * modules/isfinite (Depends-on): Likewise.
52420         * modules/round-tests (Depends-on): Likewise.
52421         * modules/signbit (Depends-on): Likewise.
52422         * modules/signbit-tests (Depends-on): Likewise.
52423         * modules/snprintf-posix (Depends-on): Likewise.
52424         * modules/sprintf-posix (Depends-on): Likewise.
52425         * modules/trunc-tests (Depends-on): Likewise.
52426         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52427         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52428         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52429         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52430         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52431         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52432         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52433         * modules/vasnprintf-posix (Depends-on): Likewise.
52434         * modules/vasprintf-posix (Depends-on): Likewise.
52435         * modules/vfprintf-posix (Depends-on): Likewise.
52436         * modules/vsnprintf-posix (Depends-on): Likewise.
52437         * modules/vsprintf-posix (Depends-on): Likewise.
52438         * lib/frexp.c: Include isnand.h instead of isnan.h.
52439         (ISNAN): Set to isnand instead of isnan.
52440         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52441         (gl_isfinited): Use isnand instead of isnan.
52442         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52443         (gl_signbitd): Use isnand instead of isnan.
52444         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52445         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52446         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52447         (main): Use isnand instead of isnan.
52448         * tests/test-round1.c: Include isnand.h.
52449         (main): Use isnand instead of isnan.
52450         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52451         (ISNAN): Set to isnand instead of isnan.
52452         * tests/test-trunc1.c: Include isnand.h.
52453         (main): Use isnand instead of isnan.
52454         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52455         (equal): Use isnand instead of isnan.
52456         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52457         isnand-nolibm.
52458         * NEWS: Mention the change.
52459
52460 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52461             Bruno Haible  <bruno@clisp.org>
52462
52463         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52464         the GCC builtins for signbits are present and set
52465         REPLACE_SIGNBIT_USING_GCC if so.
52466         * lib/math.in.h (signbit): Define using GCC builtins if
52467         REPLACE_SIGNBIT_USING_GCC is set.
52468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52469         REPLACE_SIGNBIT_USING_GCC.
52470         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52471
52472 2008-01-25  Jim Meyering  <meyering@redhat.com>
52473
52474         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52475         * lib/poll.c: Include <config.h>, not "config.h".
52476         * tests/test-getaddrinfo.c: Likewise.
52477
52478 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52479
52480         * modules/sockets-tests: New file.
52481
52482 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52483
52484         * modules/sockets: New module, can be used to call WSA_Startup and
52485         WSA_Cleanup when needed.
52486
52487         * lib/sockets.h, lib/sockets.c: New files.
52488
52489         * m4/sockets.m4: New file.
52490
52491         * tests/test-sockets.c: New file.
52492
52493 2008-01-19  Bruno Haible  <bruno@clisp.org>
52494
52495         * doc/posix-headers: Renamed from doc/headers.
52496         * doc/posix-functions: Renamed from doc/functions.
52497         * doc/gnulib.texi: Update.
52498
52499 2008-01-19  Bruno Haible  <bruno@clisp.org>
52500
52501         * doc/glibc-functions/strcasestr.texi: Include contents of
52502         doc/functions/strcasestr.texi, fixing the list of platforms.
52503         * doc/functions/strcasestr.texi: Remove file.
52504
52505 2008-01-19  Bruno Haible  <bruno@clisp.org>
52506
52507         * doc/glibc-functions/memmem.texi: Include contents of
52508         doc/functions/memmem.texi.
52509         * doc/functions/memmem.texi: Remove file.
52510
52511 2008-01-18  Bruno Haible  <bruno@clisp.org>
52512
52513         * doc/glibc-functions/*.texi: New files.
52514         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52515         to use the new files.
52516
52517 2008-01-17  Bruno Haible  <bruno@clisp.org>
52518
52519         * tests/test-gethostname.c (main): Fix printf statement.
52520
52521 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52522
52523         * modules/gethostname-tests: New file.
52524
52525         * tests/test-gethostname.c: New file.
52526
52527 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52528
52529         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52530         used by the UNAME case.  Reported by Bruno Haible
52531         <bruno@clisp.org>.
52532
52533 2008-01-17  Eric Blake  <ebb9@byu.net>
52534
52535         Convert c-strcasestr to be more efficient.
52536         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52537         (Depends-on): Add c-strcase, remove malloca, strnlen.
52538         * tests/test-c-strcasestr.c (main): Enhance test.
52539         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52540
52541 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52542
52543         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52544         Use it in creating po/Makevars.
52545
52546 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52547
52548         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52549         Applications that requires it should initialize libgcrypt
52550         manually.
52551
52552 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52553
52554         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52555
52556 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52557
52558         Fix problem with getdate on mingw32 reported by Simon Josefsson
52559         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52560         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52561         tzname", when deciding whether to declare tzname.
52562         * lib/strftime.c (tzname): Likewise.
52563
52564 2008-01-15  Bruno Haible  <bruno@clisp.org>
52565
52566         Work around a MacOS X 10.5 bug in frexpl().
52567         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52568         * doc/functions/frexpl.texi: Document the bug.
52569         Reported by Elias Pipping <pipping@gentoo.org>.
52570
52571 2008-01-14  Eric Blake  <ebb9@byu.net>
52572
52573         Touch up previous patch.
52574         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52575         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52576
52577         Convert strcasestr module to use Two-Way algorithm.
52578         * modules/strcasestr-simple: New module, based on the old
52579         strcasestr, but with Two-Way rather than KMP.
52580         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52581         * lib/string.in.h (rpl_strcasestr): Declare.
52582         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52583         performance.
52584         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52585         * modules/string (Makefile.am): Support strcasestr.
52586         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52587         * modules/strcasestr-tests (Depends-on): Check for alarm.
52588         * tests/test-strcasestr.c: Augment test.
52589         * lib/str-two-way.h: Clean up stray macro.
52590         * NEWS: Document new module.
52591         * MODULES.html.sh (string handling): Likewise.
52592         * doc/functions/strcasestr.texi: New file.
52593         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52594         here, since it is not a POSIX function.
52595
52596 2008-01-14  Colin Watson  <cjwatson@debian.org>
52597             Bruno Haible  <bruno@clisp.org>
52598
52599         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52600         works fine; if not, set REPLACE_STRSIGNAL.
52601         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52603         REPLACE_STRSIGNAL.
52604         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52605         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52606         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52607
52608 2008-01-14  Bruno Haible  <bruno@clisp.org>
52609
52610         * modules/strsignal (Include): Change to <string.h>.
52611
52612 2008-01-14  Colin Watson  <cjwatson@debian.org>
52613
52614         * modules/argp (Notice): Add a notice recommending to change
52615         XGETTEXT_OPTIONS.
52616         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52617
52618 2008-01-13  Colin Watson  <cjwatson@debian.org>
52619
52620         * modules/strsignal-tests: New file.
52621         * tests/test-strsignal.c: New file.
52622
52623         * lib/strsignal.c: New file, from glibc with modifications.
52624         * lib/siglist.h: New file, from glibc with modifications.
52625         * lib/string.in.h (strsignal): New declaration.
52626         * m4/strsignal.m4: New file.
52627         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52628         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52629         * modules/strsignal: New file.
52630         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52631         HAVE_DECL_STRSIGNAL.
52632
52633 2008-01-13  Bruno Haible  <bruno@clisp.org>
52634
52635         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52636         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52637         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52638         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52639
52640 2008-01-13  Bruno Haible  <bruno@clisp.org>
52641
52642         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52643         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52644         * lib/argp.h (__attribute__): Likewise.
52645         * lib/c-stack.c (__attribute__): Likewise.
52646         * lib/error.h (__attribute__): Likewise.
52647         * lib/fts.c (__attribute__): Likewise.
52648         * lib/openat.h (__attribute__): Likewise.
52649         * lib/stdio.in.h (__attribute__): Likewise.
52650         * lib/string.in.h (__attribute__): Likewise.
52651         * lib/utimens.c (__attribute__): Likewise.
52652         * lib/vasnprintf.h (__attribute__): Likewise.
52653         * lib/xalloc.h (__attribute__): Likewise.
52654         * lib/xprintf.h (__attribute__): Likewise.
52655         * lib/xstrtol.h (__attribute__): Likewise.
52656         * lib/xvasprintf.h (__attribute__): Likewise.
52657
52658 2008-01-12  Bruno Haible  <bruno@clisp.org>
52659
52660         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52661         * doc/glibc-headers/a.out.texi: New file.
52662         * doc/glibc-headers/aliases.texi: New file.
52663         * doc/glibc-headers/alloca.texi: New file.
52664         * doc/glibc-headers/ar.texi: New file.
52665         * doc/glibc-headers/argp.texi: New file.
52666         * doc/glibc-headers/argz.texi: New file.
52667         * doc/glibc-headers/byteswap.texi: New file.
52668         * doc/glibc-headers/crypt.texi: New file.
52669         * doc/glibc-headers/endian.texi: New file.
52670         * doc/glibc-headers/envz.texi: New file.
52671         * doc/glibc-headers/err.texi: New file.
52672         * doc/glibc-headers/error.texi: New file.
52673         * doc/glibc-headers/execinfo.texi: New file.
52674         * doc/glibc-headers/fpu_control.texi: New file.
52675         * doc/glibc-headers/fstab.texi: New file.
52676         * doc/glibc-headers/fts.texi: New file.
52677         * doc/glibc-headers/getopt.texi: New file.
52678         * doc/glibc-headers/ieee754.texi: New file.
52679         * doc/glibc-headers/ifaddrs.texi: New file.
52680         * doc/glibc-headers/libintl.texi: New file.
52681         * doc/glibc-headers/mcheck.texi: New file.
52682         * doc/glibc-headers/mntent.texi: New file.
52683         * doc/glibc-headers/obstack.texi: New file.
52684         * doc/glibc-headers/paths.texi: New file.
52685         * doc/glibc-headers/printf.texi: New file.
52686         * doc/glibc-headers/pty.texi: New file.
52687         * doc/glibc-headers/resolv.texi: New file.
52688         * doc/glibc-headers/shadow.texi: New file.
52689         * doc/glibc-headers/sysexits.texi: New file.
52690         * doc/glibc-headers/ttyent.texi: New file.
52691
52692 2008-01-12  Jim Meyering  <meyering@redhat.com>
52693
52694         announce-gen: emit Gnulib's git-based version string.
52695         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52696         New option --gnulib-version=V, where V is expected to be
52697         the output of running git describe in the gnulib directory.
52698         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52699         not useful, and plan to stop publishing an xdelta file with each
52700         coreutils release.
52701
52702         * build-aux/announce-gen: Also check for lzma-compressed files.
52703
52704 2008-01-11  Bruno Haible  <bruno@clisp.org>
52705
52706         * tests/test-memmem.c (main): Increase maximum allowed time.
52707         * tests/test-strstr.c (main): Likewise.
52708
52709 2008-01-11  Bruno Haible  <bruno@clisp.org>
52710
52711         * doc/functions/memmem.texi: Add more precisions about platforms.
52712         * doc/functions/strstr.texi: Likewise.
52713
52714 2008-01-10  Eric Blake  <ebb9@byu.net>
52715
52716         * m4/strstr.m4: Delete cruft from copy-n-paste.
52717         Reported by Bruno Haible.
52718
52719 2008-01-10  Bruno Haible  <bruno@clisp.org>
52720
52721         Make c-strstr rely on strstr.
52722         * lib/c-strstr.c: Don't include str-kmp.h.
52723         (c_strstr): Define in terms of strstr.
52724         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52725         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52726
52727 2008-01-10  Bruno Haible  <bruno@clisp.org>
52728
52729         * doc/gnulib.texi (String Functions in C Locale): New section.
52730         * doc/c-ctype.texi: New file.
52731         * doc/c-strcase.texi: New file.
52732         * doc/c-strcaseeq.texi: New file.
52733         * doc/c-strcasestr.texi: New file.
52734         * doc/c-strstr.texi: New file.
52735         * doc/c-strtod.texi: New file.
52736         * doc/c-strtold.texi: New file.
52737
52738 2008-01-10  Eric Blake  <ebb9@byu.net>
52739
52740         * lib/relocatable.h: Fix a comment.
52741
52742 2008-01-10  Eric Blake  <ebb9@byu.net>
52743
52744         Share two-way algorithm.
52745         * lib/str-two-way.h: New file, merged from...
52746         * lib/memmem.c: ...here...
52747         * lib/strstr.c: ...and here.
52748         * modules/memmem (Files): Use it.
52749         * modules/strstr (Files): Likewise.
52750
52751         Avoid quadratic strstr implementations.
52752         * lib/strstr.c: New file.
52753         * m4/strstr.m4: Likewise.
52754         * modules/strstr: Likewise.
52755         * modules/strstr-tests: Likewise.
52756         * tests/test-strstr.c: Likewise.
52757         * lib/string.in.h (rpl_strstr): Declare.
52758         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52759         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52760         * modules/string (Makefile.am): Likewise.
52761         * MODULES.html.sh (string handling): Mention new module.
52762         * doc/functions/strstr.texi (strstr): Document the bug.
52763
52764 2008-01-10  Bruno Haible  <bruno@clisp.org>
52765
52766         * lib/relocatable.h (relocate): State whether result is freshly
52767         allocated or not.
52768         * lib/relocatable.c (relocate): Return a freshly allocated string
52769         instead of a pointer to a privately held string.
52770         Reported by Sylvain Beucler <beuc@gnu.org>.
52771
52772 2008-01-10  Colin Watson  <cjwatson@debian.org>
52773
52774         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52775         s/S_ISNLK/S_ISLNK/.
52776
52777 2008-01-09  Bruno Haible  <bruno@clisp.org>
52778
52779         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52780         and other files.
52781         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52782         if it's only a guess.
52783         * modules/memmem: Simplify by depending on memmem-simple.
52784
52785 2008-01-09  Bruno Haible  <bruno@clisp.org>
52786
52787         Work around OpenBSD 4.0 tdelete() bug.
52788         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52789         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52790         macros and don't redefine the enum values.
52791         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52792         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52793         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52794
52795 2008-01-09  Bruno Haible  <bruno@clisp.org>
52796
52797         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52798         (main): Don't perform the tests if setlocale did not install a UTF-8
52799         locale. Needed on OpenBSD 4.0.
52800         * modules/wcwidth-tests (Depends-on): Add localcharset.
52801
52802 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52803
52804         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52805         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52806         * NEWS: announce this.
52807         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52808
52809 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52810         and Eric Blake  <ebb9@byu.net>
52811
52812         Add memmem-simple module.
52813         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52814         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52815         * modules/memmem-simple: New file.
52816         * modules/memmem (Description): Tweak.
52817         * MODULES.html.sh (string handling): Mention new module.
52818         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52819         addressed by memmem-simple.
52820         * NEWS: Document the difference.
52821
52822 2008-01-09  Eric Blake  <ebb9@byu.net>
52823
52824         Give gcc some memmem optimization hints.
52825         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52826         (strcasestr): Declare as pure.
52827         * modules/memmem (Maintainer): Claim my implementation.
52828
52829 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52830
52831         Support AIX 6.1 and higher.
52832         * build-aux/config.libpath: Likewise.
52833         * build-aux/config.rpath: Likewise.
52834
52835 2008-01-08  Jim Meyering  <meyering@redhat.com>
52836             Bruno Haible  <bruno@clisp.org>
52837
52838         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52839         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52840         Reported by Peter Fales in
52841         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52842
52843 2008-01-08  Bruno Haible  <bruno@clisp.org>
52844
52845         * modules/unictype/category-of (Depends-on): Add
52846         unictype/category-none.
52847         * modules/unictype/category-and-tests (Depends-on): Add
52848         unictype/category-{L,N,Lu,Nd}.
52849         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52850         * modules/unictype/category-or-tests (Depends-on): Add
52851         unictype/category-{L,N}.
52852         * modules/unictype/category-name-tests (Depends-on): Add
52853         unictype/category-{Z,Nl}.
52854         Reported by Simon Josefsson.
52855
52856 2008-01-08  Bruno Haible  <bruno@clisp.org>
52857
52858         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52859         convention better.
52860         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52861         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52862         Reported by Peter Miller <millerp@canb.auug.org.au>.
52863
52864 2008-01-08  Eric Blake  <ebb9@byu.net>
52865
52866         Rewrite memmem to guarantee linear complexity without malloc.
52867         * lib/memmem.c (memmem): Use Two-Way rather than
52868         Knuth-Morris-Pratt, to allow O(1) space usage.
52869         (critical_factorization, two_way_short_needle)
52870         (two_way_long_needle): New functions.
52871         (knuth_morris_pratt): Delete.
52872         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52873         Add stdint.
52874         * tests/test-memmem.c (main): Add tests for periodic needle and
52875         sublinear performance.
52876         * doc/functions/memmem.texi (memmem): Document other deficiencies
52877         in cygwin and older glibc.
52878
52879 2008-01-08  Bruno Haible  <bruno@clisp.org>
52880
52881         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52882         augmentation.
52883
52884 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52885
52886         Add a configure time option: --disable-acl.
52887         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52888         AC_ARG_ENABLE(acl).
52889
52890 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52891
52892         * tests/test-localename.c: Don't include obsolete "setenv.h".
52893
52894         * modules/localename-tests (Depends-on): Need unsetenv.
52895
52896 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52897
52898         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52899
52900 2008-01-06  Colin Watson  <cjwatson@debian.org>
52901
52902         * users.txt: Add man-db.
52903
52904 2008-01-07  Bruno Haible  <bruno@clisp.org>
52905
52906         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52907         previous section name.
52908
52909 2008-01-07  Bruno Haible  <bruno@clisp.org>
52910
52911         * lib/progname.c (set_program_name): Don't strip off a leading
52912         "lt-" prefix outside a .libs directory.
52913         Suggested by Paul Eggert.
52914
52915 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52916             Bruno Haible  <bruno@clisp.org>
52917
52918         Improve memory cleanup in 'relocatable' module.
52919         * lib/relocatable.h (compute_curr_prefix): Change return type to
52920         'char *'.
52921         * lib/relocatable.c (compute_curr_prefix): Change return type to
52922         'char *'. Free curr_installdir after use.
52923         (relocate): Free curr_prefix_better after use.
52924         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52925
52926 2008-01-01  Bruno Haible  <bruno@clisp.org>
52927
52928         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52929         failure on older glibc systems.
52930         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52931
52932 2008-01-05  Eric Blake  <ebb9@byu.net>
52933
52934         Avoid quadratic system memmem.
52935         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52936         Reported by Ralf Wildenhues.
52937
52938         Fix memmem test for mingw.
52939         * modules/memmem-tests (configure.ac): Check for alarm.
52940         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52941         it.
52942         * doc/functions/memmem.texi: New file.
52943         * doc/gnulib.texi (Function Substitutes): Add memmem.
52944         Reported by Bruno Haible.
52945
52946 2008-01-04  Bruno Haible  <bruno@clisp.org>
52947
52948         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52949         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52950         gl_HEADER_STRING_H_DEFAULTS.
52951
52952 2008-01-04  Eric Blake  <ebb9@byu.net>
52953
52954         Shorten duration of memmem test.
52955         * tests/test-memmem.c (main): Use alarm to declare failure if test
52956         is taking too long.
52957         Reported by Ralf Wildenhues.
52958
52959 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52960
52961         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52962         string, needed by strerror.
52963
52964 2008-01-03  Colin Watson  <cjwatson@debian.org>
52965             Bruno Haible  <bruno@clisp.org>
52966
52967         * doc/gnulib-tool.texi (Localization): New section.
52968
52969 2008-01-02  Bruno Haible  <bruno@clisp.org>
52970
52971         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52972         variables to 'unsigned char *' type.
52973         Reported by Paul Eggert.
52974
52975 2008-01-02  Jim Meyering  <jim@meyering.net>
52976
52977         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52978
52979 2007-12-31  Jim Meyering  <jim@meyering.net>
52980
52981         Avoid use of private FTS type name.
52982         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52983
52984 2007-12-30  Karl Berry  <karl@gnu.org>
52985
52986         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52987         work around defect in Texinfo and/or the standalone Info browser.
52988
52989 2007-12-30  Bruno Haible  <bruno@clisp.org>
52990
52991         Unify 5 copies of the KMP code.
52992         * lib/str-kmp.h: New file.
52993         * lib/c-strcasestr.c: Include str-kmp.h.
52994         (knuth_morris_pratt): Remove function.
52995         (c_strcasestr): Update.
52996         * lib/c-strstr.c: Include str-kmp.h.
52997         (knuth_morris_pratt): Remove function.
52998         (c_strcasestr): Update.
52999         * lib/mbscasestr.c: Include str-kmp.h.
53000         (knuth_morris_pratt_unibyte): Remove function.
53001         * lib/mbsstr.c: Include str-kmp.h.
53002         (knuth_morris_pratt_unibyte): Remove function.
53003         * lib/strcasestr.c: Include str-kmp.h.
53004         (knuth_morris_pratt): Remove function.
53005         (strcasestr): Update.
53006         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53007         * modules/c-strstr (Files): Likewise.
53008         * modules/mbscasestr (Files): Likewise.
53009         * modules/mbsstr (Files): Likewise.
53010         * modules/strcasestr (Files): Likewise.
53011         Suggested by Paul Eggert.
53012
53013 2007-12-30  Bruno Haible  <bruno@clisp.org>
53014
53015         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53016         defined.
53017
53018 2007-12-30  Bruno Haible  <bruno@clisp.org>
53019
53020         * lib/xmalloca.h: Include xalloc.h.
53021         (xnmalloca): New macro.
53022
53023 2007-12-30  Bruno Haible  <bruno@clisp.org>
53024
53025         * lib/malloca.h (nmalloca): New macro.
53026         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53027         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53028         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53029         knuth_morris_pratt_multibyte): Likewise.
53030         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53031         knuth_morris_pratt_multibyte): Likewise.
53032         * lib/memmem.c (knuth_morris_pratt): Likewise.
53033         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53034
53035 2007-12-25  Bruno Haible  <bruno@clisp.org>
53036
53037         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53038         * lib/glob.c: Don't include openat.h.
53039         (link_exists2_p): Add back the code that deals with the
53040         !GLOB_ALTDIRFUNC case.
53041         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53042         let it do the filename concatenation.
53043         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53044         * modules/glob (Depends-on): Remove openat.
53045
53046 2007-12-31  Bruno Haible  <bruno@clisp.org>
53047
53048         * modules/dirfd (License): Change to LGPLv2+.
53049         Approved by Jim Meyering.
53050
53051 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53052
53053         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53054         when multiplying M by sizeof (size_t).
53055
53056 2007-12-10  Martin Lambers  <marlam@marlam.de>
53057
53058         Override getpagesize on mingw.
53059         * lib/getpagesize.c: New file.
53060         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53061         * modules/getpagesize (Files): Add lib/getpagesize.c.
53062         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53064         REPLACE_GETPAGESIZE.
53065         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53066
53067 2007-12-25  Bruno Haible  <bruno@clisp.org>
53068
53069         * modules/localcharset (Notice): New field.
53070         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53071         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53072
53073 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53074             Bruno Haible  <bruno@clisp.org>
53075
53076         Avoid using the syntax symbol() in formatted documentation.
53077         * MODULES.html.sh (func_module): When replacing symbol() with a
53078         hyperlink, remove the parentheses. Show an error if some remain.
53079         Recognize and render the '...' syntax.
53080         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53081         Rework. Add paragraph about GCC's inlining.
53082         * doc/alloca.texi: Likewise.
53083         * doc/error.texi: Remove parentheses from symbol reference.
53084         * doc/gnulib-intro.texi: Likewise.
53085         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53086         * modules/fnmatch (Description): Reword to say "the ... function".
53087         * modules/full-read (Description): Likewise.
53088         * modules/full-write (Description): Likewise.
53089         * modules/safe-read (Description): Likewise.
53090         * modules/safe-write (Description): Likewise.
53091         * modules/strchrnul (Description): Likewise.
53092         * modules/trim (Description): Likewise.
53093         * modules/error (Description): Remove parentheses from symbol
53094         references.
53095         * modules/verror (Description): Likewise.
53096         Reported by Karl Berry.
53097
53098 2007-12-25  Bruno Haible  <bruno@clisp.org>
53099
53100         Fixup after 2007-10-16 commit.
53101         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53102
53103 2007-12-24  Bruno Haible  <bruno@clisp.org>
53104
53105         Make --enable-relocatable work with DESTDIR.
53106         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53107         to compute installdir from destprog.
53108         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53109         also set the RELOC_DESTDIR variable.
53110         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53111
53112 2007-12-24  Bruno Haible  <bruno@clisp.org>
53113
53114         Fix link error due to xalloc_die().
53115         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53116         of xreadlink.
53117         * lib/relocwrapper.c: Update comments.
53118         * build-aux/install-reloc: Remove xreadlink.c from file list.
53119         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53120         xreadlink.c.
53121         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53122
53123 2007-12-24  Bruno Haible  <bruno@clisp.org>
53124
53125         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53126         * lib/setenv.h: Remove file.
53127         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53128         lib/setenv.h.
53129         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53130         (Depends-on): Add stdlib.
53131         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53132         gl_FUNC_UNSETENV.
53133         (Include): Replace setenv.h with <stdlib.h>.
53134         * modules/unsetenv: New file.
53135         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53136         * lib/unsetenv.c: Include <stdlib.h> first.
53137         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53138         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53139         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53140         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53141         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53142         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53144         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53145         * doc/functions/unsetenv.texi: Update.
53146         * modules/xsetenv (Depends-on): Add unsetenv.
53147         * modules/getdate (Depends-on): Likewise.
53148         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53149         * lib/xsetenv.c: Don't include setenv.h.
53150         * lib/getdate.y: Likewise.
53151         * lib/relocwrapper.c: Likewise.
53152         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53153         (Depends-on): Add stdlib.
53154         * NEWS: Mention the changes.
53155         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53156
53157 2007-12-23  Bruno Haible  <bruno@clisp.org>
53158
53159         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53160         indentation.
53161
53162 2007-12-23  Bruno Haible  <bruno@clisp.org>
53163
53164         * lib/c-strcasestr.c: Add more comments.
53165         * lib/c-strstr.c: Likewise.
53166         * lib/mbscasestr.c: Likewise.
53167         * lib/mbsstr.c: Likewise.
53168         * lib/strcasestr.c: Likewise.
53169         * lib/memmem.c: Likewise.
53170
53171 2007-12-23  Bruno Haible  <bruno@clisp.org>
53172
53173         * tests/test-memmem.c: Include <string.h> first.
53174
53175 2007-12-22  Bruno Haible  <bruno@clisp.org>
53176
53177         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53178         the contents of $testsbase.
53179         Reported by Ralf Wildenhues.
53180
53181 2007-12-22  Bruno Haible  <bruno@clisp.org>
53182
53183         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53184         two variables local_ldadd_before, local_ldadd_last.
53185
53186 2007-12-20  Eric Blake  <ebb9@byu.net>
53187
53188         Work around circular library issue when cross-compiling.
53189         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53190         that progname.o does not need to pull in rpl_memcmp.
53191
53192 2007-12-19  Eric Blake  <ebb9@byu.net>
53193
53194         Fix memmem to avoid O(n^2) worst-case complexity.
53195         * lib/memmem.c (knuth_morris_pratt): New function.
53196         (memmem): Use it if first few naive iterations fail.
53197         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53198         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53199         * modules/memchr (License): Likewise.
53200         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53201         malloca.
53202         * tests/test-memmem.c: Rewrite, borrowing ideas from
53203         test-mbsstr1.c; the old version wouldn't even compile!
53204         * modules/memmem-tests: New file.
53205         * lib/string.in.h (rpl_memmem): Add declaration.
53206         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53208         REPLACE_MEMMEM.
53209
53210 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53211
53212         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53213         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53214         before any system include files, and undef after them all.  This
53215         should fix a problem on VMS reported by John E. Malmberg in
53216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53217
53218 2007-12-17  Eric Blake  <ebb9@byu.net>
53219
53220         Revert addition of verify, for BSD/OS.
53221         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53222         can't handle large files, for the sake of obsolete platforms.
53223         * modules/fseeko (Depends-on): Remove verify.
53224         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53225         * doc/functions/ftello.texi (ftello): Likewise.
53226         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53227         Reported by Larry Jones.
53228
53229 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53230
53231         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53232         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53233
53234 2007-12-17  Jim Meyering  <meyering@redhat.com>
53235
53236         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53237         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53238         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53239         * modules/getcwd (Depends-on): Add openat.
53240         Reported by Petr Salinger.
53241
53242 2007-12-17  Bruno Haible  <bruno@clisp.org>
53243
53244         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53245         avoid a segmentation fault of the configure test on x86_64 systems.
53246
53247 2007-12-15  Jim Meyering  <meyering@redhat.com>
53248
53249         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53250
53251 2007-12-13  Eric Blake  <ebb9@byu.net>
53252
53253         Another fseek test.
53254         * tests/test-fseek.c (main): Also test ungetc handling.
53255         * tests/test-fseeko.c (main): Likewise.
53256         * modules/fseeko (Depends-on): Add verify.
53257         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53258         large.
53259         Reported by Larry Jones.
53260
53261         Fix fseeko on mingw.
53262         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53263         seek.
53264
53265         Beef up fseek tests.
53266         * tests/test-fseek.c (main): Also test eof handling.
53267         * tests/test-fseeko.c (main): Likewise.
53268         Reported by Larry Jones.
53269
53270 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53271
53272         Fix fseeko on BSD-based platforms.
53273         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53274         successful seek.
53275
53276 2007-12-12  Eric Blake  <ebb9@byu.net>
53277
53278         Allow circular dependency of separate libtests.a
53279         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53280         when use_libtests.
53281
53282 2007-12-11  Eric Blake  <ebb9@byu.net>
53283
53284         Fix bug with -0.0L in previous patch.
53285         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53286         * tests/test-isnan.c (main): Also test on zeroes.
53287         * tests/test-isnanf.c (main): Likewise.
53288         * tests/test-isnanl.h (main): Likewise.
53289
53290         Detect pseudo-denormals on x86 even when cross-compiling.
53291         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53292         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53293         invalid bit patterns that happen to satisfy ==.
53294
53295         Avoid link failures with separate libtests.a.
53296         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53297         last, to satisfy circular dependencies.
53298
53299 2007-12-11  Eric Blake  <ebb9@byu.net>
53300         and Bruno Haible  <bruno@clisp.org>
53301
53302         Fix OpenBSD 4.0 <float.h> handling of long double.
53303         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53304         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53305         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53306
53307 2007-12-11  Jim Meyering  <meyering@redhat.com>
53308
53309         * users.txt: Add libvirt.
53310
53311         Support versions of autoconf prior to 2.59c.
53312         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53313         if it is not already defined.
53314
53315 2007-12-09  Bruno Haible  <bruno@clisp.org>
53316
53317         Let 'gnulib-tool --import' collect sources needed for the tests in
53318         tests/ rather than in lib/.
53319         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53320         argument. If true, add rules to generate libtests.a, and put libtests.a
53321         into $(LDADD). Consider source files in subdirectories and set
53322         uses_subdirs.
53323         (func_emit_initmacro_start, func_emit_initmacro_end,
53324         func_emit_initmacro_done): Pass all arguments explicitly.
53325         (func_import): Determine two module lists main_modules,
53326         testsrelated_modules. Determine use_libtests. Determine two variables
53327         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53328         instead of just sed_transform_lib_file. Determine two variables
53329         main_files and testsrelated_files. Compute 'files' as the union of
53330         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53331         func_add_or_update. In the generated gnulib-comp.m4, collect the
53332         object files for tests/ in different variables than those for lib/.
53333         Substitute LIBTESTS_LIBDEPS.
53334         (func_create_testdir): Combine the uses_subdirs results from
53335         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53336
53337 2007-12-09  Bruno Haible  <bruno@clisp.org>
53338
53339         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53340         the build-aux directory.
53341
53342 2007-12-09  Bruno Haible  <bruno@clisp.org>
53343
53344         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53345         introduced on 2006-09-09.
53346
53347 2007-12-07  Jim Meyering  <meyering@redhat.com>
53348
53349         Let these macros work also with autoconf-2.59.
53350         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53351         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53352         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53353
53354 2007-12-06  Jim Meyering  <meyering@redhat.com>
53355
53356         Avoid a configure-time syntax error in gl_FUNC_ACL.
53357         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53358         function in each branch, before testing the cache variable.
53359
53360 2007-12-04  Eric Blake  <ebb9@byu.net>
53361
53362         Make scripts executable.
53363         * build-aux/config.guess: Add execute permissions.
53364         * build-aux/config.sub: Likewise.
53365         * build-aux/gendocs.sh: Likewise.
53366
53367         Fix frexp on mingw.
53368         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53369         cross-compiling.
53370         * doc/functions/frexp.texi (frexp): Document the bug.
53371
53372         Make cygwin fseeko check more reliable.
53373         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53374         version numbers, rather than unrelated feature check.
53375         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53376         * doc/functions/ftello.texi (ftello): Likewise.
53377         Reported by Bruno Haible.
53378
53379         * m4/strerror.m4: Bump version number.
53380
53381 2007-12-03  Bruno Haible  <bruno@clisp.org>
53382
53383         * doc/functions/mprotect.texi: Mention the mingw problem.
53384
53385 2007-12-03  Eric Blake  <ebb9@byu.net>
53386
53387         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53388         REPLACE_STRERROR is initialized before this macro.
53389
53390 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53391
53392         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53393         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53394         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53395         put -lsec in even for programs other than 'ls'.  This fixes a problem
53396         for gettext reported by Bruno Haible in
53397         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53398         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53399         Add support for Solaris 10.  This isn't efficient, but should get the
53400         job done for now.
53401
53402 2007-12-03  James Youngman  <jay@gnu.org>
53403
53404         * doc/regexprops-generic.texi: change "an close-group" to "a
53405         close-group" and "illegal" to "not allowed".
53406
53407 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53408
53409         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53410         pr_byname.h. Needed for the rare case when the maintainer has done
53411         "make maintainer-clean" in the source directory and then attempts a
53412         build outside the source directory.
53413         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53414         scripts_byname.h.
53415
53416 2007-12-02  Martin Lambers <marlam@marlam.de>
53417             Bruno Haible  <bruno@clisp.org>
53418
53419         * lib/getpagesize.h: Remove file.
53420         * lib/unistd.in.h: Include declaration of getpagesize here.
53421         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53422         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53423         HAVE_SYS_PARAM_H.
53424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53425         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53426         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53427         (Depends-on): Add unistd.
53428         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53429         (Include): Use <unistd.h> instead of getpagesize.h.
53430         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53431         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53432         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53433         gl_GETPAGESIZE invocation, already handled by module dependency.
53434         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53435
53436 2007-12-02  Bruno Haible  <bruno@clisp.org>
53437
53438         * modules/strings-tests: New file.
53439         * tests/test-strings.c: New file.
53440
53441         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53442         * lib/strings.in.h: New file.
53443         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53444         * m4/strings_h.m4: New file.
53445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53446         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53447         * modules/strings: New file.
53448         * modules/string (Makefile.am): Update.
53449         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53450         Reported by Karl Berry.
53451
53452 2007-12-01  Eric Blake  <ebb9@byu.net>
53453
53454         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53455         accomodate fix in cygwin 1.5.25.
53456
53457 2007-12-01  Jim Meyering  <meyering@redhat.com>
53458
53459         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53460         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53461         that would inhibit utf8-optimization of a regexp containing line-
53462         or buffer-anchors, e.g., `^', `$'.
53463
53464 2007-11-30  Bruno Haible  <bruno@clisp.org>
53465
53466         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53467         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53468         glthread_recursive_lock_init.
53469         * lib/lock.c (glthread_recursive_lock_init)
53470         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53471         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53472
53473 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53474
53475         New function qset_acl, like set_acl but with syscall semantics.
53476         * lib/acl.h (qset_acl): New decl.
53477         * lib/acl.c (qset_acl): New function.
53478         (set_acl): Use new function.  Use more-consistent diagnostics.
53479
53480 2007-11-28  Jim Meyering  <meyering@redhat.com>
53481
53482         * modules/physmem (License): Change from GPL to LGPLv2+.
53483
53484 2007-11-26  Bruno Haible  <bruno@clisp.org>
53485
53486         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53487         'long double' type has excess precision.
53488         Reported by Jim Meyering in
53489         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53490
53491 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53492
53493         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53494         Sync from <http://gnu.org/licenses>.
53495         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53496         with license text from same location.
53497         * doc/maintain.texi, doc/standards.texi:  Sync from
53498         <http://savannah.gnu.org/projects/gnustandards>.
53499
53500 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53501         and Jim Meyering  <meyering@redhat.com>
53502
53503         Adjust getdate' grammar to accept a slightly more regular language.
53504         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53505         Before, the former was rejected.
53506         * lib/getdate.y (digits_to_date_time): New function, factored
53507         out of ...
53508         (number): ...here.  Just call digits_to_date_time.
53509         (hybrid): New non-terminal to handle an <unsigned number,
53510         signed relative offset> sequence consistently.
53511
53512 2007-11-18  Jim Meyering  <meyering@redhat.com>
53513
53514         Pull my changes from coreutils:
53515         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53516         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53517         use of $gnulib_tool_option_extras, so that it's separated from the
53518         preceding argument.
53519
53520         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53521         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53522         parent destination directories before copying a file into place.
53523
53524 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53525
53526         bootstrap: work also with 4-argument variant of AC_INIT
53527         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53528
53529 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53530
53531         Port test-getaddrinfo to Solaris.
53532         Problem reported by Bruno Haible in
53533         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53534         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53535         explanation of setting 'hints'.
53536         Don't reject an implementation merely because it returns EAI_SERVICE.
53537         (EAI_SERVICE): Define to 0 if not defined.
53538
53539 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53540
53541         The license of gnu-make and posix-shell is now "GPLed build tool".
53542         * modules/gnu-make (License): Likewise.
53543         * modules/posix-shell (License): Likewise.
53544
53545         New module posix-shell, for determining a POSIX shell
53546         or perhaps something that is close enough to a POSIX shell.
53547         * m4/posix-shell.m4: New file.
53548         * modules/posix-shell: New file.
53549
53550         * MODULES.html.sh: Mention new module.
53551
53552         New module gnu-make, for determining whether we're using GNU Make.
53553         * m4/gnu-make.m4: New file.
53554         * modules/gnu-make: New file.
53555         * MODULES.html.sh: Mention new module.
53556
53557 2007-11-14  Jim Meyering  <meyering@redhat.com>
53558
53559         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53560         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53561         use this macro to create a function _definition_.
53562         Remove useless "#undef ARGMATCH_DIE".
53563
53564 2007-11-14  Bruno Haible  <bruno@clisp.org>
53565
53566         * lib/config.charset: Update for OpenBSD 4.1.
53567         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53568
53569 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53570
53571         Document 64-bit #if problems in stdint.texi.
53572         * doc/headers/stdint.texi (stdint.h): Mention problems with
53573         64-bit-#if, and how to work around them.
53574
53575         Don't insist on 'long long int' support in the preprocessor.  It
53576         breaks too many things.  For example, PRIdMAX still uses a 'long
53577         long int' format with the latest Sun compiler, even though
53578         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53579         preprocessor problem.  This causes the latest coreutils to dump
53580         core on Solaris 10 sparc with the Sun C compiler.
53581         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53582         the troublesome expressions at configure-time, not at #if-time.
53583         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53584         preprocessor.
53585         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53586         compile-time C checks, done at 'configure'-time.
53587         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53588         * modules/inttypes (Makefile): Substitute the new symbols that
53589         gl_INTTYPES_H now generates.
53590         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53591
53592 2007-11-12  Bruno Haible  <bruno@clisp.org>
53593
53594         Tests for Unicode character classification functions.
53595
53596         * modules/unictype/bidicategory-byname-tests: New file.
53597         * modules/unictype/bidicategory-name-tests: New file.
53598         * modules/unictype/bidicategory-of-tests: New file.
53599         * modules/unictype/bidicategory-test-tests: New file.
53600         * modules/unictype/block-list-tests: New file.
53601         * modules/unictype/block-of-tests: New file.
53602         * modules/unictype/block-test-tests: New file.
53603         * modules/unictype/category-C-tests: New file.
53604         * modules/unictype/category-Cc-tests: New file.
53605         * modules/unictype/category-Cf-tests: New file.
53606         * modules/unictype/category-Cn-tests: New file.
53607         * modules/unictype/category-Co-tests: New file.
53608         * modules/unictype/category-Cs-tests: New file.
53609         * modules/unictype/category-L-tests: New file.
53610         * modules/unictype/category-Ll-tests: New file.
53611         * modules/unictype/category-Lm-tests: New file.
53612         * modules/unictype/category-Lo-tests: New file.
53613         * modules/unictype/category-Lt-tests: New file.
53614         * modules/unictype/category-Lu-tests: New file.
53615         * modules/unictype/category-M-tests: New file.
53616         * modules/unictype/category-Mc-tests: New file.
53617         * modules/unictype/category-Me-tests: New file.
53618         * modules/unictype/category-Mn-tests: New file.
53619         * modules/unictype/category-N-tests: New file.
53620         * modules/unictype/category-Nd-tests: New file.
53621         * modules/unictype/category-Nl-tests: New file.
53622         * modules/unictype/category-No-tests: New file.
53623         * modules/unictype/category-P-tests: New file.
53624         * modules/unictype/category-Pc-tests: New file.
53625         * modules/unictype/category-Pd-tests: New file.
53626         * modules/unictype/category-Pe-tests: New file.
53627         * modules/unictype/category-Pf-tests: New file.
53628         * modules/unictype/category-Pi-tests: New file.
53629         * modules/unictype/category-Po-tests: New file.
53630         * modules/unictype/category-Ps-tests: New file.
53631         * modules/unictype/category-S-tests: New file.
53632         * modules/unictype/category-Sc-tests: New file.
53633         * modules/unictype/category-Sk-tests: New file.
53634         * modules/unictype/category-Sm-tests: New file.
53635         * modules/unictype/category-So-tests: New file.
53636         * modules/unictype/category-Z-tests: New file.
53637         * modules/unictype/category-Zl-tests: New file.
53638         * modules/unictype/category-Zp-tests: New file.
53639         * modules/unictype/category-Zs-tests: New file.
53640         * modules/unictype/category-and-not-tests: New file.
53641         * modules/unictype/category-and-tests: New file.
53642         * modules/unictype/category-byname-tests: New file.
53643         * modules/unictype/category-name-tests: New file.
53644         * modules/unictype/category-none-tests: New file.
53645         * modules/unictype/category-of-tests: New file.
53646         * modules/unictype/category-or-tests: New file.
53647         * modules/unictype/category-test-withtable-tests: New file.
53648         * modules/unictype/combining-class-tests: New file.
53649         * modules/unictype/ctype-alnum-tests: New file.
53650         * modules/unictype/ctype-alpha-tests: New file.
53651         * modules/unictype/ctype-blank-tests: New file.
53652         * modules/unictype/ctype-cntrl-tests: New file.
53653         * modules/unictype/ctype-digit-tests: New file.
53654         * modules/unictype/ctype-graph-tests: New file.
53655         * modules/unictype/ctype-lower-tests: New file.
53656         * modules/unictype/ctype-print-tests: New file.
53657         * modules/unictype/ctype-punct-tests: New file.
53658         * modules/unictype/ctype-space-tests: New file.
53659         * modules/unictype/ctype-upper-tests: New file.
53660         * modules/unictype/ctype-xdigit-tests: New file.
53661         * modules/unictype/decimal-digit-tests: New file.
53662         * modules/unictype/digit-tests: New file.
53663         * modules/unictype/mirror-tests: New file.
53664         * modules/unictype/numeric-tests: New file.
53665         * modules/unictype/property-alphabetic-tests: New file.
53666         * modules/unictype/property-ascii-hex-digit-tests: New file.
53667         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53668         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53669         * modules/unictype/property-bidi-block-separator-tests: New file.
53670         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53671         * modules/unictype/property-bidi-common-separator-tests: New file.
53672         * modules/unictype/property-bidi-control-tests: New file.
53673         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53674         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53675         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53676         * modules/unictype/property-bidi-european-digit-tests: New file.
53677         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53678         * modules/unictype/property-bidi-left-to-right-tests: New file.
53679         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53680         * modules/unictype/property-bidi-other-neutral-tests: New file.
53681         * modules/unictype/property-bidi-pdf-tests: New file.
53682         * modules/unictype/property-bidi-segment-separator-tests: New file.
53683         * modules/unictype/property-bidi-whitespace-tests: New file.
53684         * modules/unictype/property-byname-tests: New file.
53685         * modules/unictype/property-combining-tests: New file.
53686         * modules/unictype/property-composite-tests: New file.
53687         * modules/unictype/property-currency-symbol-tests: New file.
53688         * modules/unictype/property-dash-tests: New file.
53689         * modules/unictype/property-decimal-digit-tests: New file.
53690         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53691         * modules/unictype/property-deprecated-tests: New file.
53692         * modules/unictype/property-diacritic-tests: New file.
53693         * modules/unictype/property-extender-tests: New file.
53694         * modules/unictype/property-format-control-tests: New file.
53695         * modules/unictype/property-grapheme-base-tests: New file.
53696         * modules/unictype/property-grapheme-extend-tests: New file.
53697         * modules/unictype/property-grapheme-link-tests: New file.
53698         * modules/unictype/property-hex-digit-tests: New file.
53699         * modules/unictype/property-hyphen-tests: New file.
53700         * modules/unictype/property-id-continue-tests: New file.
53701         * modules/unictype/property-id-start-tests: New file.
53702         * modules/unictype/property-ideographic-tests: New file.
53703         * modules/unictype/property-ids-binary-operator-tests: New file.
53704         * modules/unictype/property-ids-trinary-operator-tests: New file.
53705         * modules/unictype/property-ignorable-control-tests: New file.
53706         * modules/unictype/property-iso-control-tests: New file.
53707         * modules/unictype/property-join-control-tests: New file.
53708         * modules/unictype/property-left-of-pair-tests: New file.
53709         * modules/unictype/property-line-separator-tests: New file.
53710         * modules/unictype/property-logical-order-exception-tests: New file.
53711         * modules/unictype/property-lowercase-tests: New file.
53712         * modules/unictype/property-math-tests: New file.
53713         * modules/unictype/property-non-break-tests: New file.
53714         * modules/unictype/property-not-a-character-tests: New file.
53715         * modules/unictype/property-numeric-tests: New file.
53716         * modules/unictype/property-other-alphabetic-tests: New file.
53717         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53718         * modules/unictype/property-other-grapheme-extend-tests: New file.
53719         * modules/unictype/property-other-id-continue-tests: New file.
53720         * modules/unictype/property-other-id-start-tests: New file.
53721         * modules/unictype/property-other-lowercase-tests: New file.
53722         * modules/unictype/property-other-math-tests: New file.
53723         * modules/unictype/property-other-uppercase-tests: New file.
53724         * modules/unictype/property-paired-punctuation-tests: New file.
53725         * modules/unictype/property-paragraph-separator-tests: New file.
53726         * modules/unictype/property-pattern-syntax-tests: New file.
53727         * modules/unictype/property-pattern-white-space-tests: New file.
53728         * modules/unictype/property-private-use-tests: New file.
53729         * modules/unictype/property-punctuation-tests: New file.
53730         * modules/unictype/property-quotation-mark-tests: New file.
53731         * modules/unictype/property-radical-tests: New file.
53732         * modules/unictype/property-sentence-terminal-tests: New file.
53733         * modules/unictype/property-soft-dotted-tests: New file.
53734         * modules/unictype/property-space-tests: New file.
53735         * modules/unictype/property-terminal-punctuation-tests: New file.
53736         * modules/unictype/property-test-tests: New file.
53737         * modules/unictype/property-titlecase-tests: New file.
53738         * modules/unictype/property-unassigned-code-value-tests: New file.
53739         * modules/unictype/property-unified-ideograph-tests: New file.
53740         * modules/unictype/property-uppercase-tests: New file.
53741         * modules/unictype/property-variation-selector-tests: New file.
53742         * modules/unictype/property-white-space-tests: New file.
53743         * modules/unictype/property-xid-continue-tests: New file.
53744         * modules/unictype/property-xid-start-tests: New file.
53745         * modules/unictype/property-zero-width-tests: New file.
53746         * modules/unictype/scripts-tests: New file.
53747         * modules/unictype/syntax-c-ident-tests: New file.
53748         * modules/unictype/syntax-c-whitespace-tests: New file.
53749         * modules/unictype/syntax-java-ident-tests: New file.
53750         * modules/unictype/syntax-java-whitespace-tests: New file.
53751         * tests/unictype/test-bidi_byname.c: New file.
53752         * tests/unictype/test-bidi_name.c: New file.
53753         * tests/unictype/test-bidi_of.c: New file.
53754         * tests/unictype/test-bidi_test.c: New file.
53755         * tests/unictype/test-block_list.c: New file.
53756         * tests/unictype/test-block_of.c: New file.
53757         * tests/unictype/test-block_test.c: New file.
53758         * tests/unictype/test-categ_and.c: New file.
53759         * tests/unictype/test-categ_and_not.c: New file.
53760         * tests/unictype/test-categ_byname.c: New file.
53761         * tests/unictype/test-categ_name.c: New file.
53762         * tests/unictype/test-categ_none.c: New file.
53763         * tests/unictype/test-categ_of.c: New file.
53764         * tests/unictype/test-categ_or.c: New file.
53765         * tests/unictype/test-categ_test_withtable.c: New file.
53766         * tests/unictype/test-combining.c: New file.
53767         * tests/unictype/test-decdigit.c: New file.
53768         * tests/unictype/test-digit.c: New file.
53769         * tests/unictype/test-mirror.c: New file.
53770         * tests/unictype/test-numeric.c: New file.
53771         * tests/unictype/test-pr_byname.c: New file.
53772         * tests/unictype/test-pr_test.c: New file.
53773         * tests/unictype/test-predicate-part1.h: New file.
53774         * tests/unictype/test-predicate-part2.h: New file.
53775         * tests/unictype/test-scripts.c: New file.
53776         * tests/unictype/test-sy_c_ident.c: New file.
53777         * tests/unictype/test-sy_java_ident.c: New file.
53778
53779         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53780         for Unicode 5.0.0.
53781         * tests/unictype/test-categ_Cc.c: Likewise.
53782         * tests/unictype/test-categ_Cf.c: Likewise.
53783         * tests/unictype/test-categ_Cn.c: Likewise.
53784         * tests/unictype/test-categ_Co.c: Likewise.
53785         * tests/unictype/test-categ_Cs.c: Likewise.
53786         * tests/unictype/test-categ_L.c: Likewise.
53787         * tests/unictype/test-categ_Ll.c: Likewise.
53788         * tests/unictype/test-categ_Lm.c: Likewise.
53789         * tests/unictype/test-categ_Lo.c: Likewise.
53790         * tests/unictype/test-categ_Lt.c: Likewise.
53791         * tests/unictype/test-categ_Lu.c: Likewise.
53792         * tests/unictype/test-categ_M.c: Likewise.
53793         * tests/unictype/test-categ_Mc.c: Likewise.
53794         * tests/unictype/test-categ_Me.c: Likewise.
53795         * tests/unictype/test-categ_Mn.c: Likewise.
53796         * tests/unictype/test-categ_N.c: Likewise.
53797         * tests/unictype/test-categ_Nd.c: Likewise.
53798         * tests/unictype/test-categ_Nl.c: Likewise.
53799         * tests/unictype/test-categ_No.c: Likewise.
53800         * tests/unictype/test-categ_P.c: Likewise.
53801         * tests/unictype/test-categ_Pc.c: Likewise.
53802         * tests/unictype/test-categ_Pd.c: Likewise.
53803         * tests/unictype/test-categ_Pe.c: Likewise.
53804         * tests/unictype/test-categ_Pf.c: Likewise.
53805         * tests/unictype/test-categ_Pi.c: Likewise.
53806         * tests/unictype/test-categ_Po.c: Likewise.
53807         * tests/unictype/test-categ_Ps.c: Likewise.
53808         * tests/unictype/test-categ_S.c: Likewise.
53809         * tests/unictype/test-categ_Sc.c: Likewise.
53810         * tests/unictype/test-categ_Sk.c: Likewise.
53811         * tests/unictype/test-categ_Sm.c: Likewise.
53812         * tests/unictype/test-categ_So.c: Likewise.
53813         * tests/unictype/test-categ_Z.c: Likewise.
53814         * tests/unictype/test-categ_Zl.c: Likewise.
53815         * tests/unictype/test-categ_Zp.c: Likewise.
53816         * tests/unictype/test-categ_Zs.c: Likewise.
53817         * tests/unictype/test-ctype_alnum.c: Likewise.
53818         * tests/unictype/test-ctype_alpha.c: Likewise.
53819         * tests/unictype/test-ctype_blank.c: Likewise.
53820         * tests/unictype/test-ctype_cntrl.c: Likewise.
53821         * tests/unictype/test-ctype_digit.c: Likewise.
53822         * tests/unictype/test-ctype_graph.c: Likewise.
53823         * tests/unictype/test-ctype_lower.c: Likewise.
53824         * tests/unictype/test-ctype_print.c: Likewise.
53825         * tests/unictype/test-ctype_punct.c: Likewise.
53826         * tests/unictype/test-ctype_space.c: Likewise.
53827         * tests/unictype/test-ctype_upper.c: Likewise.
53828         * tests/unictype/test-ctype_xdigit.c: Likewise.
53829         * tests/unictype/test-decdigit.h: Likewise.
53830         * tests/unictype/test-digit.h: Likewise.
53831         * tests/unictype/test-numeric.h: Likewise.
53832         * tests/unictype/test-pr_alphabetic.c: Likewise.
53833         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53834         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53835         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53836         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53837         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53838         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53839         * tests/unictype/test-pr_bidi_control.c: Likewise.
53840         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53841         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53842         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53843         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53844         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53845         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53846         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53847         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53848         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53849         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53850         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53851         * tests/unictype/test-pr_combining.c: Likewise.
53852         * tests/unictype/test-pr_composite.c: Likewise.
53853         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53854         * tests/unictype/test-pr_dash.c: Likewise.
53855         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53856         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53857         * tests/unictype/test-pr_deprecated.c: Likewise.
53858         * tests/unictype/test-pr_diacritic.c: Likewise.
53859         * tests/unictype/test-pr_extender.c: Likewise.
53860         * tests/unictype/test-pr_format_control.c: Likewise.
53861         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53862         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53863         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53864         * tests/unictype/test-pr_hex_digit.c: Likewise.
53865         * tests/unictype/test-pr_hyphen.c: Likewise.
53866         * tests/unictype/test-pr_id_continue.c: Likewise.
53867         * tests/unictype/test-pr_id_start.c: Likewise.
53868         * tests/unictype/test-pr_ideographic.c: Likewise.
53869         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53870         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53871         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53872         * tests/unictype/test-pr_iso_control.c: Likewise.
53873         * tests/unictype/test-pr_join_control.c: Likewise.
53874         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53875         * tests/unictype/test-pr_line_separator.c: Likewise.
53876         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53877         * tests/unictype/test-pr_lowercase.c: Likewise.
53878         * tests/unictype/test-pr_math.c: Likewise.
53879         * tests/unictype/test-pr_non_break.c: Likewise.
53880         * tests/unictype/test-pr_not_a_character.c: Likewise.
53881         * tests/unictype/test-pr_numeric.c: Likewise.
53882         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53883         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53884         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53885         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53886         * tests/unictype/test-pr_other_id_start.c: Likewise.
53887         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53888         * tests/unictype/test-pr_other_math.c: Likewise.
53889         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53890         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53891         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53892         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53893         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53894         * tests/unictype/test-pr_private_use.c: Likewise.
53895         * tests/unictype/test-pr_punctuation.c: Likewise.
53896         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53897         * tests/unictype/test-pr_radical.c: Likewise.
53898         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53899         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53900         * tests/unictype/test-pr_space.c: Likewise.
53901         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53902         * tests/unictype/test-pr_titlecase.c: Likewise.
53903         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53904         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53905         * tests/unictype/test-pr_uppercase.c: Likewise.
53906         * tests/unictype/test-pr_variation_selector.c: Likewise.
53907         * tests/unictype/test-pr_white_space.c: Likewise.
53908         * tests/unictype/test-pr_xid_continue.c: Likewise.
53909         * tests/unictype/test-pr_xid_start.c: Likewise.
53910         * tests/unictype/test-pr_zero_width.c: Likewise.
53911         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53912         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53913
53914 2007-11-12  Bruno Haible  <bruno@clisp.org>
53915
53916         Unicode character classification functions.
53917         * lib/unictype.h: New file.
53918         * modules/unictype/base: New file.
53919         * modules/unictype/category-L: New file.
53920         * modules/unictype/category-Lu: New file.
53921         * modules/unictype/category-Ll: New file.
53922         * modules/unictype/category-Lt: New file.
53923         * modules/unictype/category-Lm: New file.
53924         * modules/unictype/category-Lo: New file.
53925         * modules/unictype/category-M: New file.
53926         * modules/unictype/category-Mn: New file.
53927         * modules/unictype/category-Mc: New file.
53928         * modules/unictype/category-Me: New file.
53929         * modules/unictype/category-N: New file.
53930         * modules/unictype/category-Nd: New file.
53931         * modules/unictype/category-Nl: New file.
53932         * modules/unictype/category-No: New file.
53933         * modules/unictype/category-P: New file.
53934         * modules/unictype/category-Pc: New file.
53935         * modules/unictype/category-Pd: New file.
53936         * modules/unictype/category-Ps: New file.
53937         * modules/unictype/category-Pe: New file.
53938         * modules/unictype/category-Pi: New file.
53939         * modules/unictype/category-Pf: New file.
53940         * modules/unictype/category-Po: New file.
53941         * modules/unictype/category-S: New file.
53942         * modules/unictype/category-Sm: New file.
53943         * modules/unictype/category-Sc: New file.
53944         * modules/unictype/category-Sk: New file.
53945         * modules/unictype/category-So: New file.
53946         * modules/unictype/category-Z: New file.
53947         * modules/unictype/category-Zs: New file.
53948         * modules/unictype/category-Zl: New file.
53949         * modules/unictype/category-Zp: New file.
53950         * modules/unictype/category-C: New file.
53951         * modules/unictype/category-Cc: New file.
53952         * modules/unictype/category-Cf: New file.
53953         * modules/unictype/category-Cs: New file.
53954         * modules/unictype/category-Co: New file.
53955         * modules/unictype/category-Cn: New file.
53956         * modules/unictype/category-or: New file.
53957         * modules/unictype/category-of: New file.
53958         * modules/unictype/category-test: New file.
53959         * modules/unictype/category-test-withtable: New file.
53960         * modules/unictype/category-byname: New file.
53961         * modules/unictype/category-none: New file.
53962         * modules/unictype/category-and: New file.
53963         * modules/unictype/category-and-not: New file.
53964         * modules/unictype/category-name: New file.
53965         * modules/unictype/combining-class: New file.
53966         * modules/unictype/category-all: New file.
53967         * modules/unictype/bidicategory-all: New file.
53968         * modules/unictype/bidicategory-byname: New file.
53969         * modules/unictype/bidicategory-name: New file.
53970         * modules/unictype/bidicategory-of: New file.
53971         * modules/unictype/bidicategory-test: New file.
53972         * modules/unictype/decimal-digit: New file.
53973         * modules/unictype/digit: New file.
53974         * modules/unictype/numeric: New file.
53975         * modules/unictype/mirror: New file.
53976         * modules/unictype/property-white-space: New file.
53977         * modules/unictype/property-alphabetic: New file.
53978         * modules/unictype/property-other-alphabetic: New file.
53979         * modules/unictype/property-not-a-character: New file.
53980         * modules/unictype/property-default-ignorable-code-point: New file.
53981         * modules/unictype/property-other-default-ignorable-code-point: New
53982         file.
53983         * modules/unictype/property-deprecated: New file.
53984         * modules/unictype/property-logical-order-exception: New file.
53985         * modules/unictype/property-variation-selector: New file.
53986         * modules/unictype/property-private-use: New file.
53987         * modules/unictype/property-unassigned-code-value: New file.
53988         * modules/unictype/property-uppercase: New file.
53989         * modules/unictype/property-other-uppercase: New file.
53990         * modules/unictype/property-lowercase: New file.
53991         * modules/unictype/property-other-lowercase: New file.
53992         * modules/unictype/property-titlecase: New file.
53993         * modules/unictype/property-soft-dotted: New file.
53994         * modules/unictype/property-id-start: New file.
53995         * modules/unictype/property-other-id-start: New file.
53996         * modules/unictype/property-id-continue: New file.
53997         * modules/unictype/property-other-id-continue: New file.
53998         * modules/unictype/property-xid-start: New file.
53999         * modules/unictype/property-xid-continue: New file.
54000         * modules/unictype/property-pattern-white-space: New file.
54001         * modules/unictype/property-pattern-syntax: New file.
54002         * modules/unictype/property-join-control: New file.
54003         * modules/unictype/property-grapheme-base: New file.
54004         * modules/unictype/property-grapheme-extend: New file.
54005         * modules/unictype/property-other-grapheme-extend: New file.
54006         * modules/unictype/property-grapheme-link: New file.
54007         * modules/unictype/property-bidi-control: New file.
54008         * modules/unictype/property-bidi-left-to-right: New file.
54009         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54010         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54011         * modules/unictype/property-bidi-european-digit: New file.
54012         * modules/unictype/property-bidi-eur-num-separator: New file.
54013         * modules/unictype/property-bidi-eur-num-terminator: New file.
54014         * modules/unictype/property-bidi-arabic-digit: New file.
54015         * modules/unictype/property-bidi-common-separator: New file.
54016         * modules/unictype/property-bidi-block-separator: New file.
54017         * modules/unictype/property-bidi-segment-separator: New file.
54018         * modules/unictype/property-bidi-whitespace: New file.
54019         * modules/unictype/property-bidi-non-spacing-mark: New file.
54020         * modules/unictype/property-bidi-boundary-neutral: New file.
54021         * modules/unictype/property-bidi-pdf: New file.
54022         * modules/unictype/property-bidi-embedding-or-override: New file.
54023         * modules/unictype/property-bidi-other-neutral: New file.
54024         * modules/unictype/property-hex-digit: New file.
54025         * modules/unictype/property-ascii-hex-digit: New file.
54026         * modules/unictype/property-ideographic: New file.
54027         * modules/unictype/property-unified-ideograph: New file.
54028         * modules/unictype/property-radical: New file.
54029         * modules/unictype/property-ids-binary-operator: New file.
54030         * modules/unictype/property-ids-trinary-operator: New file.
54031         * modules/unictype/property-zero-width: New file.
54032         * modules/unictype/property-space: New file.
54033         * modules/unictype/property-non-break: New file.
54034         * modules/unictype/property-iso-control: New file.
54035         * modules/unictype/property-format-control: New file.
54036         * modules/unictype/property-dash: New file.
54037         * modules/unictype/property-hyphen: New file.
54038         * modules/unictype/property-punctuation: New file.
54039         * modules/unictype/property-line-separator: New file.
54040         * modules/unictype/property-paragraph-separator: New file.
54041         * modules/unictype/property-quotation-mark: New file.
54042         * modules/unictype/property-sentence-terminal: New file.
54043         * modules/unictype/property-terminal-punctuation: New file.
54044         * modules/unictype/property-currency-symbol: New file.
54045         * modules/unictype/property-math: New file.
54046         * modules/unictype/property-other-math: New file.
54047         * modules/unictype/property-paired-punctuation: New file.
54048         * modules/unictype/property-left-of-pair: New file.
54049         * modules/unictype/property-combining: New file.
54050         * modules/unictype/property-composite: New file.
54051         * modules/unictype/property-decimal-digit: New file.
54052         * modules/unictype/property-numeric: New file.
54053         * modules/unictype/property-diacritic: New file.
54054         * modules/unictype/property-extender: New file.
54055         * modules/unictype/property-ignorable-control: New file.
54056         * modules/unictype/property-test: New file.
54057         * modules/unictype/property-byname: New file.
54058         * modules/unictype/property-all: New file.
54059         * modules/unictype/scripts: New file.
54060         * modules/unictype/scripts-all: New file.
54061         * modules/unictype/block-of: New file.
54062         * modules/unictype/block-test: New file.
54063         * modules/unictype/block-list: New file.
54064         * modules/unictype/block-all: New file.
54065         * modules/unictype/syntax-c-whitespace: New file.
54066         * modules/unictype/syntax-java-whitespace: New file.
54067         * modules/unictype/syntax-c-ident: New file.
54068         * modules/unictype/syntax-java-ident: New file.
54069         * modules/unictype/ctype-alnum: New file.
54070         * modules/unictype/ctype-alpha: New file.
54071         * modules/unictype/ctype-cntrl: New file.
54072         * modules/unictype/ctype-digit: New file.
54073         * modules/unictype/ctype-graph: New file.
54074         * modules/unictype/ctype-lower: New file.
54075         * modules/unictype/ctype-print: New file.
54076         * modules/unictype/ctype-punct: New file.
54077         * modules/unictype/ctype-space: New file.
54078         * modules/unictype/ctype-upper: New file.
54079         * modules/unictype/ctype-xdigit: New file.
54080         * modules/unictype/ctype-blank: New file.
54081         * lib/unictype/bidi_byname.c: New file.
54082         * lib/unictype/bidi_name.c: New file.
54083         * lib/unictype/bidi_of.c: New file.
54084         * lib/unictype/bidi_test.c: New file.
54085         * lib/unictype/bitmap.h: New file.
54086         * lib/unictype/block_test.c: New file.
54087         * lib/unictype/blocks.c: New file.
54088         * lib/unictype/categ_C.c: New file.
54089         * lib/unictype/categ_Cc.c: New file.
54090         * lib/unictype/categ_Cf.c: New file.
54091         * lib/unictype/categ_Cn.c: New file.
54092         * lib/unictype/categ_Co.c: New file.
54093         * lib/unictype/categ_Cs.c: New file.
54094         * lib/unictype/categ_L.c: New file.
54095         * lib/unictype/categ_Ll.c: New file.
54096         * lib/unictype/categ_Lm.c: New file.
54097         * lib/unictype/categ_Lo.c: New file.
54098         * lib/unictype/categ_Lt.c: New file.
54099         * lib/unictype/categ_Lu.c: New file.
54100         * lib/unictype/categ_M.c: New file.
54101         * lib/unictype/categ_Mc.c: New file.
54102         * lib/unictype/categ_Me.c: New file.
54103         * lib/unictype/categ_Mn.c: New file.
54104         * lib/unictype/categ_N.c: New file.
54105         * lib/unictype/categ_Nd.c: New file.
54106         * lib/unictype/categ_Nl.c: New file.
54107         * lib/unictype/categ_No.c: New file.
54108         * lib/unictype/categ_P.c: New file.
54109         * lib/unictype/categ_Pc.c: New file.
54110         * lib/unictype/categ_Pd.c: New file.
54111         * lib/unictype/categ_Pe.c: New file.
54112         * lib/unictype/categ_Pf.c: New file.
54113         * lib/unictype/categ_Pi.c: New file.
54114         * lib/unictype/categ_Po.c: New file.
54115         * lib/unictype/categ_Ps.c: New file.
54116         * lib/unictype/categ_S.c: New file.
54117         * lib/unictype/categ_Sc.c: New file.
54118         * lib/unictype/categ_Sk.c: New file.
54119         * lib/unictype/categ_Sm.c: New file.
54120         * lib/unictype/categ_So.c: New file.
54121         * lib/unictype/categ_Z.c: New file.
54122         * lib/unictype/categ_Zl.c: New file.
54123         * lib/unictype/categ_Zp.c: New file.
54124         * lib/unictype/categ_Zs.c: New file.
54125         * lib/unictype/categ_and.c: New file.
54126         * lib/unictype/categ_and_not.c: New file.
54127         * lib/unictype/categ_byname.c: New file.
54128         * lib/unictype/categ_name.c: New file.
54129         * lib/unictype/categ_none.c: New file.
54130         * lib/unictype/categ_of.c: New file.
54131         * lib/unictype/categ_or.c: New file.
54132         * lib/unictype/categ_test.c: New file.
54133         * lib/unictype/combining.c: New file.
54134         * lib/unictype/ctype_alnum.c: New file.
54135         * lib/unictype/ctype_alpha.c: New file.
54136         * lib/unictype/ctype_blank.c: New file.
54137         * lib/unictype/ctype_cntrl.c: New file.
54138         * lib/unictype/ctype_digit.c: New file.
54139         * lib/unictype/ctype_graph.c: New file.
54140         * lib/unictype/ctype_lower.c: New file.
54141         * lib/unictype/ctype_print.c: New file.
54142         * lib/unictype/ctype_punct.c: New file.
54143         * lib/unictype/ctype_space.c: New file.
54144         * lib/unictype/ctype_upper.c: New file.
54145         * lib/unictype/ctype_xdigit.c: New file.
54146         * lib/unictype/decdigit.c: New file.
54147         * lib/unictype/digit.c: New file.
54148         * lib/unictype/identsyntaxmap.h: New file.
54149         * lib/unictype/mirror.c: New file.
54150         * lib/unictype/numeric.c: New file.
54151         * lib/unictype/pr_alphabetic.c: New file.
54152         * lib/unictype/pr_ascii_hex_digit.c: New file.
54153         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54154         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54155         * lib/unictype/pr_bidi_block_separator.c: New file.
54156         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54157         * lib/unictype/pr_bidi_common_separator.c: New file.
54158         * lib/unictype/pr_bidi_control.c: New file.
54159         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54160         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54161         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54162         * lib/unictype/pr_bidi_european_digit.c: New file.
54163         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54164         * lib/unictype/pr_bidi_left_to_right.c: New file.
54165         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54166         * lib/unictype/pr_bidi_other_neutral.c: New file.
54167         * lib/unictype/pr_bidi_pdf.c: New file.
54168         * lib/unictype/pr_bidi_segment_separator.c: New file.
54169         * lib/unictype/pr_bidi_whitespace.c: New file.
54170         * lib/unictype/pr_byname.c: New file.
54171         * lib/unictype/pr_byname.gperf: New file.
54172         * lib/unictype/pr_combining.c: New file.
54173         * lib/unictype/pr_composite.c: New file.
54174         * lib/unictype/pr_currency_symbol.c: New file.
54175         * lib/unictype/pr_dash.c: New file.
54176         * lib/unictype/pr_decimal_digit.c: New file.
54177         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54178         * lib/unictype/pr_deprecated.c: New file.
54179         * lib/unictype/pr_diacritic.c: New file.
54180         * lib/unictype/pr_extender.c: New file.
54181         * lib/unictype/pr_format_control.c: New file.
54182         * lib/unictype/pr_grapheme_base.c: New file.
54183         * lib/unictype/pr_grapheme_extend.c: New file.
54184         * lib/unictype/pr_grapheme_link.c: New file.
54185         * lib/unictype/pr_hex_digit.c: New file.
54186         * lib/unictype/pr_hyphen.c: New file.
54187         * lib/unictype/pr_id_continue.c: New file.
54188         * lib/unictype/pr_id_start.c: New file.
54189         * lib/unictype/pr_ideographic.c: New file.
54190         * lib/unictype/pr_ids_binary_operator.c: New file.
54191         * lib/unictype/pr_ids_trinary_operator.c: New file.
54192         * lib/unictype/pr_ignorable_control.c: New file.
54193         * lib/unictype/pr_iso_control.c: New file.
54194         * lib/unictype/pr_join_control.c: New file.
54195         * lib/unictype/pr_left_of_pair.c: New file.
54196         * lib/unictype/pr_line_separator.c: New file.
54197         * lib/unictype/pr_logical_order_exception.c: New file.
54198         * lib/unictype/pr_lowercase.c: New file.
54199         * lib/unictype/pr_math.c: New file.
54200         * lib/unictype/pr_non_break.c: New file.
54201         * lib/unictype/pr_not_a_character.c: New file.
54202         * lib/unictype/pr_numeric.c: New file.
54203         * lib/unictype/pr_other_alphabetic.c: New file.
54204         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54205         * lib/unictype/pr_other_grapheme_extend.c: New file.
54206         * lib/unictype/pr_other_id_continue.c: New file.
54207         * lib/unictype/pr_other_id_start.c: New file.
54208         * lib/unictype/pr_other_lowercase.c: New file.
54209         * lib/unictype/pr_other_math.c: New file.
54210         * lib/unictype/pr_other_uppercase.c: New file.
54211         * lib/unictype/pr_paired_punctuation.c: New file.
54212         * lib/unictype/pr_paragraph_separator.c: New file.
54213         * lib/unictype/pr_pattern_syntax.c: New file.
54214         * lib/unictype/pr_pattern_white_space.c: New file.
54215         * lib/unictype/pr_private_use.c: New file.
54216         * lib/unictype/pr_punctuation.c: New file.
54217         * lib/unictype/pr_quotation_mark.c: New file.
54218         * lib/unictype/pr_radical.c: New file.
54219         * lib/unictype/pr_sentence_terminal.c: New file.
54220         * lib/unictype/pr_soft_dotted.c: New file.
54221         * lib/unictype/pr_space.c: New file.
54222         * lib/unictype/pr_terminal_punctuation.c: New file.
54223         * lib/unictype/pr_test.c: New file.
54224         * lib/unictype/pr_titlecase.c: New file.
54225         * lib/unictype/pr_unassigned_code_value.c: New file.
54226         * lib/unictype/pr_unified_ideograph.c: New file.
54227         * lib/unictype/pr_uppercase.c: New file.
54228         * lib/unictype/pr_variation_selector.c: New file.
54229         * lib/unictype/pr_white_space.c: New file.
54230         * lib/unictype/pr_xid_continue.c: New file.
54231         * lib/unictype/pr_xid_start.c: New file.
54232         * lib/unictype/pr_zero_width.c: New file.
54233         * lib/unictype/scripts.c: New file.
54234         * lib/unictype/sy_c_ident.c: New file.
54235         * lib/unictype/sy_c_whitespace.c: New file.
54236         * lib/unictype/sy_java_ident.c: New file.
54237         * lib/unictype/sy_java_whitespace.c: New file.
54238
54239         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54240         Unicode 5.0.0.
54241         * lib/unictype/blocks.h: Likewise.
54242         * lib/unictype/categ_C.h: Likewise.
54243         * lib/unictype/categ_Cc.h: Likewise.
54244         * lib/unictype/categ_Cf.h: Likewise.
54245         * lib/unictype/categ_Cn.h: Likewise.
54246         * lib/unictype/categ_Co.h: Likewise.
54247         * lib/unictype/categ_Cs.h: Likewise.
54248         * lib/unictype/categ_L.h: Likewise.
54249         * lib/unictype/categ_Ll.h: Likewise.
54250         * lib/unictype/categ_Lm.h: Likewise.
54251         * lib/unictype/categ_Lo.h: Likewise.
54252         * lib/unictype/categ_Lt.h: Likewise.
54253         * lib/unictype/categ_Lu.h: Likewise.
54254         * lib/unictype/categ_M.h: Likewise.
54255         * lib/unictype/categ_Mc.h: Likewise.
54256         * lib/unictype/categ_Me.h: Likewise.
54257         * lib/unictype/categ_Mn.h: Likewise.
54258         * lib/unictype/categ_N.h: Likewise.
54259         * lib/unictype/categ_Nd.h: Likewise.
54260         * lib/unictype/categ_Nl.h: Likewise.
54261         * lib/unictype/categ_No.h: Likewise.
54262         * lib/unictype/categ_P.h: Likewise.
54263         * lib/unictype/categ_Pc.h: Likewise.
54264         * lib/unictype/categ_Pd.h: Likewise.
54265         * lib/unictype/categ_Pe.h: Likewise.
54266         * lib/unictype/categ_Pf.h: Likewise.
54267         * lib/unictype/categ_Pi.h: Likewise.
54268         * lib/unictype/categ_Po.h: Likewise.
54269         * lib/unictype/categ_Ps.h: Likewise.
54270         * lib/unictype/categ_S.h: Likewise.
54271         * lib/unictype/categ_Sc.h: Likewise.
54272         * lib/unictype/categ_Sk.h: Likewise.
54273         * lib/unictype/categ_Sm.h: Likewise.
54274         * lib/unictype/categ_So.h: Likewise.
54275         * lib/unictype/categ_Z.h: Likewise.
54276         * lib/unictype/categ_Zl.h: Likewise.
54277         * lib/unictype/categ_Zp.h: Likewise.
54278         * lib/unictype/categ_Zs.h: Likewise.
54279         * lib/unictype/categ_of.h: Likewise.
54280         * lib/unictype/combining.h: Likewise.
54281         * lib/unictype/ctype_alnum.h: Likewise.
54282         * lib/unictype/ctype_alpha.h: Likewise.
54283         * lib/unictype/ctype_blank.h: Likewise.
54284         * lib/unictype/ctype_cntrl.h: Likewise.
54285         * lib/unictype/ctype_digit.h: Likewise.
54286         * lib/unictype/ctype_graph.h: Likewise.
54287         * lib/unictype/ctype_lower.h: Likewise.
54288         * lib/unictype/ctype_print.h: Likewise.
54289         * lib/unictype/ctype_punct.h: Likewise.
54290         * lib/unictype/ctype_space.h: Likewise.
54291         * lib/unictype/ctype_upper.h: Likewise.
54292         * lib/unictype/ctype_xdigit.h: Likewise.
54293         * lib/unictype/decdigit.h: Likewise.
54294         * lib/unictype/digit.h: Likewise.
54295         * lib/unictype/mirror.h: Likewise.
54296         * lib/unictype/numeric.h: Likewise.
54297         * lib/unictype/pr_alphabetic.h: Likewise.
54298         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54299         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54300         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54301         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54302         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54303         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54304         * lib/unictype/pr_bidi_control.h: Likewise.
54305         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54306         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54307         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54308         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54309         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54310         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54311         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54312         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54313         * lib/unictype/pr_bidi_pdf.h: Likewise.
54314         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54315         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54316         * lib/unictype/pr_combining.h: Likewise.
54317         * lib/unictype/pr_composite.h: Likewise.
54318         * lib/unictype/pr_currency_symbol.h: Likewise.
54319         * lib/unictype/pr_dash.h: Likewise.
54320         * lib/unictype/pr_decimal_digit.h: Likewise.
54321         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54322         * lib/unictype/pr_deprecated.h: Likewise.
54323         * lib/unictype/pr_diacritic.h: Likewise.
54324         * lib/unictype/pr_extender.h: Likewise.
54325         * lib/unictype/pr_format_control.h: Likewise.
54326         * lib/unictype/pr_grapheme_base.h: Likewise.
54327         * lib/unictype/pr_grapheme_extend.h: Likewise.
54328         * lib/unictype/pr_grapheme_link.h: Likewise.
54329         * lib/unictype/pr_hex_digit.h: Likewise.
54330         * lib/unictype/pr_hyphen.h: Likewise.
54331         * lib/unictype/pr_id_continue.h: Likewise.
54332         * lib/unictype/pr_id_start.h: Likewise.
54333         * lib/unictype/pr_ideographic.h: Likewise.
54334         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54335         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54336         * lib/unictype/pr_ignorable_control.h: Likewise.
54337         * lib/unictype/pr_iso_control.h: Likewise.
54338         * lib/unictype/pr_join_control.h: Likewise.
54339         * lib/unictype/pr_left_of_pair.h: Likewise.
54340         * lib/unictype/pr_line_separator.h: Likewise.
54341         * lib/unictype/pr_logical_order_exception.h: Likewise.
54342         * lib/unictype/pr_lowercase.h: Likewise.
54343         * lib/unictype/pr_math.h: Likewise.
54344         * lib/unictype/pr_non_break.h: Likewise.
54345         * lib/unictype/pr_not_a_character.h: Likewise.
54346         * lib/unictype/pr_numeric.h: Likewise.
54347         * lib/unictype/pr_other_alphabetic.h: Likewise.
54348         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54349         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54350         * lib/unictype/pr_other_id_continue.h: Likewise.
54351         * lib/unictype/pr_other_id_start.h: Likewise.
54352         * lib/unictype/pr_other_lowercase.h: Likewise.
54353         * lib/unictype/pr_other_math.h: Likewise.
54354         * lib/unictype/pr_other_uppercase.h: Likewise.
54355         * lib/unictype/pr_paired_punctuation.h: Likewise.
54356         * lib/unictype/pr_paragraph_separator.h: Likewise.
54357         * lib/unictype/pr_pattern_syntax.h: Likewise.
54358         * lib/unictype/pr_pattern_white_space.h: Likewise.
54359         * lib/unictype/pr_private_use.h: Likewise.
54360         * lib/unictype/pr_punctuation.h: Likewise.
54361         * lib/unictype/pr_quotation_mark.h: Likewise.
54362         * lib/unictype/pr_radical.h: Likewise.
54363         * lib/unictype/pr_sentence_terminal.h: Likewise.
54364         * lib/unictype/pr_soft_dotted.h: Likewise.
54365         * lib/unictype/pr_space.h: Likewise.
54366         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54367         * lib/unictype/pr_titlecase.h: Likewise.
54368         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54369         * lib/unictype/pr_unified_ideograph.h: Likewise.
54370         * lib/unictype/pr_uppercase.h: Likewise.
54371         * lib/unictype/pr_variation_selector.h: Likewise.
54372         * lib/unictype/pr_white_space.h: Likewise.
54373         * lib/unictype/pr_xid_continue.h: Likewise.
54374         * lib/unictype/pr_xid_start.h: Likewise.
54375         * lib/unictype/pr_zero_width.h: Likewise.
54376         * lib/unictype/scripts.h: Likewise.
54377         * lib/unictype/scripts_byname.gperf: Likewise.
54378         * lib/unictype/sy_c_ident.h: Likewise.
54379         * lib/unictype/sy_c_whitespace.h: Likewise.
54380         * lib/unictype/sy_java_ident.h: Likewise.
54381         * lib/unictype/sy_java_whitespace.h: Likewise.
54382
54383         * lib/unictype/Makefile: New file.
54384         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54385         glibc.
54386         * lib/unictype/3level.h: New file, copied from glibc.
54387         * lib/unictype/3levelbit.h: New file.
54388
54389 2007-11-11  Bruno Haible  <bruno@clisp.org>
54390
54391         * modules/gperf: New file.
54392         * modules/iconv_open (Depends-on): Add it.
54393         (Makefile.am): Remove the GPERF definition.
54394
54395 2007-11-11  Bruno Haible  <bruno@clisp.org>
54396
54397         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54398         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54399
54400 2007-11-11  Bruno Haible  <bruno@clisp.org>
54401
54402         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54403         (usage): Remove function.
54404
54405 2007-11-11  Bruno Haible  <bruno@clisp.org>
54406
54407         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54408         gl_FUNC_CEILF_LIBS.
54409         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54410         gl_FUNC_CEIL_LIBS.
54411         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54412         gl_FUNC_CEILL_LIBS.
54413         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54414         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54415         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54416
54417 2007-11-11  Bruno Haible  <bruno@clisp.org>
54418
54419         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54420         roundf were declared but do not exist on functions.
54421         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54422         roundl were declared but do not exist on functions.
54423         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54424         HAVE_FLOORL_AND_CEILL, respectively.
54425         Needed for Sun C on Solaris 10.
54426
54427 2007-11-11  Bruno Haible  <bruno@clisp.org>
54428
54429         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54430         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54431         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54432         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54433         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54434         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54435         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54436         HAVE_DECL_ROUNDF.
54437         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54438         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54440         of HAVE_DECL_ROUND*.
54441         * modules/math (Makefile.am): Update.
54442
54443 2007-11-10  Bruno Haible  <bruno@clisp.org>
54444
54445         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54446         ptrdiff_t as m4/intl.m4.
54447
54448 2007-11-10  Jim Meyering  <meyering@redhat.com>
54449
54450         Avoid link failure for the argmatch test.
54451         * tests/test-argmatch.c (usage): Define function to avoid a link
54452         failure: argmatch_die requires a usage function.
54453
54454 2007-11-09  Bruno Haible  <bruno@clisp.org>
54455
54456         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54457         * doc/functions/vsnprintf.texi: Likewise.
54458         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54459         with a size argument < 2.
54460
54461 2007-11-09  Bruno Haible  <bruno@clisp.org>
54462
54463         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54464         buffer. Fixes an inefficiency introduced on 2007-11-03.
54465
54466 2007-11-09  Bruno Haible  <bruno@clisp.org>
54467
54468         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54469         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54470
54471 2007-11-08  Jim Meyering  <meyering@redhat.com>
54472
54473         Change cache variable name prefix "jm_" to "gl_" everywhere.
54474         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54475         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54476         * m4/uptime.m4: s/gl_/jm_/
54477
54478 2007-11-07  Bruno Haible  <bruno@clisp.org>
54479
54480         Update to GNU gettext 0.17.
54481         * m4/intl.m4: Update to GNU gettext 0.17.
54482         * m4/po.m4: Likewise.
54483         * modules/gettext (Files): Remove m4/ulonglong.m4.
54484         (configure.ac): Require gettext infrastructure from version 0.17.
54485
54486 2007-11-06  Bruno Haible  <bruno@clisp.org>
54487
54488         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54489         symbolic values are not defined in a public header.
54490         * lib/freadable.c (freadable) [QNX]: Likewise.
54491         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54492         * lib/freading.c (freading) [QNX]: Likewise.
54493         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54494         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54495         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54496         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54497         Reported by Alain Magloire.
54498
54499         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54500
54501 2007-11-05  Bruno Haible  <bruno@clisp.org>
54502
54503         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54504         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54505         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54506         Reported by Eric Blake.
54507
54508 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54509             Bruno Haible  <bruno@clisp.org>
54510
54511         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54512         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54513         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54514         (malloc): Undefine also before including <stdlib.h>.
54515         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54516         Needed on OSF/1 4.0.
54517
54518 2007-11-05  Jim Meyering  <meyering@redhat.com>
54519
54520         git-version-gen: sync from coreutils.
54521         * build-aux/git-version-gen: Add comments.
54522         Change the first '-' to '.' in the snapshot version string,
54523         e.g., 6.9-377-08144 -> 6.9.377-08144
54524         Remove first parameter.
54525         Don't declare a version "-dirty" merely because a time
54526         stamp has changed.
54527
54528 2007-11-04  Bruno Haible  <bruno@clisp.org>
54529
54530         * lib/lock.h: Protect all macro definitions containing an 'if'
54531         statement through a "do { ... } while (0)".
54532         * lib/tls.h: Likewise.
54533
54534 2007-11-04  Bruno Haible  <bruno@clisp.org>
54535
54536         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54537
54538 2007-11-04  Bruno Haible  <bruno@clisp.org>
54539
54540         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54541         * modules/fprintf-posix (Depends-on): Add nocrash.
54542         * modules/snprintf-posix (Depends-on): Likewise.
54543         * modules/sprintf-posix (Depends-on): Likewise.
54544         * modules/vasnprintf-posix (Depends-on): Likewise.
54545         * modules/vasprintf-posix (Depends-on): Likewise.
54546         * modules/vfprintf-posix (Depends-on): Likewise.
54547         * modules/vsnprintf-posix (Depends-on): Likewise.
54548         * modules/vsprintf-posix (Depends-on): Likewise.
54549         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54550         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54551         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54552         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54553         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54554         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54555         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54556
54557 2007-11-04  Bruno Haible  <bruno@clisp.org>
54558
54559         * modules/nocrash: New file.
54560         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54561         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54562
54563 2007-11-04  Bruno Haible  <bruno@clisp.org>
54564
54565         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54566         precision handling.
54567         * tests/test-vasprintf-posix.c (test_function): Likewise.
54568         * tests/test-snprintf-posix.h (test_function): Likewise.
54569         * tests/test-sprintf-posix.h (test_function): Likewise.
54570
54571         Fix *printf behaviour for large precisions on mingw and BeOS.
54572         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54573         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54575         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54576         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54577         gl_PRINTF_PRECISION and test its result. Invoke
54578         gl_PREREQ_VASNPRINTF_PRECISION.
54579         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54580         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54585         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54586         * doc/functions/fprintf.texi: Update.
54587         * doc/functions/printf.texi: Update.
54588         * doc/functions/snprintf.texi: Update.
54589         * doc/functions/sprintf.texi: Update.
54590         * doc/functions/vfprintf.texi: Update.
54591         * doc/functions/vprintf.texi: Update.
54592         * doc/functions/vsnprintf.texi: Update.
54593         * doc/functions/vsprintf.texi: Update.
54594
54595 2007-11-04  Bruno Haible  <bruno@clisp.org>
54596
54597         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54598
54599 2007-11-04  Bruno Haible  <bruno@clisp.org>
54600
54601         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54602         Reported by Sylvain Beucler <beuc@gnu.org>.
54603
54604 2007-11-03  Bruno Haible  <bruno@clisp.org>
54605
54606         * tests/test-fprintf-posix2.sh: New file.
54607         * tests/test-fprintf-posix2.c: New file.
54608         * modules/fprintf-posix-tests (Files): Add them.
54609         (TESTS): Add test-fprintf-posix2.sh.
54610         (configure.ac): Check for getrlimit and setrlimit.
54611         (check_PROGRAMS): Add test-fprintf-posix2.
54612
54613         * tests/test-printf-posix2.sh: New file.
54614         * tests/test-printf-posix2.c: New file.
54615         * modules/printf-posix-tests (Files): Add them.
54616         (TESTS): Add test-printf-posix2.sh.
54617         (configure.ac): Check for getrlimit and setrlimit.
54618         (check_PROGRAMS): Add test-printf-posix2.
54619
54620         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54621         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54622         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54623         (decode_double): New function, copied from decode_long_double.
54624         (scale10_round_decimal_decoded): New function, extracted from
54625         scale10_round_decimal_long_double.
54626         (scale10_round_decimal_long_double): Use it.
54627         (scale10_round_decimal_double): New function.
54628         (floorlog10): New function.
54629         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54631         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54632         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54633         gl_PRINTF_ENOMEM and test its result. Invoke
54634         gl_PREREQ_VASNPRINTF_ENOMEM.
54635         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54636         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54638         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54639         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54640         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54641         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54642         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54643         * modules/snprintf-posix (Depends-on): Likewise.
54644         * modules/sprintf-posix (Depends-on): Likewise.
54645         * modules/vasnprintf-posix (Depends-on): Likewise.
54646         * modules/vasprintf-posix (Depends-on): Likewise.
54647         * modules/vfprintf-posix (Depends-on): Likewise.
54648         * modules/vsnprintf-posix (Depends-on): Likewise.
54649         * modules/vsprintf-posix (Depends-on): Likewise.
54650         * doc/functions/fprintf.texi: Update.
54651         * doc/functions/printf.texi: Update.
54652         * doc/functions/snprintf.texi: Update.
54653         * doc/functions/sprintf.texi: Update.
54654         * doc/functions/vfprintf.texi: Update.
54655         * doc/functions/vprintf.texi: Update.
54656         * doc/functions/vsnprintf.texi: Update.
54657         * doc/functions/vsprintf.texi: Update.
54658
54659 2007-11-03  Bruno Haible  <bruno@clisp.org>
54660
54661         * modules/frexp-nolibm-tests: New file.
54662
54663         * modules/frexp-nolibm: New file.
54664         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54665
54666 2007-11-03  Bruno Haible  <bruno@clisp.org>
54667
54668         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54669         value is C99 compliant.
54670         Needed for OSF/1 5.1.
54671
54672 2007-11-03  Bruno Haible  <bruno@clisp.org>
54673
54674         Fix out-of-memory handling of vasnprintf.
54675         * lib/printf-parse.c: Include <errno.h>.
54676         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54677         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54678         is already set.
54679
54680 2007-11-02  Eric Blake  <ebb9@byu.net>
54681
54682         Fix tests on cygwin.
54683         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54684
54685 2007-11-01  Bruno Haible  <bruno@clisp.org>
54686
54687         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54688         warning.
54689         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54690         needed for POSIX compatibility.
54691
54692 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54693
54694         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54695         for compatibility with GNU.
54696
54697 2007-11-01  Bruno Haible  <bruno@clisp.org>
54698
54699         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54700         (putenv): Renamed from rpl_putenv. Change argument type from
54701         'const char *' to 'char *'.
54702         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54703         of defining putenv in config.h, just set REPLACE_PUTENV.
54704         * modules/putenv (Depends-on): Add stdlib.
54705         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54706         (Include): Use <stdlib.h>.
54707         * lib/stdlib.in.h (putenv): New declaration.
54708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54709         REPLACE_PUTENV.
54710         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54711         REPLACE_PUTENV.
54712         Needed for MacOS X 10.5.0.
54713         Reported by Peter O'Gorman <peter@pogma.com>.
54714
54715 2007-11-01  Jim Meyering  <meyering@redhat.com>
54716
54717         Treat an empty date string exactly like "0".
54718         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54719         if the remaining date string (to be parsed) is empty, use "0".
54720         Reported by Mischa Molhoek and discussed in this thread:
54721         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54722
54723 2007-10-31  Bruno Haible  <bruno@clisp.org>
54724
54725         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54726         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54727         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54728         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54729         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54730         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54731
54732 2007-10-31  Bruno Haible  <bruno@clisp.org>
54733
54734         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54735         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54736         (AC_TYPE_LONG_LONG_INT): Use it.
54737         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54738         it as well.
54739         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54740         to m4/longlong.m4.
54741         * modules/stdint (Files): Remove m4/ulonglong.m4.
54742         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54743         m4/ulonglong.m4.
54744         * modules/strtoumax (Files): Likewise.
54745
54746 2007-10-30  Bruno Haible  <bruno@clisp.org>
54747
54748         * modules/xvasprintf-posix: New file.
54749         Suggested by Eric Blake.
54750
54751 2007-10-30  Bruno Haible  <bruno@clisp.org>
54752
54753         * modules/xprintf-posix-tests: New file.
54754         * tests/test-xprintf-posix.sh: New file.
54755         * tests/test-xprintf-posix.c: New file.
54756         * tests/test-xfprintf-posix.c: New file.
54757
54758         * modules/xprintf-posix: New file.
54759
54760 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54761
54762         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54763         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54764         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54765
54766 2007-10-29  Bruno Haible  <bruno@clisp.org>
54767
54768         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54769         contain the special marker '_cv_'.
54770         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54771         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54772         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54773         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54774         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54775         Reported by Ralf Wildenhues.
54776
54777 2007-10-29  Bruno Haible  <bruno@clisp.org>
54778
54779         * gnulib-tool (func_import): When --lgpl is not specified, set
54780         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54781         GPLv3.
54782         Reported by Simon Josefsson.
54783
54784 2007-10-28  Bruno Haible  <bruno@clisp.org>
54785
54786         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54787         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54788         HAVE_DECL_ISFINITE.
54789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54790         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54791         HAVE_DECL_ISFINITE.
54792
54793 2007-10-28  Bruno Haible  <bruno@clisp.org>
54794
54795         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54796         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54797
54798 2007-10-28  Bruno Haible  <bruno@clisp.org>
54799
54800         Fix link errors with Sun C 5.0 on Solaris 10.
54801         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54802         function is declared but not present in the compiler's libm.
54803         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54804         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54805         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54806         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54807         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54808         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54809         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54811         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54812         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54813         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54814         HAVE_DECL_FLOORL.
54815
54816 2007-10-28  Bruno Haible  <bruno@clisp.org>
54817
54818         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54819         gl_FUNC_FLOORL. Cache the result.
54820         (gl_FUNC_FLOORL): Use it.
54821         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54822         gl_FUNC_CEILL. Cache the result.
54823         (gl_FUNC_CEILL): Use it.
54824
54825         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54826         gl_FUNC_FLOOR. Cache the result.
54827         (gl_FUNC_FLOOR): Use it.
54828         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54829         gl_FUNC_CEIL. Cache the result.
54830         (gl_FUNC_CEIL): Use it.
54831
54832         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54833         gl_FUNC_FLOORF. Cache the result.
54834         (gl_FUNC_FLOORF): Use it.
54835         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54836         gl_FUNC_CEILF. Cache the result.
54837         (gl_FUNC_CEILF): Use it.
54838
54839 2007-10-28  Bruno Haible  <bruno@clisp.org>
54840
54841         * gnulib-tool: Allow specifying the LGPL version number through
54842         --lgpl=2 or --lgpl=3.
54843         (func_usage): Document --lgpl with argument.
54844         Handle --lgpl=... arguments.
54845         (func_import): Recognize also gl_LGPL calls with an argument. When
54846         --lgpl=2 is used and the module's license is just LGPL, report an
54847         error. Set sed_transform_lib_file according to the lgpl variable. In
54848         the generated files, use --lgpl or gl_LGPL invocations with argument,
54849         if necessary.
54850         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54851         an LGPv2+ license.
54852         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54853         gl_LGPL macro.
54854
54855 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54856             Bruno Haible  <bruno@clisp.org>
54857
54858         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54859         (u16_uctomb_aux): Likewise.
54860         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54861         !HAVE_INLINE.
54862         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54863
54864 2007-10-28  Bruno Haible  <bruno@clisp.org>
54865
54866         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54867         Invoke AM_GETTEXT_OPTION if it exists.
54868         * modules/vasprintf: Likewise.
54869         * modules/verror: Likewise.
54870         * modules/xprintf: Likewise.
54871         * modules/xvasprintf: Likewise.
54872
54873 2007-10-27  Ben Pfaff  <blp@gnu.org>
54874
54875         * lib/math.in.h: Define isfinite macro and prototypes for
54876         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54877         implementations.
54878         * m4/math_h.m4: New substitutions for isfinite module.
54879         * lib/isfinite.c: New file.
54880         * m4/isfinite.m4: New file.
54881         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54882         * modules/isfinite: New file.
54883         * modules/isfinite-tests: New file.
54884         * tests/tests-isfinite.c: New file.
54885         * doc/functions/isfinite.texi: Mention isfinite module.
54886         * MODULES.html.sh: Mention new module.
54887
54888 2007-10-27  Ben Pfaff  <blp@gnu.org>
54889
54890         Ralf Wildenhues reported that Tru64 4.0D declares the round
54891         functions but does not have definitions.
54892         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54893         cannot be found in any library, set the output variable to
54894         "missing" instead of "".
54895         * m4/round.m4: Also use our substitute if we cannot find round in
54896         any library, even if it is declared.
54897         * m4/roundf.m4: Likewise for roundf.
54898         * m4/roundl.m4: Likewise for roundl.
54899         * lib/math.in.h: Undefine roundf, round, roundl before defining
54900         their replacements, to allow for hypothetical systems where these
54901         may be defined as macros but not available in libraries.
54902
54903 2007-10-27  Bruno Haible  <bruno@clisp.org>
54904
54905         * doc/gnulib.texi: Invoke @firstparagraphindent.
54906         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54907         changes in gnulib.
54908         (Source changes): New section.
54909
54910 2007-10-26  Bruno Haible  <bruno@clisp.org>
54911
54912         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54913         borrowed from autoconf.
54914
54915 2007-10-26  Bruno Haible  <bruno@clisp.org>
54916
54917         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54918         strerror returned the empty string. Needed on HP-UX 11.00.
54919
54920 2007-10-24  Micah Cowan  <micah@cowan.name>
54921
54922         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54923         * build-aux/bootstrap: Remove support for now-unnecessary option,
54924         --cvs-user, and envvars CVS_USER, CVS_RSH.
54925
54926 2007-10-24  Jim Meyering  <meyering@redhat.com>
54927
54928         Avoid diagnostics from sha1sum when there is no cached checksum.
54929         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54930         if the po.s1 file hasn't been created yet.
54931
54932         * build-aux/bootstrap: Sync from coreutils:
54933         2007-10-24  Jim Meyering  <meyering@redhat.com>
54934         Get gnulib from the git repository, not from an obsolete cvs one.
54935         * build-aux/bootstrap: Suggestion from Micah Cowan.
54936         2007-10-04  Jim Meyering  <jim@meyering.net>
54937         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54938         (update_po_files): Work also when there are no .po files in po/.
54939
54940 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54941
54942         * README: Append ".git" to git and cg examples.
54943         Problem reported by Benoit Sigoure.
54944
54945 2007-10-23  Micah Cowan  <micah@cowan.name>
54946
54947         * users.txt: Add wget.
54948
54949 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54950
54951         Fix linking of some unistdio tests on FreeBSD.
54952         * modules/unistdio/u16-vsnprintf-tests
54953         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54954         * modules/unistdio/u16-vsprintf-tests
54955         (test_u16_vsnprintf1_LDADD): Likewise.
54956         * modules/unistdio/u32-vsnprintf-tests
54957         (test_u32_vsnprintf1_LDADD): Likewise.
54958         * modules/unistdio/u32-vsprintf-tests
54959         (test_u32_vsprintf1_LDADD): Likewise.
54960         * modules/unistdio/u8-vsnprintf-tests
54961         (test_u8_vsnprintf1_LDADD): Likewise.
54962         * modules/unistdio/u8-vsprintf-tests
54963         (test_u8_vsprintf1_LDADD): Likewise.
54964         * modules/unistdio/ulc-vsnprintf-tests
54965         (test_ulc_vsnprintf1_LDADD): Likewise.
54966         * modules/unistdio/ulc-vsprintf-tests
54967         (test_ulc_vsprintf1_LDADD): Likewise.
54968
54969         Fix linking of some uniconv tests on FreeBSD.
54970         * modules/uniconv/u16-conv-from-enc-tests
54971         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54972         * modules/uniconv/u16-conv-to-enc-tests
54973         (test_u16_conv_to_enc_LDADD): Likewise.
54974         * modules/uniconv/u16-strconv-from-enc-tests
54975         (test_u16_strconv_from_enc_LDADD): Likewise.
54976         * modules/uniconv/u16-strconv-to-enc-tests
54977         (test_u16_strconv_to_enc_LDADD): Likewise.
54978         * modules/uniconv/u32-conv-from-enc-tests
54979         (test_u32_conv_from_enc_LDADD): Likewise.
54980         * modules/uniconv/u32-conv-to-enc-tests
54981         (test_u32_conv_to_enc_LDADD): Likewise.
54982         * modules/uniconv/u32-strconv-from-enc-tests
54983         (test_u32_strconv_from_enc_LDADD): Likewise.
54984         * modules/uniconv/u32-strconv-to-enc-tests
54985         (test_u32_strconv_to_enc_LDADD): Likewise.
54986         * modules/uniconv/u8-conv-from-enc-tests
54987         (test_u8_conv_from_enc_LDADD): Likewise.
54988         * modules/uniconv/u8-conv-to-enc-tests
54989         (test_u8_conv_to_enc_LDADD): Likewise.
54990         * modules/uniconv/u8-strconv-from-enc-tests
54991         (test_u8_strconv_from_enc_LDADD): Likewise.
54992         * modules/uniconv/u8-strconv-to-enc-tests
54993         (test_u8_strconv_to_enc_LDADD): Likewise.
54994
54995 2007-10-22  Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54998         size.
54999
55000 2007-10-22  Eric Blake  <ebb9@byu.net>
55001
55002         Tweak x*printf documentation.
55003         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55004         variable name and comments.
55005         Suggested by Bruno Haible.
55006
55007 2007-10-22  Bruno Haible  <bruno@clisp.org>
55008
55009         * lib/acl.c (copy_acl): Fix file name in comment.
55010
55011 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55012
55013         Fix Tru64 problem with stdbool.h.
55014         * lib/stdbool.in.h (false, true):
55015         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55016         Don't declare as an enum in this situation; it runs afoul of Tru64.
55017         Problem reported by Steven M. Schweda in
55018         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55019
55020 2007-10-22  Eric Blake  <ebb9@byu.net>
55021
55022         Also wrap vf?printf.
55023         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55024         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55025         (xvprintf, xvfprintf): New functions.
55026
55027 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55028
55029         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55030         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55031
55032         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55033         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55034
55035 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55036
55037         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55038         by Bruno Haible.
55039
55040 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55041
55042         * lib/getloadavg.c
55043         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55044         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55045
55046         * tests/test-i-ring.c: Work for C89.
55047
55048 2007-10-22  Bruno Haible  <bruno@clisp.org>
55049
55050         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55051         -1u, in preprocessor expression, so that we don't test for the bug
55052         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55053         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55054
55055 2007-10-22  Eric Blake  <ebb9@byu.net>
55056
55057         * tests/test-yesno.sh: Silence stderr during test.
55058
55059 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55060
55061         * modules/crypto/gc-camellia: New file.
55062
55063         * m4/gc-camellia.m4: New file.
55064
55065         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55066
55067         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55068
55069 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55070
55071         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55072         --help to stdout.  Reported by sms@antinode.org (Steven
55073         M. Schweda).
55074
55075 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55076
55077         * users.txt: Fix link to libksba.
55078
55079 2007-10-21  Ben Pfaff  <blp@gnu.org>
55080
55081         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55082         round.c roundf implementation that depends on floorf and ceilf to
55083         be tested unconditionally.
55084
55085 2007-10-21  Ben Pfaff  <blp@gnu.org>
55086
55087         * m4/check-libm-func.m4: Removed.
55088         * m4/check-math-lib.m4: New file.
55089         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55090         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55091         definition and lack of AC_LIBOBJ([roundf]).
55092         * m4/roundl.m4: Ditto, and similarly for roundl.
55093         * modules/round: Reference new m4 file.
55094         * modules/roundf: Ditto.
55095         * modules/roundl: Ditto.
55096         * tests/test-round2.c (main): Use ROUND instead of round.
55097         Bug report from Bruno Haible.
55098
55099 2007-10-21  Bruno Haible  <bruno@clisp.org>
55100
55101         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55102         context.
55103
55104 2007-10-21  Bruno Haible  <bruno@clisp.org>
55105
55106         * tests/test-wcwidth.c (main): Allow negative result for some control
55107         characters.
55108
55109         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55110         Needed on OSF/1 5.1.
55111
55112 2007-10-21  Bruno Haible  <bruno@clisp.org>
55113
55114         * tests/test-floorf1.c: Include isnanf.h.
55115         (main): Use isnanf() instead of isnan().
55116         * tests/test-ceilf1.c: Include isnanf.h.
55117         (main): Use isnanf() instead of isnan().
55118         * tests/test-truncf1.c: Include isnanf.h.
55119         (main): Use isnanf() instead of isnan().
55120         * tests/test-roundf1.c: Include isnanf.h.
55121         (main): Use isnanf() instead of isnan().
55122
55123 2007-10-21  Eric Blake  <ebb9@byu.net>
55124
55125         * users.txt: Update URL for m4.
55126
55127 2007-10-21  Bruno Haible  <bruno@clisp.org>
55128
55129         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55130
55131 2007-10-21  Bruno Haible  <bruno@clisp.org>
55132
55133         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55134         Git's management files if the CVS files are not present.
55135
55136 2007-10-20  Bruno Haible  <bruno@clisp.org>
55137
55138         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55139         gcc-3.4.x.
55140
55141 2007-10-20  Ben Pfaff  <blp@gnu.org>
55142
55143         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55144         implementations.
55145         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55146         * lib/round.c: New file.
55147         * lib/roundf.c: New file.
55148         * lib/roundl.c: New file.
55149         * m4/round.m4: New file.
55150         * m4/roundf.m4: New file.
55151         * m4/roundl.m4: New file.
55152         * m4/check-libm-func-m4: New file.
55153         * modules/math: Replace round, roundf, roundl related @VARS@ in
55154         math.in.h.
55155         * modules/round: New file.
55156         * modules/round-tests: New file.
55157         * modules/roundf: New file.
55158         * modules/roundf-tests: New file.
55159         * modules/roundl: New file.
55160         * modules/roundl-tests: New file.
55161         * tests/test-round1.c: New file.
55162         * tests/test-round2.c: New file.
55163         * tests/test-roundf1.c: New file.
55164         * tests/test-roundf2.c: New file.
55165         * tests/test-roundl.c: New file.
55166         * doc/functions/round.texi: Mention round module.
55167         * doc/functions/roundf.texi: Mention roundf module.
55168         * doc/functions/roundl.texi: Mention roundl module.
55169         * MODULES.html.sh: Mention new modules.
55170         Thanks to Bruno Haible for suggestions.
55171
55172 2007-10-20  Jim Meyering  <meyering@redhat.com>
55173
55174         * lib/xprintf.c: Include <config.h> unconditionally.
55175
55176         Change xprintf's license to GPL.
55177         * modules/xprintf (License): s/LGPL/GPL/, since this module
55178         depends on modules (exit and exitfail) which are GPL.
55179         Suggestion from Bruno Haible.
55180
55181         xprintf fixes.
55182         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55183         Use a clearer diagnostic.
55184         Patch from Bruno Haible.
55185
55186 2007-10-20  Bruno Haible  <bruno@clisp.org>
55187
55188         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55189         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55190         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55191
55192 2007-10-20  Bruno Haible  <bruno@clisp.org>
55193
55194         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55195         precision in the comparison result > x - 1 or similar.
55196         * tests/test-ceilf2.c (correct_result_p): Likewise.
55197         * tests/test-truncf2.c (correct_result_p): Likewise.
55198         * tests/test-trunc2.c (correct_result_p): Likewise.
55199         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55200
55201 2007-10-20  Bruno Haible  <bruno@clisp.org>
55202
55203         * modules/ceil: New file.
55204         * m4/ceil.m4: New file.
55205         * doc/functions/ceil.texi: Mention the 'ceil' module.
55206
55207 2007-10-20  Bruno Haible  <bruno@clisp.org>
55208
55209         * modules/floor: New file.
55210         * m4/floor.m4: New file.
55211         * doc/functions/floor.texi: Mention the 'floor' module.
55212
55213 2007-10-20  Bruno Haible  <bruno@clisp.org>
55214
55215         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55216         of %a.
55217         * modules/floorf-tests (Depends-on): Likewise.
55218         * modules/truncf-tests (Depends-on): Likewise.
55219         * modules/trunc-tests (Depends-on): Likewise.
55220         Reported by Ben Pfaff.
55221
55222 2007-10-19  Jim Meyering  <meyering@redhat.com>
55223
55224         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55225         Don't bother testing specific errno values.  Just test ferror.
55226
55227         New module: xprintf
55228         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55229
55230 2007-10-19  Bruno Haible  <bruno@clisp.org>
55231
55232         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55233         syntax.
55234         * modules/javaexec (Makefile.am): Likewise.
55235         * modules/relocatable-prog (Makefile.am): Likewise.
55236         Suggested by Jim Meyering.
55237
55238 2007-10-18  Bruno Haible  <bruno@clisp.org>
55239
55240         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55241         Reported by Jim Meyering.
55242
55243 2007-10-18  Eric Blake  <ebb9@byu.net>
55244
55245         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55246
55247 2007-10-18  Bruno Haible  <bruno@clisp.org>
55248
55249         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55250         the format string into writable memory. Needed in Fortify conditions.
55251
55252 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55253             Bruno Haible  <bruno@clisp.org>
55254
55255         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55256         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55257         * modules/trim (Depends-on): Add mbchar.
55258         (configure.ac): Add gl_FUNC_MBRTOWC.
55259         (Makefile.am): Augment lib_SOURCES.
55260
55261 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55262
55263         Modify glob.c to use fstatat and dirfd, to simplify it.
55264         Suggested by Eric Blake.
55265         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55266         Don't include <stdbool.h>; not used.
55267         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55268         (link_exists_p): Simplify implementation, since we can now assume
55269         dirfd and fstatat.
55270         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55271
55272 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55273
55274         * gnulib-tool (func_get_dependencies): Fix sed script to
55275         match only tests.
55276
55277 2007-10-17  Bruno Haible  <bruno@clisp.org>
55278
55279         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55280         allow locale names without encoding suffix.
55281         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55282         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55283
55284 2007-10-16  Bruno Haible  <bruno@clisp.org>
55285
55286         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55287         * lib/getgroups.c (getgroups): Likewise.
55288         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55289
55290 2007-10-16  Bruno Haible  <bruno@clisp.org>
55291
55292         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55293         * modules/malloc-posix (License): Likewise.
55294         * modules/realloc-posix (License): Likewise.
55295         * modules/calloc-posix (License): Likewise.
55296         * modules/intprops (License): Change from GPL to LGPL, with
55297         Paul Eggert's approval.
55298
55299 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55300
55301         Merge glibc changes into lib/glob.c.
55302
55303         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55304         2007-10-15 04:59:03 UTC.  Here are the changes:
55305
55306         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55307
55308         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55309
55310         * lib/glob.c: Add some branch prediction throughout.
55311
55312         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55313
55314         [BZ #5103]
55315         * lib/glob.c (glob): Recognize patterns starting \/.
55316
55317         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55318
55319         [BZ #3996]
55320         * lib/glob.c (attribute_hidden): Define if not defined.
55321         (glob): Unescape dirname, filename or username when needed and not
55322         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55323         is NULL.  Handle unescaped [ in pattern without closing ].
55324         Don't pass GLOB_CHECK down to recursive glob for directories.
55325         (__glob_pattern_type): New function.
55326         (__glob_pattern_p): Implement using __glob_pattern_type.
55327         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55328         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55329         Remove unreachable code.
55330
55331         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55332
55333         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55334         explain why there are no leaks.
55335
55336         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55337
55338         [BZ #3253]
55339         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55340         time, rather allocate increasingly bigger arrays of pointers, if
55341         possible with alloca, if too large with malloc.
55342
55343 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55344
55345         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55346         Problem reported by H.Merijn Brand in
55347         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55348         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55349         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55350
55351 2007-10-15  Bruno Haible  <bruno@clisp.org>
55352
55353         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55354         with explicit rpl_ prefix.
55355         * lib/fopen.c (fopen): Likewise.
55356         * lib/freopen.c (freopen): Likewise.
55357         * lib/iconv.c (iconv): Likewise.
55358         * lib/iconv_close.c (iconv_close): Likewise.
55359
55360 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55361
55362         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55363
55364 2007-10-15  Bruno Haible  <bruno@clisp.org>
55365
55366         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55367         <stddef.h> instead of <stdlib.h> since we only need NULL.
55368         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55369
55370 2007-10-15  Bruno Haible  <bruno@clisp.org>
55371
55372         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55373         Replace paragraph talking about LIBOBJS.
55374         Reported by Colin Watson <cjwatson@debian.org>.
55375
55376 2007-10-15  Bruno Haible  <bruno@clisp.org>
55377
55378         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55379         <stdlib.h> before using NULL.
55380
55381 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55382
55383         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55384         Reported by Albert Chin <china@thewrittenword.com>.
55385
55386 2007-10-14  Bruno Haible  <bruno@clisp.org>
55387
55388         * modules/iconv_open-utf-tests: New file.
55389         * tests/test-iconv-utf.c: New file.
55390
55391         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55392         * modules/iconv_open-utf: New file.
55393         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55394         (iconv, iconv_close): New declarations.
55395         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55396         be defined.
55397         (iconv_open): Add special handling of conversion between UTF-8 and
55398         UTF-{16,32}{BE,LE}.
55399         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55400         * lib/iconv_close.c: New file.
55401         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55402         gl_FUNC_ICONV_OPEN.
55403         (gl_FUNC_ICONV_OPEN): Use it.
55404         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55405         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55406         and REPLACE_ICONV_UTF.
55407         * modules/iconv_open (Depends-on): Add c-strcase.
55408         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55409         ICONV_CONST.
55410         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55411
55412 2007-10-13  Albert Chin  <china@thewrittenword.com>
55413             Bruno Haible  <bruno@clisp.org>
55414
55415         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55416         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55417
55418 2007-10-13  Bruno Haible  <bruno@clisp.org>
55419
55420         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55421         defined, use the ISO C99 inline semantics.
55422         * lib/argp.h (ARGP_EI): Likewise.
55423
55424 2007-10-13  Bruno Haible  <bruno@clisp.org>
55425
55426         Handle 'inline' change in gcc 4.3.0.
55427         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55428         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55429         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55430         argp_fmtstream_point): Disable 'extern' declaration if the function
55431         definition is going to be provided inline.
55432         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55433         semantics, not the ISO C99 inline semantics.
55434         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55435         'extern' declaration if the function definition is going to be provided
55436         inline.
55437         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55438         the GNU C inline semantics, not the ISO C99 inline semantics. With
55439         GCC 4.2, avoid a warning.
55440
55441 2007-10-13  Bruno Haible  <bruno@clisp.org>
55442
55443         * lib/freading.h (freading): Enable the use of __freading for
55444         glibc >= 2.7.
55445         * lib/freading.c (freading): Likewise.
55446
55447 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55448
55449         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55450         "warning: C99 inline functions are not supported; using GNU89".
55451
55452 2007-10-12  Bruno Haible  <bruno@clisp.org>
55453
55454         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55455         of 2.
55456         * tests/test-ceilf2.c: New file.
55457         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55458
55459         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55460         * modules/ceilf-tests: Update.
55461
55462 2007-10-12  Bruno Haible  <bruno@clisp.org>
55463
55464         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55465         of 2.
55466         * tests/test-floorf2.c: New file.
55467         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55468
55469         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55470         * modules/floorf-tests: Update.
55471
55472 2007-10-12  Bruno Haible  <bruno@clisp.org>
55473
55474         * tests/test-trunc2.c: New file.
55475         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55476
55477         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55478         * modules/trunc-tests: Update.
55479
55480 2007-10-12  Bruno Haible  <bruno@clisp.org>
55481
55482         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55483         of 2.
55484         * tests/test-truncf2.c: New file.
55485         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55486
55487         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55488         * modules/truncf-tests: Update.
55489
55490 2007-10-11  Eric Blake  <ebb9@byu.net>
55491
55492         Don't claim strerror is broken on Interix.
55493         * doc/functions/strerror.texi (strerror): Known broken systems are
55494         now Solaris 8, and not Interix.
55495         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55496         Interix on cross-compile.
55497         Reported by Martin Koeppe in
55498         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55499
55500 2007-10-11  Bruno Haible  <bruno@clisp.org>
55501
55502         * modules/i-ring-tests: New file.
55503         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55504         instead of assert.
55505
55506 2007-10-11  Bruno Haible  <bruno@clisp.org>
55507
55508         * modules/filenamecat-tests: New file.
55509         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55510         * lib/filenamecat.c: Remove test code.
55511
55512 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55513
55514         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55515
55516         * lib/strerror.c: Include <string.h> always, to test interface,
55517         and to remove the need for the dummy.
55518         Include intprops.h to compute width instead of doing it ourselves
55519         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55520         (strerror): Define it to return NULL if there's no system strerror.
55521         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55522         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55523         ancient pre-strerror Unix systems well any more.  Saying "unknown
55524         system error" is enough.
55525         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55526         simpler strerror.c implementation.
55527         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55528         Simplify the tests to reflect the simpler strerror implementation.
55529         * modules/strerror (Depends-on): Add intprops.
55530
55531 2007-10-09  Eric Blake  <ebb9@byu.net>
55532
55533         Silence test-fpending.
55534         * modules/fpending-tests (Files): Add wrapper script.
55535         * tests/test-fpending.sh: New file.
55536
55537 2007-10-09  Bruno Haible  <bruno@clisp.org>
55538
55539         * MODULES.html.sh (func_module): Don't create a hyperlink for
55540         function names like 'printf_frexp'.
55541         (Misc): Add crc, memxor.
55542         (Characteristics of floating types): New section.
55543         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55544         isnanf-nolibm, signbit, trunc, truncf, truncl.
55545         (Enhancements for ISO C 99 functions): New subsection Input/output.
55546         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55547         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55548         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55549         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55550         (Enhancements for POSIX:2001 functions): Add chdir-long.
55551         (File system functions): Add areadlink, chdir-safer, read-file.
55552         Remove cycle-check.
55553         (File system as inode set): New section.
55554         (Date and time): Add gethrxtime.
55555         (Multithreading): Add openmp.
55556         (Internationalization functions): Add localename.
55557         (Unicode string functions): Add unistr/u*-mbsnlen.
55558         (Support for maintaining and releasing projects): Add git-version-gen.
55559         (Lone files): Remove directories.
55560
55561 2007-10-08  Ben Pfaff  <blp@gnu.org>
55562
55563         * lib/xmalloca.h: Fix typo in comment.
55564
55565 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55566
55567         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55568         when avoiding problems with integer overflow.  Use a portable test
55569         instead.
55570
55571 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55572
55573         * modules/dummy (License): Change to LGPLv2+.
55574         * modules/float (License): Likewise
55575         * modules/realloc (License): Likewise
55576         * modules/stdlib (License): Likewise
55577
55578 2007-10-07  Bruno Haible  <bruno@clisp.org>
55579
55580         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55581         * floor.c (TWO_MANT_DIG): Likewise.
55582         * ceil.c (TWO_MANT_DIG): Likewise.
55583         Reported by Ben Pfaff.
55584
55585 2007-10-07  Bruno Haible  <bruno@clisp.org>
55586
55587         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55588         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55589         * lib/frexp.c (FUNC): Likewise.
55590         * lib/printf-frexp.h (printf_frexp): Likewise.
55591         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55592         * lib/printf-frexp.c (FUNC): Likewise.
55593         Suggested by Jim Meyering.
55594
55595 2007-10-07  Jim Meyering  <meyering@redhat.com>
55596
55597         Make xnanosleep's integer overflow test more robust.
55598         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55599         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55600
55601 2007-10-07  Bruno Haible  <bruno@clisp.org>
55602
55603         * NEWS: Mention the license change.
55604
55605         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55606         abbreviations in the modules files.
55607
55608         Change copyright notice from GPLv2+ to GPLv3+.
55609         * README: Change copyright notice.
55610         * MODULES.html.sh: Likewise.
55611         * build-aux/bootstrap.conf: Likewise.
55612         * build-aux/config.libpath: Likewise.
55613         * build-aux/csharpcomp.sh.in: Likewise.
55614         * build-aux/csharpexec.sh.in: Likewise.
55615         * build-aux/install-reloc: Likewise.
55616         * build-aux/javacomp.sh.in: Likewise.
55617         * build-aux/javaexec.sh.in: Likewise.
55618         * build-aux/ldd.sh.in: Likewise.
55619         * build-aux/reloc-ldflags: Likewise.
55620         * build-aux/relocatable.sh.in: Likewise.
55621         * build-aux/x-to-1.in: Likewise.
55622         * check-module: Likewise.
55623         * config/srclistvars.sh: Likewise.
55624         * gnulib-tool: Likewise.
55625         * lib/acl-internal.h: Likewise.
55626         * lib/acl.c: Likewise.
55627         * lib/acl.h: Likewise.
55628         * lib/acl_entries.c: Likewise.
55629         * lib/areadlink-with-size.c: Likewise.
55630         * lib/areadlink.c: Likewise.
55631         * lib/areadlink.h: Likewise.
55632         * lib/argmatch.c: Likewise.
55633         * lib/argmatch.h: Likewise.
55634         * lib/argp-ba.c: Likewise.
55635         * lib/argp-eexst.c: Likewise.
55636         * lib/argp-fmtstream.c: Likewise.
55637         * lib/argp-fmtstream.h: Likewise.
55638         * lib/argp-fs-xinl.c: Likewise.
55639         * lib/argp-help.c: Likewise.
55640         * lib/argp-namefrob.h: Likewise.
55641         * lib/argp-parse.c: Likewise.
55642         * lib/argp-pin.c: Likewise.
55643         * lib/argp-pv.c: Likewise.
55644         * lib/argp-pvh.c: Likewise.
55645         * lib/argp-xinl.c: Likewise.
55646         * lib/argp.h: Likewise.
55647         * lib/at-func.c: Likewise.
55648         * lib/atanl.c: Likewise.
55649         * lib/backupfile.c: Likewise.
55650         * lib/backupfile.h: Likewise.
55651         * lib/basename.c: Likewise.
55652         * lib/binary-io.h: Likewise.
55653         * lib/byteswap.in.h: Likewise.
55654         * lib/c-stack.c: Likewise.
55655         * lib/c-stack.h: Likewise.
55656         * lib/c-strcasestr.c: Likewise.
55657         * lib/c-strcasestr.h: Likewise.
55658         * lib/c-strstr.c: Likewise.
55659         * lib/c-strstr.h: Likewise.
55660         * lib/c-strtod.c: Likewise.
55661         * lib/calloc.c: Likewise.
55662         * lib/canon-host.c: Likewise.
55663         * lib/canon-host.h: Likewise.
55664         * lib/canonicalize-lgpl.c: Likewise.
55665         * lib/canonicalize.c: Likewise.
55666         * lib/canonicalize.h: Likewise.
55667         * lib/ceil.c: Likewise.
55668         * lib/ceilf.c: Likewise.
55669         * lib/ceill.c: Likewise.
55670         * lib/chdir-long.c: Likewise.
55671         * lib/chdir-long.h: Likewise.
55672         * lib/chdir-safer.c: Likewise.
55673         * lib/chdir-safer.h: Likewise.
55674         * lib/chown.c: Likewise.
55675         * lib/classpath.c: Likewise.
55676         * lib/classpath.h: Likewise.
55677         * lib/clean-temp.c: Likewise.
55678         * lib/clean-temp.h: Likewise.
55679         * lib/cloexec.c: Likewise.
55680         * lib/close-stream.c: Likewise.
55681         * lib/closein.c: Likewise.
55682         * lib/closein.h: Likewise.
55683         * lib/closeout.c: Likewise.
55684         * lib/closeout.h: Likewise.
55685         * lib/concat-filename.c: Likewise.
55686         * lib/copy-file.c: Likewise.
55687         * lib/copy-file.h: Likewise.
55688         * lib/count-one-bits.h: Likewise.
55689         * lib/crc.c: Likewise.
55690         * lib/crc.h: Likewise.
55691         * lib/creat-safer.c: Likewise.
55692         * lib/csharpcomp.c: Likewise.
55693         * lib/csharpcomp.h: Likewise.
55694         * lib/csharpexec.c: Likewise.
55695         * lib/csharpexec.h: Likewise.
55696         * lib/cycle-check.c: Likewise.
55697         * lib/cycle-check.h: Likewise.
55698         * lib/diacrit.c: Likewise.
55699         * lib/diacrit.h: Likewise.
55700         * lib/diffseq.h: Likewise.
55701         * lib/dirchownmod.c: Likewise.
55702         * lib/dirent.in.h: Likewise.
55703         * lib/dirfd.c: Likewise.
55704         * lib/dirfd.h: Likewise.
55705         * lib/dirname.c: Likewise.
55706         * lib/dirname.h: Likewise.
55707         * lib/dummy.c: Likewise.
55708         * lib/dup-safer.c: Likewise.
55709         * lib/dup2.c: Likewise.
55710         * lib/eealloc.h: Likewise.
55711         * lib/error.c: Likewise.
55712         * lib/error.h: Likewise.
55713         * lib/euidaccess.c: Likewise.
55714         * lib/exclude.c: Likewise.
55715         * lib/exclude.h: Likewise.
55716         * lib/execute.c: Likewise.
55717         * lib/execute.h: Likewise.
55718         * lib/exitfail.c: Likewise.
55719         * lib/exitfail.h: Likewise.
55720         * lib/expl.c: Likewise.
55721         * lib/fatal-signal.c: Likewise.
55722         * lib/fatal-signal.h: Likewise.
55723         * lib/fbufmode.c: Likewise.
55724         * lib/fbufmode.h: Likewise.
55725         * lib/fchdir.c: Likewise.
55726         * lib/fchmodat.c: Likewise.
55727         * lib/fchownat.c: Likewise.
55728         * lib/fcntl--.h: Likewise.
55729         * lib/fcntl-safer.h: Likewise.
55730         * lib/fcntl.in.h: Likewise.
55731         * lib/fd-safer.c: Likewise.
55732         * lib/fflush.c: Likewise.
55733         * lib/file-has-acl.c: Likewise.
55734         * lib/file-set.c: Likewise.
55735         * lib/file-type.c: Likewise.
55736         * lib/file-type.h: Likewise.
55737         * lib/fileblocks.c: Likewise.
55738         * lib/filemode.c: Likewise.
55739         * lib/filemode.h: Likewise.
55740         * lib/filename.h: Likewise.
55741         * lib/filenamecat.c: Likewise.
55742         * lib/filenamecat.h: Likewise.
55743         * lib/findprog.c: Likewise.
55744         * lib/findprog.h: Likewise.
55745         * lib/float.in.h: Likewise.
55746         * lib/floor.c: Likewise.
55747         * lib/floorf.c: Likewise.
55748         * lib/floorl.c: Likewise.
55749         * lib/fopen-safer.c: Likewise.
55750         * lib/fopen.c: Likewise.
55751         * lib/fpending.c: Likewise.
55752         * lib/fpending.h: Likewise.
55753         * lib/fprintf.c: Likewise.
55754         * lib/fprintftime.h: Likewise.
55755         * lib/fpucw.h: Likewise.
55756         * lib/fpurge.c: Likewise.
55757         * lib/fpurge.h: Likewise.
55758         * lib/freadable.c: Likewise.
55759         * lib/freadable.h: Likewise.
55760         * lib/freadahead.c: Likewise.
55761         * lib/freadahead.h: Likewise.
55762         * lib/freading.c: Likewise.
55763         * lib/freading.h: Likewise.
55764         * lib/free.c: Likewise.
55765         * lib/freopen.c: Likewise.
55766         * lib/frexp.c: Likewise.
55767         * lib/frexpl.c: Likewise.
55768         * lib/fseek.c: Likewise.
55769         * lib/fseterr.c: Likewise.
55770         * lib/fseterr.h: Likewise.
55771         * lib/fstatat.c: Likewise.
55772         * lib/fstrcmp.c: Likewise.
55773         * lib/fstrcmp.h: Likewise.
55774         * lib/fsusage.c: Likewise.
55775         * lib/fsusage.h: Likewise.
55776         * lib/ftell.c: Likewise.
55777         * lib/ftello.c: Likewise.
55778         * lib/fts-cycle.c: Likewise.
55779         * lib/fts.c: Likewise.
55780         * lib/fts_.h: Likewise.
55781         * lib/full-read.c: Likewise.
55782         * lib/full-read.h: Likewise.
55783         * lib/full-write.c: Likewise.
55784         * lib/full-write.h: Likewise.
55785         * lib/fwritable.c: Likewise.
55786         * lib/fwritable.h: Likewise.
55787         * lib/fwriteerror.c: Likewise.
55788         * lib/fwriteerror.h: Likewise.
55789         * lib/fwriting.c: Likewise.
55790         * lib/fwriting.h: Likewise.
55791         * lib/gcd.c: Likewise.
55792         * lib/gcd.h: Likewise.
55793         * lib/getcwd.c: Likewise.
55794         * lib/getdate.h: Likewise.
55795         * lib/getdate.y: Likewise.
55796         * lib/getdomainname.c: Likewise.
55797         * lib/getdomainname.h: Likewise.
55798         * lib/getgroups.c: Likewise.
55799         * lib/gethostname.c: Likewise.
55800         * lib/gethrxtime.c: Likewise.
55801         * lib/gethrxtime.h: Likewise.
55802         * lib/getloadavg.c: Likewise.
55803         * lib/getndelim2.c: Likewise.
55804         * lib/getndelim2.h: Likewise.
55805         * lib/getnline.c: Likewise.
55806         * lib/getnline.h: Likewise.
55807         * lib/getopt.c: Likewise.
55808         * lib/getopt.in.h: Likewise.
55809         * lib/getopt1.c: Likewise.
55810         * lib/getopt_int.h: Likewise.
55811         * lib/getpagesize.h: Likewise.
55812         * lib/getsubopt.c: Likewise.
55813         * lib/gettime.c: Likewise.
55814         * lib/getugroups.c: Likewise.
55815         * lib/getugroups.h: Likewise.
55816         * lib/getusershell.c: Likewise.
55817         * lib/gl_anyavltree_list1.h: Likewise.
55818         * lib/gl_anyavltree_list2.h: Likewise.
55819         * lib/gl_anyhash_list1.h: Likewise.
55820         * lib/gl_anyhash_list2.h: Likewise.
55821         * lib/gl_anylinked_list1.h: Likewise.
55822         * lib/gl_anylinked_list2.h: Likewise.
55823         * lib/gl_anyrbtree_list1.h: Likewise.
55824         * lib/gl_anyrbtree_list2.h: Likewise.
55825         * lib/gl_anytree_list1.h: Likewise.
55826         * lib/gl_anytree_list2.h: Likewise.
55827         * lib/gl_anytree_oset.h: Likewise.
55828         * lib/gl_anytreehash_list1.h: Likewise.
55829         * lib/gl_anytreehash_list2.h: Likewise.
55830         * lib/gl_array_list.c: Likewise.
55831         * lib/gl_array_list.h: Likewise.
55832         * lib/gl_array_oset.c: Likewise.
55833         * lib/gl_array_oset.h: Likewise.
55834         * lib/gl_avltree_list.c: Likewise.
55835         * lib/gl_avltree_list.h: Likewise.
55836         * lib/gl_avltree_oset.c: Likewise.
55837         * lib/gl_avltree_oset.h: Likewise.
55838         * lib/gl_avltreehash_list.c: Likewise.
55839         * lib/gl_avltreehash_list.h: Likewise.
55840         * lib/gl_carray_list.c: Likewise.
55841         * lib/gl_carray_list.h: Likewise.
55842         * lib/gl_linked_list.c: Likewise.
55843         * lib/gl_linked_list.h: Likewise.
55844         * lib/gl_linkedhash_list.c: Likewise.
55845         * lib/gl_linkedhash_list.h: Likewise.
55846         * lib/gl_list.c: Likewise.
55847         * lib/gl_list.h: Likewise.
55848         * lib/gl_oset.c: Likewise.
55849         * lib/gl_oset.h: Likewise.
55850         * lib/gl_rbtree_list.c: Likewise.
55851         * lib/gl_rbtree_list.h: Likewise.
55852         * lib/gl_rbtree_oset.c: Likewise.
55853         * lib/gl_rbtree_oset.h: Likewise.
55854         * lib/gl_rbtreehash_list.c: Likewise.
55855         * lib/gl_rbtreehash_list.h: Likewise.
55856         * lib/gl_sublist.c: Likewise.
55857         * lib/gl_sublist.h: Likewise.
55858         * lib/group-member.c: Likewise.
55859         * lib/group-member.h: Likewise.
55860         * lib/hard-locale.c: Likewise.
55861         * lib/hard-locale.h: Likewise.
55862         * lib/hash-pjw.c: Likewise.
55863         * lib/hash-pjw.h: Likewise.
55864         * lib/hash-triple.c: Likewise.
55865         * lib/hash.c: Likewise.
55866         * lib/hash.h: Likewise.
55867         * lib/human.c: Likewise.
55868         * lib/human.h: Likewise.
55869         * lib/i-ring.c: Likewise.
55870         * lib/i-ring.h: Likewise.
55871         * lib/idcache.c: Likewise.
55872         * lib/imaxabs.c: Likewise.
55873         * lib/imaxdiv.c: Likewise.
55874         * lib/inet_pton.c: Likewise.
55875         * lib/inet_pton.h: Likewise.
55876         * lib/intprops.h: Likewise.
55877         * lib/inttostr.c: Likewise.
55878         * lib/inttostr.h: Likewise.
55879         * lib/inttypes.in.h: Likewise.
55880         * lib/isapipe.c: Likewise.
55881         * lib/isdir.c: Likewise.
55882         * lib/isnan.c: Likewise.
55883         * lib/isnan.h: Likewise.
55884         * lib/isnanf.c: Likewise.
55885         * lib/isnanf.h: Likewise.
55886         * lib/isnanl-nolibm.h: Likewise.
55887         * lib/isnanl.c: Likewise.
55888         * lib/isnanl.h: Likewise.
55889         * lib/javacomp.c: Likewise.
55890         * lib/javacomp.h: Likewise.
55891         * lib/javaexec.c: Likewise.
55892         * lib/javaexec.h: Likewise.
55893         * lib/javaversion.c: Likewise.
55894         * lib/javaversion.h: Likewise.
55895         * lib/javaversion.java: Likewise.
55896         * lib/lbrkprop.h: Likewise.
55897         * lib/lchmod.h: Likewise.
55898         * lib/lchown.c: Likewise.
55899         * lib/ldexpl.c: Likewise.
55900         * lib/linebreak.c: Likewise.
55901         * lib/linebreak.h: Likewise.
55902         * lib/linebuffer.c: Likewise.
55903         * lib/linebuffer.h: Likewise.
55904         * lib/locale.in.h: Likewise.
55905         * lib/logl.c: Likewise.
55906         * lib/long-options.c: Likewise.
55907         * lib/long-options.h: Likewise.
55908         * lib/lstat.c: Likewise.
55909         * lib/lstat.h: Likewise.
55910         * lib/math.in.h: Likewise.
55911         * lib/mbchar.c: Likewise.
55912         * lib/mbchar.h: Likewise.
55913         * lib/mbfile.h: Likewise.
55914         * lib/mbiter.h: Likewise.
55915         * lib/mbscasecmp.c: Likewise.
55916         * lib/mbscasestr.c: Likewise.
55917         * lib/mbschr.c: Likewise.
55918         * lib/mbscspn.c: Likewise.
55919         * lib/mbslen.c: Likewise.
55920         * lib/mbsncasecmp.c: Likewise.
55921         * lib/mbsnlen.c: Likewise.
55922         * lib/mbspbrk.c: Likewise.
55923         * lib/mbspcasecmp.c: Likewise.
55924         * lib/mbsrchr.c: Likewise.
55925         * lib/mbssep.c: Likewise.
55926         * lib/mbsspn.c: Likewise.
55927         * lib/mbsstr.c: Likewise.
55928         * lib/mbstok_r.c: Likewise.
55929         * lib/mbswidth.c: Likewise.
55930         * lib/mbswidth.h: Likewise.
55931         * lib/mbuiter.h: Likewise.
55932         * lib/memcasecmp.c: Likewise.
55933         * lib/memcasecmp.h: Likewise.
55934         * lib/memchr.c: Likewise.
55935         * lib/memcmp.c: Likewise.
55936         * lib/memcoll.c: Likewise.
55937         * lib/memcoll.h: Likewise.
55938         * lib/memcpy.c: Likewise.
55939         * lib/memrchr.c: Likewise.
55940         * lib/mkancesdirs.c: Likewise.
55941         * lib/mkdir-p.c: Likewise.
55942         * lib/mkdir-p.h: Likewise.
55943         * lib/mkdir.c: Likewise.
55944         * lib/mkdirat.c: Likewise.
55945         * lib/mkdtemp.c: Likewise.
55946         * lib/mkstemp-safer.c: Likewise.
55947         * lib/mkstemp.c: Likewise.
55948         * lib/modechange.c: Likewise.
55949         * lib/modechange.h: Likewise.
55950         * lib/mountlist.c: Likewise.
55951         * lib/mountlist.h: Likewise.
55952         * lib/mpsort.c: Likewise.
55953         * lib/nanosleep.c: Likewise.
55954         * lib/obstack.c: Likewise.
55955         * lib/obstack.h: Likewise.
55956         * lib/open-safer.c: Likewise.
55957         * lib/open.c: Likewise.
55958         * lib/openat-die.c: Likewise.
55959         * lib/openat-priv.h: Likewise.
55960         * lib/openat-proc.c: Likewise.
55961         * lib/openat.c: Likewise.
55962         * lib/openat.h: Likewise.
55963         * lib/pagealign_alloc.c: Likewise.
55964         * lib/pagealign_alloc.h: Likewise.
55965         * lib/physmem.c: Likewise.
55966         * lib/physmem.h: Likewise.
55967         * lib/pipe-safer.c: Likewise.
55968         * lib/pipe.c: Likewise.
55969         * lib/pipe.h: Likewise.
55970         * lib/posixtm.c: Likewise.
55971         * lib/posixtm.h: Likewise.
55972         * lib/posixver.c: Likewise.
55973         * lib/printf-frexp.c: Likewise.
55974         * lib/printf-frexp.h: Likewise.
55975         * lib/printf-frexpl.c: Likewise.
55976         * lib/printf-frexpl.h: Likewise.
55977         * lib/printf.c: Likewise.
55978         * lib/progname.c: Likewise.
55979         * lib/progname.h: Likewise.
55980         * lib/progreloc.c: Likewise.
55981         * lib/putenv.c: Likewise.
55982         * lib/quote.c: Likewise.
55983         * lib/quote.h: Likewise.
55984         * lib/quotearg.c: Likewise.
55985         * lib/quotearg.h: Likewise.
55986         * lib/raise.c: Likewise.
55987         * lib/readline.c: Likewise.
55988         * lib/readline.h: Likewise.
55989         * lib/readlink.c: Likewise.
55990         * lib/readtokens.c: Likewise.
55991         * lib/readtokens.h: Likewise.
55992         * lib/readtokens0.c: Likewise.
55993         * lib/readtokens0.h: Likewise.
55994         * lib/readutmp.c: Likewise.
55995         * lib/readutmp.h: Likewise.
55996         * lib/realloc.c: Likewise.
55997         * lib/relocwrapper.c: Likewise.
55998         * lib/rename-dest-slash.c: Likewise.
55999         * lib/rename.c: Likewise.
56000         * lib/rmdir.c: Likewise.
56001         * lib/rpmatch.c: Likewise.
56002         * lib/safe-read.c: Likewise.
56003         * lib/safe-read.h: Likewise.
56004         * lib/safe-write.c: Likewise.
56005         * lib/safe-write.h: Likewise.
56006         * lib/same-inode.h: Likewise.
56007         * lib/same.c: Likewise.
56008         * lib/same.h: Likewise.
56009         * lib/save-cwd.c: Likewise.
56010         * lib/save-cwd.h: Likewise.
56011         * lib/savedir.c: Likewise.
56012         * lib/savedir.h: Likewise.
56013         * lib/savewd.c: Likewise.
56014         * lib/savewd.h: Likewise.
56015         * lib/search.in.h: Likewise.
56016         * lib/setenv.c: Likewise.
56017         * lib/setenv.h: Likewise.
56018         * lib/settime.c: Likewise.
56019         * lib/sh-quote.c: Likewise.
56020         * lib/sh-quote.h: Likewise.
56021         * lib/sig2str.c: Likewise.
56022         * lib/sig2str.h: Likewise.
56023         * lib/signal.in.h: Likewise.
56024         * lib/signbitd.c: Likewise.
56025         * lib/signbitf.c: Likewise.
56026         * lib/signbitl.c: Likewise.
56027         * lib/sigprocmask.c: Likewise.
56028         * lib/sincosl.c: Likewise.
56029         * lib/sleep.c: Likewise.
56030         * lib/sprintf.c: Likewise.
56031         * lib/sqrtl.c: Likewise.
56032         * lib/stat-time.h: Likewise.
56033         * lib/stdio--.h: Likewise.
56034         * lib/stdio-safer.h: Likewise.
56035         * lib/stdlib--.h: Likewise.
56036         * lib/stdlib-safer.h: Likewise.
56037         * lib/stdlib.in.h: Likewise.
56038         * lib/stpcpy.c: Likewise.
56039         * lib/stpncpy.c: Likewise.
56040         * lib/strchrnul.c: Likewise.
56041         * lib/strcspn.c: Likewise.
56042         * lib/strerror.c: Likewise.
56043         * lib/strftime.c: Likewise.
56044         * lib/strftime.h: Likewise.
56045         * lib/striconveh.c: Likewise.
56046         * lib/striconveh.h: Likewise.
56047         * lib/striconveha.c: Likewise.
56048         * lib/striconveha.h: Likewise.
56049         * lib/stripslash.c: Likewise.
56050         * lib/strnlen1.c: Likewise.
56051         * lib/strnlen1.h: Likewise.
56052         * lib/strtod.c: Likewise.
56053         * lib/strtoimax.c: Likewise.
56054         * lib/strtok_r.c: Likewise.
56055         * lib/strtol.c: Likewise.
56056         * lib/strtoll.c: Likewise.
56057         * lib/strtoul.c: Likewise.
56058         * lib/strtoull.c: Likewise.
56059         * lib/sysexits.in.h: Likewise.
56060         * lib/tempname.c: Likewise.
56061         * lib/tempname.h: Likewise.
56062         * lib/timespec.h: Likewise.
56063         * lib/tls.c: Likewise.
56064         * lib/tls.h: Likewise.
56065         * lib/tmpdir.c: Likewise.
56066         * lib/tmpdir.h: Likewise.
56067         * lib/tmpfile-safer.c: Likewise.
56068         * lib/tmpfile.c: Likewise.
56069         * lib/trigl.c: Likewise.
56070         * lib/trigl.h: Likewise.
56071         * lib/trim.c: Likewise.
56072         * lib/trim.h: Likewise.
56073         * lib/trunc.c: Likewise.
56074         * lib/truncf.c: Likewise.
56075         * lib/truncl.c: Likewise.
56076         * lib/tsearch.c: Likewise.
56077         * lib/unicodeio.c: Likewise.
56078         * lib/unicodeio.h: Likewise.
56079         * lib/unistd--.h: Likewise.
56080         * lib/unistd-safer.h: Likewise.
56081         * lib/unistdio/ulc-fprintf.c: Likewise.
56082         * lib/unistdio/ulc-vfprintf.c: Likewise.
56083         * lib/unlinkdir.c: Likewise.
56084         * lib/unlinkdir.h: Likewise.
56085         * lib/unlocked-io.h: Likewise.
56086         * lib/unsetenv.c: Likewise.
56087         * lib/userspec.c: Likewise.
56088         * lib/utime.c: Likewise.
56089         * lib/utimecmp.c: Likewise.
56090         * lib/utimecmp.h: Likewise.
56091         * lib/utimens.c: Likewise.
56092         * lib/verify.h: Likewise.
56093         * lib/verror.c: Likewise.
56094         * lib/verror.h: Likewise.
56095         * lib/version-etc-fsf.c: Likewise.
56096         * lib/version-etc.c: Likewise.
56097         * lib/version-etc.h: Likewise.
56098         * lib/vfprintf.c: Likewise.
56099         * lib/vprintf.c: Likewise.
56100         * lib/vsprintf.c: Likewise.
56101         * lib/w32spawn.h: Likewise.
56102         * lib/wait-process.c: Likewise.
56103         * lib/wait-process.h: Likewise.
56104         * lib/wcwidth.c: Likewise.
56105         * lib/write-any-file.c: Likewise.
56106         * lib/xalloc-die.c: Likewise.
56107         * lib/xalloc.h: Likewise.
56108         * lib/xasprintf.c: Likewise.
56109         * lib/xgetcwd.c: Likewise.
56110         * lib/xgetcwd.h: Likewise.
56111         * lib/xgetdomainname.c: Likewise.
56112         * lib/xgetdomainname.h: Likewise.
56113         * lib/xgethostname.c: Likewise.
56114         * lib/xmalloc.c: Likewise.
56115         * lib/xmalloca.c: Likewise.
56116         * lib/xmalloca.h: Likewise.
56117         * lib/xmemcoll.c: Likewise.
56118         * lib/xnanosleep.c: Likewise.
56119         * lib/xreadlink.c: Likewise.
56120         * lib/xreadlink.h: Likewise.
56121         * lib/xsetenv.c: Likewise.
56122         * lib/xsetenv.h: Likewise.
56123         * lib/xstriconv.c: Likewise.
56124         * lib/xstriconv.h: Likewise.
56125         * lib/xstrndup.c: Likewise.
56126         * lib/xstrndup.h: Likewise.
56127         * lib/xstrtod.c: Likewise.
56128         * lib/xstrtod.h: Likewise.
56129         * lib/xstrtol-error.c: Likewise.
56130         * lib/xstrtol.c: Likewise.
56131         * lib/xstrtol.h: Likewise.
56132         * lib/xtime.h: Likewise.
56133         * lib/xvasprintf.c: Likewise.
56134         * lib/xvasprintf.h: Likewise.
56135         * lib/yesno.c: Likewise.
56136         * lib/yesno.h: Likewise.
56137         * posix-modules: Likewise.
56138         * tests/test-alloca-opt.c: Likewise.
56139         * tests/test-arcfour.c: Likewise.
56140         * tests/test-arctwo.c: Likewise.
56141         * tests/test-argmatch.c: Likewise.
56142         * tests/test-argp-2.sh: Likewise.
56143         * tests/test-argp.c: Likewise.
56144         * tests/test-arpa_inet.c: Likewise.
56145         * tests/test-array_list.c: Likewise.
56146         * tests/test-array_oset.c: Likewise.
56147         * tests/test-atexit.c: Likewise.
56148         * tests/test-avltree_list.c: Likewise.
56149         * tests/test-avltree_oset.c: Likewise.
56150         * tests/test-avltreehash_list.c: Likewise.
56151         * tests/test-base64.c: Likewise.
56152         * tests/test-binary-io.c: Likewise.
56153         * tests/test-byteswap.c: Likewise.
56154         * tests/test-c-ctype.c: Likewise.
56155         * tests/test-c-strcasecmp.c: Likewise.
56156         * tests/test-c-strcasestr.c: Likewise.
56157         * tests/test-c-strncasecmp.c: Likewise.
56158         * tests/test-c-strstr.c: Likewise.
56159         * tests/test-canonicalize-lgpl.c: Likewise.
56160         * tests/test-canonicalize.c: Likewise.
56161         * tests/test-carray_list.c: Likewise.
56162         * tests/test-ceilf.c: Likewise.
56163         * tests/test-ceill.c: Likewise.
56164         * tests/test-count-one-bits.c: Likewise.
56165         * tests/test-crc.c: Likewise.
56166         * tests/test-dirname.c: Likewise.
56167         * tests/test-fbufmode.c: Likewise.
56168         * tests/test-fcntl.c: Likewise.
56169         * tests/test-fflush.c: Likewise.
56170         * tests/test-floorf.c: Likewise.
56171         * tests/test-floorl.c: Likewise.
56172         * tests/test-fopen.c: Likewise.
56173         * tests/test-fprintf-posix.c: Likewise.
56174         * tests/test-fprintf-posix.h: Likewise.
56175         * tests/test-fpurge.c: Likewise.
56176         * tests/test-freadable.c: Likewise.
56177         * tests/test-freadahead.c: Likewise.
56178         * tests/test-freading.c: Likewise.
56179         * tests/test-freopen.c: Likewise.
56180         * tests/test-frexp.c: Likewise.
56181         * tests/test-frexpl.c: Likewise.
56182         * tests/test-fseek.c: Likewise.
56183         * tests/test-fseeko.c: Likewise.
56184         * tests/test-fseterr.c: Likewise.
56185         * tests/test-fstrcmp.c: Likewise.
56186         * tests/test-ftell.c: Likewise.
56187         * tests/test-ftello.c: Likewise.
56188         * tests/test-fwritable.c: Likewise.
56189         * tests/test-fwriting.c: Likewise.
56190         * tests/test-getaddrinfo.c: Likewise.
56191         * tests/test-getpass.c: Likewise.
56192         * tests/test-gettimeofday.c: Likewise.
56193         * tests/test-hmac-md5.c: Likewise.
56194         * tests/test-hmac-sha1.c: Likewise.
56195         * tests/test-iconv.c: Likewise.
56196         * tests/test-iconvme.c: Likewise.
56197         * tests/test-inttypes.c: Likewise.
56198         * tests/test-isnan.c: Likewise.
56199         * tests/test-isnanf.c: Likewise.
56200         * tests/test-isnanl-nolibm.c: Likewise.
56201         * tests/test-isnanl.c: Likewise.
56202         * tests/test-isnanl.h: Likewise.
56203         * tests/test-ldexpl.c: Likewise.
56204         * tests/test-linked_list.c: Likewise.
56205         * tests/test-linkedhash_list.c: Likewise.
56206         * tests/test-locale.c: Likewise.
56207         * tests/test-localename.c: Likewise.
56208         * tests/test-lock.c: Likewise.
56209         * tests/test-lseek.c: Likewise.
56210         * tests/test-malloca.c: Likewise.
56211         * tests/test-math.c: Likewise.
56212         * tests/test-mbscasecmp.c: Likewise.
56213         * tests/test-mbscasestr1.c: Likewise.
56214         * tests/test-mbscasestr2.c: Likewise.
56215         * tests/test-mbscasestr3.c: Likewise.
56216         * tests/test-mbscasestr4.c: Likewise.
56217         * tests/test-mbschr.c: Likewise.
56218         * tests/test-mbscspn.c: Likewise.
56219         * tests/test-mbsncasecmp.c: Likewise.
56220         * tests/test-mbspbrk.c: Likewise.
56221         * tests/test-mbspcasecmp.c: Likewise.
56222         * tests/test-mbsrchr.c: Likewise.
56223         * tests/test-mbsspn.c: Likewise.
56224         * tests/test-mbsstr1.c: Likewise.
56225         * tests/test-mbsstr2.c: Likewise.
56226         * tests/test-mbsstr3.c: Likewise.
56227         * tests/test-md5.c: Likewise.
56228         * tests/test-memmem.c: Likewise.
56229         * tests/test-netinet_in.c: Likewise.
56230         * tests/test-open.c: Likewise.
56231         * tests/test-printf-frexp.c: Likewise.
56232         * tests/test-printf-frexpl.c: Likewise.
56233         * tests/test-printf-posix.c: Likewise.
56234         * tests/test-printf-posix.h: Likewise.
56235         * tests/test-rbtree_list.c: Likewise.
56236         * tests/test-rbtree_oset.c: Likewise.
56237         * tests/test-rbtreehash_list.c: Likewise.
56238         * tests/test-read-file.c: Likewise.
56239         * tests/test-rijndael.c: Likewise.
56240         * tests/test-search.c: Likewise.
56241         * tests/test-signbit.c: Likewise.
56242         * tests/test-sleep.c: Likewise.
56243         * tests/test-snprintf-posix.c: Likewise.
56244         * tests/test-snprintf-posix.h: Likewise.
56245         * tests/test-snprintf.c: Likewise.
56246         * tests/test-sprintf-posix.c: Likewise.
56247         * tests/test-sprintf-posix.h: Likewise.
56248         * tests/test-stat-time.c: Likewise.
56249         * tests/test-stdbool.c: Likewise.
56250         * tests/test-stdint.c: Likewise.
56251         * tests/test-stdio.c: Likewise.
56252         * tests/test-stdlib.c: Likewise.
56253         * tests/test-stpncpy.c: Likewise.
56254         * tests/test-strcasestr.c: Likewise.
56255         * tests/test-striconv.c: Likewise.
56256         * tests/test-striconveh.c: Likewise.
56257         * tests/test-striconveha.c: Likewise.
56258         * tests/test-string.c: Likewise.
56259         * tests/test-sys_select.c: Likewise.
56260         * tests/test-sys_socket.c: Likewise.
56261         * tests/test-sys_stat.c: Likewise.
56262         * tests/test-sys_time.c: Likewise.
56263         * tests/test-sysexits.c: Likewise.
56264         * tests/test-time.c: Likewise.
56265         * tests/test-tls.c: Likewise.
56266         * tests/test-trunc.c: Likewise.
56267         * tests/test-truncf.c: Likewise.
56268         * tests/test-truncl.c: Likewise.
56269         * tests/test-unistd.c: Likewise.
56270         * tests/test-vasnprintf-posix.c: Likewise.
56271         * tests/test-vasnprintf-posix2.c: Likewise.
56272         * tests/test-vasnprintf.c: Likewise.
56273         * tests/test-vasprintf-posix.c: Likewise.
56274         * tests/test-vasprintf.c: Likewise.
56275         * tests/test-verify.c: Likewise.
56276         * tests/test-vfprintf-posix.c: Likewise.
56277         * tests/test-vprintf-posix.c: Likewise.
56278         * tests/test-vsnprintf-posix.c: Likewise.
56279         * tests/test-vsnprintf.c: Likewise.
56280         * tests/test-vsprintf-posix.c: Likewise.
56281         * tests/test-wchar.c: Likewise.
56282         * tests/test-wctype.c: Likewise.
56283         * tests/test-wcwidth.c: Likewise.
56284         * tests/test-xstrtol.c: Likewise.
56285         * tests/test-xvasprintf.c: Likewise.
56286         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56287         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56288         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56289         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56290         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56291         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56292         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56293         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56294         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56295         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56296         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56297         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56298         * tests/uniname/test-uninames.c: Likewise.
56299         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56300         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56301         * tests/unistdio/test-u16-printf1.h: Likewise.
56302         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56303         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56304         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56305         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56306         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56307         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56308         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56309         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56310         * tests/unistdio/test-u32-printf1.h: Likewise.
56311         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56312         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56313         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56314         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56315         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56316         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56317         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56318         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56319         * tests/unistdio/test-u8-printf1.h: Likewise.
56320         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56321         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56322         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56323         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56324         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56325         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56326         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56327         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56328         * tests/unistdio/test-ulc-printf1.h: Likewise.
56329         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56330         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56331         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56332         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56333         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56334         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56335         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56336         * tests/uniwidth/test-u16-width.c: Likewise.
56337         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56338         * tests/uniwidth/test-u32-width.c: Likewise.
56339         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56340         * tests/uniwidth/test-u8-width.c: Likewise.
56341         * tests/uniwidth/test-uc_width.c: Likewise.
56342         * config/srclist-update: Likewise.
56343         (fixlicense): Update to GPLv3+.
56344
56345         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56346         * tests/test-tsearch.c: Change copyright notice.
56347
56348         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56349         * lib/c-strcaseeq.h: Change copyright notice.
56350         * lib/streq.h: Likewise.
56351         * lib/uniconv.h: Likewise.
56352         * lib/uniconv/u-conv-from-enc.h: Likewise.
56353         * lib/uniconv/u-conv-to-enc.h: Likewise.
56354         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56355         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56356         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56357         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56358         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56359         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56360         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56361         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56362         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56363         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56364         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56365         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56366         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56367         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56368         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56369         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56370         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56371         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56372         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56373         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56374         * lib/uniname.h: Likewise.
56375         * lib/uniname/uniname.c: Likewise.
56376         * lib/unistdio.h: Likewise.
56377         * lib/unistdio/u-asnprintf.h: Likewise.
56378         * lib/unistdio/u-asprintf.h: Likewise.
56379         * lib/unistdio/u-printf-args.c: Likewise.
56380         * lib/unistdio/u-printf-args.h: Likewise.
56381         * lib/unistdio/u-printf-parse.h: Likewise.
56382         * lib/unistdio/u-snprintf.h: Likewise.
56383         * lib/unistdio/u-sprintf.h: Likewise.
56384         * lib/unistdio/u-vasprintf.h: Likewise.
56385         * lib/unistdio/u-vsnprintf.h: Likewise.
56386         * lib/unistdio/u-vsprintf.h: Likewise.
56387         * lib/unistdio/u16-asnprintf.c: Likewise.
56388         * lib/unistdio/u16-asprintf.c: Likewise.
56389         * lib/unistdio/u16-printf-parse.c: Likewise.
56390         * lib/unistdio/u16-snprintf.c: Likewise.
56391         * lib/unistdio/u16-sprintf.c: Likewise.
56392         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56393         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56394         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56395         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56396         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56397         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56398         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56399         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56400         * lib/unistdio/u16-vasnprintf.c: Likewise.
56401         * lib/unistdio/u16-vasprintf.c: Likewise.
56402         * lib/unistdio/u16-vsnprintf.c: Likewise.
56403         * lib/unistdio/u16-vsprintf.c: Likewise.
56404         * lib/unistdio/u32-asnprintf.c: Likewise.
56405         * lib/unistdio/u32-asprintf.c: Likewise.
56406         * lib/unistdio/u32-printf-parse.c: Likewise.
56407         * lib/unistdio/u32-snprintf.c: Likewise.
56408         * lib/unistdio/u32-sprintf.c: Likewise.
56409         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56410         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56411         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56412         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56413         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56414         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56415         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56416         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56417         * lib/unistdio/u32-vasnprintf.c: Likewise.
56418         * lib/unistdio/u32-vasprintf.c: Likewise.
56419         * lib/unistdio/u32-vsnprintf.c: Likewise.
56420         * lib/unistdio/u32-vsprintf.c: Likewise.
56421         * lib/unistdio/u8-asnprintf.c: Likewise.
56422         * lib/unistdio/u8-asprintf.c: Likewise.
56423         * lib/unistdio/u8-printf-parse.c: Likewise.
56424         * lib/unistdio/u8-snprintf.c: Likewise.
56425         * lib/unistdio/u8-sprintf.c: Likewise.
56426         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56427         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56428         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56429         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56430         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56431         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56432         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56433         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56434         * lib/unistdio/u8-vasnprintf.c: Likewise.
56435         * lib/unistdio/u8-vasprintf.c: Likewise.
56436         * lib/unistdio/u8-vsnprintf.c: Likewise.
56437         * lib/unistdio/u8-vsprintf.c: Likewise.
56438         * lib/unistdio/ulc-asnprintf.c: Likewise.
56439         * lib/unistdio/ulc-asprintf.c: Likewise.
56440         * lib/unistdio/ulc-printf-parse.c: Likewise.
56441         * lib/unistdio/ulc-snprintf.c: Likewise.
56442         * lib/unistdio/ulc-sprintf.c: Likewise.
56443         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56444         * lib/unistdio/ulc-vasprintf.c: Likewise.
56445         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56446         * lib/unistdio/ulc-vsprintf.c: Likewise.
56447         * lib/unistr.h: Likewise.
56448         * lib/unistr/u-cpy-alloc.h: Likewise.
56449         * lib/unistr/u-cpy.h: Likewise.
56450         * lib/unistr/u-endswith.h: Likewise.
56451         * lib/unistr/u-move.h: Likewise.
56452         * lib/unistr/u-set.h: Likewise.
56453         * lib/unistr/u-startswith.h: Likewise.
56454         * lib/unistr/u-stpcpy.h: Likewise.
56455         * lib/unistr/u-stpncpy.h: Likewise.
56456         * lib/unistr/u-strcat.h: Likewise.
56457         * lib/unistr/u-strcpy.h: Likewise.
56458         * lib/unistr/u-strcspn.h: Likewise.
56459         * lib/unistr/u-strdup.h: Likewise.
56460         * lib/unistr/u-strlen.h: Likewise.
56461         * lib/unistr/u-strncat.h: Likewise.
56462         * lib/unistr/u-strncpy.h: Likewise.
56463         * lib/unistr/u-strnlen.h: Likewise.
56464         * lib/unistr/u-strpbrk.h: Likewise.
56465         * lib/unistr/u-strspn.h: Likewise.
56466         * lib/unistr/u-strstr.h: Likewise.
56467         * lib/unistr/u-strtok.h: Likewise.
56468         * lib/unistr/u16-check.c: Likewise.
56469         * lib/unistr/u16-chr.c: Likewise.
56470         * lib/unistr/u16-cmp.c: Likewise.
56471         * lib/unistr/u16-cpy-alloc.c: Likewise.
56472         * lib/unistr/u16-cpy.c: Likewise.
56473         * lib/unistr/u16-endswith.c: Likewise.
56474         * lib/unistr/u16-mblen.c: Likewise.
56475         * lib/unistr/u16-mbsnlen.c: Likewise.
56476         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56477         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56478         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56479         * lib/unistr/u16-mbtouc.c: Likewise.
56480         * lib/unistr/u16-mbtoucr.c: Likewise.
56481         * lib/unistr/u16-move.c: Likewise.
56482         * lib/unistr/u16-next.c: Likewise.
56483         * lib/unistr/u16-prev.c: Likewise.
56484         * lib/unistr/u16-set.c: Likewise.
56485         * lib/unistr/u16-startswith.c: Likewise.
56486         * lib/unistr/u16-stpcpy.c: Likewise.
56487         * lib/unistr/u16-stpncpy.c: Likewise.
56488         * lib/unistr/u16-strcat.c: Likewise.
56489         * lib/unistr/u16-strchr.c: Likewise.
56490         * lib/unistr/u16-strcmp.c: Likewise.
56491         * lib/unistr/u16-strcpy.c: Likewise.
56492         * lib/unistr/u16-strcspn.c: Likewise.
56493         * lib/unistr/u16-strdup.c: Likewise.
56494         * lib/unistr/u16-strlen.c: Likewise.
56495         * lib/unistr/u16-strmblen.c: Likewise.
56496         * lib/unistr/u16-strmbtouc.c: Likewise.
56497         * lib/unistr/u16-strncat.c: Likewise.
56498         * lib/unistr/u16-strncmp.c: Likewise.
56499         * lib/unistr/u16-strncpy.c: Likewise.
56500         * lib/unistr/u16-strnlen.c: Likewise.
56501         * lib/unistr/u16-strpbrk.c: Likewise.
56502         * lib/unistr/u16-strrchr.c: Likewise.
56503         * lib/unistr/u16-strspn.c: Likewise.
56504         * lib/unistr/u16-strstr.c: Likewise.
56505         * lib/unistr/u16-strtok.c: Likewise.
56506         * lib/unistr/u16-to-u32.c: Likewise.
56507         * lib/unistr/u16-to-u8.c: Likewise.
56508         * lib/unistr/u16-uctomb-aux.c: Likewise.
56509         * lib/unistr/u16-uctomb.c: Likewise.
56510         * lib/unistr/u32-check.c: Likewise.
56511         * lib/unistr/u32-chr.c: Likewise.
56512         * lib/unistr/u32-cmp.c: Likewise.
56513         * lib/unistr/u32-cpy-alloc.c: Likewise.
56514         * lib/unistr/u32-cpy.c: Likewise.
56515         * lib/unistr/u32-endswith.c: Likewise.
56516         * lib/unistr/u32-mblen.c: Likewise.
56517         * lib/unistr/u32-mbsnlen.c: Likewise.
56518         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56519         * lib/unistr/u32-mbtouc.c: Likewise.
56520         * lib/unistr/u32-mbtoucr.c: Likewise.
56521         * lib/unistr/u32-move.c: Likewise.
56522         * lib/unistr/u32-next.c: Likewise.
56523         * lib/unistr/u32-prev.c: Likewise.
56524         * lib/unistr/u32-set.c: Likewise.
56525         * lib/unistr/u32-startswith.c: Likewise.
56526         * lib/unistr/u32-stpcpy.c: Likewise.
56527         * lib/unistr/u32-stpncpy.c: Likewise.
56528         * lib/unistr/u32-strcat.c: Likewise.
56529         * lib/unistr/u32-strchr.c: Likewise.
56530         * lib/unistr/u32-strcmp.c: Likewise.
56531         * lib/unistr/u32-strcpy.c: Likewise.
56532         * lib/unistr/u32-strcspn.c: Likewise.
56533         * lib/unistr/u32-strdup.c: Likewise.
56534         * lib/unistr/u32-strlen.c: Likewise.
56535         * lib/unistr/u32-strmblen.c: Likewise.
56536         * lib/unistr/u32-strmbtouc.c: Likewise.
56537         * lib/unistr/u32-strncat.c: Likewise.
56538         * lib/unistr/u32-strncmp.c: Likewise.
56539         * lib/unistr/u32-strncpy.c: Likewise.
56540         * lib/unistr/u32-strnlen.c: Likewise.
56541         * lib/unistr/u32-strpbrk.c: Likewise.
56542         * lib/unistr/u32-strrchr.c: Likewise.
56543         * lib/unistr/u32-strspn.c: Likewise.
56544         * lib/unistr/u32-strstr.c: Likewise.
56545         * lib/unistr/u32-strtok.c: Likewise.
56546         * lib/unistr/u32-to-u16.c: Likewise.
56547         * lib/unistr/u32-to-u8.c: Likewise.
56548         * lib/unistr/u32-uctomb.c: Likewise.
56549         * lib/unistr/u8-check.c: Likewise.
56550         * lib/unistr/u8-chr.c: Likewise.
56551         * lib/unistr/u8-cmp.c: Likewise.
56552         * lib/unistr/u8-cpy-alloc.c: Likewise.
56553         * lib/unistr/u8-cpy.c: Likewise.
56554         * lib/unistr/u8-endswith.c: Likewise.
56555         * lib/unistr/u8-mblen.c: Likewise.
56556         * lib/unistr/u8-mbsnlen.c: Likewise.
56557         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56558         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56559         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56560         * lib/unistr/u8-mbtouc.c: Likewise.
56561         * lib/unistr/u8-mbtoucr.c: Likewise.
56562         * lib/unistr/u8-move.c: Likewise.
56563         * lib/unistr/u8-next.c: Likewise.
56564         * lib/unistr/u8-prev.c: Likewise.
56565         * lib/unistr/u8-set.c: Likewise.
56566         * lib/unistr/u8-startswith.c: Likewise.
56567         * lib/unistr/u8-stpcpy.c: Likewise.
56568         * lib/unistr/u8-stpncpy.c: Likewise.
56569         * lib/unistr/u8-strcat.c: Likewise.
56570         * lib/unistr/u8-strchr.c: Likewise.
56571         * lib/unistr/u8-strcmp.c: Likewise.
56572         * lib/unistr/u8-strcpy.c: Likewise.
56573         * lib/unistr/u8-strcspn.c: Likewise.
56574         * lib/unistr/u8-strdup.c: Likewise.
56575         * lib/unistr/u8-strlen.c: Likewise.
56576         * lib/unistr/u8-strmblen.c: Likewise.
56577         * lib/unistr/u8-strmbtouc.c: Likewise.
56578         * lib/unistr/u8-strncat.c: Likewise.
56579         * lib/unistr/u8-strncmp.c: Likewise.
56580         * lib/unistr/u8-strncpy.c: Likewise.
56581         * lib/unistr/u8-strnlen.c: Likewise.
56582         * lib/unistr/u8-strpbrk.c: Likewise.
56583         * lib/unistr/u8-strrchr.c: Likewise.
56584         * lib/unistr/u8-strspn.c: Likewise.
56585         * lib/unistr/u8-strstr.c: Likewise.
56586         * lib/unistr/u8-strtok.c: Likewise.
56587         * lib/unistr/u8-to-u16.c: Likewise.
56588         * lib/unistr/u8-to-u32.c: Likewise.
56589         * lib/unistr/u8-uctomb-aux.c: Likewise.
56590         * lib/unistr/u8-uctomb.c: Likewise.
56591         * lib/unitypes.h: Likewise.
56592         * lib/uniwidth.h: Likewise.
56593         * lib/uniwidth/cjk.h: Likewise.
56594         * lib/uniwidth/u16-strwidth.c: Likewise.
56595         * lib/uniwidth/u16-width.c: Likewise.
56596         * lib/uniwidth/u32-strwidth.c: Likewise.
56597         * lib/uniwidth/u32-width.c: Likewise.
56598         * lib/uniwidth/u8-strwidth.c: Likewise.
56599         * lib/uniwidth/u8-width.c: Likewise.
56600         * lib/uniwidth/width.c: Likewise.
56601
56602 2007-10-07  Bruno Haible  <bruno@clisp.org>
56603
56604         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56605         The file is still under LGPL (see modules/inttypes).
56606
56607 2007-10-06  Bruno Haible  <bruno@clisp.org>
56608
56609         * modules/trunc (Dependencies): Add 'extensions'.
56610         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56611         Reported by Ben Pfaff <blp@gnu.org>.
56612
56613 2007-10-06  Bruno Haible  <bruno@clisp.org>
56614
56615         * modules/freopen-tests: New file.
56616         * tests/test-freopen.c: New file.
56617
56618         * modules/fopen-tests: New file.
56619         * tests/test-fopen.c: New file.
56620
56621         * modules/fopen: New file.
56622         * lib/fopen.c: New file.
56623         * m4/fopen.m4: New file.
56624         * modules/freopen: New file.
56625         * lib/freopen.c: New file.
56626         * m4/freopen.m4: New file.
56627         * lib/stdio.in.h (fopen, freopen): New declarations.
56628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56629         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56630         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56631         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56632         * doc/functions/fopen.texi: Mention the 'fopen' module.
56633         * doc/functions/freopen.texi: Mention the 'freopen' module.
56634
56635 2007-10-06  Bruno Haible  <bruno@clisp.org>
56636
56637         * modules/open-tests: New file.
56638         * tests/test-open.c: New file.
56639
56640         * modules/open: New file.
56641         * lib/open.c: New file.
56642         * m4/open.m4: New file.
56643         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56644         lib/open.c does.
56645         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56646         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56647         macros.
56648         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56649         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56650         REPLACE_OPEN.
56651         * doc/functions/open.texi: Mention the 'open' module.
56652
56653 2007-10-04  Bruno Haible  <bruno@clisp.org>
56654
56655         * modules/ceill-tests: New file.
56656         * tests/test-ceill.c: New file.
56657
56658         * modules/ceill: New file.
56659         * lib/ceill.c: Replace entire file.
56660         * m4/ceill.m4: New file.
56661         * lib/math.in.h (ceill): Replace declaration.
56662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56663         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56664         * doc/functions/ceill.texi: Mention the 'ceill' module.
56665         * modules/mathl (Files): Remove lib/ceill.c.
56666         (Depends-on): Add ceill.
56667
56668 2007-10-04  Bruno Haible  <bruno@clisp.org>
56669
56670         * modules/ceilf-tests: New file.
56671         * tests/test-ceilf.c: New file.
56672
56673         * modules/ceilf: New file.
56674         * lib/ceil.c: New file.
56675         * lib/ceilf.c: New file.
56676         * m4/ceilf.m4: New file.
56677         * lib/math.in.h (ceilf): New declaration.
56678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56679         HAVE_DECL_CEILF.
56680         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56681         HAVE_DECL_CEILF.
56682         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56683
56684 2007-10-04  Bruno Haible  <bruno@clisp.org>
56685
56686         * modules/floorl-tests: New file.
56687         * tests/test-floorl.c: New file.
56688
56689         * modules/floorl: New file.
56690         * lib/floorl.c: Replace entire file.
56691         * m4/floorl.m4: New file.
56692         * lib/math.in.h (floorl): Replace declaration.
56693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56694         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56695         * doc/functions/floorl.texi: Mention the 'floorl' module.
56696         * modules/mathl (Files): Remove lib/floorl.c.
56697         (Depends-on): Add floorl.
56698
56699 2007-10-04  Bruno Haible  <bruno@clisp.org>
56700
56701         * modules/floorf-tests: New file.
56702         * tests/test-floorf.c: New file.
56703
56704         * modules/floorf: New file.
56705         * lib/floor.c: New file.
56706         * lib/floorf.c: New file.
56707         * m4/floorf.m4: New file.
56708         * lib/math.in.h (floorf): New declaration.
56709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56710         HAVE_DECL_FLOORF.
56711         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56712         HAVE_DECL_FLOORF.
56713         * doc/functions/floorf.texi: Mention the 'floorf' module.
56714
56715 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56716             Bruno Haible  <bruno@clisp.org>
56717
56718         Advertise for the Git server instead of the CVS server.
56719         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56720         repository instead of the CVS one.
56721         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56722         about all VCS systems generically.
56723         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56724
56725 2007-10-04  Bruno Haible  <bruno@clisp.org>
56726
56727         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56728         means.
56729         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56730
56731 2007-10-04  Bruno Haible  <bruno@clisp.org>
56732
56733         * modules/truncl-tests: New file.
56734         * tests/test-truncl.c: New file.
56735
56736         * modules/truncl: New file.
56737         * lib/truncl.c: New file.
56738         * m4/truncl.m4: New file.
56739         * lib/math.in.h (truncl): New declaration.
56740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56741         HAVE_DECL_TRUNCL.
56742         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56743         HAVE_DECL_TRUNCL.
56744         * doc/functions/truncl.texi: Mention the 'truncl' module.
56745
56746 2007-10-04  Bruno Haible  <bruno@clisp.org>
56747
56748         * modules/truncf-tests: New file.
56749         * tests/test-truncf.c: New file.
56750
56751         * modules/truncf: New file.
56752         * lib/trunc.c: Make paramerizable through USE_* macros.
56753         * lib/truncf.c: New file.
56754         * m4/truncf.m4: New file.
56755         * lib/math.in.h (truncf): New declaration.
56756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56757         HAVE_DECL_TRUNCF.
56758         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56759         HAVE_DECL_TRUNCF.
56760         * doc/functions/truncf.texi: Mention the 'truncf' module.
56761
56762 2007-10-03  Bruno Haible  <bruno@clisp.org>
56763
56764         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56765         augmentation also for tests modules.
56766         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56767         * modules/atexit-tests (Makefile.am): Likewise.
56768         * modules/binary-io-tests (Makefile.am): Likewise.
56769         * modules/c-strcase-tests (Makefile.am): Likewise.
56770         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56771         * modules/canonicalize-tests (Makefile.am): Likewise.
56772         * modules/closein-tests (Makefile.am): Likewise.
56773         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56774         * modules/freadahead-tests (Makefile.am): Likewise.
56775         * modules/fseek-tests (Makefile.am): Likewise.
56776         * modules/fseeko-tests (Makefile.am): Likewise.
56777         * modules/ftell-tests (Makefile.am): Likewise.
56778         * modules/ftello-tests (Makefile.am): Likewise.
56779         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56780         * modules/isnanl-tests (Makefile.am): Likewise.
56781         * modules/lseek-tests (Makefile.am): Likewise.
56782         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56783         * modules/mbscasestr-tests (Makefile.am): Likewise.
56784         * modules/mbschr-tests (Makefile.am): Likewise.
56785         * modules/mbscspn-tests (Makefile.am): Likewise.
56786         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56787         * modules/mbspbrk-tests (Makefile.am): Likewise.
56788         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56789         * modules/mbsrchr-tests (Makefile.am): Likewise.
56790         * modules/mbsspn-tests (Makefile.am): Likewise.
56791         * modules/mbsstr-tests (Makefile.am): Likewise.
56792         * modules/printf-posix-tests (Makefile.am): Likewise.
56793         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56794         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56795         * modules/tsearch-tests (Makefile.am): Likewise.
56796         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56797         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56798         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56799         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56800         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56801         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56802         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56803         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56804         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56805         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56806         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56807         * modules/xstrtol-tests (Makefile.am): Likewise.
56808         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56809         * modules/yesno-tests (Makefile.am): Likewise.
56810
56811 2007-10-03  Bruno Haible  <bruno@clisp.org>
56812
56813         * modules/trunc-tests: New file.
56814         * tests/test-trunc.c: New file.
56815
56816         * modules/trunc: New file.
56817         * lib/trunc.c: New file.
56818         * m4/trunc.m4: New file.
56819         * lib/math.in.h (trunc): New declaration.
56820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56821         HAVE_DECL_TRUNC.
56822         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56823         HAVE_DECL_TRUNC.
56824         * doc/functions/trunc.texi: Mention the 'trunc' module.
56825
56826 2007-10-03  Bruno Haible  <bruno@clisp.org>
56827
56828         * tests/test-fpending.c: New file, mostly copied
56829         from coreutils/lib/t-fpending.c.
56830         * modules/fpending-tests: New file.
56831
56832 2007-10-03  Bruno Haible  <bruno@clisp.org>
56833
56834         Port the stdio extensions to QNX (untested).
56835         * lib/fseterr.c (fseterr): Add support for QNX.
56836         * lib/fbufmode.c (fbufmode): Likewise.
56837         * lib/freadable.c (freadable): Likewise.
56838         * lib/fwritable.c (fwritable): Likewise.
56839         * lib/freading.c (freading): Likewise.
56840         * lib/fwriting.c (fwriting): Likewise.
56841         * lib/freadahead.c (freadahed): Likewise.
56842         * lib/fpurge.c (fpurge): Likewise.
56843         * lib/fseeko.c (rpl_fseeko): Likewise.
56844
56845 2007-10-03  Bruno Haible  <bruno@clisp.org>
56846             Jim Meyering  <jim@meyering.net>
56847             Eric Blake  <ebb9@byu.net>
56848
56849         * doc/relocatable.texi: Use @command instead of @program.
56850
56851 2007-10-02  Jim Meyering  <jim@meyering.net>
56852
56853         Perform one more "_.h" -> ".in.h" substitution.
56854         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56855         instead of unistd_.h here, too.
56856
56857 2007-10-01  Bruno Haible  <bruno@clisp.org>
56858
56859         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56860         Needed for the alloca-opt module.
56861
56862 2007-09-30  Bruno Haible  <bruno@clisp.org>
56863
56864         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56865         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56866         alloca_.h.
56867         * lib/argz.in.h: Renamed from lib/argz_.h.
56868         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56869         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56870         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56871         byteswap_.h.
56872         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56873         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56874         dirent_.h.
56875         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56876         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56877         fcntl_.h.
56878         * lib/float.in.h: Renamed from lib/float_.h.
56879         * modules/float (Files, Makefile.am): Use float.in.h instead of
56880         float_.h.
56881         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56882         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56883         fnmatch_.h.
56884         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56885         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56886         getopt_.h.
56887         * lib/glob.in.h: Renamed from lib/glob_.h.
56888         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56889         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56890         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56891         iconv_.h.
56892         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56893         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56894         inttypes_.h.
56895         * lib/locale.in.h: Renamed from lib/locale_.h.
56896         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56897         locale_.h.
56898         * lib/math.in.h: Renamed from lib/math_.h.
56899         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56900         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56901         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56902         of netinet_in_.h. Add dependency.
56903         * lib/poll.in.h: Renamed from lib/poll_.h.
56904         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56905         * lib/search.in.h: Renamed from lib/search_.h.
56906         * modules/search (Files, Makefile.am): Use search.in.h instead of
56907         search_.h.
56908         * lib/signal.in.h: Renamed from lib/signal_.h.
56909         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56910         _signal.h.
56911         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56912         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56913         stdbool_.h.
56914         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56915         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56916         stdint_.h.
56917         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56918         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56919         stdio_.h.
56920         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56921         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56922         stdlib_.h.
56923         * lib/string.in.h: Renamed from lib/string_.h.
56924         * modules/string (Files, Makefile.am): Use string.in.h instead of
56925         string_.h.
56926         * doc/gnulib-tool.texi (Initial import): Update.
56927         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56928         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56929         of sys_select_.h. Add dependency.
56930         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56931         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56932         of sys_socket_.h.
56933         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56934         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56935         sys_stat_.h.
56936         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56937         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56938         sys_time_.h.
56939         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56940         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56941         sysexits_.h.
56942         * lib/time.in.h: Renamed from lib/time_.h.
56943         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56944         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56945         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56946         unistd_.h.
56947         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56948         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56949         wchar_.h.
56950         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56951         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56952         wctype_.h.
56953         * build-aux/bootstrap (slurp): Update.
56954         * lib/.cppi-disable: Update.
56955
56956 2007-09-30  Bruno Haible  <bruno@clisp.org>
56957
56958         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56959         Needed on BeOS.
56960
56961 2007-09-30  Bruno Haible  <bruno@clisp.org>
56962
56963         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56964
56965 2007-09-29  Bruno Haible  <bruno@clisp.org>
56966
56967         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56968
56969 2007-09-29  Bruno Haible  <bruno@clisp.org>
56970
56971         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56972         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56973         * build-aux/install-reloc: Compile also areadlink.c.
56974         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56975
56976 2007-09-29  Bruno Haible  <bruno@clisp.org>
56977
56978         * gnulib-tool (func_emit_initmacro_done): Indentation.
56979
56980 2007-09-29  Bruno Haible  <bruno@clisp.org>
56981
56982         * README: Add CVS checkout update instructions.
56983         Info from Bob Proulx <bob@proulx.com>.
56984
56985 2007-09-28  Eric Blake  <ebb9@byu.net>
56986
56987         Provide move-if-change.
56988         * build-aux/move-if-change: New file, based on best practice
56989         rather than any canonical upstream location.
56990
56991 2007-09-28  Jim Meyering  <jim@meyering.net>
56992
56993         Fix canonicalize loop-detection corner case.
56994         Do not attempt to stat the symlink values stored via seen_triple.
56995         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56996         on linux-2.6.18, (but not 2.6.22).
56997         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56998         triple_compare.  The former compares dev,ino,filename, while the latter
56999         would actually stat dirname(filename) when dev and ino were equal.
57000         * lib/hash-triple.c: Install <string.h>.
57001         (STREQ): Define.
57002         (triple_compare_ino_str): New function.
57003         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57004
57005 2007-09-28  Eric Blake  <ebb9@byu.net>
57006
57007         Enforce that AC_REPLACE_FUNCS files exist.
57008         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57009         override check for typos.
57010
57011         Fix test-closein on Solaris 10.
57012         * tests/test-closein.c (main): Don't assume stdin can be inherited
57013         closed on all systems.
57014         * tests/test-closein.sh: Likewise.
57015         Reported by Piotr Tarnowski.
57016
57017 2007-09-28  Jim Meyering  <jim@meyering.net>
57018
57019         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57020
57021 2007-09-27  Jim Meyering  <jim@meyering.net>
57022
57023         canonicalize: Avoid a false-positive cycle failure.
57024         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57025         Sort.  Remove cycle-check.
57026         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57027         not cycle-check.h.
57028         (seen_triple): New function.
57029         (canonicalize_filename_mode): Use it instead of cycle-check.
57030         * tests/test-canonicalize.c: Add a test for this bug.
57031         * tests/test-canonicalize.sh: Set up and run the test.
57032
57033         New module, file-set, from coreutils.
57034         * modules/file-set: Define it.
57035         * lib/file-set.c, lib/file-set.h: Implement.
57036
57037         New module, hash-triple, from coreutils.
57038         * modules/hash-triple: Define it.
57039         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57040
57041 2007-09-25  Eric Blake  <ebb9@byu.net>
57042
57043         Fix strerror on Interix.
57044         * lib/string_.h (strerror): Declare replacement.
57045         * doc/functions/strerror.texi (strerror): Document the Interix
57046         shortcoming.
57047         * modules/string (Makefile.am): Support new hooks.
57048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57049         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57050         gl_FUNC_STRERROR_SEPARATE.
57051         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57052         * lib/strerror.c (rpl_strerror): Provide replacement.
57053         * modules/strerror (Depends-on): Add string.
57054         (configure.ac): Detect use of module.
57055         * tests/test-strerror.c: New file.
57056         * modules/strerror-tests: New test module.
57057         * modules/argp (Depends-on): Add strerror.
57058         * modules/error (Depends-on): Likewise.
57059         Reported by Martin Koeppe.
57060
57061 2007-09-24  Bruno Haible  <bruno@clisp.org>
57062
57063         * README: Update git instructions.
57064
57065 2007-09-24  Eric Blake  <ebb9@byu.net>
57066
57067         Revert fpending breakage from 2007-09-08.
57068         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57069         __fpending.c.
57070
57071 2007-09-24  Jim Meyering  <jim@meyering.net>
57072
57073         filenamecat.c: Add a test.
57074         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57075         showing how the function works when DIR is the empty string.
57076
57077 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57078
57079         * tests/test-canonicalize.sh: Turn on executable bit.
57080
57081 2007-09-19  Eric Blake  <ebb9@byu.net>
57082
57083         * README: Update CVS instructions.
57084
57085 2007-09-18  Bruno Haible  <bruno@clisp.org>
57086
57087         * modules/areadlink: New file.
57088         * lib/areadlink.h (areadlink): New declaration.
57089         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57090
57091 2007-09-17  Jim Meyering  <jim@meyering.net>
57092
57093         * lib/savewd.c (ESTALE) [!defined]: Define.
57094         Reported to be required on Interix by Martin Koeppe.
57095
57096 2007-09-17  Bruno Haible  <bruno@clisp.org>
57097
57098         * gnulib-tool (func_version): Use $version.
57099
57100 2007-09-16  Bruno Haible  <bruno@clisp.org>
57101
57102         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57103         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57104         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57105         Reported by Greg Schafer <gschafer@zip.com.au>.
57106
57107 2007-09-15  Bruno Haible  <bruno@clisp.org>
57108
57109         * gnulib-tool (sed): Try a little harder to make bash understand the
57110         alias.
57111         Reported by Bruce Korb <bruce.korb@gmail.com>.
57112
57113 2007-09-13  Eric Blake  <ebb9@byu.net>
57114
57115         * ChangeLog: Remove conflict markers.
57116
57117 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57118
57119         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57120         Reported by Bruno Haible <bruno@clisp.org>.
57121
57122 2007-09-12  Bruno Haible  <bruno@clisp.org>
57123
57124         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57125         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57126         is not defined.
57127
57128 2007-09-12  Eric Blake  <ebb9@byu.net>
57129
57130         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57131         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57132         Autoconf definition.
57133         * modules/euidaccess (Depends-on): Add extensions, for
57134         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57135         * modules/fnmatch (Depends-on): Likewise.
57136         * modules/getaddrinfo (Depends-on): Likewise.
57137         * modules/getdelim (Depends-on): Likewise.
57138         * modules/getline (Depends-on): Likewise.
57139         * modules/getsubopt (Depends-on): Likewise.
57140         * modules/gettext (Depends-on): Likewise.
57141         * modules/group-member (Depends-on): Likewise.
57142         * modules/mbchar (Depends-on): Likewise.
57143         * modules/memmem (Depends-on): Likewise.
57144         * modules/mempcpy (Depends-on): Likewise.
57145         * modules/memrchr (Depends-on): Likewise.
57146         * modules/pagealign_alloc (Depends-on): Likewise.
57147         * modules/readutmp (Depends-on): Likewise.
57148         * modules/stpcpy (Depends-on): Likewise.
57149         * modules/stpncpy (Depends-on): Likewise.
57150         * modules/strchrnul (Depends-on): Likewise.
57151         * modules/strndup (Depends-on): Likewise.
57152         * modules/strsep (Depends-on): Likewise.
57153         * modules/strverscmp (Depends-on): Likewise.
57154         * modules/vasprintf (Depends-on): Likewise.
57155         * modules/wcwidth (Depends-on): Likewise.
57156         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57157         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57158         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57159         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57160         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57161         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57162         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57163         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57164         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57165         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57166         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57167         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57168         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57169         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57170         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57171         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57172         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57173         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57174         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57175         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57176         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57177         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57178         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57179         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57180         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57181         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57182         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57183         so that lock.m4 can be used in gettext without extensions module.
57184
57185 2007-09-11  Bruno Haible  <bruno@clisp.org>
57186
57187         * m4/isc-posix.m4: Remove file.
57188         Suggested by Eric Blake.
57189
57190 2007-09-11  Eric Blake  <ebb9@byu.net>
57191
57192         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57193
57194 2007-09-10  Bruno Haible  <bruno@clisp.org>
57195
57196         * posix-modules: Fix typo in error message.
57197         Reported by Matt <mkraai@beckman.com>.
57198
57199 2007-09-09  Bruno Haible  <bruno@clisp.org>
57200
57201         * doc/functions/getdelim.texi: Update list of platforms lacking the
57202         function.
57203         * doc/functions/getline.texi: Likewise.
57204
57205 2007-09-09  Jim Meyering  <jim@meyering.net>
57206
57207         * lib/hash.c (hash_initialize): Detect calloc failure.
57208         Reported by Bruno Haible.
57209
57210 2007-09-09  Bruno Haible  <bruno@clisp.org>
57211
57212         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57213         malloc or realloc fails.
57214
57215 2007-09-09  Bruno Haible  <bruno@clisp.org>
57216
57217         * modules/getcwd (Depends-on): Add malloc-posix.
57218         * modules/glob (Depends-on): Likewise.
57219         * modules/putenv (Depends-on): Likewise.
57220         * modules/strdup (Depends-on): Likewise.
57221         * modules/getdelim (Depends-on): Add realloc-posix.
57222         * modules/read-file (Depends-on): Likewise.
57223
57224 2007-09-09  Bruno Haible  <bruno@clisp.org>
57225
57226         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57227         (gl_FUNC_MALLOC_POSIX): Require it.
57228         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57229         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57230         * modules/realloc (Files): Add m4/malloc.m4.
57231         * modules/calloc (Files): Likewise.
57232
57233 2007-09-09  Bruno Haible  <bruno@clisp.org>
57234
57235         * modules/malloc-posix: New file.
57236         * modules/malloc (Depends-on): Add malloc-posix.
57237         * lib/malloc.c: Include errno.h.
57238         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57239         and a POSIX-compatible malloc into a single function. Set ENOMEM
57240         when returning NULL.
57241         * m4/malloc.m4: New file.
57242         * doc/functions/malloc.texi: Mention the malloc-posix module.
57243         * lib/stdlib_.h (malloc): New declaration.
57244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57245         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57246         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57247         and HAVE_MALLOC_POSIX.
57248
57249 2007-09-09  Bruno Haible  <bruno@clisp.org>
57250
57251         * modules/realloc-posix: New file.
57252         * modules/realloc (Depends-on): Add realloc-posix.
57253         * lib/realloc.c: Include errno.h.
57254         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57255         and a POSIX-compatible realloc into a single function. Set ENOMEM
57256         when returning NULL.
57257         * m4/realloc.m4: New file.
57258         * doc/functions/realloc.texi: Mention the realloc-posix module.
57259         * lib/stdlib_.h (realloc): New declaration.
57260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57261         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57262         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57263         and HAVE_REALLOC_POSIX.
57264
57265 2007-09-09  Bruno Haible  <bruno@clisp.org>
57266
57267         * modules/calloc-posix: New file.
57268         * modules/calloc (Depends-on): Add calloc-posix.
57269         * lib/calloc.c: Include errno.h.
57270         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57271         and a POSIX-compatible calloc into a single function. Set ENOMEM
57272         when returning NULL.
57273         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57274         * doc/functions/calloc.texi: Mention the calloc-posix module.
57275         * lib/stdlib_.h (calloc): New declaration.
57276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57277         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57278         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57279         and HAVE_CALLOC_POSIX.
57280
57281 2007-09-09  Bruno Haible  <bruno@clisp.org>
57282
57283         Allow for modules to show an arbitrary notice.
57284         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57285         * gnulib-tool: New option --extract-notice.
57286         (func_usage): Document it.
57287         (sed_extract_prog): Update.
57288         (func_get_notice): New function.
57289         (func_modules_notice): New function.
57290         (func_import, func_create_testdir): Invoke it.
57291         Suggested by Jim Meyering.
57292
57293 2007-09-09  Bruno Haible  <bruno@clisp.org>
57294
57295         * gnulib-tool: New options --verbose, --quiet.
57296         (func_usage): Document them.
57297         (verbose): New variable.
57298         (func_execute_command): New function.
57299         (func_import): Don't show the module list and the file list if
57300         $verbose < 0.
57301         (func_create_testdir): Likewise. Use func_execute_command.
57302         (func_create_megatestdir): Use func_execute_command.
57303
57304 2007-09-08  Bruno Haible  <bruno@clisp.org>
57305
57306         * gnulib-tool (func_import): Prefer rsync over wget when available,
57307         for fetching the PO files.
57308
57309 2007-09-08  Bruno Haible  <bruno@clisp.org>
57310
57311         * posix-modules: New file. Portions copied from gnulib-tool.
57312         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57313
57314 2007-09-08  Jim Meyering  <jim@meyering.net>
57315
57316         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57317         * lib/fpending.h: Rename from __fpending.h.
57318         * lib/fpending.c: Rename from __fpending.c.
57319         Include "fpending.h", not "__fpending.h".
57320         * lib/__fpending.h, lib/__fpending.c: Remove files.
57321         * modules/fpending (Files): Reflect new file names.
57322         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57323
57324 2007-09-08  Bruno Haible  <bruno@clisp.org>
57325
57326         * m4/inttypes-h.m4: Remove stub file.
57327
57328 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57329
57330         * doc/headers/stdint.texi: Discuss #include_next issue.
57331
57332 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57333
57334         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57335
57336 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57337
57338         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57339         in variable name.
57340
57341 2007-09-03  Jim Meyering  <jim@meyering.net>
57342
57343         New module: git-version-gen.
57344         * modules/git-version-gen: New file.
57345
57346         Import changes from coreutils for bootstrap script.
57347
57348         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57349
57350         bootstrap: uses rsync to download the .po files
57351         * build-aux/bootstrap (po_download_command_format): New global.
57352         (download_po_files): Use rsync.
57353         (update_po_files): Don't remove .po files after download,
57354         so future rsync runs can take advantage of the copies.
57355
57356         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57357
57358         Solve the unnecessary-.po-file-regeneration problem once and for all.
57359         * build-aux/bootstrap (download_po_files): New function, renamed from
57360         get_translations.  Now, downloads, but doesn't update LINGUAS.
57361         (update_po_files): New function.
57362
57363         bootstrap: Ignore more.
57364         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57365         uniwidth to e.g., lib/.gitignore.
57366         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57367
57368         * build-aux/bootstrap: New setting: vc_ignore.
57369         (insert_sorted_if_absent): Create $file if absent.
57370         Adapt to new, possibly empty, list: $vc_ignore.
57371
57372         bootstrap: generate more ignorable names
57373         * build-aux/bootstrap (slurp): When generating ignorable names,
57374         also map .sin to .sed, .gperf to .c, and .y to .c.
57375
57376 2007-09-03  Jim Meyering  <jim@meyering.net>
57377
57378         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57379         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57380
57381 2007-09-02  Bruno Haible  <bruno@clisp.org>
57382
57383         Fix mis-recognition of 'mcs' on QNX 6.
57384         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57385         output contains the string "Mono".
57386         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57387         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57388
57389 2007-09-01  Bruno Haible  <bruno@clisp.org>
57390
57391         Fix collision between uniwidth/* and linebreak modules.
57392         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57393         u32_width): Remove declarations.
57394         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57395         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57396         streq3, streq2, streq1, streq0): Remove functions.
57397         (STREQ): Remove macro.
57398         (is_cjk_encoding): Remove function.
57399         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57400         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57401         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57402         * NEWS: Document the change.
57403
57404 2007-09-01  Bruno Haible  <bruno@clisp.org>
57405
57406         * lib/streq.h: Add double-inclusion guard.
57407
57408 2007-09-01  Karl Berry  <karl@gnu.org>
57409
57410         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57411
57412 2007-08-28  Jim Meyering  <jim@meyering.net>
57413
57414         Rename mreadlink_with_size to areadlink_with_size.
57415         * NEWS: Document the change.
57416         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57417         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57418         * lib/mreadlink.h: Rename this to...
57419         * lib/areadlink.h: ...this.
57420         * modules/mreadlink-with-size: Rename this to...
57421         * modules/areadlink-with-size: ...this.
57422         * lib/canonicalize.c: Reflect the renaming.
57423         * modules/canonicalize: Likewise.
57424
57425 2007-08-26  Bruno Haible  <bruno@clisp.org>
57426
57427         * gnulib-tool (func_import): When deciding which files to remove,
57428         consider also dangling symbolic links.
57429         Reported by Eric Blake.
57430
57431 2007-08-26  Bruno Haible  <bruno@clisp.org>
57432
57433         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57434
57435 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57436
57437         * lib/readline.c: Don't include getline.h, the prototype is now
57438         found in stdio.h.
57439
57440 2007-08-23  Jim Meyering  <jim@meyering.net>
57441
57442         Getdelim touchup.
57443         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57444         around the funlockfile call, since funlockfile never sets errno.
57445         Don't set errno upon failed realloc.
57446
57447 2007-08-22  Eric Blake  <ebb9@byu.net>
57448
57449         Getline touchups.
57450         * lib/getdelim.c (getdelim): Revert regression that required *n to
57451         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57452         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57453         getdelim, rather than whether implementation is missing.
57454         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57455         * lib/stdio_.h (getline): Also declare if replacement is
57456         required.
57457         * doc/functions/getdelim.texi: New file.
57458         * doc/functions/getline.texi: Likewise.
57459         * doc/gnulib.texi (Function Substitutes): Add new files.
57460         Reported by Bruno Haible.
57461
57462 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57463
57464         * users.txt: Add Guile.
57465
57466 2007-08-22  Eric Blake  <ebb9@byu.net>
57467
57468         * tests/test-getdelim.c (main): Use remove, not unlink.
57469         * tests/test-getline.c (main): Likewise.
57470
57471         Move getline and getdelim into stdio.h, per POSIX 200x.
57472         * modules/getline (Files): Remove getline.h.
57473         (Depends-on): Add stdio.
57474         (configure.ac): Add module indicator.
57475         * modules/getdelim (Files): Remove getdelim.h.
57476         (Depends-on): Add stdio.
57477         (configure.ac): Add module indicator.
57478         * modules/stdio (Makefile.am): Work with new indicators.
57479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57480         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57481         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57482         * lib/getdelim.h: Delete.
57483         * lib/getline.h: Delete.
57484         * lib/stdio_.h (getdelim, getline): Declare.
57485         * modules/getdelim-tests: New module.
57486         * modules/getline-tests: Likewise.
57487         * tests/test-getdelim.c: New file.
57488         * tests/test-getline.c: Likewise.
57489         * NEWS: Document the change.
57490         * lib/getline.c: Update choice of header.
57491         * lib/csharpcomp.c: Likewise.
57492         * lib/getpass.c: Likewise.
57493         * lib/javacomp.c: Likewise.
57494         * lib/javaversion.c: Likewise.
57495         * lib/yesno.c: Likewise.
57496         * lib/getdelim.c: Likewise.
57497         (getdelim): Set errno on failure, and avoid memory leak.
57498
57499 2007-08-19  Bruno Haible  <bruno@clisp.org>
57500
57501         * modules/closein (Depends-on): Add freadahead.
57502         * lib/closein.c: Include freadahead.h.
57503         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57504         is zero.
57505
57506 2007-08-19  Bruno Haible  <bruno@clisp.org>
57507
57508         * modules/freadahead-tests: New file.
57509         * tests/test-freadahead.sh: New file.
57510         * tests/test-freadahead.c: New file.
57511
57512         * modules/freadahead: New file.
57513         * lib/freadahead.h: New file.
57514         * lib/freadahead.c: New file.
57515         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57516         fbufmode, fpurge, freadable, fwritable.
57517
57518 2007-08-19  Eric Blake  <ebb9@byu.net>
57519
57520         Test yesno in combination with closein.
57521         * lib/yesno.c (yesno): Document use of stdin.
57522         * modules/yesno-tests (Files): New module.
57523         * tests/test-yesno.c (main): New file.
57524         * tests/test-yesno.sh: Likewise.
57525
57526 2007-08-19  Bruno Haible  <bruno@clisp.org>
57527
57528         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57529         * lib/fseeko.c (rpl_fseeko): Likewise.
57530         * lib/fseterr.c (fseterr): Likewise.
57531
57532 2007-08-19  Bruno Haible  <bruno@clisp.org>
57533
57534         * tests/test-lseek.c (main): Disable a test for BeOS.
57535         * doc/functions/lseek.texi: Document the BeOS bug.
57536
57537 2007-08-19  Bruno Haible  <bruno@clisp.org>
57538             Eric Blake  <ebb9@byu.net>
57539
57540         * lib/lseek.c: Include <sys/stat.h>.
57541         (rpl_lseek): Add workaround code also for Unix platforms.
57542         Needed for BeOS.
57543         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57544         * doc/functions/lseek.texi: Document BeOS definiency.
57545
57546 2007-08-18  Bruno Haible  <bruno@clisp.org>
57547
57548         * modules/fstrcmp-tests: New file.
57549         * tests/test-fstrcmp.c: New file.
57550
57551 2007-08-18  Bruno Haible  <bruno@clisp.org>
57552
57553         * modules/fstrcmp: New file, from GNU gettext with modifications.
57554         * lib/fstrcmp.h: New file, from GNU gettext.
57555         * lib/fstrcmp.c: New file, from GNU gettext.
57556         * MODULES.html.sh (String handling): Add fstrcmp.
57557
57558 2007-08-18  Bruno Haible  <bruno@clisp.org>
57559
57560         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57561         'bool'.
57562         (diag, compareseq): Remove const from the ctxt argument.
57563         (USE_HEURISTIC): Undefine at the end.
57564
57565 2007-08-18  Jim Meyering  <jim@meyering.net>
57566
57567         New file: lib/idcache.h
57568         * NEWS: Mention the addition.
57569         * modules/idcache (Files): Add lib/idcache.h
57570         * lib/idcache.c: Include "idcache.h".
57571         Don't include <sys/types.h>.
57572         Add a FIXME comment.
57573         Move file-scoped "static" declarations to the top.
57574         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57575
57576 2007-08-17  Bruno Haible  <bruno@clisp.org>
57577         and Paul Eggert  <eggert@cs.ucla.edu>
57578
57579         * MODULES.html.sh: Add diffseq.
57580         * modules/diffseq: New file.
57581         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57582         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57583
57584 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57585
57586         Import changes from coreutils for bootstrap script.
57587
57588         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57589
57590         * build-aux/bootstrap (slurp): Work even in environments where
57591         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57592         current code does not slurp files whose names start with ".", and
57593         this looks like it might be a troublesome area.
57594
57595         2007-07-11  Jim Meyering  <jim@meyering.net>
57596
57597         If there's a GPL vN copyright comment, require that N == 3.
57598
57599         2007-07-08  Jim Meyering  <jim@meyering.net>
57600
57601         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57602         * build-aux/bootstrap (mam_template): Move definition out of loop.
57603
57604         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57605
57606         * build-aux/bootstrap (symlink_to_dir): Rename function from
57607         symlink_to_gnulib.  Add a directory parameter.  Update all
57608         callers.
57609         (cp_mark_as_generated): Also check for -- and link to -- files in
57610         gl/.
57611
57612         2007-07-08  Jim Meyering  <jim@meyering.net>
57613
57614         Adapt to deeper hierarchy in gnulib.
57615         * build-aux/bootstrap (symlink_to_dir): If the destination
57616         directory doesn't exist, create it. This is required at least for
57617         "lib/uniwidth/cjk.h".
57618
57619         2007-05-15  Jim Meyering  <jim@meyering.net>
57620
57621         * build-aux/bootstrap: Now that generated Makefile.am files
57622         are no longer under version control, they must be created at
57623         bootstrap time.
57624
57625 2007-08-14  Ben Pfaff  <blp@gnu.org>
57626
57627         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57628
57629 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57630
57631         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57632         given the changes below.
57633         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57634         even on hosts that have padding bits beyond the supported 64.
57635
57636 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57637
57638         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57639         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57640         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57641         depends on it.
57642         (xstrtol_error): Remove.
57643         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57644         but with a different signature.
57645         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57646         * lib/xstrtol-error.c: Include exitfail.h.
57647         (xstrtol_fatal): New function, with a different signature from the
57648         old xstrtol_error, so that the caller need not worry about passing
57649         in an exit status, or about storage management of the option argument.
57650         (xstrtol_error): Now a static function.  Redo signature to
57651         implement xstrtol_fatal.  Output the correct number of hyphens in
57652         front of the option so that the caller need not worry about
57653         storage management.
57654         (N_): New macro.
57655         (_): Remove; not used now.
57656         * modules/xstrtol: Depend on getopt.
57657         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57658         of old STRTOL_FATAL_ERROR macro.
57659         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57660         of test program.
57661         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57662         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57663
57664 2007-08-08  Eric Blake  <ebb9@byu.net>
57665
57666         * lib/xstrtol-error.c: Add missing include.
57667
57668         Move xstrtol messages into gnulib domain, when --pobase is used.
57669         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57670         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57671         * modules/xstrtol (Files): Distribute new file.
57672         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57673         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57674         * tests/test-xstrtol.c: ...into new file.
57675         * tests/test-xstrtoul.c: Also test xstrtoul.
57676         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57677         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57678         * tests/test-xstrtol.sh: Drive the tests.
57679         * tests/test-xstrtoimax.sh: Likewise.
57680         * tests/test-xstrtoumax.sh: Likewise.
57681         * modules/xstrtol-tests: New module.
57682         * modules/xstrtoimax-tests: Likewise.
57683         * modules/xstrtoumax-tests: Likewise.
57684
57685 2007-08-08  Jim Meyering  <jim@meyering.net>
57686
57687         New function: mfile_name_concat.
57688         * lib/filenamecat.c (mfile_name_concat): New function, just like
57689         file_name_concat, but return NULL upon failure rather than exiting
57690         with a diagnostic.
57691         * lib/filenamecat.h: Declare it.
57692
57693 2007-08-07  Bruno Haible  <bruno@clisp.org>
57694
57695         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57696         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57697         warning from gcc.
57698         Reported by Eric Blake.
57699
57700 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57701
57702         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57703         * modules/crypto/arcfour (License): Likewise.
57704         * modules/crypto/des-tests (License): Likewise.
57705         * modules/crypto/gc-arctwo-tests (License): Likewise.
57706         * modules/crypto/gc-des-tests (License): Likewise.
57707         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57708         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57709         * modules/crypto/gc-md2-tests (License): Likewise.
57710         * modules/crypto/gc-md4-tests (License): Likewise.
57711         * modules/crypto/gc-md5-tests (License): Likewise.
57712         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57713         * modules/crypto/gc-rijndael-tests (License): Likewise.
57714         * modules/crypto/gc-sha1-tests (License): Likewise.
57715         * modules/crypto/gc-tests (License): Likewise.
57716         * modules/crypto/hmac-md5 (License): Likewise.
57717         * modules/crypto/hmac-sha1 (License): Likewise.
57718         * modules/crypto/md2-tests (License): Likewise.
57719         * modules/crypto/md4-tests (License): Likewise.
57720         * modules/crypto/md5 (License): Likewise.
57721         * modules/crypto/rijndael (License): Likewise.
57722         * modules/crypto/sha1 (License): Likewise.
57723         * modules/memxor (License): Likewise.
57724
57725 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57726         and Bruno Haible  <bruno@clisp.org>
57727
57728         * NEWS: Describe interface changes to human, xstrtol.
57729         * lib/human.h: Include <xstrtol.h>.
57730         (human_options): Return enum strtol_error, not int.  Remove
57731         bool arg; take int * instead.
57732         * lib/human.c: Don't include "gettext.h".
57733         (_): Remove; no longer used.
57734         Don't include <xstrtol.h>, since human.h does it.
57735         (human_options): Adjust to abovementioned interface changes.
57736         Do not report error to stderr; that's now the caller's
57737         responsibility.
57738         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57739         interface change.
57740         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57741         Str, Argument_type_string.  All uses changed.  Put " argument"
57742         in diagnostics to make them clearer.  Change wording of suffix
57743         message for clarity.
57744         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57745         Argument_type_string.
57746         (STRTOL_FATAL_WARN): Remove; no longer used.
57747         * modules/human (Depends-on): Remove gettext-h.
57748
57749 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57750
57751         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57752
57753 2007-07-31  Bruno Haible  <bruno@clisp.org>
57754
57755         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57756         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57757         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57758
57759 2007-07-31  Bruno Haible  <bruno@clisp.org>
57760
57761         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57762         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57763
57764 2007-07-30  Bruno Haible  <bruno@clisp.org>
57765
57766         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57767         * modules/c-ctype (License): Likewise.
57768         * modules/c-strcase (License): Likewise.
57769         * modules/check-version (License): Likewise.
57770         * modules/iconv (License): Likewise.
57771         * modules/iconv_open (License): Likewise.
57772         * modules/read-file (License): Likewise.
57773         * modules/striconv (License): Likewise.
57774         * modules/strverscmp (License): Likewise.
57775         * modules/vasprintf (License): Likewise.
57776         * modules/crypto/des (License): Likewise.
57777         * modules/crypto/gc (License): Likewise.
57778         * modules/crypto/gc-arcfour (License): Likewise.
57779         * modules/crypto/gc-arctwo (License): Likewise.
57780         * modules/crypto/gc-des (License): Likewise.
57781         * modules/crypto/gc-hmac-md5 (License): Likewise.
57782         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57783         * modules/crypto/gc-md2 (License): Likewise.
57784         * modules/crypto/gc-md4 (License): Likewise.
57785         * modules/crypto/gc-md5 (License): Likewise.
57786         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57787         * modules/crypto/gc-random (License): Likewise.
57788         * modules/crypto/gc-rijndael (License): Likewise.
57789         * modules/crypto/gc-sha1 (License): Likewise.
57790         * modules/crypto/md2 (License): Likewise.
57791         * modules/crypto/md4 (License): Likewise.
57792
57793 2007-07-30  Jim Meyering  <jim@meyering.net>
57794
57795         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57796         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57797         it has valid stat data.  This bug would cause du not to count the
57798         sizes of inaccessible directories.
57799         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57800         in <http://bugzilla.redhat.com/250077>.
57801
57802 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57803             Bruno Haible  <bruno@clisp.org>
57804
57805         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57806         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57807         #include_next, gives a diagnostic about it, but reports no error in
57808         the exit code.
57809         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57810
57811 2007-07-24  Ben Pfaff  <blp@gnu.org>
57812
57813         Improve name: "count-one-bits" is better than "popcount".
57814         * MODULES.html.sh: Update name.
57815         * lib/popcount.h: Renamed lib/count-one-bits.h.
57816         (popcount): Renamed count_one_bits.
57817         (popcountl): Renamed count_one_bits_l.
57818         (popcountll): Renamed count_one_bits_ll.
57819         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57820         * modules/popcount: Renamed module/count-one-bits.
57821         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57822         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57823
57824 2007-07-23  Ben Pfaff  <blp@gnu.org>
57825
57826         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57827         better code generation, and add U to large constants to avoid
57828         warnings, in non-GCC case.
57829         Suggested by Bruno Haible.
57830
57831 2007-07-23  Ben Pfaff  <blp@gnu.org>
57832
57833         * lib/popcount.h: Use verify_true instead of if...abort.
57834         * modules/popcount: Depend on verify module.
57835         Suggested by Jim Meyering.
57836
57837 2007-07-23  Bruno Haible  <bruno@clisp.org>
57838
57839         * gnulib-tool (func_import): Create a .cvsignore file also when the
57840         directory is not yet in CVS but the toplevel directory is. When
57841         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57842         Reported by Karl Berry.
57843
57844 2007-07-22  Ben Pfaff  <blp@gnu.org>
57845
57846         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57847         case.
57848         Suggested by Eric Blake.
57849
57850 2007-07-22  Ben Pfaff  <blp@gnu.org>
57851
57852         New module: popcount.
57853         * MODULES.html.sh: Add popcount.
57854         * modules/popcount: New file.
57855         * modules/popcount-tests: New file.
57856         * tests/test-popcount.c: New file.
57857         * lib/popcount.h: New file.
57858         * m4/popcount.m4: New file.
57859
57860 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57861
57862         * build-aux/announce-gen: Update to GPLv3.
57863
57864         * build-aux/config.guess: Update from config.
57865
57866 2007-07-21  Bruno Haible  <bruno@clisp.org>
57867
57868         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57869         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57870
57871 2007-07-20  Jim Meyering  <jim@meyering.net>
57872
57873         * check-module: Diagnose a self-dependency.
57874
57875 2007-07-19  Bruno Haible  <bruno@clisp.org>
57876
57877         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57878         empty.
57879         Reported by Eric Blake.
57880
57881 2007-07-18  Bruno Haible  <bruno@clisp.org>
57882
57883         * gnulib-tool: New options --po-base, --po-domain.
57884         (func_usage): Document them.
57885         (pobase, po_domain): New variables.
57886         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57887         DEFAULT_TEXT_DOMAIN.
57888         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57889         (func_import): Consider pobase and po_domain. Create a po/ directory.
57890         (func_create_testdir): Set pobase and po_domain to empty.
57891         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57892         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57893
57894 2007-07-18  Bruno Haible  <bruno@clisp.org>
57895
57896         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57897         EXTRA_DIST augmentation for files in build-aux/.
57898
57899 2007-07-16  Bruno Haible  <bruno@clisp.org>
57900
57901         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57902         * modules/getdelim (License): Likewise.
57903
57904 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57905
57906         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57907         * modules/d-type (License): Likewise.
57908         * modules/extensions (License): Likewise.
57909         * modules/fnmatch (License): Likewise.
57910         * modules/fseeko (License): Likewise.
57911         * modules/getaddrinfo (License): Likewise.
57912         * modules/getline (License): Likewise.
57913         * modules/getlogin_r (License): Likewise.
57914         * modules/getpass (License): Likewise.
57915         * modules/gettimeofday (License): Likewise.
57916         * modules/glob (License): Likewise.
57917         * modules/inet_ntop (License): Likewise.
57918         * modules/malloc (License): Likewise.
57919         * modules/malloca (License): Likewise.
57920         * modules/memmem (License): Likewise.
57921         * modules/mempcpy (License): Likewise.
57922         * modules/memset (License): Likewise.
57923         * modules/minmax (License): Likewise.
57924         * modules/mktime (License): Likewise.
57925         * modules/netinet_in (License): Likewise.
57926         * modules/pathmax (License): Likewise.
57927         * modules/poll (License): Likewise.
57928         * modules/regex (License): Likewise.
57929         * modules/snprintf (License): Likewise.
57930         * modules/stdbool (License): Likewise.
57931         * modules/stdint (License): Likewise.
57932         * modules/stdio (License): Likewise.
57933         * modules/strcase (License): Likewise.
57934         * modules/strcasestr (License): Likewise.
57935         * modules/strdup (License): Likewise.
57936         * modules/string (License): Likewise.
57937         * modules/strndup (License): Likewise.
57938         * modules/strnlen (License): Likewise.
57939         * modules/strpbrk (License): Likewise.
57940         * modules/strptime (License): Likewise.
57941         * modules/strsep (License): Likewise.
57942         * modules/sys_select (License): Likewise.
57943         * modules/sys_socket (License): Likewise.
57944         * modules/sys_stat (License): Likewise.
57945         * modules/sys_time (License): Likewise.
57946         * modules/time (License): Likewise.
57947         * modules/time_r (License): Likewise.
57948         * modules/timegm (License): Likewise.
57949         * modules/unistd (License): Likewise.
57950         * modules/vsnprintf (License): Likewise.
57951         * modules/wctype (License): Likewise.
57952
57953 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57954
57955         * modules/argz (License): LGPLv2+.
57956
57957 2007-07-15  Karl Berry  <karl@gnu.org>
57958
57959         * doc/gnulib.texi: revise node structure per new fdl.texi.
57960
57961 2007-07-14  Bruno Haible  <bruno@clisp.org>
57962
57963         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57964         the output file.
57965         * lib/uniname/uninames.h: Regenerated.
57966
57967 2007-07-14  Karl Berry  <karl@gnu.org>
57968
57969         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57970         omitting sectioning and index commands.
57971
57972 2007-07-13  Bruno Haible  <bruno@clisp.org>
57973
57974         New gnulib-tool option --more-symlinks.
57975         * gnulib-tool (func_usage): Document --more-symlinks.
57976         (do_copyrights): New variable.
57977         Recognize option --more-symlinks.
57978         (func_import): Don't add a copyright notice transform to
57979         sed_transform_lib_file if do_copyrights is empty.
57980
57981 2007-07-13  Bruno Haible  <bruno@clisp.org>
57982
57983         * lib/vasnprintf.c (decimal_point_char): Define also if
57984         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57985         && !NEED_PRINTF_DIRECTIVE_A.
57986         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57987         Gary V. Vaughan <gary@gnu.org>.
57988
57989 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57990
57991         * lib/inttypes_.h: Undo previous change, since it was fixed
57992         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57993
57994 2007-07-13  Bruno Haible  <bruno@clisp.org>
57995
57996         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57997         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57998
57999 2007-07-13  Jim Meyering  <jim@meyering.net>
58000
58001         df: Don't fail for Tru64's "file-on-file mount".
58002         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58003         so we fall through and use statfs instead.  Details here:
58004         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58005         Reported by Albert Chin.
58006
58007 2007-07-13  Bruno Haible  <bruno@clisp.org>
58008
58009         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58010         * modules/configmake (License): Likewise.
58011         * modules/gettext (License): Likewise.
58012         * modules/gettext-h (License): Likewise.
58013         * modules/include_next (License): Likewise.
58014         * modules/link-warning (License): Likewise.
58015         * modules/localcharset (License): Likewise.
58016         * modules/localename (License): Likewise.
58017         * modules/lock (License): Likewise.
58018         * modules/relocatable-lib-lgpl (License): Likewise.
58019         * modules/size_max (License): Likewise.
58020         * modules/vasnprintf (License): Likewise.
58021         * modules/wchar (License): Likewise.
58022         * modules/xsize (License): Likewise.
58023
58024 2007-07-13  Bruno Haible  <bruno@clisp.org>
58025
58026         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58027         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58028
58029 2007-07-12  Bruno Haible  <bruno@clisp.org>
58030
58031         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58032         in the modules files.
58033
58034 2007-07-11  Karl Berry  <karl@gnu.org>
58035
58036         * MODULES.html.sh (func_module): use
58037          sed -e '\|^'"${includefile}"'$|d'
58038          instead of /.../d, to avoid errors on $includefile's containing /.
58039
58040 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58041
58042         * gnulib-tool (func_import): Avoid duplication of --avoid
58043         statements
58044         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58045         names to `_' in variable names.
58046
58047 2007-07-10  Eric Blake  <ebb9@byu.net>
58048
58049         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58050         * NEWS: Document this change.
58051
58052 2007-07-08  Bruno Haible  <bruno@clisp.org>
58053
58054         Update to Unicode 5.0.
58055         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58056         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58057         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58058         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58059         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58060         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58061         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58062         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58063         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58064         U+10A3F, U+1D242..U+1D244.
58065         (nonspacing_table_ind): Update.
58066         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58067         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58068
58069 2007-07-08  Bruno Haible  <bruno@clisp.org>
58070
58071         Update to Unicode 5.0.
58072         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58073         code transform. Extend the name index field of unicode_name_to_code and
58074         unicode_code_to_name from 16 to 24 bits.
58075         * lib/uniname/uniname.c (unicode_character_name,
58076         unicode_name_character): Add the range 0x12xxx to the code transform.
58077         * lib/uniname/uninames.h: Regenerated.
58078         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58079
58080 2007-07-07  Bruno Haible  <bruno@clisp.org>
58081
58082         * modules/wcwidth-tests: New file.
58083         * tests/test-wcwidth.c: New file.
58084
58085         Work around MacOS X wcwidth() bug.
58086         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58087         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58088         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58089         original wcwidth in non-UTF-8 locales.
58090         * modules/wcwidth (Depends-on): Add localcharset, streq,
58091         uniwidth/width.
58092         * doc/functions/wcwidth.texi: Update.
58093
58094 2007-07-07  Bruno Haible  <bruno@clisp.org>
58095
58096         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58097         (wcwidth): New declaration.
58098         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58099         macros.
58100         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58101         here. Prepare for creating <wchar.h> unconditionally.
58102         * modules/wchar (Depends-on): Add link-warning.
58103         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58104         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58105         * lib/wcwidth.h: Remove file.
58106         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58107         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58108         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58109         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58110         (Include): Replace wcwidth.h with <wchar.h>.
58111         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58112         * lib/mbchar.h: Don't include wcwidth.h.
58113         * lib/mbswidth.c: Likewise.
58114         * NEWS: Mention the change.
58115
58116 2007-07-07  Bruno Haible  <bruno@clisp.org>
58117
58118         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58119         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58120         definition with an external declaration.
58121         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58122         defined as a function. Remove AC_C_INLINE requirement.
58123         * modules/wcwidth (Files): Add lib/wcwidth.c.
58124         (Makefile.am): Remove redundant statement.
58125
58126 2007-07-07  Bruno Haible  <bruno@clisp.org>
58127
58128         * MODULES.html.sh (Unicode string functions): Add the new modules.
58129
58130         * tests/uniwidth/test-u32-strwidth.c: New file.
58131         * modules/uniwidth/u32-strwidth-tests: New file.
58132
58133         * lib/uniwidth/u32-strwidth.c: New file.
58134         * modules/uniwidth/u32-strwidth: New file.
58135
58136         * tests/uniwidth/test-u16-strwidth.c: New file.
58137         * modules/uniwidth/u16-strwidth-tests: New file.
58138
58139         * lib/uniwidth/u16-strwidth.c: New file.
58140         * modules/uniwidth/u16-strwidth: New file.
58141
58142         * tests/uniwidth/test-u8-strwidth.c: New file.
58143         * modules/uniwidth/u8-strwidth-tests: New file.
58144
58145         * lib/uniwidth/u8-strwidth.c: New file.
58146         * modules/uniwidth/u8-strwidth: New file.
58147
58148         * tests/uniwidth/test-u32-width.c: New file.
58149         * modules/uniwidth/u32-width-tests: New file.
58150
58151         * lib/uniwidth/u32-width.c: New file.
58152         * modules/uniwidth/u32-width: New file.
58153
58154         * tests/uniwidth/test-u16-width.c: New file.
58155         * modules/uniwidth/u16-width-tests: New file.
58156
58157         * lib/uniwidth/u16-width.c: New file.
58158         * modules/uniwidth/u16-width: New file.
58159
58160         * tests/uniwidth/test-u8-width.c: New file.
58161         * modules/uniwidth/u8-width-tests: New file.
58162
58163         * lib/uniwidth/u8-width.c: New file.
58164         * modules/uniwidth/u8-width: New file.
58165
58166         * tests/uniwidth/test-uc_width.c: New file.
58167         * modules/uniwidth/width-tests: New file.
58168
58169         * lib/uniwidth/width.c: New file, from GNU libiconv.
58170         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58171         * modules/uniwidth/width: New file.
58172
58173         * lib/uniwidth.h: New file, from GNU libiconv.
58174         * modules/uniwidth/base: New file.
58175
58176 2007-07-07  Bruno Haible  <bruno@clisp.org>
58177
58178         * lib/uniname.h: New file, from GNU gettext.
58179         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58180         * lib/uniname/uninames.h: New file, from GNU gettext.
58181         * lib/uniname/uniname.c: New file, from GNU gettext.
58182         * tests/uniname/test-uninames.sh: New file.
58183         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58184         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58185         * modules/uniname/base: New file.
58186         * modules/uniname/uniname: New file.
58187         * modules/uniname/uniname-tests: New file.
58188         * MODULES.html.sh (Unicode string functions): Add the new modules.
58189
58190 2007-07-06  Bruno Haible  <bruno@clisp.org>
58191
58192         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58193
58194 2007-07-06  Bruno Haible  <bruno@clisp.org>
58195
58196         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58197         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58198         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58199         include <sys/time.h>.
58200         Reported by Eric Blake.
58201
58202 2007-07-06  Eric Blake  <ebb9@byu.net>
58203
58204         Fix testing canonicalize on cygwin.
58205         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58206         Revert patch from 2007-06-19.
58207         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58208         canonicalize module is also in use.
58209         * tests/test-canonicalize.c: New file.
58210         * tests/test-canonicalize.sh: Likewise.
58211         * modules/canonicalize-tests: Likewise.
58212
58213 2007-07-06  Jim Meyering  <jim@meyering.net>
58214
58215         * lib/getugroups.c (getugroups): Detect getgrent failure.
58216         Adjust comment to reflect reality: this function may return -1.
58217
58218 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58219
58220         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58221         the new TP address.
58222         (usage): Fix typo
58223         (gnulib_mk): New variable.
58224
58225 2007-07-05  Jim Meyering  <jim@meyering.net>
58226
58227         Don't let endgrent clobber errno, no matter how improbable.
58228         * lib/getugroups.c (getugroups): Save and restore errno around
58229         endgrent call.
58230
58231         Close the group DB even when failing with 2^31 or more members.
58232         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58233
58234 2007-07-04  Jim Meyering  <jim@meyering.net>
58235
58236         * lib/getugroups.h: New file.
58237         * lib/getugroups.c: Include "getugroups.h".
58238         Remove uses of "register" keyword.
58239         Move local variable, "cp", down into scope where used.
58240         Give "username" parameter the "const" attribute.
58241         * modules/getugroups (Files): Add lib/getugroups.h
58242
58243 2007-07-04  Karl Berry  <karl@gnu.org>
58244
58245         * MODULES.html.sh (func_all_modules): Complete rename of
58246         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58247
58248 2007-07-02  Bruno Haible  <bruno@clisp.org>
58249
58250         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58251         mode, when inttypes.h comes from gnulib.
58252         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58253
58254 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58255
58256         * NEWS: Mention lgpl module name change.
58257
58258         * modules/lgpl-2.1: Renamed from lgpl.
58259
58260         * NEWS: Mention gpl module name change.
58261
58262         * modules/gpl-3.0: New file, based on gpl-2.0.
58263
58264         * modules/gpl-2.0: Renamed from gpl.
58265
58266         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58267         doc/gpl-2.0.texi.
58268
58269 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58270
58271         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58272         #define __STDC_LIMIT_MACROS temporarily while including
58273         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58274         Problem reported by Joel E. Denny in
58275         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58276
58277 2007-07-01  Bruno Haible  <bruno@clisp.org>
58278
58279         * lib/unistdio.h: New file.
58280         * lib/unistdio/u-asnprintf.h: New file.
58281         * lib/unistdio/u-asprintf.h: New file.
58282         * lib/unistdio/u-printf-args.c: New file.
58283         * lib/unistdio/u-printf-args.h: New file.
58284         * lib/unistdio/u-printf-parse.h: New file.
58285         * lib/unistdio/u-snprintf.h: New file.
58286         * lib/unistdio/u-sprintf.h: New file.
58287         * lib/unistdio/u-vasprintf.h: New file.
58288         * lib/unistdio/u-vsnprintf.h: New file.
58289         * lib/unistdio/u-vsprintf.h: New file.
58290         * lib/unistdio/ulc-asnprintf.c: New file.
58291         * lib/unistdio/ulc-asprintf.c: New file.
58292         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58293         * lib/unistdio/ulc-printf-parse.c: New file.
58294         * lib/unistdio/ulc-snprintf.c: New file.
58295         * lib/unistdio/ulc-sprintf.c: New file.
58296         * lib/unistdio/ulc-vasnprintf.c: New file.
58297         * lib/unistdio/ulc-vasprintf.c: New file.
58298         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58299         * lib/unistdio/ulc-vsnprintf.c: New file.
58300         * lib/unistdio/ulc-vsprintf.c: New file.
58301         * lib/unistdio/u8-asnprintf.c: New file.
58302         * lib/unistdio/u8-asprintf.c: New file.
58303         * lib/unistdio/u8-printf-parse.c: New file.
58304         * lib/unistdio/u8-snprintf.c: New file.
58305         * lib/unistdio/u8-sprintf.c: New file.
58306         * lib/unistdio/u8-vasnprintf.c: New file.
58307         * lib/unistdio/u8-vasprintf.c: New file.
58308         * lib/unistdio/u8-vsnprintf.c: New file.
58309         * lib/unistdio/u8-vsprintf.c: New file.
58310         * lib/unistdio/u8-u8-asnprintf.c: New file.
58311         * lib/unistdio/u8-u8-asprintf.c: New file.
58312         * lib/unistdio/u8-u8-snprintf.c: New file.
58313         * lib/unistdio/u8-u8-sprintf.c: New file.
58314         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58315         * lib/unistdio/u8-u8-vasprintf.c: New file.
58316         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58317         * lib/unistdio/u8-u8-vsprintf.c: New file.
58318         * lib/unistdio/u16-asnprintf.c: New file.
58319         * lib/unistdio/u16-asprintf.c: New file.
58320         * lib/unistdio/u16-printf-parse.c: New file.
58321         * lib/unistdio/u16-snprintf.c: New file.
58322         * lib/unistdio/u16-sprintf.c: New file.
58323         * lib/unistdio/u16-vasnprintf.c: New file.
58324         * lib/unistdio/u16-vasprintf.c: New file.
58325         * lib/unistdio/u16-vsnprintf.c: New file.
58326         * lib/unistdio/u16-vsprintf.c: New file.
58327         * lib/unistdio/u16-u16-asnprintf.c: New file.
58328         * lib/unistdio/u16-u16-asprintf.c: New file.
58329         * lib/unistdio/u16-u16-snprintf.c: New file.
58330         * lib/unistdio/u16-u16-sprintf.c: New file.
58331         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58332         * lib/unistdio/u16-u16-vasprintf.c: New file.
58333         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58334         * lib/unistdio/u16-u16-vsprintf.c: New file.
58335         * lib/unistdio/u32-asnprintf.c: New file.
58336         * lib/unistdio/u32-asprintf.c: New file.
58337         * lib/unistdio/u32-printf-parse.c: New file.
58338         * lib/unistdio/u32-snprintf.c: New file.
58339         * lib/unistdio/u32-sprintf.c: New file.
58340         * lib/unistdio/u32-vasnprintf.c: New file.
58341         * lib/unistdio/u32-vasprintf.c: New file.
58342         * lib/unistdio/u32-vsnprintf.c: New file.
58343         * lib/unistdio/u32-vsprintf.c: New file.
58344         * lib/unistdio/u32-u32-asnprintf.c: New file.
58345         * lib/unistdio/u32-u32-asprintf.c: New file.
58346         * lib/unistdio/u32-u32-snprintf.c: New file.
58347         * lib/unistdio/u32-u32-sprintf.c: New file.
58348         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58349         * lib/unistdio/u32-u32-vasprintf.c: New file.
58350         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58351         * lib/unistdio/u32-u32-vsprintf.c: New file.
58352         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58353         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58354         * tests/unistdio/test-ulc-printf1.h: New file.
58355         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58356         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58357         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58358         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58359         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58360         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58361         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58362         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58363         * tests/unistdio/test-u8-asnprintf1.c: New file.
58364         * tests/unistdio/test-u8-asnprintf1.h: New file.
58365         * tests/unistdio/test-u8-printf1.h: New file.
58366         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58367         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58368         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58369         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58370         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58371         * tests/unistdio/test-u8-vasprintf1.c: New file.
58372         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58373         * tests/unistdio/test-u8-vsprintf1.c: New file.
58374         * tests/unistdio/test-u16-asnprintf1.c: New file.
58375         * tests/unistdio/test-u16-asnprintf1.h: New file.
58376         * tests/unistdio/test-u16-printf1.h: New file.
58377         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58378         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58379         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58380         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58381         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58382         * tests/unistdio/test-u16-vasprintf1.c: New file.
58383         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58384         * tests/unistdio/test-u16-vsprintf1.c: New file.
58385         * tests/unistdio/test-u32-asnprintf1.c: New file.
58386         * tests/unistdio/test-u32-asnprintf1.h: New file.
58387         * tests/unistdio/test-u32-printf1.h: New file.
58388         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58389         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58390         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58391         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58392         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58393         * tests/unistdio/test-u32-vasprintf1.c: New file.
58394         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58395         * tests/unistdio/test-u32-vsprintf1.c: New file.
58396         * modules/unistdio/base: New file.
58397         * modules/unistdio/u-printf-args: New file.
58398         * modules/unistdio/ulc-asnprintf: New file.
58399         * modules/unistdio/ulc-asprintf: New file.
58400         * modules/unistdio/ulc-fprintf: New file.
58401         * modules/unistdio/ulc-printf-parse: New file.
58402         * modules/unistdio/ulc-snprintf: New file.
58403         * modules/unistdio/ulc-sprintf: New file.
58404         * modules/unistdio/ulc-vasnprintf: New file.
58405         * modules/unistdio/ulc-vasprintf: New file.
58406         * modules/unistdio/ulc-vfprintf: New file.
58407         * modules/unistdio/ulc-vsnprintf: New file.
58408         * modules/unistdio/ulc-vsprintf: New file.
58409         * modules/unistdio/u8-asnprintf: New file.
58410         * modules/unistdio/u8-asprintf: New file.
58411         * modules/unistdio/u8-printf-parse: New file.
58412         * modules/unistdio/u8-snprintf: New file.
58413         * modules/unistdio/u8-sprintf: New file.
58414         * modules/unistdio/u8-vasnprintf: New file.
58415         * modules/unistdio/u8-vasprintf: New file.
58416         * modules/unistdio/u8-vsnprintf: New file.
58417         * modules/unistdio/u8-vsprintf: New file.
58418         * modules/unistdio/u8-u8-asnprintf: New file.
58419         * modules/unistdio/u8-u8-asprintf: New file.
58420         * modules/unistdio/u8-u8-snprintf: New file.
58421         * modules/unistdio/u8-u8-sprintf: New file.
58422         * modules/unistdio/u8-u8-vasnprintf: New file.
58423         * modules/unistdio/u8-u8-vasprintf: New file.
58424         * modules/unistdio/u8-u8-vsnprintf: New file.
58425         * modules/unistdio/u8-u8-vsprintf: New file.
58426         * modules/unistdio/u16-asnprintf: New file.
58427         * modules/unistdio/u16-asprintf: New file.
58428         * modules/unistdio/u16-printf-parse: New file.
58429         * modules/unistdio/u16-snprintf: New file.
58430         * modules/unistdio/u16-sprintf: New file.
58431         * modules/unistdio/u16-vasnprintf: New file.
58432         * modules/unistdio/u16-vasprintf: New file.
58433         * modules/unistdio/u16-vsnprintf: New file.
58434         * modules/unistdio/u16-vsprintf: New file.
58435         * modules/unistdio/u16-u16-asnprintf: New file.
58436         * modules/unistdio/u16-u16-asprintf: New file.
58437         * modules/unistdio/u16-u16-snprintf: New file.
58438         * modules/unistdio/u16-u16-sprintf: New file.
58439         * modules/unistdio/u16-u16-vasnprintf: New file.
58440         * modules/unistdio/u16-u16-vasprintf: New file.
58441         * modules/unistdio/u16-u16-vsnprintf: New file.
58442         * modules/unistdio/u16-u16-vsprintf: New file.
58443         * modules/unistdio/u32-asnprintf: New file.
58444         * modules/unistdio/u32-asprintf: New file.
58445         * modules/unistdio/u32-printf-parse: New file.
58446         * modules/unistdio/u32-snprintf: New file.
58447         * modules/unistdio/u32-sprintf: New file.
58448         * modules/unistdio/u32-vasnprintf: New file.
58449         * modules/unistdio/u32-vasprintf: New file.
58450         * modules/unistdio/u32-vsnprintf: New file.
58451         * modules/unistdio/u32-vsprintf: New file.
58452         * modules/unistdio/u32-u32-asnprintf: New file.
58453         * modules/unistdio/u32-u32-asprintf: New file.
58454         * modules/unistdio/u32-u32-snprintf: New file.
58455         * modules/unistdio/u32-u32-sprintf: New file.
58456         * modules/unistdio/u32-u32-vasnprintf: New file.
58457         * modules/unistdio/u32-u32-vasprintf: New file.
58458         * modules/unistdio/u32-u32-vsnprintf: New file.
58459         * modules/unistdio/u32-u32-vsprintf: New file.
58460         * modules/unistdio/ulc-asnprintf-tests: New file.
58461         * modules/unistdio/ulc-vasnprintf-tests: New file.
58462         * modules/unistdio/ulc-vasprintf-tests: New file.
58463         * modules/unistdio/ulc-vsnprintf-tests: New file.
58464         * modules/unistdio/ulc-vsprintf-tests: New file.
58465         * modules/unistdio/u8-asnprintf-tests: New file.
58466         * modules/unistdio/u8-vasnprintf-tests: New file.
58467         * modules/unistdio/u8-vasprintf-tests: New file.
58468         * modules/unistdio/u8-vsnprintf-tests: New file.
58469         * modules/unistdio/u8-vsprintf-tests: New file.
58470         * modules/unistdio/u16-asnprintf-tests: New file.
58471         * modules/unistdio/u16-vasnprintf-tests: New file.
58472         * modules/unistdio/u16-vasprintf-tests: New file.
58473         * modules/unistdio/u16-vsnprintf-tests: New file.
58474         * modules/unistdio/u16-vsprintf-tests: New file.
58475         * modules/unistdio/u32-asnprintf-tests: New file.
58476         * modules/unistdio/u32-vasnprintf-tests: New file.
58477         * modules/unistdio/u32-vasprintf-tests: New file.
58478         * modules/unistdio/u32-vsnprintf-tests: New file.
58479         * modules/unistdio/u32-vsprintf-tests: New file.
58480         * MODULES.html.sh (Unicode string functions): Add the new modules.
58481
58482 2007-07-01  Bruno Haible  <bruno@clisp.org>
58483
58484         * lib/sprintf.c (sprintf): Limit the available length estimation,
58485         to avoid address wraparound.
58486         * lib/vsprintf.c (vsprintf): Likewise.
58487         * modules/sprintf-posix (Dependencies): Add stdint.
58488         * modules/vsprintf-posix (Dependencies): Likewise.
58489
58490 2007-07-01  Bruno Haible  <bruno@clisp.org>
58491
58492         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58493         Windows PATH as well. Conservative double-quoting. Comments.
58494
58495 2007-07-01  Bruno Haible  <bruno@clisp.org>
58496             Eric Blake  <ebb9@byu.net>
58497             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58498
58499         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58500         empty components in $PATH, denoting '.'.
58501
58502 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58503
58504         * gnulib-tool: Fix indentation.
58505         (func_create_megatestdir): Likewise.
58506         Report by Bruno Haible.
58507
58508 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58509
58510         Sync from Automake.
58511         * build-aux/gnupload: Fix shell portability issues with for loops.
58512         Report by Karl Berry.
58513
58514 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58515
58516         * build-aux/maint.mk (POURL): Use translationproject.org.
58517
58518 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58519             Bruno Haible  <bruno@clisp.org>
58520
58521         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58522         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58523         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58524         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58525         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58526
58527 2007-06-27  Bruno Haible  <bruno@clisp.org>
58528
58529         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58530         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58531
58532 2007-06-26  Karl Berry  <karl@gnu.org>
58533
58534         * MODULES.html.sh: remove xreadlink-with-size.
58535
58536 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58537
58538         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58539         method that I hope also handles the double-include problem noted
58540         by Bruno Haible in
58541         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58542
58543 2007-06-23  Bruno Haible  <bruno@clisp.org>
58544
58545         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58546         Don't let the 'mostlyclean' target fail if the last subdirectory could
58547         not be removed.
58548         Reported by Karl Berry.
58549
58550 2007-06-23  Bruno Haible  <bruno@clisp.org>
58551
58552         * gnulib-tool (echo): Add a speedier workaround for ksh.
58553         * tests/test-echo.sh: Likewise.
58554
58555 2007-06-23  Bruno Haible  <bruno@clisp.org>
58556
58557         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58558         * tests/test-echo.sh: Likewise.
58559
58560 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58561
58562         * gnulib-tool (IFS): Initialize early, so we don't set it to
58563         empty later.
58564         (self_abspathname): Rewrite algorithm to set it, reindent.
58565         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58566         (func_create_megatestdir): Merge some sed scripts.
58567
58568 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58569
58570         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58571         exposed by Sun Studio 11 cc on Solaris 8.
58572
58573 2007-06-22  Bruno Haible  <bruno@clisp.org>
58574
58575         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58576         backslashes.
58577         * tests/test-echo.sh: New file.
58578
58579 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58580
58581         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58582         simplify `sed_replace_build_aux' scripts, they are portable but
58583         echoing them with `echo' is not.
58584         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58585
58586 2007-06-21  Karl Berry  <karl@gnu.org>
58587
58588         * config/srclist.txt: guess we can't handle the licenses via
58589         srclist at the moment.
58590
58591 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58592
58593         * MODULES.html.sh: Add include_next.
58594         * modules/include_next: New file.
58595
58596 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58597
58598         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58599         INCLUDE_NEXT.
58600         (gl_CHECK_NEXT_HEADERS): New macro.
58601         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58602         the obsolescent gl_ABSOLUTE_HEADER.
58603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58604         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58605         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58606         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58607         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58608         * m4/math_h.m4 (gl_MATH_H): Likewise.
58609         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58610         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58611         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58612         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58613         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58614         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58615         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58616         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58617         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58618         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58619         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58620         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58621         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58622         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58623         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58624         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58625         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58626         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58627         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58628         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58629         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58630         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58631         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58632         * lib/float_.h: Likewise.
58633         * lib/inttypes_.h: Likewise.
58634         * lib/math_.h: Likewise.
58635         * lib/search_.h: Likewise.
58636         * lib/signal_.h: Likewise.
58637         * lib/stdint_.h: Likewise.
58638         * lib/stdio_.h: Likewise.
58639         * lib/stdlib_.h: Likewise.
58640         * lib/string_.h: Likewise.
58641         * lib/sys_stat_.h: Likewise.
58642         * lib/sys_time_.h: Likewise.
58643         * lib/time_.h: Likewise.
58644         * lib/unistd_.h: Likewise.
58645         * lib/wchar_.h: Likewise.
58646         * lib/wctype_.h: Likewise.
58647         * lib/dirent_.h: Likewise.
58648         * lib/iconv_.h: Likewise.
58649         * lib/locale_.h: Likewise.
58650         * lib/netinet_in_.h: Likewise.
58651         * lib/sys_select_.h: Likewise.
58652         * lib/sys_socket_.h: Likewise.
58653         * lib/sysexits_.h: Likewise.
58654         * modules/fcntl (Depends-on): Depend on include_next, not
58655         absolute_header.
58656         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58657         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58658         * modules/fchdir: Likewise.
58659         * modules/float: Likewise.
58660         * modules/iconv_open: Likewise.
58661         * modules/inttypes: Likewise.
58662         * modules/locale: Likewise.
58663         * modules/math: Likewise.
58664         * modules/netinet_in: Likewise.
58665         * modules/search: Likewise.
58666         * modules/signal: Likewise.
58667         * modules/stdint: Likewise.
58668         * modules/stdio: Likewise.
58669         * modules/stdlib: Likewise.
58670         * modules/string: Likewise.
58671         * modules/sys_select: Likewise.
58672         * modules/sys_socket: Likewise.
58673         * modules/sys_stat: Likewise.
58674         * modules/sys_time: Likewise.
58675         * modules/sysexits: Likewise.
58676         * modules/time: Likewise.
58677         * modules/unistd: Likewise.
58678         * modules/wchar: Likewise.
58679         * modules/wctype: Likewise.
58680         * modules/sys_stat: Change maintainer to "all".
58681         * modules/unistd: Likewise.
58682
58683 2007-06-20  Karl Berry  <karl@gnu.org>
58684
58685         * config/srclist.txt: track www changes in license files.
58686
58687 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58688
58689         * build-aux/bootstrap: Remove stray dot.
58690         Make sure build_aux settings are honored when linking
58691         gnulib_extra_files.
58692
58693 2007-06-19  Eric Blake  <ebb9@byu.net>
58694
58695         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58696         Allow compilation on cygwin.
58697
58698 2007-06-19  Jim Meyering  <jim@meyering.net>
58699
58700         xreadlink-with-size: Remove module.  No longer used.
58701         Ex-callers now use xreadlink or mreadlink-with-size.
58702         * modules/xreadlink-with-size: Remove module.
58703         * lib/xreadlink-with-size.c: Remove file.
58704         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58705         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58706         just before the function definition *is* accurate.
58707
58708         Eliminate one way canonicalize_filename_mode could exit.
58709         * lib/canonicalize.c (canonicalize_filename_mode):
58710         Use mreadlink_with_size, not xreadlink_with_size.
58711
58712 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58713
58714         Detect porting problems to FreeBSD/arm, which has time_t wider than
58715         long int.  Original problem reported for GNU diff by Xin Li in
58716         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58717         * modules/getdate (Depends-on): Add intprops, verify.
58718         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58719         is an integer type no wider than long int.
58720
58721 2007-06-18  Jim Meyering  <jim@meyering.net>
58722
58723         New module: mreadlink-with-size.
58724         * MODULES.html.sh: Add mreadlink-with-size.
58725         * modules/mreadlink-with-size: New module
58726         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58727         not xreadlink-with-size.
58728         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58729
58730 2007-06-16  Bruno Haible  <bruno@clisp.org>
58731
58732         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58733         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58734         Reported by Gary V. Vaughan <gary@gnu.org>.
58735
58736 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58737
58738         Revamp lchown so that it lives in unistd.h where it belongs.
58739         * lib/lchown.h: Remove.
58740         * lib/dirchownmod.c: Don't include lib/lchown.h.
58741         * lib/fchownat.c: Likewise.
58742         * lib/openat.c: Likewise.
58743         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58744         does not follow symlinks.
58745         (EOPNOTSUPP): Define if not defined.
58746         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58747         is defined to 0.
58748         (lchown): New decl.
58749         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58750         Do not check for lchown decl.
58751         Set REPLACE_LCHOWN.
58752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58753         REPLACE_LCHOWN.
58754         * modules/chown: Make it clear it follows symlinks.
58755         * modules/lchown: Make it clear it doesn't follow symlinks.
58756         (Files): Remove lib/lchown.h
58757         (Depends-on): Add unistd.
58758         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58759         (Include): Include <unistd.h>, not "lchown.h".
58760         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58761         REPLACE_LCHOWN.
58762
58763 2007-06-15  Jim Meyering  <jim@meyering.net>
58764
58765         Change license (GPL to LGPL) of fsusage and dependents.
58766         * modules/fsusage (License): Change to LGPL.
58767         * modules/full-read (License): Likewise.
58768         * modules/full-write (License): Likewise.
58769         * modules/safe-read (License): Likewise.
58770         * modules/safe-write (License): Likewise.
58771
58772 2007-06-14  Ben Pfaff  <blp@gnu.org>
58773
58774         Missing part of allocsa -> malloca transition.
58775         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58776         gl_MALLOCA.
58777
58778 2007-06-12  Bruno Haible  <bruno@clisp.org>
58779
58780         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58781         to ia64, x86_64, i386.
58782         Reported by Eric Blake.
58783
58784 2007-06-12  Bruno Haible  <bruno@clisp.org>
58785
58786         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58787         cross-compiling to x86_64.
58788
58789 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58790
58791         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58792         glitch reported by Ralf Wildenhues in
58793         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58794
58795         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58796         Vin Shelton.
58797
58798 2007-06-11  Bruno Haible  <bruno@clisp.org>
58799
58800         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58801         replacement string.
58802         Reported by Eric Blake.
58803
58804 2007-06-10  Bruno Haible  <bruno@clisp.org>
58805
58806         Prepare vasnprintf code for use with Unicode strings.
58807         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58808         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58809         TYPE_U32_STRING.
58810         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58811         a_u32_string variants.
58812         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58813         * lib/printf-args.c: Don't include config.h and the specification
58814         header if PRINTF_FETCHARGS is already defined.
58815         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58816         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58817         TYPE_U16_STRING, TYPE_U32_STRING.
58818         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58819         u16_directive, u16_directives, u32_directive, u32_directives): New
58820         types.
58821         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58822         New declarations.
58823         * lib/printf-parse.c: Don't include config.h and the specification
58824         header if PRINTF_PARSE is already defined. Eliminate the set of
58825         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58826         them now. Include c-ctype.h.
58827         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58828         directive and CHAR_T_ONLY_ASCII.
58829         * lib/vasnprintf.c: Don't include config.h and the specification header
58830         if VASNPRINTF is already defined.
58831         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58832         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58833         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58834         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58835         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58836         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58837         code accordingly.
58838         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58839         pad_ourselves also in this case, with the 'c' and 's' directives, and
58840         with a different notion of "width".
58841         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58842
58843 2007-06-10  Bruno Haible  <bruno@clisp.org>
58844
58845         * modules/unistr/u32-mbsnlen: New file.
58846         * lib/unistr/u32-mbsnlen.c: New file.
58847
58848         * modules/unistr/u16-mbsnlen: New file.
58849         * lib/unistr/u16-mbsnlen.c: New file.
58850
58851         * modules/unistr/u8-mbsnlen: New file.
58852         * lib/unistr/u8-mbsnlen.c: New file.
58853
58854         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58855         declarations.
58856
58857 2007-06-10  Bruno Haible  <bruno@clisp.org>
58858
58859         * lib/string_.h (mbsnlen): New declaration.
58860         * lib/mbsnlen.c: New file.
58861         * m4/mbsnlen.m4: New file.
58862         * modules/mbsnlen: New file.
58863         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58864         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58865         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58866
58867 2007-06-10  Bruno Haible  <bruno@clisp.org>
58868
58869         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58870
58871 2007-06-10  Bruno Haible  <bruno@clisp.org>
58872
58873         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58874         * lib/mbuiter.h: Likewise.
58875
58876 2007-06-10  Bruno Haible  <bruno@clisp.org>
58877
58878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58879         declaration.
58880
58881 2007-06-10  Karl Berry  <karl@gnu.org>
58882
58883         * config/srclist.txt: remove gettext entries, Bruno prefers
58884         to update individually.
58885
58886 2007-06-10  Bruno Haible  <bruno@clisp.org>
58887
58888         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58889         'maxlen'. Ensure only length + width bytes are allocated, not
58890         length + 1 + width.
58891
58892 2007-06-09  Bruno Haible  <bruno@clisp.org>
58893
58894         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58895         (CHAR_T): Remove macro.
58896         (VASNPRINTF): Update.
58897
58898 2007-06-09  Bruno Haible  <bruno@clisp.org>
58899
58900         * MODULES.html.sh (Unicode string functions): Add the new modules.
58901
58902         * modules/uniconv/u32-conv-to-enc: New file.
58903         * lib/uniconv/u32-conv-to-enc.c: New file.
58904         * modules/uniconv/u32-conv-to-enc-tests: New file.
58905         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58906
58907         * modules/uniconv/u16-conv-to-enc: New file.
58908         * lib/uniconv/u16-conv-to-enc.c: New file.
58909         * lib/uniconv/u-conv-to-enc.h: New file.
58910         * modules/uniconv/u16-conv-to-enc-tests: New file.
58911         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58912
58913         * modules/uniconv/u8-conv-to-enc: New file.
58914         * lib/uniconv/u8-conv-to-enc.c: New file.
58915         * modules/uniconv/u8-conv-to-enc-tests: New file.
58916         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58917
58918         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58919         u32_conv_to_encoding): New declarations.
58920
58921 2007-06-09  Bruno Haible  <bruno@clisp.org>
58922
58923         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58924
58925 2007-06-09  Bruno Haible  <bruno@clisp.org>
58926
58927         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58928         * modules/malloca: Renamed from modules/allocsa, updated.
58929         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58930         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58931         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58932         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58933         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58934         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58935         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58936         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58937         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58938         * modules/c-strcasestr (Depends-on): Update.
58939         * lib/c-strcasestr.c: Update.
58940         * modules/c-strstr (Depends-on): Update.
58941         * lib/c-strstr.c: Update.
58942         * modules/canonicalize-lgpl (Depends-on): Update.
58943         * lib/canonicalize-lgpl.c: Update.
58944         * modules/clean-temp (Depends-on): Update.
58945         * lib/clean-temp.c: Update.
58946         * modules/csharpcomp (Depends-on): Update.
58947         * lib/csharpcomp.c: Update.
58948         * modules/csharpexec (Depends-on): Update.
58949         * lib/csharpexec.c: Update.
58950         * modules/javacomp (Depends-on): Update.
58951         * lib/javacomp.c: Update.
58952         * modules/javaexec (Depends-on): Update.
58953         * lib/javaexec.c: Update.
58954         * modules/mbscasestr (Depends-on): Update.
58955         * lib/mbscasestr.c: Update.
58956         * modules/mbsstr (Depends-on): Update.
58957         * lib/mbsstr.c: Update.
58958         * modules/setenv (Depends-on): Update.
58959         * lib/setenv.c: Update.
58960         * modules/strcasestr (Depends-on): Update.
58961         * lib/strcasestr.c: Update.
58962         * modules/striconveha (Depends-on): Update.
58963         * lib/striconveha.c: Update.
58964         * modules/relocatable-prog-wrapper (Files): Update.
58965         * lib/relocwrapper.c: Update.
58966         * build-aux/install-reloc: Update.
58967         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58968
58969 2007-06-08  Bruno Haible  <bruno@clisp.org>
58970
58971         Port to uClibc.
58972         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58973         * lib/fpurge.c (fpurge): Likewise.
58974         * lib/freading.c (freading): Likewise.
58975         * lib/fseeko.c (rpl_fseeko): Likewise.
58976         * lib/fseterr.c (fseterr): Likewise.
58977         * lib/fwriting.c (fwriting): Likewise.
58978         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58979
58980 2007-06-08  Bruno Haible  <bruno@clisp.org>
58981
58982         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58983         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58984         * modules/gettext (Files): Add m4/intlmacosx.m4.
58985
58986 2007-06-07  Bruno Haible  <bruno@clisp.org>
58987
58988         * modules/localename-tests: New file.
58989         * tests/test-localename.c: New file.
58990
58991         New module 'localename'.
58992         * lib/localename.h: New file.
58993         * lib/localename.c: New file, from GNU gettext.
58994         * m4/localename.m4: New file.
58995         * modules/localename: New file.
58996
58997 2007-06-07  Bruno Haible  <bruno@clisp.org>
58998
58999         Work around the lack of <wchar.h> on some builds of uClibc.
59000         * doc/headers/wchar.texi: Update.
59001         * lib/wchar_.h: Include <wchar.h> only if it exists.
59002         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59003         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59004         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59005         doesn't exist.
59006         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59007         * modules/mbfile (Depends-on): Add wchar.
59008         * modules/mbiter (Depends-on): Likewise.
59009         * modules/mbuiter (Depends-on): Likewise.
59010         Reported by Simon Josefsson.
59011
59012 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59013
59014         Work around problem reported by Steven M. Schweda in
59015         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59016         Tru64 5.1B with the Compaq compiler environment installed declares
59017         an 'isblank' function but does not define it in the C library.
59018         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59019         * lib/regex_internal.h (isblank): Likewise.
59020         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59021         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59022
59023 2007-06-05  Bruno Haible  <bruno@clisp.org>
59024
59025         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59026         ia64.
59027         * modules/printf-safe: New file.
59028         * modules/fprintf-posix (Depends-on): Add printf-safe.
59029         * modules/printf-posix (Depends-on): Likewise.
59030         * modules/snprintf-posix (Depends-on): Likewise.
59031         * modules/sprintf-posix (Depends-on): Likewise.
59032         * modules/vasnprintf-posix (Depends-on): Likewise.
59033         * modules/vasprintf-posix (Depends-on): Likewise.
59034         * modules/vfprintf-posix (Depends-on): Likewise.
59035         * modules/vprintf-posix (Depends-on): Likewise.
59036         * modules/vsnprintf-posix (Depends-on): Likewise.
59037         * modules/vsprintf-posix (Depends-on): Likewise.
59038         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59039         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59040         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59041         "no" on i386, x86_64, ia64.
59042         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59043         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59044         on i386, x86_64, ia64.
59045         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59046         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59047         on i386, x86_64, ia64.
59048         * tests/test-vasnprintf-posix.c: Include float.h.
59049         (LDBL80_WORDS): New macro.
59050         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59051         on i386, x86_64, ia64.
59052         * tests/test-vasprintf-posix.c: Include float.h.
59053         (LDBL80_WORDS): New macro.
59054         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59055         on i386, x86_64, ia64.
59056         * tests/test-snprintf-posix.c: Include float.h.
59057         * tests/test-sprintf-posix.c: Likewise.
59058         * tests/test-vsnprintf-posix.c: Likewise.
59059         * tests/test-vsprintf-posix.c: Likewise.
59060
59061 2007-06-05  Bruno Haible  <bruno@clisp.org>
59062
59063         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59064         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59065         non-IEEE numbers on i386, x86_64, ia64.
59066         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59067         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59068         * tests/test-isnanl.h: Include float.h.
59069         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59070
59071 2007-06-05  Bruno Haible  <bruno@clisp.org>
59072
59073         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59074         also the %a / %A. Handle the %a / %A code before this extra handling.
59075
59076 2007-06-05  Bruno Haible  <bruno@clisp.org>
59077
59078         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59079         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59080
59081 2007-06-05  Bruno Haible  <bruno@clisp.org>
59082
59083         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59084         typo in variable name.
59085
59086 2007-06-05  Eric Blake  <ebb9@byu.net>
59087
59088         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59089         Reported by Simon Josefsson.
59090
59091 2007-06-04  Bruno Haible  <bruno@clisp.org>
59092
59093         Avoid test failures on some PowerPC platforms.
59094         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59095         Define differently for PowerPC.
59096         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59097         Reported by Gary V. Vaughan <gary@gnu.org>.
59098
59099 2007-06-02  Bruno Haible  <bruno@clisp.org>
59100
59101         Fix test-stdint failure on FreeBSD/ia64.
59102         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59103         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59104         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59105         * doc/headers/stdint.texi: Update.
59106
59107 2007-06-01  Bruno Haible  <bruno@clisp.org>
59108
59109         * tests/test-binary-io.c (main): Pass a third argument to open().
59110         Reported by Gary V. Vaughan <gary@gnu.org>.
59111
59112 2007-06-01  Bruno Haible  <bruno@clisp.org>
59113
59114         * doc/functions/frexpl.texi: Update for mingw.
59115
59116 2007-06-01  Bruno Haible  <bruno@clisp.org>
59117
59118         * tests/test-lseek.c (main): Disable test of errno for invalid third
59119         argument.
59120         * doc/functions/lseek.texi: Update.
59121         Reported by Gary V. Vaughan <gary@gnu.org>.
59122
59123 2007-05-28  Bruno Haible  <bruno@clisp.org>
59124
59125         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59126
59127 2007-05-31  Eric Blake  <ebb9@byu.net>
59128
59129         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59130         cross compiling.
59131
59132 2007-05-30  Eric Blake  <ebb9@byu.net>
59133         and Bruno Haible  <bruno@clisp.org>
59134
59135         Work around mingw test failures exposed by m4-1.4.9b.
59136         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59137         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59138         moment.
59139
59140 2007-05-30  Bruno Haible  <bruno@clisp.org>
59141
59142         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59143         assuming that they are closed. Needed on HP-UX 11.
59144
59145 2007-05-29  Bruno Haible  <bruno@clisp.org>
59146
59147         Fix a problem with #include_next.
59148         * lib/dirent_.h: Split the double-inclusion guard.
59149         * lib/fcntl_.h: Likewise.
59150         * lib/float_.h: Likewise.
59151         * lib/iconv_.h: Likewise.
59152         * lib/inttypes_.h: Likewise.
59153         * lib/locale_.h: Likewise.
59154         * lib/math_.h: Likewise.
59155         * lib/netinet_in_.h: Likewise.
59156         * lib/search_.h: Likewise.
59157         * lib/signal_.h: Likewise.
59158         * lib/stdint_.h: Likewise.
59159         * lib/stdio_.h: Likewise.
59160         * lib/stdlib_.h: Likewise.
59161         * lib/string_.h: Likewise.
59162         * lib/sys_select_.h: Likewise.
59163         * lib/sys_socket_.h: Likewise.
59164         * lib/sys_stat_.h: Likewise.
59165         * lib/sys_time_.h: Likewise.
59166         * lib/sysexits_.h: Likewise.
59167         * lib/time_.h: Likewise.
59168         * lib/unistd_.h: Likewise.
59169         * lib/wchar_.h: Likewise.
59170         * lib/wctype_.h: Likewise.
59171
59172 2007-05-29  Bruno Haible  <bruno@clisp.org>
59173
59174         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59175         for the moment.
59176
59177 2007-05-29  Bruno Haible  <bruno@clisp.org>
59178
59179         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59180         invocation.
59181         Reported by Eric Blake.
59182
59183 2007-05-29  Bruno Haible  <bruno@clisp.org>
59184
59185         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59186         compiling case.
59187
59188 2007-05-29  Eric Blake  <ebb9@byu.net>
59189             Bruno Haible  <bruno@clisp.org>
59190
59191         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59192         cross compiles.
59193
59194 2007-05-28  Eric Blake  <ebb9@byu.net>
59195
59196         * modules/closein-tests (test_closein_LDADD): Support test on
59197         cygwin with libtool.
59198
59199 2007-05-28  Bruno Haible  <bruno@clisp.org>
59200
59201         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59202         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59203         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59204         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59205         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59206         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59207         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59208         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59209         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59210
59211 2007-05-28  Eric Blake  <ebb9@byu.net>
59212
59213         Unconditionally include <config.h> in unit tests.
59214         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59215         * tests/test-allocsa.c, tests/test-arcfour.c,
59216         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59217         tests/test-array_list.c, tests/test-array_oset.c,
59218         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59219         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59220         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59221         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59222         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59223         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59224         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59225         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59226         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59227         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59228         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59229         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59230         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59231         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59232         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59233         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59234         test-md5.c, test-memmem.c, test-printf-posix.c,
59235         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59236         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59237         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59238         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59239         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59240         test-vasnprintf-posix2.c, test-vasnprintf.c,
59241         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59242         test-vfprintf-posix.c, test-vprintf-posix.c,
59243         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59244         test-xvasprintf.c: Likewise.
59245
59246 2007-05-28  Bruno Haible  <bruno@clisp.org>
59247
59248         * gnulib-tool (func_import): Remember the --with-tests command-line
59249         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59250         Reported by Eric Blake.
59251
59252 2007-05-28  Bruno Haible  <bruno@clisp.org>
59253
59254         * modules/ftell-tests: New file.
59255         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59256         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59257
59258         * lib/ftell.c: New file.
59259         * modules/ftell: New file.
59260         * m4/ftell.m4: New file.
59261         * doc/functions/ftell.texi: Update.
59262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59263         REPLACE_FTELL.
59264         * lib/stdio_.h (rpl_ftell): New declaration.
59265         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59266         REPLACE_FTELL.
59267
59268 2007-05-28  Eric Blake  <ebb9@byu.net>
59269
59270         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59271
59272 2007-05-28  Bruno Haible  <bruno@clisp.org>
59273
59274         * modules/fseek-tests: New file.
59275         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59276         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59277
59278         * lib/fseek.c: New file.
59279         * modules/fseek: New file.
59280         * m4/fseek.m4: New file.
59281         * doc/functions/fseek.texi: Update.
59282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59283         REPLACE_FSEEK.
59284         * lib/stdio_.h (rpl_fseek): New declaration.
59285         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59286         REPLACE_FSEEK.
59287
59288 2007-05-28  Bruno Haible  <bruno@clisp.org>
59289
59290         * lib/stdio_.h (fflush): More comments.
59291
59292 2007-05-28  Bruno Haible  <bruno@clisp.org>
59293
59294         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59295         runtime test.
59296
59297 2007-05-28  Eric Blake  <ebb9@byu.net>
59298
59299         Improve lseek module.
59300         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59301         * lib/unistd_.h (lseek): Scale back link warning message.
59302         * tests/test-lseek.c: Beef up test.
59303         * tests/test-lseek.sh: Exercise more facets of lseek.
59304         Reported by Bruno Haible.
59305
59306 2007-05-28  Bruno Haible  <bruno@clisp.org>
59307
59308         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59309         to define.
59310
59311 2007-05-27  Bruno Haible  <bruno@clisp.org>
59312
59313         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59314
59315 2007-05-27  Bruno Haible  <bruno@clisp.org>
59316
59317         * modules/openmp: New file.
59318         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59319         Noah Misch.
59320
59321 2007-05-26  Bruno Haible  <bruno@clisp.org>
59322
59323         * modules/chdir-long (Depends-on): Add fchdir.
59324         * modules/chdir-safer (Depends-on): Likewise.
59325         * modules/fts (Depends-on): Likewise.
59326         * modules/fts-lgpl (Depends-on): Likewise.
59327         * modules/openat (Depends-on): Likewise.
59328         * modules/savewd (Depends-on): Likewise.
59329
59330 2007-05-24  Eric Blake  <ebb9@byu.net>
59331
59332         Fix lseek on mingw.
59333         * modules/lseek: New module.
59334         * m4/lseek.m4: New file.
59335         * lib/lseek.c: New file.
59336         * modules/lseek-tests: New file.
59337         * tests/test-lseek.c: New file.
59338         * tests/test-lseek.sh: New file.
59339         * MODULES.html.sh: Document lseek module.
59340         * modules/fflush (Depends-on): Add lseek, fseeko.
59341         * modules/fseeko (Depends-on): Likewise.
59342         * modules/ftello (Depends-on): Likewise.
59343         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59344         broken.
59345         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59346         broken.
59347         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59348         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59349         * lib/ftello.c (rpl_ftello): Likewise.
59350         * tests/test-fseeko.c (main): Test this.
59351         * tests/test-fseeko.sh: Likewise.
59352         * tests/test-ftello.c (main): Likewise.
59353         * tests/test-ftello.sh: Likewise.
59354         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59355         implies replacing fseek.
59356         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59357         HAVE_FTELLO.
59358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59359         * modules/unistd (Makefile.am): Likewise.
59360         * lib/unistd_.h (lseek): Declare a replacement.
59361         * doc/functions/lseek.texi (lseek): Document this fix.
59362         * doc/functions/fseek.texi (fseek): Likewise.
59363         * doc/functions/ftell.texi (ftell): Likewise.
59364
59365 2007-05-24  Bruno Haible  <bruno@clisp.org>
59366
59367         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59368         in the printed representation of a NaN.
59369         * tests/test-vasprintf-posix.c (test_function): Likewise.
59370         * tests/test-snprintf-posix.h (test_function): Likewise.
59371         * tests/test-sprintf-posix.h (test_function): Likewise.
59372         Reported by Eric Blake.
59373
59374 2007-05-23  Eric Blake  <ebb9@byu.net>
59375
59376         Fix fseeko/ftello on cygwin 1.5.24.
59377         * doc/functions/fseeko.texi (fseeko): Document the fix.
59378         * doc/functions/ftello.texi (ftello): Document the fix.
59379         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59380         * doc/functions/stdout.text (stdout): New file.
59381         * doc/functions/stderr.text (stderr): New file.
59382         * doc/gnulib.texi (Function Substitutes): Use new files.
59383         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59384         prior to 1.7.0.
59385         * tests/test-ftello.c (main): Likewise for ftello.
59386         * tests/test-fseeko.sh: New file.
59387         * tests/test-ftello.sh: New file.
59388         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59389         with seekable stdin.
59390         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59391         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59392         (gl_REPLACE_FSEEKO): New macro.
59393         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59394         * modules/fseeko (Files): Distribute fseeko.c.
59395         * modules/ftello (Files): Distribute ftello.c.
59396         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59397         mode.
59398         * lib/ftello.c (rpl_ftello): New file.
59399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59400         fseeko, ftello.
59401         (gl_STDIN_LARGE_OFFSET): New macro.
59402         * modules/stdio (Makefile.am): Perform the replacement.
59403         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59404
59405 2007-05-23  Bruno Haible  <bruno@clisp.org>
59406
59407         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59408         GNULIB_POSIXCHECK is defined.
59409
59410 2007-05-21  Bruno Haible  <bruno@clisp.org>
59411
59412         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59413         Check also the output for NaN arguments. When cross-compiling, guess
59414         no on IRIX.
59415         * lib/vasnprintf.c: Update comments.
59416         * tests/test-vasnprintf-posix.c (strisnan): New function.
59417         (test_function): Use it.
59418         * tests/test-vasprintf-posix.c (strisnan): New function.
59419         (test_function): Use it.
59420         * tests/test-snprintf-posix.h (strisnan): New function.
59421         (test_function): Use it.
59422         * tests/test-sprintf-posix.h (strisnan): New function.
59423         (test_function): Use it.
59424         Reported by Eric Blake.
59425
59426 2007-05-20  Bruno Haible  <bruno@clisp.org>
59427
59428         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59429         numbers that fails on BeOS.
59430         * doc/functions/frexpl.texi: Update.
59431
59432 2007-05-20  Jim Meyering  <jim@meyering.net>
59433
59434         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59435         forced upon us by glibc-2.6.
59436
59437 2007-05-20  Bruno Haible  <bruno@clisp.org>
59438
59439         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59440         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59441         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59442         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59443         NEED_PRINTF_INFINITE.
59444         (is_infinitel): New function.
59445         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59446         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59447         gl_PREREQ_VASNPRINTF_INFINITE.
59448         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59449         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59450         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59451         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59452         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59453         gl_PREREQ_VASNPRINTF_INFINITE.
59454         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59455         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59456         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59457         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59458         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59459         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59460         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59461         * doc/functions/fprintf.texi: Update.
59462         * doc/functions/printf.texi: Update.
59463         * doc/functions/snprintf.texi: Update.
59464         * doc/functions/sprintf.texi: Update.
59465         * doc/functions/vfprintf.texi: Update.
59466         * doc/functions/vprintf.texi: Update.
59467         * doc/functions/vsnprintf.texi: Update.
59468         * doc/functions/vsprintf.texi: Update.
59469
59470 2007-05-20  Bruno Haible  <bruno@clisp.org>
59471
59472         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59473         was not found in libc.
59474         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59475
59476 2007-05-20  Bruno Haible  <bruno@clisp.org>
59477
59478         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59479         printed as "-nan" instead of "nan".
59480         * tests/test-vasprintf-posix.c (test_function): Likewise.
59481         * tests/test-snprintf-posix.h (test_function): Likewise.
59482         * tests/test-sprintf-posix.h (test_function): Likewise.
59483         Needed for HP-UX 11.
59484
59485 2007-05-20  Jim Meyering  <jim@meyering.net>
59486
59487         Fix buggy test for the fchownat-deref bug.
59488         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59489         symlink required for the run-test.  Without it, this test would
59490         always declare that fchownat doesn't work, and client code would
59491         unnecessarily use the replacement function with fixed libc.
59492         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59493         Reported by Greg Schafer.
59494
59495 2007-05-19  Bruno Haible  <bruno@clisp.org>
59496
59497         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59498         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59499         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59500         Needed for IRIX 6.5 and Solaris 2.5.1.
59501
59502 2007-05-19  Bruno Haible  <bruno@clisp.org>
59503
59504         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59505         (test_function): Skip tests involving -0.0 on platforms where
59506         -0.0 = 0.0.
59507         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59508         (test_function): Skip tests involving -0.0 on platforms where
59509         -0.0 = 0.0.
59510         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59511         (test_function): Skip tests involving -0.0 on platforms where
59512         -0.0 = 0.0.
59513         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59514         (test_function): Skip tests involving -0.0 on platforms where
59515         -0.0 = 0.0.
59516         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59517         tests.
59518         * tests/test-printf-posix.h (test_function): Likewise.
59519         * tests/test-printf-posix.output: Remove all -0.0 related results.
59520         Needed for IRIX 6.5.
59521
59522 2007-05-19  Bruno Haible  <bruno@clisp.org>
59523
59524         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59525         printed as "nan0x7fffffff" instead of "nan".
59526         * tests/test-vasprintf-posix.c (test_function): Likewise.
59527         * tests/test-snprintf-posix.h (test_function): Likewise.
59528         * tests/test-sprintf-posix.h (test_function): Likewise.
59529         * tests/test-fprintf-posix.h (NaN): Remove macro.
59530         (test_function): Remove all NaN related tests.
59531         * tests/test-printf-posix.h (NaN): Remove macro.
59532         (test_function): Remove all NaN related tests.
59533         * tests/test-printf-posix.output: Remove all NaN related results.
59534         Needed for IRIX 6.5.
59535
59536 2007-05-19  Bruno Haible  <bruno@clisp.org>
59537
59538         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59539         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59540
59541 2007-05-19  Bruno Haible  <bruno@clisp.org>
59542
59543         * lib/float_.h: New file.
59544         * m4/float_h.m4: New file.
59545         * modules/float: New file.
59546         * modules/isnanl (Dependencies): Add float.
59547         * modules/isnanl-nolibm (Dependencies): Likewise.
59548         * modules/mathl (Dependencies): Likewise.
59549         * modules/printf-frexpl (Dependencies): Likewise.
59550         * modules/signbit (Dependencies): Likewise.
59551         * modules/vasnprintf (Dependencies): Likewise.
59552         * doc/headers/float.texi: Update.
59553
59554 2007-05-19  Jim Meyering  <jim@meyering.net>
59555
59556         * lib/utimens.c (gl_futimens): Rename from futimens,
59557         now that glibc-2.6 declares futimens.
59558         * lib/utimens.h: Likewise.
59559
59560 2007-05-19  Bruno Haible  <bruno@clisp.org>
59561
59562         Avoid test failures on mingw.
59563         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59564         * tests/test-printf-posix.sh: Likewise.
59565         * tests/test-vfprintf-posix.sh: Likewise.
59566         * tests/test-vprintf-posix.sh: Likewise.
59567
59568 2007-05-19  Bruno Haible  <bruno@clisp.org>
59569
59570         Fix *printf result for NaN, Inf, -0.0 on mingw.
59571         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59572         * lib/vasnprintf.c: Include math.h and isnan.h.
59573         (is_infinite_or_zero): New function.
59574         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59575         values in the %f, %F, %e, %E, %g, %G directives.
59576         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59577         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59578         gl_PRINTF_INFINITE and test its result. Invoke
59579         gl_PREREQ_VASNPRINTF_INFINITE.
59580         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59581         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59582         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59584         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59586         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59587         * doc/functions/fprintf.texi: Update.
59588         * doc/functions/printf.texi: Update.
59589         * doc/functions/snprintf.texi: Update.
59590         * doc/functions/sprintf.texi: Update.
59591         * doc/functions/vfprintf.texi: Update.
59592         * doc/functions/vprintf.texi: Update.
59593         * doc/functions/vsnprintf.texi: Update.
59594         * doc/functions/vsprintf.texi: Update.
59595
59596 2007-05-19  Bruno Haible  <bruno@clisp.org>
59597
59598         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59599         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59600         Instead of multiplying with 10^k, set extra_zeroes to k.
59601         (scale10_round_long_double): Remove function.
59602
59603 2007-05-18  Bruno Haible  <bruno@clisp.org>
59604
59605         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59606         introduced on 2007-05-06.
59607
59608 2007-05-18  Bruno Haible  <bruno@clisp.org>
59609
59610         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59611         %g directives.
59612         * tests/test-vasprintf-posix.c (test_function): Likewise.
59613         * tests/test-snprintf-posix.h (test_function): Likewise.
59614         * tests/test-sprintf-posix.h (test_function): Likewise.
59615
59616 2007-05-18  Bruno Haible  <bruno@clisp.org>
59617
59618         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59619         (strmatch): New function.
59620         (test_function): Test the %f directive on numbers of various exponents.
59621         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59622         (strmatch): New function.
59623         (test_function): Test the %f directive on numbers of various exponents.
59624         * tests/test-snprintf-posix.h (strmatch): New function.
59625         (test_function): Test the %f directive on numbers of various exponents.
59626         * tests/test-sprintf-posix.h (strmatch): New function.
59627         (test_function): Test the %f directive on numbers of various exponents.
59628         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59629         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59630         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59631         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59632
59633 2007-05-18  Bruno Haible  <bruno@clisp.org>
59634
59635         Add support for 'long double' number output.
59636         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59637         * lib/vasnprintf.c: Include math.h and float+.h.
59638         (mp_limb_t): New type.
59639         (GMP_LIMB_BITS): New macro.
59640         (mp_twolimb_t): New type.
59641         (GMP_TWOLIMB_BITS): New macro.
59642         (mpn_t): New type.
59643         (multiply, divide, convert_to_decimal, decode_long_double,
59644         scale10_round_long_double, scale10_round_decimal_long_double,
59645         floorlog10l): New functions.
59646         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59647         for the %f, %F, %e, %E, %g, %G directives.
59648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59649         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59650         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59651         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59652         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59653         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59654         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59655         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59656         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59657         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59658         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59659         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59660         * modules/snprintf-posix (Depends-on): Likewise.
59661         * modules/sprintf-posix (Depends-on): Likewise.
59662         * modules/vasnprintf-posix (Depends-on): Likewise.
59663         * modules/vasprintf-posix (Depends-on): Likewise.
59664         * modules/vfprintf-posix (Depends-on): Likewise.
59665         * modules/vsnprintf-posix (Depends-on): Likewise.
59666         * modules/vsprintf-posix (Depends-on): Likewise.
59667         * modules/vasnprintf (Files): Add lib/float+.h.
59668         * doc/functions/fprintf.texi: Update.
59669         * doc/functions/printf.texi: Update.
59670         * doc/functions/snprintf.texi: Update.
59671         * doc/functions/sprintf.texi: Update.
59672         * doc/functions/vfprintf.texi: Update.
59673         * doc/functions/vprintf.texi: Update.
59674         * doc/functions/vsnprintf.texi: Update.
59675         * doc/functions/vsprintf.texi: Update.
59676
59677 2007-05-18  Bruno Haible  <bruno@clisp.org>
59678
59679         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59680
59681 2007-05-18  Bruno Haible  <bruno@clisp.org>
59682
59683         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59684         for printing 64-bit integers. Needed for mingw.
59685
59686 2007-05-18  Bruno Haible  <bruno@clisp.org>
59687
59688         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59689         gl_FUNC_FREXPL_WORKS.
59690         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59691
59692 2007-05-18  Bruno Haible  <bruno@clisp.org>
59693
59694         * modules/frexpl-nolibm-tests: New file.
59695
59696         * modules/frexpl-nolibm: New file.
59697         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59698
59699 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59700
59701         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59702         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59703         GCC 4.2, which otherwise issues a lot of warnings.
59704         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59705         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59706         Likewise.
59707         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59708         * modules/iconv_open (iconv.h): Likewise.
59709         * modules/locale (locale.h): Likewise.
59710         * modules/netinet_in (netinet/in.h): Likewise.
59711         * modules/sys_select (sys_select.h): Likewise.
59712         * modules/sys_socket (sys/socket.h): Likewise.
59713         * modules/sys_stat (sys/stat.h): Likewise.
59714         * modules/sysexits (sysexits.h): Likewise.
59715         * modules/unistd (unistd.h): Likewise.
59716
59717 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59718
59719         * modules/closein-tests (Makefile.am): Distribute
59720         `test-closein.sh'.
59721
59722 2007-05-17  Bruno Haible  <bruno@clisp.org>
59723
59724         * tests/test-printf-posix.output: Renamed from
59725         tests/test-fprintf-posix.out.
59726         * modules/fprintf-posix-tests: Update.
59727         * modules/printf-posix-tests: Update.
59728         * modules/vfprintf-posix-tests: Update.
59729         * modules/vprintf-posix-tests: Update.
59730         * tests/test-fprintf-posix.sh: Update.
59731         * tests/test-printf-posix.sh: Update.
59732         * tests/test-vfprintf-posix.sh: Update.
59733         * tests/test-vprintf-posix.sh: Update.
59734         Reported by Ralf Wildenhues.
59735
59736 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59737
59738         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59739         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59740         GCC 4.2, which otherwise issues a lot of warnings.
59741         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59742         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59743         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59744         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59745         it should no longer be needed.
59746         * lib/string_.h: Likewise.
59747         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59748         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59749         * modules/inttypes (inttypes.h): Likewise.
59750         * modules/math (math.h): Likewise.
59751         * modules/search (search.h): Likewise.
59752         * modules/signal (signal.h): Likewise.
59753         * modules/stdint (stdint.h): Likewise.
59754         * modules/stdio (stdio.h): Likewise.
59755         * modules/stdlib (stdlib.h): Likewise.
59756         * modules/string (string.h): Likewise.
59757         * modules/sys_time (sys/time.h): Likewise.
59758         * modules/time (time.h): Likewise.
59759         * modules/wchar (wchar.h): Likewise.
59760         * modules/wctype (wtype.h): Likewise.
59761
59762 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59763
59764         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59765
59766 2007-05-13  Bruno Haible  <bruno@clisp.org>
59767
59768         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59769         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59770         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59771         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59772         (gl_PREREQ_STRTOK_R): Don't require it here.
59773
59774 2007-05-13  Bruno Haible  <bruno@clisp.org>
59775
59776         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59777         when used in C++ mode.
59778
59779 2007-05-12  Bruno Haible  <bruno@clisp.org>
59780
59781         * lib/linebuffer.h: Tweak doc.
59782         * lib/linebuffer.c: Likewise.
59783
59784 2007-05-12  James Youngman  <jay@gnu.org>
59785
59786         * lib/linebuffer.c (readlinebuffer_delim): New function,
59787         like readlinebuffer, but use a caller-specified delimiter.
59788         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59789         as the delimiter.
59790         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59791
59792 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59793
59794         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59795         * modules/openat (Files): Remove openat-die.c.
59796         (Depends-on): Add openat-die.
59797         * modules/openat-die: New module.
59798
59799 2007-05-06  Bruno Haible  <bruno@clisp.org>
59800
59801         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59802         Update with info about Cygwin.
59803         * doc/functions/fprintf.texi: Update.
59804         * doc/functions/printf.texi: Update.
59805         * doc/functions/snprintf.texi: Update.
59806         * doc/functions/sprintf.texi: Update.
59807         * doc/functions/vfprintf.texi: Update.
59808         * doc/functions/vprintf.texi: Update.
59809         * doc/functions/vsnprintf.texi: Update.
59810         * doc/functions/vsprintf.texi: Update.
59811         Reported by Eric Blake.
59812
59813 2007-05-06  Bruno Haible  <bruno@clisp.org>
59814
59815         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59816         padding ourselves for the floating-point directives.
59817         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59819         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59820         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59821         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59822         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59823         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59824         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59825         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59826         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59827         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59828         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59829         * tests/test-snprintf-posix.h (test_function): Also check the width
59830         and some flags in the %f directive.
59831         * tests/test-sprintf-posix.h (test_function): Likewise.
59832         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59833         * tests/test-vasprintf-posix.c (test_function): Likewise.
59834         * doc/functions/fprintf.texi: Update.
59835         * doc/functions/printf.texi: Update.
59836         * doc/functions/snprintf.texi: Update.
59837         * doc/functions/sprintf.texi: Update.
59838         * doc/functions/vfprintf.texi: Update.
59839         * doc/functions/vprintf.texi: Update.
59840         * doc/functions/vsnprintf.texi: Update.
59841         * doc/functions/vsprintf.texi: Update.
59842
59843 2007-05-06  Bruno Haible  <bruno@clisp.org>
59844
59845         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59846         pass the ' flag character to sprintf or snprintf.
59847         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59848         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59849         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59850         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59851         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59852         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59853         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59854         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59855         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59856         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59857         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59858         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59859         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59860         flag.
59861         * tests/test-sprintf-posix.h (test_function): Likewise.
59862         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59863         * tests/test-vasprintf-posix.c (test_function): Likewise.
59864         * doc/functions/fprintf.texi: Update.
59865         * doc/functions/printf.texi: Update.
59866         * doc/functions/snprintf.texi: Update.
59867         * doc/functions/sprintf.texi: Update.
59868         * doc/functions/vfprintf.texi: Update.
59869         * doc/functions/vprintf.texi: Update.
59870         * doc/functions/vsnprintf.texi: Update.
59871         * doc/functions/vsprintf.texi: Update.
59872
59873 2007-05-01  Bruno Haible  <bruno@clisp.org>
59874
59875         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59876
59877 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59878
59879         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59880         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59881
59882 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59883
59884         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59885         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59886         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59887
59888 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59889
59890         * lib/argp-help.c (struct hol_entry): New member `ord'.
59891         (HOL_ENTRY_PTRCMP): Use ord for comparison
59892         (hol_sort): Initialize ord.
59893
59894 2007-05-01  Bruno Haible  <bruno@clisp.org>
59895
59896         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59897         Reported by Eric Blake.
59898         * doc/gnulib.texi (Function Substitutes): Update.
59899
59900 2007-05-01  Bruno Haible  <bruno@clisp.org>
59901
59902         * doc/functions.texi: Remove file, now redundant through
59903         doc/functions/*.texi.
59904
59905 2007-05-01  Bruno Haible  <bruno@clisp.org>
59906
59907         * modules/argp (Depends-on): Add sleep.
59908
59909 2007-05-01  Bruno Haible  <bruno@clisp.org>
59910
59911         * modules/sleep-tests: New file.
59912         * tests/test-sleep.c: New file.
59913
59914         * modules/sleep: New file.
59915         * lib/sleep.c: New file.
59916         * m4/sleep.m4: New file.
59917         * lib/unistd_.h (sleep): New declaration.
59918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59919         HAVE_SLEEP.
59920         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59921         * doc/functions/sleep.texi: Document the sleep module.
59922
59923 2007-05-01  Bruno Haible  <bruno@clisp.org>
59924
59925         * lib/sigprocmask.h: Remove file.
59926         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59927         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59928         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59929         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59930         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59931         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59932         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59933         HAVE_SIGSET_T as a shell variable.
59934         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59935         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59936         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59937         (Depends-on): Add signal. Remove verify.
59938         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59939         (Include): Mention <signal.h> instead of sigprocmask.h.
59940         * NEWS: Mention the change.
59941         * lib/fatal-signal.c: Don't include sigprocmask.h.
59942
59943 2007-05-01  Bruno Haible  <bruno@clisp.org>
59944
59945         * modules/signal: New file.
59946         * lib/signal_.h: New file.
59947         * m4/signal_h.m4: New file.
59948
59949 2007-05-01  Bruno Haible  <bruno@clisp.org>
59950
59951         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59952         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59953         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59954         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59955
59956 2007-05-01  Bruno Haible  <bruno@clisp.org>
59957
59958         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59959         configure time.
59960         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59961         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59962         * modules/sys_stat (Makefile.am): Substitute their values into
59963         sys/stat.h.
59964
59965 2007-05-01  Bruno Haible  <bruno@clisp.org>
59966
59967         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59968         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59969         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59970
59971 2007-05-01  Bruno Haible  <bruno@clisp.org>
59972
59973         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59974         'assert' module here.
59975
59976 2007-05-01  Bruno Haible  <bruno@clisp.org>
59977
59978         * doc/functions/*.texi: New files.
59979         * doc/functions/google-ranking.txt: New file.
59980         * doc/gnulib.texi (Function Substitutes): New chapter.
59981         (ctime, inet_ntoa): Remove sections.
59982         * doc/ctime.texi: Remove file.
59983         * doc/inet_ntoa.texi: Remove file.
59984         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59985         dependencies.
59986         (%.info): New rule, specifying a --reference-limit.
59987
59988 2007-05-01  Bruno Haible  <bruno@clisp.org>
59989
59990         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59991
59992 2007-05-01  Bruno Haible  <bruno@clisp.org>
59993
59994         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59995         the portability of 'mkdir' to mingw systems.
59996
59997 2007-05-01  Bruno Haible  <bruno@clisp.org>
59998
59999         * doc/headers/google-ranking.txt: New file.
60000
60001 2007-04-30  Eric Blake  <ebb9@byu.net>
60002
60003         Prefer fseeko to fseek.
60004         * modules/getpass (Depends-on): Add fseeko.
60005         * lib/getpass.c (getpass): Use fseeko, not fseek.
60006
60007 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60008
60009         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60010         assumes the sorting is stable, while most qsort implementations
60011         are not.  Use argument addresses to ensure they never compare as
60012         equal.
60013
60014         * tests/test-argp-2.sh (usage-indent test): Fix output
60015         (func_compare): Restore diff options
60016         * tests/test-argp.c: Restore #include "progname.h"
60017
60018 2007-04-29  Bruno Haible  <bruno@clisp.org>
60019
60020         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60021         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60022         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60023         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60024         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60025         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60026         (TESTS, check_PROGRAMS): Add test-snprintf.
60027         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60028         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60029         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60030         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60031         assertions that fail on HP-UX, OSF/1, or IRIX.
60032         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60033
60034 2007-04-29  Bruno Haible  <bruno@clisp.org>
60035
60036         * MODULES.html.sh (posix_functions): Remove 'contents'.
60037
60038 2007-04-29  Karl Berry  <karl@gnu.org>
60039
60040         * config/srclist.txt (gendocs_template_min): new entry.
60041
60042 2007-04-29  Bruno Haible  <bruno@clisp.org>
60043
60044         Work around fpurge bug on BSD systems.
60045         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60046         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60047         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60048         fpurge to rpl_fpurge if the system already has this function.
60049         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60050         the case where the system already has this function. Correct invariants
60051         on BSD systems.
60052         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60053         BSD systems.
60054
60055 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60056
60057         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60058         proposed by Sven Verdoolaege.
60059
60060         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60061         options.
60062         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60063         (usage and help tests): Update
60064
60065 2007-04-29  Bruno Haible  <bruno@clisp.org>
60066
60067         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60068         Print more information in case of failure. Disable a test on BeOS.
60069
60070 2007-04-29  Bruno Haible  <bruno@clisp.org>
60071
60072         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60073         This helps debugging on systems on which no gdb is available.
60074
60075 2007-04-29  Bruno Haible  <bruno@clisp.org>
60076
60077         * lib/freading.h: Improve comments.
60078         * lib/fwriting.h: Likewise.
60079         * tests/test-freading.c (main): Don't check freading immediately after
60080         repositioning. Needed for glibc.
60081
60082 2007-04-29  Bruno Haible  <bruno@clisp.org>
60083
60084         * lib/freading.c (freading): Trivial simplification.
60085
60086 2007-04-28  Bruno Haible  <bruno@clisp.org>
60087
60088         * tests/test-fwriting.c (main): Also test the interaction between
60089         fflush and fwriting.
60090         * modules/fwriting-tests (Depends-on): Add fflush.
60091
60092         * tests/test-freading.c (main): Also test the interaction between
60093         fflush and freading.
60094         * modules/freading-tests (Depends-on): Add fflush.
60095
60096 2007-04-28  Bruno Haible  <bruno@clisp.org>
60097
60098         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60099         fseeko and ftello.
60100         Suggested by Eric Blake.
60101
60102 2007-04-28  Jim Meyering  <jim@meyering.net>
60103
60104         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60105         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60106         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60107
60108 2007-04-27  Eric Blake  <ebb9@byu.net>
60109
60110         * doc/headers/assert.texi (assert.h): Document assert module use.
60111
60112 2007-04-27  Bruno Haible  <bruno@clisp.org>
60113
60114         * doc/headers/*.texi: New files.
60115         * doc/gnulib.texi (Header File Substitutes): New chapter.
60116         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60117         dependencies.
60118         (standards.info ,standards.html, standards.dvi): Update dependencies.
60119         (mostlyclean, clean): New targets.
60120
60121 2007-04-27  Bruno Haible  <bruno@clisp.org>
60122
60123         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60124         * modules/sysexits (Files, Makefile.am): Update.
60125
60126         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60127         * modules/sys_socket (Files, Makefile.am): Update.
60128
60129         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60130         * modules/sys_stat (Files, Makefile.am): Update.
60131
60132 2007-04-27  Eric Blake  <ebb9@byu.net>
60133
60134         * lib/freading.h: Improve comments.
60135         * lib/fwriting.h: Likewise.
60136         * lib/fflush.c: Likewise.
60137
60138         Fix closein for mingw.
60139         * modules/closein-tests: Add tests for closein.
60140         * tests/test-closein.c: New file.
60141         * tests/test-closein.sh: Likewise.
60142         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60143         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60144
60145 2007-04-27  Bruno Haible  <bruno@clisp.org>
60146
60147         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60148         version is < 6.
60149         * lib/math_.h [__DECC]: Likewise.
60150         * lib/stdio_.h [__DECC]: Likewise.
60151         * lib/stdlib_.h [__DECC]: Likewise.
60152         * lib/string_.h [__DECC]: Likewise.
60153         * lib/time_.h [__DECC]: Likewise.
60154         * lib/wchar_.h [__DECC]: Likewise.
60155         * lib/wctype_.h [__DECC]: Likewise.
60156
60157 2007-04-27  Bruno Haible  <bruno@clisp.org>
60158
60159         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60160
60161 2007-04-27  Bruno Haible  <bruno@clisp.org>
60162
60163         * lib/fflush.c: Add comments.
60164         * modules/fpurge-tests (Depends-on): Add fflush.
60165         * modules/freadable-tests (Depends-on): Likewise.
60166         * modules/fwritable-tests (Depends-on): Likewise.
60167
60168 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60169
60170         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60171         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60172         Report by Bruno Haible <bruno@clisp.org>.
60173
60174 2007-04-26  Eric Blake  <ebb9@byu.net>
60175
60176         Fix fflush on mingw.
60177         * modules/fflush (Depends-on): Add freading.
60178         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60179         but unread data.
60180
60181 2007-04-26  Eric Blake  <ebb9@byu.net>
60182         and Bruno Haible  <bruno@clisp.org>
60183
60184         Implement freading and fwriting.
60185         * lib/freading.c: New file.
60186         * lib/freading.h: Likewise.
60187         * m4/freading.m4: Likewise.
60188         * modules/freading: Likewise.
60189         * modules/freading-tests: Likewise.
60190         * tests/test-freading.c: Likewise.
60191         * lib/fwriting.c: New file.
60192         * lib/fwriting.h: Likewise.
60193         * m4/fwriting.m4: Likewise.
60194         * modules/fwriting: Likewise.
60195         * modules/fwriting-tests: Likewise.
60196         * tests/test-fwriting.c: Likewise.
60197         * MODULES.html.sh (File stream based Input/Output): Mention them.
60198
60199 2007-04-26  Bruno Haible  <bruno@clisp.org>
60200
60201         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60202         'long' when we assume it.
60203         Suggested by Eric Blake.
60204
60205 2007-04-26  Bruno Haible  <bruno@clisp.org>
60206
60207         Ensure fseeko, ftello are declared on glibc systems.
60208         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60209         * modules/fseeko (configure.ac-early): Likewise.
60210         * modules/ftello (configure.ac-early): Likewise.
60211         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60212         AC_FUNC_FSEEKO for this.
60213         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60214         (gl_CHECK_FSEEKO): Remove macro.
60215
60216 2007-04-26  Bruno Haible  <bruno@clisp.org>
60217
60218         * tests/test-fflush.c (main): Also check the ftell result after
60219         fflush and fseek/fseeko.
60220         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60221         file descriptor position cache in the stream.
60222         * lib/fseeko.c (rpl_fseeko): Likewise.
60223
60224 2007-04-26  Bruno Haible  <bruno@clisp.org>
60225
60226         * modules/fflush-tests (Depends-on): Add fseeko.
60227
60228 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60229             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60230
60231         * lib/argz_.h: ensure error_t definition is obtained in same
60232         mechanism system argz.h would have.
60233         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60234         argz facilities are known bad.  Err on the side of caution if
60235         cross-compiling.
60236
60237 2007-04-25  Eric Blake  <ebb9@byu.net>
60238
60239         * lib/fpurge.c (includes): Use stdlib.h for free.
60240         * tests/test-fflush.c (main): Also test fflush-fseeko.
60241
60242 2007-04-25  Bruno Haible  <bruno@clisp.org>
60243
60244         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60245         * lib/fseeko.c: New file.
60246         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60247         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60248         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60249         gl_FUNC_FSEEKO.
60250         (gl_FUNC_FSEEKO): Invoke it.
60251         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60252         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60253         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60254
60255 2007-04-25  Bruno Haible  <bruno@clisp.org>
60256
60257         * modules/fflush (Depends-on): Add ftello.
60258
60259 2007-04-25  Bruno Haible  <bruno@clisp.org>
60260
60261         * modules/ftello-tests: New file.
60262         * tests/test-ftello.c: New file.
60263
60264         * modules/ftello: New file.
60265         * m4/ftello.m4: New file.
60266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60267         HAVE_FTELLO.
60268         * lib/stdio_.h (ftello): New declaration.
60269         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60270         HAVE_FTELLO.
60271
60272 2007-04-25  Bruno Haible  <bruno@clisp.org>
60273
60274         * modules/fseeko-tests: New file.
60275         * tests/test-fseeko.c: New file.
60276
60277         * modules/fseeko: New file.
60278         * m4/fseeko.m4: New file.
60279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60280         HAVE_FSEEKO.
60281         * lib/stdio_.h (fseeko): New declaration.
60282         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60283         HAVE_FSEEKO.
60284
60285 2007-04-25  Bruno Haible  <bruno@clisp.org>
60286
60287         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60288
60289 2007-04-25  Bruno Haible  <bruno@clisp.org>
60290
60291         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60292         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60293         * tests/test-unistd.c: Likewise.
60294         * tests/test-fcntl.c: Likewise.
60295
60296 2007-04-23  Eric Blake  <ebb9@byu.net>
60297
60298         * lib/fflush.c: Fix missing include.
60299         Reported by Bruno Haible.
60300
60301 2007-04-23  Bruno Haible  <bruno@clisp.org>
60302
60303         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60304         Reported by Eric Blake.
60305
60306 2007-04-23  Bruno Haible  <bruno@clisp.org>
60307
60308         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60309
60310 2007-04-23  Bruno Haible  <bruno@clisp.org>
60311
60312         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60313
60314 2007-04-23  Bruno Haible  <bruno@clisp.org>
60315
60316         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60317         Needed on HP-UX 11.
60318
60319 2007-04-16  Eric Blake  <ebb9@byu.net>
60320
60321         Make fflush rely on fpurge.
60322         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60323         open coding all variants.
60324         * modules/fflush (Depends-on): Add fpurge and unistd.
60325         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60326         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60327
60328         Fix --with-tests compilation on cygwin.
60329         * modules/argmatch-tests (Makefile.am): List gnulib library first
60330         in LDADD.
60331         * modules/argp-tests (Makefile.am): Likewise.
60332         * modules/array-list-tests (Makefile.am): Likewise.
60333         * modules/array-oset-tests (Makefile.am): Likewise.
60334         * modules/avltree-list-tests (Makefile.am): Likewise.
60335         * modules/avltree-oset-tests (Makefile.am): Likewise.
60336         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60337         * modules/carray-list-tests (Makefile.am): Likewise.
60338         * modules/dirname-tests (Makefile.am): Likewise.
60339         * modules/frexp-tests (Makefile.am): Likewise.
60340         * modules/isnanl-tests (Makefile.am): Likewise.
60341         * modules/linked-list-tests (Makefile.am): Likewise.
60342         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60343         * modules/lock-tests (Makefile.am): Likewise.
60344         * modules/rbtree-list-tests (Makefile.am): Likewise.
60345         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60346         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60347         * modules/tls-tests (Makefile.am): Likewise.
60348         * modules/tsearch-tests (Makefile.am): Likewise.
60349         * modules/xvasprintf-tests (Makefile.am): Likewise.
60350
60351         Fix fpurge for cygwin.
60352         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60353         value.
60354         * modules/fpurge-tests (Depends-on): Clean up trash.
60355
60356 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60357
60358         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60359
60360         * m4/autobuild.m4: Re-indent.
60361
60362 2007-04-13  Bruno Haible  <bruno@clisp.org>
60363
60364         * modules/fpurge-tests: New file.
60365         * tests/test-fpurge.c: New file.
60366
60367         * modules/fpurge: New file.
60368         * lib/fpurge.h: New file.
60369         * lib/fpurge.c: New file.
60370         * m4/fpurge.m4: New file.
60371
60372 2007-04-13  Bruno Haible  <bruno@clisp.org>
60373
60374         * modules/fbufmode-tests: New file.
60375         * tests/test-fbufmode.c: New file.
60376
60377         * modules/fbufmode: New file.
60378         * lib/fbufmode.h: New file.
60379         * lib/fbufmode.c: New file.
60380         * m4/fbufmode.m4: New file.
60381
60382 2007-04-13  Bruno Haible  <bruno@clisp.org>
60383
60384         * modules/fwritable-tests: New file.
60385         * tests/test-fwritable.c: New file.
60386
60387         * modules/fwritable: New file.
60388         * lib/fwritable.h: New file.
60389         * lib/fwritable.c: New file.
60390         * m4/fwritable.m4: New file.
60391
60392 2007-04-13  Bruno Haible  <bruno@clisp.org>
60393
60394         * modules/freadable-tests: New file.
60395         * tests/test-freadable.c: New file.
60396
60397         * modules/freadable: New file.
60398         * lib/freadable.h: New file.
60399         * lib/freadable.c: New file.
60400         * m4/freadable.m4: New file.
60401
60402 2007-04-13  Bruno Haible  <bruno@clisp.org>
60403
60404         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60405         MOSTLYCLEANFILES.
60406
60407 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60408
60409         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60410         gzip bootstrap.conf to avoid dragging in i18n machinery.
60411         (gnulib_tool_option): Use it.
60412
60413 2007-04-13  Bruno Haible  <bruno@clisp.org>
60414
60415         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60416         %F directives.
60417         * tests/test-vasprintf-posix.c (test_function): Likewise.
60418         * tests/test-snprintf-posix.h (test_function): Likewise.
60419         * tests/test-sprintf-posix.h (test_function): Likewise.
60420         * tests/test-fprintf-posix.h (test_function): Likewise.
60421         * tests/test-printf-posix.h (test_function): Likewise.
60422         * tests/test-fprintf-posix.out: Likewise.
60423
60424 2007-04-13  Bruno Haible  <bruno@clisp.org>
60425
60426         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60427         * modules/tls-tests (configure.ac): Likewise.
60428         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60429
60430 2007-04-13  Bruno Haible  <bruno@clisp.org>
60431
60432         * lib/tls.c (glthread_tls_get): Fix return type.
60433         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60434
60435 2007-04-12  Eric Blake  <ebb9@byu.net>
60436
60437         * modules/gettime (Depends-on): Remove gettime.
60438         Reported by Dmitry V. Levin.
60439
60440 2007-04-12  Bruno Haible  <bruno@clisp.org>
60441
60442         * modules/fflush (Include): Mention <stdio.h>.
60443         * modules/strtoimax (Include): Mention <inttypes.h>.
60444         * modules/strtoumax (Include): Likewise.
60445
60446 2007-04-12  Eric Blake  <ebb9@byu.net>
60447
60448         * .cvsignore: New file.
60449         * .gitignore: Likewise.
60450
60451 2007-04-12  Bruno Haible  <bruno@clisp.org>
60452
60453         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60454         not before, since $(LDADD) often contains libgnu.a.
60455         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60456         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60457         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60458         Needed on Cygwin.
60459
60460 2007-04-12  Eric Blake  <ebb9@byu.net>
60461
60462         Work around glibc's failure to flush stdin on fclose.
60463         * lib/closein.c (close_stdin): Flush stdin before closing.
60464
60465         Work around glibc's failure to reset seekable stdin on exit.
60466         * modules/closein: New module.
60467         * lib/closein.c: New file.
60468         * lib/closein.h: Likewise.
60469         * m4/closein.m4: Likewise.
60470         * MODULES.html.sh (File stream based Input/Output): Document it.
60471
60472 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60473
60474         * gnulib-tool: Rename generated 'autobuild' script to
60475         'do-autobuild' in --create-megatestdir output.
60476
60477         * doc/gnulib.texi (Build robot for gnulib): Fix.
60478
60479 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60480
60481         * modules/sysexits (Depends-on): Add absolute-header.
60482
60483 2007-04-12  Eric Blake  <ebb9@byu.net>
60484
60485         No need to preserve errno on success.
60486         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60487         Reported by Bruno Haible.
60488
60489 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60490
60491         * MODULES.html.sh (Support for maintaining and releasing
60492         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60493
60494 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60495
60496         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60497
60498 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60499
60500         * modules/autobuild: New module.
60501
60502         * m4/autobuild.m4: New file.
60503
60504 2007-04-11  Bruno Haible  <bruno@clisp.org>
60505
60506         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60507         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60508         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60509         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60510         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60513         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60514         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60515         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60516         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60517         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60518         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60519         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60520         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60521         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60522         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60523         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60524         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60525         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60526         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60527         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60528         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60529         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60530         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60531         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60532         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60533         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60534         Reported by Eric Blake.
60535
60536 2007-04-11  Bruno Haible  <bruno@clisp.org>
60537
60538         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60539
60540 2007-04-10  Bruno Haible  <bruno@clisp.org>
60541
60542         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60543         for NaN and Infinity. Needed on FreeBSD 6.1.
60544         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60545         regarding results for "%010a" of Infinity and NaN.
60546         * tests/test-vasprintf-posix.c (test_function): Likewise.
60547         * tests/test-snprintf-posix.h (test_function): Likewise.
60548         * tests/test-sprintf-posix.h (test_function): Likewise.
60549         * tests/test-fprintf-posix.h (test_function): Likewise.
60550         * tests/test-printf-posix.h (test_function): Likewise.
60551         * tests/test-fprintf-posix.out: Likewise.
60552
60553 2007-04-10  Bruno Haible  <bruno@clisp.org>
60554
60555         * modules/locale-tests: New file.
60556         * tests/test-locale.c: New file.
60557
60558         * modules/locale: New file.
60559         * lib/locale_.h: New file.
60560         * m4/locale_h.m4: New file.
60561
60562 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60563             Bruno Haible  <bruno@clisp.org>
60564
60565         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60566         be determined, test for availability of the copysignf, copysign,
60567         copysignl functions.
60568         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60569         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60570         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60571
60572 2007-04-09  Eric Blake  <ebb9@byu.net>
60573
60574         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60575         * modules/stdio (Makefile.am): Support fflush.
60576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60577         * modules/fflush: New file.
60578         * lib/fflush.c: Likewise.
60579         * m4/fflush.m4: Likewise.
60580         * modules/fflush-tests: New test.
60581         * tests/test-fflush.c: Likewise.
60582         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60583
60584 2007-04-06  Bruno Haible  <bruno@clisp.org>
60585
60586         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60587         (VASNPRINTF): Use signbit for faster determination whether to print a
60588         minus sign.
60589         * modules/vasnprintf (Files): Remove lib/float+.h.
60590         * modules/fprintf-posix (Depends-on): Add signbit.
60591         * modules/snprintf-posix (Depends-on): Likewise.
60592         * modules/sprintf-posix (Depends-on): Likewise.
60593         * modules/vasnprintf-posix (Depends-on): Likewise.
60594         * modules/vasprintf-posix (Depends-on): Likewise.
60595         * modules/vfprintf-posix (Depends-on): Likewise.
60596         * modules/vsnprintf-posix (Depends-on): Likewise.
60597         * modules/vsprintf-posix (Depends-on): Likewise.
60598
60599 2007-04-06  Bruno Haible  <bruno@clisp.org>
60600
60601         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60602         * tests/test-frexpl.c (main): Likewise.
60603         * tests/test-ldexpl.c (main): Likewise.
60604         * modules/frexp-tests (Depends-on): Add signbit.
60605         * modules/frexpl-tests (Depdends-on): Likewise.
60606         * modules/ldexpl-tests (Depdends-on): Likewise.
60607
60608 2007-04-06  Bruno Haible  <bruno@clisp.org>
60609
60610         * modules/signbit-tests: New file.
60611         * tests/test-signbit.c: New file.
60612
60613         * modules/signbit: New file.
60614         * lib/signbitf.c: New file.
60615         * lib/signbitd.c: New file.
60616         * lib/signbitl.c: New file.
60617         * m4/signbit.m4: New file.
60618         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60619         (signbit): New macro.
60620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60621         REPLACE_SIGNBIT.
60622         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60623         REPLACE_FREXPL into math.h.
60624
60625 2007-04-06  Bruno Haible  <bruno@clisp.org>
60626
60627         * modules/isnanf-nolibm-tests: New file.
60628         * tests/test-isnanf.c: New file.
60629
60630         * modules/isnanf-nolibm: New file.
60631         * lib/isnanf.h: New file.
60632         * lib/isnanf.c: New file.
60633         * lib/isnan.c: Consider the USE_FLOAT macro.
60634         * m4/isnanf.m4: New file.
60635
60636 2007-04-06  Bruno Haible  <bruno@clisp.org>
60637
60638         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60639         (Link): New section.
60640
60641         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60642
60643 2007-04-06  Bruno Haible  <bruno@clisp.org>
60644
60645         Assume the 'long double' type.
60646         * m4/longdouble.m4: Remove file.
60647         * config/srclist.txt: Don't mention longdouble.m4.
60648         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60649         * lib/float+.h: Likewise.
60650         * lib/frexp.c: Likewise.
60651         * lib/printf-args.h: Likewise.
60652         * lib/printf-args.c: Likewise.
60653         * lib/printf-frexp.c: Likewise.
60654         * lib/printf-parse.c: Likewise.
60655         * lib/vasnprintf.c: Likewise.
60656         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60657         * m4/intl.m4: Likewise.
60658         * m4/isnanl.m4: Likewise.
60659         * m4/printf.m4: Likewise.
60660         * m4/printf-frexpl.m4: Likewise.
60661         * m4/vasnprintf.m4: Likewise.
60662         * modules/allocsa (Files): Remove m4/longdouble.m4.
60663         * modules/gettext (Files): Likewise.
60664         * modules/relocatable-prog-wrapper (Files): Likewise.
60665         * modules/vasnprintf (Files): Likewise.
60666         * modules/isnanl (Files): Likewise.
60667         (Include): Simplify.
60668         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60669         (Include): Simplify.
60670         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60671         (Include): Simplify.
60672         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60673         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60674         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60675         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60676         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60677         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60678         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60679         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60680         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60681         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60682         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60683         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60684         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60685         * tests/test-isnanl.c: Likewise.
60686         * tests/test-snprintf-posix.h: Likewise.
60687         * tests/test-sprintf-posix.h: Likewise.
60688         * tests/test-vasnprintf-posix.c: Likewise.
60689         * tests/test-vasnprintf-posix2.c: Likewise.
60690         * tests/test-vasprintf-posix.c: Likewise.
60691
60692 2007-04-06  Bruno Haible  <bruno@clisp.org>
60693
60694         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60695         * lib/math_.h [__DECC]: Include the overridden include file through
60696         #include_next, outside the double-inclusion guard.
60697         * lib/stdio_.h [__DECC]: Likewise.
60698         * lib/stdlib_.h [__DECC]: Likewise.
60699         * lib/string_.h [__DECC]: Likewise.
60700         * lib/time_.h [__DECC]: Likewise.
60701         * lib/wchar_.h [__DECC]: Likewise.
60702         * lib/wctype_.h [__DECC]: Likewise.
60703         * lib/inttypes_.h [__DECC]: Likewise.
60704         Reported by Albert Chin <china@thewrittenword.com> in
60705         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60706
60707 2007-04-04  Eric Blake  <ebb9@byu.net>
60708
60709         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60710         1.5.x.
60711
60712 2007-04-04  Bruno Haible  <bruno@clisp.org>
60713
60714         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60715         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60716
60717 2007-04-04  Bruno Haible  <bruno@clisp.org>
60718
60719         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60720         results for "%010a" of Infinity and NaN.
60721         * tests/test-vasprintf-posix.c (test_function): Likewise.
60722         * tests/test-snprintf-posix.h (test_function): Likewise.
60723         * tests/test-sprintf-posix.h (test_function): Likewise.
60724         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60725         * tests/test-printf-posix.h (test_function): Likewise.
60726         * tests/test-fprintf-posix.out: Update.
60727         Needed for FreeBSD 6.1.
60728
60729 2007-04-04  Bruno Haible  <bruno@clisp.org>
60730
60731         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60732         directly used by the gnulib modules nor by gnulib-tool.
60733
60734 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60735
60736         * DEPENDENCIES: Give overall description of version dependency
60737         desirability.  Use more-typical names for apps.
60738         Add shell, coreutils, diffutils, grep, tar, gzip.
60739
60740 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60741
60742         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60743
60744 2007-04-04  Karl Berry  <karl@gnu.org>
60745
60746         * MODULES.html.sh (func_module): missing '.
60747
60748 2007-04-03  Bruno Haible  <bruno@clisp.org>
60749
60750         * modules/argmatch-tests (Makefile.am): New variable
60751         test_argmatch_LDADD.
60752         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60753         * modules/array-list-tests (Makefile.am): New variable
60754         test_array_list_LDADD.
60755         * modules/array-oset-tests (Makefile.am): New variable
60756         test_array_oset_LDADD.
60757         * modules/avltree-list-tests (Makefile.am): New variable
60758         test_avltree_list_LDADD.
60759         * modules/avltree-oset-tests (Makefile.am): New variable
60760         test_avltree_oset_LDADD.
60761         * modules/avltreehash-list-tests (Makefile.am): New variable
60762         test_avltreehash_list_LDADD.
60763         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60764         test_canonicalize_lgpl_LDADD.
60765         * modules/carray-list-tests (Makefile.am): New variable
60766         test_carray_list_LDADD.
60767         * modules/dirname-tests (Makefile.am): New variable
60768         test_dirname_LDADD.
60769         * modules/linked-list-tests (Makefile.am): New variable
60770         test_linked_list_LDADD.
60771         * modules/linkedhash-list-tests (Makefile.am): New variable
60772         test_linkedhash_list_LDADD.
60773         * modules/rbtree-list-tests (Makefile.am): New variable
60774         test_rbtree_list_LDADD.
60775         * modules/rbtree-oset-tests (Makefile.am): New variable
60776         test_rbtree_oset_LDADD.
60777         * modules/rbtreehash-list-tests (Makefile.am): New variable
60778         test_rbtreehash_list_LDADD.
60779         * modules/xvasprintf-tests (Makefile.am): New variable
60780         test_xvasprintf_LDADD.
60781         Reported by Eric Blake.
60782
60783 2007-04-03  Eric Blake  <ebb9@byu.net>
60784
60785         * DEPENDENCIES: Weaken m4 requirements.
60786
60787 2007-04-03  Bruno Haible  <bruno@clisp.org>
60788
60789         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60790         * modules/isnanl-tests (configure.ac): Likewise.
60791
60792 2007-04-03  Ben Pfaff  <blp@gnu.org>
60793
60794         * modules/iconv_open: Add $(srcdir)/ to source directory
60795         references in Makefile fragments that call gperf, to fix VPATH
60796         builds.
60797
60798 2007-04-03  Bruno Haible  <bruno@clisp.org>
60799
60800         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60801         * lib/ldexpl.c: Undo last change.
60802
60803 2007-04-03  Bruno Haible  <bruno@clisp.org>
60804
60805         * modules/printf-frexpl (Depends-on): Undo last change.
60806         (Files): Add m4/ldexpl.m4.
60807
60808 2007-04-03  Bruno Haible  <bruno@clisp.org>
60809
60810         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60811         * modules/isnanl (Link): New section.
60812
60813         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60814         * modules/frexp (Link): New section.
60815
60816         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60817         * modules/frexpl (Link): New section.
60818
60819         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60820         * modules/ldexpl (Link): New section.
60821
60822 2007-04-03  Bruno Haible  <bruno@clisp.org>
60823
60824         * modules/TEMPLATE-EXTENDED: New file.
60825         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60826
60827 2007-04-03  Bruno Haible  <bruno@clisp.org>
60828
60829         * DEPENDENCIES: New file.
60830         Suggested by Simon Josefsson.
60831
60832 2007-04-03  Bruno Haible  <bruno@clisp.org>
60833
60834         * doc/gnulib.texi: Escape @.
60835
60836 2007-04-03  James Youngman  <jay@gnu.org>
60837         and Paul Eggert  <eggert@cs.ucla.edu>
60838
60839         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60840         birthtime on all systems that have birthtime, not just those which
60841         use st_birthtimensec rather than st_birthtim.  Putting zero in
60842         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60843         that the birth time is not available for files on an NFS mount.
60844
60845 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60846
60847         * modules/memxor: Move back from crypto/, suggested by Bruno.
60848         * modules/crypto/hmac-sha1: Fix memxor dependency.
60849
60850         * modules/crypto/gc: Moved from ../.
60851
60852 2007-04-02  Eric Blake  <ebb9@byu.net>
60853
60854         * lib/ldexpl.c (includes): Avoid libm.
60855
60856         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60857
60858 2007-04-02  Bruno Haible  <bruno@clisp.org>
60859
60860         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60861         on IRIX.
60862
60863 2007-04-02  Bruno Haible  <bruno@clisp.org>
60864
60865         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60866         x86 or x86_64 platforms running MacOS X.
60867         Reported by Ryan Schmidt <@ryandesign.com>.
60868
60869 2007-04-02  Bruno Haible  <bruno@clisp.org>
60870
60871         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60872         i386.
60873
60874 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60875
60876         * modules/crypto/arcfour: Moved from ../.
60877         * modules/crypto/arcfour-tests: Moved from ../.
60878         * modules/crypto/arctwo: Moved from ../.
60879         * modules/crypto/arctwo-tests: Moved from ../.
60880         * modules/crypto/des: Moved from ../.
60881         * modules/crypto/des-tests: Moved from ../.
60882         * modules/crypto/gc-arcfour: Moved from ../.
60883         * modules/crypto/gc-arcfour-tests: Moved from ../.
60884         * modules/crypto/gc-arctwo: Moved from ../.
60885         * modules/crypto/gc-arctwo-tests: Moved from ../.
60886         * modules/crypto/gc-des: Moved from ../.
60887         * modules/crypto/gc-des-tests: Moved from ../.
60888         * modules/crypto/gc-hmac-md5: Moved from ../.
60889         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60890         * modules/crypto/gc-hmac-sha1: Moved from ../.
60891         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60892         * modules/crypto/gc-md2: Moved from ../.
60893         * modules/crypto/gc-md2-tests: Moved from ../.
60894         * modules/crypto/gc-md4: Moved from ../.
60895         * modules/crypto/gc-md4-tests: Moved from ../.
60896         * modules/crypto/gc-md5: Moved from ../.
60897         * modules/crypto/gc-md5-tests: Moved from ../.
60898         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60899         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60900         * modules/crypto/gc-random: Moved from ../.
60901         * modules/crypto/gc-rijndael: Moved from ../.
60902         * modules/crypto/gc-rijndael-tests: Moved from ../.
60903         * modules/crypto/gc-sha1: Moved from ../.
60904         * modules/crypto/gc-sha1-tests: Moved from ../.
60905         * modules/crypto/gc-tests: Moved from ../.
60906         * modules/crypto/hmac-md5: Moved from ../.
60907         * modules/crypto/hmac-md5-tests: Moved from ../.
60908         * modules/crypto/hmac-sha1: Moved from ../.
60909         * modules/crypto/hmac-sha1-tests: Moved from ../.
60910         * modules/crypto/md2: Moved from ../.
60911         * modules/crypto/md2-tests: Moved from ../.
60912         * modules/crypto/md4: Moved from ../.
60913         * modules/crypto/md4-tests: Moved from ../.
60914         * modules/crypto/md5: Moved from ../.
60915         * modules/crypto/md5-tests: Moved from ../.
60916         * modules/crypto/memxor: Moved from ../.
60917         * modules/crypto/rijndael: Moved from ../.
60918         * modules/crypto/rijndael-tests: Moved from ../.
60919         * modules/crypto/sha1: Moved from ../.
60920
60921 2007-03-30  James Youngman  <jay@gnu.org>
60922
60923         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60924         rename() to change the ctime of a file (because ctime is unaffected
60925         by rename on jfs2 on AIX 5.1).
60926         (main): Start by doing cleanup, in case a previous run failed leaving
60927         test files behind.
60928
60929 2007-03-31  Bruno Haible  <bruno@clisp.org>
60930
60931         Support old proprietary implementations of iconv.
60932         * modules/iconv_open: New file.
60933         * lib/iconv_.h: New file.
60934         * m4/iconv_h.m4: New file.
60935         * lib/iconv_open.c: New file.
60936         * lib/iconv_open-aix.gperf: New file.
60937         * lib/iconv_open-hpux.gperf: New file.
60938         * lib/iconv_open-irix.gperf: New file.
60939         * lib/iconv_open-osf.gperf: New file.
60940         * m4/iconv_open.m4: New file.
60941         * modules/linebreak (Depends-on): Add iconv_open.
60942         * modules/striconv (Depends-on): Likewise.
60943         * modules/striconveh (Depends-on): Likewise.
60944         * modules/unicodeio (Depends-on): Likewise.
60945         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60946         (iconv_t)(-1).
60947         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60948         conversion if cd is (iconv_t)(-1).
60949         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60950         is not possible.
60951
60952 2007-03-31  Bruno Haible  <bruno@clisp.org>
60953
60954         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60955         work on Solaris either. Protect also second use of "autodetect_jp".
60956
60957 2007-03-31  Bruno Haible  <bruno@clisp.org>
60958
60959         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60960         the function is not present.
60961
60962 2007-03-31  Bruno Haible  <bruno@clisp.org>
60963
60964         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60965         the function is not present.
60966
60967 2007-03-31  Bruno Haible  <bruno@clisp.org>
60968
60969         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60970         a bug in HP-UX iconv_open().
60971
60972 2007-03-31  Bruno Haible  <bruno@clisp.org>
60973
60974         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60975         (Mathematics <math.h>): New section, add fpieee.
60976         (Input/output <stdio.h>): Add fseterr.
60977         (Mathematics <math.h>): New section, add printf-frexp.
60978         (Container data structures): Add sublist.
60979         (Core language properties): Add fpucw, inline.
60980         (Functions for greatest-width integer types <inttypes.h>): Add
60981         imaxabs, imaxdiv, inttypes.
60982         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60983         isnanl-nolibm, ldexp.
60984         (Mathematics <math.h>): New section, add printf-frexpl.
60985         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60986         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60987         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60988         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60989         (Unicode string functions): Add unistr/u*-mbtoucr.
60990         (Java): Add javacomp-script, javaexec-script.
60991         (C#): Add csharpcomp-script, csharpexec-script.
60992         (Support for building libraries and executables): Add havelib,
60993         relocatable-*.
60994         (Support for maintaining and releasing projects): Renamed from
60995         'Support for maintaining and release projects'. Add announce-gen.
60996
60997 2007-03-31  Bruno Haible  <bruno@clisp.org>
60998
60999         * README: Talk primarily about git.
61000         (git and CVS): Renamed from CVS.
61001         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61002         gnulib is available through git.
61003         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61004
61005 2007-03-30  Bruno Haible  <bruno@clisp.org>
61006
61007         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61008         * lib/poll_.h: Likewise.
61009         * lib/stat_.h: Likewise.
61010         * lib/sys_time_.h: Likewise.
61011         * lib/sysexit_.h: Likewise.
61012         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61013         * lib/stdbool_.h: Likewise.
61014         * lib/byteswap_.h: Add double-inclusion guard.
61015
61016 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61017
61018         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61019
61020 2007-03-30  Karl Berry  <karl@gnu.org>
61021
61022         * config/srclist-update: double space after USA in the license
61023         substitution, since that's how it's usually (?) written.
61024
61025 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61026
61027         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61028         reported by Bruno Haible.
61029
61030 2007-03-29  Bruno Haible  <bruno@clisp.org>
61031
61032         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61033         a bug in AIX iconv().
61034
61035 2007-03-29  Bruno Haible  <bruno@clisp.org>
61036
61037         * modules/ldexpl-tests: New file.
61038         * tests/test-ldexpl.c: New file.
61039
61040 2007-03-29  Bruno Haible  <bruno@clisp.org>
61041
61042         * lib/ldexpl.c: Include fpucw.h.
61043         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61044         multiplication.
61045         * modules/ldexpl (Depends-on): Add fpucw.
61046
61047 2007-03-29  Bruno Haible  <bruno@clisp.org>
61048
61049         * modules/ldexpl: New file.
61050         * m4/ldexpl.m4: New file.
61051         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61052         set.
61053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61054         REPLACE_LDEXPL.
61055         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61056         REPLACE_LDEXPL.
61057         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61058         gl_FUNC_LDEXPL_WORKS.
61059         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61060         * modules/mathl (Files): Remove lib/ldexpl.c.
61061         (Depends-on): Add ldexpl.
61062
61063 2007-03-29  Bruno Haible  <bruno@clisp.org>
61064
61065         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61066
61067 2007-03-29  Bruno Haible  <bruno@clisp.org>
61068
61069         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61070         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61071         and possibly also HP-UX.
61072         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61073         work on AIX, IRIX, HP-UX, OSF/1.
61074         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61075         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61076         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61077         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61078         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61079         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61080
61081 2007-03-29  Bruno Haible  <bruno@clisp.org>
61082
61083         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61084
61085 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61086
61087         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61088         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61089
61090 2007-03-29  Eric Blake  <ebb9@byu.net>
61091
61092         * lib/acl-internal.h: Remove redundant include.
61093         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61094         Cygwin when a file is locked.
61095
61096 2007-03-29  Bruno Haible  <bruno@clisp.org>
61097
61098         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61099         file.
61100         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61101
61102 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61103
61104         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61105         try to remove a parent directory if the child couldn't be removed
61106         (except for the first rmdir, which could fail because the child
61107         doesn't exist).  Problem reported by Jeff Blaine in
61108         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61109
61110 2007-03-28  Bruno Haible  <bruno@clisp.org>
61111
61112         * lib/striconveh.c (utf8conv_carefully): New function.
61113         (mem_cd_iconveh_internal): Invoke it.
61114
61115 2007-03-28  Bruno Haible  <bruno@clisp.org>
61116
61117         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61118         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61119         input.
61120         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61121         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61122         unistr/u8-uctomb.
61123
61124 2007-03-28  Bruno Haible  <bruno@clisp.org>
61125
61126         * modules/unistr/u8-mbtoucr: New file.
61127         * lib/unistr/u8-mbtoucr.c: New file.
61128         * modules/unistr/u16-mbtoucr: New file.
61129         * lib/unistr/u16-mbtoucr.c: New file.
61130         * modules/unistr/u16-mbtoucr: New file.
61131         * lib/unistr/u16-mbtoucr.c: New file.
61132         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61133
61134 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61135             Bruno Haible  <bruno@clisp.org>
61136
61137         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61138         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61139         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61140
61141         * m4/stdio_h.m4: Add stubs for vasprintf too.
61142
61143         * modules/stdio: Support vasprintf in sed command.
61144
61145         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61146         vasprintf.h.  Add stdio module indicator.
61147
61148         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61149         vasprintf.h.
61150
61151         * lib/vasprintf.h: File removed.
61152
61153         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61154         * lib/vasprintf.c: Ditto.
61155         * lib/xvasprintf.c: Ditto.
61156         * tests/test-vasprintf-posix.c: Ditto.
61157         * tests/test-vasprintf.c: Ditto.
61158
61159 2007-03-27  Bruno Haible  <bruno@clisp.org>
61160
61161         Make vasnprintf multithread-safe.
61162         * lib/vasnprintf.c (decimal_point_char): New function.
61163         (VASNPRINTF): Use it.
61164         Suggested by Simon Josefsson.
61165
61166 2007-03-27  Eric Blake  <ebb9@byu.net>
61167
61168         Support sub-second birthtime on cygwin.
61169         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61170         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61171         (get_stat_birthtime): Also work with st_birthtim.
61172
61173 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61174
61175         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61176         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61177         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61178         (get_stat_birthtime_ns): Simplify compile-time tests.
61179         (get_stat_birthtime): Change the API to look like
61180         get_stat_mtime etc., except return a negative tv_nsec on error.
61181         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61182         Don't check for "spare" fields.
61183         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61184         or for struct stat.st_birthtime, as these tests aren't used.
61185         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61186
61187 2007-03-27  Bruno Haible  <bruno@clisp.org>
61188
61189         * lib/stat-time.h: Include <sys/stat.h>.
61190
61191 2007-03-27  James Youngman  <jay@gnu.org>
61192
61193         * lib/stat-time.h (get_stat_birthtime): New function for
61194           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61195         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61196           and its variants.
61197         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61198         * modules/stat-time-test: New file.
61199         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61200
61201 2007-03-26  Bruno Haible  <bruno@clisp.org>
61202
61203         Better support of signalling NaNs.
61204         * lib/atanl.c: Include isnanl.h.
61205         (atanl): Perform test for NaN at the beginning of the function and
61206         through a call to isnanl.
61207         * lib/cosl.c: Include isnanl.h.
61208         (cosl): Perform test for NaN at the beginning of the function and
61209         through a call to isnanl.
61210         * lib/ldexpl.c: Include isnanl.h.
61211         (ldexpl): Perform test for NaN through a call to isnanl.
61212         * lib/logl.c: Include isnanl.h.
61213         (logl): Perform test for NaN at the beginning of the function and
61214         through a call to isnanl.
61215         * lib/sinl.c: Include isnanl.h.
61216         (sinl): Perform test for NaN at the beginning of the function and
61217         through a call to isnanl.
61218         * lib/sqrtl.c: Include isnanl.h.
61219         (sqrtl): Perform test for NaN at the beginning of the function and
61220         through a call to isnanl.
61221         * lib/tanl.c: Include isnanl.h.
61222         (tanl): Perform test for NaN at the beginning of the function and
61223         through a call to isnanl.
61224         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61225         * modules/mathl (Depends-on): Add isnanl.
61226
61227 2007-03-26  Eric Blake  <ebb9@byu.net>
61228
61229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61230         regression in logic sense of previous patch.
61231
61232 2007-03-26  Bruno Haible  <bruno@clisp.org>
61233
61234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61235         unportable shell command "if ! ...".
61236         Reported by Ralf Wildenhues.
61237
61238 2007-03-25  Bruno Haible  <bruno@clisp.org>
61239
61240         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61241         <sysexits.h> file, and only add EX_CONFIG.
61242         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61243         absolute file name and whether it is sufficient. Substitute also
61244         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61245         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61246         ABSOLUTE_SYSEXITS_H into sysexits.h.
61247
61248 2007-03-25  Bruno Haible  <bruno@clisp.org>
61249
61250         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61251         hints is NULL.
61252
61253 2007-03-25  Bruno Haible  <bruno@clisp.org>
61254
61255         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61256         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61257
61258 2007-03-25  Bruno Haible  <bruno@clisp.org>
61259
61260         * lib/vasnprintf.c: Include langinfo.h.
61261         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61262         multithread-safe.
61263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61264         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61265         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61266         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61267         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61268         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61269         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61270         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61271         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61272         Reported by Simon Josefsson.
61273
61274 2007-03-25  Bruno Haible  <bruno@clisp.org>
61275
61276         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61277         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61278         * modules/vasnprintf (Depends-on): Add stdint.
61279
61280 2007-03-25  Bruno Haible  <bruno@clisp.org>
61281
61282         * modules/fpieee: New file.
61283         * m4/fpieee.m4: New file.
61284         * modules/isnan-nolibm (Depends-on): Add fpieee.
61285         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61286         * modules/isnanl (Depends-on): Add fpieee.
61287
61288 2007-03-25  Bruno Haible  <bruno@clisp.org>
61289
61290         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61291
61292 2007-03-25  Bruno Haible  <bruno@clisp.org>
61293
61294         Avoid test failures on IRIX 6.5.
61295         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61296         (main): Use it.
61297         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61298         macros.
61299         (main): Use them.
61300
61301 2007-03-25  Bruno Haible  <bruno@clisp.org>
61302
61303         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61304         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61305         exists but doesn't work.
61306         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61307         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61309         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61310         math.h.
61311
61312 2007-03-25  Bruno Haible  <bruno@clisp.org>
61313
61314         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61315         returns inf. Needed on IRIX 6.5.
61316
61317 2007-03-25  Bruno Haible  <bruno@clisp.org>
61318
61319         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61320         (main): Use isnanl instead of x != x idiom.
61321         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61322
61323         * tests/test-frexp.c: Include isnan.h.
61324         (main): Use isnan instead of x != x idiom.
61325         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61326
61327 2007-03-25  Bruno Haible  <bruno@clisp.org>
61328
61329         * tests/test-frexp.c (NaN): New function/macro.
61330         (main): Use it instead of 0.0 / 0.0.
61331         * tests/test-isnan.c (NaN): New function/macro.
61332         (main): Use it instead of 0.0 / 0.0.
61333         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61334         (test_function): Use it instead of 0.0 / 0.0.
61335         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61336         (test_function): Use it instead of 0.0 / 0.0.
61337         * tests/test-snprintf-posix.h (NaN): New function/macro.
61338         (test_function): Use it instead of 0.0 / 0.0.
61339         * tests/test-sprintf-posix.h (NaN): New function/macro.
61340         (test_function): Use it instead of 0.0 / 0.0.
61341         * tests/test-fprintf-posix.h (NaN): New function/macro.
61342         (test_function): Use it instead of 0.0 / 0.0.
61343         * tests/test-printf-posix.h (NaN): New function/macro.
61344         (test_function): Use it instead of 0.0 / 0.0.
61345
61346         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61347
61348 2007-03-25  Bruno Haible  <bruno@clisp.org>
61349
61350         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61351
61352 2007-03-25  Bruno Haible  <bruno@clisp.org>
61353
61354         * lib/regexec.c (merge_state_with_log): Make static.
61355
61356 2007-03-25  Bruno Haible  <bruno@clisp.org>
61357
61358         * lib/trigl.c (kernel_rem_pio2): Make static.
61359
61360 2007-03-25  Bruno Haible  <bruno@clisp.org>
61361
61362         * lib/sincosl.c (sincosl_table): Make static.
61363
61364 2007-03-25  Bruno Haible  <bruno@clisp.org>
61365
61366         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61367         if the compiler does not support C99.
61368
61369 2007-03-25  Bruno Haible  <bruno@clisp.org>
61370
61371         * modules/time (Makefile.am): Ensure all rule action lines start with a
61372         tab.
61373
61374 2007-03-24  Bruno Haible  <bruno@clisp.org>
61375
61376         * modules/tsearch-tests: New file.
61377         * tests/test-tsearch.sh: New file.
61378         * tests/test-tsearch.c: New file, mostly copied from glibc.
61379
61380         * modules/search-tests: New file.
61381         * tests/test-search.c: New file.
61382
61383         * modules/search: New file.
61384         * lib/search_.h: New file, incorporating lib/tsearch.h.
61385         * m4/search_h.m4: New file.
61386         * lib/tsearch.h: Remove file.
61387         * lib/tsearch.c: Include search.h instead of tsearch.h.
61388         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61389         HAVE_TSEARCH.
61390         * modules/tsearch (Files): Remove lib/tsearch.h.
61391         (Depends-on): Add search.
61392         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61393         (Include): Change tsearch.h into search.h.
61394
61395 2007-03-24  Bruno Haible  <bruno@clisp.org>
61396
61397         * modules/fpucw: New file.
61398         * lib/fpucw.h: New file.
61399         * lib/frexp.c: Include fpucw.h.
61400         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61401         (FUNC): Use them.
61402         * lib/printf-frexp.c: Include fpucw.h.
61403         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61404         (FUNC): Use them.
61405         * lib/vasnprintf.c: Include fpucw.h.
61406         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61407         'long double' calculations.
61408         * tests/test-frexpl.c: Include fpucw.h.
61409         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61410         * tests/test-printf-frexpl.c: Include fpucw.h.
61411         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61412         * modules/frexpl (Depends-on): Add fpucw.
61413         * modules/printf-frexpl (Depends-on): Likewise.
61414         * modules/fprintf-posix (Depends-on): Likewise.
61415         * modules/snprintf-posix (Depends-on): Likewise.
61416         * modules/sprintf-posix (Depends-on): Likewise.
61417         * modules/vasnprintf-posix (Depends-on): Likewise.
61418         * modules/vasprintf-posix (Depends-on): Likewise.
61419         * modules/vfprintf-posix (Depends-on): Likewise.
61420         * modules/vsnprintf-posix (Depends-on): Likewise.
61421         * modules/vsprintf-posix (Depends-on): Likewise.
61422         * modules/frexpl-tests (Depends-on): Likewise.
61423         * modules/printf-frexpl-tests (Depends-on): Likewise.
61424
61425 2007-03-24  Bruno Haible  <bruno@clisp.org>
61426
61427         * lib/float+.h: New file.
61428         * lib/isnan.c: Include float+.h.
61429         (SIZE): New macro.
61430         (FUNC): Compare only SIZE bytes of the value.
61431         * lib/vasnprintf.c: Include float+.h.
61432         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61433         SIZEOF_LDBL or SIZEOF_DBL bytes.
61434         * modules/isnan-nolibm (Files): Add lib/float+.h.
61435         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61436         * modules/isnanl (Files): Add lib/float+.h.
61437         * modules/vasnprintf (Files): Add lib/float+.h.
61438
61439 2007-03-24  Bruno Haible  <bruno@clisp.org>
61440
61441         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61442         include isnanl-nolibm.h.
61443
61444 2007-03-24  Bruno Haible  <bruno@clisp.org>
61445
61446         * tests/test-read-file.c (main): Don't produce spurious output for
61447         expected situations. Make the test fail if it encountered unexpected
61448         results.
61449
61450 2007-03-24  Bruno Haible  <bruno@clisp.org>
61451
61452         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61453         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61454
61455 2007-03-24  Bruno Haible  <bruno@clisp.org>
61456
61457         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61458
61459 2007-03-24  Bruno Haible  <bruno@clisp.org>
61460
61461         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61462         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61463
61464         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61465         * modules/utf8-ucs4: Turn into a symbolic link to module
61466         unistr/u8-mbtouc.
61467
61468         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61469         utf8-ucs4-unsafe.
61470         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61471         unistr/u8-mbtouc-unsafe.
61472
61473         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61474         * modules/utf16-ucs4: Turn into a symbolic link to module
61475         unistr/u16-mbtouc.
61476
61477         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61478         utf16-ucs4-unsafe.
61479         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61480         unistr/u16-mbtouc-unsafe.
61481
61482         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61483         * modules/ucs4-utf8: Turn into a symbolic link to module
61484         unistr/u8-ubtomb.
61485
61486         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61487         * modules/ucs4-utf16: Turn into a symbolic link to module
61488         unistr/u16-ubtomb.
61489
61490 2007-03-24  Bruno Haible  <bruno@clisp.org>
61491
61492         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61493         Enable the function only if HAVE_INLINE.
61494         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61495         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61496         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61497         Enable the function only if HAVE_INLINE.
61498         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61499         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61500         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61501         Enable the function only if HAVE_INLINE.
61502         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61503         Enable the function only if HAVE_INLINE.
61504         * modules/utf8-ucs4: Update.
61505         * modules/utf8-ucs4-unsafe: Update.
61506         * modules/utf16-ucs4: Update.
61507         * modules/utf16-ucs4-unsafe: Update.
61508         * modules/ucs4-utf8: Update.
61509         * modules/ucs4-utf16: Update.
61510
61511 2007-03-24  Bruno Haible  <bruno@clisp.org>
61512
61513         * lib/utf8-ucs4.h: Remove file.
61514         * lib/utf8-ucs4-unsafe.h: Remove file.
61515         * lib/utf16-ucs4.h: Remove file.
61516         * lib/utf16-ucs4-unsafe.h: Remove file.
61517         * lib/ucs4-utf8.h: Remove file.
61518         * lib/ucs4-utf16.h: Remove file.
61519         * lib/unistr.h: Include their previous contents.
61520         * m4/utf-ucs4.m4: Remove file.
61521         * m4/ucs4-utf.m4: Remove file.
61522         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61523         (Depends-on): Add unistr/base.
61524         (configure.ac): Remove gl_UTF_UCS4.
61525         (Makefile.am): Update.
61526         (Include): Change to unistr.h.
61527         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61528         (Depends-on): Add unistr/base.
61529         (configure.ac): Remove gl_UTF_UCS4.
61530         (Makefile.am): Update.
61531         (Include): Change to unistr.h.
61532         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61533         (Depends-on): Add unistr/base.
61534         (configure.ac): Remove gl_UTF_UCS4.
61535         (Makefile.am): Update.
61536         (Include): Change to unistr.h.
61537         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61538         (Depends-on): Add unistr/base.
61539         (configure.ac): Remove gl_UTF_UCS4.
61540         (Makefile.am): Update.
61541         (Include): Change to unistr.h.
61542         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61543         (Depends-on): Add unistr/base.
61544         (configure.ac): Remove gl_UCS4_UTF.
61545         (Makefile.am): Update.
61546         (Include): Change to unistr.h.
61547         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61548         (Depends-on): Add unistr/base.
61549         (configure.ac): Remove gl_UCS4_UTF.
61550         (Makefile.am): Update.
61551         (Include): Change to unistr.h.
61552         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61553         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61554         utf8-ucs4-unsafe.h.
61555         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61556         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61557         utf16-ucs4-unsafe.h.
61558         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61559         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61560         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61561         * lib/unistr/u8-strchr.c: Likewise.
61562         * lib/unistr/u8-strrchr.c: Likewise.
61563         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61564         * lib/unistr/u16-strchr.c: Likewise.
61565         * lib/unistr/u16-strrchr.c: Likewise.
61566         * lib/striconveh.c: Update.
61567         * lib/linebreak.c: Update.
61568
61569 2007-03-24  Bruno Haible  <bruno@clisp.org>
61570
61571         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61572         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61573
61574 2007-03-22  Bruno Haible  <bruno@clisp.org>
61575
61576         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61577
61578 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61579
61580         * MODULES.html.sh (File system functions): New module write-any-file.
61581         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61582         * m4/write-any-file.m4: New files.
61583
61584 2007-03-23  Eric Blake  <ebb9@byu.net>
61585
61586         * gnulib-tool: Rearrange space-tab sequences, since some editors
61587         like to eat them.
61588
61589 2007-03-23  Eric Blake  <ebb9@byu.net>
61590
61591         * lib/version-etc.c (version_etc_va): Update license wording to
61592         be more concise.  Recommended by Richard Stallman.
61593
61594 2007-03-22  Bruno Haible  <bruno@clisp.org>
61595
61596         * lib/poll.c (MSG_PEEK): New fallback definition.
61597
61598 2007-03-22  Bruno Haible  <bruno@clisp.org>
61599
61600         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61601         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61602         (main): Update.
61603         Fixes a compilation error on BeOS.
61604
61605 2007-03-22  Bruno Haible  <bruno@clisp.org>
61606
61607         * modules/frexpl-tests: New file.
61608         * tests/test-frexpl.c: New file.
61609
61610         * modules/frexpl: New file.
61611         * m4/frexpl.m4: New file.
61612         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61613         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61615         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61616         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61617         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61618
61619 2007-03-22  Bruno Haible  <bruno@clisp.org>
61620
61621         * lib/frexpl.c: Share code with lib/frexp.c.
61622         * modules/mathl (Files): Add lib/frexp.c.
61623         (Depends-on): Add isnanl-nolibm.
61624
61625 2007-03-22  Bruno Haible  <bruno@clisp.org>
61626
61627         * modules/printf-frexp (Files): Add m4/frexp.m4.
61628         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61629         only if the found frexp function actually works.
61630
61631 2007-03-22  Bruno Haible  <bruno@clisp.org>
61632
61633         * lib/frexp.c: Remove older implementation that uses divisions.
61634
61635 2007-03-21  Bruno Haible  <bruno@clisp.org>
61636
61637         * modules/frexp-tests: New file.
61638         * tests/test-frexp.c: New file.
61639
61640         * modules/frexp: New file.
61641         * lib/frexp.c: New file.
61642         * m4/frexp.m4: New file.
61643         * lib/math_.h (frexp): New declaration.
61644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61645         REPLACE_FREXP.
61646         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61647
61648 2007-03-21  Bruno Haible  <bruno@clisp.org>
61649
61650         * modules/isnanl-tests: New file.
61651         * tests/test-isnanl.c: New file.
61652
61653         * modules/isnanl: New file.
61654         * lib/isnanl.h: New file.
61655         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61656         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61657         gl_FUNC_ISNANL_WORKS.
61658         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61659         New macros.
61660
61661 2007-03-21  Bruno Haible  <bruno@clisp.org>
61662
61663         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61664         lib/isnanl.h.
61665         (Include): Update.
61666         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61667         * lib/vasnprintf.c: Update.
61668         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61669         tests/test-isnanl.h, remove tests/test-isnanl.c.
61670         (Makefile.am): Update.
61671         * tests/test-isnanl-nolibm.c: New file.
61672         * tests/test-isnanl.h: New file.
61673         * tests/test-isnanl.c: Remove file.
61674
61675 2007-03-21  Jim Meyering  <jim@meyering.net>
61676
61677         When trying to open ".", treat ESTALE like EACCES.
61678         * lib/savewd.c (savewd_save): Resort to forking not just upon
61679         failure with EACCES, but also when errno is ESTALE.
61680
61681 2007-03-20  Bruno Haible  <bruno@clisp.org>
61682
61683         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61684         Needed on AIX 5.1. Reported by Matthew Woehlke.
61685
61686 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61687
61688         Suggestions by Bruno Haible:
61689         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61690         our own.
61691         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61692         * modules/acl (Depends-on): Add gettext.
61693
61694 2007-03-19  Bruno Haible  <bruno@clisp.org>
61695
61696         * modules/iconvme: Remove file.
61697         * lib/iconvme.h: Remove file.
61698         * lib/iconvme.c: Remove file.
61699         * m4/iconvme.m4: Remove file.
61700
61701 2007-03-19  Bruno Haible  <bruno@clisp.org>
61702
61703         * doc/relocatable-maint.texi: Break long shell script line.
61704         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61705
61706 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61707
61708         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61709         handle file_has_acl.
61710         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61711         * lib/acl.c: Move header inclusions and related macro defns into
61712         lib/acl-internal.h.
61713         (S_ISLNK): Remove defn, since that's now done for us.
61714         (file_has_acl): Move to lib/file-has-acl.c.
61715         Call acl_trivial if available.  This is the crucial part of the fix.
61716         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61717         shared within the library.  Rewrite a bit, partly to make it compatible
61718         with the GNU coding style.
61719         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61720         Remove unnecessary double-quotes.
61721         Don't test for acl_to_text; the build will catch that.
61722         Replace acl_entries if it doesn't exist and it is needed.
61723         Check for -lsec and acl_trivial (as used on Solaris 10).
61724         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61725         lib/file-has-acl.c.
61726         (Depends-on): Add sys_stat, for S_ISLNK.
61727
61728 2007-03-19  Ben Pfaff  <blp@gnu.org>
61729
61730         * doc/gnulib.texi: Fix typos.
61731         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61732
61733 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61734
61735         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61736         If size is zero here, buf must be zero.
61737
61738 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61739
61740         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61741         <bruno@clisp.org>.
61742
61743 2007-03-18  Bruno Haible  <bruno@clisp.org>
61744
61745         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61746         Suggested by Eric Blake.
61747
61748 2007-03-18  Ben Pfaff  <blp@gnu.org>
61749
61750         * doc/relocatable.texi: Recommend using as prefix a directory
61751         that does not exist and will never be created.  Based on
61752         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61753         and others.
61754
61755 2007-03-17  Bruno Haible  <bruno@clisp.org>
61756
61757         * lib/fchownat.c: Include lchown.h.
61758
61759 2007-03-17  Bruno Haible  <bruno@clisp.org>
61760
61761         Fix endless loop when the given allocated size was > INT_MAX.
61762         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61763         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61764         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61765         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61766         * lib/sprintf.c (sprintf): Likewise.
61767
61768 2007-03-17  Bruno Haible  <bruno@clisp.org>
61769
61770         * tests/test-argp-2.sh (func_compare): Output a context diff.
61771
61772 2007-03-17  Bruno Haible  <bruno@clisp.org>
61773
61774         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61775         locale's decimal-point character.
61776
61777 2007-03-17  Bruno Haible  <bruno@clisp.org>
61778
61779         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61780         before comparing it. Needed because on some platforms (e.g. x86) a
61781         'long double' occupies less bytes than sizeof (long double).
61782
61783 2007-03-17  Bruno Haible  <bruno@clisp.org>
61784
61785         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61786         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61787         * tests/test-getaddrinfo.c (simple): Likewise.
61788         * tests/test-read-file.c (main): Likewise.
61789
61790 2007-03-17  Bruno Haible  <bruno@clisp.org>
61791
61792         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61793
61794 2007-03-17  Bruno Haible  <bruno@clisp.org>
61795
61796         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61797         unused variable.
61798
61799 2007-03-17  Bruno Haible  <bruno@clisp.org>
61800
61801         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61802         * tests/test-c-strncasecmp.c: Likewise.
61803
61804 2007-03-17  Bruno Haible  <bruno@clisp.org>
61805
61806         * modules/stdlib (Depends-on): Add unistd.
61807         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61808         Needed for MacOS X 10.3.
61809
61810 2007-03-17  Bruno Haible  <bruno@clisp.org>
61811
61812         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61813
61814 2007-03-17  Bruno Haible  <bruno@clisp.org>
61815
61816         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61817
61818 2007-03-17  Bruno Haible  <bruno@clisp.org>
61819
61820         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61821         to reflect files copied from gnulib (with or without modifications).
61822         Suggested by Jim Meyering.
61823
61824 2007-03-17  Eric Blake  <ebb9@byu.net>
61825
61826         * NEWS: Document stdlib change from 2007-02-18.
61827
61828 2007-03-17  Jim Meyering  <jim@meyering.net>
61829
61830         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61831         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61832         someone uses a name containing shell meta-characters.
61833         Reported by Alfred M. Szmidt.
61834
61835         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61836
61837 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61838
61839         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61840         and copy gettext configuration files only if configure.ac contains
61841         a use of AM_GNU_GETTEXT_VERSION.
61842
61843 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61844
61845         * build-aux/bootstrap (gnulib_name): New variable.
61846         (gnulib_tool_options): Use it.
61847
61848 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61849
61850         * tests/test-des.c: Use new namespace.
61851
61852 2007-03-15  Bruno Haible  <bruno@clisp.org>
61853
61854         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61855         Reported by James Youngman <jay@gnu.org>.
61856
61857 2007-03-15  Bruno Haible  <bruno@clisp.org>
61858
61859         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61860         declared prototype. Needed with cc on OSF/1 5.1.
61861
61862 2007-03-15  Bruno Haible  <bruno@clisp.org>
61863
61864         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61865         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61866         (struct gl_list_implementation): Add dispose_fn argument to the
61867         'create_empty', 'create' methods.
61868         (struct gl_list_impl_base): Add field 'dispose_fn'.
61869         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61870         argument.
61871         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61872         dispose_fn argument.
61873         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61874         dispose_fn on the dropped values.
61875         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61876         dispose_fn argument.
61877         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61878         dropped values.
61879         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61880         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61881         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61882         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61883         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61884         argument.
61885         (gl_tree_list_free): Call dispose_fn on the dropped values.
61886         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61887         the dropped values.
61888         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61889         Add dispose_fn argument.
61890         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61891         Call dispose_fn on the dropped values.
61892         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61893         Add dispose_fn argument.
61894         (gl_sublist_create): Initialize the 'dispose_fn' field.
61895         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61896         * tests/test-array_list.c (main): Update.
61897         * tests/test-carray_list.c (main): Update.
61898         * tests/test-avltree_list.c (main): Update.
61899         * tests/test-rbtree_list.c (main): Update.
61900         * tests/test-avltreehash_list.c (main): Update.
61901         * tests/test-rbtreehash_list.c (main): Update.
61902         * tests/test-linked_list.c (main): Update.
61903         * tests/test-linkedhash_list.c (main): Update.
61904         * tests/test-array_oset.c (main): Update.
61905
61906 2007-03-15  Bruno Haible  <bruno@clisp.org>
61907
61908         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61909         (gl_oset_create_empty): Add dispose_fn argument.
61910         (struct gl_oset_implementation): Add dispose_fn argument to
61911         'create_empty' method.
61912         (struct gl_oset_impl_base): Add dispose_fn field.
61913         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61914         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61915         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61916         values.
61917         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61918         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61919         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61920         dropped value.
61921         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61922         dropped value.
61923         * tests/test-array_oset.c (main): Update.
61924         * tests/test-avltree_oset.c (main): Update.
61925         * tests/test-rbtree_oset.c (main): Update.
61926         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61927
61928 2007-03-13  Bruno Haible  <bruno@clisp.org>
61929
61930         * tests/test-stdbool.c (i): Update after last patch.
61931
61932 2007-03-12  Bruno Haible  <bruno@clisp.org>
61933
61934         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61935         the iswprint macro. Needed on Solaris 2.5.1.
61936
61937 2007-03-12  Bruno Haible  <bruno@clisp.org>
61938
61939         * tests/test-printf-frexp.c (main): Declare x as volatile.
61940
61941 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61942
61943         * doc/gnulib.texi (Build robot for gnulib): New section.
61944
61945 2007-03-12  Jim Meyering  <jim@meyering.net>
61946
61947         * build-aux/bootstrap: New file.
61948         * build-aux/bootstrap.conf: New file, from coreutils.
61949
61950 2007-03-11  Bruno Haible  <bruno@clisp.org>
61951
61952         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61953
61954 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61955
61956         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61957         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61958         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61959
61960 2007-03-11  Bruno Haible  <bruno@clisp.org>
61961
61962         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61963         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61964
61965 2007-03-11  Bruno Haible  <bruno@clisp.org>
61966
61967         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61968         formula. Needed for SunPRO C 5.0.
61969
61970 2007-03-11  Bruno Haible  <bruno@clisp.org>
61971
61972         * modules/long-options (Depends-on): Add getopt.
61973
61974 2007-03-11  Bruno Haible  <bruno@clisp.org>
61975
61976         * modules/modechange (Depends-on): Add stdbool.
61977
61978 2007-03-11  Bruno Haible  <bruno@clisp.org>
61979
61980         * modules/i-ring (Depends-on): Add stdbool.
61981
61982 2007-03-11  Bruno Haible  <bruno@clisp.org>
61983
61984         * modules/gc-des (Depends-on): Add stdbool.
61985
61986 2007-03-11  Bruno Haible  <bruno@clisp.org>
61987
61988         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61989
61990 2007-03-11  Bruno Haible  <bruno@clisp.org>
61991
61992         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61993
61994 2007-03-11  Bruno Haible  <bruno@clisp.org>
61995
61996         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61997
61998 2007-03-11  Bruno Haible  <bruno@clisp.org>
61999
62000         * lib/vasnprintf.c (sprintf): Undefine.
62001
62002 2007-03-11  Bruno Haible  <bruno@clisp.org>
62003
62004         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62005         initializers in SunPRO C and Compaq C compilers.
62006
62007 2007-03-11  Bruno Haible  <bruno@clisp.org>
62008
62009         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62010         decrementing code ANSI C compliant.
62011
62012 2007-03-11  Bruno Haible  <bruno@clisp.org>
62013
62014         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62015         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62016
62017 2007-03-11  Bruno Haible  <bruno@clisp.org>
62018
62019         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62020         <stdbool.h> substitute doesn't pass.
62021
62022 2007-03-11  Bruno Haible  <bruno@clisp.org>
62023
62024         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62025
62026 2007-03-11  Bruno Haible  <bruno@clisp.org>
62027
62028         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62029         script, for submission to autobuild.josefsson.org.
62030
62031 2007-03-10  Bruno Haible  <bruno@clisp.org>
62032
62033         * modules/canonicalize-lgpl-tests: New file.
62034         * tests/test-canonicalize-lgpl.sh: New file.
62035         * tests/test-canonicalize-lgpl.c: New file.
62036
62037         * modules/c-strcase-tests: New file.
62038         * tests/test-c-strcase.sh: New file.
62039         * tests/test-c-strcasecmp.c: New file.
62040         * tests/test-c-strncasecmp.c: New file.
62041
62042         * modules/atexit-tests: New file.
62043         * tests/test-atexit.sh: New file.
62044         * tests/test-atexit.c: New file.
62045
62046 2007-03-10  Bruno Haible  <bruno@clisp.org>
62047
62048         * tests/test-binary-io.sh: Use temporary filenames that are not so
62049         likely to clash with those of other tests (in a parallel make).
62050         * tests/test-binary-io.c: Likewise.
62051
62052 2007-03-10  Bruno Haible  <bruno@clisp.org>
62053
62054         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62055         fallback; use #error instead.
62056         Suggested by Simon Josefsson.
62057
62058 2007-03-10  Bruno Haible  <bruno@clisp.org>
62059
62060         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62061         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62062         first and the last.
62063
62064 2007-03-10  Bruno Haible  <bruno@clisp.org>
62065
62066         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62067
62068 2007-03-10  Bruno Haible  <bruno@clisp.org>
62069
62070         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62071         "make distcheck".
62072         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62073         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62074         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62075
62076 2007-03-10  Bruno Haible  <bruno@clisp.org>
62077
62078         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62079         variable.
62080         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62081         variable.
62082
62083 2007-03-09  Eric Blake  <ebb9@byu.net>
62084         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62085
62086         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62087         types are not being provided by gnulib.
62088         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62089         types are supported.
62090
62091 2007-03-10  Bruno Haible  <bruno@clisp.org>
62092
62093         * lib/stdio_.h (__attribute__): New macro.
62094         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62095         vsprintf): Specify __attribute__ __format__ for GCC.
62096         Suggested by Eric Blake.
62097
62098 2007-03-09  Bruno Haible  <bruno@clisp.org>
62099
62100         * modules/printf-posix-tests: New file.
62101         * tests/test-printf-posix.sh: New file.
62102         * tests/test-printf-posix.c: New file.
62103
62104         * modules/printf-posix: New file.
62105         * lib/printf.c: New file.
62106         * m4/printf-posix-rpl.m4: New file.
62107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62108         REPLACE_PRINTF.
62109         * lib/stdio_.h (printf): New declaration.
62110         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62111         ____strfmon____): New macros.
62112         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62113         REPLACE_PRINTF.
62114
62115 2007-03-09  Bruno Haible  <bruno@clisp.org>
62116
62117         * tests/test-vasnprintf-posix2.sh: New file.
62118         * tests/test-vasnprintf-posix2.c: New file.
62119         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62120         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62121         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62122
62123         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62124         a locale dependent decimal point, rather than always '.'.
62125
62126 2007-03-09  Eric Blake  <ebb9@byu.net>
62127
62128         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62129         spite of platforms like Tandem/NSK that define it to -1.
62130
62131 2007-03-08  Bruno Haible  <bruno@clisp.org>
62132
62133         * modules/vprintf-posix-tests: New file.
62134         * tests/test-vprintf-posix.sh: New file.
62135         * tests/test-vprintf-posix.c: New file.
62136         * tests/test-printf-posix.h: New file.
62137
62138         * modules/vprintf-posix: New file.
62139         * lib/vprintf.c: New file.
62140         * m4/vprintf-posix.m4: New file.
62141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62142         REPLACE_VPRINTF.
62143         * lib/stdio_.h (vprintf): New declaration.
62144         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62145         REPLACE_VPRINTF.
62146
62147 2007-03-08  Bruno Haible  <bruno@clisp.org>
62148
62149         * modules/fprintf-posix-tests: New file.
62150         * tests/test-fprintf-posix.sh: New file.
62151         * tests/test-fprintf-posix.c: New file.
62152
62153         * modules/fprintf-posix: New file.
62154         * lib/fprintf.c: New file.
62155         * m4/fprintf-posix.m4: New file.
62156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62157         REPLACE_FPRINTF.
62158         * lib/stdio_.h (fprintf): New declaration.
62159         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62160         REPLACE_FPRINTF.
62161
62162 2007-03-08  Bruno Haible  <bruno@clisp.org>
62163
62164         * modules/vfprintf-posix-tests: New file.
62165         * tests/test-vfprintf-posix.sh: New file.
62166         * tests/test-vfprintf-posix.c: New file.
62167         * tests/test-fprintf-posix.h: New file.
62168         * tests/test-fprintf-posix.out: New file.
62169
62170         * modules/vfprintf-posix: New file.
62171         * lib/vfprintf.c: New file.
62172         * m4/vfprintf-posix.m4: New file.
62173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62174         REPLACE_VFPRINTF.
62175         * lib/stdio_.h (vfprintf): New declaration.
62176         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62177         REPLACE_VFPRINTF.
62178
62179 2007-03-08  Bruno Haible  <bruno@clisp.org>
62180
62181         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62182
62183 2007-03-08  Bruno Haible  <bruno@clisp.org>
62184
62185         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62186         instead of 'expr' invocations.
62187         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62188         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62189         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62191         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62192         Suggested by Paul Eggert.
62193
62194 2007-03-08  Bruno Haible  <bruno@clisp.org>
62195
62196         * modules/fseterr-tests: New file.
62197         * tests/test-fseterr.c: New file.
62198
62199         * modules/fseterr: New file.
62200         * lib/fseterr.h: New file.
62201         * lib/fseterr.c: New file.
62202
62203 2007-03-08  Bruno Haible  <bruno@clisp.org>
62204
62205         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62206         * lib/getopt_.h: Likewise.
62207         * lib/mbswidth.h: Likewise.
62208         * lib/setenv.h: Likewise.
62209         * lib/vasnprintf.h: Likewise.
62210         * lib/vasprintf.h: Likewise.
62211         * lib/verror.h: Likewise.
62212         * lib/xsetenv.h: Likewise.
62213         * lib/xvasprintf.h: Likewise.
62214
62215 2007-03-08  Jim Meyering  <jim@meyering.net>
62216
62217         * users.txt: Add parted.
62218
62219         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62220
62221 2007-03-07  Bruno Haible  <bruno@clisp.org>
62222
62223         * m4/printf.m4: Make the shell script snippets copy&pastable.
62224
62225 2007-03-02  Bruno Haible  <bruno@clisp.org>
62226
62227         * lib/netinet_in_.h: New file.
62228         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62229         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62230         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62231         (Depends-on): Add absolute-header.
62232         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62233         into netinet/in.h.
62234
62235 2007-03-03  Bruno Haible  <bruno@clisp.org>
62236
62237         * lib/sys_select_.h: New file.
62238         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62239         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62240         * modules/sys_select (Files): Add lib/sys_select_.h.
62241         (Depends-on): Add absolute-header.
62242         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62243         into sys/select.h.
62244
62245 2007-03-02  Bruno Haible  <bruno@clisp.org>
62246
62247         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62248         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62249         values.
62250         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62251         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62252         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62253         * modules/sys_socket (Depends-on): Add absolute-header.
62254         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62255         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62256         (Include): Remove requirement of inclusion of <sys/types.h>.
62257
62258 2007-03-02  Bruno Haible  <bruno@clisp.org>
62259
62260         * lib/byteswap_.h (bswap_32): Fix formula.
62261
62262 2007-03-06  Bruno Haible  <bruno@clisp.org>
62263
62264         * modules/sprintf-posix-tests: New file.
62265         * tests/test-sprintf-posix.c: New file.
62266
62267         * modules/sprintf-posix: New file.
62268         * lib/sprintf.c: New file.
62269         * m4/sprintf-posix.m4: New file.
62270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62271         REPLACE_SPRINTF.
62272         * lib/stdio_.h (sprintf): New declaration.
62273         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62274         REPLACE_SPRINTF.
62275
62276 2007-03-06  Bruno Haible  <bruno@clisp.org>
62277
62278         * modules/vsprintf-posix-tests: New file.
62279         * tests/test-vsprintf-posix.c: New file.
62280         * tests/test-sprintf-posix.h: New file.
62281
62282         * modules/vsprintf-posix: New file.
62283         * lib/vsprintf.c: New file.
62284         * m4/vsprintf-posix.m4: New file.
62285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62286         REPLACE_VSPRINTF.
62287         * lib/stdio_.h (vsprintf): New declaration.
62288         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62289         REPLACE_VSPRINTF.
62290
62291 2007-03-06  Bruno Haible  <bruno@clisp.org>
62292
62293         * modules/vsnprintf (Depend-on): Remove minmax.
62294
62295 2007-03-06  Bruno Haible  <bruno@clisp.org>
62296
62297         * modules/snprintf-posix-tests: New file.
62298         * tests/test-snprintf-posix.c: New file.
62299
62300         * modules/snprintf-posix: New file.
62301         * m4/snprintf-posix.m4: New file.
62302         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62303         gl_FUNC_SNPRINTF.
62304         (gl_FUNC_SNPRINTF): Invoke it.
62305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62306         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62307         is set.
62308         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62309
62310 2007-03-06  Bruno Haible  <bruno@clisp.org>
62311
62312         * modules/vsnprintf-posix-tests: New file.
62313         * tests/test-vsnprintf-posix.c: New file.
62314         * tests/test-snprintf-posix.h: New file.
62315
62316         * modules/vsnprintf-posix: New file.
62317         * m4/vsnprintf-posix.m4: New file.
62318         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62319         gl_FUNC_VSNPRINTF.
62320         (gl_FUNC_VSNPRINTF): Invoke it.
62321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62322         * lib/stdio_.h (vsnprintf): Define as a replacement if
62323         REPLACE_VSNPRINTF is set.
62324         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62325
62326 2007-03-06  Bruno Haible  <bruno@clisp.org>
62327
62328         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62329         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62330
62331 2007-03-06  Bruno Haible  <bruno@clisp.org>
62332
62333         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62334         (asinl): Declare also if HAVE_DECL_ASINL is set.
62335         (atanl): Declare also if HAVE_DECL_ATANL is set.
62336         (ceill): Declare also if HAVE_DECL_CEILL is set.
62337         (cosl): Declare also if HAVE_DECL_COSL is set.
62338         (expl): Declare also if HAVE_DECL_EXPL is set.
62339         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62340         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62341         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62342         (logl): Declare also if HAVE_DECL_LOGL is set.
62343         (sinl): Declare also if HAVE_DECL_SINL is set.
62344         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62345         (tanl): Declare also if HAVE_DECL_TANL is set.
62346         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62348         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62349         declaration of frexpl, ldexpl.
62350         * modules/printf-frexpl (Depends-on): Add math.
62351         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62352
62353 2007-03-05  Bruno Haible  <bruno@clisp.org>
62354
62355         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62356         frexpl and ldexpl are declared.
62357         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62358
62359 2007-03-05  Bruno Haible  <bruno@clisp.org>
62360
62361         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62362         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62363
62364 2007-03-05  Bruno Haible  <bruno@clisp.org>
62365
62366         * lib/stdio_.h: Include <stddef.h>.
62367
62368 2007-03-05  Bruno Haible  <bruno@clisp.org>
62369
62370         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62371
62372 2007-03-05  Bruno Haible  <bruno@clisp.org>
62373
62374         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62375         NetBSD 4, from Ralf Wildenhues.
62376
62377 2007-03-04  Bruno Haible  <bruno@clisp.org>
62378
62379         * lib/vasprintf.h: Update #if logic for the case when the functions
62380         exist but are overridden.
62381
62382 2007-03-04  Bruno Haible  <bruno@clisp.org>
62383
62384         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62385         implementations: glibc-2.4 and MacOS X 10.3.
62386         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62387         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62388         * tests/test-vasprintf-posix.c (test_function): Likewise.
62389
62390 2007-03-04  Bruno Haible  <bruno@clisp.org>
62391
62392         * modules/vasprintf-posix-tests: New file.
62393         * tests/test-vasprintf-posix.c: New file.
62394
62395         * modules/vasprintf-posix: New file.
62396         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62397         defined.
62398         * m4/vasprintf-posix.m4: New file.
62399         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62400         gl_FUNC_VASPRINTF.
62401         (gl_FUNC_VASPRINTF): Invoke it.
62402         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62403         here.
62404         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62405
62406 2007-03-04  Bruno Haible  <bruno@clisp.org>
62407
62408         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62409         REPLACE_GETTIMEOFDAY.
62410         * modules/sys_time (Makefile.am): Likewise.
62411         * m4/sys_time_h.m4: Likewise.
62412         * m4/gettimeofday.m4: Likewise.
62413
62414 2007-03-04  Bruno Haible  <bruno@clisp.org>
62415
62416         * modules/vasnprintf-posix-tests: New file.
62417         * tests/test-vasnprintf-posix.c: New file.
62418
62419         * modules/vasnprintf-posix: New file.
62420         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62421         printf-frexpl.h.
62422         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62423         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62424         REPLACE_VASNPRINTF is defined.
62425         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62426         gl_FUNC_VASNPRINTF.
62427         (gl_FUNC_VASNPRINTF): Invoke it.
62428         * m4/vasnprintf-posix.m4: New file.
62429         * m4/printf.m4: New file.
62430
62431 2007-03-04  Bruno Haible  <bruno@clisp.org>
62432
62433         Compile progreloc.c only if --enable-relocatable is specified.
62434         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62435         if --enable-relocatable was specified.
62436         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62437         lib_SOURCES.
62438
62439 2007-03-04  Jim Meyering  <jim@meyering.net>
62440
62441         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62442         Use it consistently, rather than enumerating errno constants.
62443
62444 2007-03-04  Bruno Haible  <bruno@clisp.org>
62445
62446         * modules/xvasprintf-tests: New file.
62447         * tests/test-xvasprintf.c: New file.
62448
62449         * modules/vasprintf-tests: New file.
62450         * tests/test-vasprintf.c: New file.
62451
62452         * modules/vasnprintf-tests: New file.
62453         * tests/test-vasnprintf.c: New file.
62454
62455         * modules/vsnprintf-tests: New file.
62456         * tests/test-vsnprintf.c: New file.
62457
62458         * modules/snprintf-tests: New file.
62459         * tests/test-snprintf.c: New file.
62460
62461 2007-03-04  Bruno Haible  <bruno@clisp.org>
62462
62463         Compile relocatable.c only if --enable-relocatable is specified.
62464         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62465         gl_RELOCATABLE_LIBRARY.
62466         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62467         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62468         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62469         gl_RELOCATABLE_LIBRARY.
62470         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62471         (Makefile.am): Remove lib_SOURCES.
62472         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62473         gl_RELOCATABLE_LIBRARY.
62474         (Makefile.am): Remove lib_SOURCES.
62475         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62476         always.
62477         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62478         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62479
62480 2007-03-04  Bruno Haible  <bruno@clisp.org>
62481
62482         * modules/argmatch-tests: New file.
62483         * tests/test-argmatch.c: New file.
62484
62485         * tests/test-allocsa.c (main): Halve the number of loop runs.
62486
62487         * modules/alloca-opt-tests: New file.
62488         * tests/test-alloca-opt.c: New file.
62489
62490 2007-03-04  Jim Meyering  <jim@meyering.net>
62491
62492         Work around difference between Linux ACLs and Solaris 10 ZFS.
62493         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62494         for EINVAL.
62495
62496 2007-03-03  Bruno Haible  <bruno@clisp.org>
62497
62498         * modules/relocatable-prog (Depends-on): Add back progreloc's
62499         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62500
62501 2007-03-03  Bruno Haible  <bruno@clisp.org>
62502
62503         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62504         * modules/relocatable-lib: New file.
62505
62506 2007-03-03  Bruno Haible  <bruno@clisp.org>
62507
62508         * modules/relocatable-prog: Renamed from modules/relocatable.
62509         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62510
62511 2007-03-03  Bruno Haible  <bruno@clisp.org>
62512
62513         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62514         m4/relocatable-lib.m4.
62515         (Depends-on): Remove 'relocatable'.
62516         (configure.ac): Add gl_RELOCATABLE_NOP.
62517
62518 2007-03-03  Bruno Haible  <bruno@clisp.org>
62519
62520         * modules/relocatable-prog-wrapper: New file.
62521         * modules/relocatable (Depends-on): Add it. Remove all other
62522         dependencies except progname.
62523         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62524
62525         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62526         (gl_FUNC_STRERROR): Nop.
62527         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62528
62529         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62530         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62531
62532         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62533         (gl_FUNC_READLINK): Update.
62534
62535         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62536
62537 2007-03-03  Bruno Haible  <bruno@clisp.org>
62538
62539         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62540         * modules/xreadlink (Depends-on): Add unistd.
62541         * modules/xreadlink-with-size (Depends-on): Likewise.
62542
62543 2007-03-03  Bruno Haible  <bruno@clisp.org>
62544
62545         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62546         extracted from gt_FUNC_SETENV.
62547         (gt_FUNC_SETENV): Remove macro.
62548         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62549         remove gt_FUNC_SETENV.
62550
62551 2007-03-03  Bruno Haible  <bruno@clisp.org>
62552
62553         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62554         ENABLE_RELOCATABLE here.
62555         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62556
62557 2007-03-03  Bruno Haible  <bruno@clisp.org>
62558
62559         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62560         * tests/test-rbtreehash_list.c: Include progname.h.
62561         (main): Call set_program_name.
62562
62563         * modules/rbtree-oset-tests (Depends-on): Add progname.
62564         * tests/test-rbtree_oset.c: Include progname.h.
62565         (main): Call set_program_name.
62566
62567         * modules/rbtree-list-tests (Depends-on): Add progname.
62568         * tests/test-rbtree_list.c: Include progname.h.
62569         (main): Call set_program_name.
62570
62571         * modules/linked-list-tests (Depends-on): Add progname.
62572         * tests/test-linked_list.c: Include progname.h.
62573         (main): Call set_program_name.
62574
62575 2007-03-03  Bruno Haible  <bruno@clisp.org>
62576
62577         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62578         All uses of __restrict changed to _Restrict_.
62579         * lib/glob_.h (__restrict): Remove macro.
62580
62581 2007-03-02  Bruno Haible  <bruno@clisp.org>
62582
62583         * modules/gettext (configure.ac): Require gettext infrastructure
62584         from version 0.16.1.
62585
62586 2007-03-02  Bruno Haible  <bruno@clisp.org>
62587
62588         * modules/linkedhash-list-tests (Depends-on): Add progname.
62589         * tests/test-linkedhash_list.c: Include progname.h.
62590         (main): Call set_program_name.
62591
62592         * modules/carray-list-tests (Depends-on): Add progname.
62593         * tests/test-carray_list.c: Include progname.h.
62594         (main): Call set_program_name.
62595
62596         * modules/avltreehash-list-tests (Depends-on): Add progname.
62597         * tests/test-avltreehash_list.c: Include progname.h.
62598         (main): Call set_program_name.
62599
62600         * modules/avltree-oset-tests (Depends-on): Add progname.
62601         * tests/test-avltree_oset.c: Include progname.h.
62602         (main): Call set_program_name.
62603
62604         * modules/avltree-list-tests (Depends-on): Add progname.
62605         * tests/test-avltree_list.c: Include progname.h.
62606         (main): Call set_program_name.
62607
62608         * modules/array-oset-tests (Depends-on): Add progname.
62609         * tests/test-array_oset.c: Include progname.h.
62610         (main): Call set_program_name.
62611
62612         * modules/array-list-tests (Depends-on): Add progname.
62613         * tests/test-array_list.c: Include progname.h.
62614         (main): Call set_program_name.
62615
62616         * modules/argp-tests (Depends-on): Add progname.
62617         * tests/test-argp.c: Include argp.h first. Include progname.h.
62618         (main): Call set_program_name.
62619
62620 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62621
62622         * doc/gnulib-tool.texi (Initial import): Reword description of
62623         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62624         limited effect even if defined after the first system include.
62625
62626 2007-03-01  Bruno Haible  <bruno@clisp.org>
62627
62628         * build-aux/config.libpath: Update to libtool-1.5.22.
62629         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62630
62631 2007-03-01  Bruno Haible  <bruno@clisp.org>
62632
62633         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62634         foo_CFLAGS.
62635         Reported by Ralf Wildenhues.
62636
62637 2007-03-01  Bruno Haible  <bruno@clisp.org>
62638
62639         * build-aux/install-reloc: Remove object files left over by some
62640         compilers.
62641         Reported by Ralf Wildenhues.
62642
62643 2007-03-01  Bruno Haible  <bruno@clisp.org>
62644
62645         * build-aux/install-reloc: Break long lines.
62646
62647 2007-03-01  Bruno Haible  <bruno@clisp.org>
62648
62649         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62650         Reported by Ralf Wildenhues.
62651
62652 2007-03-01  Bruno Haible  <bruno@clisp.org>
62653
62654         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62655         include ordering constraints.
62656
62657 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62658
62659         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62660         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62661         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62662         as another example.
62663         * lib/time_.h: Fix misspelling.
62664         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62665         Require gl_HEADER_TIME_H_DEFAULTS.
62666         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62667         * m4/time_r.m4 (gl_TIME_R): Likewise.
62668         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62669
62670 2007-03-01  Bruno Haible  <bruno@clisp.org>
62671
62672         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62673         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62674
62675 2007-03-01  Jim Meyering  <jim@meyering.net>
62676
62677         * modules/xreadlink (Maintainer): Add my name.
62678         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62679
62680 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62681             Bruno Haible  <bruno@clisp.org>
62682
62683         * build-aux/install-reloc: Compile also c-ctype.c.
62684         * build-aux/relocatable.sh.in: New file.
62685         * doc/relocatable.texi: New file.
62686         * doc/relocatable-maint.texi: New file.
62687         * doc/gnulib.texi: Include relocatable-maint.texi.
62688         * lib/progreloc.c: Include unistd.h unconditionally.
62689         * lib/relocwrapper.c: Include unistd.h unconditionally.
62690         Include c-ctype.h.
62691         (add_dotbin): Use c_tolower.
62692         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62693         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62694         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62695         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62696         to m4/relocatable-lib.m4.
62697         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62698         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62699         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62700         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62701         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62702         * modules/relocatable: New file.
62703         * modules/relocatable-lib: New file.
62704         * modules/relocatable-script: New file.
62705
62706 2007-02-28  Bruno Haible  <bruno@clisp.org>
62707
62708         Import --enable-relocatable infrastructure.
62709         * build-aux/config.libpath: New file, from GNU gettext.
62710         * build-aux/install-reloc: New file, from GNU gettext.
62711         * build-aux/reloc-ldflags: New file, from GNU gettext.
62712         * lib/relocatable.h: New file, from GNU gettext.
62713         * lib/relocatable.c: New file, from GNU gettext.
62714         * lib/relocwrapper.c: New file, from GNU gettext.
62715         * m4/relocatable.m4: New file, from GNU gettext.
62716
62717 2007-02-28  Bruno Haible  <bruno@clisp.org>
62718
62719         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62720
62721         * modules/xreadlink: New file, from GNU gettext with modifications.
62722         * lib/xreadlink.c: New file, from GNU gettext.
62723         * lib/xreadlink.h: Add comments.
62724         (xreadlink): New declaration.
62725
62726         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62727         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62728         lib/xreadlink-with-size.c.
62729         (configure.ac): Remove gl_XREADLINK invocation.
62730         (Makefile.am): Augment lib_SOURCES.
62731         * m4/xreadlink.m4: Remove file.
62732         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62733         (xreadlink_with_size): Renamed from xreadink.
62734         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62735         * modules/canonicalize (Depends-on): Replace xreadlink with
62736         xreadlink-with-size.
62737         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62738
62739 2007-02-25  Jim Meyering  <jim@meyering.net>
62740
62741         * build-aux/announce-gen: When complaining about excess arguments,
62742         list them.
62743
62744 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62745
62746         * README: Document signed integer overflow situation more
62747         accurately.
62748
62749 2007-02-25  Bruno Haible  <bruno@clisp.org>
62750
62751         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62752         'a' or 'A' conversion.
62753
62754 2007-02-25  Bruno Haible  <bruno@clisp.org>
62755
62756         * modules/filename: Renamed from modules/pathname.
62757         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62758         lib/concatpath.c with lib/concat-filename.c.
62759         (Makefile.am): Update.
62760         (Include): Replace pathname.h with filename.h.
62761         * lib/filename.h: Renamed from lib/pathname.h.
62762         (concatenated_filename): Renamed from concatenated_pathname.
62763         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62764         (concatenated_filename): Renamed from concatenated_pathname.
62765         * lib/findprog.c: Include filename.h instead of pathname.h.
62766         (find_in_path): Update.
62767         * lib/javacomp.c: Include filename.h instead of pathname.h.
62768         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62769         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62770         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62771         is_oldgcj_14_13_usable, is_javac_usable): Update.
62772         * lib/javaexec.c: Include filename.h instead of pathname.h.
62773         (execute_java_class): Update.
62774         * modules/findprog: Update.
62775         * modules/javacomp: Update.
62776         * modules/javaexec: Update.
62777         * MODULES.html.sh (File system functions): Add 'filename', remove
62778         'pathname'.
62779
62780 2007-02-25  Bruno Haible  <bruno@clisp.org>
62781
62782         * modules/printf-frexpl-tests: New file.
62783         * tests/test-printf-frexpl.c: New file.
62784
62785         * modules/printf-frexpl: New file.
62786         * lib/printf-frexpl.h: New file.
62787         * lib/printf-frexpl.c: New file.
62788         * m4/printf-frexpl.m4: New file.
62789
62790 2007-02-25  Bruno Haible  <bruno@clisp.org>
62791
62792         * modules/printf-frexp-tests: New file.
62793         * tests/test-printf-frexp.c: New file.
62794
62795         * modules/printf-frexp: New file.
62796         * lib/printf-frexp.h: New file.
62797         * lib/printf-frexp.c: New file.
62798         * m4/printf-frexp.m4: New file.
62799
62800 2007-02-25  Bruno Haible  <bruno@clisp.org>
62801
62802         Assume automake >= 1.10 for the tests.
62803         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62804         * modules/arctwo-tests: Likewise.
62805         * modules/argp-tests: Likewise.
62806         * modules/avltree-list-tests: Likewise.
62807         * modules/avltree-oset-tests: Likewise.
62808         * modules/avltreehash-list-tests: Likewise.
62809         * modules/carray-list-tests: Likewise.
62810         * modules/crc-tests: Likewise.
62811         * modules/des-tests: Likewise.
62812         * modules/gc-arcfour-tests: Likewise.
62813         * modules/gc-arctwo-tests: Likewise.
62814         * modules/gc-des-tests: Likewise.
62815         * modules/gc-hmac-md5-tests: Likewise.
62816         * modules/gc-hmac-sha1-tests: Likewise.
62817         * modules/gc-md2-tests: Likewise.
62818         * modules/gc-md4-tests: Likewise.
62819         * modules/gc-md5-tests: Likewise.
62820         * modules/gc-pbkdf2-sha1-tests: Likewise.
62821         * modules/gc-rijndael-tests: Likewise.
62822         * modules/gc-sha1-tests: Likewise.
62823         * modules/gc-tests: Likewise.
62824         * modules/getaddrinfo-tests: Likewise.
62825         * modules/hmac-md5-tests: Likewise.
62826         * modules/hmac-sha1-tests: Likewise.
62827         * modules/linked-list-tests: Likewise.
62828         * modules/linkedhash-list-tests: Likewise.
62829         * modules/lock-tests: Likewise.
62830         * modules/md2-tests: Likewise.
62831         * modules/md4-tests: Likewise.
62832         * modules/md5-tests: Likewise.
62833         * modules/rbtree-list-tests: Likewise.
62834         * modules/rbtree-oset-tests: Likewise.
62835         * modules/rbtreehash-list-tests: Likewise.
62836         * modules/read-file-tests: Likewise.
62837         * modules/rijndael-tests: Likewise.
62838         * modules/stdint-tests: Likewise.
62839         * modules/tls-tests: Likewise.
62840
62841 2007-02-24  Bruno Haible  <bruno@clisp.org>
62842
62843         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62844         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62845         function; instead check whether isnan with a double argument links.
62846         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62847         function; instead check whether isnan with a 'long double' argument
62848         links.
62849         Reported by Eric Blake <ebb9@byu.net>.
62850
62851 2007-02-24  Bruno Haible  <bruno@clisp.org>
62852
62853         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62854         defined.
62855         * lib/isnanl.c: Remove all code. Just include isnan.c.
62856         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62857
62858 2007-02-25  Jim Meyering  <jim@meyering.net>
62859
62860         Avoid conflicting types for 'unsetenv' on FreeBSD.
62861         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62862         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62863         in stdlib.h.
62864
62865 2007-02-24  Bruno Haible  <bruno@clisp.org>
62866
62867         * modules/isnanl-nolibm-tests: New file.
62868         * tests/test-isnanl.c: New file.
62869
62870         * modules/isnanl-nolibm: New file.
62871         * lib/isnanl.h: New file.
62872         * lib/isnanl.c: New file.
62873         * m4/isnanl.m4: New file.
62874
62875 2007-02-24  Bruno Haible  <bruno@clisp.org>
62876
62877         * modules/isnan-nolibm-tests: New file.
62878         * tests/test-isnan.c: New file.
62879
62880         * modules/isnan-nolibm: New file.
62881         * lib/isnan.h: New file.
62882         * lib/isnan.c: New file.
62883         * m4/isnan.m4: New file.
62884
62885 2007-02-24  Bruno Haible  <bruno@clisp.org>
62886
62887         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62888         assume that an exponent fits in 20 bits.
62889
62890 2007-02-24  Jim Meyering  <jim@meyering.net>
62891
62892         * m4/regex.m4: Update the description of the configure-time option,
62893         --without-included-regex, to state accurately what the defaults are,
62894         and perhaps to give people an idea why using this option is risky.
62895
62896 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62897
62898         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62899         loops on small arguments.  This attempts to avoid the problem
62900         Bruno Haible reported for AIX 4.3.2 in
62901         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62902
62903 2007-02-23  Bruno Haible  <bruno@clisp.org>
62904
62905         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62906         Needed for help2man.
62907
62908 2007-02-23  Karl Berry  <karl@gnu.org>
62909
62910         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62911         exists, foo.h should be cvs-ignored, not committed.
62912
62913 2007-02-23  Eric Blake  <ebb9@byu.net>
62914
62915         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62916         * lib/stat-time.h (includes): Likewise.
62917         * lib/utimecmp.c (includes): Likewise.
62918         * lib/utimens.h (includes): Likewise.
62919         * lib/getdate.y (includes): Also include "timespec.h" for use
62920         internal to the module.
62921         * modules/utimens (Depends-on): Revert yesterday's patch.
62922         * modules/nanosleep (Depends-on): Add missing dependency.
62923
62924 2007-02-22  Bruno Haible  <bruno@clisp.org>
62925
62926         * lib/glob.c: Don't include getlogin_r.h.
62927
62928 2007-02-22  Jim Meyering  <jim@meyering.net>
62929
62930         * modules/utimens (Depends-on): Add timespec, required for
62931         utimens.h's inclusion of timespec.h.
62932
62933 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62934
62935         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62936         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62937         Schwab in
62938         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62939         I'll try to think of a better way to fix the Solaris problem.
62940
62941         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62942         like glibc; on Solaris 10, it fails with errno == EINVAL.
62943         POSIX says the behavior is unspecified if the first argument is NULL,
62944         so play it safe and never pass NULL to the system getcwd.
62945
62946 2007-02-21  Jim Meyering  <jim@meyering.net>
62947
62948         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62949         of gettimeofday.  It would conflict with the one now always
62950         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62951         an IRIX 6.5 build failure.
62952
62953 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62954
62955         Minor fixups to port to Solaris 10 with Sun C 5.8.
62956         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62957         * modules/getcwd (Depends-on): Add dirfd.
62958         * lib/putenv.c (putenv): #undef it.
62959         (rpl_putenv): New decl.
62960         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62961
62962 2007-02-20  Bruno Haible  <bruno@clisp.org>
62963
62964         * modules/stdio-tests: New file.
62965         * tests/test-stdio.c: New file.
62966
62967         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62968         (Depends-on): Add stdio.
62969         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62970         (Include): Use <stdio.h> instead of vsnprintf.h.
62971         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62972         HAVE_DECL_VSNPRINTF.
62973         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62974
62975         * modules/snprintf (Files): Remove lib/snprintf.h.
62976         (Depends-on): Add stdio.
62977         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62978         (Include): Use <stdio.h> instead of snprintf.h.
62979         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62980         HAVE_DECL_SNPRINTF.
62981         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62982         * lib/getaddrinfo.c: Likewise.
62983
62984         * modules/stdio: New file.
62985         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62986         * lib/snprintf.h: Remove file.
62987         * lib/vsnprintf.h: Remove file.
62988         * lib/.cppi-disable: Remove snprintf.h.
62989         * m4/stdio_h.m4: New file.
62990         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62991
62992 2007-02-20  Jim Meyering  <jim@meyering.net>
62993
62994         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62995         used by e.g., mingw.  From Bruno Haible.
62996
62997 2007-02-19  Bruno Haible  <bruno@clisp.org>
62998
62999         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63000         warnings.
63001         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63002
63003 2007-02-19  Bruno Haible  <bruno@clisp.org>
63004
63005         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63006         from mingw users.
63007
63008 2007-02-19  Bruno Haible  <bruno@clisp.org>
63009
63010         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63011         warnings.
63012         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63013
63014 2007-02-19  Jim Meyering  <jim@meyering.net>
63015
63016         Don't use FD after a successful "fdopendir (fd)".
63017         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63018         Reset it by calling dirfd on the just-obtained DIR*.
63019
63020         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63021         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63022
63023 2007-02-18  Bruno Haible  <bruno@clisp.org>
63024
63025         * lib/readlink.c: Include <unistd.h>.
63026         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63027         HAVE_READLINK.
63028         * modules/readlink (Depends-on): Add unistd.
63029         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63030         (Include): Add <unistd.h>.
63031
63032         * lib/getlogin_r.h: Remove file.
63033         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63034         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63035         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63036         HAVE_DECL_GETLOGIN_R.
63037         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63038         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63039         (Include): Use <unistd.h> instead of getlogin_r.h.
63040
63041         * lib/getcwd.h: Remove file.
63042         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63043         * lib/xgetcwd.c: Likewise.
63044         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63045         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63046         * modules/getcwd (Files): Remove lib/getcwd.h.
63047         (Depends-on): Add unistd.
63048         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63049         (Include): Use <unistd.h> instad of getcwd.h.
63050
63051         * lib/ftruncate.c: Include <unistd.h> first.
63052         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63053         Set HAVE_FTRUNCATE.
63054         * modules/ftruncate (Depends-on): Add unistd.
63055         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63056
63057         * lib/fchdir.c: Include <unistd.h> first.
63058         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63059         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63060         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63061         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63062         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63063
63064         * lib/dup2.c: Include <unistd.h> first.
63065         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63066         HAVE_DUP2.
63067         * modules/dup2 (Depends-on): Add unistd.
63068         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63069
63070         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63071         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63072         REPLACE_CHOWN. Don't define chown as a macro here.
63073         * modules/chown (Depends-on): Add unistd.
63074         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63075
63076         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63077         Add definition for GL_LINK_WARNING.
63078         (chown, dup2): New declarations.
63079         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63080         link warning.
63081         (ftruncate): New declaration.
63082         (getcwd): New declaration, taken from old getcwd.h.
63083         (getlogin_r): New declaration, taken from old getlogin_r.h.
63084         (readlink): New declaration.
63085         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63086         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63087         (gl_PREREQ_UNISTD): Remove macro.
63088         (gl_UNISTD_MODULE_INDICATOR): New macro.
63089         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63090         many new variables. Don't set UNISTD_H.
63091         * modules/unistd (Description): Change.
63092         (Depends-on): Add link-warning.
63093         (configure.ac): Update.
63094         (Makefile.am): Create unistd.h always. Substitute many new variables
63095         into it.
63096
63097 2007-02-18  Bruno Haible  <bruno@clisp.org>
63098
63099         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63100         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63101         HAVE_GETSUBOPT.
63102         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63103         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63104         * lib/getsubopt.h: Remove file.
63105         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63106         (Depends-on): Add stdlib.
63107         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63108         (Includes): Use <stdlib.h> instead of getsubopt.h.
63109         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63110         Set HAVE_GETSUBOPT.
63111         * lib/getsubopt.c: Don't include getsubopt.h.
63112
63113 2007-02-18  Bruno Haible  <bruno@clisp.org>
63114
63115         * modules/fchdir (Depends-on): Add dup2.
63116
63117 2007-02-18  Bruno Haible  <bruno@clisp.org>
63118
63119         * lib/stdlib_.h: Handle glibc's special invocation convention
63120         specially.
63121
63122 2007-02-18  Bruno Haible  <bruno@clisp.org>
63123
63124         * modules/stdlib-tests: New file.
63125         * tests/test-stdlib.c: New file.
63126
63127         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63128         (Depends-on): Add stdlib.
63129         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63130         (Includes): Use <stdlib.h> instead of mkstemp.h.
63131         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63132         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63133         * lib/mkstemp.c: Don't include mkstemp.h.
63134         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63135         * lib/stdlib--.h: Don't include mkstemp.h.
63136
63137         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63138         (Depends-on): Add stdlib.
63139         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63140         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63141         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63142         HAVE_MKDTEMP.
63143         * lib/mkdtemp.c: Don't include mkdtemp.h.
63144         * lib/clean-temp.c: Don't include mkdtemp.h.
63145
63146         * modules/exit (Files): Remove lib/exit.h.
63147         (Depends-on): Add stdlib.
63148         (Makefile.am): Remove lib_SOURCES.
63149         (Include): Use <stdlib.h> instead of exit.h.
63150         * lib/argmatch.c: Don't include exit.h.
63151         * lib/execute.c: Likewise.
63152         * lib/pagealign_alloc.c: Likewise.
63153         * lib/pipe.c: Likewise.
63154         * lib/wait-process.c: Likewise.
63155         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63156         * lib/exitfail.c: Likewise.
63157         * lib/savewd.c: Likewise.
63158         * lib/xsetenv.c: Likewise.
63159
63160         * modules/stdlib: New file.
63161         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63162         and extra comments about mkstemp().
63163         * lib/exit.h: Remove file.
63164         * lib/mkdtemp.h: Remove file.
63165         * lib/mkstemp.h: Remove file.
63166         * m4/stdlib_h.m4: New file.
63167         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63168
63169 2007-02-18  Bruno Haible  <bruno@clisp.org>
63170
63171         * modules/math-tests: New file.
63172         * tests/test-math.c: New file.
63173
63174         * modules/math: New file.
63175         * modules/mathl (Files): Remove lib/mathl.h.
63176         (Depends-on): Add math.
63177         (Makefile.am): Don't mention mathl.h.
63178         (Include): Use <math.h> instead of mathl.h.
63179         * lib/math_.h: New file.
63180         * lib/mathl.h: Remove file.
63181         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63182         mathl.h.
63183         * lib/asinl.c: Likewise.
63184         * lib/atanl.c: Likewise.
63185         * lib/ceill.c: Likewise.
63186         * lib/cosl.c: Likewise.
63187         * lib/expl.c: Likewise.
63188         * lib/floorl.c: Likewise.
63189         * lib/frexpl.c: Likewise.
63190         * lib/ldexpl.c: Likewise.
63191         * lib/logl.c: Likewise.
63192         * lib/sincosl.c: Likewise.
63193         * lib/sinl.c: Likewise.
63194         * lib/sqrtl.c: Likewise.
63195         * lib/tanl.c: Likewise.
63196         * lib/trigl.c: Likewise.
63197         * m4/math_h.m4: New file.
63198         * MODULES.html.sh (Mathematics): Add math.
63199
63200 2007-02-17  Bruno Haible  <bruno@clisp.org>
63201
63202         * modules/wctype-tests: New file.
63203         * tests/test-wctype.c: New file.
63204
63205         * modules/wchar-tests: New file.
63206         * tests/test-wchar.c: New file.
63207
63208         * modules/unistd-tests: New file.
63209         * tests/test-unistd.c: New file.
63210
63211         * modules/time-tests: New file.
63212         * tests/test-time.c: New file.
63213
63214         * modules/sysexits-tests: New file.
63215         * tests/test-sysexits.c: New file.
63216
63217         * modules/sys_time-tests: New file.
63218         * tests/test-sys_time.c: New file.
63219
63220         * modules/sys_stat-tests: New file.
63221         * tests/test-sys_stat.c: New file.
63222
63223         * modules/sys_socket-tests: New file.
63224         * tests/test-sys_socket.c: New file.
63225
63226         * modules/sys_select-tests: New file.
63227         * tests/test-sys_select.c: New file.
63228
63229         * modules/string-tests: New file.
63230         * tests/test-string.c: New file.
63231
63232         * modules/stdbool-tests: New file.
63233         * tests/test-stdbool.c: New file.
63234
63235         * modules/netinet_in-tests: New file.
63236         * tests/test-netinet_in.c: New file.
63237
63238         * modules/inttypes-tests: New file.
63239         * tests/test-inttypes.c: New file.
63240
63241         * modules/fcntl-tests: New file.
63242         * tests/test-fcntl.c: New file.
63243
63244         * modules/byteswap-tests: New file.
63245         * tests/test-byteswap.c: New file.
63246
63247         * modules/arpa_inet-tests: New file.
63248         * tests/test-arpa_inet.c: New file.
63249
63250 2007-02-17  Bruno Haible  <bruno@clisp.org>
63251
63252         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63253         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63254         if the corresponding module is not enabled. Emit link warnings if
63255         the function is used nevertheless.
63256         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63257         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63258         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63259         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63260         * modules/inttypes (Depends-on): Add link-warning.
63261         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63262         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63263         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63264         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63265         * modules/imaxdiv (configure.ac): Likewise.
63266         * modules/strtoimax (configure.ac): Likewise.
63267         * modules/strtoumax (configure.ac): Likewise.
63268
63269 2007-02-17  Bruno Haible  <bruno@clisp.org>
63270
63271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63272         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63273         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63274         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63275
63276 2007-02-17  Bruno Haible  <bruno@clisp.org>
63277
63278         * modules/link-warning: New file.
63279         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63280         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63281         * modules/string (Depends-on): Add link-warning.
63282         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63283         string.h.
63284         * MODULES.html.sh (Support for building libraries and executables): Add
63285         link-warning.
63286
63287 2007-02-17  Bruno Haible  <bruno@clisp.org>
63288
63289         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63290         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63291         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63292         long lines.
63293
63294 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63295             Bruno Haible  <bruno@clisp.org>
63296
63297         * modules/tmpfile: New file.
63298         * lib/tmpfile.c: New file.
63299         * m4/tmpfile.m4: New file.
63300         * MODULES.html.sh (func_all_modules): New section "Input/output".
63301
63302 2007-02-15  Bruno Haible  <bruno@clisp.org>
63303
63304         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63305         (supports_delete_on_close): New function.
63306         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63307
63308 2007-02-14  Bruno Haible  <bruno@clisp.org>
63309
63310         * modules/mbspcasecmp-tests: New file.
63311         * tests/test-mbspcasecmp.sh: New file.
63312         * tests/test-mbspcasecmp.c: New file.
63313
63314         New module mbspcasecmp.
63315         * modules/mbspcasecmp: New file.
63316         * lib/mbspcasecmp.c: New file.
63317         * lib/string_.h (strncasecmp): Change warning message.
63318         (mbspcasecmp): New declaration.
63319         * m4/mbspcasecmp.m4: New file.
63320         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63321         GNULIB_MBSPCASECMP.
63322         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63323         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63324
63325 2007-02-14  Bruno Haible  <bruno@clisp.org>
63326
63327         * modules/mbsncasecmp-tests: New file.
63328         * tests/test-mbsncasecmp.sh: New file.
63329         * tests/test-mbsncasecmp.c: New file.
63330
63331         New module mbsncasecmp.
63332         * modules/mbsncasecmp: New file.
63333         * lib/mbsncasecmp.c: New file.
63334         * lib/string_.h (mbsncasecmp): New declaration.
63335         * m4/mbsncasecmp.m4: New file.
63336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63337         GNULIB_MBSNCASECMP.
63338         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63339         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63340
63341 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63342
63343         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63344         Verify that it doesn't overlap with our flags.
63345         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63346         do not have the desired effect in multibyte locales; instead, use
63347         mbscasecmp.
63348         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63349         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63350         we don't require GNU fnmatch ourselves (if our users require it, they
63351         should do so explicitly).
63352
63353         Fix regex code so it doesn't rely on strcasecmp.
63354         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63355         Otherwise, include gnulib's langinfo.h.
63356         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63357         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63358         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63359         * modules/regex (FILES): Remove m4/codeset.m4.
63360         (Depends-on): Add localcharset.  Remove strcase.
63361
63362 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63363
63364         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63365         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63366
63367 2007-02-13  Bruno Haible  <bruno@clisp.org>
63368
63369         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63370         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63371
63372 2007-02-12  Bruno Haible  <bruno@clisp.org>
63373
63374         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63375         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63376         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63377         time warning rather than a link error.
63378
63379 2007-02-12  Bruno Haible  <bruno@clisp.org>
63380
63381         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63382         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63383         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63384
63385 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63386
63387         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63388         args, not 2.
63389
63390 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63391
63392         New module 'time', so that apps can include <time.h> as per
63393         POSIX and GNU instead of separate include files like time_r.h
63394         and timegm.h.  This implementation tries out a simpler approach
63395         for replacing decls in standard include files (as compared to
63396         the string module), somewhat as an experiment.
63397
63398         * config/srclist.txt: Comment out mktime.c for now.
63399         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63400         since it doesn't apply any more.  Use generic wording instead.
63401         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63402         'time'.
63403         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63404         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63405         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63406         Don't include <sys/types.h>; no longer needed since we assume C89.
63407         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63408         * lib/strftime.c: Likewise.
63409         * lib/time_r.c: Likewise.
63410         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63411         * lib/nanosleep.c: Include <time.h> first, to check interface.
63412         * lib/strptime.c: Likewise.
63413         * lib/time_r.c: Likewise.
63414         * lib/timegm.c: Likewise.
63415         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63416         needed.
63417         * lib/timegm.c: Don't include timegm.h; no longer needed.
63418         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63419         time.h now handles any problems in that area.
63420         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63421         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63422         that time.h defines struct timespec.
63423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63424         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63425         handles that.
63426         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63427         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63428         needed.  Set REPLACE_LOCALTIME.
63429         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63430         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63431         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63432         nanosleep; time_h.m4 now does that.  Don't require
63433         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63434         module handles this now.
63435         * modules/getdate (Depends-on): Remove timespec.  Add time.
63436         * modules/nanosleep (Depends-on): Likewise.
63437         * modules/stat-time (Depends-on): Likewise.
63438         * modules/nanosleep (Include): Include time.h, not timespec.h.
63439         * modules/strptime (Files): Remove lib/strptime.h.
63440         (Depends-on): Add extensions, time.
63441         (Include): Include time.h, not strptime.h.
63442         * modules/time_r (Files): Remove lib/time_r.h.
63443         (Depends-on): Add time.
63444         (Include): Include time.h, not time_r.h.
63445         * modules/timegm: Likewise.
63446         * modules/timespec (Description): Now does timespec-related decls
63447         of our own, instead of struct timespec itself.
63448         (Depends-on): Add time; remove extensions.
63449         (Maintainer): Add self.
63450         * modules/utimecmp (Depends-on): Add time; remove timespec.
63451         * modules/utimens (Depends-on): Likewise.
63452         * modules/xnanosleep (Depends-on): Likewise.
63453
63454 2007-02-11  Bruno Haible  <bruno@clisp.org>
63455
63456         * lib/c-strstr.c: Include allocsa.h.
63457         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63458         * lib/c-strcasestr.c: Include allocsa.h.
63459         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63460         * lib/strcasestr.c: Include allocsa.h.
63461         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63462         * lib/mbsstr.c: Include allocsa.h.
63463         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63464         allocsa/freesa instead of malloc/free.
63465         * lib/mbscasestr.c: Include allocsa.h.
63466         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63467         allocsa/freesa instead of malloc/free.
63468         * modules/c-strstr (Depends-on): Add allocsa.
63469         * modules/c-strcasestr (Depends-on): Likewise.
63470         * modules/strcasestr (Depends-on): Likewise.
63471         * modules/mbsstr (Depends-on): Likewise.
63472         * modules/mbscasestr (Depends-on): Likewise.
63473
63474 2007-02-11  Bruno Haible  <bruno@clisp.org>
63475
63476         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63477
63478         * modules/mbsspn-tests: New file.
63479         * tests/test-mbsspn.sh: New file.
63480         * tests/test-mbsspn.c: New file.
63481
63482 2007-02-11  Bruno Haible  <bruno@clisp.org>
63483
63484         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63485
63486         * modules/mbspbrk-tests: New file.
63487         * tests/test-mbspbrk.sh: New file.
63488         * tests/test-mbspbrk.c: New file.
63489
63490 2007-02-11  Bruno Haible  <bruno@clisp.org>
63491
63492         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63493         unneeded cast.
63494
63495         * modules/mbscspn-tests: New file.
63496         * tests/test-mbscspn.sh: New file.
63497         * tests/test-mbscspn.c: New file.
63498
63499 2007-02-11  Bruno Haible  <bruno@clisp.org>
63500
63501         * modules/mbscasecmp-tests: New file.
63502         * tests/test-mbscasecmp.sh: New file.
63503         * tests/test-mbscasecmp.c: New file.
63504
63505 2007-02-11  Bruno Haible  <bruno@clisp.org>
63506
63507         Ensure O(n) worst-case complexity of mbscasestr.
63508         * lib/mbscasestr.c: Include stdbool.h.
63509         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63510         functions.
63511         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63512         the bookkeeping indicates that it's worth it.
63513         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63514
63515         * modules/mbscasestr-tests: New file.
63516         * tests/test-mbscasestr1.c: New file.
63517         * tests/test-mbscasestr2.sh: New file.
63518         * tests/test-mbscasestr2.c: New file.
63519         * tests/test-mbscasestr3.sh: New file.
63520         * tests/test-mbscasestr3.c: New file.
63521         * tests/test-mbscasestr4.sh: New file.
63522         * tests/test-mbscasestr4.c: New file.
63523         * m4/locale-tr.m4: New file.
63524
63525 2007-02-11  Bruno Haible  <bruno@clisp.org>
63526
63527         Ensure O(n) worst-case complexity of mbsstr.
63528         * lib/mbsstr.c: Include stdbool.h.
63529         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63530         functions.
63531         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63532         bookkeeping indicates that it's worth it.
63533         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63534
63535         * modules/mbsstr-tests: New file.
63536         * tests/test-mbsstr1.c: New file.
63537         * tests/test-mbsstr2.sh: New file.
63538         * tests/test-mbsstr2.c: New file.
63539         * tests/test-mbsstr3.sh: New file.
63540         * tests/test-mbsstr3.c: New file.
63541         * m4/locale-fr.m4: New file.
63542
63543 2007-02-11  Bruno Haible  <bruno@clisp.org>
63544
63545         * lib/mbsrchr.c (mbsrchr): Fix bug.
63546
63547         * modules/mbsrchr-tests: New file.
63548         * tests/test-mbsrchr.sh: New file.
63549         * tests/test-mbsrchr.c: New file.
63550
63551 2007-02-11  Bruno Haible  <bruno@clisp.org>
63552
63553         * lib/mbschr.c (mbschr): Fix bug.
63554
63555         * modules/mbschr-tests: New file.
63556         * tests/test-mbschr.sh: New file.
63557         * tests/test-mbschr.c: New file.
63558         * m4/locale-zh.m4: New file.
63559
63560 2007-02-11  Bruno Haible  <bruno@clisp.org>
63561
63562         Support for copying multibyte string iterators.
63563         * lib/mbiter.h: Include <string.h>.
63564         (mbiter_multi_copy): New function.
63565         (mbi_copy): New macro.
63566         * lib/mbuiter.h: Include <string.h>.
63567         (mbuiter_multi_copy): New function.
63568         (mbui_copy): New macro.
63569
63570 2007-02-11  Bruno Haible  <bruno@clisp.org>
63571
63572         New module mbslen.
63573         * modules/mbslen: New file.
63574         * lib/mbslen.c: New file.
63575         * lib/string_.h (mbslen): New declaration.
63576         * m4/mbslen.m4: New file.
63577         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63578         GNULIB_MBSLEN.
63579         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63580         * MODULES.html.sh (Internationalization functions): Add mbslen.
63581
63582 2007-02-11  Bruno Haible  <bruno@clisp.org>
63583
63584         Ensure O(n) worst-case complexity of strcasestr substitute.
63585         * lib/strcasestr.c: Include stdbool.h.
63586         (knuth_morris_pratt): New function.
63587         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63588         bookkeeping indicates that it's worth it.
63589         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63590
63591         * modules/strcasestr-tests: New file.
63592         * tests/test-strcasestr.c: New file.
63593
63594 2007-02-11  Bruno Haible  <bruno@clisp.org>
63595
63596         Ensure O(n) worst-case complexity of c_strcasestr.
63597         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63598         (knuth_morris_pratt): New function.
63599         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63600         the bookkeeping indicates that it's worth it.
63601         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63602
63603         * modules/c-strcasestr-tests: New file.
63604         * tests/test-c-strcasestr.c: New file.
63605
63606 2007-02-11  Bruno Haible  <bruno@clisp.org>
63607
63608         Ensure O(n) worst-case complexity of c_strstr.
63609         * lib/c-strstr.c: Include stdbool.h, string.h.
63610         (knuth_morris_pratt): New function.
63611         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63612         bookkeeping indicates that it's worth it.
63613         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63614
63615         * lib/c-strstr.c: Complete rewrite for maintainability.
63616
63617         * modules/c-strstr-tests: New file.
63618         * tests/test-c-strstr.c: New file.
63619
63620 2007-02-11  Bruno Haible  <bruno@clisp.org>
63621
63622         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63623         5.2.1 and earlier, whereby \055 was treated just like the range
63624         delimiter '-'.
63625         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63626
63627 2007-02-08  Bruno Haible  <bruno@clisp.org>
63628
63629         * modules/regex (Depends-on): Add stdbool.
63630         Reported by Dalibor Topic <robilad@kaffe.org>.
63631
63632 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63633
63634         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63635         Prefer returning from main to exiting from it.
63636         Remove unnecessary parens after sizeof.
63637
63638 2007-02-05  Bruno Haible  <bruno@clisp.org>
63639
63640         New module mbssep.
63641         * modules/mbssep: New file.
63642         * lib/mbssep.c: New file.
63643         * lib/string_.h (strsep): Add a conditional link warning.
63644         (mbssep): New declaration.
63645         * m4/mbssep.m4: New file.
63646         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63647         GNULIB_MBSSEP.
63648         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63649         * MODULES.html.sh (Internationalization functions): Add mbssep.
63650
63651 2007-02-05  Bruno Haible  <bruno@clisp.org>
63652
63653         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63654         Optimize search in case of 1 delimiter.
63655
63656 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63657
63658         * lib/acl.h: Include sys/types.h before sys/acl.h.
63659
63660 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63661
63662         Merge upstream fix for glibc bugzilla #3957:
63663
63664         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63665
63666         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63667         bit for RE_HAT_LISTS_NOT_NEWLINE.
63668         (build_charclass_op): Remove bogus comment.
63669
63670 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63671
63672         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63673
63674 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63675
63676         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63677         * lib/memmem.c [!defined _LIBC]: Include config.h.
63678
63679 2007-02-04  Bruno Haible  <bruno@clisp.org>
63680
63681         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63682         warning message.
63683
63684 2007-02-04  Bruno Haible  <bruno@clisp.org>
63685
63686         New module mbstok_r.
63687         * modules/mbstok_r: New file.
63688         * lib/mbstok_r.c: New file.
63689         * lib/string_.h (strtok_r): Change argument names to match the
63690         comments. Add a conditional link warning.
63691         (mbstok_r): New declaration.
63692         * m4/mbstok_r.m4: New file.
63693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63694         GNULIB_MBSTOK_R.
63695         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63696         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63697
63698 2007-02-04  Bruno Haible  <bruno@clisp.org>
63699
63700         New module mbsspn.
63701         * modules/mbsspn: New file.
63702         * lib/mbsspn.c: New file.
63703         * lib/string_.h (strspn): Add a conditional link warning.
63704         (mbsspn): New declaration.
63705         * m4/mbsspn.m4: New file.
63706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63707         GNULIB_MBSSPN.
63708         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63709         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63710
63711 2007-02-04  Bruno Haible  <bruno@clisp.org>
63712
63713         New module mbspbrk.
63714         * modules/mbspbrk: New file.
63715         * lib/mbspbrk.c: New file.
63716         * lib/string_.h (strpbrk): Add a conditional link warning.
63717         (mbspbrk): New declaration.
63718         * m4/mbspbrk.m4: New file.
63719         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63720         GNULIB_MBSPBRK.
63721         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63722         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63723
63724 2007-02-04  Bruno Haible  <bruno@clisp.org>
63725
63726         New module mbscspn.
63727         * modules/mbscspn: New file.
63728         * lib/mbscspn.c: New file.
63729         * lib/string_.h (strcspn): Add a conditional link warning.
63730         (mbscspn): New declaration.
63731         * m4/mbscspn.m4: New file.
63732         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63733         GNULIB_MBSCSPN.
63734         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63735         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63736
63737 2007-02-04  Bruno Haible  <bruno@clisp.org>
63738
63739         New module mbscasestr, reduced goal of strcasestr.
63740         * modules/mbscasestr: New file.
63741         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63742         (mbscasestr): Renamed from strcasestr.
63743         * lib/strcasestr.c: Don't include mbuiter.h.
63744         (strcasestr): Remove support for multibyte locales.
63745         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63746         Change the conditional link warning.
63747         (mbscasestr): New declaration.
63748         * m4/mbscasestr.m4: New file.
63749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63750         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63751         REPLACE_STRCASESTR.
63752         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63754         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63755         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63756         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63757         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63758         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63759         (Depends-on): Remove mbuiter.
63760         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63761
63762 2007-02-04  Bruno Haible  <bruno@clisp.org>
63763
63764         Simplify handling of strncasecmp.
63765         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63766         the conditional link warning.
63767         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63768         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63769         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63770         * modules/strcase (configure.ac): Don't invoke
63771         gl_STRING_MODULE_INDICATOR.
63772         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63773
63774 2007-02-04  Bruno Haible  <bruno@clisp.org>
63775
63776         New module mbscasecmp, reduced goal of strcasecmp.
63777         * modules/mbscasecmp: New file.
63778         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63779         (mbscasecmp): Renamed from strcasecmp.
63780         * lib/strcasecmp.c: Don't include mbuiter.h.
63781         (strcasecmp): Remove support for multibyte locales.
63782         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63783         Change the conditional link warning.
63784         (mbscasecmp): New declaration.
63785         * m4/mbscasecmp.m4: New file.
63786         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63787         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63788         REPLACE_STRCASECMP.
63789         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63790         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63791         GNULIB_MBSCASECMP.
63792         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63793         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63794         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63795         (Depends-on): Remove mbuiter.
63796         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63797
63798 2007-02-04  Bruno Haible  <bruno@clisp.org>
63799
63800         New module mbsstr. Remove module strstr.
63801         * modules/mbsstr: New file.
63802         * modules/strstr: Remove file.
63803         * lib/mbsstr.c: Renamed from lib/strstr.c.
63804         (mbsstr): Renamed from strstr.
63805         * lib/string_.h (strstr): Remove declaration. Change the conditional
63806         link warning.
63807         (mbsstr): New declaration.
63808         * m4/mbsstr.m4: New file.
63809         * m4/strstr.m4: Remove file.
63810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63811         REPLACE_STRSTR.
63812         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63813         Don't initialize GNULIB_STRSTR.
63814         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63815         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63816         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63817         (Support for systems lacking ANSI C 89): Remove strstr.
63818
63819 2007-02-04  Bruno Haible  <bruno@clisp.org>
63820
63821         New module mbsrchr.
63822         * modules/mbsrchr: New file.
63823         * lib/mbsrchr.c: New file.
63824         * lib/string_.h (strrchr): Add a conditional link warning.
63825         (mbsrchr): New declaration.
63826         * m4/mbsrchr.m4: New file.
63827         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63828         GNULIB_MBSRCHR.
63829         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63830         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63831
63832 2007-02-04  Bruno Haible  <bruno@clisp.org>
63833
63834         New module mbschr.
63835         * modules/mbschr: New file.
63836         * lib/mbschr.c: New file.
63837         * lib/string_.h (strchr): Add a conditional link warning.
63838         (mbschr): New declaration.
63839         * m4/mbschr.m4: New file.
63840         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63841         GNULIB_MBSCHR.
63842         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63843         * MODULES.html.sh (Internationalization functions): Add mbschr.
63844
63845 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63846
63847         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63848
63849         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63850
63851 2007-02-04  Bruno Haible  <bruno@clisp.org>
63852
63853         New module description section 'configure.ac-early'.
63854         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63855         (func_get_autoconf_early_snippet): New function.
63856         (func_import, func_create_testdir): Use it. Remove special cases for
63857         modules 'extensions' and 'lock'.
63858         * modules/extensions (configure.ac-early): Require
63859         gl_USE_SYSTEM_EXTENSIONS.
63860         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63861
63862 2007-02-04  Bruno Haible  <bruno@clisp.org>
63863
63864         Make use of gcj-4.3's -fsource and -ftarget option.
63865         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63866         and if so try the options -fsource and -ftarget.
63867         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63868         source_version, ftarget_option, target_version arguments.
63869         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63870         (is_envjavac_oldgcj_14_14_usable): Renamed from
63871         is_envjavac_gcj_14_14_usable.
63872         (is_envjavac_oldgcj_14_13_usable): Renamed from
63873         is_envjavac_gcj_14_13_usable.
63874         (is_gcj_present): Update.
63875         (is_gcj_43, is_gcj43_usable): New functions.
63876         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63877         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63878         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63879         try the options -fsource and -ftarget.
63880
63881 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63882
63883         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63884         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63885         larger value.
63886
63887 2007-02-03  Jim Meyering  <jim@meyering.net>
63888
63889         Give tools a better chance to allocate space for very large buffers.
63890         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63891
63892         Make pwd and readlink work also when run with an unreadable parent dir
63893         on systems with openat support.
63894         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63895         provided getcwd function, even when we have openat support.
63896         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63897
63898 2007-02-02  Bruno Haible  <bruno@clisp.org>
63899
63900         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63901         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63902         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63903         portability problems if one of these functions is only used on specific
63904         platforms.
63905         Reported by Paul Eggert.
63906
63907 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63908
63909         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63910         is causing more trouble than it's curing.
63911         * lib/regex_internal.h (__mempcpy): Remove.
63912         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63913         (and make the code a tad smaller to boot).
63914         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63915
63916 2007-02-02  Jim Meyering  <jim@meyering.net>
63917
63918         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63919         section, not in the Makefile.am: one.
63920
63921 2007-02-02  Eric Blake  <ebb9@byu.net>
63922
63923         * lib/strchrnul.c: Always include config.h first.
63924
63925         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63926         gnulib strstr is not necessary here.
63927
63928 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63929
63930         * m4/socklen.m4: Fix typo.
63931
63932 2007-02-02  Eric Blake  <ebb9@byu.net>
63933
63934         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63935         * modules/netinet_in (Makefile.am): Likewise.
63936
63937 2007-02-01  Bruno Haible  <bruno@clisp.org>
63938
63939         * lib/string_.h (GL_LINK_WARNING): New macro.
63940         (strcasecmp, strstr, strcasestr): If provided by the system,
63941         conditionally define as a macro that leads to a warning instead of to
63942         an error.
63943         (strncasecmp): Conditionally define as a macro that leads to a warning.
63944
63945 2007-02-01  Karl Berry  <karl@gnu.org>
63946
63947         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63948
63949 2007-02-01  Bruno Haible  <bruno@clisp.org>
63950
63951         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63952         renamings.
63953
63954 2007-02-01  Eric Blake  <ebb9@byu.net>
63955
63956         * modules/regex (Depends-on): Revert dependence on mempcpy.
63957         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63958         module's definition of mempcpy.
63959         Reported by Paul Eggert.
63960
63961 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63962
63963         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63964         the symbol XYZ before redefining it.  This fixes a problem with
63965         programs that don't use XYZ, when compiled on systems that define
63966         XYZ to something else.
63967
63968 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63969
63970         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63971         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63972         writeable to group or other and (2) is intended to have a special
63973         mode bit that is set or cleared.  In such a case, the directory
63974         should be neither group- nor other-writeable until the special
63975         mode bits are right.
63976
63977 2007-01-31  Eric Blake  <ebb9@byu.net>
63978
63979         * modules/mountlist (Depends-on): Add strstr.
63980
63981         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63982         bug.
63983         * modules/string (Makefile.am): Remove redundant replacement.
63984         * modules/regex (Depends-on): Add mempcpy.
63985
63986 2007-01-31  Bruno Haible  <bruno@clisp.org>
63987
63988         New module description field 'Link'.
63989         * gnulib-tool (func_usage): Document --extract-link-directive.
63990         (sed_extract_prog): Recognize 'Link' directive.
63991         (func_get_link_directive): New function.
63992         (func_import): Show summary of link directives.
63993         Handle --extract-link-directive option.
63994         * modules/acl (Link): New section.
63995         * modules/clock-time (Link): New section.
63996         * modules/euidaccess (Link): New section.
63997         * modules/gettext (Link): New section.
63998         * modules/iconv (Link): New section.
63999         * modules/lock (Link): New section.
64000         * modules/nanosleep (Link): New section.
64001         * modules/readline (Link): New section.
64002
64003 2007-01-27  Bruno Haible  <bruno@clisp.org>
64004
64005         Enforce the use of gnulib modules for unportable <string.h> functions.
64006         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64007         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64008         (gl_HEADER_STRING_H_BODY): Require it.
64009         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64010         the symbol XYZ to one that gives a link error.
64011         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64012         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64013         * modules/mempcpy (configure.ac): Likewise.
64014         * modules/memrchr (configure.ac): Likewise.
64015         * modules/stpcpy (configure.ac): Likewise.
64016         * modules/stpncpy (configure.ac): Likewise.
64017         * modules/strcase (configure.ac): Likewise.
64018         * modules/strcasestr (configure.ac): Likewise.
64019         * modules/strchrnul (configure.ac): Likewise.
64020         * modules/strdup (configure.ac): Likewise.
64021         * modules/strndup (configure.ac): Likewise.
64022         * modules/strnlen (configure.ac): Likewise.
64023         * modules/strpbrk (configure.ac): Likewise.
64024         * modules/strsep (configure.ac): Likewise.
64025         * modules/strstr (configure.ac): Likewise.
64026         * modules/strtok_r (configure.ac): Likewise.
64027
64028 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64029
64030         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64031
64032 2007-01-30  Jim Meyering  <jim@meyering.net>
64033
64034         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64035
64036 2007-01-29  Bruno Haible  <bruno@clisp.org>
64037
64038         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64039         * lib/execute.c: Likewise.
64040         * lib/pipe.c: Likewise.
64041         * lib/printf-args.h: Likewise.
64042         * lib/printf-args.c: Likewise.
64043         * lib/printf-parse.c: Likewise.
64044         * lib/vasnprintf.c: Likewise.
64045
64046 2007-01-29  Eric Blake  <ebb9@byu.net>
64047
64048         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64049         declaration.
64050
64051 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64052
64053         * lib/strptime.h (strptime): Use 'restrict' for args where
64054         POSIX requires this.
64055         * lib/strptime.c (strptime): Likewise.
64056         Change license notice from LGPL to GPL, since gnulib-tool will
64057         change this as needed.
64058         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64059         defined.
64060         Include "strptime.h" first, to check interface.
64061         Do not #undef _LIBC and _NL_CURRENT.
64062         Do not include <stdlib.h>; no longer needed.
64063         Include "time_r.h" and declare ptime_locale_status
64064         only if _LIBC is not defined.
64065         (__P): Remove unused macro.
64066         (match_string): Bring back glibc version, but use it only if _LIBC
64067         is defined.
64068         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64069         Remove unnecessary assertion and abort() call.
64070         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64071         * m4/strptime.m4: Fix serial number comment.
64072         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64073         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64074         (Depends-on): Add time_r.
64075
64076 2007-01-29  Bruno Haible  <bruno@clisp.org>
64077
64078         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64079         strptime.
64080         * modules/strptime (Depends-on): Add stdbool.
64081         * lib/strptime.h: Include <time.h> always. Add comments.
64082
64083 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64084
64085         * modules/strptime: New file.
64086         * lib/strptime.h: New file.
64087         * lib/strptime.c: New file.
64088         * m4/strptime.m4: New file.
64089
64090 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64091
64092         * MODULES.html.sh: New module mpsort.
64093         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64094
64095         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64096         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64097         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64098         All uses changed.
64099         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64100         All uses changed.
64101         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64102         to _Restrict_.
64103         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64104         the parameter matches the prototype.
64105
64106 2007-01-28  Jim Meyering  <jim@meyering.net>
64107
64108         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64109         sys/time.h here, reverting that part of the previous patch:
64110         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64111
64112 2007-01-28  Bruno Haible  <bruno@clisp.org>
64113
64114         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64115         value of $(SYS_TIME_H).
64116         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64117         remove it conditionally, too. [added by Jim Meyering]
64118         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64119         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64120         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64121         GETTIMEOFDAY_REPLACEMENT to 1.
64122
64123 2007-01-28  Bruno Haible  <bruno@clisp.org>
64124
64125         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64126         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64127         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64128         Set UNISTD_H instead of UNISTD_H2.
64129         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64130
64131 2007-01-28  Bruno Haible  <bruno@clisp.org>
64132
64133         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64134         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64135
64136 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64137
64138         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64139         (func_create_testdir): Ensure C locale for `grep' and `tr'
64140         character ranges.
64141         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64142         ACLOCAL_AMFLAGS parsing state machine.
64143
64144 2007-01-27  Bruno Haible  <bruno@clisp.org>
64145
64146         * modules/unistr/base: Update.
64147
64148 2007-01-27  Bruno Haible  <bruno@clisp.org>
64149
64150         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64151         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64152         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64153         modules/unistr/u32-mbtouc.
64154         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64155         * lib/unistr.h: Update.
64156         * lib/linebreak.c: Update.
64157         * modules/unistr/u32-mbtouc: Renamed from
64158         modules/unistr/u32-mbtouc-safe.
64159         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64160         * lib/unistr.h: Update.
64161         * lib/unistr/u32-to-u8.c: Update.
64162         * lib/unistr/u32-to-u16.c: Update.
64163
64164 2007-01-27  Bruno Haible  <bruno@clisp.org>
64165
64166         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64167         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64168         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64169         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64170         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64171         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64172         modules/unistr/u16-mbtouc.
64173         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64174         * lib/unistr.h: Update.
64175         * lib/linebreak.c: Update.
64176         * modules/linebreak: Update.
64177         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64178         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64179         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64180         * modules/unistr/u16-mbtouc: Renamed from
64181         modules/unistr/u16-mbtouc-safe.
64182         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64183         * lib/unistr.h: Update.
64184         * lib/unistr/u16-to-u8.c: Update.
64185         * modules/unistr/u16-to-u8: Update.
64186         * lib/unistr/u16-to-u32.c: Update.
64187         * modules/unistr/u16-to-u32: Update.
64188
64189 2007-01-27  Bruno Haible  <bruno@clisp.org>
64190
64191         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64192         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64193         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64194         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64195         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64196         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64197         modules/unistr/u8-mbtouc.
64198         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64199         * lib/unistr.h: Update.
64200         * lib/striconveh.c: Update.
64201         * modules/striconveh: Update.
64202         * lib/linebreak.c: Update.
64203         * modules/linebreak: Update.
64204         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64205         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64206         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64207         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64208         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64209         * lib/unistr.h: Update.
64210         * lib/striconveh.c: Update.
64211         * modules/striconveh: Update.
64212         * lib/unistr/u8-to-u16.c: Update.
64213         * modules/unistr/u8-to-u16: Update.
64214         * lib/unistr/u8-to-u32.c: Update.
64215         * modules/unistr/u8-to-u32: Update.
64216
64217 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64218
64219         Sync from Libtool.
64220         * lib/argz.c: Do not include strings.h nor memory.h, include
64221         string.h unconditionally.  Patch by Simon Josefsson.
64222
64223 2007-01-27  Bruno Haible  <bruno@clisp.org>
64224
64225         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64226         from gl_HEADER_STRING_H_BODY.
64227         (gl_HEADER_STRING_H_BODY): Require it.
64228         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64229         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64230         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64231         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64232         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64233         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64234         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64235         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64236         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64237         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64238         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64239         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64240         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64241         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64242         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64243
64244 2007-01-27  Bruno Haible  <bruno@clisp.org>
64245
64246         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64247         check_PROGRAMS into noinst_PROGRAMS.
64248         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64249         check_PROGRAMS in this case.
64250         (func_import): Set for_test to false.
64251         (func_create_testdir): Set for_test to true.
64252
64253 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64254             Bruno Haible  <bruno@clisp.org>
64255
64256         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64257         (Depends-on): Add string.
64258         (Includes): Use <string.h> instead of strcasestr.h.
64259         * modules/string (Makefile.am): Also substitute the value of
64260         REPLACE_STRCASESTR.
64261         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64262         assume strcasestr is declared in <string.h> not <strings.h>. Also
64263         set REPLACE_STRCASESTR.
64264         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64265         REPLACE_STRCASESTR.
64266         * lib/strcasestr.h: Remove file.
64267         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64268         * lib/string_.h (strcasestr): New declaration.
64269
64270 2007-01-27  Bruno Haible  <bruno@clisp.org>
64271
64272         * lib/string_.h: Use 'extern'.
64273
64274 2007-01-27  Jim Meyering  <jim@meyering.net>
64275
64276         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64277         of set-but-not-used local, "q".
64278
64279         * lib/mempcpy.c: Include <config.h> before <string.h>.
64280         This fixes a compilation error on HP-UX, due to the system's
64281         "restrict"-using mempcpy prototype.
64282
64283 2007-01-26  Bruno Haible  <bruno@clisp.org>
64284
64285         Small optimization.
64286         * lib/javacomp.c: Include c-strstr.h.
64287          (is_envjavac_gcj): Use c_strstr instead of strstr.
64288         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64289
64290 2007-01-26  Bruno Haible  <bruno@clisp.org>
64291
64292         * MODULES.html.sh (Unicode string functions): Add the new modules.
64293
64294         * modules/uniconv/u32-strconv-to-locale: New file.
64295         * lib/uniconv/u32-strconv-to-locale.c: New file.
64296
64297         * modules/uniconv/u16-strconv-to-locale: New file.
64298         * lib/uniconv/u16-strconv-to-locale.c: New file.
64299
64300         * modules/uniconv/u8-strconv-to-locale: New file.
64301         * lib/uniconv/u8-strconv-to-locale.c: New file.
64302
64303         * modules/uniconv/u32-strconv-from-locale: New file.
64304         * lib/uniconv/u32-strconv-from-locale.c: New file.
64305
64306         * modules/uniconv/u16-strconv-from-locale: New file.
64307         * lib/uniconv/u16-strconv-from-locale.c: New file.
64308
64309         * modules/uniconv/u8-strconv-from-locale: New file.
64310         * lib/uniconv/u8-strconv-from-locale.c: New file.
64311
64312         * modules/uniconv/u32-strconv-to-enc: New file.
64313         * lib/uniconv/u32-strconv-to-enc.c: New file.
64314         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64315         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64316
64317         * modules/uniconv/u16-strconv-to-enc: New file.
64318         * lib/uniconv/u16-strconv-to-enc.c: New file.
64319         * lib/uniconv/u-strconv-to-enc.h: New file.
64320         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64321         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64322
64323         * modules/uniconv/u8-strconv-to-enc: New file.
64324         * lib/uniconv/u8-strconv-to-enc.c: New file.
64325         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64326         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64327
64328         * modules/uniconv/u32-strconv-from-enc: New file.
64329         * lib/uniconv/u32-strconv-from-enc.c: New file.
64330         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64331         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64332
64333         * modules/uniconv/u16-strconv-from-enc: New file.
64334         * lib/uniconv/u16-strconv-from-enc.c: New file.
64335         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64336         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64337
64338         * modules/uniconv/u8-strconv-from-enc: New file.
64339         * lib/uniconv/u8-strconv-from-enc.c: New file.
64340         * lib/uniconv/u-strconv-from-enc.h: New file.
64341         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64342         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64343
64344         * modules/uniconv/u32-conv-from-enc: New file.
64345         * lib/uniconv/u32-conv-from-enc.c: New file.
64346         * modules/uniconv/u32-conv-from-enc-tests: New file.
64347         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64348
64349         * modules/uniconv/u16-conv-from-enc: New file.
64350         * lib/uniconv/u16-conv-from-enc.c: New file.
64351         * lib/uniconv/u-conv-from-enc.h: New file.
64352         * modules/uniconv/u16-conv-from-enc-tests: New file.
64353         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64354
64355         * modules/uniconv/u8-conv-from-enc: New file.
64356         * lib/uniconv/u8-conv-from-enc.c: New file.
64357         * modules/uniconv/u8-conv-from-enc-tests: New file.
64358         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64359
64360         * modules/uniconv/base: New file.
64361         * lib/uniconv.h: New file.
64362
64363 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64364
64365         * doc/gnulib-tool.texi (Initial import): Update to match current
64366         behavior with strdup module.
64367         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64368         * lib/memmem.h: Remove; all uses removed.  This is now done
64369         by <string.h>.
64370         * lib/mempcpy.h: Likewise.
64371         * lib/memrchr.h: Likewise.
64372         * lib/stpcpy.h: Likewise.
64373         * lib/stpncpy.h: Likewise.
64374         * lib/strcase.h: Likewise.
64375         * lib/strchrnul.h: Likewise.
64376         * lib/strdup.h: Likewise.
64377         * lib/strndup.h: Likewise.
64378         * lib/strnlen.h: Likewise.
64379         * lib/strpbrk.h: Likewise.
64380         * lib/strsep.h: Likewise.
64381         * lib/strstr.h: Likewise.
64382         * lib/strtok_r.h: Likewise.
64383         * lib/string_.h: New file.
64384         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64385         Rely on <string.h> instead.
64386         * lib/canon-host.c: Likewise.
64387         * lib/chdir-long.c: Likewise.
64388         * lib/concatpath.c: Likewise.
64389         * lib/exclude.c: Likewise.
64390         * lib/fchdir.c: Likewise.
64391         * lib/getaddrinfo.c: Likewise.
64392         * lib/getcwd.c: Likewise.
64393         * lib/getsubopt.c: Likewise.
64394         * lib/glob.c: Likewise.
64395         * lib/hard-locale.c: Likewise.
64396         * lib/iconvme.c: Likewise.
64397         * lib/javacomp.c: Likewise.
64398         * lib/mempcpy.c: Likewise.
64399         * lib/memrchr.c: Likewise.
64400         * lib/regex_internal.h: Likewise.
64401         * lib/stpncpy.c: Likewise.
64402         * lib/strcasecmp.c: Likewise.
64403         * lib/strchrnul.c: Likewise.
64404         * lib/strdup.c: Likewise.
64405         * lib/striconv.c: Likewise.
64406         * lib/striconveh.c: Likewise.
64407         * lib/striconveha.c: Likewise.
64408         * lib/strncasecmp.c: Likewise.
64409         * lib/strndup.c: Likewise.
64410         * lib/strnlen.c: Likewise.
64411         * lib/strsep.c: Likewise.
64412         * lib/strstr.c: Likewise.
64413         * lib/strtok_r.c: Likewise.
64414         * lib/userspec.c: Likewise.
64415         * lib/w32spawn.h: Likewise.
64416         * lib/xstrndup.c: Likewise.
64417         * lib/mountlist.c (strstr): Remove decl.
64418         * m4/string_h.m4: New file.
64419         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64420         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64421         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64422         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64423         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64424         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64425         Set REPLACE_STRCASECMP if necessary.
64426         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64427         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64428         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64429         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64430         HAVE_DECL_STRDUP if necessary.
64431         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64432         since gl_FUNC_STRNDUP does that now.
64433         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64434         Check for decl here...
64435         (gl_PREREQ_STRNLEN): ... not here.
64436         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64437         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64438         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64439         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64440         necessary.
64441         * modules/string: New file.
64442         * modules/memmem (Files): Remove special-purpose include file.
64443         (Depends-on): Add string.
64444         (Include): Include <string.h>, not the removed file.
64445         * modules/mempcpy: Likewise.
64446         * modules/memrchr: Likewise.
64447         * modules/stpcpy: Likewise.
64448         * modules/stpncpy: Likewise.
64449         * modules/strcase: Likewise.
64450         * modules/strchrnul: Likewise.
64451         * modules/strdup: Likewise.
64452         * modules/strndup: Likewise.
64453         * modules/strnlen: Likewise.
64454         * modules/strpbrk: Likewise.
64455         * modules/strsep: Likewise.
64456         * modules/strstr: Likewise.
64457         * modules/strtok_r: Likewise.
64458         * tests/test-dirname.c: Don't include "strdup.h", since
64459         <string.h> now suffices.
64460         * tests/test-memmem.c: Don't include "memmem.h", since
64461         <string.h> now suffices.
64462
64463 2007-01-25  Bruno Haible  <bruno@clisp.org>
64464
64465         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64466         *resultp is 0.
64467
64468         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64469         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64470         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64471         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64472
64473         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64474         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64475         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64476         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64477         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64478         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64479
64480 2007-01-24  Bruno Haible  <bruno@clisp.org>
64481
64482         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64483         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64484         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64485         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64486         gl_FUNC_FTS_CORE.
64487         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64488         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64489         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64490         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64491         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64492         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64493         gl_FUNC_FCHOWNAT.
64494         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64495         gl_FUNC_STRFTIME.
64496         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64497         Reported by Ralf Wildenhues.
64498
64499 2007-01-24  Bruno Haible  <bruno@clisp.org>
64500
64501         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64502         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64503         gl_GETADDRINFO.
64504         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64505         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64506         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64507
64508 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64509
64510         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64511         Don't use 'exit'; just return from 'main'.
64512         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64513
64514         * lib/fnmatch_.h: Readjust white space and comments to match
64515         glibc, to avoid spurious diffs.
64516
64517 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64518
64519         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64520         2004-12-01 change by Jakub Jelinek, since this code won't compile
64521         if !LIBC.  Problem reported by Bob Proulx.
64522
64523 2007-01-23  Bruno Haible  <bruno@clisp.org>
64524
64525         * lib/striconveh.c: Include c-strcaseeq.h.
64526         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64527         * modules/striconveh (Depends-on): Add c-strcaseeq.
64528
64529 2007-01-23  Bruno Haible  <bruno@clisp.org>
64530
64531         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64532
64533         * modules/c-strcaseeq: New file.
64534         * lib/c-strcaseeq.h: New file.
64535
64536         * modules/streq: New file.
64537         * lib/streq.h: New file.
64538
64539 2007-01-23  Bruno Haible  <bruno@clisp.org>
64540
64541         * modules/striconveha-tests: New file.
64542         * tests/test-striconveha.c: New file.
64543
64544         * lib/striconveha.h: Include <stdbool.h>.
64545         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64546         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64547         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64548         (mem_iconveha): New function.
64549         (str_iconveha_notranslit): Renamed from str_iconveha.
64550         (str_iconveha): New function.
64551         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64552         c-strcase.
64553
64554 2007-01-23  Bruno Haible  <bruno@clisp.org>
64555
64556         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64557         encodings without forgiving before trying any encoding with handler.
64558         (str_iconveha): Try all encodings without forgiving before trying any
64559         encoding with handler.
64560
64561 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64562
64563         Import the following changes from libc.
64564
64565         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64566
64567         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64568
64569         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64570
64571         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64572         normal_bracket label.
64573
64574         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64575
64576         [BZ #361]
64577         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64578         to normal_bracket after fetching the next character.
64579
64580 2007-01-22  Bruno Haible  <bruno@clisp.org>
64581
64582         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64583         argument.
64584         * lib/striconveh.c (iconv_carefully_1): New function.
64585         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64586         argument.
64587         (str_cd_iconveh): Update.
64588         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64589         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64590         * tests/test-striconveh.c (MAGIC): New macro.
64591         (new_offsets): New function.
64592         (main): Test call with and without offsets.
64593
64594 2007-01-22  Bruno Haible  <bruno@clisp.org>
64595
64596         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64597         * modules/sys_select (Makefile.am): Likewise.
64598         * modules/sys_socket (Makefile.am): Likewise.
64599         * modules/sys_time (Makefile.am): Likewise.
64600
64601 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64602
64603         * modules/gettimeofday (License): Change from GPL to LGPL, since
64604         gettimeofday is a library function.
64605
64606 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64607
64608         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64609
64610 2007-01-21  Bruno Haible  <bruno@clisp.org>
64611
64612         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64613
64614 2007-01-21  Bruno Haible  <bruno@clisp.org>
64615
64616         * modules/striconveha: New file.
64617         * lib/striconveha.h: New file.
64618         * lib/striconveha.c: New file.
64619         * MODULES.html.sh (Internationalization functions): Add striconveha.
64620         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64621         string.
64622         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64623
64624 2007-01-21  Bruno Haible  <bruno@clisp.org>
64625
64626         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64627         * lib/striconveh.c (str_iconveh): Likewise.
64628
64629 2007-01-21  Bruno Haible  <bruno@clisp.org>
64630
64631         * lib/striconveh.h (mem_iconveh): New declaration.
64632         * lib/striconveh.c (mem_iconveh): New function.
64633         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64634
64635 2007-01-21  Bruno Haible  <bruno@clisp.org>
64636
64637         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64638
64639         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64640         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64641         original result buffer.
64642         (str_cd_iconveh): Update.
64643         * tests/test-striconveh.c (main): Update.
64644
64645         * lib/striconv.h (mem_cd_iconv): Change specification.
64646         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64647         result buffer.
64648         (str_cd_iconv): Update.
64649         * tests/test-striconv.c (main): Update.
64650
64651 2007-01-21  Bruno Haible  <bruno@clisp.org>
64652
64653         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64654
64655 2007-01-20  Jim Meyering  <jim@meyering.net>
64656
64657         * lib/userspec.c (parse_with_separator): If a user or group string
64658         starts with "+", skip the corresponding name-to-ID look-up, since
64659         such a look-up must fail: user and group names may not include "+".
64660
64661 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64662
64663         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64664         since we now assume the sys_time module.
64665         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64666         check for sys/time.h; no longer needed.
64667         * modules/poll (Depends-on): Depend on sys_time.
64668
64669 2007-01-18  Bruno Haible  <bruno@clisp.org>
64670
64671         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64672         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64673
64674         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64675         gettimeofday.
64676
64677         * tests/test-gettimeofday.c: Include <time.h>.
64678         (dummy): Remove variable.
64679
64680         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64681         gl_HEADER_SYS_TIME_H.
64682         (gl_HEADER_SYS_TIME_H): New macro.
64683
64684         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64685         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64686         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64687         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64688         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64689         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64690         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64691         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64692         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64693         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64694         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64695
64696         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64697         last change; it caused a compilation error when cross-compiling to
64698         Cygwin.
64699
64700 2007-01-18  Jim Meyering  <jim@meyering.net>
64701
64702         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64703         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64704         than the race-prone "test -d sys || mkdir sys".
64705         (configure.ac): Use AC_PROG_MKDIR_P.
64706         * modules/sys_select: Likewise.
64707         * modules/sys_socket: Likewise.
64708         * modules/sys_time: Likewise.
64709
64710 2007-01-18  Eric Blake  <ebb9@byu.net>
64711
64712         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64713         replace gettimeofday.
64714         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64715         name, to avoid infinite recursion.
64716
64717 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64718
64719         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64720         module sys_time.
64721         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64722         assume timespec.h defines struct timeval.
64723         * lib/settime.c: Likewise.
64724         * lib/utimens.c: Likewise.
64725         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64726         since we now assume the gettimeofday module.
64727         * lib/tempname.c (__gen_tempname): Likewise.
64728         * lib/gettimeofday.h: Remove.
64729         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64730         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64731         Include <time.h>, for 'time()'.
64732         (localtime_buffer_addr): Also use this workaround if
64733         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64734         to simplify the uses.  All uses changed.
64735         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64736         that #undef is inside {}, and 'const' follows type name consistently.
64737         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64738         (gettimeofday): Do not use the maximum possible value for
64739         tv->tv_usec, since that might break usages other than ls.c.
64740         Instead, we'll leave ls.c alone.  This undoes today's patch
64741         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64742         we've never observed the problem but might as well keep the
64743         canary.
64744         * lib/nanosleep.c: Include timespec.h first, for interface check.
64745         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64746         now assume the sys_time module.
64747         * lib/tempname.c: Likewise.
64748         * lib/timespec.h: Likewise.
64749         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64750         needed.
64751         * lib/strftime.c: Likewise.
64752         * lib/timespec.h: Likewise.
64753         * lib/posixtm.c: Include posixtm.h first, for interface check.
64754         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64755         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64756         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64757         * lib/sys_time_.h: New file.
64758         * lib/timespec.h (struct timespec): Use long int, not long.
64759         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64760         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64761         Remove obsolescent call to AC_HEADER_TIME.
64762         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64763         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64764         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64765         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64766         Likewise.
64767         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64768         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64769         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64770         into the sys_time module.  Check for gettimeofday just once.
64771         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64772         for gettimeofday signature to just check the signature.  Merely
64773         compile it, since linking doesn't test signature.  Improve test for
64774         whether gettimeofday.o is actually needed.
64775         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64776         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64777         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64778         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64779         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64780         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64781         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64782         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64783         than worrying about sys/time.h.
64784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64785         Don't bother worrying about TIME_WITH_SYS_TIME.
64786         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64787         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64788         * m4/sys_time_h.m4: New file.
64789         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64790         Don't include sys/time.h.  Return from main rather than exiting.
64791         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64792         all uses changed.
64793         * modules/gethrxtime (Depends-on): Add sys_time.
64794         * modules/gettime (Depends-on): Likewise.
64795         * modules/gettimeofday (Depends-on): Likewise.
64796         * modules/nanosleep (Depends-on): Likewise.
64797         * modules/settime (Depends-on): Likewise.
64798         * modules/tempname (Depends-on): Likewise.
64799         * modules/utimens (Depends-on): Likewise.
64800         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64801         (Include): Change back to <sys/time.h>.
64802         (Maintainer): Add self.
64803         * modules/sys_time: New file.
64804         * modules/tempname (Depends-on): Add gettimeofday.
64805         * tests/test-gettimeofday.c: Include <sys/time.h>
64806         rather than gettimeofday.h.
64807
64808 2007-01-17  Bruno Haible  <bruno@clisp.org>
64809
64810         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64811         the license default to GPL.
64812         (func_create_testdir): Don't complain if a module is LGPL and its
64813         tests module depends on GPLed modules.
64814
64815 2007-01-17  Bruno Haible  <bruno@clisp.org>
64816
64817         * lib/gettimeofday.c (gettimeofday): Add code for the case
64818         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64819         maximum possible value for tv->tv_usec, rather than the minimum one.
64820
64821 2005-10-08  Martin Lambers  <marlam@marlam.de>
64822 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64823 2007-01-16  Bruno Haible  <bruno@clisp.org>
64824
64825         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64826         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64827         gl_FUNC_GETTIMEOFDAY.
64828         (Include): Add gettimeofday.h.
64829         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64830         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64831         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64832         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64833         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64834         * lib/gettimeofday.h: New file.
64835         * lib/gettimeofday.c: Include <sys/timeb.h>.
64836         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64837         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64838         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64839         fall back on time().
64840
64841         * tests/test-gettimeofday.c: New file.
64842         * modules/gettimeofday-tests: New file.
64843
64844 2007-01-16  Eric Blake  <ebb9@byu.net>
64845
64846         * modules/fnmatch (Depends-on): Depend on wchar.
64847         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64848         * m4/fnmatch.m4: Likewise.
64849         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64850         * m4/mbchar.m4: Likewise.
64851         * modules/mbswidth (Depends-on): Depend on wchar.
64852         * lib/mbswidth.c: Assume <wchar.h>.
64853         * m4/mbswidth.m4: Likewise.
64854         * modules/quotearg (Depends-on): Depend on wchar.
64855         * lib/quotearg.c: Assume <wchar.h>.
64856         * m4/quotearg.m4: Likewise.
64857         * modules/regex (Depends-on): Depend on wchar.
64858         * lib/regex_internal.h: Assume <wchar.h>.
64859         * m4/regex.m4: Likewise.
64860         * modules/stdint (Depends-on): Depend on wchar.
64861         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64862         * m4/stdint.m4: Likewise.
64863         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64864         * modules/strftime (Depends-on): Depend on wchar.
64865         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64866         * modules/strtol (Depends-on): Depend on wchar.
64867         * lib/strtol.c: Assume <wchar.h>.
64868         * modules/wcwidth (Depends-on): Depend on wchar.
64869         * lib/wcwidth.h: Assume <wchar.h>.
64870         * m4/wcwidth.m4: Likewise.
64871
64872 2007-01-16  Bruno Haible  <bruno@clisp.org>
64873
64874         * modules/csharpexec-script: New, created from...
64875         * modules/csharpexec: ... this.
64876
64877 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64878
64879         * modules/javaexec-script: New, created from...
64880         * modules/javaexec: ... this.
64881
64882 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64883
64884         * modules/poll (Dependencies): Add sys_select.
64885
64886 2007-01-15  Jim Meyering  <jim@meyering.net>
64887
64888         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64889         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64890         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64891         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64892
64893 2007-01-15  Bruno Haible  <bruno@clisp.org>
64894
64895         * modules/striconveh: New file.
64896         * lib/striconveh.h: New file.
64897         * lib/striconveh.c: New file.
64898         * MODULES.html.sh (Internationalization functions): Add striconveh.
64899
64900         * modules/striconveh-tests: New file.
64901         * tests/test-striconveh.c: New file.
64902
64903 2007-01-15  Bruno Haible  <bruno@clisp.org>
64904
64905         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64906         not from GNU libiconv or GNU libc.
64907
64908 2007-01-15  Bruno Haible  <bruno@clisp.org>
64909
64910         * doc/gnulib-intro.texi (Copyright): Explain the different license
64911         terms for module descriptions, autoconf macros, tests, documentation.
64912
64913 2007-01-14  Bruno Haible  <bruno@clisp.org>
64914
64915         * modules/striconv-tests: New file.
64916         * tests/test-striconv.c: New file.
64917
64918 2007-01-14  Bruno Haible  <bruno@clisp.org>
64919
64920         * modules/iconv-tests: New file.
64921         * tests/test-iconv.c: New file.
64922
64923 2007-01-14  Bruno Haible  <bruno@clisp.org>
64924
64925         * gnulib-tool (func_get_license): For test modules, use the license of
64926         the main module.
64927
64928 2007-01-14  Bruno Haible  <bruno@clisp.org>
64929
64930         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64931         if iconv is found to exist.
64932
64933 2007-01-14  Bruno Haible  <bruno@clisp.org>
64934
64935         * modules/c-ctype-tests: New file.
64936         * tests/test-c-ctype.c: New file.
64937
64938 2007-01-14  Bruno Haible  <bruno@clisp.org>
64939
64940         * modules/binary-io-tests: New file.
64941         * tests/test-binary-io.sh: New file.
64942         * tests/test-binary-io.c: New file.
64943
64944 2007-01-14  Bruno Haible  <bruno@clisp.org>
64945
64946         * modules/array-oset-tests: New file.
64947         * tests/test-array_oset.c: New file.
64948
64949 2007-01-14  Bruno Haible  <bruno@clisp.org>
64950
64951         * modules/array-list-tests: New file.
64952         * tests/test-array_list.c: New file.
64953
64954 2007-01-14  Bruno Haible  <bruno@clisp.org>
64955
64956         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64957         and make.
64958         Reported by Simon Josefsson in
64959         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64960
64961 2007-01-14  Bruno Haible  <bruno@clisp.org>
64962
64963         * modules/allocsa-tests: New file.
64964         * tests/test-allocsa.c: New file.
64965
64966 2007-01-14  Bruno Haible  <bruno@clisp.org>
64967
64968         * modules/fchdir (Depends-on): Add absolute-header.
64969         * modules/unistd (Depends-on): Likewise.
64970
64971 2006-12-30  Bruno Haible  <bruno@clisp.org>
64972
64973         * modules/fchdir: New file.
64974         * modules/unistd (Files): Add lib/unistd_.h.
64975         (Makefile.am): Generate unistd.h from unistd_.h.
64976         * lib/fchdir.c: New file.
64977         * lib/dirent_.h: New file.
64978         * lib/unistd_.h: New file.
64979         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64980         * m4/fchdir.m4: New file.
64981         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64982         (gl_HEADER_UNISTD): Invoke it.
64983         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64984         function.
64985         * lib/backupfile.c (opendir, closedir): Undefine.
64986         * lib/chown.c (open, close): Undefine.
64987         * lib/clean-temp.c (open, close): Undefine.
64988         * lib/copy-file.c (open, close): Undefine.
64989         * lib/execute.c (open, close): Undefine.
64990         * lib/fsusage.c (open, close): Undefine.
64991         * lib/gc-gnulib.c (open, close): Undefine.
64992         * lib/getcwd.c (opendir, closedir): Undefine.
64993         * lib/glob.c (opendir, closedir): Undefine.
64994         * lib/javacomp.c (open, close): Undefine.
64995         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64996         * lib/openat-proc.c (open, close): Undefine.
64997         * lib/pagealign_alloc.c (open, close): Undefine.
64998         * lib/pipe.c (open, close): Undefine.
64999         * lib/progreloc.c (open, close): Undefine.
65000         * lib/savedir.c (opendir, closedir): Undefine.
65001         * lib/utime.c (open, close): Undefine.
65002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65003
65004 2007-01-10  Bruno Haible  <bruno@clisp.org>
65005
65006         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65007
65008 2007-01-12  Eric Blake  <ebb9@byu.net>
65009
65010         Provide a robust <wchar.h>.  Further simplifications are now
65011         possible in other modules, but not included here.
65012         * modules/wchar: New module.
65013         * m4/wchar.m4: New file.
65014         * lib/wchar_.h: Likewise.
65015         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65016         of the new module.
65017         * MODULES.html.sh (Extended multibyte and wide character utilities):
65018         New section.
65019
65020 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65021
65022         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65023         to a reasonable default for memory allocation.
65024         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65025         file system that reports garbage st_size values for symlinks.
65026         Problem reported by Liyang Hu.
65027
65028 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65029
65030         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65031         Emacs .#* auto-save files).
65032
65033 2007-01-11  Bruno Haible  <bruno@clisp.org>
65034
65035         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65036         directory.
65037
65038 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65039
65040         Use @...@ consistently in lib/wctype_.h.
65041         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65042         on it being set to 1 or 0.
65043         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65044         go back to AC_SUBSTing it.
65045         * modules/wctype (Makefile.am): Undo previous change.
65046
65047 2007-01-10  Eric Blake  <ebb9@byu.net>
65048
65049         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65050         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65051         * modules/wctype (Makefile.am): Likewise.
65052         Reported by Chris McGuire.
65053
65054 2007-01-10  Jim Meyering  <jim@meyering.net>
65055
65056         fts.c: a small readability/maintainability improvement
65057         * lib/fts.c (fts_read): Make this code slightly more readable and
65058         maintainable by hoisting the "sp->fts_cur = p" assignments to
65059         immediately follow the statements that set P.  Derived from
65060         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65061
65062 2007-01-10  Eric Blake  <ebb9@byu.net>
65063
65064         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65065         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65067         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65068         Reported by Chris McGuire.
65069
65070 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65071
65072         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65073         in sed script.
65074
65075 2007-01-09  Bruno Haible  <bruno@clisp.org>
65076
65077         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65078         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65079         variables.
65080         (func_module): Use them.
65081
65082 2007-01-09  Bruno Haible  <bruno@clisp.org>
65083
65084         * modules/unistr/base: New file.
65085         * lib/unistr.h: New file.
65086
65087         * modules/unistr/u8-to-u16: New file.
65088         * lib/unistr/u8-to-u16.c: New file.
65089
65090         * modules/unistr/u8-to-u32: New file.
65091         * lib/unistr/u8-to-u32.c: New file.
65092
65093         * modules/unistr/u16-to-u8: New file.
65094         * lib/unistr/u16-to-u8.c: New file.
65095
65096         * modules/unistr/u16-to-u32: New file.
65097         * lib/unistr/u16-to-u32.c: New file.
65098
65099         * modules/unistr/u32-to-u8: New file.
65100         * lib/unistr/u32-to-u8.c: New file.
65101
65102         * modules/unistr/u32-to-u16: New file.
65103         * lib/unistr/u32-to-u16.c: New file.
65104
65105         * modules/unistr/u8-check: New file.
65106         * modules/unistr/u16-check: New file.
65107         * modules/unistr/u32-check: New file.
65108         * lib/unistr/u8-check.c: New file.
65109         * lib/unistr/u16-check.c: New file.
65110         * lib/unistr/u32-check.c: New file.
65111
65112         * modules/unistr/u8-chr: New file.
65113         * modules/unistr/u16-chr: New file.
65114         * modules/unistr/u32-chr: New file.
65115         * lib/unistr/u8-chr.c: New file.
65116         * lib/unistr/u16-chr.c: New file.
65117         * lib/unistr/u32-chr.c: New file.
65118
65119         * modules/unistr/u8-cmp: New file.
65120         * modules/unistr/u16-cmp: New file.
65121         * modules/unistr/u32-cmp: New file.
65122         * lib/unistr/u8-cmp.c: New file.
65123         * lib/unistr/u16-cmp.c: New file.
65124         * lib/unistr/u32-cmp.c: New file.
65125
65126         * modules/unistr/u8-cpy: New file.
65127         * modules/unistr/u16-cpy: New file.
65128         * modules/unistr/u32-cpy: New file.
65129         * lib/unistr/u8-cpy.c: New file.
65130         * lib/unistr/u16-cpy.c: New file.
65131         * lib/unistr/u32-cpy.c: New file.
65132         * lib/unistr/u-cpy.h: New file.
65133
65134         * modules/unistr/u8-cpy-alloc: New file.
65135         * modules/unistr/u16-cpy-alloc: New file.
65136         * modules/unistr/u32-cpy-alloc: New file.
65137         * lib/unistr/u8-cpy-alloc.c: New file.
65138         * lib/unistr/u16-cpy-alloc.c: New file.
65139         * lib/unistr/u32-cpy-alloc.c: New file.
65140         * lib/unistr/u-cpy-alloc.h: New file.
65141
65142         * modules/unistr/u8-endswith: New file.
65143         * modules/unistr/u16-endswith: New file.
65144         * modules/unistr/u32-endswith: New file.
65145         * lib/unistr/u8-endswith.c: New file.
65146         * lib/unistr/u16-endswith.c: New file.
65147         * lib/unistr/u32-endswith.c: New file.
65148         * lib/unistr/u-endswith.h: New file.
65149
65150         * modules/unistr/u8-mblen: New file.
65151         * modules/unistr/u16-mblen: New file.
65152         * modules/unistr/u32-mblen: New file.
65153         * lib/unistr/u8-mblen.c: New file.
65154         * lib/unistr/u16-mblen.c: New file.
65155         * lib/unistr/u32-mblen.c: New file.
65156
65157         * modules/unistr/u8-mbtouc: New file.
65158         * modules/unistr/u16-mbtouc: New file.
65159         * modules/unistr/u32-mbtouc: New file.
65160         * lib/unistr/u8-mbtouc.c: New file.
65161         * lib/unistr/u16-mbtouc.c: New file.
65162         * lib/unistr/u32-mbtouc.c: New file.
65163
65164         * modules/unistr/u8-mbtouc-safe: New file.
65165         * modules/unistr/u16-mbtouc-safe: New file.
65166         * modules/unistr/u32-mbtouc-safe: New file.
65167         * lib/unistr/u8-mbtouc-safe.c: New file.
65168         * lib/unistr/u16-mbtouc-safe.c: New file.
65169         * lib/unistr/u32-mbtouc-safe.c: New file.
65170
65171         * modules/unistr/u8-move: New file.
65172         * modules/unistr/u16-move: New file.
65173         * modules/unistr/u32-move: New file.
65174         * lib/unistr/u8-move.c: New file.
65175         * lib/unistr/u16-move.c: New file.
65176         * lib/unistr/u32-move.c: New file.
65177         * lib/unistr/u-move.h: New file.
65178
65179         * modules/unistr/u8-next: New file.
65180         * modules/unistr/u16-next: New file.
65181         * modules/unistr/u32-next: New file.
65182         * lib/unistr/u8-next.c: New file.
65183         * lib/unistr/u16-next.c: New file.
65184         * lib/unistr/u32-next.c: New file.
65185
65186         * modules/unistr/u8-prev: New file.
65187         * modules/unistr/u16-prev: New file.
65188         * modules/unistr/u32-prev: New file.
65189         * lib/unistr/u8-prev.c: New file.
65190         * lib/unistr/u16-prev.c: New file.
65191         * lib/unistr/u32-prev.c: New file.
65192
65193         * modules/unistr/u8-set: New file.
65194         * modules/unistr/u16-set: New file.
65195         * modules/unistr/u32-set: New file.
65196         * lib/unistr/u8-set.c: New file.
65197         * lib/unistr/u16-set.c: New file.
65198         * lib/unistr/u32-set.c: New file.
65199         * lib/unistr/u-set.h: New file.
65200
65201         * modules/unistr/u8-startswith: New file.
65202         * modules/unistr/u16-startswith: New file.
65203         * modules/unistr/u32-startswith: New file.
65204         * lib/unistr/u8-startswith.c: New file.
65205         * lib/unistr/u16-startswith.c: New file.
65206         * lib/unistr/u32-startswith.c: New file.
65207         * lib/unistr/u-startswith.h: New file.
65208
65209         * modules/unistr/u8-stpcpy: New file.
65210         * modules/unistr/u16-stpcpy: New file.
65211         * modules/unistr/u32-stpcpy: New file.
65212         * lib/unistr/u8-stpcpy.c: New file.
65213         * lib/unistr/u16-stpcpy.c: New file.
65214         * lib/unistr/u32-stpcpy.c: New file.
65215         * lib/unistr/u-stpcpy.h: New file.
65216
65217         * modules/unistr/u8-stpncpy: New file.
65218         * modules/unistr/u16-stpncpy: New file.
65219         * modules/unistr/u32-stpncpy: New file.
65220         * lib/unistr/u8-stpncpy.c: New file.
65221         * lib/unistr/u16-stpncpy.c: New file.
65222         * lib/unistr/u32-stpncpy.c: New file.
65223         * lib/unistr/u-stpncpy.h: New file.
65224
65225         * modules/unistr/u8-strcat: New file.
65226         * modules/unistr/u16-strcat: New file.
65227         * modules/unistr/u32-strcat: New file.
65228         * lib/unistr/u8-strcat.c: New file.
65229         * lib/unistr/u16-strcat.c: New file.
65230         * lib/unistr/u32-strcat.c: New file.
65231         * lib/unistr/u-strcat.h: New file.
65232
65233         * modules/unistr/u8-strchr: New file.
65234         * modules/unistr/u16-strchr: New file.
65235         * modules/unistr/u32-strchr: New file.
65236         * lib/unistr/u8-strchr.c: New file.
65237         * lib/unistr/u16-strchr.c: New file.
65238         * lib/unistr/u32-strchr.c: New file.
65239
65240         * modules/unistr/u8-strcmp: New file.
65241         * modules/unistr/u16-strcmp: New file.
65242         * modules/unistr/u32-strcmp: New file.
65243         * lib/unistr/u8-strcmp.c: New file.
65244         * lib/unistr/u16-strcmp.c: New file.
65245         * lib/unistr/u32-strcmp.c: New file.
65246
65247         * modules/unistr/u8-strcpy: New file.
65248         * modules/unistr/u16-strcpy: New file.
65249         * modules/unistr/u32-strcpy: New file.
65250         * lib/unistr/u8-strcpy.c: New file.
65251         * lib/unistr/u16-strcpy.c: New file.
65252         * lib/unistr/u32-strcpy.c: New file.
65253         * lib/unistr/u-strcpy.h: New file.
65254
65255         * modules/unistr/u8-strcspn: New file.
65256         * modules/unistr/u16-strcspn: New file.
65257         * modules/unistr/u32-strcspn: New file.
65258         * lib/unistr/u8-strcspn.c: New file.
65259         * lib/unistr/u16-strcspn.c: New file.
65260         * lib/unistr/u32-strcspn.c: New file.
65261         * lib/unistr/u-strcspn.h: New file.
65262
65263         * modules/unistr/u8-strdup: New file.
65264         * modules/unistr/u16-strdup: New file.
65265         * modules/unistr/u32-strdup: New file.
65266         * lib/unistr/u8-strdup.c: New file.
65267         * lib/unistr/u16-strdup.c: New file.
65268         * lib/unistr/u32-strdup.c: New file.
65269         * lib/unistr/u-strdup.h: New file.
65270
65271         * modules/unistr/u8-strlen: New file.
65272         * modules/unistr/u16-strlen: New file.
65273         * modules/unistr/u32-strlen: New file.
65274         * lib/unistr/u8-strlen.c: New file.
65275         * lib/unistr/u16-strlen.c: New file.
65276         * lib/unistr/u32-strlen.c: New file.
65277         * lib/unistr/u-strlen.h: New file.
65278
65279         * modules/unistr/u8-strmblen: New file.
65280         * modules/unistr/u16-strmblen: New file.
65281         * modules/unistr/u32-strmblen: New file.
65282         * lib/unistr/u8-strmblen.c: New file.
65283         * lib/unistr/u16-strmblen.c: New file.
65284         * lib/unistr/u32-strmblen.c: New file.
65285
65286         * modules/unistr/u8-strmbtouc: New file.
65287         * modules/unistr/u16-strmbtouc: New file.
65288         * modules/unistr/u32-strmbtouc: New file.
65289         * lib/unistr/u8-strmbtouc.c: New file.
65290         * lib/unistr/u16-strmbtouc.c: New file.
65291         * lib/unistr/u32-strmbtouc.c: New file.
65292
65293         * modules/unistr/u8-strncat: New file.
65294         * modules/unistr/u16-strncat: New file.
65295         * modules/unistr/u32-strncat: New file.
65296         * lib/unistr/u8-strncat.c: New file.
65297         * lib/unistr/u16-strncat.c: New file.
65298         * lib/unistr/u32-strncat.c: New file.
65299         * lib/unistr/u-strncat.h: New file.
65300
65301         * modules/unistr/u8-strncmp: New file.
65302         * modules/unistr/u16-strncmp: New file.
65303         * modules/unistr/u32-strncmp: New file.
65304         * lib/unistr/u8-strncmp.c: New file.
65305         * lib/unistr/u16-strncmp.c: New file.
65306         * lib/unistr/u32-strncmp.c: New file.
65307
65308         * modules/unistr/u8-strncpy: New file.
65309         * modules/unistr/u16-strncpy: New file.
65310         * modules/unistr/u32-strncpy: New file.
65311         * lib/unistr/u8-strncpy.c: New file.
65312         * lib/unistr/u16-strncpy.c: New file.
65313         * lib/unistr/u32-strncpy.c: New file.
65314         * lib/unistr/u-strncpy.h: New file.
65315
65316         * modules/unistr/u8-strnlen: New file.
65317         * modules/unistr/u16-strnlen: New file.
65318         * modules/unistr/u32-strnlen: New file.
65319         * lib/unistr/u8-strnlen.c: New file.
65320         * lib/unistr/u16-strnlen.c: New file.
65321         * lib/unistr/u32-strnlen.c: New file.
65322         * lib/unistr/u-strnlen.h: New file.
65323
65324         * modules/unistr/u8-strpbrk: New file.
65325         * modules/unistr/u16-strpbrk: New file.
65326         * modules/unistr/u32-strpbrk: New file.
65327         * lib/unistr/u8-strpbrk.c: New file.
65328         * lib/unistr/u16-strpbrk.c: New file.
65329         * lib/unistr/u32-strpbrk.c: New file.
65330         * lib/unistr/u-strpbrk.h: New file.
65331
65332         * modules/unistr/u8-strrchr: New file.
65333         * modules/unistr/u16-strrchr: New file.
65334         * modules/unistr/u32-strrchr: New file.
65335         * lib/unistr/u8-strrchr.c: New file.
65336         * lib/unistr/u16-strrchr.c: New file.
65337         * lib/unistr/u32-strrchr.c: New file.
65338
65339         * modules/unistr/u8-strspn: New file.
65340         * modules/unistr/u16-strspn: New file.
65341         * modules/unistr/u32-strspn: New file.
65342         * lib/unistr/u8-strspn.c: New file.
65343         * lib/unistr/u16-strspn.c: New file.
65344         * lib/unistr/u32-strspn.c: New file.
65345         * lib/unistr/u-strspn.h: New file.
65346
65347         * modules/unistr/u8-strstr: New file.
65348         * modules/unistr/u16-strstr: New file.
65349         * modules/unistr/u32-strstr: New file.
65350         * lib/unistr/u8-strstr.c: New file.
65351         * lib/unistr/u16-strstr.c: New file.
65352         * lib/unistr/u32-strstr.c: New file.
65353         * lib/unistr/u-strstr.h: New file.
65354
65355         * modules/unistr/u8-strtok: New file.
65356         * modules/unistr/u16-strtok: New file.
65357         * modules/unistr/u32-strtok: New file.
65358         * lib/unistr/u8-strtok.c: New file.
65359         * lib/unistr/u16-strtok.c: New file.
65360         * lib/unistr/u32-strtok.c: New file.
65361         * lib/unistr/u-strtok.h: New file.
65362
65363         * modules/unistr/u8-uctomb: New file.
65364         * modules/unistr/u16-uctomb: New file.
65365         * modules/unistr/u32-uctomb: New file.
65366         * lib/unistr/u8-uctomb.c: New file.
65367         * lib/unistr/u16-uctomb.c: New file.
65368         * lib/unistr/u32-uctomb.c: New file.
65369
65370         * MODULES.html.sh (Unicode string functions): Add the new modules.
65371
65372 2007-01-08  Bruno Haible  <bruno@clisp.org>
65373
65374         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65375         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65376         subdirectories.
65377
65378 2007-01-08  Karl Berry  <karl@gnu.org>
65379
65380         * doc/error.texi: mention that main() fns must set program_name
65381         when progname is used.
65382
65383 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65384
65385         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65386         WCTYPE_H is empty, for the benefit of builds from non-distclean
65387         directories.  Problem reported by Eric Blake in
65388         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65389
65390 2007-01-08  Bruno Haible  <bruno@clisp.org>
65391
65392         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65393         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65394         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65395         PROVIDE_CANONICALIZE_FILENAME_MODE.
65396         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65397
65398 2007-01-08  Bruno Haible  <bruno@clisp.org>
65399
65400         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65401         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65402         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65403         * lib/fts.c: Likewise.
65404         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65405
65406 2006-12-25  Bruno Haible  <bruno@clisp.org>
65407
65408         * modules/utf8-ucs4-safe: New file.
65409         * lib/utf8-ucs4-safe.h: New file.
65410         * lib/unistr/utf8-ucs4-safe.c: New file.
65411
65412         * modules/utf16-ucs4-safe: New file.
65413         * lib/utf16-ucs4-safe.h: New file.
65414         * lib/unistr/utf16-ucs4-safe.c: New file.
65415
65416         * MODULES.html.sh (Unicode string functions): Add the new modules.
65417
65418 2007-01-08  Bruno Haible  <bruno@clisp.org>
65419
65420         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65421         (Depends-on): Add unitypes.
65422         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65423         (u8_mbtouc_aux): Move out to separate file.
65424         (u8_mbtouc): Use ucs4_t, uint8_t types.
65425         * lib/unistr/utf8-ucs4.c: New file.
65426
65427         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65428         (Depends-on): Add unitypes.
65429         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65430         (u16_mbtouc_aux): Move out to separate file.
65431         (u16_mbtouc): Use ucs4_t, uint16_t types.
65432         * lib/unistr/utf16-ucs4.c: New file.
65433
65434         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65435         (Depends-on): Add unitypes.
65436         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65437         (u8_uctomb_aux): Move out to separate file.
65438         (u8_uctomb): Use ucs4_t, uint8_t types.
65439         * lib/unistr/ucs4-utf8.c: New file.
65440
65441         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65442         (Depends-on): Add unitypes.
65443         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65444         (u16_uctomb_aux): Move out to separate file.
65445         (u16_uctomb): Use ucs4_t, uint16_t types.
65446         * lib/unistr/ucs4-utf16.c: New file.
65447
65448 2006-12-25  Bruno Haible  <bruno@clisp.org>
65449
65450         * modules/unitypes: New file.
65451         * lib/unitypes.h: New file.
65452         * MODULES.html.sh (func_all_modules): New section "Unicode string
65453         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65454         this section. Add unitypes.
65455
65456 2007-01-08  Bruno Haible  <bruno@clisp.org>
65457
65458         Avoid variable names that conflict with those from libtool.
65459         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65460         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65461         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65462         library_names_spec to acl_library_names_spec, hardcode_* to
65463         acl_hardcode_*.
65464         Reported by Ralf Wildenhues.
65465
65466 2007-01-08  Bruno Haible  <bruno@clisp.org>
65467
65468         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65469         definition.
65470         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65471         definition.
65472         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65473         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65474         definition.
65475         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65476         definition.
65477         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65478         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65479         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65480         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65481         definition.
65482         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65483         definition.
65484         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65485         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65486         GC_USE_<algorithm>.
65487         * lib/gc-libgcrypt.c: Likewise.
65488         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65489         * modules/gc-arctwo (configure.ac): Likewise.
65490         * modules/gc-des (configure.ac): Likewise.
65491         * modules/gc-hmac-md5 (configure.ac): Likewise.
65492         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65493         * modules/gc-md2 (configure.ac): Likewise.
65494         * modules/gc-md4 (configure.ac): Likewise.
65495         * modules/gc-md5 (configure.ac): Likewise.
65496         * modules/gc-random (configure.ac): Likewise.
65497         * modules/gc-rijndael (configure.ac): Likewise.
65498         * modules/gc-sha1 (configure.ac): Likewise.
65499
65500 2007-01-08  Bruno Haible  <bruno@clisp.org>
65501
65502         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65503         macro definition.
65504         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65505         definition.
65506         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65507         definition.
65508         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65509         * modules/fcntl-safer (configure.ac): Likewise.
65510         * modules/fopen-safer (configure.ac): Likewise.
65511         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65512         GNULIB_FWRITEERROR macro definition.
65513
65514 2007-01-08  Bruno Haible  <bruno@clisp.org>
65515
65516         * m4/gnulib-common.m4: New file.
65517         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65518         (func_get_filelist): Add m4/gnulib-common.m4.
65519
65520 2007-01-08  Bruno Haible  <bruno@clisp.org>
65521
65522         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65523         command.
65524
65525 2007-01-08  Jim Meyering  <jim@meyering.net>
65526
65527         Use a more robust test for a "can't happen" condition.
65528         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65529         narrowed the st_size value.  Presuming the "can't happen" condition
65530         is true, that narrowing could conceivably convert an invalid st_size
65531         value into a valid one.  Instead, use a change based on Matthew
65532         Woehlke's original patch.
65533
65534         Slight readability improvement: use an assert-like macro
65535         in place of literal "abort ()" uses.
65536         * lib/fts.c (fts_assert): Define.
65537         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65538         Use this macro instead of a bare 'abort'.
65539
65540 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65541
65542         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65543         simply work around them.
65544         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65545         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65546         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65547         declaring.
65548         Don't bother to define as macros, since the standard doesn't require it.
65549         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65550         longer worry about IRIX 5.3.
65551         (HAVE_WCTYPE_CTMP_BUG): Remove.
65552
65553 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65554
65555         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65556         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65557         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65558         Problems reported by Georg Schwarz for IRIX 5.3.
65559
65560         * gnulib-tool (autoconf_minversion): Take the maximum version number
65561         found, not the minimum.  Problem reported by James Youngman.
65562
65563 2007-01-03  Karl Berry  <karl@gnu.org>
65564
65565         * doc/error.texi: new file, explaining interaction with progname.
65566         * doc/gnulib.texi: include it.  Update copyright.
65567
65568 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65569
65570         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65571         AC_CANONICAL_HOST, to improve autobuild outputs.
65572
65573 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65574             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65575
65576         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65577         sockets, server sockets, and other file descriptors.  Count errors
65578         to compute the return value.  Reorder the code a bit to be easier
65579         to follow.  Don't set event bits that were not requested (except
65580         POLLERR and POLLHUP).
65581
65582 2007-01-01  Bruno Haible  <bruno@clisp.org>
65583
65584         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65585
65586 2007-01-03  Jim Meyering  <jim@meyering.net>
65587
65588         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65589
65590 2007-01-02  Bruno Haible  <bruno@clisp.org>
65591
65592         * modules/settime (Include): Require timespec.h.
65593         * modules/nanosleep (Include): Likewise.
65594
65595 2007-01-01  Bruno Haible  <bruno@clisp.org>
65596
65597         * gnulib-tool (func_emit_copyright_notice): Bump year.
65598         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65599
65600 2007-01-01  Bruno Haible  <bruno@clisp.org>
65601
65602         Improve support for OpenBSD.
65603         * build-aux/config.rpath (libname_spec): Export.
65604         (library_names_spec): New variable. Export.
65605         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65606         library_names_spec from the config.rpath output. Locate shared library
65607         through the name pattern in library_names_spec.
65608
65609 2007-01-01  Eric Blake  <ebb9@byu.net>
65610
65611         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65612
65613 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65614
65615         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65616         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65617         assume the C locale, and avoid an "eval" that could cause trouble.
65618         Problem with SORT reported by Bob Proulx.
65619
65620         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65621         Define.  Trivial patch from Henning Nielsen Lund, originally
65622         sent to bug-grep@gnu.org today.
65623
65624 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65625
65626         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65627         struct stat.  Problem reported by Henning Nielsen Lund.
65628         * lib/acl.c: Include acl.h first, to check interface.  Don't
65629         bother to include sys/types.h and sys/stat.h again.
65630
65631 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65632
65633         Import the following change from libc; problem reported by
65634         Sven Verdoolaege.
65635
65636         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65637
65638         [BZ #1373]
65639         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65640
65641 2006-12-28  Jim Meyering  <jim@meyering.net>
65642
65643         * build-aux/announce-gen: Do not assume that the package
65644         builds any of tar.gz, tar.bz2, and .xdelta files.
65645         Suggestion from Simon Josefsson.
65646
65647 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65648
65649         * modules/announce-gen: New file.
65650
65651 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65652
65653         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65654         handles its gotchas now.
65655         * lib/mbswidth.c: Likewise.
65656         * lib/wcwidth.h: Likewise.
65657         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65658         and iswcntrl; the wctype module does this stuff now.
65659         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65660         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65661         * modules/mbchar (Depends-on): Add wctype.
65662         * modules/mbswidth (Depends-on): Likewise.
65663         * modules/wcwidth (Depends-on): Likewise.
65664
65665 2006-12-27  Eric Blake  <ebb9@byu.net>
65666
65667         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65668         module uses more than what <wctype.h> is required to provide.
65669
65670 2006-12-26  Eric Blake  <ebb9@byu.net>
65671
65672         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65673
65674 2006-12-26  Eric Blake  <ebb9@byu.net>
65675
65676         * modules/absolute-header: New module.
65677         * modules/fcntl (Depends-on): Depend on it.
65678         * modules/inttypes (Depends-on): Likewise.
65679         * modules/stdint (Depends-on): Likewise.
65680         * modules/sys_stat (Depends-on): Likewise.
65681         * modules/wctype (Depends-on): Likewise.
65682         * MODULES.html.sh (Support for building libraries and
65683         executables): Document it.
65684
65685 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65686
65687         * gnulib-tool (SED): Remove, undoing previous change.
65688         The problem was that it broke coreutils on Solaris, because
65689         "sed --posix" leaked into a makefile.
65690         (sed): New alias, if 'alias' and GNU sed.
65691
65692 2006-12-24  Jim Meyering  <jim@meyering.net>
65693
65694         Work around an fchownat bug in glibc-2.4:
65695         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65696         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65697         in spite of the -P option.
65698         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65699         New macros.
65700         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65701         * modules/openat (Files): Add lib/fchownat.c.
65702         * lib/openat.c (fchownat): Don't define here.  Move to...
65703         * lib/fchownat.c: ...this new file.
65704
65705 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65706
65707         Fix bug reported by Bruno Haible in
65708         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65709         where quotearg.c didn't compile on Mac OS X 10.2 because it
65710         lacks <wchar.h> and wint_t.
65711         * lib/wctype_.h (__wctype_wint_t): New type.
65712         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65713         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65714         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65715         Arg is now of type __wctype_wint_t, not wint_t.
65716         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65717         substitute HAVE_WINT_T.
65718         * modules/wctype (Files): Add m4/wint_t.m4.
65719         (wctype.h): Substitute HAVE_WINT_T.
65720
65721 2006-12-23  Bruno Haible  <bruno@clisp.org>
65722
65723         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65724
65725 2006-12-23  Bruno Haible  <bruno@clisp.org>
65726
65727         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65728         S_ISLNK.
65729         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65730         mingw.
65731
65732 2006-12-22  Bruno Haible  <bruno@clisp.org>
65733
65734         * lib/copy-file.c: Include acl.h.
65735         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65736         Close the file descriptors only after being done with copy_acl.
65737         * modules/copy-file (Depends-on): Add acl.
65738
65739 2006-12-22  Bruno Haible  <bruno@clisp.org>
65740
65741         * gnulib-tool (SED): New variable.
65742         Use $SED instead of sed everywhere.
65743
65744 2006-12-22  Bruno Haible  <bruno@clisp.org>
65745
65746         * modules/no-c++: New file.
65747         * m4/no-c++.m4: New file.
65748         * MODULES.html.sh (Support for building libraries and executables):
65749         Add no-c++.
65750
65751 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65752
65753         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65754         Include <limits.h>, and use its INT_MAX to rewrite the
65755         j loop so that it does not overflow 'int'.  Problem reported by
65756         Ralf Wildenhues in
65757         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65758         Play it safe by shifting left by 1 rather than multiplying by 2,
65759         as GCC is less likely to optimize this away when the value
65760         is signed (when it assumes overflow leads to undefined behavior).
65761         Also, don't assume time_t uses two's complement.
65762
65763 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65764
65765         * MODULES.html.sh: New module wctype.
65766         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65767         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65768         <wctype.h>, since the new wctype module should fix this.
65769         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65770         the wctype module should arrange for it.
65771         * lib/regex_internal.h: Likewise.
65772         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65773         since the wctype module should handle this now.
65774         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65775         * modules/fnmatch (Depends-on): Add wctype.
65776         * modules/quotearg (Depends-on): Likewise.
65777         * modules/regex (Depends-on): Likewise.
65778
65779 2006-12-19  Bruno Haible  <bruno@clisp.org>
65780
65781         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65782         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65783
65784 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65785
65786         * modules/savewd (Depends-on): Fix dependency on fcntl.
65787
65788 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65789
65790         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65791         conforms to C99, rather than relying on the user's environment
65792         setting of STDINT_H.
65793
65794 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65795         and Eric Blake  <ebb9@byu.net>
65796
65797         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65798         This is more consistent with the other defines here.
65799         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65800         Port to z/OS.  Problem reported by Paul Gilmartin.
65801         Change local vars to use gl_ prefix rather than ac_.
65802         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65803         with other defines.
65804         * modules/double-slash-root: New module.
65805         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65806         (Depends-on): Add double-slash-root.
65807         * MODULES.html.sh (File system functions): Mention new module.
65808
65809 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65810
65811         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65812         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65813         This is for the benefit of gzip, which doesn't do i18n.
65814
65815 2006-12-12  Jim Meyering  <jim@meyering.net>
65816
65817         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65818         Reported by Andreas Schwab <schwab@suse.de>.
65819
65820 2006-12-12  Bruno Haible  <bruno@clisp.org>
65821
65822         Merge these changes.
65823         2006-09-05  Bruno Haible  <bruno@clisp.org>
65824         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65825         iconv_alloc succeeded.
65826         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65827         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65828         test for " && dest " at the end - dest is always != NULL there. Call
65829         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65830         with 2xNULL arguments, also to flush the state storage. Handle the
65831         IRIX iconv behaviour. Realloc the final result, to throw away unused
65832         memory.
65833
65834 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65835
65836         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65837         and fchmodat unconditionally, since glibc 2.4 has them.
65838         Problem reported by Arkadiusz Miskiewicz.
65839
65840 2006-12-10  Bruno Haible  <bruno@clisp.org>
65841
65842         * gnulib-tool (func_import): Show the include files only for those
65843         modules that are copied and specified.
65844         Reported by Karl Berry.
65845
65846 2006-12-08  Jim Meyering  <jim@meyering.net>
65847
65848         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65849         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65850
65851         * build-aux/announce-gen: Add two new options, both optional:
65852         --bootstrap-tools=TOOL_LIST
65853               a comma-separated list of tools, e.g.,
65854               autoconf,automake,bison,gnulib
65855         --gnulib-snapshot-date=DATE
65856               if gnulib is in the bootstrap tool list,
65857               then report this as the snapshot date.
65858               If not specified, use the current date/time.
65859               If you specify a date here, be sure it's UTC.
65860
65861 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65862
65863         * tests/test-argp-2.sh: Fix test to match actual output.
65864         (func_compare): Fix sed script to be portable.
65865
65866 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65867
65868         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65869         workaround for this case.  It is not autoconfigured now; offhand
65870         it's hard to see how to autoconfigure it.
65871
65872 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65873
65874         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65875         a directory that is about to be chowned.  Such a directory's
65876         initial file permissions should permit the owner only and this
65877         should not be changed until after the chown, since the group and
65878         other bits would be incorrect if they granted permission before
65879         the chown.
65880
65881         Fix porting problem for iswctype reported by Georg Schwarz in:
65882         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65883         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65884         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65885         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65886         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65887
65888 2006-12-03  Jim Meyering  <jim@meyering.net>
65889
65890         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65891         p->fts_statp may not yet be defined.
65892         (fts_read): Instead, set it in the caller, once p->fts_statp is
65893         sure to be defined, and corresponds to a top-level directory.
65894         This bug made du -x fail.  Here's the coreutils test case:
65895         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65896         Reported by Mike Frysinger.
65897
65898 2006-12-01  Jim Meyering  <jim@meyering.net>
65899
65900         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65901         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65902         Reported by Simon Josefsson.
65903
65904 2006-11-30  Jim Meyering  <jim@meyering.net>
65905
65906         * m4/warning.m4: Use the all-permissive copyright notice
65907         recommended by RMS (rather than LGPL).
65908         * m4/vararrays.m4: Likewise.
65909         * m4/flexmember.m4: Likewise.
65910
65911 2006-11-29  Bruno Haible  <bruno@clisp.org>
65912
65913         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65914         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65915         using +=.
65916         Reported by Simon Josefsson <simon@josefsson.org>.
65917
65918 2006-11-28  James Youngman <jay@gnu.org>
65919
65920         * README: Advise users that they might find the bug-gnulib@gnu.org
65921         and autotools-announce@gnu.org mailing lists useful.
65922
65923 2006-11-28  Bruno Haible  <bruno@clisp.org>
65924
65925         * m4/ptrdiff_max.m4: Remove file.
65926
65927 2006-11-21  Bruno Haible  <bruno@clisp.org>
65928
65929         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65930         _AC_COMPUTE_INT.
65931         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65932         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65933         _AC_COMPUTE_INT.
65934         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65935         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65936         _AC_COMPUTE_INT.
65937         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65938
65939 2006-11-28  Jim Meyering  <jim@meyering.net>
65940
65941         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65942         warning from "gcc -Wshadow" about shadowing the builtin.
65943
65944 2006-11-27  Bruno Haible  <bruno@clisp.org>
65945
65946         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65947         _AC_COMPUTE_INT.
65948         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65949
65950 2006-11-27  Bruno Haible  <bruno@clisp.org>
65951             Paul Eggert  <eggert@cs.ucla.edu>
65952
65953         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65954
65955 2006-11-26  Bruno Haible  <bruno@clisp.org>
65956
65957         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65958         noinst_LTLIBRARIES.
65959
65960 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65961             Bruno Haible  <bruno@clisp.org>
65962
65963         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65964         if compiling with "gcc -ansi".
65965
65966 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65967
65968         Fix some incompatibilities with gcc -ansi -pedantic.
65969         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65970         if compiling pedantically with GCC, unless it's C99 or later.
65971         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65972         it mishandles gcc -ansi -pedantic as well.
65973         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65974         if gcc -pedantic.
65975         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65976         initializers for struct if -pedantic, unless it's C99 or later.
65977
65978 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65979
65980         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65981         Don't close an fd more than once. Identical atimes indicate
65982         success, not failure.
65983
65984 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65985
65986         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65987
65988 2006-11-23  Jim Meyering  <jim@meyering.net>
65989
65990         * build-aux/announce-gen: New file.  From coreutils.
65991
65992 2006-11-22  Jim Meyering  <jim@meyering.net>
65993
65994         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65995         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65996         (fts_read): Use a temporary to narrow the overused st_size member
65997         before using it in a switch statement.  Reported by Matthew Woehlke.
65998
65999         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66000         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66001
66002 2006-11-20  Bruno Haible  <bruno@clisp.org>
66003
66004         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66005         changequote instead of pairs of brackets.
66006         Reported by Andreas Schwab <schwab@suse.de>.
66007
66008 2006-11-21  Jim Meyering  <jim@meyering.net>
66009
66010         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66011         so as to remain compatible with older compilers.
66012         Patch from Michael Deutschmann.
66013
66014 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66015
66016         * MODULES.html.sh (File system functions): Add openat.
66017
66018         * lib/openat.h (rpl_fstatat): New macro, if
66019         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66020         (fstatat): Define to rpl_fstatat under the same conditions,
66021         unless COMPILING_FSTATAT.
66022         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66023         seems to have the bug.
66024         * lib/fstatat.c: New file.
66025         * modules/openat (Files): Add it.
66026
66027 2006-11-20  Bruno Haible  <bruno@clisp.org>
66028
66029         * Makefile: New file.
66030
66031 2006-11-20  Jim Meyering  <jim@meyering.net>
66032
66033         The beginnings of syntax-related checks for gnulib.
66034         * lib/Makefile: New file.
66035         * lib/t-idcache: New script.  Ensure that the two halves of
66036         idcache.c stay in sync.
66037
66038         * lib/idcache.c: Adjust comments in user- and group- portions to
66039         be more accurate, and to be consistent with one another.
66040
66041 2006-11-20  Jim Meyering  <jim@meyering.net>
66042
66043         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66044         continue using the flexible array member (thus, this module performs
66045         half as many malloc calls), with the addition that...
66046         (getgroup, getuser): Consistently record a non-match via an empty
66047         "name" string, and map an empty string match to a NULL return value.
66048         * modules/idcache (Depends-on): Re-add flexmember.
66049
66050         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66051         (getuidbyname, getgroup, getgidbyname): Likewise.
66052
66053         Use cleaner syntax: NULL rather than 0.
66054         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66055
66056 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66057
66058         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66059         It mishandled the case where the group was missing.
66060         Problem reported by Greg Schafer.
66061         * modules/idcache: Likewise.
66062
66063 2006-11-18  Jim Meyering  <jim@meyering.net>
66064
66065         * check-module (%exempt_header): Add exception for some
66066         conditionally-included headers.
66067
66068         * modules/i-ring (Depends-on): Add verify.
66069         (License): Change to LGPL.
66070
66071 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66072
66073         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66074         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66075         and inttostr.h.  Use snprintf rather than uinttostr, so that
66076         LGPLed code doesn't depend on GPLed.
66077
66078 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66079
66080         * modules/inline (License): Change from GPL to LGPL.
66081
66082 2006-11-17  Jim Meyering  <jim@meyering.net>
66083
66084         * modules/d-type (License): Switch to LGPL.
66085
66086 2006-11-15  Bruno Haible  <bruno@clisp.org>
66087
66088         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66089
66090 2006-11-15  Eric Blake  <ebb9@byu.net>
66091
66092         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66093         the module dependency.
66094
66095 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66096             Bruno Haible  <bruno@clisp.org>
66097
66098         * gnulib-tool (func_create_testdir): Add license consistency check.
66099
66100 2006-11-15  Eric Blake  <ebb9@byu.net>
66101
66102         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66103         random "(cached)" in configure output.
66104
66105 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66106
66107         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66108         test for conforming inttypes.h is both announced and cached.
66109
66110         * MODULES.html.sh (seen_modules, seen_files): New variables.
66111         (func_module): Rewrite to use a few less gnulib-tool and sed
66112         invocations.  Avoid a couple of quadratic algorithms for ...
66113         (missed_modules, missed_files): ... these, with ...
66114         (func_append, func_tmpdir): ... these new functions, from
66115         gnulib-tool.  Analogously, install traps for cleanup.
66116
66117         * tests/test-gc.c (main): Remove unused variables.
66118         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66119
66120 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66121
66122         * modules/inttostr (License): Change to LGPL.
66123
66124 2006-11-14  Eric Blake  <ebb9@byu.net>
66125
66126         * modules/tempname (License): Change to LGPL.
66127
66128 2006-11-14  Eric Blake  <ebb9@byu.net>
66129
66130         * doc/functions.texi (Function Portability): *printf functions on
66131         Cygwin now understand all POSIX size specifiers.
66132
66133 2006-11-14  Bruno Haible  <bruno@clisp.org>
66134
66135         * modules/c-ctype (License): Change to LGPL.
66136
66137 2006-11-12  Bruno Haible  <bruno@clisp.org>
66138
66139         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66140         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66141         for GNOME libraries, for which the include files are installed in
66142         subdirectories of $prefix/include.
66143
66144 2006-11-12  Bruno Haible  <bruno@clisp.org>
66145
66146         * m4/lib-link.m4: Require at least autoconf-2.54.
66147         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66148         name to underscores for the --with option.
66149
66150 2006-11-13  Bruno Haible  <bruno@clisp.org>
66151
66152         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66153         the tests directory.
66154         Reported by Ralf Wildenhues.
66155
66156 2006-11-13  Bruno Haible  <bruno@clisp.org>
66157
66158         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66159         (func_emit_initmacro_end): Undo the override here.
66160         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66161         Works around the famous automake error in coreutils.
66162
66163 2006-11-13  Eric Blake  <ebb9@byu.net>
66164
66165         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66166         element, not its node.
66167
66168 2006-11-12  Bruno Haible  <bruno@clisp.org>
66169
66170         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66171         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66172
66173 2006-11-12  Bruno Haible  <bruno@clisp.org>
66174
66175         * gnulib-tool: New option --local-symlink.
66176         (func_usage): Document it.
66177         (lsymbolic): New variable.
66178         (func_import, func_create_testdir): If --symlink was not specified,
66179         test whether --local-symlink was specified and the file comes from
66180         the local_gnulib_dir.
66181
66182 2006-11-12  Bruno Haible  <bruno@clisp.org>
66183
66184         * gnulib-tool (func_ln): New function.
66185         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66186
66187 2006-11-12  Bruno Haible  <bruno@clisp.org>
66188
66189         Finish support for source files in subdirectories.
66190         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66191         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66192         AUTOMAKE_OPTIONS.
66193         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66194
66195 2006-11-12  Bruno Haible  <bruno@clisp.org>
66196
66197         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66198         EXTRA_lib_SOURCES augmentation.
66199         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66200
66201 2006-11-12  Jim Meyering  <jim@meyering.net>
66202
66203         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66204         file descriptors.  This also averts a failure on systems with
66205         native openat support when a traversed directory lacks "x" access.
66206         * lib/fts_.h: Include "i-ring.h"
66207         (struct FTS) [fts_fd_ring]: New member.
66208         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66209         (FCHDIR): Add parentheses.
66210         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66211         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66212         When descending, rather than simply closing the previous
66213         fts_cwd_fd value, push that file descriptor onto the ring.
66214         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66215         (fts_open): Initialize the new fd_ring member.
66216         (fts_close): Clear the ring.
66217         (fts_safe_changedir): When possible, use our new fd_ring to skip
66218         the diropen and fstat and dev/ino comparison that would normally
66219         accompany a virtual `chdir ("..")'.
66220
66221         * modules/fts (Depends-on): Add i-ring.
66222         * modules/i-ring: New module.
66223         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66224         * m4/i-ring.m4: New file.
66225
66226 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66227
66228         * gnulib-tool (func_create_testdir): Fix replacement of
66229         `build-aux' in configure.ac.  Run autotools in gltests
66230         subdirectory.
66231         (func_create_testdir, func_create_megatestdir, test): There is
66232         no need for '--force' in most autotool invocations in a new
66233         tree.  Actually fail the whole test if any of the tools, or the
66234         configure or make stages fail.
66235
66236         Sync from Automake.
66237         * build-aux/gnupload: Revert last change.  Add pointer to upload
66238         instructions of the GNU Maintenance Instructions.
66239         Suggestion by Karl Berry.
66240
66241 2006-11-10  Jim Meyering  <jim@meyering.net>
66242
66243         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66244
66245 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66246
66247         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66248         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66249         (bind_textdomain_codeset) [! ENABLE_NLS]:
66250         Evaluate all the arguments.  That way, callers get compatible behavior
66251         if the arguments have side effects.  Also, it avoids some GCC
66252         diagnostics in some cases; Joel E. Denny reported problems when Bison
66253         was configured with --enable-gcc-warnigs.
66254
66255 2006-11-10  Jim Meyering  <jim@meyering.net>
66256
66257         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66258         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66259         account.
66260
66261 2006-11-10  Jim Meyering  <jim@meyering.net>
66262
66263         * modules/inline: New file/module.
66264         * modules/xalloc (Files): Remove m4/inline.m4.
66265         (Depends-on): Add inline, instead.
66266         * modules/oset: Likewise.
66267         * modules/list: Likewise.
66268
66269 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66272         Problem reported by Matthew Woehlke.
66273
66274 2006-11-09  Bruno Haible  <bruno@clisp.org>
66275
66276         * lib/tempname.c (gen_tempname): Remove variant that invokes
66277         __gen_tempname.
66278         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66279         __gen_tempname.
66280
66281 2006-11-08  Bruno Haible  <bruno@clisp.org>
66282
66283         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66284         to 'yes' instead of 'cross-compiling'.
66285
66286 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66287
66288         * lib/quotearg.h (quotearg_free): New decl.
66289         * lib/quotearg.c (quotearg_free): New function.
66290         (slot0, nslots, slotvec0, slotvec):
66291         Now file-scope so that quotearg_free can get at them.
66292
66293 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66294
66295         Sync from Automake.
66296         * build-aux/gnupload: Add missing 'gnu' to example URL.
66297         Report by Karl Berry.
66298
66299 2006-11-08  Bruno Haible  <bruno@clisp.org>
66300
66301         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66302         Suggested by Paul Eggert.
66303
66304 2006-11-08  Jim Meyering  <jim@meyering.net>
66305
66306         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66307         It's already included if !_LIBC.
66308         (fts_safe_changedir): Add a comment.
66309
66310 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66311
66312         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66313         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66314         Matthew Woehlke.
66315
66316         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66317         definitions up, to avoid colliding with change below.
66318         (static_inline) [HAVE_INLINE]: New macro.
66319         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66320         Provide extern decls when !HAVE_INLINE.  Do not define unless
66321         static_inline is defined, either by us or by xmalloc.c.  Use
66322         static_inline rather than static inline.
66323         (XCALLOC): Optimize sizeof(T) = 1 case.
66324         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66325
66326 2006-11-07  Bruno Haible  <bruno@clisp.org>
66327
66328         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66329         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66330         AC_C_INLINE.
66331         * modules/xalloc (Files): Add m4/inline.m4.
66332
66333 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66334
66335         * README: Fix typo.
66336         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66337         (Miscellanous Notes): ...from this.
66338
66339 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66340
66341         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66342         Mention that offsetof should be used instead of sizeof.
66343         From Bruno Haible.
66344
66345 2006-11-07  Bruno Haible  <bruno@clisp.org>
66346
66347         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66348
66349 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66350
66351         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66352         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66353         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66354         (gl_tree_add_before, gl_tree_add_after):
66355         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66356         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66357         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66358         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66359         (gl_linked_add_after, gl_linked_add_at): Likewise.
66360         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66361         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66362         (gl_tree_add_before, gl_tree_add_after): Likewise.
66363         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66364         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66365         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66366
66367 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66368
66369         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66370
66371 2006-11-06  Bruno Haible  <bruno@clisp.org>
66372
66373         * m4/inline.m4: New file.
66374         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66375         * modules/list (Files): Add m4/inline.m4.
66376         * modules/oset (Files): Likewise.
66377
66378 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66379
66380         * lib/idcache.c: Include <stddef.h>, for offsetof.
66381         (struct userid.name): Change from char * to a flexible array member.
66382         All uses changed.
66383         * modules/idcache (Depends-on): Add flexmember.
66384
66385         * MODULES.html.sh (Core language properties): New module flexmember.
66386         * modules/flexmember, m4/flexmember.m4: New files.
66387
66388         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66389         inline functions that are identical with the old xnmalloc_inline,
66390         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66391         that we can avoid some unnecessary integer multiplications and
66392         divisions in the common case where the element size is known at
66393         compile time.
66394         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66395         needed.
66396         (xnboundedmalloc): Remove.
66397         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66398         arguments, for consistency with rest of this header.
66399         (xcharalloc): Rewrite using XNMALLOC.
66400         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66401         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66402         versions have been moved to lib/xalloc.h and renamed to be the
66403         non-*_inline versions.
66404         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66405         and xnrealloc functions, since those functions are now inline and
66406         now call us.
66407         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66408         renaming described above.
66409         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66410         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66411         captures the dependency in AC_C_INLINE.
66412
66413         New module canonicalize-lgpl, proposed by Charles Wilson in
66414         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66415         with a few small changes afterwards.
66416         * MODULES.html.sh (File system functions): New module
66417         canonicalize-lgpl.
66418         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66419         and canonicalize_file_name.
66420         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66421         * modules/canonicalize-lgpl: New files.
66422
66423 2006-11-05  Bruno Haible  <bruno@clisp.org>
66424
66425         * gnulib-tool (func_import, func_create_testdir): Create directories
66426         also for files in subdirectories of lib/.
66427
66428 2006-11-05  Bruno Haible  <bruno@clisp.org>
66429
66430         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66431         ANSI C compliant.
66432
66433 2006-11-03  Bruno Haible  <bruno@clisp.org>
66434
66435         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66436         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66437         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66438         (xnboundedmalloc): New inline function.
66439         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66440         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66441         xmalloc.
66442         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66443         xmalloc.
66444         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66445         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66446         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66447         xmalloc.
66448         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66449         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66450         xmalloc.
66451         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66452         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66453         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66454         xmalloc.
66455         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66456         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66457         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66458         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66459         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66460         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66461         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66462
66463 2006-11-03  Bruno Haible  <bruno@clisp.org>
66464
66465         * lib/c-ctype.h [C++]: Define functions without name mangling.
66466         * lib/fwriteerror.h [C++]: Likewise.
66467         * lib/gcd.h [C++]: Likewise.
66468         * lib/linebreak.h [C++]: Likewise.
66469
66470 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66471
66472         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66473         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66474         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66475         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66476         Check for functions and headers just once.
66477         Check for declaration of canonicalize_file_name.
66478         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66479
66480 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66481
66482         * gnulib-tool (func_import): Fix typo in actioncmd.
66483
66484 2006-11-02  Bruno Haible  <bruno@clisp.org>
66485
66486         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66487         newline sequence in the Makefile.am snippet as a space, like "make"
66488         does.
66489         Reported by Roger Persson <perrog@gmail.com>.
66490
66491 2006-11-01  Bruno Haible  <bruno@clisp.org>
66492
66493         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66494         already declared in <string.h>.
66495         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66496
66497 2006-11-01  Bruno Haible  <bruno@clisp.org>
66498
66499         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66500         * lib/strcase.h: Include <string.h>.
66501         (strcasecmp): Define to rpl_strcasecmp here.
66502
66503 2006-11-01  Bruno Haible  <bruno@clisp.org>
66504
66505         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66506
66507 2006-11-01  Eric Blake  <ebb9@byu.net>
66508
66509         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66510
66511         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66512
66513 2006-10-29  Bruno Haible  <bruno@clisp.org>
66514
66515         Make it compile in C++ mode.
66516         * lib/full-write.c (full_rw): Add a cast.
66517
66518 2006-11-01  Bruno Haible  <bruno@clisp.org>
66519
66520         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66521         be POSIX compliant.
66522         Reported by Roger Persson <perrog@gmail.com>.
66523
66524 2006-11-01  Eric Blake  <ebb9@byu.net>
66525
66526         * lib/getopt_.h: Fix comments.
66527
66528 2006-10-31  Eric Blake  <ebb9@byu.net>
66529
66530         * modules/tmpdir (Depends-on): Add sys_stat.
66531         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66532         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66533         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66534         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66535         tempname.
66536
66537 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66538
66539         Avoid some C++ diagnostics reported by Bruno Haible.
66540         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66541         xmalloc.
66542         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66543         (struct slotvec): Move to top level.
66544         (quotearg_n_options): Rewrite to avoid xmalloc.
66545         * lib/xalloc.h (xcharalloc): New function.
66546         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66547         [defined __cplusplus]: Add function template that provides result
66548         type propagation.  This part of the change is from Bruno Haible.
66549
66550 2006-10-29  Bruno Haible  <bruno@clisp.org>
66551
66552         Make it compile in C++ mode.
66553         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66554         * lib/strnlen1.c (strnlen1): Cast memchr result.
66555         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66556         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66557         (create_temp_dir): Rename local variable 'template'.
66558         (compile_csharp_using_sscli): Add cast.
66559         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66560         * lib/findprog.c (find_in_path): Likewise.
66561         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66562         * lib/wait-process.c (register_slave_subprocess): Likewise.
66563
66564 2006-10-22  Bruno Haible  <bruno@clisp.org>
66565
66566         * modules/tsearch: New file.
66567         * lib/tsearch.h: New file.
66568         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66569         * m4/tsearch.m4: New file.
66570         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66571
66572 2006-10-29  Eric Blake  <ebb9@byu.net>
66573
66574         * lib/arcfour.c: Assume config.h.
66575         * lib/arctwo.c: Likewise.
66576         * lib/base64.c: Likewise.
66577         * lib/check-version.c: Likewise.
66578         * lib/crc.c: Likewise.
66579         * lib/des.c: Likewise.
66580         * lib/gc-gnulib.c: Likewise.
66581         * lib/gc-libgcrypt.c: Likewise.
66582         * lib/gc-pbkdf2-sha1.c: Likewise.
66583         * lib/getaddrinfo.c: Likewise.
66584         * lib/getdelim.c: Likewise.
66585         * lib/getline.c: Likewise.
66586         * lib/hmac-md5.c: Likewise.
66587         * lib/hmac-sha1.c: Likewise.
66588         * lib/iconvme.c: Likewise.
66589         * lib/md2.c: Likewise.
66590         * lib/md4.c: Likewise.
66591         * lib/memxor.c: Likewise.
66592         * lib/read-file.c: Likewise.
66593         * lib/readline.c: Likewise.
66594         * lib/rijndael-alg-fst.c: Likewise.
66595         * lib/rijndael-api-fst.c: Likewise.
66596         * lib/xgetdomainname.c: Likewise.
66597
66598 2006-10-28  Eric Blake  <ebb9@byu.net>
66599
66600         * lib/xstrndup.c: Assume config.h.
66601
66602 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66603
66604         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66605         stat-macros.h is now for our own macros, whereas stat_h is for
66606         macros in the <sys/stat.h> name space.
66607         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66608         (STAT_MACROS_H): Remove.
66609         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66610         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66611         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66612         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66613         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66614         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66615         Move these macros to ...
66616         * lib/stat_.h: here.  Don't include stat-macros.h.
66617         * lib/canonicalize.c: Don't include stat-macros.h.
66618         * lib/chown.c: Likewise.
66619         * lib/euidaccess.c: Likewise.
66620         * lib/file-type.c: Likewise.
66621         * lib/filemode.c: Likewise.
66622         * lib/glob.c: Likewise.
66623         * lib/isapipe.c: Likewise.
66624         * lib/lchown.c: Likewise.
66625         * lib/lstat.c: Likewise.
66626         * lib/mkdir-p.c: Likewise.
66627         * lib/rmdir.c: Likewise.
66628         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66629         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66630         unless mkdir isn't declared, to speed up 'configure'.
66631         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66632         would define all the S_* symbols.
66633         * modules/canonicalize (Depends-on):
66634         Depend on sys_stat, not stat-macros.
66635         * modules/chown: Likewise.
66636         * modules/euidaccess: Likewise.
66637         * modules/filemode: Likewise.
66638         * modules/file-type: Likewise.
66639         * modules/glob: Likewise.
66640         * modules/isapipe: Likewise.
66641         * modules/lchown: Likewise.
66642         * modules/lstat: Likewise.
66643         * modules/mkancesdirs: Likewise.
66644         * modules/rmdir: Likewise.
66645         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66646         * modules/modechange: Likewise.
66647         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66648         (configure.ac): Remove gl_STAT_MACROS.
66649         * modules/sys_stat (Depends-on): Remove stat-macros.
66650
66651 2006-10-27  Bruno Haible  <bruno@clisp.org>
66652
66653         * m4/signed.m4: Remove file.
66654         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66655         invocation.
66656         * modules/vasnprintf (Files): Remove m4/signed.m4.
66657
66658 2006-10-27  Bruno Haible  <bruno@clisp.org>
66659
66660         Update to GNU gettext 0.16.
66661         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66662         m4/inttypes-h.m4, m4/signed.m4.
66663         * m4/gettext.m4: Update to GNU gettext 0.16.
66664         * m4/intl.m4: New file, from GNU gettext.
66665         * m4/intldir.m4: New file, from GNU gettext.
66666         * config/srclist.txt: Update
66667
66668 2006-10-27  Eric Blake  <ebb9@byu.net>
66669
66670         * MODULES.html.sh: Document tempname.
66671         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66672         dependencies.
66673         (Files): Move lib/tempname.c...
66674         * modules/tempname: ...to this new module.
66675         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66676         (gl_PREREQ_TEMPNAME): Move...
66677         * m4/tempname.m4: ...to this new file.
66678         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66679         * modules/sys_stat (Depends-on): Add stat-macros.
66680         * lib/stat_.h (includes): Pick up stat macros.
66681         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66682         if stat macros are broken.
66683         * lib/tempname.c (includes): No need to include "stat-macros.h".
66684         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66685         (direxists, __path_search) [!_LIBC]: Don't compile these in
66686         gnulib; the tmpdir module covers that.
66687         * lib/tempname.h: New file.
66688
66689 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66690
66691         * COPYING: Explain how gnulib-tool converts licence headers.
66692         Almost all wording by Eric Blake.
66693
66694 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66695
66696         * lib/mbchar.h (is_basic_table): Make read-only.
66697         * lib/mbchar.c (is_basic_table): Likewise.
66698         Reported by John Darrington.
66699
66700 2006-10-25  Bruno Haible  <bruno@clisp.org>
66701
66702         * lib/progname.h (set_program_name): Undefine before defining.
66703
66704 2006-10-25  Bruno Haible  <bruno@clisp.org>
66705
66706         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66707         false for non-gcc C++ compilers.
66708         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66709
66710 2006-10-24  Bruno Haible  <bruno@clisp.org>
66711
66712         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66713         iconv implementations like Irix iconv.
66714
66715 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66716
66717         * modules/vararrays: New file.
66718         * m4/vararrays.m4: New file, taken from diffutils.
66719         * MODULES.html.sh: New module vararrays.
66720
66721 2006-10-24  Karl Berry  <karl@gnu.org>
66722
66723         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66724         Don't call GNU Unix.
66725
66726 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66727
66728         * users.txt: Add Libtool.
66729
66730         Sync from Libtool:
66731
66732         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66733
66734         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66735         to gnulib's policy of including config.h unconditionally.
66736
66737 2006-10-24  Bruno Haible  <bruno@clisp.org>
66738
66739         * modules/wcwidth (Files): Add m4/wint_t.m4.
66740         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66741         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66742
66743 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66744
66745         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66746         to pacify GCC with some -W flags enabled.  Problem reported by
66747         Bruno Haible.
66748
66749 2006-10-24  Jim Meyering  <jim@meyering.net>
66750
66751         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66752         Reported by Karl Berry.
66753
66754 2006-10-23  Bruno Haible  <bruno@clisp.org>
66755
66756         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66757
66758 2006-10-24  Bruno Haible  <bruno@clisp.org>
66759
66760         * lib/gl_list.h: Use C comment style, not C++ comment style.
66761
66762 2006-10-23  Eric Blake  <ebb9@byu.net>
66763
66764         * lib/getaddrinfo.c (includes): Add missing include.
66765
66766 2006-10-23  Bruno Haible  <bruno@clisp.org>
66767             Paul Eggert  <eggert@cs.ucla.edu>
66768
66769         Ability to rename obstack_free.
66770         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66771         obstack_free.
66772         (obstack_free): Invoke the __obstack_free macro.
66773         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66774
66775 2006-10-23  Bruno Haible  <bruno@clisp.org>
66776             Paul Eggert  <eggert@cs.ucla.edu>
66777
66778         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66779         __argc, __argv from the declaration. (They are defined as macros on
66780         mingw.)
66781
66782 2006-10-22  Bruno Haible  <bruno@clisp.org>
66783
66784         * doc/gnulib-intro.texi: New file.
66785         * doc/gnulib.texi: Include it.
66786
66787 2006-10-21  Bruno Haible  <bruno@clisp.org>
66788
66789         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66790         "Introduction", "Miscellanous Notes", "Particular Modules".
66791
66792 2006-10-21  Bruno Haible  <bruno@clisp.org>
66793
66794         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66795         Change mostlyclean-local rule to avoid sh syntax error from bash
66796         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66797
66798 2006-10-23  Jim Meyering  <jim@meyering.net>
66799
66800         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66801         in place of snprintf.
66802
66803         * modules/inttostr (Files): Add lib/uinttostr.c.
66804         * lib/uinttostr.c (inttostr): New file/function.
66805         * lib/inttostr.h (uinttostr): Declare.
66806         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66807         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66808         Add uinttostr.
66809         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66810
66811 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66812
66813         * lib/canonicalize.c (ELOOP): Define if not already defined.
66814         Problem reported by Bruno Haible in
66815         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66816
66817 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66818
66819         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66820         Problem reported by Perry Smith and Ville Laurikari.
66821
66822         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66823         uses.
66824
66825 2006-10-19  Bruno Haible  <bruno@clisp.org>
66826
66827         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66828         for mingw.
66829
66830 2006-10-19  Bruno Haible  <bruno@clisp.org>
66831
66832         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66833         Needed for mingw.
66834
66835 2006-10-19  Bruno Haible  <bruno@clisp.org>
66836
66837         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66838
66839 2006-10-19  Bruno Haible  <bruno@clisp.org>
66840
66841         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66842         it.
66843
66844 2006-10-19  Bruno Haible  <bruno@clisp.org>
66845
66846         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66847         invocation.
66848
66849 2006-10-19  Bruno Haible  <bruno@clisp.org>
66850
66851         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66852         mountlist by default.
66853
66854 2006-10-16  Bruno Haible  <bruno@clisp.org>
66855
66856         * lib/c-strstr.c: Include c-strstr.h.
66857
66858 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66859
66860         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66861         in a slash.
66862
66863 2006-10-18  Bruno Haible  <bruno@clisp.org>
66864
66865         * lib/lock.h [C++]: Wrap definitions in extern "C".
66866
66867 2006-10-18  Bruno Haible  <bruno@clisp.org>
66868
66869         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66870         gl_LIBOBJS list.
66871
66872 2006-10-18  Bruno Haible  <bruno@clisp.org>
66873
66874         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66875
66876 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66877
66878         * lib/xstrtol.h: Include gettext.h.
66879         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66880         Problem reported by Eric Blake.
66881         * modules/xstrtol (Depends-on): Add gettext-h.
66882
66883 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66884
66885         * lib/strftime.c (advance): New macro.
66886         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66887         incomplete type, so you can't add 0 to it.  Problem and patch
66888         reported by Eelco Dolstra for dietlibc.
66889
66890 2006-10-18  Jim Meyering  <jim@meyering.net>
66891
66892         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66893         type for a local, and rename it: s/up/user_proc/.
66894
66895 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66896
66897         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66898         READ_UTMP_USER_PROCESS.
66899         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66900
66901 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66902
66903         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66904         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66905
66906 2006-10-17  Eric Blake  <ebb9@byu.net>
66907
66908         * lib/sigprocmask.c (sigprocmask): Fix typo.
66909
66910         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66911
66912         * modules/clean-temp (Makefile.am): Don't add to make output...
66913         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66914         config.h.
66915
66916 2006-10-17  Bruno Haible  <bruno@clisp.org>
66917
66918         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66919         differently if DEFAULT_TEXT_DOMAIN is set.
66920
66921 2006-10-16  Bruno Haible  <bruno@clisp.org>
66922
66923         * lib/clean-temp.c: Include fwriteerror.h.
66924
66925 2006-10-16  Bruno Haible  <bruno@clisp.org>
66926
66927         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66928
66929 2006-10-16  Bruno Haible  <bruno@clisp.org>
66930
66931         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66932         * lib/sigprocmask.h: Include <sys/types.h>.
66933         (sigset_t): Use the system's definition if present.
66934
66935 2006-10-17  Eric Blake  <ebb9@byu.net>
66936
66937         * lib/xvasprintf.c (includes): Assume config.h.
66938         * lib/xasprintf.c (includes): Likewise.
66939
66940 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66941
66942         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66943         at least as wide as intmax_t.
66944
66945 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66946
66947         (Imported from Automake.)
66948         * build-aux/gnupload: Update to version 1.1 of directive file.
66949
66950 2006-10-16  Eric Blake  <ebb9@byu.net>
66951
66952         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66953         match Automake 1.10a.
66954
66955 2006-10-14  Bruno Haible  <bruno@clisp.org>
66956
66957         * modules/sigprocmask: New file.
66958         * lib/sigprocmask.h: New file.
66959         * lib/sigprocmask.c: New file.
66960         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66961         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66962         request sigprocmask.o.
66963         (gl_PREREQ_SIGPROCMASK): New macro.
66964         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66965         (Depends-on): Add sigprocmask.
66966         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66967         gt_SIGNALBLOCKING. Test for 'raise' only once.
66968         * lib/fatal-signal.c: Include sigprocmask.h.
66969         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66970         unblock_fatal_signals): Define always.
66971         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66972         sigprocmask.
66973
66974 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66975
66976         Sync from Automake.
66977         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66978         which incorrectly sets the mode of an existing destination
66979         directory.  In some cases the unpatched install-sh could do the
66980         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66981         system.  We hope this is rare in practice, but it's clearly worth
66982         fixing.  Problem reported by Alex Unleashed in
66983         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66984         Also, don't bother to check for -m bugs unless we're using -m;
66985         suggested by Stepan Kasal.
66986
66987 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66988
66989         Sync from Automake.
66990         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66991         `-c' flag, so they appear at the same position as in %FASTDEP%
66992         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66993         which ignores unknown options only after the first non-option.
66994         Bug report against M4 by Nelson H. F. Beebe.
66995
66996 2006-10-13  Jim Meyering  <jim@meyering.net>
66997
66998         Fix a bug in yesterday's change.
66999         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67000         p->fts_statp->st_dev would be used uninitialized.
67001         Ensures that we always call fts_stat on the very first entry.
67002         Miklos Szeredi reported that find -xdev stopped working.
67003
67004 2006-10-12  Bruno Haible  <bruno@clisp.org>
67005
67006         * gnulib-tool (func_get_automake_snippet): Append an automatically
67007         computed EXTRA_DIST augmentation.
67008         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67009         * modules/alloca-opt (Makefile.am): Likewise.
67010         * modules/allocsa (Makefile.am): Likewise.
67011         * modules/arcfour (Makefile.am): Likewise.
67012         * modules/arctwo (Makefile.am): Likewise.
67013         * modules/argmatch (Makefile.am): Likewise.
67014         * modules/argz (Makefile.am): Likewise.
67015         * modules/atexit (Makefile.am): Likewise.
67016         * modules/backupfile (Makefile.am): Likewise.
67017         * modules/byteswap (Makefile.am): Likewise.
67018         * modules/c-strtod (Makefile.am): Likewise.
67019         * modules/c-strtold (Makefile.am): Likewise.
67020         * modules/calloc (Makefile.am): Likewise.
67021         * modules/canon-host (Makefile.am): Likewise.
67022         * modules/canonicalize (Makefile.am): Likewise.
67023         * modules/chdir-long (Makefile.am): Likewise.
67024         * modules/chdir-safer (Makefile.am): Likewise.
67025         * modules/check-version (Makefile.am): Likewise.
67026         * modules/chown (Makefile.am): Likewise.
67027         * modules/cloexec (Makefile.am): Likewise.
67028         * modules/close-stream (Makefile.am): Likewise.
67029         * modules/closeout (Makefile.am): Likewise.
67030         * modules/crc (Makefile.am): Likewise.
67031         * modules/csharpexec (Makefile.am): Likewise.
67032         * modules/cycle-check (Makefile.am): Likewise.
67033         * modules/des (Makefile.am): Likewise.
67034         * modules/dev-ino (Makefile.am): Likewise.
67035         * modules/dirfd (Makefile.am): Likewise.
67036         * modules/dirname (Makefile.am): Likewise.
67037         * modules/dup2 (Makefile.am): Likewise.
67038         * modules/eealloc (Makefile.am): Likewise.
67039         * modules/error (Makefile.am): Likewise.
67040         * modules/euidaccess (Makefile.am): Likewise.
67041         * modules/exclude (Makefile.am): Likewise.
67042         * modules/exitfail (Makefile.am): Likewise.
67043         * modules/fcntl-safer (Makefile.am): Likewise.
67044         * modules/fcntl (Makefile.am): Likewise.
67045         * modules/file-type (Makefile.am): Likewise.
67046         * modules/fileblocks (Makefile.am): Likewise.
67047         * modules/filemode (Makefile.am): Likewise.
67048         * modules/filenamecat (Makefile.am): Likewise.
67049         * modules/fnmatch (Makefile.am): Likewise.
67050         * modules/fopen-safer (Makefile.am): Likewise.
67051         * modules/fpending (Makefile.am): Likewise.
67052         * modules/fprintftime (Makefile.am): Likewise.
67053         * modules/free (Makefile.am): Likewise.
67054         * modules/fsusage (Makefile.am): Likewise.
67055         * modules/ftruncate (Makefile.am): Likewise.
67056         * modules/fts (Makefile.am): Likewise.
67057         * modules/gc-arcfour (Makefile.am): Likewise.
67058         * modules/gc-des (Makefile.am): Likewise.
67059         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67060         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67061         * modules/gc-md4 (Makefile.am): Likewise.
67062         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67063         * modules/gc-sha1 (Makefile.am): Likewise.
67064         * modules/gc (Makefile.am): Likewise.
67065         * modules/getaddrinfo (Makefile.am): Likewise.
67066         * modules/getcwd (Makefile.am): Likewise.
67067         * modules/getdelim (Makefile.am): Likewise.
67068         * modules/getdomainname (Makefile.am): Likewise.
67069         * modules/getgroups (Makefile.am): Likewise.
67070         * modules/gethostname (Makefile.am): Likewise.
67071         * modules/gethrxtime (Makefile.am): Likewise.
67072         * modules/getline (Makefile.am): Likewise.
67073         * modules/getloadavg (Makefile.am): Likewise.
67074         * modules/getlogin_r (Makefile.am): Likewise.
67075         * modules/getndelim2 (Makefile.am): Likewise.
67076         * modules/getopt (Makefile.am): Likewise.
67077         * modules/getpagesize (Makefile.am): Likewise.
67078         * modules/getpass-gnu (Makefile.am): Likewise.
67079         * modules/getpass (Makefile.am): Likewise.
67080         * modules/getsubopt (Makefile.am): Likewise.
67081         * modules/gettime (Makefile.am): Likewise.
67082         * modules/gettimeofday (Makefile.am): Likewise.
67083         * modules/getugroups (Makefile.am): Likewise.
67084         * modules/getusershell (Makefile.am): Likewise.
67085         * modules/glob (Makefile.am): Likewise.
67086         * modules/group-member (Makefile.am): Likewise.
67087         * modules/hard-locale (Makefile.am): Likewise.
67088         * modules/hash (Makefile.am): Likewise.
67089         * modules/hmac-md5 (Makefile.am): Likewise.
67090         * modules/hmac-sha1 (Makefile.am): Likewise.
67091         * modules/human (Makefile.am): Likewise.
67092         * modules/idcache (Makefile.am): Likewise.
67093         * modules/imaxabs (Makefile.am): Likewise.
67094         * modules/imaxdiv (Makefile.am): Likewise.
67095         * modules/inet_ntop (Makefile.am): Likewise.
67096         * modules/inet_pton (Makefile.am): Likewise.
67097         * modules/intprops (Makefile.am): Likewise.
67098         * modules/inttostr (Makefile.am): Likewise.
67099         * modules/inttypes (Makefile.am): Likewise.
67100         * modules/isapipe (Makefile.am): Likewise.
67101         * modules/javaversion (Makefile.am): Likewise.
67102         * modules/lchmod (Makefile.am): Likewise.
67103         * modules/lchown (Makefile.am): Likewise.
67104         * modules/localcharset (Makefile.am): Likewise.
67105         * modules/long-options (Makefile.am): Likewise.
67106         * modules/lstat (Makefile.am): Likewise.
67107         * modules/malloc (Makefile.am): Likewise.
67108         * modules/mathl (Makefile.am): Likewise.
67109         * modules/mbchar (Makefile.am): Likewise.
67110         * modules/md2 (Makefile.am): Likewise.
67111         * modules/md4 (Makefile.am): Likewise.
67112         * modules/md5 (Makefile.am): Likewise.
67113         * modules/memcasecmp (Makefile.am): Likewise.
67114         * modules/memchr (Makefile.am): Likewise.
67115         * modules/memcmp (Makefile.am): Likewise.
67116         * modules/memcoll (Makefile.am): Likewise.
67117         * modules/memcpy (Makefile.am): Likewise.
67118         * modules/memmem (Makefile.am): Likewise.
67119         * modules/memmove (Makefile.am): Likewise.
67120         * modules/mempcpy (Makefile.am): Likewise.
67121         * modules/memrchr (Makefile.am): Likewise.
67122         * modules/memset (Makefile.am): Likewise.
67123         * modules/memxor (Makefile.am): Likewise.
67124         * modules/mkancesdirs (Makefile.am): Likewise.
67125         * modules/mkdir-p (Makefile.am): Likewise.
67126         * modules/mkdir (Makefile.am): Likewise.
67127         * modules/mkdtemp (Makefile.am): Likewise.
67128         * modules/mkstemp (Makefile.am): Likewise.
67129         * modules/mktime (Makefile.am): Likewise.
67130         * modules/modechange (Makefile.am): Likewise.
67131         * modules/mountlist (Makefile.am): Likewise.
67132         * modules/nanosleep (Makefile.am): Likewise.
67133         * modules/obstack (Makefile.am): Likewise.
67134         * modules/openat (Makefile.am): Likewise.
67135         * modules/pagealign_alloc (Makefile.am): Likewise.
67136         * modules/pathmax (Makefile.am): Likewise.
67137         * modules/physmem (Makefile.am): Likewise.
67138         * modules/poll (Makefile.am): Likewise.
67139         * modules/posixtm (Makefile.am): Likewise.
67140         * modules/posixver (Makefile.am): Likewise.
67141         * modules/putenv (Makefile.am): Likewise.
67142         * modules/quote (Makefile.am): Likewise.
67143         * modules/quotearg (Makefile.am): Likewise.
67144         * modules/raise (Makefile.am): Likewise.
67145         * modules/read-file (Makefile.am): Likewise.
67146         * modules/readline (Makefile.am): Likewise.
67147         * modules/readlink (Makefile.am): Likewise.
67148         * modules/readtokens (Makefile.am): Likewise.
67149         * modules/readutmp (Makefile.am): Likewise.
67150         * modules/realloc (Makefile.am): Likewise.
67151         * modules/regex (Makefile.am): Likewise.
67152         * modules/rename-dest-slash (Makefile.am): Likewise.
67153         * modules/rename (Makefile.am): Likewise.
67154         * modules/rijndael (Makefile.am): Likewise.
67155         * modules/rmdir (Makefile.am): Likewise.
67156         * modules/rpmatch (Makefile.am): Likewise.
67157         * modules/safe-read (Makefile.am): Likewise.
67158         * modules/safe-write (Makefile.am): Likewise.
67159         * modules/same-inode (Makefile.am): Likewise.
67160         * modules/same (Makefile.am): Likewise.
67161         * modules/save-cwd (Makefile.am): Likewise.
67162         * modules/savedir (Makefile.am): Likewise.
67163         * modules/setenv (Makefile.am): Likewise.
67164         * modules/settime (Makefile.am): Likewise.
67165         * modules/sha1 (Makefile.am): Likewise.
67166         * modules/sig2str (Makefile.am): Likewise.
67167         * modules/snprintf (Makefile.am): Likewise.
67168         * modules/stat-macros (Makefile.am): Likewise.
67169         * modules/stat-time (Makefile.am): Likewise.
67170         * modules/stdbool (Makefile.am): Likewise.
67171         * modules/stdint (Makefile.am): Likewise.
67172         * modules/stdlib-safer (Makefile.am): Likewise.
67173         * modules/stpcpy (Makefile.am): Likewise.
67174         * modules/stpncpy (Makefile.am): Likewise.
67175         * modules/strcase (Makefile.am): Likewise.
67176         * modules/strcasestr (Makefile.am): Likewise.
67177         * modules/strchrnul (Makefile.am): Likewise.
67178         * modules/strcspn (Makefile.am): Likewise.
67179         * modules/strdup (Makefile.am): Likewise.
67180         * modules/strerror (Makefile.am): Likewise.
67181         * modules/strftime (Makefile.am): Likewise.
67182         * modules/strndup (Makefile.am): Likewise.
67183         * modules/strnlen (Makefile.am): Likewise.
67184         * modules/strpbrk (Makefile.am): Likewise.
67185         * modules/strsep (Makefile.am): Likewise.
67186         * modules/strstr (Makefile.am): Likewise.
67187         * modules/strtod (Makefile.am): Likewise.
67188         * modules/strtoimax (Makefile.am): Likewise.
67189         * modules/strtok_r (Makefile.am): Likewise.
67190         * modules/strtol (Makefile.am): Likewise.
67191         * modules/strtoll (Makefile.am): Likewise.
67192         * modules/strtoul (Makefile.am): Likewise.
67193         * modules/strtoull (Makefile.am): Likewise.
67194         * modules/strtoumax (Makefile.am): Likewise.
67195         * modules/strverscmp (Makefile.am): Likewise.
67196         * modules/sys_socket (Makefile.am): Likewise.
67197         * modules/sys_stat (Makefile.am): Likewise.
67198         * modules/sysexits (Makefile.am): Likewise.
67199         * modules/time_r (Makefile.am): Likewise.
67200         * modules/timegm (Makefile.am): Likewise.
67201         * modules/timespec (Makefile.am): Likewise.
67202         * modules/tmpfile-safer (Makefile.am): Likewise.
67203         * modules/trim (Makefile.am): Likewise.
67204         * modules/unistd-safer (Makefile.am): Likewise.
67205         * modules/unlinkdir (Makefile.am): Likewise.
67206         * modules/unlocked-io (Makefile.am): Likewise.
67207         * modules/userspec (Makefile.am): Likewise.
67208         * modules/utime (Makefile.am): Likewise.
67209         * modules/utimecmp (Makefile.am): Likewise.
67210         * modules/utimens (Makefile.am): Likewise.
67211         * modules/vasnprintf (Makefile.am): Likewise.
67212         * modules/vasprintf (Makefile.am): Likewise.
67213         * modules/vsnprintf (Makefile.am): Likewise.
67214         * modules/xalloc (Makefile.am): Likewise.
67215         * modules/xgetcwd (Makefile.am): Likewise.
67216         * modules/xnanosleep (Makefile.am): Likewise.
67217         * modules/xreadlink (Makefile.am): Likewise.
67218         * modules/xstrtod (Makefile.am): Likewise.
67219         * modules/xstrtol (Makefile.am): Likewise.
67220         * modules/xstrtold (Makefile.am): Likewise.
67221         * modules/yesno (Makefile.am): Likewise.
67222         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67223
67224 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67225
67226         * modules/error (Makefile.am): Distribute files through
67227         EXTRA_DIST, not lib_SOURCES.
67228
67229 2006-10-12  Eric Blake  <ebb9@byu.net>
67230
67231         * modules/error (Makefile.am): Distribute files in /lib.
67232         * modules/obstack (Makefile.am): Likewise.
67233
67234 2006-10-12  Bruno Haible  <bruno@clisp.org>
67235
67236         * modules/acl (Makefile.am): Distribute all files in lib/ through
67237         EXTRA_DIST.
67238         * modules/arcfour (Makefile.am): Likewise.
67239         * modules/arctwo (Makefile.am): Likewise.
67240         * modules/argmatch (Makefile.am): Likewise.
67241         * modules/argz (Makefile.am): Likewise.
67242         * modules/atexit (Makefile.am): Likewise.
67243         * modules/backupfile (Makefile.am): Likewise.
67244         * modules/c-strtod (Makefile.am): Likewise.
67245         * modules/c-strtold (Makefile.am): Likewise.
67246         * modules/calloc (Makefile.am): Likewise.
67247         * modules/canon-host (Makefile.am): Likewise.
67248         * modules/canonicalize (Makefile.am): Likewise.
67249         * modules/chdir-long (Makefile.am): Likewise.
67250         * modules/chdir-safer (Makefile.am): Likewise.
67251         * modules/check-version (Makefile.am): Likewise.
67252         * modules/chown (Makefile.am): Likewise.
67253         * modules/cloexec (Makefile.am): Likewise.
67254         * modules/close-stream (Makefile.am): Likewise.
67255         * modules/closeout (Makefile.am): Likewise.
67256         * modules/crc (Makefile.am): Likewise.
67257         * modules/cycle-check (Makefile.am): Likewise.
67258         * modules/des (Makefile.am): Likewise.
67259         * modules/dirfd (Makefile.am): Likewise.
67260         * modules/dirname (Makefile.am): Likewise.
67261         * modules/dup2 (Makefile.am): Likewise.
67262         * modules/euidaccess (Makefile.am): Likewise.
67263         * modules/exclude (Makefile.am): Likewise.
67264         * modules/exitfail (Makefile.am): Likewise.
67265         * modules/fcntl-safer (Makefile.am): Likewise.
67266         * modules/file-type (Makefile.am): Likewise.
67267         * modules/fileblocks (Makefile.am): Likewise.
67268         * modules/filemode (Makefile.am): Likewise.
67269         * modules/filenamecat (Makefile.am): Likewise.
67270         * modules/fnmatch (Makefile.am): Likewise.
67271         * modules/fopen-safer (Makefile.am): Likewise.
67272         * modules/fpending (Makefile.am): Likewise.
67273         * modules/fprintftime (Makefile.am): Likewise.
67274         * modules/free (Makefile.am): Likewise.
67275         * modules/fsusage (Makefile.am): Likewise.
67276         * modules/ftruncate (Makefile.am): Likewise.
67277         * modules/fts (Makefile.am): Likewise.
67278         * modules/gc (Makefile.am): Likewise.
67279         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67280         * modules/getaddrinfo (Makefile.am): Likewise.
67281         * modules/getcwd (Makefile.am): Likewise.
67282         * modules/getdelim (Makefile.am): Likewise.
67283         * modules/getdomainname (Makefile.am): Likewise.
67284         * modules/getgroups (Makefile.am): Likewise.
67285         * modules/gethostname (Makefile.am): Likewise.
67286         * modules/gethrxtime (Makefile.am): Likewise.
67287         * modules/getline (Makefile.am): Likewise.
67288         * modules/getloadavg (Makefile.am): Likewise.
67289         * modules/getlogin_r (Makefile.am): Likewise.
67290         * modules/getopt (Makefile.am): Likewise.
67291         * modules/getpass (Makefile.am): Likewise.
67292         * modules/getpass-gnu (Makefile.am): Likewise.
67293         * modules/getsubopt (Makefile.am): Likewise.
67294         * modules/gettime (Makefile.am): Likewise.
67295         * modules/gettimeofday (Makefile.am): Likewise.
67296         * modules/getugroups (Makefile.am): Likewise.
67297         * modules/getusershell (Makefile.am): Likewise.
67298         * modules/glob (Makefile.am): Likewise.
67299         * modules/group-member (Makefile.am): Likewise.
67300         * modules/hard-locale (Makefile.am): Likewise.
67301         * modules/hash (Makefile.am): Likewise.
67302         * modules/hmac-md5 (Makefile.am): Likewise.
67303         * modules/hmac-sha1 (Makefile.am): Likewise.
67304         * modules/human (Makefile.am): Likewise.
67305         * modules/idcache (Makefile.am): Likewise.
67306         * modules/imaxabs (Makefile.am): Likewise.
67307         * modules/imaxdiv (Makefile.am): Likewise.
67308         * modules/inet_ntop (Makefile.am): Likewise.
67309         * modules/inet_pton (Makefile.am): Likewise.
67310         * modules/inttostr (Makefile.am): Likewise.
67311         * modules/isapipe (Makefile.am): Likewise.
67312         * modules/lchown (Makefile.am): Likewise.
67313         * modules/long-options (Makefile.am): Likewise.
67314         * modules/lstat (Makefile.am): Likewise.
67315         * modules/malloc (Makefile.am): Likewise.
67316         * modules/mathl (Makefile.am): Likewise.
67317         * modules/mbchar (Makefile.am): Likewise.
67318         * modules/md2 (Makefile.am): Likewise.
67319         * modules/md4 (Makefile.am): Likewise.
67320         * modules/md5 (Makefile.am): Likewise.
67321         * modules/memcasecmp (Makefile.am): Likewise.
67322         * modules/memchr (Makefile.am): Likewise.
67323         * modules/memcmp (Makefile.am): Likewise.
67324         * modules/memcoll (Makefile.am): Likewise.
67325         * modules/memcpy (Makefile.am): Likewise.
67326         * modules/memmem (Makefile.am): Likewise.
67327         * modules/memmove (Makefile.am): Likewise.
67328         * modules/mempcpy (Makefile.am): Likewise.
67329         * modules/memrchr (Makefile.am): Likewise.
67330         * modules/memset (Makefile.am): Likewise.
67331         * modules/memxor (Makefile.am): Likewise.
67332         * modules/mkancesdirs (Makefile.am): Likewise.
67333         * modules/mkdir (Makefile.am): Likewise.
67334         * modules/mkdir-p (Makefile.am): Likewise.
67335         * modules/mkdtemp (Makefile.am): Likewise.
67336         * modules/mkstemp (Makefile.am): Likewise.
67337         * modules/mktime (Makefile.am): Likewise.
67338         * modules/modechange (Makefile.am): Likewise.
67339         * modules/mountlist (Makefile.am): Likewise.
67340         * modules/nanosleep (Makefile.am): Likewise.
67341         * modules/openat (Makefile.am): Likewise.
67342         * modules/pagealign_alloc (Makefile.am): Likewise.
67343         * modules/physmem (Makefile.am): Likewise.
67344         * modules/poll (Makefile.am): Likewise.
67345         * modules/posixtm (Makefile.am): Likewise.
67346         * modules/posixver (Makefile.am): Likewise.
67347         * modules/putenv (Makefile.am): Likewise.
67348         * modules/quote (Makefile.am): Likewise.
67349         * modules/quotearg (Makefile.am): Likewise.
67350         * modules/raise (Makefile.am): Likewise.
67351         * modules/read-file (Makefile.am): Likewise.
67352         * modules/readline (Makefile.am): Likewise.
67353         * modules/readlink (Makefile.am): Likewise.
67354         * modules/readtokens (Makefile.am): Likewise.
67355         * modules/readutmp (Makefile.am): Likewise.
67356         * modules/realloc (Makefile.am): Likewise.
67357         * modules/regex (Makefile.am): Likewise.
67358         * modules/rename (Makefile.am): Likewise.
67359         * modules/rename-dest-slash (Makefile.am): Likewise.
67360         * modules/rijndael (Makefile.am): Likewise.
67361         * modules/rmdir (Makefile.am): Likewise.
67362         * modules/rpmatch (Makefile.am): Likewise.
67363         * modules/safe-read (Makefile.am): Likewise.
67364         * modules/safe-write (Makefile.am): Likewise.
67365         * modules/same (Makefile.am): Likewise.
67366         * modules/save-cwd (Makefile.am): Likewise.
67367         * modules/savedir (Makefile.am): Likewise.
67368         * modules/setenv (Makefile.am): Likewise.
67369         * modules/settime (Makefile.am): Likewise.
67370         * modules/sha1 (Makefile.am): Likewise.
67371         * modules/sig2str (Makefile.am): Likewise.
67372         * modules/snprintf (Makefile.am): Likewise.
67373         * modules/stdlib-safer (Makefile.am): Likewise.
67374         * modules/stpcpy (Makefile.am): Likewise.
67375         * modules/stpncpy (Makefile.am): Likewise.
67376         * modules/strcase (Makefile.am): Likewise.
67377         * modules/strcasestr (Makefile.am): Likewise.
67378         * modules/strchrnul (Makefile.am): Likewise.
67379         * modules/strcspn (Makefile.am): Likewise.
67380         * modules/strdup (Makefile.am): Likewise.
67381         * modules/strerror (Makefile.am): Likewise.
67382         * modules/strftime (Makefile.am): Likewise.
67383         * modules/strndup (Makefile.am): Likewise.
67384         * modules/strnlen (Makefile.am): Likewise.
67385         * modules/strpbrk (Makefile.am): Likewise.
67386         * modules/strsep (Makefile.am): Likewise.
67387         * modules/strstr (Makefile.am): Likewise.
67388         * modules/strtod (Makefile.am): Likewise.
67389         * modules/strtoimax (Makefile.am): Likewise.
67390         * modules/strtok_r (Makefile.am): Likewise.
67391         * modules/strtol (Makefile.am): Likewise.
67392         * modules/strtoll (Makefile.am): Likewise.
67393         * modules/strtoul (Makefile.am): Likewise.
67394         * modules/strtoull (Makefile.am): Likewise.
67395         * modules/strtoumax (Makefile.am): Likewise.
67396         * modules/strverscmp (Makefile.am): Likewise.
67397         * modules/time_r (Makefile.am): Likewise.
67398         * modules/timegm (Makefile.am): Likewise.
67399         * modules/tmpfile-safer (Makefile.am): Likewise.
67400         * modules/unistd-safer (Makefile.am): Likewise.
67401         * modules/unlinkdir (Makefile.am): Likewise.
67402         * modules/userspec (Makefile.am): Likewise.
67403         * modules/utime (Makefile.am): Likewise.
67404         * modules/utimecmp (Makefile.am): Likewise.
67405         * modules/utimens (Makefile.am): Likewise.
67406         * modules/vasnprintf (Makefile.am): Likewise.
67407         * modules/vasprintf (Makefile.am): Likewise.
67408         * modules/vsnprintf (Makefile.am): Likewise.
67409         * modules/xalloc (Makefile.am): Likewise.
67410         * modules/xgetcwd (Makefile.am): Likewise.
67411         * modules/xnanosleep (Makefile.am): Likewise.
67412         * modules/xreadlink (Makefile.am): Likewise.
67413         * modules/xstrtod (Makefile.am): Likewise.
67414         * modules/xstrtol (Makefile.am): Likewise.
67415         * modules/xstrtold (Makefile.am): Likewise.
67416         * modules/yesno (Makefile.am): Likewise.
67417
67418 2006-10-12  Jim Meyering  <jim@meyering.net>
67419
67420         * m4/getloadavg.m4: Revert the change below.
67421
67422         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67423         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67424         fail with a symlink, which is what coreutils' ./bootstrap now
67425         creates by default.
67426
67427 2006-10-12  Bruno Haible  <bruno@clisp.org>
67428
67429         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67430         mingw.
67431         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67432         MSVC and mingw explicitly.
67433
67434 2006-10-11  Simon Josefsson  <jas@extundo.com>
67435             Bruno Haible  <bruno@clisp.org>
67436
67437         Add support for multiple gnulib-tool invocations in the scope of a
67438         single configure.ac file.
67439         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67440         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67441         with the same contents as the _LIBADD variable.
67442         (func_emit_initmacro_start, func_emit_initmacro_end,
67443         func_emit_initmacro_done): New functions.
67444         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67445         gl_LIBOBJS and gl_LTLIBOBJS.
67446
67447 2006-10-11  Bruno Haible  <bruno@clisp.org>
67448
67449         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67450         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67451         autoreconf. Instead, invoke autopoint explicitly but move back the
67452         *.m4 files from gnulib.
67453
67454 2006-10-11  Bruno Haible  <bruno@clisp.org>
67455
67456         * gnulib-tool (func_usage): Make module names after --create-testdir
67457         optional.
67458         (func_create_testdir): If no module was specified, use nearly all
67459         modules.
67460
67461 2006-10-12  Jim Meyering  <jim@meyering.net>
67462
67463         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67464         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67465         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67466         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67467         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67468         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67469         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67470         (fts_set_stat_required): New function.
67471         (fts_open): Defer the calls to fts_stat, if possible or requested.
67472         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67473         into fts_stat itself.
67474         (fts_read): Perform any required (deferred) fts_stat call.
67475         (fts_build): Likewise, for the directory we're about to open and read.
67476         In the readdir loop, carefully decide whether each entry will require
67477         an eventual call to fts_stat, using dirent.d_type info if available.
67478         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67479         a command line argument into this function.  Update all callers.
67480         Map a return value of FTS_DOT to FTS_D for a command line argument.
67481         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67482         Thanks to Miklos Szeredi for his tenacity and for the initial
67483         bug report about "find" failing on a FUSE-based file system.
67484
67485         * lib/fts.c (fts_open): Use consistent indentation.
67486
67487 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67488
67489         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67490         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67491         reported by Jim Meyering.  All uses of cache variables renamed
67492         to match Autoconf's.
67493         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67494         the other one.
67495
67496         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67497         Fix misspelling in diagnostic.
67498
67499 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67500
67501         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67502         defined.  Problem reported by Matthew Woehlke.
67503
67504         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67505         Add support for Tandem NonStop R series.
67506         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67507         Use new macro.
67508
67509         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67510         (has_trailing_slash): Omit size arg; all callers changed.
67511         Omit 'inline', since it doesn't help performance and we'd
67512         need to configure it.
67513         Don't count //, ///, etc. as having a trailing slash.
67514         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67515         (rpl_rename_dest_slash): On failure, use rename's errno rather
67516         than (in some cases) an incorrect or junk errno.
67517         Simplify code by removing need to compute length; this does
67518         cause it to make two passes instead of one over the file name,
67519         but it's worth it.
67520
67521         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67522         change, since Autoconf's version may no longer be appropriate now
67523         that we are using CVS Autoconf's version.  Add support for Tandem.
67524
67525 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67526             Bruno Haible  <bruno@clisp.org>
67527
67528         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67529         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67530         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67531         gl_AC_TYPE_LONG_LONG.
67532
67533         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67534         instead of HAVE_LONG_LONG.
67535         * lib/printf-args.c (printf_fetchargs): Likewise.
67536         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67537         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67538         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67539         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67540         gl_AC_TYPE_LONG_LONG.
67541
67542 2006-10-11  Bruno Haible  <bruno@clisp.org>
67543
67544         * m4/longlong.m4: Add comments.
67545         * m4/ulonglong.m4: Likewise.
67546
67547 2006-10-10  Bruno Haible  <bruno@clisp.org>
67548
67549         Make it possible to #define stpcpy, strdup to aliases.
67550         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67551         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67552
67553 2006-10-10  Bruno Haible  <bruno@clisp.org>
67554
67555         Make it possible to #define gcd to an alias.
67556         * lib/gcd.c: Include config.h.
67557
67558 2006-10-10  Bruno Haible  <bruno@clisp.org>
67559
67560         Make it possible to #define c_isascii to an alias.
67561         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67562         defined. Undefine the macros before defining them, to avoid gcc
67563         warnings.
67564         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67565         define NO_C_CTYPE_MACROS early.
67566
67567 2006-10-10  Bruno Haible  <bruno@clisp.org>
67568
67569         Make it possible to #define set_program_name to an alias.
67570         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67571         ENABLE_RELOCATABLE early.
67572
67573 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67574
67575         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67576         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67577         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67578         More generally, don't assume that 64-bit signed int is available
67579         if unsigned int is, and vice versa.
67580         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67581         unsigned symbols, not on their signed counterparts.
67582         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67583         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67584         (UINT64_C, UINTMAX_C):
67585         Likewise.
67586         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67587         unsigned counterparts.
67588         (Have_long_long, Unsigned): New macros.
67589         (Int): Renamed from INT.
67590         (strtoimax): Use the new macros.
67591         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67592         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67593         * modules/inttypes (inttypes.h): Substitute
67594         HAVE_UNSIGNED_LONG_LONG_INT.
67595         * modules/stdint (stdint.h): Likewise.
67596         (Files): Add m4/ulonglong.m4.
67597
67598 2006-10-10  Bruno Haible  <bruno@clisp.org>
67599
67600         Fix a gcc -Wshadow warning.
67601         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67602         to 'bucket'.
67603         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67604         gl_linked_indexof_from_to): Likewise.
67605         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67606         Likewise.
67607         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67608         Likewise.
67609         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67610         Reported by Eric Blake.
67611
67612 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67613
67614         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67615         for NetBSD.  Problem reported by Bruno Haible.
67616
67617 2006-10-09  Jim Meyering  <jim@meyering.net>
67618
67619         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67620         Patch from Bruno Haible.
67621
67622 2006-10-09  Jim Meyering  <jim@meyering.net>
67623
67624         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67625         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67626         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67627
67628 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67629
67630         Don't include <config.h> twice; this doesn't work in some cases,
67631         e.g., when config.h has "#define intmax_t long long int" and
67632         we include <config.h>, <inttypes.h>, <config.h> in that order.
67633         Problem reported by Matthew Woehlke in:
67634         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67635         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67636         * lib/fts-cycle.c: Don't include config.h.
67637         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67638         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67639         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67640         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67641         inttypes.h.
67642         * lib/xstrtoumax.c: Likewise.
67643         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67644         __strtol and the like, so that this module is more like its siblings.
67645         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67646         Remove; no longer needed now that we assume gnulib inttypes.h.
67647
67648 2006-10-08  Bruno Haible  <bruno@clisp.org>
67649
67650         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67651         option.
67652
67653 2006-10-07  Jim Meyering  <jim@meyering.net>
67654
67655         * modules/inttypes (inttypes.h): Revert what seems to have been
67656         an inadvertent part of today's change: use "|", not "/" in the
67657         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67658
67659 2006-10-07  Bruno Haible  <bruno@clisp.org>
67660
67661         * modules/sublist: New file.
67662
67663 2006-10-07  Bruno Haible  <bruno@clisp.org>
67664
67665         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67666         * modules/argz (argz.h): Likewise.
67667         * modules/arpa_inet (arpa/inet.h): Likewise.
67668         * modules/byteswap (byteswap.h): Likewise.
67669         * modules/configmake (configmake.h): Likewise.
67670         * modules/fcntl (fcntl.h): Likewise.
67671         * modules/fnmatch (fnmatch.h): Likewise.
67672         * modules/getopt (getopt.h): Likewise.
67673         * modules/glob (glob.h): Likewise.
67674         * modules/inttypes (inttypes.h): Likewise.
67675         * modules/netinet_in (netinet/in.h): Likewise.
67676         * modules/poll (poll.h): Likewise.
67677         * modules/stdbool (stdbool.h): Likewise.
67678         * modules/stdint (stdint.h): Likewise.
67679         * modules/sys_select (sys/select.h): Likewise.
67680         * modules/sys_socket (sys/socket.h): Likewise.
67681         * modules/sys_stat (sys/stat.h): Likewise.
67682         * modules/sysexits (sysexits.h): Likewise.
67683         * modules/unistd (unistd.h): Likewise.
67684         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67685         Add a "DO NOT EDIT" comment to the generated file.
67686         (func_import): Likewise for gnulib-comp.m4.
67687
67688 2006-10-07  Bruno Haible  <bruno@clisp.org>
67689
67690         * lib/gl_sublist.h: New file.
67691         * lib/gl_sublist.c: New file.
67692
67693 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67694
67695         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67696         name (relative to the original working directory) and the file
67697         name component (relative to the temporary working directory).  All
67698         callers changed.
67699         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67700         * lib/mkdir-p.c (make_dir_parents): Likewise.
67701         * lib/mkdir-p.h (make_dir_parents): Likewise.
67702
67703 2006-10-06  Eric Blake  <ebb9@byu.net>
67704
67705         Define several macros for use by the clean-temp module.
67706         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67707         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67708         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67709
67710         * lib/clean-temp.h (close_stream_temp): New declaration.
67711         * lib/clean-temp.c (includes): Pull in headers according to what
67712         other modules are in use.
67713         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67714
67715 2006-10-06  Bruno Haible  <bruno@clisp.org>
67716
67717         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67718         instead of fopen, fwriteerror.
67719
67720 2006-10-06  Bruno Haible  <bruno@clisp.org>
67721
67722         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67723         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67724         int.
67725         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67726         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67727         Return an error indicator.
67728         Suggested by Eric Blake.
67729
67730 2006-10-06  Bruno Haible  <bruno@clisp.org>
67731
67732         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67733         Reported by Eric Blake.
67734
67735 2006-10-06  Bruno Haible  <bruno@clisp.org>
67736
67737         * modules/closeout (Description): Mention stderr too.
67738
67739 2006-10-06  Bruno Haible  <bruno@clisp.org>
67740         and Paul Eggert  <eggert@cs.ucla.edu>
67741
67742         * lib/closeout.c (close_stdout): Also close stderr.
67743         * lib/closeout.h: Update comment.
67744
67745 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67746
67747         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67748         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67749         * lib/dirchownmod.c: Include lchown.h.
67750         * lib/lchown.c: Don't include files that lchown.h now includes.
67751         Don't declare chown, since lchown.h now does that.
67752         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67753         (lchown): Define to rpl_chown if lchown is declared but
67754         does not exist.  Declare using a prototype if lchown is not
67755         declared.  Add a copyright notice.
67756         * lib/mkstemp.h: Include <unistd.h>.
67757         * lib/openat.c: Include lchown.h.
67758
67759         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67760         we now test for that separately.
67761         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67762         rather than O_NOFOLLOW, when testing whether it's possible to
67763         avoid a race condition reliably.
67764         * lib/savewd.c (savewd_chdir): Likewise.
67765
67766         Remove macros that are no longer needed now that stdint.h is
67767         reliable.
67768         * lib/fsusage.c (UINTMAX_MAX): Remove.
67769         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67770         * lib/utimecmp.c (SIZE_MAX): Remove.
67771
67772         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67773
67774         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67775         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67776         O_NOATIME works.
67777
67778 2006-10-05  Bruno Haible  <bruno@clisp.org>
67779
67780         * lib/gl_list.h (gl_sortedlist_search_from_to,
67781         gl_sortedlist_indexof_from_to): New declarations.
67782         (gl_list_implementation): New fields sortedlist_search_from_to,
67783         sortedlist_indexof_from_to.
67784         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67785         inline functions.
67786         * lib/gl_list.c (gl_sortedlist_search_from_to,
67787         gl_sortedlist_indexof_from_to): New functions.
67788         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67789         function.
67790         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67791         (gl_array_sortedlist_search_from_to): New function.
67792         (gl_array_list_implementation): Update.
67793         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67794         function.
67795         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67796         (gl_carray_sortedlist_search_from_to): New function.
67797         (gl_carray_list_implementation): Update.
67798         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67799         gl_linked_sortedlist_indexof_from_to): New functions.
67800         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67801         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67802         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67803         gl_tree_sortedlist_indexof_from_to): New functions.
67804         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67805         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67806         Update.
67807         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67808         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67809         Update.
67810
67811 2006-10-05  Bruno Haible  <bruno@clisp.org>
67812
67813         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67814         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67815         (struct gl_list_implementation): Add fields search_from_to,
67816         indexof_from_to. Remove fields search, indexof.
67817         (gl_list_search): Use the search_from_to method.
67818         (gl_list_search_from, gl_list_search_from_to): New functions.
67819         (gl_list_indexof): Use the indexof_from_to method.
67820         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67821         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67822         (gl_list_search_from, gl_list_search_from_to): New functions.
67823         (gl_list_indexof): Use the indexof_from_to method.
67824         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67825         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67826         gl_array_indexof. Add start_index, end_index arguments.
67827         (gl_array_search_from_to): Renamed from gl_array_search. Add
67828         start_index, end_index arguments.
67829         (gl_array_remove, gl_array_list_implementation): Update.
67830         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67831         gl_carray_indexof. Add start_index, end_index arguments.
67832         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67833         start_index, end_index arguments.
67834         (gl_carray_remove, gl_carray_list_implementation): Update.
67835         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67836         gl_linked_search. Add start_index, end_index arguments.
67837         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67838         start_index, end_index arguments.
67839         (gl_linked_remove): Update.
67840         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67841         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67842         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67843         field to 'size_t'.
67844         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67845         gl_tree_search. Add start_index, end_index arguments.
67846         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67847         start_index, end_index arguments.
67848         (gl_tree_remove): Update.
67849         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67850         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67851         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67852         function.
67853         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67854         gl_tree_search. Add start_index, end_index arguments.
67855         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67856         start_index, end_index arguments.
67857         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67858         Update.
67859         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67860
67861 2006-10-05  Bruno Haible  <bruno@clisp.org>
67862
67863         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67864
67865         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67866         fwriteerror_temp): New declarations.
67867         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67868         (descriptors): New variable.
67869         (cleanup): First, close the descriptors.
67870         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67871         fclose_temp, fwriteerror_temp): New functions.
67872
67873 2006-10-04  Jim Meyering  <jim@meyering.net>
67874
67875         * lib/fts.c (fts_open): Tiny comment change.
67876
67877 2006-10-04  Bruno Haible  <bruno@clisp.org>
67878
67879         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67880         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67881         gl_LOCK_BODY.
67882         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67883         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67884         gl_LOCK_EARLY_BODY.
67885         (gl_LOCK): Require gl_LOCK_BODY.
67886
67887 2006-10-04  Bruno Haible  <bruno@clisp.org>
67888
67889         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67890         (gl_oset_search_atleast): New declaration.
67891         (struct gl_oset_implementation): Add field 'search_atleast'.
67892         (gl_oset_search_atleast): New inline function.
67893         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67894         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67895         (gl_array_oset_implementation): Update.
67896         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67897         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67898         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67899
67900 2006-10-04  Bruno Haible  <bruno@clisp.org>
67901
67902         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67903
67904 2006-10-03  Bruno Haible  <bruno@clisp.org>
67905
67906         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67907         from gl_avltreehash_list_implementation.
67908
67909 2006-10-03  Bruno Haible  <bruno@clisp.org>
67910
67911         * lib/gl_oset.c (gl_oset_add): Fix return type.
67912
67913 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67914
67915         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67916
67917 2006-10-02  Eric Blake  <ebb9@byu.net>
67918
67919         * modules/strnlen (Depends-on): Add extensions.
67920
67921 2006-10-02  Eric Blake  <ebb9@byu.net>
67922
67923         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67924         definition in 2.60+.
67925
67926 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67927
67928         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67929         checks.
67930
67931 2006-10-02  Bruno Haible  <bruno@clisp.org>
67932
67933         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67934         to the AUTOMAKE_OPTIONS.
67935         Reported by Jim Meyering.
67936
67937 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67938
67939         Work around bug in Solaris 10 /proc file system:
67940         /proc/self/fd/NNN/.. isn't the parent directory of
67941         the directory whose file descriptor is NNN.  This needs to
67942         be worked around at run time, not compile time, since a
67943         program might be built on Solaris 8, where things work, and
67944         run on Solaris 10.
67945         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67946         to use the following interface instead:
67947         (OPENAT_BUFFER_SIZE): New macro.
67948         (openat_proc_name): New function.
67949         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67950         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67951         Likewise.
67952         * lib/openat-proc.c: New file.
67953         * modules/openat (Files): Add lib/openat-proc.c.
67954         (Depends-on): Add same-inode, stdbool.
67955         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67956
67957 2006-09-29  Bruno Haible  <bruno@clisp.org>
67958
67959         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67960         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67961         argument. Set stdout_closed before testing for ferror, not after.
67962         (fwriteerror, fwriteerror_no_ebadf): New functions.
67963
67964 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67965
67966         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67967
67968 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67969
67970         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67971         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67972
67973 2006-09-28  Jim Meyering  <jim@meyering.net>
67974
67975         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67976         Include <unistd.h>.
67977
67978 2006-09-28  Bruno Haible  <bruno@clisp.org>
67979
67980         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67981         * modules/linkedhash-list (Depends-on): Likewise.
67982         * modules/rbtreehash-list (Depends-on): Likewise.
67983
67984 2006-09-28  Bruno Haible  <bruno@clisp.org>
67985
67986         * lib/strndup.h: Simplify the redefinition of strndup.
67987         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67988         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67989
67990 2006-09-28  Bruno Haible  <bruno@clisp.org>
67991
67992         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67993         * lib/gl_linkedhash_list.c: Likewise.
67994         * lib/gl_rbtreehash_list.c: Likewise.
67995
67996 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67997
67998         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67999         getaddrinfo.
68000
68001         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68002         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68003         it causes <stdio_ext.h> to cause a compile-time error.
68004         Problem reported by Nelson H. F. Beebe.
68005         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68006         of HAVE_DECL___PENDING.
68007
68008         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68009         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68010         declaration.
68011
68012 2006-09-27  Jim Meyering  <jim@meyering.net>
68013
68014         This file could end up with a definition for a function
68015         named __strndup, rather than rpl_strndup on a system with
68016         incomplete weak_alias support.
68017         * lib/strndup.c (strndup): Rename from __strndup.
68018         Remove #defines that used to map __strndup to strndup.
68019         Don't use K&R prototypes.
68020         Remove LIBC-related code, since this file is not sync'd with glibc.
68021         * lib/strndup.h: Revamp, accordingly.
68022         * m4/strndup.m4: Modernize.
68023
68024 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68025
68026         * modules/savewd (Depends-on): Add 'raise'.
68027         * lib/savewd.c: Include <signal.h>, for 'raise'.
68028
68029 2006-09-26  Jim Meyering  <jim@meyering.net>
68030
68031         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68032         when we detect Darwin 8.7.0's acl_get_file bug.
68033         Rearrange to perform the new (below) run-test while $LIBS
68034         contains any acl-related library.  Set USE_ACL at the end.
68035         (gl_ACL_GET_FILE): New function.
68036
68037 2006-09-26  Eric Blake  <ebb9@byu.net>
68038
68039         * lib/verror.c: Include <config.h> unconditionally.
68040
68041 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68042
68043         * modules/clock-time (Maintainer): Add self.
68044         * modules/getlogin_r (Depends-on): Add extensions.
68045
68046 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68047
68048         * modules/clock-time: New module.
68049         * modules/nanosleep (Depends-on): Add clock-time.
68050         * modules/gethrxtime (Depends-on): Likewise.
68051         * modules/gettime (Depends-on): Likewise.
68052         * modules/settime (Depends-on): Likewise.
68053
68054         * modules/fts-lgpl: Depend on openat.
68055         * modules/mkancesdirs: Depend on savewd.
68056         * modules/mkdir-p: Likewise.
68057
68058 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68059
68060         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68061
68062         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68063         `gl_have_arbitrary_file_name_length_limit' to
68064         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68065         actually works between configure runs.
68066
68067 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68068             Bruno Haible  <bruno@clisp.org>
68069
68070         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68071
68072 2006-09-25  Jim Meyering  <jim@meyering.net>
68073
68074         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68075         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68076
68077 2006-09-25  Eric Blake  <ebb9@byu.net>
68078
68079         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68080         exec's in 2006-09-18 patch when shuffling fds.
68081
68082 2006-09-25  Bruno Haible  <bruno@clisp.org>
68083
68084         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68085         Reported by Jim Meyering.
68086
68087 2006-09-24  Jim Meyering  <jim@meyering.net>
68088
68089         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68090         compare a pointer against a literal "0".  That caused failures with
68091         at least HP-UX's hpcc.
68092
68093 2006-09-22  Simon Josefsson  <jas@extundo.com>
68094
68095         * modules/gc-sha1:
68096         * modules/gc-md4:
68097         * modules/gc-hmac-sha1:
68098         * modules/gc-hmac-md5:
68099         * modules/gc-des:
68100         * modules/gc-arcfour: Distribute more files.
68101
68102 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68103
68104         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68105         (gl_linked_iterator_from_to): Initialize struct completely.
68106         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68107         (gl_tree_iterator_from_to): Likewise
68108         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68109         * lib/gl_array_list.c [lint] (gl_array_iterator)
68110         (gl_array_iterator_from_to): Likewise.
68111         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68112         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68113         (gl_carray_iterator_from_to): Likewise.
68114
68115         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68116         * lib/md4.c (md4_process_block): Remove unused variable.
68117         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68118         parentheses for clarity.
68119
68120 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68121
68122         * modules/bison-i18n (Depends-on): Add gettext.
68123
68124 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68125
68126         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68127         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68128         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68129         also add missing comma that caused broken test.
68130         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68131         stdlib.h, for `abort'.
68132         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68133         variables.
68134         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68135         include unistd.h if present, for `rmdir'.
68136         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68137         variables.
68138         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68139         in the process include standard headers for prototypes.
68140         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68141         gets declared on GNU/Linux.
68142         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68143         unistd.h, for `rmdir'.
68144         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68145
68146         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68147         always true.
68148         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68149
68150         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68151
68152 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68153
68154         * gnulib-tool (func_version): Create output all at once.  This
68155         may help avoid triggering unnecessary SIGPIPEs, and at any
68156         rate it doesn't hurt.
68157
68158 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68159             Bruno Haible  <bruno@clisp.org>
68160
68161         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68162         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68163         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68164
68165         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68166         (gl_FUNC_VASPRINTF): Invoke it.
68167
68168 2006-09-22  Bruno Haible  <bruno@clisp.org>
68169
68170         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68171         getloadavg.c as first argument.
68172
68173 2006-09-22  Bruno Haible  <bruno@clisp.org>
68174
68175         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68176         at the beginning of the gl_INIT macro.
68177         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68178         gl_GETLOADAVG.
68179
68180 2006-09-22  Bruno Haible  <bruno@clisp.org>
68181
68182         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68183         module.
68184         Suggested by Ralf Wildenhues.
68185
68186 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68187
68188         Import this patch from libc:
68189
68190         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68191
68192         * lib/regex_internal.c (re_string_reconstruct): Handle
68193         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68194         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68195         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68196         re_string_context_at.
68197
68198         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68199         now requires it.
68200         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68201         gl_REGEX now does it for us.
68202         (gl_REGEX): Add test taken from
68203         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68204
68205         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68206         Check that large offsets work.  Modernize Autoconf usages.
68207         Prefer "yes" to mean a good thing rather than a bad.
68208         Don't put "#define mkstemp" in config.h, as this might interfere
68209         with standard system headers that "#define mkstemp mkstemp64".
68210
68211         * modules/mkstemp (Depends-on): Add extensions, so that
68212         mkstemp is visible on some platforms.
68213         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68214         (Include): Change to "mkstemp.h" from <stdlib.h>.
68215         (Files): Add mkstemp.h.
68216
68217         * lib/mkstemp.h: New file, since some standard headers
68218         #define mkstemp.
68219         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68220         Include "mkstemp.h".
68221         Make the _LIBC code resemble glibc original more,
68222         e.g., use K&R style.
68223         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68224         (mkstemp): Remove, since mkstemp.h does this for us.
68225         * lib/stdlib--.h: Include mkstemp.h.
68226
68227         Import this patch from libc:
68228
68229         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68230
68231         * lib/tempname.c (__gen_tempname): Change attempts_min
68232         into a macro.  Use preprocessor to decide how to initialize
68233         attempts [Coverity CID 67].
68234
68235 2006-09-20  Bruno Haible  <bruno@clisp.org>
68236
68237         * lib/mkdtemp.c: Import from libc.
68238         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68239                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68240                 attempts_min into a macro.  Use preprocessor to decide how to
68241                 initialize attempts [Coverity CID 67].
68242         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68243                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68244                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68245
68246 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68247
68248         * gnulib-tool (func_exit): New function, to allow to pass the
68249         exit status portably through the trap.  Use everywhere.
68250         (--help, --version): Signal a write error.
68251         (trap): catch SIGPIPE, for write errors.
68252         Exit at the end of the trap, with the correct exit status.
68253
68254 2006-09-19  Karl Berry  <karl@gnu.org>
68255
68256         * doc/gnulib.texi: note about the license texinfo files.
68257
68258 2006-09-19  Eric Blake  <ebb9@byu.net>
68259
68260         * gnulib-tool: Avoid space-tab.
68261
68262 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68263
68264         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68265         that prevented coreutils 6.1 from building.  Problem reported
68266         by Petter Reinholdtsen.
68267
68268 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68269
68270         * gnulib-tool (avoidlist): Fix typo that broke options like
68271         --avoid=lock that are used by coreutils bootstrap.
68272
68273 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68274
68275         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68276         more systematically.
68277
68278 2006-09-18  Jim Meyering  <jim@meyering.net>
68279
68280         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68281
68282 2006-09-18  Bruno Haible  <bruno@clisp.org>
68283
68284         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68285
68286 2006-09-18  Bruno Haible  <bruno@clisp.org>
68287
68288         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68289         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68290         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68291         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68292         * m4/gettext.m4: Require autoconf >= 2.52.
68293         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68294         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68295         of gl_cv_header_inttypes_h.
68296
68297 2006-09-18  Bruno Haible  <bruno@clisp.org>
68298
68299         * lib/javaversion.c: Include configmake.h.
68300
68301 2006-09-18  Bruno Haible  <bruno@clisp.org>
68302
68303         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68304         avoid that the while loops be executed in a subshell.
68305
68306 2006-09-18  Bruno Haible  <bruno@clisp.org>
68307
68308         * MODULES.html.sh (func_module): Break long lines.
68309         Suggested by Bruce Korb <bkorb@gnu.org>.
68310
68311 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68312
68313         Speed up by a factor of 1.12.
68314         * gnulib-tool (nl): New variable.
68315         (func_import): Rewrite include directive extraction to only read each
68316         directive once.
68317
68318 2006-09-17  Bruno Haible  <bruno@clisp.org>
68319
68320         * modules/javaversion (Makefile.am): Remove DEFS setting.
68321         (Depends-on): Add configmake, for PKGDATADIR definition.
68322
68323 2006-09-17  Bruno Haible  <bruno@clisp.org>
68324
68325         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68326
68327 2006-09-17  Bruno Haible  <bruno@clisp.org>
68328
68329         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68330         (func_modules_transitive_closure, func_modules_add_dummy,
68331         func_modules_to_filelist, func_import, func_create_testdir,
68332         func_create_megatestdir, ...): Use it wherever possible.
68333         Suggested by Ralf Wildenhues.
68334
68335 2006-09-16  Karl Berry  <karl@gnu.org>
68336
68337         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68338         to avoid sectioning errors.
68339         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68340         [ifinfo]: blank line after @center-ed titles.
68341         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68342         Spell FSF address consistently with others.
68343         (These changes approved by rms.)
68344
68345 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68346
68347         Speed up by a factor of 1.61.
68348         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68349         already checked module names again.
68350
68351 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68352
68353         Speed up by a factor of 1.13.
68354         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68355         for new_files, and the input to func_add_or_update.
68356
68357 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68358
68359         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68360         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68361
68362 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68363
68364         * modules/mkancesdirs (Depends-on): Add fcntl.
68365         * modules/savewd: New file.
68366         * MODULES.html.sh (File system functions): Add savewd.
68367
68368         * modules/configmake (Makefile.am): Add support for the
68369         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68370
68371 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68372
68373         * m4/savewd.m4: New file.
68374
68375 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68376
68377         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68378         (dirchownmod): New arg FD.  All callers changed.
68379         Use FD rather than opening the directory ourself, as opening is
68380         now the caller's responsibility.
68381         * lib/dirchownmod.h: Likewise.
68382         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68383         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68384         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68385         (test_dir): Remove.
68386         (mkancesdirs): Return length of prefix of FILE that has already
68387         been made, or -2 if there is a child doing the work.  Redo
68388         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68389         ".", and treat ".." specially since it might stray back into
68390         already-created areas.  Use a subprocess if necessary.  New arg
68391         WD; all users changed.  MAKE_DIR function should now return 1
68392         if it creates a directory that is not readable.  Return -2 if
68393         a child process is spun off.
68394         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68395         Adjust signature to match code.
68396         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68397         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68398         all users changed.
68399         * lib/savewd.c, lib/savewd.h: New files.
68400
68401 2006-09-15  Jim Meyering  <jim@meyering.net>
68402
68403         * modules/rename-dest-slash: New module.
68404         * MODULES.html.sh (posix_compat): Add it here.
68405
68406         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68407
68408 2006-09-15  Jim Meyering  <jim@meyering.net>
68409
68410         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68411         file.
68412
68413         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68414
68415 2006-09-15  Jim Meyering  <jim@meyering.net>
68416
68417         * lib/rename-dest-slash.c (has_trailing_slash): Use
68418         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68419         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68420         test before testing whether SRC is a directory.
68421         Suggestions from Bruno Haible.
68422
68423         Avoid a warning about an unused variable.
68424         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68425         into the #ifdef block where it's used.
68426
68427         * lib/rename-dest-slash.c: New file.
68428
68429 2006-09-14  Bruno Haible  <bruno@clisp.org>
68430
68431         * lib/allocsa.c: Include <config.h> unconditionally.
68432         * lib/asnprintf.c: Likewise.
68433         * lib/asprintf.c: Likewise.
68434         * lib/c-strcasecmp.c: Likewise.
68435         * lib/c-strcasestr.c: Likewise.
68436         * lib/c-strncasecmp.c: Likewise.
68437         * lib/c-strstr.c: Likewise.
68438         * lib/classpath.c: Likewise.
68439         * lib/clean-temp.c: Likewise.
68440         * lib/concatpath.c: Likewise.
68441         * lib/copy-file.c: Likewise.
68442         * lib/csharpcomp.c: Likewise.
68443         * lib/csharpexec.c: Likewise.
68444         * lib/execute.c: Likewise.
68445         * lib/fatal-signal.c: Likewise.
68446         * lib/findprog.c: Likewise.
68447         * lib/fwriteerror.c: Likewise.
68448         * lib/gl_array_list.c: Likewise.
68449         * lib/gl_array_oset.c: Likewise.
68450         * lib/gl_avltree_list.c: Likewise.
68451         * lib/gl_avltree_oset.c: Likewise.
68452         * lib/gl_avltreehash_list.c: Likewise.
68453         * lib/gl_carray_list.c: Likewise.
68454         * lib/gl_linked_list.c: Likewise.
68455         * lib/gl_linkedhash_list.c: Likewise.
68456         * lib/gl_list.c: Likewise.
68457         * lib/gl_oset.c: Likewise.
68458         * lib/gl_rbtree_list.c: Likewise.
68459         * lib/gl_rbtree_oset.c: Likewise.
68460         * lib/gl_rbtreehash_list.c: Likewise.
68461         * lib/imaxabs.c: Likewise.
68462         * lib/imaxdiv.c: Likewise.
68463         * lib/javacomp.c: Likewise.
68464         * lib/javaexec.c: Likewise.
68465         * lib/javaversion.c: Likewise.
68466         * lib/linebreak.c: Likewise.
68467         * lib/localcharset.c: Likewise.
68468         * lib/lock.c: Likewise.
68469         * lib/mbchar.c: Likewise.
68470         * lib/mbswidth.c: Likewise.
68471         * lib/mkdtemp.c: Likewise.
68472         * lib/pipe.c: Likewise.
68473         * lib/printf-args.c: Likewise.
68474         * lib/printf-parse.c: Likewise.
68475         * lib/progname.c: Likewise.
68476         * lib/progreloc.c: Likewise.
68477         * lib/readlink.c: Likewise.
68478         * lib/sh-quote.c: Likewise.
68479         * lib/stpcpy.c: Likewise.
68480         * lib/stpncpy.c: Likewise.
68481         * lib/strcasecmp.c: Likewise.
68482         * lib/strcasestr.c: Likewise.
68483         * lib/strcspn.c: Likewise.
68484         * lib/striconv.c: Likewise.
68485         * lib/strncasecmp.c: Likewise.
68486         * lib/strnlen1.c: Likewise.
68487         * lib/strstr.c: Likewise.
68488         * lib/strtok_r.c: Likewise.
68489         * lib/tls.c: Likewise.
68490         * lib/tmpdir.c: Likewise.
68491         * lib/unicodeio.c: Likewise.
68492         * lib/unsetenv.c: Likewise.
68493         * lib/vasnprintf.c: Likewise.
68494         * lib/vasprintf.c: Likewise.
68495         * lib/wait-process.c: Likewise.
68496         * lib/xallocsa.c: Likewise.
68497         * lib/xsetenv.c: Likewise.
68498         * lib/xstriconv.c: Likewise.
68499
68500 2006-09-13  Simon Josefsson  <jas@extundo.com>
68501
68502         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68503         that internally, suggested by Ralf Wildenhues
68504         <Ralf.Wildenhues@gmx.de>.
68505
68506 2006-09-13  Simon Josefsson  <jas@extundo.com>
68507
68508         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68509         @LIBOBJS@.
68510         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68511
68512 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68513
68514         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68515         longer worry about uses that don't define HAVE_CONFIG_H.
68516         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68517         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68518         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68519         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68520         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68521         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68522         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68523         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68524         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68525         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68526         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68527         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68528         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68529         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68530         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68531         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68532         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68533         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68534         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68535         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68536         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68537         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68538         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68539         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68540         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68541         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68542         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68543         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68544         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68545         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68546         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68547         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68548         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68549         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68550         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68551         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68552         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68553         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68554         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68555         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68556         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68557         Likewise.
68558
68559 2006-09-13  Eric Blake  <ebb9@byu.net>
68560
68561         * lib/getopt.c: Fix typo in last commit.
68562
68563 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68564
68565         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68566         dgettext.
68567
68568 2006-09-12  Jim Meyering  <jim@meyering.net>
68569
68570         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68571         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68572         Reported by Nelson H. F. Beebe.
68573
68574 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68575
68576         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68577         program_invocation_name and program_invocation_short_name are
68578         initialized.
68579         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68580         and program_invocation_short_name to argp.h, so they are visible
68581         to user programs.
68582         * lib/argp.h: Likewise
68583
68584 2006-09-10  Bruno Haible  <bruno@clisp.org>
68585
68586         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68587         m4/inttypes_h.m4, m4/uintmax_t.m4.
68588
68589 2006-09-10  Bruno Haible  <bruno@clisp.org>
68590
68591         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68592         gl_AC_TYPE_UINTMAX_T.
68593
68594 2006-09-10  Bruno Haible  <bruno@clisp.org>
68595
68596         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68597
68598 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68599
68600         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68601         convention.  Text proposed by Bruno Haible.
68602         (struct argp_option): Document the use of N_() wrappers.
68603
68604         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68605         '\v', and translate the two parts separately, instead of feeding
68606         the whole string to gettext.  This allows to exclude
68607         '\v' from the strings visible to the translator by writing doc
68608         strings as N_("..") "\v" N_("..").
68609
68610 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68611
68612         * config/srclist.txt: Undo latest change; the bug was fixed.
68613
68614 2006-09-09  Bruno Haible  <bruno@clisp.org>
68615
68616         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68617         assignments if building a library without libtool.
68618         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68619         in func_emit_lib_Makefile_am.
68620         (func_import): When building a static library libfoo.a, arrange to
68621         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68622         (func_create_testdir): Likewise.
68623         * modules/gc (configure.ac, Makefile.am): If building statically,
68624         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68625         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68626         * modules/striconv (configure.ac, Makefile.am): Likewise.
68627         Based on a suggestion by Ralf Wildenhues.
68628
68629 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68630
68631         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68632         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68633         Also:
68634
68635         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68636         Add year_2050_test to catch glibc bug 2821
68637         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68638
68639         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68640         Prefer #ifdef to #if.
68641
68642         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68643         Return from 'main' instead of calling 'exit'.
68644
68645 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68646
68647         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68648         returned the maximum time_t value rather than (time_t) -1.
68649         Problem originally reported by William Bardwell
68650         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68651
68652         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68653         Moved to here ...
68654         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68655         ... from here.
68656
68657 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68658
68659         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68660         2821 is fixed.
68661
68662 2006-09-08  Jim Meyering  <jim@meyering.net>
68663
68664         Don't make generated files read-only.  That would bother too many
68665         people.  However, do retain the ability to work when targets are
68666         read-only: remove the destination and temporary files before writing
68667         them (when generated via sed or echo), or by using the -f option for
68668         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68669         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68670         * modules/byteswap, modules/configmake, modules/fcntl:
68671         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68672         * modules/localcharset, modules/netinet_in, modules/poll:
68673         * modules/stdbool, modules/stdint, modules/sys_select:
68674         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68675
68676 2006-09-08  Jim Meyering  <jim@meyering.net>
68677
68678         Avoid new build failure on FreeBSD 6.0.
68679         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68680         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68681         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68682
68683 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68684
68685         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68686
68687 2006-09-07  Jim Meyering  <jim@meyering.net>
68688
68689         Fix global typo in last change: use chmod u-w, not chmod u-x.
68690         Spotted by Paul Eggert and Bruce Korb.
68691         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68692         * modules/byteswap, modules/configmake, modules/fcntl:
68693         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68694         * modules/localcharset, modules/netinet_in, modules/poll:
68695         * modules/stdbool, modules/stdint, modules/sys_select:
68696         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68697
68698 2006-09-06  Jim Meyering  <jim@meyering.net>
68699
68700         Make generated files be read-only.
68701         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68702         Ensure that each generated file is now read-only.
68703         * modules/argz: Likewise.
68704         * modules/arpa_inet: Likewise.
68705         * modules/byteswap: Likewise.
68706         * modules/configmake: Likewise.
68707         * modules/fcntl: Likewise.
68708         * modules/fnmatch: Likewise.
68709         * modules/getopt: Likewise.
68710         * modules/glob: Likewise.
68711         * modules/inttypes: Likewise.
68712         * modules/netinet_in: Likewise.
68713         * modules/poll: Likewise.
68714         * modules/stdbool: Likewise.
68715         * modules/stdint: Likewise.
68716         * modules/sys_select: Likewise.
68717         * modules/sys_socket: Likewise.
68718         * modules/sys_stat: Likewise.
68719         * modules/sysexits: Likewise.
68720         * modules/localcharset: Same as above, but continue using temporary
68721         file named "t-$@" (why different?) rather than the "$@-t" used
68722         everywhere else.
68723
68724         * modules/sysexits (Makefile.am): Replace literal occurrences
68725         of "sysexit.h" more readable, and more consistent, "$@".
68726
68727 2006-09-06  Bruno Haible  <bruno@clisp.org>
68728
68729         * modules/striconv: New file.
68730         * modules/xstriconv: New file.
68731         * MODULES.html.sh (Internationalization functions): Add striconv,
68732         xstriconv.
68733
68734 2006-09-06  Bruno Haible  <bruno@clisp.org>
68735
68736         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68737         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68738         not using libtool correctly.
68739
68740 2006-09-06  Bruno Haible  <bruno@clisp.org>
68741
68742         * lib/striconv.h: New file.
68743         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68744         iconvstring.c.
68745         * lib/xstriconv.h: New file.
68746         * lib/xstriconv.c: New file.
68747
68748 2006-09-06  Bruno Haible  <bruno@clisp.org>
68749
68750         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68751         lib_..._LDFLAGS.
68752
68753 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68754
68755         * lib/argz_.h: Sync from Libtool.
68756
68757         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68758                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68759
68760         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68761
68762 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68763
68764         * modules/trim: New file.
68765
68766 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68767
68768         * lib/trim.h: New file.
68769         * lib/trim.c: New file.
68770
68771 2006-09-05  Bruno Haible  <bruno@clisp.org>
68772
68773         * MODULES.html.sh (String handling): Add trim.
68774
68775 2006-09-04  Karl Berry  <karl@gnu.org>
68776
68777         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68778         until next release.
68779
68780 2006-09-03  Bruno Haible  <bruno@clisp.org>
68781
68782         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68783         correctly.
68784
68785 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68786
68787         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68788         not gl_GETLOADAVG.  Omit unneeded semicolons.
68789         Problems reported by Ralf Wildenhues in
68790         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68791         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68792         at the end, which is the usual gnulib style.
68793
68794         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68795         of doing all the work ourselves.
68796         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68797         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68798
68799 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68800
68801         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68802         Problem reported by Ralf Wildenhues in
68803         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68804
68805         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68806         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68807
68808 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68809
68810         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68811         yesterday's patch by changing test -n to test -z.
68812
68813 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68814
68815         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68816         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68817         the former is now obsolescent.
68818
68819         * modules/chdir-long (Depends-on): Add fcntl.
68820
68821 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68822
68823         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68824         obsolescent, and programs should use gnulib instead.
68825         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68826         but with prefixes changed.
68827
68828 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68829
68830         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68831         or stdbool.h, because they might not exist while configuring.
68832
68833         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68834         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68835         does that for us.
68836         (O_DIRECTORY): Remove.
68837
68838 2006-08-31  Eric Blake  <ebb9@byu.net>
68839
68840         * gnulib-tool: Don't let emacs change spaces to TAB.
68841
68842 2006-08-31  Bruno Haible  <bruno@clisp.org>
68843
68844         * gnulib-tool: When calling func_import more than once, do it in a
68845         subshell.
68846         Reported by Eric Blake <ebb9@byu.net>.
68847
68848 2006-08-31  Bruno Haible  <bruno@clisp.org>
68849
68850         * gnulib-tool (nl): Remove variable.
68851         (sed_transform_lib_file): Use more robust test for config-h module.
68852         (func_import): Fix typo in 2006-08-25 patch.
68853
68854 2006-08-31  Bruno Haible  <bruno@clisp.org>
68855
68856         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68857         specified, augment Makefile.am variables instead of assigning them.
68858
68859 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68860
68861         Work around a bug in both the Linux and SunOS 64-bit kernels:
68862         nanosleep mishandles sleeps for longer than 2**31 seconds.
68863         Problem reported by Frank v Waveren in
68864         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68866         Check for nanosleep bug.
68867         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68868
68869 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68870
68871         Work around a bug in both the Linux and SunOS 64-bit kernels:
68872         nanosleep mishandles sleeps for longer than 2**31 seconds.
68873         Problem reported by Frank v Waveren in
68874         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68875         * lib/nanosleep.c (BILLION): New constant.
68876         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68877         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68878         implementation.
68879
68880 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68881
68882         * modules/nanosleep (Depends-on): Add gettime.
68883
68884 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68885         and Simon Josefsson  <jas@extundo.com>
68886         and Oskar Liljeblad  <oskar@osk.mine.nu>
68887
68888         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68889         * gnulib-tool (func_import): New license type 'unmodifiable license
68890         text'.
68891         * modules/fdl: Use it.  Longer description.
68892         * module/gpl, module/lgpl: New files.
68893
68894 2006-08-30  Jim Meyering  <jim@meyering.net>
68895
68896         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68897         shadowing the parameter.
68898
68899 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68900
68901         Sync from Libtool:
68902
68903         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68904
68905         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68906         sharing with gnulib.  Report by Eric Blake.
68907
68908 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68909
68910         * modules/isapipe: New file.
68911         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68912
68913 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68914
68915         * modules/configmake (Makefile.am): Add a comment, and omit
68916         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68917         by Bruno Haible.
68918
68919 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68920
68921         * m4/isapipe.m4: New file.
68922
68923 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         * lib/isapipe.c, lib/isapipe.h: New files.
68926
68927 2006-08-29  Jim Meyering  <jim@meyering.net>
68928
68929         * modules/configmake (Makefile.am): Make configmake.h depend on
68930         Makefile.  Otherwise, a stale configmake.h could hang around.
68931
68932 2006-08-29  Eric Blake  <ebb9@byu.net>
68933
68934         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68935         resolution of upstream bug 3044.
68936
68937 2006-08-29  Bruno Haible  <bruno@clisp.org>
68938
68939         * modules/localcharset (Depends-on): Add configmake.
68940         (Makefile.am): Remove setting of LIBDIR through DEFS.
68941
68942 2006-08-29  Bruno Haible  <bruno@clisp.org>
68943
68944         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68945         defined.
68946
68947 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68948
68949         * modules/fcntl: New file.
68950         * modules/chdir-safer (Depends-on): Add fcntl.
68951         * modules/fts: Likewise.
68952         * modules/mkdir-p: Likewise.
68953
68954         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68955         This undoes the most recent change, since we're now addressing the
68956         problem in a different way.
68957
68958         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68959         into output, since the output might be called Makefile.am even
68960         if $makefile_name is something different.
68961         (func_import): Use $makefile_am rather than
68962         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68963         empty.
68964
68965         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68966
68967 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68968
68969         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68970         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68971         recent change to stdint.m4, since we're now addressing the problem in a
68972         different way.
68973
68974 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68975
68976         * m4/fcntl_h.m4: New file.
68977
68978 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68979
68980         * lib/fcntl_.h: New file.
68981         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68982         the fcntl module.
68983         * lib/dirchownmod.c: Likewise.
68984         * lib/fts.c: Likewise.
68985
68986         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68987         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68988         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68989         just before including <inttypes.h>, to avoid circular inclusion.
68990
68991 2006-08-28  Jim Meyering  <jim@meyering.net>
68992
68993         * doc/visibility.texi: Actually read and correct the grammar of the
68994         sentence affected by yesterday's change.
68995
68996 2006-08-28  Eric Blake  <ebb9@byu.net>
68997
68998         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68999         needs wrapper.
69000
69001 2006-08-28  Eric Blake  <ebb9@byu.net>
69002
69003         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69004
69005 2006-08-28  Eric Blake  <ebb9@byu.net>
69006
69007         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69008
69009 2006-08-28  Bruno Haible  <bruno@clisp.org>
69010
69011         * modules/c-strstr: New file, from GNU gettext.
69012         * MODULES.html.sh (String handling): Add c-strstr.
69013
69014 2006-08-28  Bruno Haible  <bruno@clisp.org>
69015
69016         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69017         macros.
69018         Reported by Eric Blake.
69019
69020 2006-08-28  Bruno Haible  <bruno@clisp.org>
69021
69022         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69023         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69024         * lib/vasprintf.c: Include errno.h, limits.h.
69025         (EOVERFLOW): New fallback definition.
69026         (vasprintf): Test here whether the string length is > INT_MAX.
69027         * lib/vsnprintf.c: Include errno.h, limits.h.
69028         (EOVERFLOW): New fallback definition.
69029         (vsnprintf): Fix bug when generated string was too long for the buffer.
69030         Test here whether the string length is > INT_MAX.
69031
69032 2006-08-28  Bruno Haible  <bruno@clisp.org>
69033
69034         * lib/inttypes_.h (SCNX*): Remove definitions.
69035         Reported by Eric Blake.
69036
69037 2006-08-28  Bruno Haible  <bruno@clisp.org>
69038
69039         * lib/c-strstr.h: New file, from GNU gettext.
69040         * lib/c-strstr.c: New file, from GNU gettext.
69041
69042 2006-08-28  Bruno Haible  <bruno@clisp.org>
69043
69044         * gnulib-tool: Reorder some statements.
69045
69046 2006-08-28  Bruno Haible  <bruno@clisp.org>
69047
69048         * gnulib-tool: New option --makefile-name.
69049         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69050         $makefile_name.
69051         (func_import): Write $makefile_name to the cache file, and read it from
69052         there unless explicitly specified. Use $makefile_name as file name
69053         instead of Makefile.am. Adjust the recommendations accordingly.
69054
69055 2006-08-28  Bruno Haible  <bruno@clisp.org>
69056
69057         * gnulib-tool (func_verify_module): Check against misapplying patch.
69058
69059 2006-08-28  Bruno Haible  <bruno@clisp.org>
69060
69061         * gnulib-tool (func_relativize, func_relconcat): New functions.
69062         Give an error if --local-dir is given with --update.
69063         Remove trailing slashes from $local_gnulib_dir.
69064         (func_import): Store the relativized $local_gnulib_dir in
69065         gnulib-cache.m4, and read it from there if not specified explicitly.
69066
69067 2006-08-28  Bruno Haible  <bruno@clisp.org>
69068
69069         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69070         is the current directory. Respect also $local_gnulib_dir.
69071
69072 2006-08-28  Bruno Haible  <bruno@clisp.org>
69073             Simon Josefsson  <jas@extundo.com>
69074
69075         BeOS portability.
69076         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69077
69078 2006-08-27  Jim Meyering  <jim@meyering.net>
69079
69080         * doc/visibility.texi: Remove duplicate word: "pointer".
69081
69082 2006-08-26  Bruno Haible  <bruno@clisp.org>
69083
69084         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69085         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69086         (Makefile.am): Create inttypes.h from inttypes_.h.
69087         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69088
69089         * modules/imaxabs: New file.
69090
69091         * modules/imaxdiv: New file.
69092
69093 2006-08-26  Bruno Haible  <bruno@clisp.org>
69094
69095         * m4/inttypes.m4: New file.
69096         * m4/_inttypes_h.m4: Remove file.
69097         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69098         PRI_MACROS_BROKEN.
69099         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69100
69101         * m4/imaxabs.m4: New file.
69102
69103         * m4/imaxdiv.m4: New file.
69104
69105 2006-08-26  Bruno Haible  <bruno@clisp.org>
69106
69107         * lib/inttypes_.h: New file.
69108         * lib/inttypes.h: Remove file.
69109         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69110
69111         * lib/imaxabs.c: New file.
69112
69113         * lib/imaxdiv.c: New file.
69114
69115 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69116
69117         New config-h module, so that "make" output needn't be cluttered
69118         by -DHAVE_CONFIG_H.
69119         * MODULES.html.sh (Support for building libraries and executables):
69120         Add config-h.
69121         * modules/config-h: New file.
69122         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69123         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69124         the config-h module is used.
69125
69126         New configmake module, so that "make" output needn't be cluttered
69127         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69128         * MODULES.html.sh (Support for building libraries and executables):
69129         Add configmake.
69130         * modules/configmake: New file.
69131
69132 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69133
69134         * m4/config-h.m4: New file.
69135
69136 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69137
69138         * config/srclist.txt: Add elisp-comp.
69139
69140 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69141
69142         * MODULES.html.sh (Support for building libraries and executables):
69143         Add elisp-comp.
69144         * build-aux/elisp-comp: New file.
69145         * modules/elisp-comp: New file.
69146
69147 2006-08-24  Bruno Haible  <bruno@clisp.org>
69148
69149         * gnulib-tool (func_create_testdir): Use non-default values of
69150         sourcebase and m4base.
69151
69152 2006-08-24  Bruno Haible  <bruno@clisp.org>
69153
69154         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69155         HTML structure.
69156
69157 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69158
69159         * modules/openat (Depends-on): Add lchown.
69160
69161 2006-08-23  Bruno Haible  <bruno@clisp.org>
69162
69163         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69164         of gl_LOCK_EARLY instead of gl_LOCK.
69165
69166 2006-08-23  Bruno Haible  <bruno@clisp.org>
69167
69168         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69169         on OSF/1 to no.
69170         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69171
69172 2006-08-23  Bruno Haible  <bruno@clisp.org>
69173
69174         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69175         as unusable.
69176
69177         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69178         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69179         (gl_LOCK): New macro.
69180
69181 2006-08-22  Simon Josefsson  <jas@extundo.com>
69182
69183         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69184         to md5 module.
69185
69186 2006-08-22  Simon Josefsson  <jas@extundo.com>
69187
69188         * MODULES.html.sh: Add "Support for maintaining and release
69189         projects".
69190
69191         * build-aux/gnupload: New file, from coreutils.
69192
69193 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69194
69195         Avoid the need for AC_LIBSOURCES in m4 macros.
69196         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69197         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69198         * modules/check-version (EXTRA_DIST): Add check-version.h.
69199         * modules/crc (EXTRA_DIST): Add crc.h.
69200         * modules/des (EXTRA_DIST): Add des.h.
69201         * modules/gc (EXTRA_DIST): Add gc.h.
69202         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69203         * modules/getline (EXTRA_DIST): Add getline.h.
69204         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69205         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69206         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69207         * modules/md2 (EXTRA_DIST): Add md2.h.
69208         * modules/md4 (EXTRA_DIST): Add md4.h.
69209         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69210         * modules/read-file (EXTRA_DIST): Add read-file.h.
69211         * modules/readline (EXTRA_DIST): Add readline.h.
69212         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69213         rijndael-api-fst.h.
69214
69215 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69216
69217         * m4/rijndael.m4 (gl_ARCFOUR):
69218         * m4/arctwo.m4 (gl_ARCTWO):
69219         * m4/check-version.m4 (gl_CHECK_VERSION):
69220         * m4/crc.m4 (gl_CRC):
69221         * m4/des.m4 (gl_DES):
69222         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69223         * m4/gc.m4 (gl_GC):
69224         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69225         * m4/getline.m4 (gl_FUNC_GETLINE):
69226         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69227         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69228         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69229         * m4/md2.m4 (gl_MD2):
69230         * m4/md4.m4 (gl_MD4):
69231         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69232         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69233         * m4/readline.m4 (gl_FUNC_READLINE):
69234         * m4/rijndael.m4 (gl_RIJNDAEL):
69235         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69236         to get the necessary .h files and whatnot.
69237
69238 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69239
69240         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69241         gnulib rather than the other way around.
69242         * config/srclistvars.sh (COREUTILS): Remove.
69243
69244 2006-08-22  Jim Meyering  <jim@meyering.net>
69245
69246         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69247
69248         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69249
69250 2006-08-22  Eric Blake  <ebb9@byu.net>
69251
69252         * modules/regexprops-generic: New file.
69253         * MODULES.html.sh (Support for building documentation): List it.
69254
69255 2006-08-22  Eric Blake  <ebb9@byu.net>
69256
69257         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69258         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69259         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69260         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69261
69262 2006-08-22  Bruno Haible  <bruno@clisp.org>
69263
69264         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69265         and lib_LTLIBRARIES like the other lib_* variables.
69266
69267 2006-08-22  Bruno Haible  <bruno@clisp.org>
69268
69269         * build-aux/x-to-1.in: New file, from GNU gettext.
69270
69271 2006-08-22  Bruno Haible  <bruno@clisp.org>
69272
69273         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69274         <utmpx.h> exists.
69275
69276 2006-08-22  Bruno Haible  <bruno@clisp.org>
69277
69278         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69279         <utmpx.h> exists.
69280
69281 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69282
69283         BeOS portability.
69284         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69285         exist.
69286         Problem reported by Bruno Haible.
69287
69288 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69289
69290         Avoid the need for AC_LIBSOURCES in m4 macros.
69291         * modules/acl (EXTRA_DIST): Add acl.h.
69292         * modules/argmatch (Files): Add m4/argmatch.m4.
69293         (configure.ac): Add gl_ARGMATCH.
69294         (EXTRA_DIST): Renamed from lib_SOURCES, for
69295         consistency with the other modules.  Remove argmatch.c.
69296         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69297         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69298         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69299         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69300         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69301         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69302         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69303         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69304         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69305         * modules/closeout (EXTRA_DIST): Add closeout.h.
69306         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69307         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69308         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69309         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69310         dirname.h; remove basename.c and stripslash.c.
69311         * modules/exclude (EXTRA_DIST): Add exclude.h.
69312         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69313         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69314         * modules/file-type (EXTRA_DIST): Add file-type.h.
69315         * modules/filemode (EXTRA_DIST): Add filemode.h.
69316         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69317         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69318         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69319         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69320         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69321         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69322         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69323         * modules/getdate (EXTRA_DIST): Add getdate.c.
69324         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69325         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69326         * modules/getpass (EXTRA_DIST): Add getpass.h.
69327         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69328         * modules/group-member (EXTRA_DIST): Add group-member.h.
69329         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69330         * modules/hash (EXTRA_DIST): Add hash.h.
69331         * modules/human (EXTRA_DIST): Add human.h.
69332         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69333         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69334         * modules/lchown (EXTRA_DIST): Add lchown.h.
69335         * modules/long-options (EXTRA_DIST): Add long-options.h.
69336         * modules/lstat (EXTRA_DIST): Add lstat.h.
69337         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69338         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69339         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69340         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69341         * modules/memxor (EXTRA_DIST): Add memxor.h.
69342         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69343         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69344         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69345         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69346         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69347         * modules/physmem (EXTRA_DIST): Add physmem.h.
69348         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69349         * modules/posixver (EXTRA_DIST): Add posixver.h.
69350         * modules/quote (EXTRA_DIST): Add quote.h.
69351         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69352         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69353         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69354         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69355         regex_internal.h regexec.c.
69356         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69357         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69358         * modules/same (EXTRA_DIST): Add same.h.
69359         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69360         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69361         * modules/savedir (EXTRA_DIST): Add savedir.h.
69362         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69363         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69364         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69365         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69366         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69367         * modules/strdup (EXTRA_DIST): Add strdup.h.
69368         * modules/strftime (EXTRA_DIST): Add strftime.h.
69369         * modules/strndup (EXTRA_DIST): Add strndup.h.
69370         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69371         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69372         * modules/time_r (EXTRA_DIST): Add time_r.h.
69373         * modules/timespec (EXTRA_DIST): Add timespec.h.
69374         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69375         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69376         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69377         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69378         * modules/userspec (EXTRA_DIST): Add userspec.h.
69379         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69380         * modules/utimens (EXTRA_DIST): Add utimens.h.
69381         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69382         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69383         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69384         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69385         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69386         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69387         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69388         * modules/yesno (EXTRA_DIST): Add yesno.h.
69389
69390 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69391
69392         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69393
69394         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69395         * m4/dev-ino.m4, same-inode.m4: Remove.
69396
69397         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69398         * m4/acl.m4 (AC_FUNC_ACL):
69399         * m4/backupfile.m4 (gl_BACKUPFILE):
69400         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69401         * m4/canon-host.m4 (gl_CANON_HOST):
69402         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69403         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69404         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69405         * m4/cloexec.m4 (gl_CLOEXEC):
69406         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69407         * m4/closeout.m4 (gl_CLOSEOUT):
69408         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69409         * m4/dirname.m4 (gl_DIRNAME):
69410         * m4/exclude.m4 (gl_EXCLUDE):
69411         * m4/exitfail.m4 (gl_EXITFAIL):
69412         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69413         * m4/file-type.m4 (gl_FILE_TYPE):
69414         * m4/filemode.m4 (gl_FILEMODE):
69415         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69416         * m4/fpending.m4 (gl_FUNC_FPENDING):
69417         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69418         * m4/fts.m4 (gl_FUNC_FTS):
69419         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69420         * m4/getdate.m4 (gl_GETDATE):
69421         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69422         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69423         * m4/getpass.m4 (gl_FUNC_GETPASS):
69424         * m4/gettime.m4 (gl_GETTIME):
69425         * m4/getugroups.m4 (gl_GETUGROUPS):
69426         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69427         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69428         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69429         * m4/hash.m4 (gl_HASH):
69430         * m4/idcache.m4 (gl_IDCACHE):
69431         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69432         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69433         * m4/long-options.m4 (gl_LONG_OPTIONS):
69434         * m4/lstat.m4 (gl_FUNC_LSTAT):
69435         * m4/md5.m4 (gl_MD5):
69436         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69437         * m4/memcoll.m4 (gl_MEMCOLL):
69438         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69439         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69440         * m4/memxor.m4 (gl_MEMXOR):
69441         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69442         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69443         * m4/modechange.m4 (gl_MODECHANGE):
69444         * m4/mountlist.m4 (gl_MOUNTLIST):
69445         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69446         * m4/openat.m4 (gl_FUNC_OPENAT):
69447         * m4/pathmax.m4 (gl_PATHMAX):
69448         * m4/physmem.m4 (gl_PHYSMEM):
69449         * m4/posixtm.m4 (gl_POSIXTM):
69450         * m4/posixver.m4 (gl_POSIXVER):
69451         * m4/quote.m4 (gl_QUOTE):
69452         * m4/quotearg.m4 (gl_QUOTEARG):
69453         * m4/readtokens.m4 (gl_READTOKENS):
69454         * m4/readutmp.m4 (gl_READUTMP):
69455         * m4/regex.m4 (gl_REGEX):
69456         * m4/safe-read.m4 (gl_SAFE_READ):
69457         * m4/safe-write.m4 (gl_SAFE_WRITE):
69458         * m4/same.m4 (gl_SAME):
69459         * m4/save-cwd.m4 (gl_SAVE_CWD):
69460         * m4/savedir.m4 (gl_SAVEDIR):
69461         * m4/settime.m4 (gl_SETTIME):
69462         * m4/sha1.m4 (gl_SHA1):
69463         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69464         * m4/stat-macros.m4 (gl_STAT_MACROS):
69465         * m4/stat-time.m4 (gl_STAT_TIME):
69466         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69467         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69468         * m4/strdup.m4 (gl_FUNC_STRDUP):
69469         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69470         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69471         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69472         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69473         * m4/time_r.m4 (gl_TIME_R):
69474         * m4/timespec.m4 (gl_TIMESPEC):
69475         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69476         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69477         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69478         * m4/userspec.m4 (gl_USERSPEC):
69479         * m4/utimecmp.m4 (gl_UTIMECMP):
69480         * m4/utimens.m4 (gl_UTIMENS):
69481         * m4/xalloc.m4 (gl_XALLOC):
69482         * m4/xgetcwd.m4 (gl_XGETCWD):
69483         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69484         * m4/xreadlink.m4 (gl_XREADLINK):
69485         * m4/xstrtod.m4 (gl_XSTRTOD):
69486         * m4/yesno.m4 (gl_YESNO):
69487         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69488         to get the necessary .h files and whatnot.
69489
69490 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69491             Bruno Haible  <bruno@clisp.org>
69492
69493         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69494         /bin/sh understanding of '!' conditional negation.
69495
69496 2006-08-21  Jim Meyering  <jim@meyering.net>
69497
69498         * modules/openat (Depends-on): Really alphabetize.
69499
69500         * modules/acl (Depends-on): Add error and quote.
69501
69502         * check-module (find_included_lib_files): Add at-func.c to the
69503         ok-to-include-more-than-once white list.
69504
69505         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69506
69507 2006-08-21  Bruno Haible  <bruno@clisp.org>
69508
69509         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69510         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69511         Reported by Martin Lambers <marlam@marlam.de>.
69512
69513 2006-08-21  Bruno Haible  <bruno@clisp.org>
69514
69515         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69516         specify an installation location, don't emit a noinst_LIBRARIES or
69517         noinst_LTLIBRARIES assignment.
69518
69519 2006-08-21  Bruno Haible  <bruno@clisp.org>
69520
69521         BeOS portability.
69522         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69523         BeOS has mbrtowc() but no <wctype.h>.
69524
69525 2006-08-21  Bruno Haible  <bruno@clisp.org>
69526
69527         BeOS portability.
69528         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69529         exist.
69530
69531 2006-08-21  Bruno Haible  <bruno@clisp.org>
69532
69533         BeOS portability.
69534         * lib/mbchar.h: Include <wctype.h> only if it exists.
69535
69536 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69537
69538         Remove files that are no longer needed by their respective modules.
69539         * m4/obstack.m4: Remove.
69540         * m4/strerror_r.m4: Remove.
69541         * m4/uint32_t.m4: Remove.
69542         * m4/uintptr_t.m4: Remove.
69543         * m4/ullong_max.m4: Remove.
69544         * m4/xstrtoimax.m4: Remove.
69545         * m4/xstrtoumax.m4: Remove.
69546
69547         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69548         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69549         dependencies now capture this.
69550
69551         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69552         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69553         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69554         * m4/human.m4 (gl_HUMAN): Likewise.
69555         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69556         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69557
69558         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69559
69560         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69561         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69562         stdint.
69563         * m4/human.m4 (gl_HUMAN): Likewise.
69564         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69565         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69566         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69567         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69568         * m4/xstrtol (gl_XSTRTOL): Likewise.
69569
69570         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69571         AC_TYPE_LONG_LONG_INT.
69572         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69573         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69574         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69575         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69576
69577         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69578         on stdbool.
69579
69580         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69581         (gl_PREREQ_XSTRTOUL): Remove.
69582
69583         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69584
69585         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69586         mode.
69587
69588 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69589
69590         Add and change modules to make it easier for coreutils to use
69591         gnulib-tool.
69592         * modules/backupfile (Files): Remove m4/d-ino.m4.
69593         (Depends-on): Add d-ino.
69594         * modules/cycle-check (Depends-on): Add stdint.
69595         (lib_SOURCES): Add cycle-check.h.
69596         * modules/d-ino: New module.
69597         * modules/d-type: New module.
69598         * modules/error (Files): Remove m4/strerror_r.m4.
69599         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69600         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69601         m4/inttypes_h.m4, m4/uintmax_t.m4.
69602         (Depends-on): Add stdint.
69603         (lib_SOURCES): Add fsusage.h.
69604         * modules/getcwd (Files): Remove d-ino.m4.
69605         (Depends-on): Add d-ino.
69606         * modules/getndelim2 (Depends-on): Add stdint.
69607         * modules/glob (Files): Remove m4/d-type.m4.
69608         (Depends-on): Add d-type.
69609         * modules/host-os: New module.
69610         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69611         m4/inttypes_h.m4, m4/uintmax_t.m4.
69612         * Depends-on: Add stdint.
69613         (lib_SOURCES): Add human.h.
69614         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69615         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69616         m4/uintmax_t.m4, m4/ulonglong.m4.
69617         (Depends-on): Add stdint.
69618         (EXTRA_DIST): Add inttostr.h.
69619         * modules/lchmod: New module.
69620         * modules/link-follow: New module.
69621         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69622         (Depends-on): Add lchmod.
69623         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69624         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69625         (Depends-on): Add stdint.
69626         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69627         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69628         (Depends-on): Add stdint.
69629         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69630         * modules/perl: New module.
69631         * modules/regex (Depends-on): Add stdint.
69632         * modules/rmdir-errno: New module.
69633         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69634         m4/intmax_t.m4.
69635         (Depends-on): Add stdint.
69636         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69637         m4/uintmax_t.m4.
69638         (Depends-on): Add stdint.
69639         * modules/unlink-busy: New module.
69640         * modules/utimecmp (Depends-on): Add stdint.
69641         * modules/uptime: New module.
69642         * modules/winsz-ioctl: New module.
69643         * modules/winsz-termios: New module.
69644         * modules/xnanosleep (Depends-on): Add nanosleep.
69645         * modules/ullong_max: Remove.
69646         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69647         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69648         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69649         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69650         (Depends-on): Add inttypes.
69651         (lib_SOURCES): Add xstrtol.h.
69652         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69653         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69654         * MODULES.html.sh: Move 'assert' into the assert section.
69655         Move 'dummy' into the linking section.
69656         Remove ullong_max.
69657         Add section for compatibility checks for POSIX:2001 functions,
69658         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69659         winsz-ioctl, and winsz-termios into it.
69660         Add lchmod.
69661         Add top-level Misc section and put host-os, perl, and uptime
69662         into it.
69663
69664 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69665
69666         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69667         now assume the stdint module.  Do not include inttypes.h.
69668         * lib/fsusage.h: Likewise.
69669         * lib/getndelim2.c: Likewise.
69670         * lib/human.h: Likewise.
69671         * lib/inttostr.h: Likewise.
69672         * lib/obstack.c: Likewise.
69673         * lib/regex_internal.h: Likewise.
69674         * lib/tempname.c: Likewise.
69675         * lib/utimecmp.c: Likewise.
69676         * lib/xstrtol.h: Likewise.
69677
69678         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69679
69680         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69681         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69682         * lib/xtime.h: Likewise.
69683
69684 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69685
69686         * modules/openat (Files): Add lib/fchmodat.c.
69687         Fixes problem reported by Jay Youngman.
69688
69689 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69690
69691         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69692         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69693
69694 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69695             Bruno Haible  <bruno@clisp.org>
69696
69697         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69698         and is a script that invokes bison. Tighten the code. Add comments.
69699
69700 2006-08-18  Jim Meyering  <jim@meyering.net>
69701
69702         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69703         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69704         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69705         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69706
69707 2006-08-18  Bruno Haible  <bruno@clisp.org>
69708
69709         * modules/bison-i18n: New file.
69710         * MODULES.html.sh (Internationalization functions): Add it.
69711
69712 2006-08-18  Bruno Haible  <bruno@clisp.org>
69713
69714         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69715         sys/statvfs.h. When getmntinfo was found, check its declaration and
69716         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69717
69718 2006-08-18  Bruno Haible  <bruno@clisp.org>
69719
69720         * m4/bison-i18n.m4: New file, from bison.
69721
69722 2006-08-18  Bruno Haible  <bruno@clisp.org>
69723
69724         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69725         (ME_DUMMY): Treat "kernfs" as a dummy.
69726         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69727
69728 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         Update from coreutils.
69731
69732         2006-08-15  Jim Meyering  <jim@meyering.net>
69733
69734         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69735
69736         2006-01-17  Jim Meyering  <jim@meyering.net>
69737
69738         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69739
69740         2006-01-11  Jim Meyering  <jim@meyering.net>
69741
69742         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69743         Check for the lchmod function.
69744
69745 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         Update from coreutils.
69748
69749         * lib/__fpending.h: Add copyright notice.
69750         * lib/fprintftime.h: Likewise.
69751         * lib/savedir.c: Use (C) in copyright notice.
69752         * lib/savedir.h: Likewise.
69753
69754         2006-08-15  Jim Meyering  <jim@meyering.net>
69755
69756         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69757         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69758         in support of the EXPECTED_ERRNO macro.
69759         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69760         definitions.  Instead, define the appropriate symbols and include
69761         "at-func.c".
69762         * lib/mkdirat.c (mkdirat): Likewise.
69763         * lib/fchmodat.c (fchmodat): Likewise.
69764         (ENOSYS): Remove definition.
69765         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69766         it.  Don't include "unistd--.h" -- it wasn't ever used.
69767
69768         2006-01-17  Jim Meyering  <jim@meyering.net>
69769
69770         Rewrite fts.c not to change the current working directory,
69771         by using openat, fstatat, fdopendir, etc..
69772
69773         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69774         (HAVE_OPENAT_SUPPORT): Define.
69775         [_LIBC] (fchdir): Don't undef or define; no longer used.
69776         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69777         Now, this `function' always succeeds, and consumes its file descriptor
69778         parameter -- so callers must not close such FDs.  Update callers.
69779         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69780         (diropen): Add parameter, SP.  Adjust all callers.
69781         Implement using diropen_fd, rather than open.
69782         (fts_open): Initialize new member, fts_cwd_fd.
69783         Remove fts_rft-setting code.
69784         (fts_close): Close fts_cwd_fd, if necessary.
69785         (__opendir2): Define in terms of opendir or opendirat,
69786         depending on whether the FST_NOCHDIR flag is set.
69787         (fts_build): Since fts_safe_changedir consumes its FD, and since
69788         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69789         and close the dup'd file descriptor upon failure.
69790         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69791         (fts_safe_changedir): Tweak semantics to reflect that this function
69792         now calls cwd_advance_fd and hence consumes its FD argument.
69793         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69794         [struct FTS] (fts_rft): Remove now-unused member.
69795         [struct FTS] (fts_cycle.state): Improve comment.
69796
69797         * lib/openat.c (openat_needs_fchdir): New function.
69798         * lib/openat.h (openat_needs_fchdir): Declare it.
69799
69800 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69801
69802         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69803         Problem and fix reported by Pádraig Brady in
69804         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69805
69806 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69807
69808         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69809
69810 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69811
69812         * lib/memcoll.c (memcoll): Optimize for the common case where the
69813         arguments are bytewise equal.
69814
69815 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69816
69817         * doc/regexprops-generic.texi: Add a copyright notice.
69818
69819 2006-08-15  Bruno Haible  <bruno@clisp.org>
69820
69821         * modules/tmpdir (License): Change to LGPL.
69822
69823 2006-08-15  Bruno Haible  <bruno@clisp.org>
69824
69825         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69826         module.
69827
69828 2006-08-14  Simon Josefsson  <jas@extundo.com>
69829
69830         * config/srclist.txt: Add gnupload.
69831
69832 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69833
69834         Change copyright notice from LGPL 2 to GPL 2, since that's the
69835         standard form used in the gnulib repository.
69836         * tests/test-lock.c: Likewise.
69837         * tests/test-stdint.c: Likewise.
69838         * tests/test-tls.c: Likewise.
69839
69840         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69841         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69842         Add copyright notice.
69843
69844         * check-module: Add copyright notice.  Output a copyright
69845         notice if "--version" is specified.
69846         * modules/COPYING: New file.
69847         * tests/test-getaddrinfo.c: Add copyright notice.
69848         * tests/test-verify.c: Likewise.
69849
69850 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69851
69852         Change copyright notice from LGPL 2 to GPL 2, since that's the
69853         standard form used in the gnulib repository.
69854         * lib/lock.c: LGPL -> GPL.
69855         * lib/lock.h: Likewise.
69856         * lib/strnlen1.c: Likewise.
69857         * lib/strnlen1.h: Likewise.
69858         * lib/tls.c: Likewise.
69859         * lib/tls.h: Likewise.
69860         * lib/tmpdir.c: Likewise.
69861
69862         * lib/TODO: Remove; this belongs only in coreutils.
69863
69864 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69865
69866         Add copyright notices to long-enough files that lack them, since
69867         otherwise the files aren't clearly free.  Use the same notice that
69868         getdate.texi already uses.
69869         * doc/alloca-opt.texi: Add copyright notice.
69870         * doc/alloca.texi: Likewise.
69871         * doc/ctime.texi: Likewise.
69872         * doc/functions.texi: Likewise.
69873         * doc/gcd.texi: Likewise.
69874         * doc/gnulib-tool.texi: Likewise.
69875         * doc/inet_ntoa.texi: Likewise.
69876         * doc/visibility.texi: Likewise.
69877
69878         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69879         * doc/quote.texi: Add copyright notice.
69880
69881         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69882         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69883         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69884         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69885         is now obsolete, and give a pointer to the Sun list.
69886         Add copyright notice.
69887
69888 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69889
69890         * config/srclistvars.sh: Add copyright notice.
69891
69892 2006-08-14  Eric Blake  <ebb9@byu.net>
69893
69894         Import the following change from libc:
69895
69896         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69897
69898         Upstream bug 2997.
69899         * lib/misc/error.c: Add space between program name and message if file
69900         name is missing.
69901
69902 2006-08-12  Karl Berry  <karl@gnu.org>
69903
69904         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69905         remove, these originate in gnulib now.
69906
69907 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69908
69909         * doc/Makefile (standards.info standards.html standards.dvi):
69910         Also depend on make-stds.texi.
69911
69912 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69913
69914         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69915         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69916
69917         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69918         in wchar_t.  Problem reported by Eric Blake.
69919
69920         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69921         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69922         Also, help the compiler to keep LEN in a register.
69923
69924 2006-08-11  Eric Blake  <ebb9@byu.net>
69925
69926         * users.txt: Sort.  Add tar.
69927
69928 2006-08-11  Bruno Haible  <bruno@clisp.org>
69929
69930         * users.txt: New file.
69931
69932 2006-08-11  Bruno Haible  <bruno@clisp.org>
69933
69934         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69935         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69936
69937 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         * modules/snprintf (Depends-on): Remove minmax.
69940         (Maintainer): Add self and Bruno.
69941
69942 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69943
69944         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69945         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69946         (EOVERFLOW): Define if the system does not.
69947         Do not include "minmax.h"; it wasn't used.
69948         (snprintf): Don't assume size_t promotes to an unsigned type.
69949         Fix bug when generated string was too long for the buffer: the
69950         buffer's contents are supposed to be the initial prefix of the
69951         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69952         exceeds INT_MAX; do the check ourselves.
69953
69954         Import the following changes from libc:
69955
69956         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69957
69958         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69959         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69960         set wc to the byte which couldn't be converted.
69961         (re_string_reconstruct): Don't clear valid_raw_len before calling
69962         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69963         tip_context using re_string_context_at.
69964
69965         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69966
69967         * lib/posix/regex.h: g++ still cannot handled [restrict].
69968
69969         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69970
69971         * lib/posix/regex.h: Remove special handling for VMS.
69972
69973 2006-08-10  Jim Meyering  <jim@meyering.net>
69974
69975         * modules/same-inode: New module.
69976         * modules/dev-ino: New module.
69977         * modules/cycle-check: Depend on these modules, rather than simply
69978         including their .h files.
69979         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69980         required via m4/cycle-check.m4.
69981         * modules/same: Depend on new same-inode module, rather than
69982         including same-inode.h.
69983         * modules/chdir-safer: New file.
69984
69985         * modules/chown (Depends-on): Add stat-macros.
69986
69987 2006-08-10  Jim Meyering  <jim@meyering.net>
69988
69989         * m4/cycle-check.m4: New file.
69990         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69991         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69992
69993 2006-08-10  Eric Blake  <ebb9@byu.net>
69994
69995         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69996         in from original proposal.
69997
69998 2006-08-10  Eric Blake  <ebb9@byu.net>
69999         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70000
70001         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70002         namespace.
70003
70004 2006-08-10  Bruno Haible  <bruno@clisp.org>
70005
70006         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70007         as well.
70008
70009 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70010
70011         Sync from coreutils.
70012
70013         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70014
70015         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70016         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70017
70018 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70019
70020         * modules/restrict: Remove; no longer needed now that we assume
70021         Autoconf 2.59 or later.
70022         * MODULES.html.sh: Remove 'restrict'.
70023         * modules/argp (Depends-on): Remove 'restrict'.
70024         * modules/base64 (Depends-on): Likewise.
70025         * modules/gc (Depends-on): Likewise.
70026         * modules/getaddrinfo (Depends-on): Likewise.
70027         * modules/glob (Depends-on): Likewise.
70028         * modules/inet_ntop (Depends-on): Likewise.
70029         * modules/inet_pton (Depends-on): Likewise.
70030         * modules/memxor (Depends-on): Likewise.
70031         * modules/regex (Depends-on): Likewise.
70032         * modules/strtok_r (Depends-on): Likewise.
70033         * modules/time_r (Depends-on): Likewise.
70034
70035 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70036
70037         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70038         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70039         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70040         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70041         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70042         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70043         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70044         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70045
70046         Merge from coreutils.
70047         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70048         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70049         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70050         * m4/time_r.m4 (gl_TIME_R): Likewise.
70051
70052 2006-08-09  Karl Berry  <karl@gnu.org>
70053
70054         * config/srclist.txt: no more gettext-tools, per Bruno.
70055
70056 2006-08-08  Eric Blake  <ebb9@byu.net>
70057
70058         * modules/verror: New module.
70059         * MODULES.html.sh: Document it.
70060
70061 2006-08-08  Eric Blake  <ebb9@byu.net>
70062
70063         * lib/verror.h, lib/verror.c: New files.
70064
70065 2006-08-08  Eric Blake  <ebb9@byu.net>
70066
70067         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70068         verror_at_line output complies with GNU Coding Standards even when
70069         file is NULL.
70070
70071 2006-08-07  Bruno Haible  <bruno@clisp.org>
70072
70073         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70074         versions of AIX.
70075         Reported by Ralf Wildenhues.
70076
70077 2006-08-07  Bruno Haible  <bruno@clisp.org>
70078
70079         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70080         in an AC_DEFUN. Needed so that the autoconf snippets can use
70081         AC_REQUIRE.
70082
70083 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70084
70085         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70086         Initialize pkgdata_DATA.
70087         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70088         overriding it.
70089
70090 2006-08-06  Eric Blake  <ebb9@byu.net>
70091
70092         * lib/error.h: Fold in some upstream changes from glibc.
70093         * lib/error.c: Likewise.
70094
70095 2006-08-04  Bruno Haible  <bruno@clisp.org>
70096
70097         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70098         Make the mostlyclean-local rule depend on mostlyclean-generic.
70099         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70100
70101 2006-07-31  Bruno Haible  <bruno@clisp.org>
70102
70103         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70104         <stdlib.h>, <string.h>.
70105
70106 2006-07-30  Bruno Haible  <bruno@clisp.org>
70107
70108         * modules/readlink (License): Change to LGPL.
70109
70110 2006-07-30  Bruno Haible  <bruno@clisp.org>
70111
70112         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70113         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70114         set PKGDATADIR to point to it.
70115
70116 2006-07-30  Bruno Haible  <bruno@clisp.org>
70117
70118         * modules/csharpexec (configure.ac): Comment out macro invocation.
70119         * modules/javaexec (configure.ac): Likewise.
70120         * modules/javacomp-script (configure.ac): Likewise.
70121
70122         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70123
70124 2006-07-30  Bruno Haible  <bruno@clisp.org>
70125
70126         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70127         linked-list.
70128
70129 2006-07-30  Bruno Haible  <bruno@clisp.org>
70130
70131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70132
70133 2006-07-30  Bruno Haible  <bruno@clisp.org>
70134
70135         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70136         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70137         get removed.
70138
70139 2006-07-29  Bruno Haible  <bruno@clisp.org>
70140
70141         Make it possible for gnulib-tool to work with locally modified or
70142         augmented gnulib repositories.
70143         * gnulib-tool (func_usage): Document --local-dir option.
70144         (local_gnulib_dir): New variable.
70145         Handle --local-dir option.
70146         (func_lookup_file): New function.
70147         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70148         (func_get_description, func_get_filelist, func_get_description,
70149         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70150         func_get_automake_snippet, func_get_include_directive,
70151         func_get_license, func_get_maintainer): Use func_lookup_file.
70152         (func_import, func_create_testdir): Use func_lookup_file.
70153
70154 2006-07-29  Bruno Haible  <bruno@clisp.org>
70155
70156         * modules/setenv (Depends-on): Add unistd.
70157
70158 2006-07-29  Bruno Haible  <bruno@clisp.org>
70159
70160         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70161
70162 2006-07-29  Bruno Haible  <bruno@clisp.org>
70163
70164         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70165
70166 2006-07-29  Bruno Haible  <bruno@clisp.org>
70167
70168         * gnulib-tool (import, update): If there is no Makefile.am, look at
70169         aclocal.m4, instead of bailing out.
70170
70171 2006-07-29  Bruno Haible  <bruno@clisp.org>
70172
70173         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70174         Categorize the options by when they are useful.
70175
70176 2006-07-29  Bruno Haible  <bruno@clisp.org>
70177
70178         * gnulib-tool (func_usage): Document option --no-libtool.
70179         Handle option --no-libtool.
70180         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70181         for changed semantics of $libtool variable.
70182         (func_import): Likewise. If libtool is not used, show this through
70183         an option --no-libtool.
70184         (func_create_testdir): Update.
70185
70186 2006-07-29  Bruno Haible  <bruno@clisp.org>
70187
70188         * gnulib-tool (func_import): Extend error message about missing
70189         --doc-base.
70190
70191 2006-07-29  Bruno Haible  <bruno@clisp.org>
70192
70193         * gnulib-tool (func_import): Don't create the $docbase directory if
70194         there is no file to store there.
70195
70196 2006-07-29  Bruno Haible  <bruno@clisp.org>
70197
70198         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70199         relevant, look for configure.ac there, not in the current directory.
70200         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70201
70202 2006-07-29  Bruno Haible  <bruno@clisp.org>
70203
70204         * gnulib-tool (SORT): New variable.
70205         (func_usage): Undocument --assume-autoconf option.
70206         Remove --assume-autoconf option handling.
70207         (autoconf_minversion): Determine from the contents of configure.ac.
70208         (func_import): Remove autoconf_minversion handling.
70209         Suggested by Eric Blake.
70210
70211 2006-07-29  Bruno Haible  <bruno@clisp.org>
70212
70213         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70214
70215 2006-07-29  Bruno Haible  <bruno@clisp.org>
70216
70217         * config/srclist.txt (*setenv.[ch]): Remove rules.
70218
70219 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70220
70221         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70222
70223 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70224
70225         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70226         arpa/inet.h.
70227
70228 2006-07-28  Simon Josefsson  <jas@extundo.com>
70229
70230         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70231         * modules/inet_pton (Depends-on): Likewise.
70232
70233 2006-07-28  Simon Josefsson  <jas@extundo.com>
70234
70235         * m4/netinet_in_h.m4: New file.
70236
70237 2006-07-28  Simon Josefsson  <jas@extundo.com>
70238
70239         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70240         #include's.
70241
70242 2006-07-28  Simon Josefsson  <jas@extundo.com>
70243
70244         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70245         #include's.
70246
70247 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70248
70249         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70250         setgid on directories only if they set these bits.
70251         * lib/modechange.h: Remove obsolete comment about masks.
70252
70253 2006-07-28  Eric Blake  <ebb9@byu.net>
70254
70255         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70256         macro expansion.
70257
70258 2006-07-28  Bruno Haible  <bruno@clisp.org>
70259
70260         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70261
70262 2006-07-28  Bruno Haible  <bruno@clisp.org>
70263
70264         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70265
70266 2006-07-28  Bruno Haible  <bruno@clisp.org>
70267
70268         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70269         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70270         Define fallbacks.
70271         Avoids link error on FreeBSD 4.x.
70272         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70273
70274         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70275         encoding.
70276         * lib/mbswidth.c (iswcntrl): Likewise.
70277
70278 2006-07-27  Bruno Haible  <bruno@clisp.org>
70279
70280         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70281         test.
70282
70283 2006-07-27  Bruno Haible  <bruno@clisp.org>
70284
70285         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70286         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70287         defined.
70288
70289 2006-07-26  Eric Blake  <ebb9@byu.net>
70290
70291         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70292
70293 2006-07-26  Eric Blake  <ebb9@byu.net>
70294
70295         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70296         like mingw that lack mkstemp.
70297         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70298         avoid compilation warning on mingw.
70299
70300 2006-07-26  Bruno Haible  <bruno@clisp.org>
70301
70302         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70303         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70304         INT_FAST*_MIN, INTPTR_MIN.
70305
70306 2006-07-25  Bruno Haible  <bruno@clisp.org>
70307
70308         * modules/version-etc (Depends-on): Add stdarg.
70309
70310 2006-07-25  Bruno Haible  <bruno@clisp.org>
70311
70312         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70313         complex commands.
70314
70315 2006-07-25  Bruno Haible  <bruno@clisp.org>
70316
70317         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70318         defined in <stdarg.h> or config.h.
70319
70320 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70321
70322         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70323         (gl_STDIO_SAFER): Remove.
70324
70325 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70326
70327         * MODULES.html.sh (File stream based Input/Output):
70328         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70329         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70330         * modules/fopen-safer, modules/tmpfile-safer: New files.
70331         * modules/stdio-safer: Remove.
70332
70333 2006-07-24  Bruno Haible  <bruno@clisp.org>
70334
70335         * modules/tmpdir: New file.
70336         * MODULES.html.sh (File system functions): Add it.
70337
70338 2006-07-24  Bruno Haible  <bruno@clisp.org>
70339
70340         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70341         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70342
70343 2006-07-24  Bruno Haible  <bruno@clisp.org>
70344
70345         * modules/clean-temp: New file.
70346
70347 2006-07-24  Bruno Haible  <bruno@clisp.org>
70348
70349         * m4/tmpdir.m4: New file, from GNU gettext.
70350
70351 2006-07-24  Bruno Haible  <bruno@clisp.org>
70352
70353         * lib/tmpdir.h: New file, from GNU gettext.
70354         * lib/tmpdir.c: New file, from GNU gettext.
70355
70356 2006-07-24  Bruno Haible  <bruno@clisp.org>
70357
70358         * lib/clean-temp.h: New file, from GNU gettext.
70359         * lib/clean-temp.c: New file, from GNU gettext.
70360
70361 2006-07-23  Eric Blake  <ebb9@byu.net>
70362
70363         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70364         (Depends-on): Add binary-io.
70365
70366 2006-07-23  Eric Blake  <ebb9@byu.net>
70367
70368         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70369
70370 2006-07-23  Eric Blake  <ebb9@byu.net>
70371
70372         * lib/tmpfile-safer.c: New file.
70373         * lib/stdio-safer.h (fopen_safer): Add prototype.
70374         * lib/stdio--.h (tmpfile): Make safer.
70375
70376 2006-07-23  Bruno Haible  <bruno@clisp.org>
70377
70378         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70379         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70380         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70381         gl_linked_remove_at): Use it.
70382
70383 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70384         and Simon Josefsson <jas@extundo.com>
70385
70386         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70387
70388         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70389
70390 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70391
70392         * modules/close-stream: New file.
70393         * modules/closeout (Description): Make it clear that it exits
70394         with a diagnostic on error.
70395         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70396         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70397
70398 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70399
70400         * m4/close-stream.m4: New file.
70401
70402 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70403
70404         * lib/close-stream.c, lib/close-stream.h: New files.
70405
70406 2006-07-22  Bruno Haible  <bruno@clisp.org>
70407
70408         Merge from GNU gettext 0.15.
70409
70410         2006-05-01  Bruno Haible  <bruno@clisp.org>
70411
70412                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70413
70414         2006-07-22  Bruno Haible  <bruno@clisp.org>
70415
70416                 * modules/javaversion: New file.
70417                 * MODULES.html.sh (Java): Add javaversion.
70418
70419         2006-03-12  Bruno Haible  <bruno@clisp.org>
70420
70421                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70422
70423         2005-12-04  Bruno Haible  <bruno@clisp.org>
70424
70425                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70426                 (untested).
70427
70428         2006-06-21  Bruno Haible  <bruno@clisp.org>
70429
70430                 Avoid warnings from recent versions of mcs.
70431                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70432                 -o, -L, -r any more. Use options documented since mcs-1.0
70433                 instead. Similarly for -g.
70434
70435         2005-12-04  Bruno Haible  <bruno@clisp.org>
70436
70437                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70438                 .resources, not .resource.
70439
70440         2005-07-09  Bruno Haible  <bruno@clisp.org>
70441
70442                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70443                 add a .dll suffix.
70444                 Reported by Mark Junker <mjscod@gmx.de>.
70445
70446         2006-07-22  Bruno Haible  <bruno@clisp.org>
70447
70448                 * modules/gettext: Upgrade to gettext-0.15.
70449                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70450                 m4/visibility.m4.
70451                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70452
70453 2006-07-22  Bruno Haible  <bruno@clisp.org>
70454
70455         Merge from GNU gettext 0.15.
70456
70457         2006-03-25  Bruno Haible  <bruno@clisp.org>
70458
70459                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70460
70461         2006-07-21  Bruno Haible  <bruno@clisp.org>
70462
70463                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70464                 "1.1".
70465
70466         2006-05-09  Bruno Haible  <bruno@clisp.org>
70467
70468                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70469                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70470                 for the conftestver execution.
70471
70472         2006-05-01  Bruno Haible  <bruno@clisp.org>
70473
70474                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70475                 optional target-version argument. Verify that the compiler
70476                 groks source of the specified source-version, or add -source
70477                 option as necessary. Verify that the compiler produces
70478                 bytecode in the specified target-version, or add -target and
70479                 -source options as necessary. Make the result of the test
70480                 available as variable CONF_JAVAC. Also log error output in
70481                 config.log.
70482
70483         2006-03-11  Bruno Haible  <bruno@clisp.org>
70484
70485                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70486
70487         2006-05-09  Bruno Haible  <bruno@clisp.org>
70488
70489                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70490                 CLASSPATH_SEPARATOR to a semicolon.
70491
70492         2006-03-12  Bruno Haible  <bruno@clisp.org>
70493
70494                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70495                 available as variable CONF_JAVA, for subsequent autoconf
70496                 tests. Also log error output in config.log.
70497
70498         2006-07-19  Bruno Haible  <bruno@clisp.org>
70499
70500                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70501                 that getline works on glibc2 systems. Needed to avoid trouble
70502                 in relocatable.c.
70503                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70504
70505         2005-12-04  Bruno Haible  <bruno@clisp.org>
70506
70507                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70508                 launcher (untested).
70509
70510         2005-12-04  Bruno Haible  <bruno@clisp.org>
70511
70512                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70513
70514         2006-07-22  Bruno Haible  <bruno@clisp.org>
70515
70516                 * gettext.m4: Update from GNU gettext-0.15.
70517                 * nls.m4: Likewise.
70518                 * po.m4: Likewise.
70519                 * inttypes-pri.m4: Likewise.
70520                 * inttypes-h.m4: Renamed from inttypes.m4.
70521                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70522
70523 2006-07-22  Bruno Haible  <bruno@clisp.org>
70524
70525         Merge from GNU gettext 0.15.
70526
70527         2005-07-05  Bruno Haible  <bruno@clisp.org>
70528
70529                 * printf-args.c (printf_fetchargs): Work around broken
70530                 definition of wint_t on mingw.
70531
70532         2005-02-12  Bruno Haible  <bruno@clisp.org>
70533
70534                 * xallocsa.h: Add extern "C" for C++.
70535
70536         2006-05-17  Bruno Haible  <bruno@clisp.org>
70537
70538                 Cygwin portability.
70539                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70540
70541         2006-04-30  Bruno Haible  <bruno@clisp.org>
70542
70543                 * progreloc.c: Include <mach-o/dyld.h> if available.
70544                 (find_executable): Use _NSGetExecutablePath when possible.
70545
70546         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70547
70548                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70549                 function.
70550
70551         2005-12-29  Bruno Haible  <bruno@clisp.org>
70552
70553                 * progreloc.c (set_program_name_and_installdir): Fix
70554                 compilation error.
70555
70556         2005-12-04  Bruno Haible  <bruno@clisp.org>
70557
70558                 Cygwin portability.
70559                 * progreloc.c: Include <windows.h> also on Cygwin.
70560                 (find_executable): Add support for Cygwin.
70561                 (set_program_name_and_installdir): Handle also platforms with
70562                 nonempty EXEEXT.
70563
70564         2006-07-11  Bruno Haible  <bruno@clisp.org>
70565
70566                 * javacomp.c: Fix a comment.
70567                 Reported by Jim Meyering.
70568
70569         2006-04-30  Bruno Haible  <bruno@clisp.org>
70570
70571                 * javacomp.h (compile_java_class): Add source_version,
70572                 target_version arguments.
70573                 * javacomp.c: Rewritten to choose only a compiler that
70574                 respects the specified source_version and target_version.
70575
70576         2006-06-27  Bruno Haible  <bruno@clisp.org>
70577
70578                 Assume correct S_ISDIR macro.
70579                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70580
70581         2006-07-22  Bruno Haible  <bruno@clisp.org>
70582
70583                 * javaversion.h: New file, from GNU gettext.
70584                 * javaversion.c: New file, from GNU gettext.
70585                 * javaversion.java: New file, from GNU gettext.
70586                 * javaversion.class: New file, from GNU gettext.
70587
70588         2006-05-17  Bruno Haible  <bruno@clisp.org>
70589
70590                 Cygwin portability.
70591                 * javaexec.c (execute_java_class): Test for jview program
70592                 also on Cygwin.
70593
70594         2006-04-09  Bruno Haible  <bruno@clisp.org>
70595
70596                 * fatal-signal.c: Don't include string.h.
70597                 (at_fatal_signal): Use a copying loop instead of memcpy.
70598
70599         2005-12-04  Bruno Haible  <bruno@clisp.org>
70600
70601                 * csharpexec.c: Add support for 'clix' launcher (untested).
70602                 (execute_csharp_using_sscli): New function.
70603                 (execute_csharp_program): Call it.
70604
70605         2006-06-21  Bruno Haible  <bruno@clisp.org>
70606
70607                 Avoid warnings from recent versions of mcs.
70608                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70609                 -o, -L, -r any more. Use options documented since mcs-1.0
70610                 instead. Similarly for -g.
70611
70612         2005-07-09  Bruno Haible  <bruno@clisp.org>
70613
70614                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70615                 add a .dll suffix.
70616                 Reported by Mark Junker <mjscod@gmx.de>.
70617
70618         2006-06-17  Bruno Haible  <bruno@clisp.org>
70619
70620                 * config.charset: Update for NetBSD 3.0.
70621
70622         2006-05-17  Bruno Haible  <bruno@clisp.org>
70623
70624                 Cygwin portability.
70625                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70626
70627         2006-05-16  Bruno Haible  <bruno@clisp.org>
70628
70629                 * localcharset.c [CYGWIN]: Include <windows.h>.
70630                 (get_charset_aliases): For Cygwin, return the same CPxxx
70631                 aliases list as under WIN32.
70632                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70633                 the environment variables. Fall back to GetACP().
70634
70635         2006-04-05  Bruno Haible  <bruno@clisp.org>
70636
70637                 * config.charset: Update Juan Manuel Guerrero's address.
70638
70639         2005-02-12  Bruno Haible  <bruno@clisp.org>
70640
70641                 * allocsa.h: Add extern "C" for C++.
70642
70643         2005-02-10  Bruno Haible  <bruno@clisp.org>
70644
70645                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70646                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70647
70648         2006-07-22  Bruno Haible  <bruno@clisp.org>
70649
70650                 * gettext.h: Update to GNU gettext-0.15.
70651
70652 2006-07-22  Bruno Haible  <bruno@clisp.org>
70653
70654         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70655         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70656         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70657
70658 2006-07-21  Eric Blake  <ebb9@byu.net>
70659
70660         * modules/stdlib-safer: New file.
70661         * MODULES.html.sh (File stream based Input/Output): Add
70662         stdlib-safer.
70663
70664 2006-07-21  Eric Blake  <ebb9@byu.net>
70665
70666         * lib/stdlib-safer.h: New file from coreutils, required by
70667         stdlib--.h.
70668
70669 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70670
70671         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70672
70673 2006-07-20  Bruno Haible  <bruno@clisp.org>
70674
70675         * gnulib-tool: Recognize new option --assume-autoconf.
70676         (autoconf_minversion): New variable.
70677         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70678
70679 2006-07-20  Bruno Haible  <bruno@clisp.org>
70680
70681         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70682
70683 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70684
70685         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70686         Reindent and repaginate.
70687
70688 2006-07-19  Derek Price  <derek@ximbiot.com>
70689
70690         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70691         Correct grammar.
70692
70693 2006-07-17  Bruno Haible  <bruno@clisp.org>
70694
70695         * modules/list: New file.
70696         * modules/array-list: New file.
70697         * modules/carray-list, modules/carray-list-tests: New files.
70698         * modules/linked-list, modules/linked-list-tests: New files.
70699         * modules/avltree-list, modules/avltree-list-tests: New files.
70700         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70701         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70702         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70703         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70704         * modules/oset: New file.
70705         * modules/array-oset: New file.
70706         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70707         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70708         * tests/test-carray_list.c: New file.
70709         * tests/test-linked_list.c: New file.
70710         * tests/test-avltree_list.c: New file.
70711         * tests/test-rbtree_list.c: New file.
70712         * tests/test-linkedhash_list.c: New file.
70713         * tests/test-avltreehash_list.c: New file.
70714         * tests/test-rbtreehash_list.c: New file.
70715         * tests/test-avltree_oset.c: New file.
70716         * tests/test-rbtree_oset.c: New file.
70717         * MODULES.html.sh (Container data structures): New section.
70718
70719 2006-07-17  Bruno Haible  <bruno@clisp.org>
70720
70721         * m4/gl_list.m4: New file.
70722
70723 2006-07-17  Bruno Haible  <bruno@clisp.org>
70724
70725         * lib/gl_list.h: New file.
70726         * lib/gl_list.c: New file.
70727         * lib/gl_array_list.h: New file.
70728         * lib/gl_array_list.c: New file.
70729         * lib/gl_carray_list.h: New file.
70730         * lib/gl_carray_list.c: New file.
70731         * lib/gl_linked_list.h: New file.
70732         * lib/gl_linked_list.c: New file.
70733         * lib/gl_anylinked_list1.h: New file.
70734         * lib/gl_anylinked_list2.h: New file.
70735         * lib/gl_avltree_list.h: New file.
70736         * lib/gl_avltree_list.c: New file.
70737         * lib/gl_anyavltree_list1.h: New file.
70738         * lib/gl_anyavltree_list2.h: New file.
70739         * lib/gl_rbtree_list.h: New file.
70740         * lib/gl_rbtree_list.c: New file.
70741         * lib/gl_anyrbtree_list1.h: New file.
70742         * lib/gl_anyrbtree_list2.h: New file.
70743         * lib/gl_anytree_list1.h: New file.
70744         * lib/gl_anytree_list2.h: New file.
70745         * lib/gl_linkedhash_list.h: New file.
70746         * lib/gl_linkedhash_list.c: New file.
70747         * lib/gl_anyhash_list1.h: New file.
70748         * lib/gl_anyhash_list2.h: New file.
70749         * lib/gl_avltreehash_list.h: New file.
70750         * lib/gl_avltreehash_list.c: New file.
70751         * lib/gl_rbtreehash_list.h: New file.
70752         * lib/gl_rbtreehash_list.c: New file.
70753         * lib/gl_anytreehash_list1.h: New file.
70754         * lib/gl_anytreehash_list2.h: New file.
70755
70756         * lib/gl_oset.h: New file.
70757         * lib/gl_oset.c: New file.
70758         * lib/gl_array_oset.h: New file.
70759         * lib/gl_array_oset.c: New file.
70760         * lib/gl_avltree_oset.h: New file.
70761         * lib/gl_avltree_oset.c: New file.
70762         * lib/gl_rbtree_oset.h: New file.
70763         * lib/gl_rbtree_oset.c: New file.
70764         * lib/gl_anytree_oset.h: New file.
70765
70766 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70767
70768         * m4/mkancesdirs.m4: New file.
70769         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70770         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70771         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70772         it.
70773
70774 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70775
70776         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70777         * lib/mkancesdirs.h: New files.
70778         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70779         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70780         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70781         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70782         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70783         callers changed.  Revamp internals significantly, by not
70784         attempting to create directories that are temporarily more
70785         permissive than the final results.  Do not attempt to use
70786         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70787         This removes some race conditions, fixes some bugs, and simplifies
70788         things.  Use new dirchownmod function to do owner and mode changes.
70789         * lib/mkdir-p.h: Likewise.
70790         * lib/modechange.c (octal_to_mode): New function.
70791         (struct mode_change): New member mentioned.
70792         (make_node_op_equals): New arg mentioned.  All callers changed.
70793         (mode_compile): Keep track of which mode bits the user has explicitly
70794         mentioned.
70795         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70796         New arg PMODE_BITS, to keep track of which mode bits the user
70797         mentioned; it treats S_ISUID and S_ISGID speciall.
70798         All callers changed.
70799         * lib/modechange.h: Likewise.
70800
70801 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70802
70803         * MODULES.html.sh: Add mkancestors.
70804         * modules/mkancesdirs: New module.
70805         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70806         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70807         The chdir-safer and afs files are now orphans; I'll remove them
70808         unless someone speaks up.
70809         Add lib/dirchownmod.c, lib/dirchownmod.h.
70810         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70811         Add lchown, mkancesdirs.
70812         (Maintainer): Add self.
70813
70814 2006-07-15  Karl Berry  <karl@gnu.org>
70815
70816         * gnulib-tool: help message wording/arrangement.
70817
70818 2006-07-14  Simon Josefsson  <jas@extundo.com>
70819
70820         * doc/gnulib.texi (Libtool and Windows): New section.
70821
70822 2006-07-12  Simon Josefsson  <jas@extundo.com>
70823
70824         * modules/gendocs (License): Fix license, approved by Karl.
70825
70826 2006-07-12  Eric Blake  <ebb9@byu.net>
70827
70828         * MODULES.html.sh: Add gendocs.
70829
70830 2006-07-11  Eric Blake  <ebb9@byu.net>
70831
70832         * modules/fdl: New module, to install doc/fdl.texi.
70833         * MODULES.html.sh: Add new section for documentation modules.
70834         * gnulib-tool: Avoid space-tab.
70835         (--doc-base): New option, to manage files from doc.
70836
70837 2006-07-11  Eric Blake  <ebb9@byu.net>
70838
70839         * m4/absolute-header.m4: Fix comments to match recent change.
70840
70841 2006-07-11  Eric Blake  <ebb9@byu.net>
70842
70843         * gnulib-tool: List --doc-base before --tests-base.
70844
70845 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70846
70847         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70848
70849 2006-07-11  Bruno Haible  <bruno@clisp.org>
70850
70851         * README: Mention where to put documentation.
70852
70853 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70854
70855         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70856
70857 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70858
70859         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70860         to stdint.m4.
70861
70862 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70863
70864         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70865         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70866         "no/such/file/stdint.h" when there is no such file, so that
70867         the resulting C code can be parsed by dodgy compilers.
70868         Problems reported by Bob Proulx.
70869
70870 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70871
70872         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70873         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70874         macros into the GNU _D_EXACT_NAMLEN.
70875         * lib/savedir.c:  Likewise.
70876         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70877
70878 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70879         and Paul Eggert  <eggert@cs.ucla.edu>
70880
70881         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70882         * m4/savedir.m4:
70883         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70884         macros into the GNU _D_EXACT_NAMLEN.
70885
70886 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70887
70888         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70889         around the absolute name, to work around a problem with the HP-UX
70890         11.23 native C compiler, reported by Bob Proulx.
70891
70892 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70893
70894         * doc/maintain.texi, make-stds.texi: Sync from
70895         <http://savannah.gnu.org/projects/gnustandards>.
70896
70897 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70898
70899         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70900
70901 2006-07-09  Jim Meyering  <jim@meyering.net>
70902
70903         * m4/glob.m4: Remove a doubled word in a comment.
70904
70905 2006-07-09  Jim Meyering  <jim@meyering.net>
70906
70907         * lib/argp-pv.c: Remove a doubled word in a comment.
70908         * lib/check-version.c (check_version): Likewise.
70909         * lib/javacomp.c (compile_java_class): Likewise.
70910
70911 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70912
70913         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70914         for the benefit of people using Autoconf 2.60.  If you want to
70915         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70916         (or m4/onceonly.m4, if pre-2.57) manually.
70917
70918 2006-07-08  Jim Meyering  <jim@meyering.net>
70919
70920         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70921         comment.
70922         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70923         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70924         comment.
70925
70926 2006-07-08  Jim Meyering  <jim@meyering.net>
70927
70928         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70929
70930 2006-07-07  Simon Josefsson  <jas@extundo.com>
70931
70932         * tests/test-crc.c: Change expected crc value, the test vector
70933         were probably computed using the old broken crc.c?
70934
70935 2006-07-06  Simon Josefsson  <jas@extundo.com>
70936
70937         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70938         now the canonical place for the M4 file).
70939
70940         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70941         from the sys_socket dependency now.
70942
70943         * modules/inet_pton (Files): Ditto.
70944
70945         * modules/inet_ntop (Files): Ditto.
70946
70947 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70948
70949         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70950         not gl_PREREQ_GETUSERSHELL.
70951
70952 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70953
70954         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70955         with only one argument, for Autoconf 2.60.
70956         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70957         expand to nothing, so add a shell command to avoid syntax error.
70958         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70959
70960 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70961
70962         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70963
70964 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70965
70966         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70967         no longer needed.  Check for isblank decl.
70968         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70969         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70970         of existence.
70971
70972 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70973
70974         * lib/getloadavg.c: Use __VMS, not VMS.
70975         * lib/getopt.c: Likewise.
70976         * lib/getpagesize.h: Likewise.
70977         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70978         and probably does not work.
70979
70980 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70981
70982         * lib/.cppi-disable: Add wcwidth.
70983         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70984         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70985         (ISGRAPH): Remove.  All uses changed to isgraph.
70986         (FOLD) [!defined _LIBC]: Remove special case.
70987         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70988         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70989         HAVE_ISBLANK.
70990         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70991         case.
70992
70993 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70994
70995         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70996         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70997         brackets.  Other minor changes to suppress some compiler
70998         warnings.
70999
71000 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71001         and Paul Eggert  <eggert@cs.ucla.edu>
71002
71003         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71004         of invoking obsolescent AC_HEADER_DIRENT macro.
71005         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71006         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71007         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71008         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71009         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71010         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71011         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71012         * m4/readdir.m4: Remove; no longer needed.
71013
71014 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71015         and Paul Eggert  <eggert@cs.ucla.edu>
71016
71017         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71018         Don't worry about this obsolete case any more.
71019         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71020         directories.
71021         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71022         worry about this obsolete case any more.
71023         * lib/fts.c: Likewise.
71024         * lib/getcwd.c: Likewise.
71025         * lib/glob.h: Likewise.
71026         * lib/savedir.c: Likewise.
71027
71028 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71029
71030         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71031         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71032         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71033         needed.
71034         All uses removed.
71035         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71036         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71037         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71038         needed.
71039         * m4/getdate.m4 (gl_GETDATE): Likewise.
71040         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71041         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71042         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71043         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71044         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71045         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71046         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71047         needed.
71048
71049 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71050
71051         * lib/memcasecmp.c: Include <limits.h>.
71052         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71053         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71054         Don't assume isdigit succeeds only on '0' through '9'.
71055
71056 2006-07-05  Eric Blake  <ebb9@byu.net>
71057
71058         * modules/getaddrinfo (Depends-on): Add snprintf.
71059
71060 2006-07-05  Eric Blake  <ebb9@byu.net>
71061
71062         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71063         to avoid 'header present but could not be compiled' on cygwin.
71064
71065 2006-07-05  Eric Blake  <ebb9@byu.net>
71066
71067         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71068         missing from netdb.h.
71069         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71070
71071 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71072
71073         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71074         no longer needed.
71075         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71076         * m4/getdate.m4 (gl_GETDATE): Likewise.
71077         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71078         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71079         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71080         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71081         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71082
71083 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71084
71085         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71086         All uses of is_space replaced by isspace.
71087         * lib/exit.h: Don't talk about STDC_HEADERS.
71088         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71089         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71090         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71091         replaced by isprint etc.
71092         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71093         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71094         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71095         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71096         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71097         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71098
71099 2006-07-05  Bruno Haible  <bruno@clisp.org>
71100
71101         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71102         the function exists, before testing against AIX.
71103         Reported by Martin Lambers <marlam@marlam.de>.
71104
71105 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71106
71107         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71108         From Mark D. Baushke.
71109
71110 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71111
71112         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71113         to the absolute name, not just one, to bypass Sun C 5.8's
71114         "warning: #include of /usr/include/... may be non-portable".
71115
71116 2006-07-04  Eric Blake  <ebb9@byu.net>
71117
71118         * modules/dirname-tests: New test module.
71119         * tests/test-dirname.c: New file, replacing dirname.c
71120         TEST_DIRNAME section that was recently deleted.
71121
71122 2006-07-04  Bruno Haible  <bruno@clisp.org>
71123
71124         Assume ANSI C header files and <ctype.h> functions.
71125         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71126         (mbsnwidth): Use isprint, iscntrl instead.
71127
71128 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71129
71130         Merge from coreutils.
71131         * MODULES.html.sh: Add xstrtold.
71132         * modules/xstrtold: New file.
71133         * modules/cycle-check (Files): Add lib/same-inode.h.
71134         * modules/dirname (Files): Add m4/double-slash-root.m4.
71135         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71136         * modules/mkdir-p (Files): Add lib/same-inode.h.
71137         * modules/same (Files): Add lib/same-inode.h.
71138
71139 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71140
71141         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71142         This is to keep the terminology clean; POSIX talks about
71143         "absolute pathnames", not "full pathnames", but the GNU
71144         Coding Standards say to use "path" for something else;
71145         so use "absolute" to keep both sides happy.
71146         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71147         Set gl_absolute_header, not gl_full_header_path.
71148         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71149         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71150         All uses changed.
71151
71152         Merge from coreutils.
71153
71154         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71155
71156         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71157         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71158         want to require the building of c-strtod.o.
71159         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71160         needs -lm directly.
71161         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71162
71163         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71164
71165         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71166         --as-needed option if available.  Problem reported by Albert Chin in
71167         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71168         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71169         cc merely issues a bunch of annoying warnings for --as-needed
71170         (this problem was reported by Bob Proulx).  Also, try linking with
71171         -lm to detect a bug in binutils 2.16 (this problem was reported
71172         by Ralf Wildenhues).
71173
71174         2006-06-18  Jim Meyering  <jim@meyering.net>
71175
71176         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71177         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71178         macro.
71179         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71180         also check for glibc-2.4's abort-inducing bug.
71181
71182         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71183         Low-probability clean-up should be to use rmdir to get rid of
71184         the just-created directory, not unlink.
71185
71186         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71187         configure fail, and request a bug report to inform us about it.
71188         Add a comment that, barring reports to the contrary, in 2007 we'll
71189         assume ftruncate is universally available.
71190
71191         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71192
71193         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71194
71195         2006-03-12  Jim Meyering  <jim@meyering.net>
71196
71197         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71198         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71199         * m4/same.m4 (gl_SAME): Likewise.
71200         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71201
71202         2006-03-11  Eric Blake  <ebb9@byu.net>
71203
71204         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71205         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71206         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71207         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71208
71209 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71210
71211         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71212         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71213         reported by Mark D. Baushke, one in
71214         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71215
71216         Merge from coreutils.
71217
71218         * lib/.cppi-disable: Add stdint_.h.
71219         * lib/.cvsignore: Add stdint.h.
71220
71221         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71222
71223         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71224         both double and long double versions.
71225         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71226         * lib/xstrtold.c: New file.
71227         * lib/xstrtod.h (xstrtold): New decl.
71228
71229         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71230
71231         * lib/filemode.c (setst): Remove.
71232         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71233         (arguably) clearer, and the generated code is a bit smaller on my
71234         Debian GNU/Linux stable x86 host.
71235
71236         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71237
71238         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71239         Assume that filemode.h includes sys/types.h and sys/stat.h.
71240         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71241         (ftypelet): Reorder to put common cases first, for efficiency.
71242         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71243         to do 'M'.
71244         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71245         of 10, for compatibility with FreeBSD.  All callers changed.
71246         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71247         types that can't be deduced solely from st_mode.  First arg is now a
71248         const pointer.
71249         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71250         (strmode): Renamed from mode_string.
71251         (filemodestring): New decl.
71252         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71253         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71254         needed.
71255         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71256
71257         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71258
71259         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71260         fsusage.h now does that.  Include fsusage.h first, to test interface.
71261         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71262         at most one method (the old code could have generated decls that
71263         didn't conform to C89, not that this was ever exercised).
71264         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71265
71266         2006-03-19  Jim Meyering  <jim@meyering.net>
71267
71268         Work even in a chroot where d_ino values for entries in "/"
71269         don't match the stat.st_ino values for the same names.
71270         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71271         number, iterate through all entries again, using lstat instead.
71272         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71273         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71274
71275         * lib/getcwd.c (__getcwd): Clarify a comment.
71276         Use memcpy in place of a call to strcpy.
71277
71278         2006-03-12  Jim Meyering  <jim@meyering.net>
71279
71280         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71281         matches that of the current directory (which we're about to chdir ".."
71282         out of), then save the dev-ino of the parent, instead.
71283
71284         * lib/same-inode.h (SAME_INODE): New file/macro.
71285         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71286         Include "same-inode.h", instead.
71287         * lib/same.c: Likewise.
71288         * lib/cycle-check.h: Include "same-inode.h".
71289         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71290         * lib/cycle-check.c (SAME_INODE): Remove definition.
71291         * lib/root-dev-ino.h: Include "same-inode.h".
71292
71293         2006-03-11  Eric Blake  <ebb9@byu.net>
71294
71295         * lib/same.c (same_name): s/base_name/last_component/
71296         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71297         * lib/filenamecat.c (file_name_concat): Likewise.
71298
71299         2006-03-11  Eric Blake  <ebb9@byu.net>,
71300                     Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71303         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71304         drive prefix.
71305         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71306         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71307         (last_component): New method.
71308         * lib/dirname.c (dir_len): Determine when drive letters need a
71309         subsequent slash.  Preserve // when it is special.
71310         (dir_name): Don't append dot when drive letter is absolute.
71311         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71312         * lib/basename.c (base_name): New semantics - malloc the result.
71313         Preserve // when it is special.  Preserve relative files that look
71314         like drive letters.
71315         (base_len): Preserve // when it is special.
71316         (last_component): New method, similar to old base_name semantics.
71317         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71318         base_name.  Strip redundant slashes from ///.
71319
71320 2006-07-03  Jim Meyering  <jim@meyering.net>
71321
71322         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71323         macro is used before the first cycle_check call.
71324
71325 2006-07-03  Eric Blake  <ebb9@byu.net>
71326
71327         * modules/dirname (Depends-on): Add xstrndup.
71328
71329 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71330
71331         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71332         test cases, so that config.log is a bit easier to follow.
71333
71334 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71335
71336         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71337         both are 64 bits, since this seems to be the tradition, and this
71338         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71339         we ever run into a host that prefers long long to long in this
71340         case, we'll need another configure-time test.  Problem reported by
71341         Jim Meyering.
71342
71343 2006-07-02  Eric Blake  <ebb9@byu.net>
71344
71345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71346
71347 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71348
71349         * modules/inttypes (Depends-on): No longer depends on stdint.
71350         * modules/stdint (Description): Say more about assumptions.
71351         Say that the fast types might differ.  Say macros are used.
71352         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71353         (Makefile.am): Revise list of substituted symbols to match
71354         new stdint.m4.
71355         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71356         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71357         * tests/test-stdint.c (verify_same_types)
71358         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71359         the code conforms to C99/C89.
71360         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71361         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71362
71363 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71364
71365         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71366         but fix a bug, by requiring at least 64 bits.
71367         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71368         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71369         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71370         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71371
71372         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71373         changes.  Make 2.59 a prerequisite.  Check and substitute for
71374         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71375         inttypes.h.  Do not use special include files; just use the
71376         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71377         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71378         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71379         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71380         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71381         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71382         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71383         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71384         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71385         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71386         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71387         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71388         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71389         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71390         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71391         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71392         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71393         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71394         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71395         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71396         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71397         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71398         not check for things that C99 does not require, e.g., int8_t.  If
71399         a test isn't needed unless <stdint.h> isn't working, and is
71400         unlikely to be needed for any other reason, then don't do it
71401         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71402         size_t, since we assume C89 freestanding at least.  Do not check
71403         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71404         the right thing even if the types are not defined.  Instead use:
71405         (gl_STDINT_TYPE_PROPERTIES): New macro.
71406         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71407         testing whether <sys/types.h> clashes, as Autoconf does this for
71408         us now.  All uses removed.
71409         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71410         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71411         (gl_CHECK_TYPE_SAME):
71412         Remove; no longer needed.
71413         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71414         exists, since we'll return 0 anyway in that case.
71415         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71416
71417 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71418
71419         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71420         possible collision with system files.
71421         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71422         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71423         WCHAR_MIN and WCHAR_MAX in this case.
71424         (<stddef.h>): Do not include; no longer needed.
71425         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71426         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71427         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71428         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71429         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71430         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71431         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71432         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71433         !defined(__c99))]: Include in this case too, since it's harmless
71434         now.
71435         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71436         dangerous to do so.
71437         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71438         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71439         (_STDINT_MIN, _STDINT_MAX): New macros.
71440         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71441         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71442         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71443         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71444         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71445         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71446         macros, not typedefs; this simplifies things quite a bit.
71447         Use long int for all types narrower than int64_t.
71448         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71449         Define in terms of long long int or int64_t or long int,
71450         not int64_t or int32_t.  This saves some compile-time testing.
71451         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71452         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71453         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71454         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71455         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71456         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71457         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71458         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71459         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71460         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71461         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71462         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71463         undef any previous version and define our own version, for
71464         simplicity and consistency with the new macros for types.
71465         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71466         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71467         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71468         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71469         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71470         @WINT_T_SUFFIX@ to keep things simple here.
71471         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71472         Simplify by assuming typical 8/16/32/64 host, since we're
71473         already doing that elsewhere anyway.
71474         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71475         and assume long long int is 64 bits if available.  This
71476         speeds up 'configure'.
71477
71478 2006-07-01  Eric Blake  <ebb9@byu.net>
71479
71480         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71481         Reported by Andreas Buening.
71482
71483 2006-07-01  Eric Blake  <ebb9@byu.net>
71484
71485         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71486
71487 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71488
71489         * lib/getaddrinfo.c: fixed typo
71490
71491 2006-06-29  Jim Meyering  <jim@meyering.net>
71492
71493         * modules/strftime (Maintainer): Add my name, since with the
71494         FPRINTFTIME changes strftime.c has forked from glibc.
71495
71496 2006-06-29  Eric Blake  <ebb9@byu.net>
71497
71498         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71499
71500 2006-06-29  Eric Blake  <ebb9@byu.net>
71501
71502         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71503
71504 2006-06-29  Eric Blake  <ebb9@byu.net>
71505
71506         * lib/stat_.h: New file.
71507
71508 2006-06-29  Eric Blake  <ebb9@byu.net>
71509
71510         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71511         unused static function.
71512
71513 2006-06-29  Eric Blake  <ebb9@byu.net>
71514
71515         * doc/functions.texi (Function Portability): Document missing lstat
71516         on mingw.
71517
71518 2006-06-29  Eric Blake  <ebb9@byu.net>
71519
71520         * MODULES.html.sh: Add sys_stat.
71521         * modules/sys_stat: New module.
71522         * modules/mkstemp (Depends-on): Add sys_stat.
71523
71524 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71525
71526         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71527
71528 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71529
71530         * m4/c-bs-a.m4: Removed.
71531
71532 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71533
71534         * lib/strftime.c: Assume strftime() exists.
71535
71536 2006-06-29  Derek Price  <derek@ximbiot.com>
71537
71538         * modules/c-bs-a: Removed - \a is C89.
71539         * MODULES.html.sh: Remove c-bs-a.
71540
71541 2006-06-29  Bruno Haible  <bruno@clisp.org>
71542
71543         * modules/wcwidth (License): Change to LGPL.
71544
71545 2006-06-28  Simon Josefsson  <jas@extundo.com>
71546
71547         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71548         on _WIN32.
71549
71550         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71551         getnameinfo.
71552
71553 2006-06-28  Simon Josefsson  <jas@extundo.com>
71554
71555         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71556
71557 2006-06-28  Simon Josefsson  <jas@extundo.com>
71558
71559         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71560         functions there.  It will succeed on Windows XP, but on Windows
71561         2000 and (presumably) earlier, it will fail, and use the internal
71562         re-implementation.
71563         (use_win32_p): New function.
71564         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71565         Support AI_NUMERICSERV to disable getservbyname.
71566         (getnameinfo): New function, only supports
71567         NI_NUMERICHOST|NI_NUMERICSERV for now.
71568
71569         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71570         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71571         getnameinfo.
71572
71573 2006-06-28  Eric Blake  <ebb9@byu.net>
71574
71575         * modules/wcwidth: New file.
71576         * modules/mbchar (Depends-on): Add wcwidth.
71577         * modules/mbswidth (Depends-on): Add wcwidth.
71578         * MODULES.html.sh: Add wcwidth.
71579
71580 2006-06-28  Eric Blake  <ebb9@byu.net>
71581
71582         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71584
71585 2006-06-28  Eric Blake  <ebb9@byu.net>
71586
71587         * lib/xvasprintf.h: Fix comments.
71588
71589 2006-06-28  Eric Blake  <ebb9@byu.net>
71590
71591         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71592         * lib/mbswidth.c (wcwidth): Move from here...
71593         * lib/wcwidth.h: ...to this new file.
71594
71595 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71596
71597         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71598
71599         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71600         it's obsolete.
71601         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71602
71603 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71604
71605         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71606         Autoconf 2.60 says this stuff was obsolete.
71607
71608 2006-06-28  Bruno Haible  <bruno@clisp.org>
71609
71610         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71611
71612 2006-06-28  Bruno Haible  <bruno@clisp.org>
71613
71614         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71615         gt_TYPE_WCHAR_T.
71616
71617 2006-06-28  Bruno Haible  <bruno@clisp.org>
71618
71619         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71620         declaration for wcwidth.
71621         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71622
71623 2006-06-28  Bruno Haible  <bruno@clisp.org>
71624
71625         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71626         (mkdir): Define using _mkdir.
71627
71628 2006-06-28  Bruno Haible  <bruno@clisp.org>
71629
71630         * lib/getaddrinfo.h: Fix POSIX URL.
71631         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71632         _WIN32.
71633         (use_win32_p): Make static.
71634         (getaddrinfo): Reject service name if it is empty or does not consist
71635         solely of decimal digits, or if its value is > 65535.
71636         (getnameinfo): Remove useless casts.
71637
71638 2006-06-27  Simon Josefsson  <jas@extundo.com>
71639
71640         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71641         Eggert and Martin Lambers.
71642
71643 2006-06-27  Simon Josefsson  <jas@extundo.com>
71644
71645         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71646         Eggert and Martin Lambers.
71647
71648 2006-06-27  Bruno Haible  <bruno@clisp.org>
71649
71650         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71651         result to 0, not to empty.
71652         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71653
71654 2006-06-27  Bruno Haible  <bruno@clisp.org>
71655
71656         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71657
71658 2006-06-26  Simon Josefsson  <jas@extundo.com>
71659
71660         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71661         present.
71662
71663 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71664
71665         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71666         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71667         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71668
71669 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71670
71671         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71672
71673 2006-06-26  Bruno Haible  <bruno@clisp.org>
71674
71675         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71676
71677 2006-06-26  Bruno Haible  <bruno@clisp.org>
71678
71679         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71680
71681 2006-06-26  Bruno Haible  <bruno@clisp.org>
71682
71683         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71684         SGI C compiler in pre-C99 mode.
71685         Suggested by Mark D. Baushke and Larry Jones.
71686
71687 2006-06-26  Bruno Haible  <bruno@clisp.org>
71688
71689         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71690         WCHAR_MAX.
71691         Reported by Mark D. Baushke and Larry Jones.
71692
71693 2006-06-26  Bruno Haible  <bruno@clisp.org>
71694
71695         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71696         in pre-C99 mode.
71697         Suggested by Mark D. Baushke and Larry Jones.
71698
71699 2006-06-23  Simon Josefsson  <jas@extundo.com>
71700             Bruno Haible  <bruno@clisp.org>
71701
71702         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71703         Emit mostlyclean-local rule.
71704         (func_emit_tests_Makefile_am): Likewise.
71705         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71706
71707 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71708
71709         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71710
71711 2006-06-23  Bruno Haible  <bruno@clisp.org>
71712
71713         * tests/test-stdint.c: Update to match ISO C 99 Technical
71714         Corrigendum 1.
71715
71716 2006-06-23  Bruno Haible  <bruno@clisp.org>
71717
71718         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71719
71720 2006-06-23  Bruno Haible  <bruno@clisp.org>
71721
71722         * lib/stdint_.h: Treat IRIX like OpenBSD.
71723
71724 2006-06-23  Bruno Haible  <bruno@clisp.org>
71725
71726         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71727         ISO C 99 Technical Corrigendum 1.
71728
71729 2006-06-22  Simon Josefsson  <jas@extundo.com>
71730
71731         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71732         MinGW.
71733
71734 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71735
71736         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71737         needed.  Some compiler complained about some of them.  Problem reported
71738         by Larry Jones in
71739         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71740
71741 2006-06-21  Simon Josefsson  <jas@extundo.com>
71742
71743         * tests/test-getaddrinfo.c: New file.
71744
71745         * modules/getaddrinfo-tests: New file.
71746
71747         * MODULES.html.sh: Add inet_pton.
71748
71749         * modules/inet_pton: New file.
71750
71751 2006-06-21  Simon Josefsson  <jas@extundo.com>
71752
71753         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71754         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71755         of using the (limited) gnulib implementation on Windows XP.
71756
71757         * m4/inet_pton.m4: New file.
71758
71759 2006-06-21  Simon Josefsson  <jas@extundo.com>
71760
71761         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71762         variable.
71763
71764         * lib/socket_.h: Don't define WINVER.
71765
71766         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71767         slightly modified to work in gnulib.
71768
71769 2006-06-21  Simon Josefsson  <jas@extundo.com>
71770
71771         * doc/gnulib.texi (Windows sockets): Add.
71772
71773 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71774
71775         * lib/read-file.c (fread_file): Start with buffer allocation of
71776         0 bytes rather than 1 byte; this simplifies the code.
71777         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71778         code to free buffer and save/restore errno.
71779         (internal_read_file): Remove unused local.
71780
71781 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71782
71783         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71784         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71785         Problem reported by Denis Excoffier in
71786         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71787
71788 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71789
71790         * modules/sys_socket, modules/socklen: Include sys/types since
71791         FreeBSD 4.x's sys/socket.h needs it.
71792
71793 2006-06-19  Simon Josefsson  <jas@extundo.com>
71794
71795         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71796
71797 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71798
71799         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71800
71801 2006-06-19  Bruno Haible  <bruno@clisp.org>
71802
71803         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71804         and FULL_PATH_INTTYPES_H in angle brackets.
71805         Reported by Mark D. Baushke <mdb@gnu.org>.
71806
71807 2006-06-17  Eric Blake  <ebb9@byu.net>
71808
71809         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71810         errno.
71811
71812 2006-06-17  Bruno Haible  <bruno@clisp.org>
71813
71814         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71815         <sys/inttypes.h>.
71816
71817 2006-06-17  Bruno Haible  <bruno@clisp.org>
71818
71819         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71820         whether errno is declared. Assume <errno.h> declares errno.
71821
71822 2006-06-17  Bruno Haible  <bruno@clisp.org>
71823
71824         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71825
71826 2006-06-17  Bruno Haible  <bruno@clisp.org>
71827
71828         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71829         problem on Solaris 2.5.1.
71830
71831 2006-06-16  Eric Blake  <ebb9@byu.net>
71832
71833         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71834         * lib/unicodeio.c [!defined errno]: Likewise.
71835         * lib/strtol.c [!defined errno]: Likewise.
71836         * lib/strtod.c [!defined errno]: Likewise.
71837
71838 2006-06-15  Eric Blake  <ebb9@byu.net>
71839
71840         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71841
71842 2006-06-15  Eric Blake  <ebb9@byu.net>
71843
71844         * config/srclist.txt (ssize_t.m4): Lose sync.
71845
71846 2006-06-15  Bruno Haible  <bruno@clisp.org>
71847
71848         * modules/stdint (Files): Include m4/full-header-path.m4,
71849         m4/size_max.m4, m4/wchar_t.m4.
71850         (Makefile.am): Many more substitutions.
71851         * modules/stdint-tests: New file.
71852         * tests/test-stdint.c: New file.
71853
71854 2006-06-15  Bruno Haible  <bruno@clisp.org>
71855
71856         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71857         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71858         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71859         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71860         gl_CHECK_TYPE_SAME): New macros.
71861
71862 2006-06-15  Bruno Haible  <bruno@clisp.org>
71863
71864         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71865
71866 2006-06-15  Bruno Haible  <bruno@clisp.org>
71867
71868         * lib/stdint_.h: Rewritten to be fully auto-configured.
71869         Fixes bug on HP-UX/IA64.
71870
71871 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71872
71873         * lib/getdate.y (__attribute__): Don't define if already defined.
71874         Problem reported by Larry Jones.
71875         * lib/utimens.c (__attribute__): Likewise.
71876
71877 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71878
71879         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71880         reported by Andreas Schwab.
71881
71882 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71883             Bruno Haible  <bruno@clisp.org>
71884
71885         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71886         check for the declaration of strnlen and a run test that exposes the
71887         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71888         rpl_strndup.
71889
71890 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71891             Bruno Haible  <bruno@clisp.org>
71892
71893         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71894
71895 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71896
71897         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71898         compile test, for Tru64 4.0D.
71899
71900 2006-05-28  Karl Berry  <karl@gnu.org>
71901
71902         * config/srclist.txt (printf-args.c): lose sync.
71903
71904 2006-05-26  Martin Lambers  <marlam@marlam.de>
71905
71906         * lib/getpass.c: Updates the test for the native W32 API, and adds
71907         missing includes, thus fixing compilation warnings.
71908
71909 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71910
71911         * lib/exclude.c (exclude_fnmatch): New function.
71912         (excluded_file_name): Call exclude_fnmatch.
71913         * lib/exclude.h (excluded_file_name): New prototype
71914
71915 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71916
71917         * lib/tempname.c (small_open, large_open): New macros.
71918         (__open, __open64) [!_LIBC]: Remove.
71919         (__gen_tempname): Use small_open and large_open instead of __open
71920         and __open64.  This fixes a portability bug on HP-UX 11.11i
71921         reported by Simon Wing-Tang in
71922         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71923
71924 2006-05-24  Bruno Haible  <bruno@clisp.org>
71925
71926         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71927         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71928         Reported by Thorsten Maerz <torte@netztorte.de> via
71929         Aaron Stone <aaron@serendipity.cx>.
71930
71931 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71932
71933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71934         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71935         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71936         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71937         not really conditional on the cache.
71938         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71939
71940 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71941
71942         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71943         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71944         (my_usleep): Don't mishandle maximum value.
71945
71946 2006-05-19  Jim Meyering  <jim@meyering.net>
71947
71948         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71949
71950 2006-05-17  Bruno Haible  <bruno@clisp.org>
71951
71952         Cygwin portability.
71953         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71954
71955 2006-05-17  Bruno Haible  <bruno@clisp.org>
71956
71957         * lib/stdint_.h: Fix recognition of Cygwin.
71958
71959 2006-05-15  Bruno Haible  <bruno@clisp.org>
71960
71961         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71962         on libtool patch by Ralf Wildenhues.
71963
71964 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71965
71966         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71967         test for C99 conformance; (bool) 0.5 is an integer constant
71968         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71969         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71970
71971 2006-05-11  Simon Josefsson  <jas@extundo.com>
71972
71973         * m4/xvasprintf.m4: Fix obvious typo.
71974
71975 2006-05-11  Jim Meyering  <jim@meyering.net>
71976
71977         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71978         James Lemley.
71979
71980 2006-05-10  Simon Josefsson  <jas@extundo.com>
71981
71982         * lib/md4.c: Typo fix, update copyright years.
71983         (K1, K2): Don't use L because it turn computations into 64-bit on
71984         64-bit platforms.
71985
71986 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71987
71988         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71989         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71990         unwanted sign propagation, e.g., on hosts with 64-bit int.
71991         There still are some problems with reeelly weird theoretical hosts
71992         (e.g., 33-bit int) but it's not worth worrying about now.
71993         * lib/sha1.c (rol): Likewise.
71994         (K1, K2, K3, K4): Remove unnecessary L suffix.
71995
71996 2006-05-10  Bruno Haible  <bruno@clisp.org>
71997
71998         * lib/des.c: Cast to avoid warnings.
71999
72000 2006-05-09  Bruno Haible  <bruno@clisp.org>
72001
72002         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72003         (Depends-on): Depend also on xsize, stdarg.
72004         (configure.ac): Add gl_XVASPRINTF.
72005
72006 2006-05-09  Bruno Haible  <bruno@clisp.org>
72007
72008         * m4/xvasprintf.m4: New file.
72009
72010 2006-05-09  Bruno Haible  <bruno@clisp.org>
72011
72012         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72013         (EOVERFLOW): Define fallback value.
72014         (xstrcat): New function.
72015         (xvasprintf): Recognize the special case of a string concatenation.
72016
72017 2006-05-08  Eric Blake  <ebb9@byu.net>
72018
72019         * gnulib-tool (func_version): Base copyright year on CVS date.
72020         (func_emit_copyright_notice): New function.
72021         (func_emit_lib_Makefile_am): Use it.
72022         (func_emit_tests_Makefile_am): Likewise.
72023         (func_import): Likewise.
72024
72025 2006-05-08  Bruno Haible  <bruno@clisp.org>
72026
72027         * modules/stdarg: New file.
72028         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72029
72030 2006-05-08  Bruno Haible  <bruno@clisp.org>
72031
72032         * m4/stdarg.m4: New file, from GNU gettext.
72033
72034 2006-05-08  Bruno Haible  <bruno@clisp.org>
72035
72036         * config/srclist.txt (build-aux/config.rpath): different from latest
72037         release.
72038
72039 2006-05-08  Bruno Haible  <bruno@clisp.org>
72040
72041         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72042
72043 2006-05-05  Jim Meyering  <jim@meyering.net>
72044
72045         * m4/warning.m4: New file, derived from bison's file by the same name.
72046
72047 2006-05-03  Bruno Haible  <bruno@clisp.org>
72048
72049         * lib/stdint_.h: Shorter URL.
72050         * lib/inttypes.h: Likewise.
72051
72052 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72053
72054         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72055
72056 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72057
72058         * lib/verify.h: Document the internals better.  Most of this change
72059         was written by Bruno Haible.
72060
72061 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72062
72063         * doc/verify.texi: New file, partly based on a proposal by
72064         Bruno Haible.
72065
72066 2006-05-02  Bruno Haible  <bruno@clisp.org>
72067
72068         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72069         test from here...
72070         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72071
72072 2006-04-29  Bruno Haible  <bruno@clisp.org>
72073
72074         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72075         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72076
72077 2006-04-29  Bruno Haible  <bruno@clisp.org>
72078
72079         * gnulib-tool: Make --update option actually work.
72080
72081 2006-04-29  Bruno Haible  <bruno@clisp.org>
72082
72083         * doc/gcd.texi: New file.
72084         * doc/gnulib.texi: Include it.
72085
72086 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72087
72088         * lib/getdate.y (get_date): When adding relative date, start with the
72089         initial time, not with the result of the first mktime call.
72090
72091 2006-04-25  Bruno Haible  <bruno@clisp.org>
72092
72093         * gnulib-tool (func_import): Output the include directives in three
72094         blocks, sorted separately.
72095         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72096
72097 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72098
72099         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72100         to define main with arguments, for C++.  Reported by Eric Blake.
72101         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72102         Prefer 'int main ()' to 'int main (void)', for C++.
72103         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72104         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72105         for 'main', for C99 and C++.
72106
72107 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72110         Don't assume that exit status -1 is valid.
72111         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72112         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72113         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72114         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72115         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72116         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72117         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72118         functions can be used without declaring them, or that you can
72119         exit with status -1.
72120         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72121
72122 2006-04-24  Karl Berry  <karl@gnu.org>
72123
72124         * config/srclist.txt (longdouble.m4): sync lost.
72125
72126 2006-04-24  Eric Blake  <ebb9@byu.net>
72127
72128         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72129
72130 2006-04-24  Bruno Haible  <bruno@clisp.org>
72131
72132         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72133         poll() implementation in AIX.
72134         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72135
72136 2006-04-24  Bruno Haible  <bruno@clisp.org>
72137
72138         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72139         assigned exactly once.
72140
72141 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72142             Bruno Haible  <bruno@clisp.org>
72143
72144         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72145         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72146         for AM_CPPFLAGS.
72147
72148 2006-04-23  Bruno Haible  <bruno@clisp.org>
72149
72150         * modules/copy-file: Depend on unistd.
72151         * modules/execute: Likewise.
72152         * modules/fatal-signal: Likewise.
72153         * modules/findprog: Likewise.
72154         * modules/mkdtemp : Likewise.
72155         * modules/pipe: Likewise.
72156         * modules/wait-process: Likewise.
72157
72158 2006-04-23  Bruno Haible  <bruno@clisp.org>
72159
72160         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72161         condition was already detected.
72162         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72163
72164 2006-04-23  Bruno Haible  <bruno@clisp.org>
72165
72166         * lib/copy-file.c: Include <unistd.h> unconditionally.
72167         * lib/execute.c: Likewise.
72168         * lib/fatal-signal.c: Likewise.
72169         * lib/findprog.c: Likewise.
72170         * lib/mkdtemp.c: Likewise.
72171         * lib/pipe.h: Likewise.
72172         * lib/pipe.c: Likewise.
72173         * lib/wait-process.h: Likewise.
72174
72175 2006-04-23  Bruno Haible  <bruno@clisp.org>
72176
72177         * gnulib-tool (func_usage): Fix --import description. Document
72178         --update.
72179         (func_import): Create temporary file in a temporary directory, if
72180         --dry-run is specified. Silence errors from 'grep' when there are no
72181         m4 files in $m4dir.
72182         (func_create_testdir): Silence errors from 'grep' when there are no
72183         m4 files in $m4dir.
72184         Reported by Karl Berry <karl@freefriends.org>.
72185
72186 2006-04-20  Bruno Haible  <bruno@clisp.org>
72187
72188         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72189         one argument, so that the code will be portable to Autoconf 2.60.
72190         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72191         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72192         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72193
72194 2006-04-19  Derek Price  <derek@ximbiot.com>
72195             Eric Blake  <ebb9@byu.net>
72196
72197         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72198         rather than "/full/path.h".  Update comment to match.  Shorten &
72199         generalize m4_translit call via AS_TR_CPP.
72200
72201 2006-04-19  Derek Price  <derek@ximbiot.com>
72202             Eric Blake  <ebb9@byu.net>
72203
72204         * lib/inttypes.h: Correct grammar in comment.
72205
72206 2006-04-18  Derek Price  <derek@ximbiot.com>
72207             Paul Eggert  <eggert@cs.ucla.edu>
72208
72209         * modules/inttypes: New file.
72210         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72211
72212 2006-04-18  Derek Price  <derek@ximbiot.com>
72213             Paul Eggert  <eggert@cs.ucla.edu>
72214
72215         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72216         New files.
72217
72218 2006-04-18  Derek Price  <derek@ximbiot.com>
72219             Paul Eggert  <eggert@cs.ucla.edu>
72220
72221         * lib/inttypes.h: New file.
72222         * lib/strtoimax.c: Assume <inttypes.h>.
72223
72224 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72225
72226         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72227         isn't mounted.  Problem reported by Kir Kolyshkin.
72228
72229 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72230
72231         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72232         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72233         Derek R. Price.
72234         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72235         implementation.
72236
72237 2006-04-12  Eric Blake  <ebb9@byu.net>
72238
72239         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72240         is now done automatically by the corresponding Autoconf macro.
72241
72242 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72243
72244         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72245         time_r.h.
72246
72247 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72248
72249         Merge regex changes from libc, removing some of our
72250         POSIX-conformance changes that were rejected and redoing them in a
72251         less-intrusive way.
72252
72253         * lib/regcomp.c (re_compile_internal, init_dfa):
72254         Length arg is now size_t, not Idx.  All uses changed.
72255         (peek_token): Forward decl now says internal_function.
72256         (__re_error_msgid, __re_error_msgid_idx):
72257         Now static rather than extern with attribute_hidden.
72258         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72259         For some reason libc prefers K&R style defns for external functions.
72260         (regerror) [!defined _LIBC]: Likewise.
72261         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72262         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72263         (build_range_exp, build_collating_symbol):
72264         Use K&R-style defn.
72265         (re_compile_fastmap): Use '\0' to memset, not 0.
72266         (utf8_sb_map): Make the calculations more obvious.
72267         (init_dfa, parse_bracket_exp, build_charclass_op):
72268         Call calloc and cast result, as glibc does.
72269         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72270         (build_range_exp, build_collating_symbol):
72271         Now internal functions.
72272
72273         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72274
72275         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72276         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72277         Don't depend on VMS; depend on __VMS instead, for POSIX
72278         namespace cleanness.
72279         (regoff_t): Define to ssize_t, not long int.
72280
72281         Remove the REG_ macros named below.  Instead, make the old names
72282         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72283         __USE_GNU_REGEX.
72284         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72285         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72286         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72287         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72288         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72289         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72290         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72291         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72292         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72293         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72294         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72295         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72296         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72297         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72298         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72299         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72300         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72301         (REG_NREGS):
72302         Remove.  All uses replaced by the old RE_* names.
72303         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72304         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72305         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72306         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72307         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72308         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72309         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72310         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72311         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72312         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72313         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72314         Don't bother having these macros be independent of each others'
72315         values, since they no longer exist in the POSIX name space.
72316
72317         Rename the following member names back to their old names,
72318         unless !__USE_GNU_REGEX.  All uses changed back.
72319         (buffer): Renamed from re_buffer.
72320         (allocated): Renamed from re_allocated.
72321         (used): Renamed from re_used.
72322         (syntax): Renamed from re_syntax.
72323         (fastmap): Renamed from re_fastmap.
72324         (translate): Renamed from re_translate.
72325         (can_be_null): Renamed from re_can_be_null.
72326         (regs_allocated): Renamed from re_regs_allocated.
72327         (fastmap_accurate): Renamed from re_fastmap_accurate.
72328         (no_sub): Renamed from re_no_sub.
72329         (not_bol): Renamed from re_not_bol.
72330         (not_eol): Renamed from re_not_eol.
72331         (newline_anchor): Renamed from re_newline_anchor.
72332         (num_regs): Renamed from rm_num_regs.
72333         (start): Renamed from rm_start.
72334         (end): Renamed from rm_end.
72335
72336         (free_state): Move up a bit.
72337
72338         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72339         #define to be empty.
72340         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72341         when that is what is intended.
72342         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72343         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72344         (MAX): New macro.
72345         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72346         All uses changed back to re_malloc, etc.  It's now the caller's
72347         responsibility to check for overflow; all callers changed.
72348         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72349         (re_x2nrealloc): Remove.
72350         (free_state): Remove decl.
72351
72352         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72353         (re_set_registers, re_exec):
72354         Use K&R-style defn.
72355
72356         2006-01-31  Roland McGrath  <roland@redhat.com>
72357
72358         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72359         Reported by Mike Frysinger <vapier@gentoo.org>.
72360
72361         2006-01-15  Andreas Jaeger  <aj@suse.de>
72362
72363         [BZ #1950]
72364         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72365         build_wcs_upper_buffer change.
72366         (build_wcs_upper_buffer): Change return type.
72367
72368         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72369
72370         * lib/regex_internal.h: Include <stdint.h> if available.
72371
72372         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72373
72374         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72375
72376         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72377
72378         * lib/regcomp.c: Adjust for changed secondary hash function.
72379
72380         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72381
72382         * lib/regex.h: Pretty printing.
72383         Clean up namespace a bit.
72384
72385         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72386
72387         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72388         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72389
72390         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72391                     Ulrich Drepper  <drepper@redhat.com>
72392
72393         [BZ #1302]
72394         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72395         changed.
72396         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72397
72398         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72399
72400         [BZ #281]
72401         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72402         * lib/regcomp.c: Remove unnecessary uses of
72403         unsigned RE_TRANSLATE_TYPE.
72404         * lib/regex_internal.h: Likewise.
72405         * lib/regex_internal.c: Likewise.
72406         * lib/regexec.c: Likewise.
72407         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72408
72409         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72410
72411         * lib/regexec.c (find_recover_state): Remove unnecessary
72412         initialization.
72413         (transit_state_bkref): Make DFA a const pointer.
72414         (get_subexp): Likewise.
72415         (check_arrival): Likewise.
72416         (update_cur_sifted_state): Likewise.
72417         (re_search_internal): Likewise.
72418         (prune_impossible_nodes): Likewise.
72419         (acquire_init_state_context): Likewise.
72420         (proceed_next_node): Likewise.
72421         (set_regs): Likewise.
72422         (free_fail_stack_return): Likewise.
72423         (check_arrival_expand_ecl): Mark DFA parameter as const.
72424         (check_arrival_expand_ecl_sub): Likewise.
72425         (check_subexp_limits): Likewise.
72426         (sub_epsilon_src_nodes):  Likewise.
72427         (add_epsilon_src_nodes):  Likewise.
72428         (merge_state_array): Likewise.
72429         (update_regs): Likewise.
72430         (build_trtable): Likewise.
72431         (sift_states_backward): Mark MCTX parameter as const.
72432         (build_sifted_states): Likewise.
72433         (update_cur_sifted_state): Likewise.
72434         (sift_states_mkref): Likewise.
72435         (check_arrival_expand_ecl): Mark eclosure as const.
72436         (check_dst_limits_calc_pos_1): Likewise.
72437         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72438         pointer.
72439
72440         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72441
72442         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72443         (transit_state_sb): Likewise.
72444         (transit_state_mb): Likewise.
72445         (sift_states_iter_mb): Likewise.
72446         (check_arrival_add_next_nodes): Likewise.
72447         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72448         [_LIBC] (re_search_2_stub): Use mempcpy.
72449
72450         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72451         mbrtowc for very simple UTF-8 case.
72452
72453         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72454         a pointer-to-const.
72455         (re_acquire_state_context): Likewise.
72456         * lib/regex_internal.h: Adjust prototypes.
72457
72458         * lib/regex.c: Prevent using C++ compilers.
72459
72460         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72461         (re_acquire_state_context): Likewise.
72462
72463 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72464
72465         * modules/regex (Depends-on): Add ssize_t.
72466
72467 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72468
72469         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72470         translation table.
72471
72472 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72473
72474         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72475
72476 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72477             Bruno Haible  <bruno@clisp.org>
72478
72479         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72480         <sys/types.h> and <inttypes.h>.
72481
72482 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72483
72484         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72485         `__error_t_defined', so argp.h will not typedef the former.
72486
72487 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72488
72489         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72490         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72491         glibc names.  Even if glibc is changed to conform to POSIX, the
72492         traditional names will be available anyway, since regex depends on
72493         the extensions module.  Also, fix a longstanding typo in the
72494         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72495         reported by Emanuele Giaquinta.  Also, change sense of cached
72496         variable, so that the message makes sense.
72497
72498 2006-03-24  Simon Josefsson  <jas@extundo.com>
72499
72500         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72501         including some doc fixes.
72502         (base64_encode_alloc): Fix +1 bug on allocation failures.
72503
72504 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72505
72506         * lib/base64.c (base64_encode): Do not read past end of array with
72507         unsanitized input on systems with CHAR_BIT > 8.
72508
72509 2006-03-24  Eric Blake  <ebb9@byu.net>
72510
72511         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72512
72513 2006-03-22  Karl Berry  <karl@gnu.org>
72514
72515         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72516         * config/srclistvars.sh (COREUTILS): new var.
72517
72518 2006-03-17  Jim Meyering  <jim@meyering.net>
72519
72520         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72521         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72522
72523 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72524
72525         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72526         no longer needs it.  Instead, check that regoff_t is as least
72527         as wide as ptrdiff_t.
72528
72529         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72530         so that our regex.h stays compatible with the installed regex.
72531         This is helpful for installers who configure --without-included-regex.
72532         Problem reported by Emanuele Giaquinta.
72533
72534 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72535
72536         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72537         Typedef to long int, not to off_, as POSIX will likely change
72538         in that direction.
72539
72540 2006-03-15  Eric Blake  <ebb9@byu.net>
72541
72542         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72543
72544 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72545
72546         * lib/argp-help.c (validate_uparams): Fix typo
72547         * lib/argp-parse.c (argp_default_options): Consistently begin help
72548         messages with a lowercase letter.
72549
72550 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72551
72552         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72553         overrun buffers and shouldn't be used (much as gets shouldn't be
72554         used).
72555         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72556
72557 2006-03-08  Simon Josefsson  <jas@extundo.com>
72558
72559         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72560         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72561
72562 2006-03-08  Simon Josefsson  <jas@extundo.com>
72563
72564         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72565         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72566
72567 2006-03-08  Simon Josefsson  <jas@extundo.com>
72568
72569         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72570         signal that configure disabled the device.
72571
72572 2006-03-08  Simon Josefsson  <jas@extundo.com>
72573
72574         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72575         languages.
72576
72577 2006-03-07  Simon Josefsson  <jas@extundo.com>
72578
72579         * modules/getopt (Depends-on): Add unistd.
72580
72581         * modules/unistd: New file.
72582
72583 2006-03-07  Simon Josefsson  <jas@extundo.com>
72584
72585         * modules/gc-random: New file.
72586
72587 2006-03-07  Simon Josefsson  <jas@extundo.com>
72588
72589         * m4/unistd_h.m4: New file.
72590
72591 2006-03-07  Simon Josefsson  <jas@extundo.com>
72592
72593         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72594         test to be side-effect free by storing the result in the cache
72595         variable gl_cv_lib_readline, and moving the assignment of
72596         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72597         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72598
72599 2006-03-07  Simon Josefsson  <jas@extundo.com>
72600
72601         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72602         error on missing devices (the functions will return an error).
72603
72604         * m4/gc.m4: Move random stuff to gc-random.m4
72605
72606 2006-03-07  Simon Josefsson  <jas@extundo.com>
72607
72608         * lib/unistd_.h: New file.
72609
72610 2006-03-07  Simon Josefsson  <jas@extundo.com>
72611
72612         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72613
72614 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72615
72616         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72617         Problem reported by Juan Manuel Guerrero.
72618
72619 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72620
72621         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72622         the unistd module.
72623         * lib/getlogin_r.c: Likewise.
72624         * lib/getlogin_r.h: Likewise.
72625         * lib/glob.c: Likewise.
72626         * lib/pagealign_alloc.c: Likewise.
72627         * lib/unistd_.h: Remove; no longer needed.
72628
72629 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72630
72631         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72632         Add unistd.
72633         * modules/c-stack (Depends-on): Add unistd.
72634         * modules/getlogin_r: Likewise.
72635         * modules/glob: Likewise.
72636         * modules/pagealign_alloc: Likewise.
72637         * modules/unistd (Files): Remove lib/unistd_.h.
72638         (EXTRA_DIST): Remove.
72639         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72640         need unistd_.h.
72641         (MOSTLYCLEANFILES): Remove unistd.h-t.
72642
72643 2006-03-03  Simon Josefsson  <jas@extundo.com>
72644
72645         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72646
72647 2006-03-03  Simon Josefsson  <jas@extundo.com>
72648
72649         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72650         libidn and bison.
72651
72652 2006-03-03  Simon Josefsson  <jas@extundo.com>
72653
72654         * build-aux/maint.mk: Add indent target.
72655
72656 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72657
72658         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72659         our replacement poll.h in any case, to avoid a differing
72660         declaration from a system header.  Seen on AIX.
72661
72662 2006-03-01  Simon Josefsson  <jas@extundo.com>
72663
72664         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72665         <kasal@ucw.cz>.
72666
72667 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         * modules/gettime (Depends-on): Add extensions module.
72670         * modules/nanosleep (Depends-on): Likewise.
72671         * modules/settime (Depends-on): Likewise.
72672
72673 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72674
72675         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72676         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72677         pedantically.
72678         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72679         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72680
72681         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72682         not "==".  Reported by Ralf Wildenhues.
72683
72684 2006-03-01  Karl Berry  <karl@gnu.org>
72685
72686         * doc/Copyright/request-*: new files, synced from gnuorg.
72687
72688 2006-03-01  Karl Berry  <karl@gnu.org>
72689
72690         * config/srclist.txt (Copyright/*): new entries.
72691
72692 2006-02-28  Simon Josefsson  <jas@extundo.com>
72693
72694         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72695
72696 2006-02-27  Simon Josefsson  <jas@extundo.com>
72697
72698         * lib/base64.h: Indent #define's.  From Jim Meyering
72699         <jim@meyering.net>.
72700
72701 2006-02-27  Jim Meyering  <jim@meyering.net>
72702
72703         Revert the change of 2006-02-24, so these files can continue
72704         to be sync'd from gettext.
72705         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72706         of `config.h'.
72707
72708 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72709
72710         * modules/intprops: New file.
72711         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72712         Add intprops.
72713         * modules/getloadavg (Files): Remove lib/intprops.h.
72714         (Depends-on): Add intprops.
72715         * modules/human: Likewise.
72716         * modules/inttostr: Likewise.
72717         * modules/openat: Likewise.
72718         * modules/sig2str: Likewise.
72719         * modules/userspec: Likewise.
72720         * modules/utimecmp: Likewise.
72721         * modules/xnanosleep: Likewise.
72722         * modules/xstrtol: Likewise.
72723
72724 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72725
72726         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72727         * modules/lock-tests (TESTS): Use $(EXEEXT).
72728         * modules/tls-tests: Likewise.
72729         * modules/argp-tests: Likewise.
72730         (check_PROGRAMS): New var, replacing...
72731         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72732
72733 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72734
72735         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72736         `config.h'.
72737
72738 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72739
72740         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72741
72742 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72743
72744         Sync from coreutils.
72745         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72746         gl_CHDIR_SAFER.
72747
72748 2006-02-22  Jim Meyering  <jim@meyering.net>
72749
72750         Sync from coreutils.
72751         * m4/chdir-safer.m4: New file.
72752
72753 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72754
72755         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72756         AT_FDCWD exceeds INT_MAX.
72757         * lib/openat.h (AT_FDCWD): Likewise.
72758
72759 2006-02-17  Eric Blake  <address@hidden>
72760
72761         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72762
72763 2006-02-16  Simon Josefsson  <jas@extundo.com>
72764
72765         * modules/getaddrinfo (Depends-on): Add sys_socket.
72766
72767 2006-02-15  Simon Josefsson  <jas@extundo.com>
72768
72769         * build-aux/maint.mk: Add dsyntax-check rule.
72770
72771 2006-02-15  Eric Blake  <ebb9@byu.net>
72772
72773         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72774         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72775         'present but cannot compile' warnings on cygwin.
72776         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72777         use ws2tcpip.h if sys/socket.h works.
72778         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72779         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72780
72781 2006-02-14  Simon Josefsson  <jas@extundo.com>
72782
72783         * modules/maintainer-makefile (Files): Rename.
72784
72785         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72786         and (the local) Makefile.cfg to maint-cfg.mk.
72787
72788         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72789         to the latter.
72790
72791         * modules/maintainer-makefile: New module.
72792
72793         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72794         severaly stripped to make it possible to build it up from scratch
72795         with reliable tests.
72796
72797         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72798         fixes to permit overriding the default actions when configure and
72799         makefile are not available.
72800
72801 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         Sync from coreutils.
72804         * modules/lstat (Depends-on): Don't depend on xalloc.
72805         (License): Change from GPL to LGPL, since this is now simply a
72806         replacement for a libc function.
72807
72808 2006-02-14  Jim Meyering  <jim@meyering.net>
72809
72810         Sync from coreutils.
72811
72812         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72813         failure on deficient systems, and simplify gnulib lgpl dependencies.
72814         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72815         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72816
72817         * lib/xalloc-die.c: Remove unused definition of N_.
72818
72819 2006-02-14  Jim Meyering  <jim@meyering.net>
72820
72821         Sync from coreutils.
72822         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72823         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72824         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72825         double-quote uses of that variable, to accommodate the rare case in
72826         which getmntent is available in none of the libraries checked.  This
72827         happens at least on FreeBSD 5.0.
72828
72829 2006-02-13  Simon Josefsson  <jas@extundo.com>
72830
72831         * gnulib-tool (Usage): Fix --import, from
72832         karl@freefriends.org (Karl Berry).
72833
72834 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72835
72836         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72837
72838 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72839
72840         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72841         "autoupdate" on 2005-12-12.
72842
72843 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72844
72845         * modules/closeout (Depends-on): Remove atexit.
72846
72847 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72848
72849         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72850         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72851
72852 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72853
72854         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72855         __EXTENSIONS__ if this causes compilation to fail.  Problem
72856         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72857         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72858
72859 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72860
72861         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72862         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72863         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72864         All uses changed.
72865
72866 2006-01-26  Simon Josefsson  <jas@extundo.com>
72867
72868         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72869         prototype is visible on mingw32.
72870
72871         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72872         for mingw32.
72873
72874         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72875         mingw32).
72876
72877 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72878
72879         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72880         attempt to open for write; this always fails, at least on POSIX
72881         hosts.  This reinstates the 2006-01-09 change, which was
72882         inadvertently removed.
72883
72884 2006-01-26  Bruno Haible  <bruno@clisp.org>
72885
72886         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72887         Reported by Paul Eggert.
72888
72889 2006-01-26  Bruno Haible  <bruno@clisp.org>
72890             Paul Eggert  <eggert@cs.ucla.edu>
72891
72892         * lib/stdbool_.h (_Bool)
72893         [(! (defined __cplusplus || defined __BEOS__)
72894           && !defined __GNUC__
72895           && !(defined __HP_cc || defined __xlc__
72896                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72897                || defined __sgi))]:
72898         #define to signed char in these cases too; this simplifies
72899         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72900         etc., separately) and makes it more conservative.
72901
72902 2006-01-25  Simon Josefsson  <jas@extundo.com>
72903
72904         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72905         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72906         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72907
72908 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72909
72910         * lib/argp-namefrob.h: Bugfix. Remove stray #
72911
72912 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72913
72914         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72915         so that we test the test.
72916         Check for yet another HP-UX cc bug involving *bool |= bool.
72917
72918 2006-01-25  Karl Berry  <karl@gnu.org>
72919
72920         * config/srclist.txt (vasnprintf.c): sync lost.
72921
72922 2006-01-25  Jim Meyering  <jim@meyering.net>
72923
72924         Sync from the stable (b5) branch of coreutils:
72925
72926         * lib/fts.c (fts_children): Don't let close() clobber errno from
72927         failed fchdir().
72928
72929         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72930         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72931         a dangling symlink.  That can also happen at least for ELOOP.
72932         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72933         FYI, this bug predates the inclusion of fts.c in coreutils.
72934
72935         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72936         in their own block, so pre-c99 compilers don't object.
72937
72938         Avoid the double-free (first in fts_read, second in fts_close) that
72939         would occur when an `active' directory is made inaccessible (e.g.,
72940         via chmod a-x) during a traversal.
72941         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72942         before returning.  Reproduce this failure by
72943         mkdir -p a/b; cd a; chmod a-x . b
72944         Reported by Stavros Passas.
72945
72946 2006-01-25  Jim Meyering  <jim@meyering.net>
72947
72948         * lib/fileblocks.c: Remove more useless parentheses.
72949         * lib/readutmp.h: Likewise.
72950
72951 2006-01-25  Bruno Haible  <bruno@clisp.org>
72952
72953         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72954         warnings.
72955         Reported by Paul Eggert.
72956
72957 2006-01-25  Bruno Haible  <bruno@clisp.org>
72958
72959         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72960         rid of a trap command. For Solaris sh.
72961         Reported by Mark D. Baushke <mdb@gnu.org>.
72962
72963 2006-01-24  Simon Josefsson  <jas@extundo.com>
72964
72965         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72966         Bruno.
72967
72968 2006-01-24  Karl Berry  <karl@gnu.org>
72969
72970         * config/srclist.txt (argp-namefrob.h): sync lost.
72971
72972 2006-01-24  Jim Meyering  <jim@meyering.net>
72973
72974         * modules/openat (Files): Add lib/intprops.h.
72975         From Mark D. Baushke.
72976
72977 2006-01-24  Jim Meyering  <jim@meyering.net>
72978
72979         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72980         Reported by Mark D. Baushke.
72981
72982 2006-01-24  Jim Meyering  <jim@meyering.net>
72983
72984         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72985
72986 2006-01-24  Bruno Haible  <bruno@clisp.org>
72987
72988         * modules/strnlen (Maintainer): Change from glibc to all.
72989
72990 2006-01-24  Bruno Haible  <bruno@clisp.org>
72991
72992         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72993         Patch by Paul Eggert.
72994
72995 2006-01-24  Bruno Haible  <bruno@clisp.org>
72996
72997         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72998         already has it.
72999         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73000         2005-11-26.
73001
73002         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73003         'signed char' to avoid problems with the built-in _Bool type.
73004         Reported by Paul Eggert on 2005-11-26.
73005
73006 2006-01-24  Bruno Haible  <bruno@clisp.org>
73007
73008         * gnulib-tool (func_import): Avoid constructing complicated sed
73009         expressions inside backquote.
73010         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73011
73012 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73013
73014         These changes imported from libc.
73015         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73016         test and two separate function calls.
73017         * lib/strndup.c (__strndup): Add libc_hidden_def.
73018
73019 2006-01-23  Simon Josefsson  <jas@extundo.com>
73020
73021         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73022         Remove the test_*_SOURCES variable: automake infers it by default.
73023         * modules/tls-tests: Likewise.
73024
73025 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73026
73027         Work around porting bugs reported by Dieter in
73028         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73029         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73030         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73031         Include "getopt.h" first, to check interface.
73032         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73033         !HAVE_DECL_GETENV.
73034         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73035         (__strndup): Revert to K&R-style function dfns, the glibc style.
73036         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73037         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73038         Include strnlen.h first, to get prototype properly.
73039         (strnlen): Renamed from __strnlen.
73040         Remove weak alias.
73041
73042 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73043
73044         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73045
73046 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73047
73048         * config/srclist.txt: Adjust to reflect glibc reorganization.
73049         This affects only comments.
73050
73051 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73052
73053          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73054          Reported by Bruce Korb <bkorb@gnu.org>.
73055
73056 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73057
73058         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73059         to pacify gcc -Wswitch-default.
73060
73061 2006-01-22  Bruno Haible  <bruno@clisp.org>
73062
73063         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73064         temporary buffer for sprintf, take into account the precision also
73065         for 'd', 'i', 'u', 'o', 'x', 'X'.
73066
73067 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73068
73069         * modules/argp-tests: New module
73070         * tests/test-argp.c: New file
73071         * tests/test-argp-2.sh: New file
73072
73073 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73074
73075         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73076         (__argp_base_name): Removed
73077         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73078         typo.
73079         (__argp_base_name): Provide macro definition or extern declaration
73080         depending on the configuration
73081
73082 2006-01-20  Simon Josefsson  <jas@extundo.com>
73083
73084         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73085
73086 2006-01-20  Simon Josefsson  <jas@extundo.com>
73087
73088         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73089
73090 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73091
73092         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73093         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73094         Suggested by Bruno Haible.
73095
73096 2006-01-20  Karl Berry  <karl@gnu.org>
73097
73098         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73099         until changes propagate, I guess.
73100
73101 2006-01-19  Simon Josefsson  <jas@extundo.com>
73102
73103         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73104
73105 2006-01-19  Simon Josefsson  <jas@extundo.com>
73106
73107         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73108
73109 2006-01-19  Simon Josefsson  <jas@extundo.com>
73110
73111         * gnulib-tool: Set check_PROGRAMS.
73112
73113         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73114         modules/des-tests, modules/gc-arcfour-tests,
73115         modules/gc-arctwo-tests, modules/gc-des-tests,
73116         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73117         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73118         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73119         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73120         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73121         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73122         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73123         test_*_SOURCES.
73124
73125 2006-01-18  Simon Josefsson  <jas@extundo.com>
73126
73127         * modules/socklen (Depends-on): Depend on sys_socket.
73128
73129 2006-01-18  Simon Josefsson  <jas@extundo.com>
73130
73131         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73132         modules/des-tests, modules/gc-arcfour-tests,
73133         modules/gc-arctwo-tests, modules/gc-des-tests,
73134         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73135         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73136         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73137         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73138         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73139         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73140         $(EXEEXT) to automake TESTS variable, for mingw32.
73141
73142 2006-01-17  Simon Josefsson  <jas@extundo.com>
73143
73144         * modules/socklen (Include): Need sys/socket.h.
73145
73146 2006-01-17  Bruno Haible  <bruno@clisp.org>
73147
73148         * modules/ssize_t (Include): Add <sys/types.h>.
73149
73150 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73151
73152         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73153         it's not portable and it doesn't work with cross-compiles.
73154         Problem reported by Bruno Haible.  Fix missing-$ typo in
73155         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73156         -zignore from being used with Sun's C compiler.
73157
73158 2006-01-12  Simon Josefsson  <jas@extundo.com>
73159
73160         * lib/base64.c: Fix warning, reported by Bruno Haible
73161         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73162
73163 2006-01-12  Bruno Haible  <bruno@clisp.org>
73164
73165         * modules/ldd: New file.
73166         * build-aux/ldd.sh.in: New file.
73167         * MODULES.html.sh (Support for building libraries and executables): Add
73168         ldd.
73169
73170 2006-01-12  Bruno Haible  <bruno@clisp.org>
73171
73172         * m4/ldd.m4: New file.
73173
73174 2006-01-12  Bruno Haible  <bruno@clisp.org>
73175
73176         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73177         endless loop while replacing $auxdir with build-aux.
73178
73179 2006-01-11  Simon Josefsson  <jas@extundo.com>
73180
73181         * lib/stdint_.h (SIZE_MAX): Add missing (.
73182
73183 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73184
73185         Sync from coreutils.
73186         * lib/md5.c: Fix commentary typos.
73187         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73188         * lib/md5.h (__attribute__): Remove; unused.
73189         * lib/sha1.c: Fix commentary to match md5 better.
73190         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73191         so that we don't need to worry about alignment.  All uses changed.
73192         This merges the 2005-10-28 md5 change into sha1.
73193
73194 2006-01-11  Jim Meyering  <jim@meyering.net>
73195
73196         Sync from coreutils.
73197         * lib/md5.c (OP): Fix spacing.
73198
73199 2006-01-11  Bruno Haible  <bruno@clisp.org>
73200
73201         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73202         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73203         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73204
73205 2006-01-11  Bruno Haible  <bruno@clisp.org>
73206
73207         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73208         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73209         the "early" section as well.
73210
73211 2006-01-11  Bruno Haible  <bruno@clisp.org>
73212
73213         Avoid "ar: no archive members specified" error on MacOS X.
73214         * gnulib-tool (func_modules_add_dummy): New function.
73215         (func_import, func_create_testdir): Invoke it.
73216
73217 2006-01-11  Bruno Haible  <bruno@clisp.org>
73218
73219         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73220         with $auxdir in AC_CONFIG_FILES statements.
73221
73222 2006-01-11  Bruno Haible  <bruno@clisp.org>
73223
73224         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73225         Initialize also noinst_HEADERS to empty.
73226
73227 2006-01-11  Bruno Haible  <bruno@clisp.org>
73228
73229         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73230         variables.
73231         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73232         autoreconf.
73233
73234 2006-01-11  Bruno Haible  <bruno@clisp.org>
73235
73236         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73237         overridable by the user.
73238         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73239
73240 2006-01-10  Simon Josefsson  <jas@extundo.com>
73241
73242         * modules/sys_socket: New file.
73243
73244 2006-01-10  Simon Josefsson  <jas@extundo.com>
73245
73246         * m4/sys_socket_h.m4: New file.
73247
73248 2006-01-10  Simon Josefsson  <jas@extundo.com>
73249
73250         * lib/socket_.h: New file.
73251
73252 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73253
73254         * modules/readutmp (Maintainer): Add myself.
73255
73256 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73257
73258         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73259         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73260         People who are still concerned with buggy memcmp implementations
73261         can invoke gl_FUNC_MEMCMP themselves.
73262
73263 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73264
73265         * lib/regex_internal.h (BITSET_WORD_BITS):
73266         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73267         preprocessor mishandles large unsigned values as if they were signed.
73268         Problem reported by Claudio Fontana in
73269         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73270
73271 2006-01-10  Jim Meyering  <jim@meyering.net>
73272
73273         Avoid the double-free (first in fts_read, second in fts_close) that
73274         would occur when an `active' directory is made inaccessible (e.g.,
73275         via chmod a-x) during a traversal.
73276         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73277         before returning.  Reproduce this failure by
73278         mkdir -p a/b; cd a; chmod a-x . b
73279         Reported by Stavros Passas.
73280
73281         Sync from coreutils.
73282         * lib/sha1.c: Tweak grammar in a comment.
73283
73284 2006-01-10  Jim Meyering  <jim@meyering.net>
73285
73286         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73287         Patch by Joerg Sonnenberger.
73288
73289 2006-01-10  Bruno Haible  <bruno@clisp.org>
73290
73291         * modules/readutmp: Depend on module free.
73292         * modules/strtok_r: Depend on module restrict.
73293
73294 2006-01-10  Bruno Haible  <bruno@clisp.org>
73295
73296         * modules/gettext (configure.ac): Add an invocation of
73297         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73298
73299 2006-01-10  Bruno Haible  <bruno@clisp.org>
73300
73301         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73302         Reported by Werner Lemberg <wl@gnu.org>.
73303
73304 2006-01-10  Bruno Haible  <bruno@clisp.org>
73305
73306         * lib/localcharset.c: Update from GNU gettext.
73307
73308 2006-01-10  Bruno Haible  <bruno@clisp.org>
73309
73310         * lib/argp.h (__const): Remove macro. Use const instead.
73311         * lib/argp-fmtstream.h (__const): Likewise.
73312         * lib/glob_.h (__const): Remove macro.
73313         * lib/glob-libc.h: Use const instead of __const.
73314
73315 2006-01-10  Bruno Haible  <bruno@clisp.org>
73316
73317         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73318         variable.
73319         Needed to avoid an automake error regarding the 'gettext' module.
73320
73321 2006-01-09  Simon Josefsson  <jas@extundo.com>
73322
73323         * modules/inet_ntop (Depends-on): Add restrict.
73324
73325 2006-01-09  Simon Josefsson  <jas@extundo.com>
73326
73327         * modules/gc-rijndael-tests (License): Put under LGPL.
73328
73329         * modules/gc-des-tests (License): Likewise.
73330
73331         * modules/gc-arcfour-tests (License): Likewise.
73332
73333         * modules/gc-arctwo-tests (License): Likewise.
73334
73335         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73336
73337         * modules/gc-hmac-sha1-tests (Files): Likewise.
73338
73339         * modules/gc-hmac-md5-tests (License): Likewise.
73340
73341         * modules/gc-sha1-tests (License): Likewise.
73342
73343         * modules/gc-md5-tests (License): Likewise.
73344
73345         * modules/gc-md4-tests (License): Likewise.
73346
73347         * modules/gc-md2-tests (License): Likewise.
73348
73349         * modules/gc-tests (License): Likewise.
73350
73351         * modules/des-tests (License): Likewise.
73352
73353         * modules/md4-tests (License): Likewise.
73354
73355         * modules/md2-tests (License): Likewise.
73356
73357 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73358
73359         Sync from coreutils:
73360
73361         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73362         * modules/lib-ignore: New file.
73363         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73364         chdir-safer.m4, lchmod.m4.
73365         * modules/openat: Add mkdirat.c, openat-priv.h.
73366
73367 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73368
73369         Sync from coreutils.
73370         * m4/lib-ignore.m4: New file.
73371         * m4/lchmod.m4: New file.
73372
73373 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73374
73375         Sync from coreutils.
73376         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73377         for write access: POSIX says that must fail.
73378         * lib/fts.c (diropen): Likewise.
73379         * lib/save-cwd.c (save_cwd): Likewise.
73380         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73381         well, for minor improvements on hosts that lack O_DIRECTORY.
73382         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73383         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73384         Fall back on chown if open failed with EACCES.
73385
73386         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73387         Report an error at compile-time if only a 1-second nominal clock
73388         resolution is found.
73389
73390         * lib/lchmod.h: New file.
73391         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73392         (make_dir_parents): Use lchown rather than chown, and
73393         lchmod rather than chmod.
73394
73395         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73396         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73397         "proc" reported by n0dalus.
73398
73399         * lib/mountlist.c: Include <limits.h>.
73400         (dev_from_mount_options)
73401         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73402         New function.  It no longer assumes "dev=" has the System V meaning
73403         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73404         (read_file_system_list)
73405         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73406         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73407         dev= in that case.
73408
73409         * lib/posixtm.h (PDS_PRE_2000): New macro.
73410         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73411         allow_century.  All usages changed.  Reject dates outside the range
73412         1969-1999 if PDS_PRE_2000 is used.
73413
73414 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73415
73416         Sync from coreutils.
73417         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73418         (Time of day items): Mention the possibility of leap seconds.
73419         Problem reported by Dr. David Alan Gilbert.
73420
73421 2006-01-09  Jim Meyering  <jim@meyering.net>
73422
73423         Sync from coreutils.
73424
73425         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73426
73427         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73428
73429         * lib/modechange.c (mode_compile): Reject an invalid mode string
73430         that starts with an octal digit.  From Andreas Gruenbacher.
73431
73432         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73433         and dup to open_safer and dup_safer, respectively.
73434         (openat_permissive): Fix typo in comment.
73435
73436         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73437         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73438         (_): Remove; no longer needed.
73439         (openat): Renamed from rpl_openat; no need for rpl_openat
73440         since openat.h renames openat for us.
73441         Replace most of the body with a call to openat_permissive,
73442         to avoid duplicate code.
73443         Port to (probably hypothetical) environments were mode_t is
73444         wider than int.
73445         (openat_permissive): Require mode arg, so that we can check
73446         types better.  Put it just after flags.  Change cwd failure
73447         indicator from pointer-to-bool to pointer-to-errno-value.
73448         All callers changed.
73449         Invoke openat_save_fail and/or openat_restore_fail if
73450         cwd_errno is null, so that openat can call us.
73451         (openat_permissive, fdopendir, fstatat, unlinkat):
73452         Simplify errno handling to avoid some duplicate code,
73453         as it's OK to set errno on success.
73454         * lib/openat.h: Revamp code so that function macros depend on
73455         __OPENAT_PREFIX only, not also on AT_FDCWD.
73456         (openat_ro): Remove.  Caller changed to use openat_permissive.
73457         (openat_permissive): Now a macro, if not a function.
73458         (openat_restore_fail, openat_save_fail): Now always functions,
73459         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73460
73461         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73462         and openat.c.
73463         * lib/mkdirat.c: Include openat-priv.h.
73464         Remove definitions of macros defined therein.
73465         * lib/openat.c: Likewise.
73466
73467         * lib/mkdirat.c (mkdirat): New file and function.
73468         * lib/openat.h (mkdirat): Declare.
73469
73470         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73471
73472         * lib/openat.h (openat_permissive): Declare.
73473         (openat_ro): Define.
73474
73475         * lib/openat.c (EXPECTED_ERRNO): New macro.
73476         (openat_permissive): New function -- used in remove.c rewrite.
73477         (all functions): Set errno just before returning, only if there
73478         was an actual failure.
73479         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73480
73481         Emulate openat-family functions using Linux's procfs, if possible.
73482         Idea and some code based on Ulrich Drepper's glibc changes.
73483
73484         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73485         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73486         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73487         before falling back on save_cwd and restore_cwd.
73488         (fdopendir, fstatat, unlinkat): Likewise.
73489
73490         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73491         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73492
73493         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73494         as second argument to va_arg.  Otherwise, some versions of gcc
73495         warn that `if this code is reached, the program will abort'.
73496
73497 2006-01-09  Jim Meyering  <jim@meyering.net>
73498
73499         Sync from coreutils.
73500         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73501         Require openat-priv.h.
73502
73503 2006-01-09  Bruno Haible  <bruno@clisp.org>
73504
73505         * modules/strnlen (Include): Use strnlen.h.
73506
73507 2006-01-09  Bruno Haible  <bruno@clisp.org>
73508
73509         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73510
73511 2006-01-09  Bruno Haible  <bruno@clisp.org>
73512
73513         * lib/sysexit_.h (EX_OK): New macro.
73514         Suggested by Martin Lambers <marlam@marlam.de>.
73515
73516 2006-01-09  Bruno Haible  <bruno@clisp.org>
73517
73518         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73519         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73520
73521 2006-01-09  Bruno Haible  <bruno@clisp.org>
73522
73523         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73524         numbers.
73525
73526 2006-01-09  Bruno Haible  <bruno@clisp.org>
73527
73528         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73529         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73530         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73531         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73532
73533 2006-01-09  Bruno Haible  <bruno@clisp.org>
73534
73535         * build-aux/javacomp.sh.in: New file, moved from lib/.
73536         * modules/javacomp-script (Files): Update.
73537         (configure.ac): Add AC_CONFIG_FILES invocation.
73538         (EXTRA_DIST): Remove variable.
73539
73540         * build-aux/javaexec.sh.in: New file, moved from lib/.
73541         * modules/javaexec (Files): Update.
73542         (configure.ac): Add AC_CONFIG_FILES invocation.
73543         (EXTRA_DIST): Remove javaexec.sh.in.
73544
73545         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73546         * modules/csharpcomp-script (Files): Update.
73547         (configure.ac): Add AC_CONFIG_FILES invocation.
73548         (EXTRA_DIST): Remove variable.
73549
73550         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73551         * modules/csharpexec (Files): Update.
73552         (configure.ac): Add AC_CONFIG_FILES invocation.
73553         (EXTRA_DIST): Remove csharpexec.sh.in.
73554
73555 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73556
73557         Sync from coreutils.
73558
73559         Add POSIX ACL support
73560         * lib/acl.h (copy_acl, set_acl): Add declarations.
73561         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73562         systems other than Linux.
73563         (chmod_or_fchmod): New function: use fchmod when possible,
73564         and chmod otherwise.
73565         (file_has_acl): Add a POSIX ACL implementation, with a
73566         Linux-specific subcase.
73567         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73568         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73569         acls are unsupported.
73570         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73571         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73572         are unsupported.
73573
73574 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73575
73576         Sync from coreutils.
73577         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73578
73579 2006-01-07  Bruno Haible  <bruno@clisp.org>
73580
73581         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73582         gl_EARLY.
73583
73584 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73587         Problem reported for Mingw by Mark Junker.
73588
73589 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73590
73591         * README: Gnulib normally doesn't generate a tarball.
73592
73593 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73594
73595         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73596         long int, not int, for nanosecond counts, so that people who are
73597         used to POSIX struct timespec won't be surprised.  Reported by Jim
73598         Meyering.
73599
73600 2005-12-28  Bruno Haible  <bruno@clisp.org>
73601
73602         * build-aux/config.rpath: Update from GNU gettext.
73603
73604 2005-12-16  Jim Meyering  <jim@meyering.net>
73605
73606         * modules/fprintftime: New module.
73607         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73608
73609 2005-12-16  Jim Meyering  <jim@meyering.net>
73610
73611         * m4/fprintftime.m4: New file.
73612
73613 2005-12-16  Jim Meyering  <jim@meyering.net>
73614
73615         * lib/fprintftime.c, lib/fprintftime.h: New files.
73616
73617 2005-12-15  Simon Josefsson  <jas@extundo.com>
73618
73619         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73620         new m4/socklen.m4.
73621
73622 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73623
73624         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73625         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73626
73627 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73628
73629         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73630         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73631         struct uparams is valid. Fall back to the default values if it is
73632         not.
73633
73634 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73635
73636         * modules/argp (Files): Add argp-pin.c
73637         (Depends-on): dirname
73638         (lib_SOURCES): Add argp-pin.c
73639
73640 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73641
73642         * m4/argp.m4:  Check if program_invocation_name and
73643         program_invocation_short_name are declared and define appropriate
73644         macros if they are not.
73645
73646 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73647
73648         * lib/argp-help.c (__argp_base_name): New function
73649         (__argp_short_program_name): Rewrite using __argp_base_name
73650         * lib/argp-namefrob.h: Define program_invocation_name and
73651         program_invocation_short_name if requested
73652         (__argp_base_name): Add prototype
73653         * lib/argp-parse.c (argp_def): Use gettext wrappers
73654         (argp_default_parser): Use __argp_base_name
73655         * lib/argp-pin.c: New file. Defines program_invocation_name and
73656         program_invocation_short_name on systems that lack them.
73657
73658 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73659
73660         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73661         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73662         porting problem reported by Georg Schwarz in
73663         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73664
73665 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73666
73667         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73668         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73669         porting problem reported by Georg Schwarz in
73670         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73671
73672 2005-12-05  Bruno Haible  <bruno@clisp.org>
73673
73674         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73675         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73676         Reported by Mark Junker <mjscod@gmx.de>.
73677
73678 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73679
73680         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73681         Use implementation from Albert Chin, with some
73682         comments/corrections by Stepan Kasal and myself.
73683
73684 2005-12-02  Bruno Haible  <bruno@clisp.org>
73685
73686         * gnulib-tool (func_import): Accept GPLed build tool modules when
73687         --lgpl is given.
73688         * modules/csharpcomp-script: New file.
73689         * modules/csharpcomp: Depend on it.
73690         * modules/javacomp-script: New file.
73691         * modules/javacomp: Depend on it.
73692         Suggested by Simon Josefsson.
73693
73694 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73695
73696         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73697         statement, to work around an HP-UX 10.20 compiler bug reported by
73698         Peter O'Gorman.
73699
73700 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73701
73702         * modules/savedir (Depends-on): Add openat.
73703
73704 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73705
73706         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73707         (uintmax_t) [defined uintmax_t]: Do not declare.
73708         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73709         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73710         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73711         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73712         sake of portability to weird hosts that C allows (though we don't
73713         know of any practical examples).
73714
73715         * lib/savedir.h (fdsavedir): New decl.
73716         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73717         contains most of the former guts of savedir.
73718         (savedir): Use savedirstream.
73719         Include "openat.h".
73720
73721 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         * modules/obstack (Files): Add m4/ulonglong.m4.
73724         Problem reported by Davide Angelocola.
73725
73726 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73727
73728         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73729         coreutils no longer futzes with rounding modes.
73730
73731 2005-11-14  Jim Meyering  <jim@meyering.net>
73732
73733         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73734         replacement of mkstemp.
73735
73736 2005-11-10  Simon Josefsson  <jas@extundo.com>
73737
73738         * lib/readline.c: Remove EOL.
73739
73740 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73741
73742         * modules/gethrxtime (Depends-on): Add gettime.
73743
73744 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73745
73746         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73747         or gettimeofday; no longer needed.
73748
73749 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73750
73751         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73752         time business.
73753         (gethrxtime) [! (HAVE_NANOUPTIME
73754         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73755         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73756         our own approximation.
73757
73758 2005-11-08  Eric Blake  <ebb9@byu.net>
73759
73760         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73761
73762 2005-11-08  Eric Blake  <ebb9@byu.net>
73763
73764         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73765
73766 2005-11-04  Bruno Haible  <bruno@clisp.org>
73767
73768         * gnulib-tool: Implement --update mode.
73769
73770 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73771
73772         Fix porting problem reported by Theodoros V. Kalamatianos.
73773         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73774         Don't assume that futimes failing means we must fail.
73775
73776 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73777
73778         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73779         variables to suggest the intended function of the PATH_MAX check.
73780
73781 2005-10-30  Kean Johnston  <jkj@sco.com>
73782
73783         Trivial changes to support SCO systems.
73784         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73785         as PATH_MAX.
73786         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73787         where __ptr is null when no I/O is pending.
73788
73789 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73790
73791         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73792         leave errno alone.  Problem reported by Dmitry V. Levin.
73793
73794 2005-10-28  Simon Josefsson  <jas@extundo.com>
73795
73796         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73797         Test more.
73798
73799         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73800
73801         * modules/md2, modules/md2-tests: New files.
73802
73803 2005-10-28  Simon Josefsson  <jas@extundo.com>
73804
73805         * m4/inet_ntop.m4: More tests.
73806
73807         * m4/gc-md2.m4, md2.m4: New file.
73808
73809 2005-10-28  Simon Josefsson  <jas@extundo.com>
73810
73811         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73812         "restrict" keywords, as per POSIX.  Protect the function
73813         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73814         Don't use K&R prototypes.  Check the sprintf return values.
73815         Re-define EAFNOSUPPORT if not present.  Indent.
73816
73817         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73818         suggested by Bruno Haible <bruno@clisp.org>.
73819
73820         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73821
73822         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73823
73824         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73825         libgcrypt).
73826
73827         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73828
73829         * lib/md2.h, lib/md2.c: New files.
73830
73831 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73832
73833         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73834         errno alone.  Problem reported by Frederic Jolliton.
73835
73836 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73837
73838         * modules/verify (License): Change from GPL to LGPL.  This is a
73839         tiny module and there are apparently near-equivalents that are
73840         under the BSD license.
73841
73842 2005-10-24  Simon Josefsson  <jas@extundo.com>
73843
73844         * modules/sha1: Relicense to LGPL.
73845
73846 2005-10-24  Simon Josefsson  <jas@extundo.com>
73847
73848         * lib/md4.h: Shrink buffer size, now that we changed the type.
73849
73850 2005-10-23  Simon Josefsson  <jas@extundo.com>
73851
73852         * gnulib-tool (func_import): Fix --tests-base.
73853
73854 2005-10-22  Simon Josefsson  <jas@extundo.com>
73855
73856         * modules/arcfour (Depends-on): Need stdint.
73857
73858 2005-10-22  Simon Josefsson  <jas@extundo.com>
73859
73860         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73861         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73862
73863 2005-10-22  Simon Josefsson  <jas@extundo.com>
73864
73865         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73866         suggested by Bruno Haible <bruno@clisp.org>.
73867
73868 2005-10-22  Simon Josefsson  <jas@extundo.com>
73869
73870         * lib/crc.h: Include stddef.h, for size_t.
73871
73872 2005-10-22  Simon Josefsson  <jas@extundo.com>
73873
73874         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73875         arcfour_context struct (simplify test vector testing in GNU
73876         Shishi).
73877
73878 2005-10-21  Simon Josefsson  <jas@extundo.com>
73879
73880         * modules/des, modules/des-tests: New files.
73881
73882         * modules/gc-des, modules/gc-des-tests: New files.
73883
73884         * tests/test-des.c, tests/test-gc-des.c: New file.
73885
73886 2005-10-21  Simon Josefsson  <jas@extundo.com>
73887
73888         * modules/arctwo, modules/arctwo-tests: New files.
73889
73890         * tests/test-arctwo.c: New file.
73891
73892         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73893
73894         * tests/test-gc-arctwo.c: New file.
73895
73896 2005-10-21  Simon Josefsson  <jas@extundo.com>
73897
73898         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73899         Bruno Haible <bruno@clisp.org>.
73900
73901         * m4/gc-des.m4: New file.
73902
73903 2005-10-21  Simon Josefsson  <jas@extundo.com>
73904
73905         * m4/arctwo.m4: New file.
73906
73907         * m4/gc-arctwo.m4: New file.
73908
73909 2005-10-21  Simon Josefsson  <jas@extundo.com>
73910
73911         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73912         block.
73913
73914 2005-10-21  Simon Josefsson  <jas@extundo.com>
73915
73916         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73917         <bruno@clisp.org>.
73918
73919         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73920
73921         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73922         Bruno Haible <bruno@clisp.org>.
73923
73924         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73925         <bruno@clisp.org>.
73926
73927 2005-10-21  Simon Josefsson  <jas@extundo.com>
73928
73929         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73930
73931 2005-10-21  Simon Josefsson  <jas@extundo.com>
73932
73933         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73934
73935 2005-10-21  Simon Josefsson  <jas@extundo.com>
73936
73937         * lib/des.h, lib/des.c: New files.
73938
73939         * lib/gc-gnulib.c: Support DES.c
73940
73941 2005-10-21  Simon Josefsson  <jas@extundo.com>
73942
73943         * lib/arctwo.h, lib/arctwo.c: New files.
73944
73945         * lib/gc-gnulib.c: Support ARCTWO.
73946
73947 2005-10-21  Simon Josefsson  <jas@extundo.com>
73948
73949         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73950         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73951
73952 2005-10-21  Simon Josefsson  <jas@extundo.com>
73953
73954         * gnulib-tool (func_import, func_create_testdir): Define automake
73955         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73956         Makefile.am snippet),
73957         suggested by Bruno Haible <bruno@clisp.org>.
73958
73959         * modules/gc (Makefile.am): Use it.
73960
73961 2005-10-21  Bruno Haible  <bruno@clisp.org>
73962
73963         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73964         patch.
73965
73966 2005-10-19  Simon Josefsson  <jas@extundo.com>
73967
73968         * tests/test-gc-rijndael.c: New file.
73969
73970         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73971
73972 2005-10-19  Simon Josefsson  <jas@extundo.com>
73973
73974         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73975         interface too.
73976
73977 2005-10-19  Simon Josefsson  <jas@extundo.com>
73978
73979         * tests/test-gc-arcfour.c: New file.
73980
73981         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73982
73983 2005-10-19  Simon Josefsson  <jas@extundo.com>
73984
73985         * modules/gc-md4, modules/gc-md4-tests: New file.
73986
73987         * tests/test-gc-md4.c: New file.
73988
73989 2005-10-19  Simon Josefsson  <jas@extundo.com>
73990
73991         * m4/gc-md4.m4: New file.
73992
73993 2005-10-19  Simon Josefsson  <jas@extundo.com>
73994
73995         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73996         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73997         <kasal@ucw.cz>.
73998
73999 2005-10-19  Simon Josefsson  <jas@extundo.com>
74000
74001         * m4/gc-arcfour.m4: New file.
74002
74003         * m4/gc-rijndael.m4: New file.
74004
74005 2005-10-19  Simon Josefsson  <jas@extundo.com>
74006
74007         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74008
74009 2005-10-19  Simon Josefsson  <jas@extundo.com>
74010
74011         * lib/gc-gnulib.c: Support ARCFOUR.
74012
74013 2005-10-19  Simon Josefsson  <jas@extundo.com>
74014
74015         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74016         support.
74017
74018         * lib/gc.h: Add ECB enum type.
74019
74020         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74021
74022 2005-10-18  Simon Josefsson  <jas@extundo.com>
74023
74024         * tests/test-md5.c: New file.
74025
74026         * modules/md5-tests: New file.
74027
74028 2005-10-18  Simon Josefsson  <jas@extundo.com>
74029
74030         * tests/test-md4.c: New file.
74031
74032         * modules/md4, modules/md4-tests: New files.
74033
74034 2005-10-18  Simon Josefsson  <jas@extundo.com>
74035
74036         * m4/md4.m4: New file.
74037
74038 2005-10-18  Simon Josefsson  <jas@extundo.com>
74039
74040         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74041
74042 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74043
74044         * gnulib-tool (func_create_testdir): Omit the second check whether
74045         BUILT_SOURCES in nonempty.
74046
74047 2005-10-17  Simon Josefsson  <jas@extundo.com>
74048
74049         * tests/test-rijndael.c: New file.
74050
74051 2005-10-17  Simon Josefsson  <jas@extundo.com>
74052
74053         * modules/sha1: Depend on stdint instead of md5.
74054
74055         * modules/md5: Depend on stdint, remove uint32_t.
74056
74057 2005-10-17  Simon Josefsson  <jas@extundo.com>
74058
74059         * modules/gc-sha1-tests: New file.
74060
74061         * tests/test-gc-sha1.c: New file.
74062
74063 2005-10-17  Simon Josefsson  <jas@extundo.com>
74064
74065         * m4/md5.m4: Remove call to uint32_t.m4.
74066
74067 2005-10-17  Simon Josefsson  <jas@extundo.com>
74068
74069         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74070
74071         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74072         md5.h.
74073
74074         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74075
74076         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74077
74078 2005-10-17  Simon Josefsson  <jas@extundo.com>
74079
74080         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74081
74082 2005-10-17  Simon Josefsson  <jas@extundo.com>
74083
74084         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74085
74086 2005-10-17  Simon Josefsson  <jas@extundo.com>
74087
74088         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74089
74090         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74091
74092 2005-10-17  Bruno Haible  <bruno@clisp.org>
74093
74094         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74095         that it can also be used in a test.
74096
74097 2005-10-16  Bruno Haible  <bruno@clisp.org>
74098
74099         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74100         TESTS_ENVIRONMENT, so that individual tests can augment it.
74101
74102         * gnulib-tool (func_create_testdir): Use an intermediate target for
74103         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74104         macros, like $(ALLOCA_H), which cannot be passed through the command
74105         line.
74106
74107 2005-10-15  Simon Josefsson  <jas@extundo.com>
74108
74109         * modules/rijndael-tests: New file.
74110
74111         * modules/rijndael: New file.
74112
74113 2005-10-15  Simon Josefsson  <jas@extundo.com>
74114
74115         * m4/rijndael.m4: New file.
74116
74117 2005-10-15  Simon Josefsson  <jas@extundo.com>
74118
74119         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74120
74121         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74122
74123 2005-10-14  Simon Josefsson  <jas@extundo.com>
74124
74125         * tests/test-arcfour.c: New file.
74126
74127         * modules/arcfour, modules/arcfour-tests: New files.
74128
74129 2005-10-14  Simon Josefsson  <jas@extundo.com>
74130
74131         * m4/arcfour.m4: New file.
74132
74133 2005-10-14  Simon Josefsson  <jas@extundo.com>
74134
74135         * lib/arcfour.h, lib/arcfour.c: New files.
74136
74137 2005-10-14  Roland McGrath  <roland@redhat.com>
74138
74139         Import from libc.  [BZ #1331]
74140         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74141         macro argument.
74142         Reported by Matej Vela <vela@debian.org>.
74143
74144 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74145
74146         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74147         include <wchar.h>; no longer needed.
74148
74149 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74150
74151         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74152
74153 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74154         and  Ulrich Drepper  <drepper@redhat.com>
74155
74156         Import from libc.
74157         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74158         instead of inline stream orientation test and two separate
74159         function calls.  Pay no attention to USE_IN_LIBIO.
74160
74161 2005-10-13  Simon Josefsson  <jas@extundo.com>
74162
74163         * modules/gc-hmac-md5-tests: New file.
74164
74165         * tests/test-gc-hmac-sha1.c: New file.
74166
74167         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74168
74169         * modules/gc-hmac-md5-tests: New file.
74170
74171         * tests/test-gc-md5.c: New file.
74172
74173         * modules/gc-md5-tests: New file.
74174
74175 2005-10-13  Simon Josefsson  <jas@extundo.com>
74176
74177         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74178         Move memory allocation outside of loop.
74179
74180 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74181
74182         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74183         intermediate directory is in a read-only file system.  Problem
74184         reported by Eric Blake.
74185
74186 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74187
74188         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74189
74190 2005-10-12  Simon Josefsson  <jas@extundo.com>
74191
74192         * tests/test-hmac-sha1.c: New file.
74193
74194         * modules/hmac-sha1-tests: New file.
74195
74196         * modules/hmac-sha1: New file.
74197
74198 2005-10-12  Simon Josefsson  <jas@extundo.com>
74199
74200         * modules/gc-sha1: New file.
74201
74202 2005-10-12  Simon Josefsson  <jas@extundo.com>
74203
74204         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74205
74206         * tests/test-gc-pbkdf2-sha1.c: New file.
74207
74208 2005-10-12  Simon Josefsson  <jas@extundo.com>
74209
74210         * modules/gc-md5, modules/gc-hmac-md5: New files.
74211
74212         * modules/gc (Files): Remove md5, memxor and hmac files.
74213
74214 2005-10-12  Simon Josefsson  <jas@extundo.com>
74215
74216         * m4/gc-pbkdf2-sha1.m4: New file.
74217
74218         * m4/gc-hmac-sha1.m4: New file.
74219
74220         * m4/gc-sha1: New file.
74221
74222         * m4/hmac-sha1.m4: New file.
74223
74224 2005-10-12  Simon Josefsson  <jas@extundo.com>
74225
74226         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74227
74228         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74229
74230 2005-10-12  Simon Josefsson  <jas@extundo.com>
74231
74232         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74233         suggested by Bruno Haible <bruno@clisp.org>.
74234
74235 2005-10-12  Simon Josefsson  <jas@extundo.com>
74236
74237         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74238
74239 2005-10-12  Simon Josefsson  <jas@extundo.com>
74240
74241         * lib/gc-pbkdf2-sha1.c: New file.
74242
74243         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74244
74245 2005-10-12  Simon Josefsson  <jas@extundo.com>
74246
74247         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74248
74249         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74250
74251 2005-10-12  Simon Josefsson  <jas@extundo.com>
74252
74253         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74254         GC_USE_HMAC_MD5, respectively.
74255
74256         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74257         (gc_md5): Fix typo.
74258
74259         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74260
74261         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74262
74263         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74264
74265 2005-10-12  Bruno Haible  <bruno@clisp.org>
74266
74267         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74268         Reported by Stepan Kasal <kasal@ucw.cz>.
74269
74270 2005-10-11  Simon Josefsson  <jas@extundo.com>
74271
74272         * tests/test-crc.c: New file.
74273
74274         * modules/crc, modules/crc-tests: New files.
74275
74276 2005-10-11  Simon Josefsson  <jas@extundo.com>
74277
74278         * m4/crc.m4: New file.
74279
74280 2005-10-11  Simon Josefsson  <jas@extundo.com>
74281
74282         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74283
74284         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74285
74286         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74287
74288 2005-10-11  Simon Josefsson  <jas@extundo.com>
74289
74290         * lib/crc.h, lib/crc.c: New files.
74291
74292         * lib/gc.h (gc_hash_buffer): Add doc.
74293
74294 2005-10-11  Bruno Haible  <bruno@clisp.org>
74295
74296         * modules/c-strcasestr: New file.
74297         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74298
74299 2005-10-11  Bruno Haible  <bruno@clisp.org>
74300
74301         * modules/c-strcase: New file.
74302         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74303
74304 2005-10-11  Bruno Haible  <bruno@clisp.org>
74305
74306         * lib/strcasecmp.c: Include limits.h.
74307         (strcasecmp): Avoid integer overflow on exotic platforms.
74308         * lib/strncasecmp.c: Include limits.h.
74309         (strncasecmp): Avoid integer overflow on exotic platforms.
74310         Reported by Paul Eggert.
74311
74312 2005-10-11  Bruno Haible  <bruno@clisp.org>
74313
74314         * lib/c-strcasestr.h: New file, from GNU gettext.
74315         * lib/c-strcasestr.c: New file, from GNU gettext.
74316
74317 2005-10-11  Bruno Haible  <bruno@clisp.org>
74318
74319         * lib/c-strcase.h: New file, from GNU gettext.
74320         * lib/c-strcasecmp.c: New file, from GNU gettext.
74321         * lib/c-strncasecmp.c: New file, from GNU gettext.
74322
74323 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74324
74325         * modules/mempcpy (License): GPL -> LGPL.
74326         * modules/strchrnul (License): Likewise.
74327         * modules/sysexits (License): Likewise.
74328
74329 2005-10-08  Simon Josefsson  <jas@extundo.com>
74330
74331         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74332
74333 2005-10-07  Simon Josefsson  <jas@extundo.com>
74334
74335         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74336
74337 2005-10-06  Simon Josefsson  <jas@extundo.com>
74338
74339         * tests/test-hmac-md5.c: New file.
74340
74341         * modules/hmac-md5-tests: New file.
74342
74343         * modules/hmac-md5: New file.
74344
74345 2005-10-06  Simon Josefsson  <jas@extundo.com>
74346
74347         * m4/hmac-md5.m4: New file.
74348
74349         * m4/memxor.m4: Require gl_C_RESTRICT.
74350
74351 2005-10-06  Simon Josefsson  <jas@extundo.com>
74352
74353         * lib/memxor.c (memxor): Avoid casts and warnings.
74354
74355 2005-10-06  Simon Josefsson  <jas@extundo.com>
74356
74357         * lib/hmac-md5.c: New file.
74358
74359         * lib/hmac.h: New file.
74360
74361 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74362
74363         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74364         promotes to int, not unsigned int, to catch the AIX 5.3
74365         compiler bug.
74366
74367 2005-10-05  Simon Josefsson  <jas@extundo.com>
74368
74369         * modules/memxor: New file.
74370
74371         * modules/iconv (Files): Move config.rpath to havelib, it is used
74372         there.
74373
74374         * modules/havelib (Files): Add config.rpath.
74375
74376 2005-10-05  Simon Josefsson  <jas@extundo.com>
74377
74378         * m4/memxor.m4: New file.
74379
74380 2005-10-05  Simon Josefsson  <jas@extundo.com>
74381
74382         * lib/memxor.c (memxor): Fix compiler error.
74383
74384         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74385         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74386
74387         * lib/memxor.h, lib/memxor.c: New files.
74388
74389         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74390         we assume all systems have it, suggested by Jim Meyering
74391         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74392         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74393         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74394         same reasons.
74395
74396 2005-10-05  Simon Josefsson  <jas@extundo.com>
74397
74398         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74399
74400 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74401
74402         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74403         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74404         needed, since the source code now assumes these .h files.
74405
74406 2005-10-05  Derek Price  <derek@ximbiot.com>
74407
74408         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74409
74410 2005-10-05  Bruno Haible  <bruno@clisp.org>
74411
74412         * modules/stdint (License): Change to LGPL.
74413
74414 2005-10-04  Simon Josefsson  <jas@extundo.com>
74415
74416         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74417         D. Baushke" <mdb@gnu.org>.
74418
74419 2005-10-04  Bruno Haible  <bruno@clisp.org>
74420
74421         * lib/verify.h (verify_true): Provide alternative definition for C++.
74422
74423 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74424
74425         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74426         (SSIZE_MAX): New macro, if not already defined.
74427         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74428         than 2 GiB.
74429
74430 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74431
74432         Sync from coreutils.
74433         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74434         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74435         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74436         ULLONG_MAX doesn't work with 2.7.2.1.
74437
74438 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74439
74440         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74441         From Ben Pfaff.
74442
74443         * modules/exclude (Depends-on): Depend on verify.
74444         * modules/strtoimax (Depends-on): Likewise.
74445         * modules/utimecmp (Depends-on): Likewise.
74446
74447 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74448
74449         * lib/exclude.c: Include verify.h.
74450         (verify): Remove.  All callers changed to use verify.h's version.
74451         * lib/strtoimax.c: Likewise.
74452         * lib/utimecmp.c: Likewis.e
74453
74454         Sync from coreutils.
74455         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74456         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74457         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74458         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74459         bother returning ENOSYS if settimeofday or stime fails; just let
74460         them return whatever errno they want to return.
74461         * lib/utimens.c: Include unistd.h, for dup2.
74462         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74463         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74464
74465 2005-10-02  Jim Meyering  <jim@meyering.net>
74466
74467         Sync from coreutils.
74468         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74469         from glibc-2.2.5 that fails for read-only files.
74470
74471 2005-10-02  Jim Meyering  <jim@meyering.net>
74472
74473         Sync from coreutils.
74474         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74475         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74476         `#if HAVE_CONFIG_H'.
74477         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74478         Remove AT_FDCWD test.
74479         Do not consume the fd unless successful.
74480         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74481         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74482         block, so that we don't even try to compile it if settimeofday is
74483         available.  This works around a compilation failure on OSF1 V5.1,
74484         due to stime requiring a `long int*' while tv_sec is `int'.
74485
74486 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74487
74488         Sync from coreutils.
74489         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74490         against `yes', rather than just testing for nonempty.
74491
74492 2005-10-01  Simon Josefsson  <jas@extundo.com>
74493
74494         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74495         and Darwin.
74496
74497         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74498         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74499         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74500         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74501         Check if struct addrinfo is declared.
74502
74503 2005-10-01  Simon Josefsson  <jas@extundo.com>
74504
74505         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74506         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74507         AI_* and EAI_* definitions.  Protect function declarations.
74508
74509 2005-10-01  Jim Meyering  <jim@meyering.net>
74510
74511         Sync from coreutils.
74512
74513         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74514         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74515         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74516         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74517         in the inet and nsl libraries.  Required on Solaris 5.7.
74518
74519 2005-10-01  Jim Meyering  <jim@meyering.net>
74520
74521         Sync from coreutils.
74522         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74523         in the inet and nsl libraries.  Required on Solaris 5.7.
74524
74525 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74526
74527         * lib/getdelim.c (getdelim): Remove unused variables.
74528
74529 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74530
74531         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74532         so that the code works even with ancient cpp.  Portability problem
74533         with GCC 2.7.2.1 reported by Thomas M.Ott.
74534
74535 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74536
74537         * modules/regex (Depends-on): Add strcase.
74538
74539         * modules/gethostname (Licence): Change from GPL to LGPL, since
74540         gethostname.c is a trivial implementation of a standard library
74541         function.
74542         * modules/poll (License): Change from GPL to LGPL, since it's
74543         derived from LGPL code.
74544
74545 2005-09-27  Jim Meyering  <jim@meyering.net>
74546
74547         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74548         HAVE_CONFIG_H.
74549
74550         * lib/intprops.h (signed_type_or_expr__): Define.
74551         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74552         for unsigned types.
74553
74554 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74555
74556         * lib/verify.h (verify_expr): Remove, replacing with:
74557         (verify_true): New macro that returns true instead of void.
74558         (verify_type__): Remove.
74559         (verify): Use verify_true rather than verify_type__.
74560
74561 2005-09-26  Bruno Haible  <bruno@clisp.org>
74562
74563         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74564         is necessary.
74565         (lib_SOURCES): Remove mbchar.c.
74566         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74567         (Files): Add m4/mbrtowc.m4.
74568         * modules/mbiter: Likewise.
74569         * modules/mbuiter: Likewise.
74570
74571 2005-09-26  Bruno Haible  <bruno@clisp.org>
74572
74573         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74574         compile mbchar.c if they are not both present.
74575         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74576         * m4/mbiter.m4 (gl_MBITER): Likewise.
74577         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74578         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74579         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74580
74581 2005-09-25  Jim Meyering  <jim@meyering.net>
74582
74583         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74584         also uses socklen_t.
74585
74586 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74587
74588         * lib/utimens.c (ENOSYS): Define if not already defined.
74589         (futimens): Support having a null PATH if the file descriptor
74590         is nonnegative.
74591
74592         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74593         Remove.
74594         (__attribute): Define to empty unless GCC 3.1 or later.
74595         This works around a core dump on OpenBSD 3.4, which has GCC
74596         2.95.3, which dumps core when given __attribute__(()).  It also
74597         simplifies other tests, since we really don't want to bother with
74598         worrying about which ancient version of GCC supported what.
74599         Original problem reported by Yoann Vandoorselaere, with part of
74600         the fix suggested by Derek Price.
74601
74602 2005-09-24  Jim Meyering  <jim@meyering.net>
74603
74604         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74605         so we can once again use a positive bitfield width of 1 -- now we
74606         don't have to explain why we were using a bitfield width of 2.
74607
74608 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74609
74610         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74611         and similarly for the other external symbols.  Problem reported
74612         by James Gallager.
74613
74614         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74615         bug reported by Jim Meyering.
74616
74617         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74618         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74619         not needed, since socklen is a prerequisite module.
74620
74621 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74622
74623         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74624         Problem reported by Eric Blake.
74625         (getaddrinfo): Initialize se so that it's not garbage.
74626         Redo internal storage allocation so that it doesn't make unportable
74627         assumptions about alignment.
74628         Fix a memory leak.
74629
74630         * lib/utimens.c (futimens): Use futimesat if available.
74631         Prefer it to futimes since it doesn't have the futimes bug.
74632
74633         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74634         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74635         Instead, declare a function that returns a pointer to an array,
74636         and use verify_type__ to declare the size of the array.
74637         Problem and germ of a solution reported by Bruno Haible.
74638         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74639         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74640
74641 2005-09-23  Jim Meyering  <jim@meyering.net>
74642
74643         Sync from coreutils.
74644         Correct build failure (socklen_t not defined) on at least
74645         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74646         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74647
74648 2005-09-23  Jim Meyering  <jim@meyering.net>
74649
74650         * modules/getaddrinfo (Depends-on): Add socklen.
74651
74652 2005-09-23  Bruno Haible  <bruno@clisp.org>
74653
74654         * tests/test-verify.c: New file.
74655
74656 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74657
74658         Sync from coreutils.
74659
74660         * modules/argmatch (Depends-on): Add verify.
74661         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74662         unistd-safer.
74663         * modules/save-cwd (Depends-on): Likewise.
74664
74665         * modules/openat (Files): Add lib/openat-die.c.
74666         (Depends-on): Remove error, exitfail.
74667         Add dirname.
74668
74669         * modules/verify: New file.
74670         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74671         with "verify" module.
74672
74673 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74674
74675         Sync from coreutils.
74676
74677         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74678         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74679         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74680         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74681         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74682         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74683         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74684         Don't bother checking for string.h, stdlib.h, unistd.h.
74685         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74686         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74687         module's job.
74688         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74689         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74690
74691         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74692         (gl_GETDATE): Use it.
74693
74694         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74695
74696 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74697
74698         Sync from coreutils.
74699
74700         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74701         stat-time.h.
74702         * lib/argmatch.h: Include verify.h
74703         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74704         (ARGMATCH_ASSERT): Remove; unused.
74705         * lib/canonicalize.c: Assume STDC_HEADERS.
74706         * lib/exclude.c: Include "strcase.h".
74707         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74708         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74709         and stdio-safer.h.
74710         (getusershell): Call fopen, not fopen_safer.
74711         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74712         Do not include unistd-safer.h.
74713         (save_cwd): Don't call fd_safer; no longer needed
74714         now that we include fcntl--.h.
74715
74716         * lib/getdate.y (relative_time): New type.
74717         (RELATIVE_TIME_0): New constant.
74718         (parser_control): Use relative_time instead of doing it ourselves.
74719         (%union): Add new relative_time rel member.
74720         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74721         Now typeless.
74722         (relunit, relunit_snumber): Now of type rel.
74723         (zone, rel, relunit, get_date): Adjust to above changes.
74724
74725         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74726         Do not include unistd-safer.h.
74727         (getloadavg): Don't call fd_safer; no longer needed
74728         now that we include fcntl--.h.
74729
74730         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74731         (make_dir_parents): Treat ENOSYS like EEXIST.
74732
74733         Improve quality of diagnostics on restore_cwd failure.
74734         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74735         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74736         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74737         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74738         each time through the loop.  Do not diagnose restore_cwd failure;
74739         that is the caller's job (and perhaps the caller does not care).
74740
74741         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74742         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74743         If the file already exists but is not a directory, don't bother
74744         to try to make its parents.
74745         Close potential file descriptor leak if we can't chdir("/") (!).
74746         Don't always return true if chdir($PWD) fails; return true only
74747         if the requested action was done successfully (except for the
74748         chdir($PWD)).
74749         Don't log final directory unless we actually made it.
74750         Refactor to avoid duplicate code to fix up permissions.
74751         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74752
74753         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74754         to make it a bit faster and (I hope) clearer.
74755         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74756         Fix bug in formats like %2N.
74757
74758         * lib/verify.h: New file.
74759
74760 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74761
74762         Sync from coreutils.
74763         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74764
74765 2005-09-22  Jim Meyering  <jim@meyering.net>
74766
74767         Sync from coreutils.
74768
74769         * m4/lstat.m4 (gl_FUNC_LSTAT):
74770         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74771         Remove obsolete comment.
74772         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74773         * m4/xstrtod.m4: Likewise.
74774
74775         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74776
74777 2005-09-22  Jim Meyering  <jim@meyering.net>
74778
74779         Sync from coreutils.
74780
74781         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74782
74783         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74784         the .tm_year member, since otherwise gcc-4.0 would now warn about
74785         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74786
74787         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74788         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74789
74790         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74791         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74792         when run in a time zone for which daylight savings time is in effect
74793         for the starting date.
74794
74795         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74796         stop us from restricting permissions of just-created absolute-named
74797         directories.
74798         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74799         to restore initial working directory.
74800         * lib/mkdir-p.c (make_dir_parents): New parameter:
74801         different_working_dir, to tell caller if/when we change the working
74802         directory and are unable to return to the initial one.
74803         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74804         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74805         `return false'.  This fixes a bug introduced on 2004-07-30.
74806
74807         * lib/openat.c (fdopendir): Be sure to close the supplied
74808         file descriptor before returning.  This makes our replacement
74809         implementation a little closer to Solaris's, where fdopendir
74810         ties the file descriptor to the returned DIR* pointer.
74811         * lib/openat.c (unlinkat): New function.
74812         * lib/openat.h (unlinkat): Add prototype.
74813         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74814         (openat_restore_fail): Rename from openat_restore_die.
74815         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74816
74817         Provide an alternative to exiting immediately upon save_cwd or
74818         restore_cwd failure.  Now, an application can arrange e.g.,
74819         to perform a longjump in that case.
74820         * lib/openat.c: Include dirname.h.
74821         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74822         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74823         and openat_restore_die rather than calling error directly.
74824         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74825
74826         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74827         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74828         define.
74829
74830         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74831         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74832                             int utc, int nanoseconds);
74833         Background:
74834         date should not have to allocate a megabyte of virtual memory to
74835         handle a format argument like +%1048575T.  When implemented with
74836         strftime, it must allocate such a buffer, use strftime to fill it
74837         in, print it, then free it.
74838         With fprintftime, it simply prints everything and exits.
74839         With no need for memory allocation, that's one fewer way to fail.
74840         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74841         optional field width, not before, so we accept %9:z, not %:9z.
74842         (my_strftime): Be sure to use L_('x') for literals.
74843
74844         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74845         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74846         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74847         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74848         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74849         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74850         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74851         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74852         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74853         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74854         * lib/xgethostname.c, lib/xreadlink.c:
74855         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74856
74857         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74858         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74859         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74860         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74861         and don't include <sys/file.h>).
74862
74863 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74864
74865         Sync from coreutils.
74866
74867         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74868         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74869         [!LDAV_DONE]: Avoid unused variable warning.
74870
74871 2005-09-21  Bruno Haible  <bruno@clisp.org>
74872
74873         * lib/unicodeio.h (unicode_to_mb): New declaration.
74874
74875 2005-09-20  Derek Price  <derek@ximbiot.com>
74876
74877         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74878         getaddrinfo.h.
74879
74880 2005-09-20  Bruno Haible  <bruno@clisp.org>
74881
74882         * gnulib-tool: Remove trailing slashes from the values specified for
74883         --source-base, --m4-base, --tests-base, --aux-dir.
74884         Suggested by Simon Josefsson <jas@extundo.com>.
74885
74886 2005-09-20  Bruno Haible  <bruno@clisp.org>
74887
74888         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74889         func_modules_to_filelist, func_import, func_create_testdir): Make all
74890         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74891         change when gnulib-tool is invoked in a different locale.
74892
74893 2005-09-19  Simon Josefsson  <jas@extundo.com>
74894
74895         * m4/socklen.m4: Fix typo.
74896
74897 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74898
74899         Use a consistent style for including <config.h>.
74900         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74901         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74902         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74903         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74904         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74905         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74906         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74907         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74908         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74909         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74910         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74911         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74912         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74913         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74914         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74915         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74916         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74917         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74918         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74919         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74920         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74921         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74922         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74923         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74924         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74925         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74926         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74927         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74928         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74929         lib/xstrtoumax.c, lib/yesno.c:
74930         Standardize inclusion of config.h.
74931         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74932         lib/inttostr.h:  Removed inclusion of config.h from header files.
74933         * lib/inttostr.c:  Adjusted in-tree users.
74934         * lib/timespec.h: Remove superfluous warning to include config.h.
74935         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74936         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74937         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74938         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74939         config.h with HAVE_CONFIG_H.
74940
74941 2005-09-19  Jim Meyering  <jim@meyering.net>
74942
74943         * modules/pathmax (License): Change to LGPL.
74944
74945 2005-09-19  Derek Price  <derek@ximbiot.com>
74946
74947         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74948
74949 2005-09-19  Bruno Haible  <bruno@clisp.org>
74950
74951         * gnulib-tool (import): Provide default for --tests-base.
74952
74953 2005-09-19  Bruno Haible  <bruno@clisp.org>
74954
74955         * doc/quote.texi: New file, extracted from gnulib.texi.
74956         * doc/ctime.texi: New file, extracted from gnulib.texi.
74957         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74958         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74959         * doc/gnulib.texi: Include them.
74960
74961 2005-09-18  Bruno Haible  <bruno@clisp.org>
74962
74963         Portability fix.
74964         * gnulib-tool (func_readlink): New function.
74965         (func_ln_if_changed): Use it.
74966
74967 2005-09-18  Bruno Haible  <bruno@clisp.org>
74968
74969         * gnulib-tool: Support --with-tests also with --import.
74970         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74971         (func_import): Use variables $testsbase and $inctests. Emit a
74972         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74973         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74974         SUBDIRS += $testsdir.
74975         (func_create_testdir): Update.
74976
74977 2005-09-18  Bruno Haible  <bruno@clisp.org>
74978
74979         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74980         instead of $dry_run.
74981         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74982         (func_ln_if_changed): Don't handle dry-run here.
74983         (func_import): In dry-run mode, detect more precisely which actions
74984         would be performed, and don't use "...ing" verbs.
74985
74986 2005-09-18  Bruno Haible  <bruno@clisp.org>
74987
74988         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74989         (func_import): Use join on two temporary files instead of three nested
74990         loops, in order to determine which files are new or old.
74991
74992 2005-09-18  Bruno Haible  <bruno@clisp.org>
74993
74994         * gnulib-tool (func_import): Comment out code that spits out the
74995         new files with --dry-run.
74996
74997 2005-09-18  Bruno Haible  <bruno@clisp.org>
74998
74999         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75000
75001 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75002
75003         * lib/stat-time.h: New file.
75004         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75005         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75006         in a different way.
75007         (timespec_cmp): New function.
75008         * lib/utimecmp.c: Include stat-time.h.
75009         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75010         members exist, not on the obsolescent ST_MTIM_NSEC.
75011         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75012
75013 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75014
75015         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75016
75017 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75018
75019         * MODULES.html.sh (File system functions): Add stat-time.
75020         * modules/stat-time: New file.
75021         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75022         is now done in a different way, by the stat-time module.
75023         * modules/utimecmp (Depends-on): Add stat-time.
75024
75025 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         * m4/st_mtim.m4: Remove.  Superseded by...
75028         * m4/stat-time.m4: New file.
75029         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75030         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75031
75032 2005-09-15  Derek Price  <derek@ximbiot.com>
75033
75034         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75035
75036 2005-09-15  Derek Price  <derek@ximbiot.com>
75037
75038         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75039         * lib/regex_internal.c: Ditto, using this...
75040         (__GNUC_PREREQ): ...new macro.
75041         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75042         using...
75043         (__GNUC_PREREQ): ...this new macro.
75044
75045         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75046
75047 2005-09-15  Derek Price  <derek@ximbiot.com>
75048             Paul Eggert  <eggert@cs.ucla.edu>
75049
75050         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75051         changes, consolidating in...
75052         * lib/regex_internal.h: ...this file.
75053
75054 2005-09-13  Jim Meyering  <jim@meyering.net>
75055
75056         * lib/canon-host.c: Filter through gnu indent and reword comments
75057         slightly.
75058         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75059
75060 2005-09-13  Derek Price  <derek@ximbiot.com>
75061
75062         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75063         failure.
75064         Reported by Jim Meyering  <jim@meyering.net>.
75065
75066 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75067
75068         * lib/base64.c: Typo.
75069         (base64_encode): Put b64str in initialized data section.
75070
75071 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75072
75073         Merge glibc and coreutils changes into gnulib, plus a few
75074         extra fixes.
75075         * lib/md5.c: Use #error rather than a string.
75076         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75077         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75078         (__attribute__): Define to empty for non recent-GCC.
75079         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75080         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75081         Renamed from their non-__ counterparts, with new macros replacing
75082         them if not _LIBC.  Add __THROW attribute.
75083         (rol): Remove.
75084         (struct md5_ctx): Align buffer if using GCC.
75085         * lib/sha1.h (struct sha1_ctx): Likewise.
75086         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75087         The old name was backwards.
75088         (NOTSWAP): Remove; not used.
75089         (rol): New macro, moved here from md5.h.
75090         (sha1_process_block): Remove a FIXME that doesn't make sense.
75091
75092 2005-09-12  Derek Price  <derek@ximbiot.com>
75093
75094         Return usable errors from canon-host.
75095         * lib/canon-host.h: New file.
75096         * lib/canon-host.c (canon_host): Wrap...
75097         (canon_host_r): ...this new function, which now relies exclusively on
75098         getaddrinfo.
75099         (ch_strerror): New function.
75100         (last_cherror): New global.
75101         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75102         interface.
75103         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75104         void *.
75105         (freeaddrinfo): Free ai->ai_canonname when set.
75106
75107 2005-09-12  Derek Price  <derek@ximbiot.com>
75108
75109         Make canon-host require getaddrinfo.
75110         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75111         AC_LIBSOURCE canon-host.h.  Call...
75112         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75113         gl_GETADDRINFO.
75114         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75115
75116 2005-09-12  Derek Price  <derek@ximbiot.com>
75117
75118         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75119         LGPL.
75120         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75121
75122 2005-09-12  Derek Price  <derek@ximbiot.com>
75123
75124         * lib/gai_strerror.c: Include config.h when available.  Include
75125         getaddrinfo.h before other headers to test interface.
75126         Reported by Larry Jones <lawrence.jones@ugs.com>.
75127
75128 2005-09-12  Derek Price  <derek@ximbiot.com>
75129             Paul Eggert  <eggert@cs.ucla.edu>
75130
75131         * modules/glob (Files): Add glob-libc.h.
75132
75133 2005-09-12  Derek Price  <derek@ximbiot.com>
75134             Paul Eggert  <eggert@cs.ucla.edu>
75135
75136         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75137         glob_.h, glob-libc.h.
75138         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75139
75140 2005-09-12  Derek Price  <derek@ximbiot.com>
75141             Paul Eggert  <eggert@cs.ucla.edu>
75142
75143         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75144         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75145         protecting things that should be done only in gnulib contexts.
75146         * lib/glob_.h: New file, containing only the glob things needed for
75147         gnulib.
75148         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75149         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75150         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75151         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75152         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75153         and to respect the namespace rules better.
75154
75155 2005-09-08  Simon Josefsson  <jas@extundo.com>
75156
75157         * modules/socklen: New file.
75158
75159 2005-09-08  Simon Josefsson  <jas@extundo.com>
75160
75161         * m4/socklen.m4: New file.
75162
75163 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75164
75165         * modules/utimens (Files): Add m4/utimbuf.m4, since
75166         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75167         Reported by Sergey Poznyakoff.
75168
75169 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75170
75171         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75172         definitions, since that's the preferred style in glibc.
75173         Fix a minor spacing issue, and update copyright notice to match
75174         glibc's.
75175
75176 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75177
75178         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75179
75180 2005-09-06  Simon Josefsson  <jas@extundo.com>
75181
75182         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75183         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75184
75185 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75186
75187         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75188         warning.
75189
75190 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75191
75192         * config/srclist.txt: Add glibc bug 1302.
75193
75194 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75195
75196         Change bitset word type from unsigned int to unsigned long int,
75197         as this has better performance on typical 64-bit hosts.
75198         Port bitset code to hosts with unusual word sizes.
75199         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75200         (build_collating_symbol):
75201         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75202         argument is a bitset.  This is merely a style issue, but it makes
75203         it clearer that an entire array is expected.
75204         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75205         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75206         Port to the case where bitset_word is not the same as unsigned int.
75207         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75208         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75209         Likewise.
75210         * lib/regexec.c (check_dst_limits_calc_pos_1,
75211         check_subexp_matching_top):
75212         (build_trtable, group_nodes_into_DFAstates):
75213         Likewise.
75214         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75215         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75216         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75217         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75218         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75219         * lib/regcomp.c (optimize_subexps, lower_subexp):
75220         Work even if bitset_word has holes in its bitwise representation.
75221         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75222         * lib/regexec.c (check_dst_limits_calc_pos_1,
75223         check_subexp_matching_top):
75224         Likewise.
75225         * lib/regex_internal.c (re_string_reconstruct):
75226         Don't assume UCHAR_MAX == 255.
75227         * lib/regex_internal.h (bitset_set_all): Likewise.
75228         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75229         All uses changed.
75230         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75231         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75232         All uses changed.
75233         (BITSET_WORD_MAX): New macro.
75234         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75235         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75236         (bitset_empty, bitset_copy):
75237         Prefer sizeof (bitset) to multiplying it out ourselves.
75238         (bitset_not_merge): Remove; unused.
75239         (bitset_contain): Return bool, not unsigned int with one bit on.
75240         All callers changed.
75241         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75242         alignment than re_node_set; do this by defining a new internal
75243         type struct dests_alloc and using it to allocate memory.
75244
75245 2005-09-05  Bruno Haible  <bruno@clisp.org>
75246
75247         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75248         links.
75249
75250 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75251
75252         * modules/size_max (Makefile.am): Add size_max.h
75253
75254 2005-09-04  Derek Price  <derek@ximbiot.com>
75255
75256         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75257
75258 2005-09-03  Simon Josefsson  <jas@extundo.com>
75259
75260         * gnulib-tool: Fix typo.
75261
75262 2005-09-03  Simon Josefsson  <jas@extundo.com>
75263
75264         * config/srclist.txt: Add glibc bug 1293.
75265
75266 2005-09-03  Derek Price  <derek@ximbiot.com>
75267
75268         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75269         From Larry Jones <lawrence.jones@ugs.com>.
75270
75271 2005-09-02  Simon Josefsson  <jas@extundo.com>
75272
75273         * modules/socklen: New file.
75274
75275 2005-09-02  Simon Josefsson  <jas@extundo.com>
75276
75277         * modules/havelib: New module.
75278
75279         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75280         Use havelib.
75281
75282 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75283
75284         Check for arithmetic overflow when calculating sizes, to prevent
75285         some buffer-overflow issues.  These patches are conservative, in the
75286         sense that when I couldn't determine whether an overflow was possible,
75287         I inserted a run-time check.
75288         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75289         macros.
75290         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75291         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75292         (re_xnrealloc, re_x2nrealloc): New inline functions.
75293         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75294         parse_bracket_exp):
75295         (build_equiv_class, build_charclass): Check for arithmetic overflow
75296         in size expression calculations.
75297         * lib/regex_internal.c (re_string_realloc_buffers):
75298         (build_wcs_upper_buffer, re_node_set_add_intersect):
75299         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75300         (re_dfa_add_node, register_state): Likewise.
75301         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75302         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75303         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75304         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75305
75306 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75307
75308         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75309         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75310
75311 2005-09-02  Bruno Haible  <bruno@clisp.org>
75312
75313         Support for lib vs. lib64 distinction on biarch platforms.
75314         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75315         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75316         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75317
75318 2005-09-02  Bruno Haible  <bruno@clisp.org>
75319
75320         * gnulib-tool (import): In the other first-use case, provide defaults
75321         as well.
75322
75323 2005-09-02  Bruno Haible  <bruno@clisp.org>
75324
75325         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75326         patches not yet found in the latest gettext release.
75327
75328 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75329
75330         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75331         to avoid a collision with bits/local_lim.h in glibc.
75332         All uses changed.  Problem reported by Dmitry V. Levin in
75333         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75334
75335         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75336         bugs in int versus size_t comparisons.
75337         (re_string_context_at): Fix bug where the code assumed that
75338         Idx is signed.
75339
75340         Use bool where appropriate.
75341         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75342         All callers changed.
75343         (calc_eclosure_iter): Likewise, for ROOT arg.
75344         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75345         (build_charclass_op): Likewise, for NON_MATCH arg.
75346         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75347         (re_string_construct_common): Likewise, for ICASE arg.
75348         * lib/regexec.c (re_search_2_stub, re_search_stub):
75349         Likewise, for RET_LEN arg.
75350         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75351         (set_regs): Likewise, for FL_BACKTRACK arg.
75352         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75353         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75354         (calc_eclosure_iter, parse_bracket_exp):
75355         Use bool for internal variables that are booleans.
75356         * lib/regexec.c (re_search_internal, check_matching,
75357         proceed_next_node):
75358         (set_regs, build_sifted_states, sift_states_bkref):
75359         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75360         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75361         (find_collation_sequence_value):
75362         Likewise.
75363         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75364         (re_node_set_compare):
75365         Return bool, not int. All callers changed.
75366         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75367         (build_trtable, check_node_accept): Likewise.
75368         * lib/regex_internal.h: Include stdbool.h.
75369
75370         Fix bugs uncovered when converting to bool.
75371         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75372         failure instead of charging ahead blindly.
75373         * lib/regex_internal.c (register_state): Likewise.
75374         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75375         for freeing internal storage.
75376         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75377         bitset pieces used as boolean, to avoid undefined behavior
75378         on hosts that do int overflow checking.
75379
75380 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75381
75382         * config/srclist.txt: Add glibc bugs 1285-1287.
75383
75384 2005-09-01  Jim Meyering  <jim@meyering.net>
75385
75386         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75387         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75388         Require gl_STAT_MACROS, too.
75389
75390 2005-09-01  Bruno Haible  <bruno@clisp.org>
75391
75392         * gnulib-tool (import): In the first-use case, provide defaults.
75393
75394 2005-09-01  Bruno Haible  <bruno@clisp.org>
75395
75396         * gnulib-tool (func_import): Remove the .tmp files.
75397
75398 2005-09-01  Bruno Haible  <bruno@clisp.org>
75399
75400         * gnulib-tool (func_import): Fix handling of symbolic links.
75401
75402 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75403
75404         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75405         old glibc regex code mishandles strings longer than 2**31 bytes.
75406         This patch fixes this when the regex code is used in gnulib
75407         (i.e., outside glibc).
75408
75409         This patch should not affect the use of the regex code inside
75410         glibc.  No doubt this problem also needs to be handled for glibc
75411         as well, but the result will be an incompatible change to the
75412         glibc ABI, and the old ABI will have to be supported too.  That
75413         can be the the subject for another patch.
75414
75415         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75416         governing whether the rest of this patch is active.  By default,
75417         the macro is disabled and the patch has no effect.
75418         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75419         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75420         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75421         (re_match_2, re_set_registers): Use the new types.
75422         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75423         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75424         New macros.
75425         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75426         (re_string_context_at, bin_tree_t, re_dfastate_t):
75427         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75428         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75429         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75430         (re_string_char_size_at, re_string_wchar_at):
75431         (re_string_elem_size_at):
75432         Use the new types and macros to port to 64-bit hosts.
75433         Use unsigned types for internal values, so that the code
75434         mostly works even for arrays larger than SSIZE_MAX.
75435         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75436         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75437         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75438         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75439         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75440         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75441         (calc_inveclosure, parse_dup_op, build_range_exp):
75442         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75443         (fetch_number, create_token_tree, mark_opt_subexp):
75444         Likewise.
75445         * lib/regex_internal.c (re_string_construct_common,
75446         create_ci_newstate):
75447         (create_cd_newstate, re_string_allocate, re_string_construct):
75448         (re_string_realloc_buffers, build_wcs_upper_buffer):
75449         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75450         (re_string_reconstruct, re_string_peek_byte_case):
75451         (re_string_fetch_byte_case, re_string_context_at):
75452         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75453         (re_node_set_init_copy, re_node_set_add_intersect):
75454         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75455         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75456         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75457         (re_acquire_state, re_acquire_state_context, register_state):
75458         Likewise.
75459         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75460         search_cur_bkref_entry):
75461         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75462         (re_search_internal, re_search_2_stub, re_search_stub)
75463         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75464         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75465         (update_cur_sifted_state, check_dst_limits):
75466         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75467         (check_subexp_limits, sift_states_bkref, merge_state_array):
75468         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75469         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75470         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75471         (expand_bkref_cache, check_node_accept_bytes):
75472         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75473         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75474         (acquire_init_state_context, check_halt_node_context):
75475         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75476         (sift_states_backward, clean_state_log_if_needed):
75477         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75478         (find_recover_state, transit_state_sb, transit_state_mb):
75479         (transit_state_bkref, build_trtable, match_ctx_clean):
75480         Likewise.
75481         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75482         to work around an assumption that REG_MISSING is negative.
75483
75484         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75485         (seek_collating_symbol_entry) [defined _LIBC]:
75486         (lookup_collation_sequence_value) [defined _LIBC]:
75487         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75488         Use prototypes rather than old-style function definitions.
75489         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75490         (transit_state_sb) [0]:
75491         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75492
75493         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75494         rm_eo.
75495
75496         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75497         (optimize_subexps, lower_subexp):
75498         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75499         since the signed shift might overflow.  Use 1u<<31 instead.
75500         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75501         Likewise.
75502         * lib/regexec.c (check_dst_limits_calc_pos_1,
75503         check_subexp_matching_top): Likewise.
75504
75505         * lib/regcomp.c (optimize_subexps, lower_subexp):
75506         Use CHAR_BIT rather than 8, for clarity.
75507         * lib/regexec.c (check_dst_limits_calc_pos_1):
75508         (check_subexp_matching_top): Likewise.
75509         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75510         have to worry about portability issues when shifting it left.
75511         Remove no-longer-needed test for table_size > 0.
75512         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75513         in a word, as the resulting behavior is undefined.
75514         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75515         in one case, a <= should have been an <, and in another case the
75516         whole test was missing.
75517         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75518         the standard name CHAR_BIT.
75519         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75520         this is not true on one's complement and signed-magnitude hosts.
75521
75522         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75523         next_last_offset.
75524         (struct re_dfa_t): Remove unused member states_alloc.
75525         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75526
75527 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75528
75529         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75530         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75531         and large-file glibc and in 32-bit large-file Solaris.
75532
75533 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75534
75535         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75536         lengths fit in regoff_t; this isn't true if regoff_t is the same
75537         width as size_t.
75538         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75539         (= START + RANGE) instead of RANGE.  This avoids overflow
75540         problems when regoff_t is the same width as size_t.
75541         All callers changed.
75542         (re_search_2_stub): Check for overflow when adding the
75543         sizes of the two strings.
75544         (re_search_stub): Check for overflow when adding START
75545         to RANGE; if it occurs, substitute the extreme value.
75546
75547 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75548
75549         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75550
75551 2005-08-31  Jim Meyering  <jim@meyering.net>
75552
75553         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75554         a pointer-to-const.
75555         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75556         (register_state): Likewise.
75557         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75558         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75559         (group_nodes_into_DFAstates): Likewise.
75560
75561 2005-08-31  Jim Meyering  <jim@meyering.net>
75562
75563         * check-module: Add a FIXME comment.
75564
75565 2005-08-31  Eric Blake  <ebb9@byu.net>
75566
75567         * modules/unistd-safer (Files): Add unistd--.h.
75568         * modules/stdio-safer (Files): Add stdio--.h.
75569
75570 2005-08-31  Derek Price  <derek@ximbiot.com>
75571
75572         * lib/getdelim.c (getdelim): Return EOF on EOF.
75573         Reported by Larry Jones <lawrence.jones@ugs.com>.
75574
75575 2005-08-31  Bruno Haible  <bruno@clisp.org>
75576
75577         Avoid unnecessary diffs in the generated lib/Makefile.am.
75578         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75579         the generated files.
75580         (func_import): Don't set cmd.
75581
75582 2005-08-31  Bruno Haible  <bruno@clisp.org>
75583
75584         * lib/strstr.c: Include <stddef.h>, for NULL.
75585         * lib/strcasestr.c: Likewise.
75586         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75587
75588 2005-08-31  Bruno Haible  <bruno@clisp.org>
75589
75590         * gnulib-tool: New option --macro-prefix.
75591         (func_import): Use macro_prefix.
75592         (import): Handle option --macro-prefix.
75593
75594 2005-08-31  Bruno Haible  <bruno@clisp.org>
75595
75596         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75597         Also use new variables cached_lgpl, cached_libtool.
75598
75599 2005-08-31  Bruno Haible  <bruno@clisp.org>
75600
75601         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75602         always instantiating them.
75603
75604 2005-08-31  Bruno Haible  <bruno@clisp.org>
75605
75606         * gnulib-tool (func_import): Read the previous cached settings
75607         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75608         earlier added by gnulib but are now dropped. Warn when a gnulib file
75609         overwrites a non-gnulib file.
75610
75611 2005-08-31  Bruno Haible  <bruno@clisp.org>
75612
75613         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75614         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75615         projects that don't keep autogenerated files in CVS. Put into
75616         actioncmd only the specified modules, not the transitive closure.
75617
75618 2005-08-31  Bruno Haible  <bruno@clisp.org>
75619
75620         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75621         Create directories that shall be filled.
75622         (import): Don't look for gl_* macros in configure.ac. Recurse across
75623         all directories containing a gnulib-cache.m4 files, if meaningful.
75624
75625 2005-08-31  Bruno Haible  <bruno@clisp.org>
75626
75627         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75628         (import): Set seen_libtool when we see gl_LIBTOOL.
75629
75630 2005-08-31  Bruno Haible  <bruno@clisp.org>
75631
75632         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75633         declaration macro definitions from generated gnulib.m4.
75634
75635 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75636
75637         * lib/iconvme.h: Add prototype for iconv_alloc.
75638
75639 2005-08-29  Simon Josefsson  <jas@extundo.com>
75640
75641         * lib/iconvme.c: Fix errno.
75642
75643 2005-08-29  Bruno Haible  <bruno@clisp.org>
75644
75645         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75646         that it works when the directory contains spaces.
75647
75648 2005-08-29  Bruno Haible  <bruno@clisp.org>
75649
75650         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75651
75652 2005-08-29  Bruno Haible  <bruno@clisp.org>
75653
75654         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75655         Emit more advice.
75656
75657 2005-08-29  Bruno Haible  <bruno@clisp.org>
75658         and Stepan Kasal  <kasal@ucw.cz>
75659
75660         * check-module: If more parameters are given, check each of them
75661         separately; add more exceptions, as noted by Jim Meyering.
75662         (check_module): New procedure.
75663         (%exempt_header): Now contains all exceptions.
75664
75665 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75666
75667         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75668
75669 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75670
75671         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75672
75673 2005-08-28  Bruno Haible  <bruno@clisp.org>
75674
75675         * m4/gnulib-tool.m4: New file.
75676
75677 2005-08-27  Jim Meyering  <jim@meyering.net>
75678
75679         * modules/unistd-safer (Files): Add pipe-safer.c.
75680         * modules/fcntl-safer (Files): Add creat-safer.c.
75681
75682 2005-08-27  Jim Meyering  <jim@meyering.net>
75683
75684         * m4/stdlib-safer.m4: New file.  From coreutils.
75685         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75686         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75687         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75688         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75689         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75690
75691 2005-08-27  Jim Meyering  <jim@meyering.net>
75692
75693         * lib/fopen-safer.c: Merge minor changes from coreutils.
75694         * lib/dup-safer.c: Likewise.
75695         * lib/fd-safer.c: Likewise.
75696
75697         Merge from coreutils.
75698         * lib/stdio--.h: New file.
75699         * lib/stdlib--.h: New file.
75700         * lib/mkstemp-safer.c: New file.
75701
75702         GNU tar needs these.
75703         * lib/pipe-safer.c: New file.
75704         * lib/creat-safer.c: New file.
75705         * lib/fcntl--.h (creat): Define to creat_safer.
75706         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75707         * lib/unistd--.h (pipe): Define to pipe_safer.
75708         * lib/unistd-safer.h: Declare pipe_safer.
75709
75710 2005-08-26  Simon Josefsson  <jas@extundo.com>
75711
75712         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75713         Haible <bruno@clisp.org>.
75714
75715 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75716
75717         * lib/regex_internal.h: Remove all references to
75718         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75719         or better.
75720         (bitset_not, bitset_merge, bitset_not_merge):
75721         (bitset_mask, re_string_allocate, re_string_construct):
75722         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75723         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75724         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75725         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75726         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75727         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75728         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75729         (re_acquire_state_context):
75730         Remove unnecessary forward decls.
75731         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75732         Put __attribute at function definition,
75733         now that the function decl has been removed.
75734         * lib/regex_internal.c (re_string_peek_byte_case):
75735         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75736         Likewise.
75737
75738 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75739
75740         * m4/regex.m4: Add AC_PREREQ(2.50).
75741         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75742
75743 2005-08-25  Simon Josefsson  <jas@extundo.com>
75744
75745         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75746         __fsetlocking.
75747
75748 2005-08-25  Simon Josefsson  <jas@extundo.com>
75749
75750         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75751         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75752         GLIBC specific code.
75753
75754 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75755
75756         Make regex safe for g++.  This fixes one real bug (an "err"
75757         that should have been "*err").  g++ problem reported by
75758         Sam Steingold.
75759         * lib/regex_internal.h (re_calloc): New macro, consistent with
75760         re_malloc etc.  All callers of calloc changed to use re_calloc.
75761         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75762         not int.  All callers changed.
75763         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75764         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75765         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75766         (find_recover_state): Change "err" to "*err"; this fixes what
75767         appears to be a real bug.
75768         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75769         versus int.
75770
75771 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75772
75773         * modules/regex (Depends-on): Add malloc, since the code
75774         assumes that !malloc(0) means failure.
75775
75776 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75777
75778         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75779
75780         alloca modernization/simplification for regex.
75781         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75782         needs to be at the start of the file, and can be moved into
75783         regex_internal.h and simplified.
75784         * lib/regex_internal.h: Include <alloca.h>.
75785         (__libc_use_alloca) [!defined _LIBC]: New macro.
75786         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75787         now works outside glibc.
75788
75789 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75790
75791         * config/srclist.txt: Add glibc bugs 1241, 1245.
75792
75793 2005-08-25  Jim Meyering  <jim@meyering.net>
75794
75795         * lib/open-safer.c: Include <config.h>.
75796         Otherwise, we'd lose LARGEFILE support in any file using
75797         e.g. "fcntl--.h"
75798
75799 2005-08-25  Bruno Haible  <bruno@clisp.org>
75800
75801         * m4/minmax.m4: Require autoconf 2.52.
75802         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75803         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75804         alternatives of translit over the alphabet.
75805         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75806
75807 2005-08-24  Simon Josefsson  <jas@extundo.com>
75808
75809         * tests/test-getpass.c: New file.
75810
75811 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75812
75813         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75814         for GNU regex features.
75815
75816 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75817
75818         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75819         * lib/regex.h (regerror): Likewise.
75820
75821         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75822         requires this.  (The code never needed it.)
75823
75824         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75825         All uses of recently-renamed identifiers changed to use the new,
75826         POSIX-compliant names.  The code will build and run just fine
75827         without these changes, but it's better to eat our own dog food
75828         and use the standard-conforming names.
75829
75830         * lib/regex.h: Fix a multitude of POSIX name space violations.
75831         These changes have an effect only for programs that define
75832         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75833         do not change anything for programs compiled in the normal way.
75834         Also, there is no effect on the ABI.
75835
75836         (_REGEX_SOURCE): New macro.
75837         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75838         defined and _GNU_SOURCE is not; this fixes a name space violation.
75839
75840         Rename the following macros to obey POSIX requirements.
75841         The old names are still visible as macros if _REGEX_SOURCE is defined.
75842         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75843         RE_BACKSLASH_ESCAPE_IN_LISTS.
75844         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75845         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75846         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75847         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75848         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75849         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75850         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75851         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75852         (REG_INTERVALS): renamed from RE_INTERVALS.
75853         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75854         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75855         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75856         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75857         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75858         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75859         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75860         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75861         RE_UNMATCHED_RIGHT_PAREN_ORD.
75862         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75863         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75864         (REG_DEBUG): renamed from RE_DEBUG.
75865         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75866         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75867         unusual, since we can't clash with the POSIX REG_ICASE.
75868         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75869         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75870         (REG_NO_SUB): renamed from RE_NO_SUB.
75871         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75872         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75873         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75874         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75875         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75876         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75877         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75878         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75879         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75880         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75881         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75882         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75883         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75884         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75885         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75886         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75887         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75888         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75889         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75890         (REG_FIXED): Renamed from REGS_FIXED.
75891         (REG_NREGS): Renamed from RE_NREGS.
75892
75893         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75894         of other REG_* macros, since POSIX says the user is allowed to
75895         #undef these macros selectively.
75896
75897         (reg_errcode_t): Update comment stating what other tables need
75898         to be consistent.
75899
75900         Rename the following enum values to obey POSIX requirements.
75901         The old names are still visible as macros.
75902         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75903         is not defined, since GNU is supposed to be a superset of POSIX as
75904         much as possible, and since we want reg_errcode_t to be a signed
75905         type for implementation consistency.
75906         (_REG_NOERROR): Renamed from REG_NOERROR.
75907         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75908         (_REG_BADPAT): Renamed from REG_BADPAT.
75909         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75910         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75911         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75912         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75913         (_REG_EBRACK): Renamed from REG_EBRACK.
75914         (_REG_EPAREN): Renamed from REG_EPAREN.
75915         (_REG_EBRACE): Renamed from REG_EBRACE.
75916         (_REG_BADBR): Renamed from REG_BADBR.
75917         (_REG_ERANGE): Renamed from REG_ERANGE.
75918         (_REG_ESPACE): Renamed from REG_ESPACE.
75919         (_REG_BADRPT): Renamed from REG_BADRPT.
75920         (_REG_EEND): Renamed from REG_EEND.
75921         (_REG_ESIZE): Renamed from REG_ESIZE.
75922         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75923         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75924         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75925         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75926         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75927
75928         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75929         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75930         changed.  But support the old name if the new one is not defined
75931         and if _REGEX_SOURCE.
75932
75933         Change the following member names in struct re_pattern_buffer.
75934         The old names are still supported if !_REGEX_SOURCE.
75935         The new names are always supported, regardless of _REGEX_SOURCE.
75936         (re_buffer): Renamed from buffer.
75937         (re_allocated): Renamed from allocated.
75938         (re_used): Renamed from used.
75939         (re_syntax): Renamed from syntax.
75940         (re_fastmap): Renamed from fastmap.
75941         (re_translate): Renamed from translate.
75942         (re_can_be_null): Renamed from can_be_null.
75943         (re_regs_allocated): Renamed from regs_allocated.
75944         (re_fastmap_accurate): Renamed from fastmap_accurate.
75945         (re_no_sub): Renamed from no_sub.
75946         (re_not_bol): Renamed from not_bol.
75947         (re_not_eol): Renamed from not_eol.
75948         (re_newline_anchor): Renamed from newline_anchor.
75949
75950         Change the following member names in struct re_registers.
75951         The old names are still supported if !_REGEX_SOURCE.
75952         The new names are always supported, regardless of _REGEX_SOURCE.
75953         (rm_num_regs): Renamed from num_regs.
75954         (rm_start): Renamed from start.
75955         (rm_end): Renamed from end.
75956
75957         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75958         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75959         Prepend __ to parameter names.
75960
75961         Undo yesterday's changes.
75962
75963 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75964
75965         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75966         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75967         lib/regex.c.
75968
75969 2005-08-24  Jim Meyering  <jim@meyering.net>
75970
75971         Sync from coreutils.
75972         * m4/fcntl-safer.m4: New file.
75973
75974         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75975         and object files for this module.
75976
75977 2005-08-24  Jim Meyering  <jim@meyering.net>
75978
75979         Sync from coreutils.
75980         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75981
75982 2005-08-24  Jim Meyering  <jim@meyering.net>
75983
75984         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75985         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75986
75987 2005-08-24  Jim Meyering  <jim@meyering.net>
75988
75989         * modules/fcntl-safer: New module.
75990         * modules/fts (Depends-on): Add fcntl-safer.
75991         * MODULES.html.sh (File descriptor based Input/Output):
75992         Add fcntl-safer.
75993
75994 2005-08-24  Bruno Haible  <bruno@clisp.org>
75995
75996         Support for unit test modules.
75997         * modules/README: Mention tests modules.
75998         * modules/TEMPLATE-TESTS: New file.
75999         * gnulib-tool: New options --extract-tests-module, --with-tests and
76000         --tests-base (unused for the moment).
76001         (testsbase, inctests): New variables.
76002         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76003         (func_verify_module): Exclude TEMPLATE-TESTS.
76004         (func_verify_nontests_module, func_verify_tests_module): New functions.
76005         (func_get_dependencies): Add implicit dependency for tests modules.
76006         (func_get_tests_module): New function.
76007         (func_modules_transitive_closure): When --with-tests was specified,
76008         include the unit tests as well, unless explicitly avoided.
76009         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76010         (func_emit_tests_Makefile_am): New function.
76011         (func_create_testdir): When --with-tests was specified, emit a
76012         tests/ directory.
76013         * MODULES.html.sh (Future developments): Update.
76014
76015 2005-08-24  Bruno Haible  <bruno@clisp.org>
76016
76017         * modules/tls-tests: New file.
76018         * tests/test-tls.c: New file, from GNU gettext.
76019
76020 2005-08-24  Bruno Haible  <bruno@clisp.org>
76021
76022         * modules/lock-tests: New file.
76023         * tests/test-lock.c: New file, from GNU gettext.
76024
76025 2005-08-24  Bruno Haible  <bruno@clisp.org>
76026
76027         * lib/lock.h: Add multiple inclusion guard.
76028         * lib/tls.h: Add multiple inclusion guard.
76029
76030 2005-08-24  Bruno Haible  <bruno@clisp.org>
76031
76032         * gnulib-tool: Add support for the --aux-dir option to
76033         --create-testdir, --create-megatestdir, --test, --megatest.
76034         (func_create_testdir, func_create_megatestdir): Optionally emit a
76035         AC_CONFIG_AUX_DIR directive.
76036         (create-testdir, create-megatestdir, test, megatest): Provide a
76037         default value for $auxdir.
76038
76039 2005-08-24  Bruno Haible  <bruno@clisp.org>
76040
76041         * gnulib-tool (import): Use compound statement instead of subshell
76042         where possible.
76043
76044 2005-08-24  Bruno Haible  <bruno@clisp.org>
76045
76046         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76047
76048 2005-08-24  Bruno Haible  <bruno@clisp.org>
76049
76050         * gnulib-tool (func_version): Update.
76051
76052 2005-08-24  Bruno Haible  <bruno@clisp.org>
76053
76054         * gnulib-tool (func_import, func_create_testdir,
76055         func_create_megatestdir): Quote all autoconf macro arguments.
76056
76057 2005-08-24  Bruno Haible  <bruno@clisp.org>
76058
76059         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76060         option --force, because --force causes the aclocal.m4 of each
76061         subdirectory to be newer than the corresponding config.h.in.
76062
76063 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76064
76065         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76066         All contents moved to gl_REGEX.
76067         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76068         assume that it does.
76069
76070 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76071
76072         * lib/regex.h (REG_NOSYS)
76073         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76074         Define, since POSIX requires it as of 2001.
76075         (_REG_ENOSYS)
76076         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76077         New private symbol, used to keep the enum signed in all cases.
76078         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76079         Youngman in
76080         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76081
76082         * lib/regex_internal.c (re_string_skip_chars, register_state):
76083         (calc_state_hash):
76084         Remove forward decls; no longer needed now that we use prototypes.
76085         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76086         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76087         (clean_state_log_if_needed): Likewise.
76088
76089 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76090
76091         * config/srclist.txt: Add glibc bugs 1231-1233.
76092
76093 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         Fix problems reported by Sam Steingold in
76096         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76097         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76098         assumed that reg_errcode_t is a signed type, which is not
76099         necessarily true if _XOPEN_SOURCE is not defined.
76100         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76101         since some compilers warn about it otherwise.
76102
76103 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76104
76105         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76106         (init_word_char, create_initial_state, duplicate_node_closure):
76107         (fetch_token, peek_token_bracket, build_range_exp):
76108         (build_collating_symbol): Remove forward decls; no longer needed
76109         now that we use prototypes.
76110
76111         * lib/regcomp.c:
76112         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76113         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76114         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76115         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76116         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76117         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76118         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76119         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76120         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76121         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76122         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76123         (build_charclass, build_charclass_op, fetch_number, create_tree):
76124         (create_token_tree, mark_opt_subexp, duplicate_tree):
76125         Use prototypes rather than old-style definitions.
76126
76127         * lib/regex_internal.c:
76128         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76129         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76130         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76131         (re_string_reconstruct, re_string_peek_byte_case):
76132         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76133         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76134         (re_node_set_init_copy, re_node_set_add_intersect):
76135         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76136         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76137         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76138         (re_acquire_state, re_acquire_state_context, register_state):
76139         (create_ci_newstate, create_cd_newstate, free_state):
76140         Likewise.
76141         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76142         re_search_2):
76143         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76144         (re_search_internal, prune_impossible_nodes):
76145         (acquire_init_state_context, check_matching, static):
76146         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76147         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76148         (update_regs, sift_states_backward, build_sifted_states):
76149         (clean_state_log_if_needed, merge_state_array):
76150         (update_cur_sifted_state, add_epsilon_src_nodes):
76151         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76152         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76153         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76154         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76155         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76156         (check_arrival, check_arrival_add_next_nodes):
76157         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76158         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76159         (check_node_accept_bytes, check_node_accept, extend_buffers):
76160         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76161         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76162         (sift_ctx_init):
76163         Likewise.
76164
76165         * lib/regex_internal.h:
76166         (re_string_allocate, re_string_construct, re_string_reconstruct):
76167         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76168         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76169         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76170         (re_string_context_at, re_string_peek_byte_case):
76171         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76172         is defined, since we now use prototypes always.
76173
76174         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76175         C89 or better.  All uses removed.
76176
76177 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76178
76179         * config/srclist.txt: Add glibc bugs 1220-1227.
76180
76181 2005-08-20  Jim Meyering  <jim@meyering.net>
76182
76183         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76184         of unused local, dfa.
76185
76186 2005-08-20  Bruno Haible  <bruno@clisp.org>
76187
76188         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76189
76190 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76191
76192         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76193         (re_node_set_insert_last, re_dfa_add_node):
76194         Rename local variables to avoid GCC shadowing warnings.
76195
76196 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76197
76198         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76199         [defined lint]: Suppress bogus uninitialized-variable warnings.
76200
76201         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76202         and let the caller return REG_ESPACE if out of space.  This
76203         removes an uninitialied-variable warning with GCC 4.0.1, and also
76204         avoids taking the address of a local variable.  All callers
76205         changed.
76206
76207 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76208
76209         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76210         $LIBCSRC/posix/regexec.c.
76211         Add glibc bug 1217 for regcomp.c.
76212
76213 2005-08-19  Jim Meyering  <jim@meyering.net>
76214
76215         * lib/regexec.c (proceed_next_node): Redo local variables to
76216         avoid GCC shadowing warnings.
76217
76218 2005-08-18  Bruno Haible  <bruno@clisp.org>
76219
76220         * lib/strstr.c (strstr): Fix return value in multibyte case.
76221         * lib/strcasestr.c (strcasestr): Likewise.
76222
76223 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76224
76225         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76226
76227 2005-08-17  Jim Meyering  <jim@meyering.net>
76228
76229         Make the %s format (seconds since the epoch) work for a negative
76230         number and when used with a zero-padded field width, e.g. %015s.
76231
76232         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76233         label so that it precedes the code to set `digits'.  Otherwise,
76234         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76235         print `00-22'.  Now, it prints `-0022', as it should.
76236
76237 2005-08-17  Bruno Haible  <bruno@clisp.org>
76238
76239         * modules/strstr (Files): Add m4/mbrtowc.m4.
76240         (Depends-on): Add mbuiter.
76241
76242 2005-08-17  Bruno Haible  <bruno@clisp.org>
76243
76244         * modules/strcasestr: New file.
76245         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76246         strcasestr.
76247
76248 2005-08-17  Bruno Haible  <bruno@clisp.org>
76249
76250         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76251
76252 2005-08-17  Bruno Haible  <bruno@clisp.org>
76253
76254         * modules/mbuiter: New file.
76255         * MODULES.html.sh (Extended multibyte and wide character utilities):
76256         Add mbuiter.
76257
76258 2005-08-17  Bruno Haible  <bruno@clisp.org>
76259
76260         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76261         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76262
76263 2005-08-17  Bruno Haible  <bruno@clisp.org>
76264
76265         * m4/strcasestr.m4: New file.
76266
76267 2005-08-17  Bruno Haible  <bruno@clisp.org>
76268
76269         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76270         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76271
76272 2005-08-17  Bruno Haible  <bruno@clisp.org>
76273
76274         * lib/strcasestr.h: New file.
76275         * lib/strcasestr.c: New file.
76276
76277 2005-08-17  Bruno Haible  <bruno@clisp.org>
76278
76279         * lib/strcasecmp.c: Use mbuiter.h.
76280
76281 2005-08-17  Bruno Haible  <bruno@clisp.org>
76282
76283         * lib/mbuiter.h: New file.
76284
76285 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76286
76287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76288         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76289         and gl_GETOPT are both invoked via different paths (as happens
76290         with GNU tar CVS because it uses both argp and getopt), the former
76291         wins.
76292
76293 2005-08-16  Bruno Haible  <bruno@clisp.org>
76294
76295         * modules/tls: New file.
76296         * MODULES.html.sh (Multithreading): Add tls.
76297
76298 2005-08-16  Bruno Haible  <bruno@clisp.org>
76299
76300         * modules/strnlen1: New file.
76301         * MODULES.html.sh (String handling): Add strnlen1.
76302
76303 2005-08-16  Bruno Haible  <bruno@clisp.org>
76304
76305         * modules/strcase (Files): Add m4/mbrtowc.m4.
76306         (Depends-on): Add strnlen1, mbchar.
76307
76308 2005-08-16  Bruno Haible  <bruno@clisp.org>
76309
76310         * modules/mbiter: New file.
76311         * MODULES.html.sh (Extended multibyte and wide character utilities):
76312         Add mbiter.
76313
76314 2005-08-16  Bruno Haible  <bruno@clisp.org>
76315
76316         * modules/mbfile: New file.
76317         * MODULES.html.sh (Extended multibyte and wide character utilities):
76318         Add mbfile.
76319
76320 2005-08-16  Bruno Haible  <bruno@clisp.org>
76321
76322         * modules/mbchar: New file.
76323         * MODULES.html.sh (Extended multibyte and wide character utilities):
76324         New section.
76325
76326 2005-08-16  Bruno Haible  <bruno@clisp.org>
76327
76328         * m4/tls.m4: New file, from GNU gettext.
76329
76330 2005-08-16  Bruno Haible  <bruno@clisp.org>
76331
76332         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76333         always.
76334         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76335
76336 2005-08-16  Bruno Haible  <bruno@clisp.org>
76337
76338         * m4/mbiter.m4: New file.
76339
76340 2005-08-16  Bruno Haible  <bruno@clisp.org>
76341
76342         * m4/mbfile.m4: New file.
76343
76344 2005-08-16  Bruno Haible  <bruno@clisp.org>
76345
76346         * m4/mbchar.m4: New file.
76347
76348 2005-08-16  Bruno Haible  <bruno@clisp.org>
76349
76350         * lib/tls.h: New file, from GNU gettext.
76351         * lib/tls.c: New file, from GNU gettext.
76352
76353 2005-08-16  Bruno Haible  <bruno@clisp.org>
76354
76355         * lib/strnlen1.h: New file.
76356         * lib/strnlen1.c: New file.
76357
76358 2005-08-16  Bruno Haible  <bruno@clisp.org>
76359
76360         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76361         (mbi_init): Update.
76362         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76363         NUL byte, not after it.
76364
76365 2005-08-16  Bruno Haible  <bruno@clisp.org>
76366
76367         * lib/strcase.h (strcasecmp): Add note in comments.
76368         * lib/strncasecmp.c: Use code from strcasecmp.c.
76369         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76370         (strcasecmp): Work correctly in multibyte locales.
76371
76372 2005-08-16  Bruno Haible  <bruno@clisp.org>
76373
76374         * lib/mbiter.h: New file.
76375
76376 2005-08-16  Bruno Haible  <bruno@clisp.org>
76377
76378         * lib/mbfile.h: New file.
76379
76380 2005-08-16  Bruno Haible  <bruno@clisp.org>
76381
76382         * lib/mbchar.h: New file.
76383         * lib/mbchar.c: New file.
76384
76385 2005-08-16  Bruno Haible  <bruno@clisp.org>
76386
76387         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76388         the valid ones. Makes the comparison operations transitive:
76389         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76390         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76391
76392 2005-08-15  Simon Josefsson  <jas@extundo.com>
76393
76394         * modules/ssize_t (License): Change to 'unlimited'.
76395
76396         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76397
76398 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76399
76400         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76401         Add comments for each pending glibc patch.
76402
76403 2005-08-15  Bruno Haible  <bruno@clisp.org>
76404
76405         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76406         __cplusplus is defined.
76407
76408 2005-08-14  Jim Meyering  <jim@meyering.net>
76409
76410         Sync from coreutils.
76411
76412         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76413         Use the hash-table-based cycle-detection code not just when
76414         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76415         Reported by James Youngman in
76416         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76417         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76418         FTS_TIGHT_CYCLE_CHECK.
76419         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76420         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76421         once again.
76422         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76423         * lib/fts.c (fd_safer): Remove decl.
76424         Include fcntl--.h rather than unistd-safer.h
76425         (fts_safe_changedir): Don't call fd_safer; no longer needed
76426         now that we include fcntl--.h.
76427
76428 2005-08-12  Simon Josefsson  <jas@extundo.com>
76429
76430         * modules/getndelim2: Use ssize_t module.
76431         * modules/getnline: Likewise.
76432         * modules/safe-read: Likewise.
76433         * modules/xreadlink: Likewise.
76434
76435         * modules/ssize_t: New file.
76436
76437 2005-08-12  Simon Josefsson  <jas@extundo.com>
76438
76439         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76440
76441 2005-08-12  Simon Josefsson  <jas@extundo.com>
76442
76443         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76444         ssize_t.
76445
76446 2005-08-12  Simon Josefsson  <jas@extundo.com>
76447
76448         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76449         readline, getdelim and check_version.
76450         (Support for systems lacking ISO C 99: Sizes of integer types):
76451         Add size_max.
76452
76453 2005-08-12  Bruno Haible  <bruno@clisp.org>
76454
76455         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76456
76457 2005-08-11  Simon Josefsson  <jas@extundo.com>
76458
76459         * modules/readline: New file.
76460
76461         * modules/strnlen (Files): Add strnlen.h.
76462
76463 2005-08-11  Simon Josefsson  <jas@extundo.com>
76464
76465         * m4/readline.m4: New file.
76466
76467 2005-08-11  Simon Josefsson  <jas@extundo.com>
76468
76469         * lib/readline.h, readline.c: New file.
76470
76471 2005-08-11  Simon Josefsson  <jas@extundo.com>
76472
76473         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76474         gl_AVOID.
76475
76476 2005-08-11  Bruno Haible  <bruno@clisp.org>
76477
76478         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76479
76480 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76481
76482         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76483
76484 2005-08-10  Simon Josefsson  <jas@extundo.com>
76485
76486         * tests/test-iconvme.c: New file.
76487
76488 2005-08-10  Simon Josefsson  <jas@extundo.com>
76489
76490         * m4/strnlen.m4: New file.
76491
76492         * m4/strndup.m4: Don't check for strnlen declaration, done in
76493         strnlen.m4.
76494
76495 2005-08-10  Simon Josefsson  <jas@extundo.com>
76496
76497         * lib/strndup.c: Use strnlen.h.
76498
76499         * lib/strnlen.h: New file.
76500
76501 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76502
76503         * README: Typos.
76504
76505 2005-08-02  Simon Josefsson  <jas@extundo.com>
76506
76507         * modules/readline: New file.
76508
76509 2005-08-02  Simon Josefsson  <jas@extundo.com>
76510
76511         * modules/getdelim: New file.
76512
76513         * modules/getline: Rewrite, don't use getndelim2.
76514
76515 2005-08-02  Simon Josefsson  <jas@extundo.com>
76516
76517         * m4/getline.m4: Separate out getdelim stuff into separate module.
76518
76519         * m4/getdelim.m4: New file.
76520
76521 2005-08-02  Simon Josefsson  <jas@extundo.com>
76522
76523         * lib/getline.h, getline.c: Rewrite.
76524
76525         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76526
76527 2005-07-31  Bruno Haible  <bruno@clisp.org>
76528
76529         * lib/lock.h (gl_lock_initializer): New macro.
76530         (gl_lock_define_initialized): Use it.
76531         (gl_rwlock_initializer): New macro.
76532         (gl_rwlock_define_initialized): Use it.
76533         (gl_recursive_lock_initializer): New macro.
76534         (gl_recursive_lock_define_initialized): Use it.
76535
76536 2005-07-30  Karl Berry  <karl@gnu.org>
76537
76538         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76539         Report from Ben Pfaff, regarding getopt.
76540
76541 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76542
76543         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76544         normal way.
76545         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76546         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76547         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76548         (gl_GETOPT): Use the new macros.  Most of the implementation
76549         is moved to the new macros.  This is for programs like Emacs
76550         that don't want all the functionality of gl_GETOPT.
76551
76552 2005-07-26  Bruno Haible  <bruno@clisp.org>
76553
76554         * m4/lock.m4: Update from GNU gettext.
76555
76556 2005-07-26  Bruno Haible  <bruno@clisp.org>
76557
76558         * lib/lock.h: Update from GNU gettext.
76559         * lib/lock.c: Update from GNU gettext.
76560
76561 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76562
76563         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76564         obsolescent AC_TRY_RUN.  Include the default includes files, for
76565         'exit'.
76566
76567 2005-07-24  Bruno Haible  <bruno@clisp.org>
76568
76569         * modules/visibility: New file.
76570         * MODULES.html.sh (Misc): Add visibility.
76571
76572 2005-07-24  Bruno Haible  <bruno@clisp.org>
76573
76574         * m4/visibility.m4: New file.
76575
76576 2005-07-24  Bruno Haible  <bruno@clisp.org>
76577
76578         * doc/visibility.texi: New file.
76579
76580 2005-07-22  Bruno Haible  <bruno@clisp.org>
76581
76582         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76583         $(ALLOCA_H), redundant through BUILT_SOURCES.
76584         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76585         redundant through BUILT_SOURCES.
76586         * modules/byteswap (Makefile.am): Remove explicit dependency on
76587         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76588         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76589         $(FNMATCH_H), redundant through BUILT_SOURCES.
76590         * modules/getopt (Makefile.am): Remove explicit dependency on
76591         $(GETOPT_H), redundant through BUILT_SOURCES.
76592         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76593         redundant through BUILT_SOURCES.
76594         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76595         redundant through BUILT_SOURCES.
76596         * modules/stdbool (Makefile.am): Remove explicit dependency on
76597         $(STDBOOL_H), redundant through BUILT_SOURCES.
76598         * modules/stdint (Makefile.am): Remove explicit dependency on
76599         $(STDINT_H), redundant through BUILT_SOURCES.
76600         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76601         Remove explicit dependency on $(SYSEXITS_H).
76602         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76603
76604 2005-07-18  Simon Josefsson  <jas@extundo.com>
76605
76606         * lib/check-version.c (check_version): Accept identical versions too.
76607
76608 2005-07-18  Bruno Haible  <bruno@clisp.org>
76609
76610         * modules/lock: New file.
76611         * MODULES.html.sh (Multithreading): New section.
76612
76613 2005-07-18  Bruno Haible  <bruno@clisp.org>
76614
76615         * m4/lock.m4: New file, from GNU gettext.
76616
76617 2005-07-18  Bruno Haible  <bruno@clisp.org>
76618
76619         * lib/lock.h: New file, from GNU gettext.
76620         * lib/lock.c: New file, from GNU gettext.
76621
76622 2005-07-18  Bruno Haible  <bruno@clisp.org>
76623
76624         * lib/lock.h (gl_once_t): New type.
76625         (gl_once_define, gl_once): New macros.
76626         * lib/lock.c (fresh_once): New variable.
76627         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76628         functions.
76629
76630 2005-07-16  Simon Josefsson  <jas@extundo.com>
76631
76632         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76633         workaround, suggested by Bruno.
76634
76635 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76636
76637         * modules/xalloc (Depends-on): Add xalloc-die.
76638         * modules/xvasprintf (Depends-on): Add xalloc-die.
76639
76640 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76641
76642         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76643         with a minor change.
76644
76645 2005-07-15  Bruno Haible  <bruno@clisp.org>
76646
76647         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76648         When using lib/poll.c, define poll as rpl_poll.
76649
76650 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76651
76652         * modules/argp (Depends-on): Remove unlocked-io.
76653
76654 2005-07-14  Derek Price  <derek@ximbiot.com>
76655
76656         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76657         for glob symlink bug.
76658
76659 2005-07-14  Bruno Haible  <bruno@clisp.org>
76660
76661         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76662         Instead, test for *_unlocked function declarations directly.
76663
76664 2005-07-11  Simon Josefsson  <jas@extundo.com>
76665
76666         * modules/size_max: New file.
76667
76668         * modules/xsize: Depend on size_max module for size_max.m4.
76669
76670 2005-07-11  Simon Josefsson  <jas@extundo.com>
76671
76672         * lib/size_max.h: New file.
76673
76674 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76675
76676         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76677         copyright symbol and the year.
76678         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76679         (version_etc_va): Use parameterized copyright notice.
76680         Reword to conform to the current GNU coding standards.
76681
76682 2005-07-11  Karl Berry  <karl@gnu.org>
76683
76684         * doc/gnulib.texi (Quoting): new node.
76685         (Initial import): more info, from Patrice.
76686
76687 2005-07-11  Bruno Haible  <bruno@clisp.org>
76688
76689         * gnulib-tool (func_usage): Document option --avoid.
76690         (Command line options): Handle --avoid.
76691         (func_acceptable): New function.
76692         (func_modules_transitive_closure): Use it.
76693
76694 2005-07-11  Bruno Haible  <bruno@clisp.org>
76695
76696         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76697         Reported by Jim Meyering.
76698
76699 2005-07-10  Bruno Haible  <bruno@clisp.org>
76700
76701         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76702         Needed when size_t is smaller than 'unsigned int'.
76703         Reported by Paul Eggert.
76704
76705 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76706
76707         * modules/argp (Depends-on): Add unlocked-io
76708
76709 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76710
76711         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76712         block of defines.
76713
76714 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76715
76716         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76717         fix now.
76718
76719 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76720         and Paul Eggert  <eggert@cs.ucla.edu>
76721
76722         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76723         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76724
76725 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * modules/regex (Files): Add lib/regex_internal.c,
76728         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76729         (Depends-on): Add extensions.
76730         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76731
76732 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76733
76734         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76735         pathconf.
76736         * m4/same.m4 (gl_SAME): Likewise.
76737         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76738
76739         * m4/regex.m4: Adjust to new libc regex implementation.
76740         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76741         all the .c and .h parts of (the new) regex.
76742         Quote the m4 stuff better.
76743         Check for RE_ICASE bug of old gnulib.
76744         Check for REG_STARTEND of recent libc.
76745         Rename local variables from jm_* to gl_*.
76746         Quote operand of "test -f".
76747         Say "recent enough" version of libc, not "version 2".
76748         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76749         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76750         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76751         Remove check for btowc, isascii.
76752         Require AM_LANGINFO_CODESET.
76753
76754 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76755
76756         * lib/regex.c, regex.h: Sync from libc.
76757         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76758         * lib/regexec.c:
76759         New files, synced from libc, except that regex_internal.h
76760         currently has a small porting fix.
76761
76762 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76763
76764         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76765         regex_internal.c, regexec.c.
76766         Add regex_internal.h too, but as a comment, since the libc version
76767         is currently broken in gnulib mode.
76768
76769 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76770
76771         Support programs like Emacs that use gnulib but not gettext.
76772         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76773         * modules/gettext-h: New file.
76774         * modules/gettext (Files): Remove lib/gettext.h.
76775         (Depends-on): Add gettext-h.
76776         (Makefile.am): Remove lib_SOURCES.
76777         * modules/argmatch, modules/c-stack, modules/closeout:
76778         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76779         * modules/execute, modules/file-type, modules/getaddrinfo:
76780         * modules/getopt, modules/human, modules/javacomp:
76781         * modules/javaexec, modules/mkdir-p, modules/obstack:
76782         * modules/openat, modules/pagealign_alloc, modules/pipe:
76783         * modules/quotearg, modules/regex, modules/rpmatch:
76784         * modules/unicodeio, modules/userspec, modules/version-etc:
76785         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76786         * modules/xsetenv:
76787         Depend on gettext-h, not gettext.
76788
76789 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76790
76791         * gnulib-tool (func_import): Add support for 'public domain' license.
76792         * modules/alloca, modules/atexit, modules/memmove:
76793         Now public domain, not GPL.
76794         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76795         * modules/realloc, modules/strerror, modules/strtod:
76796         Now LGPL, not GPL.
76797
76798 2005-07-05  Bruno Haible  <bruno@clisp.org>
76799
76800         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76801         autoconf CVS. Needed for mingw.
76802
76803 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76804
76805         Remove the dependency of the strftime module on the tzset module.
76806         * modules/strftime (Depends-on): Remove dependency on tzset.
76807
76808 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76809
76810         Remove the dependency of the strftime module on the tzset module.
76811         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76812         gl_FUNC_TZSET_CLOBBER.
76813
76814 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76815
76816         Remove the dependency of the strftime module on the tzset module.
76817         * lib/strftime.c (my_strftime)
76818         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76819         Copy the input structure, to work around some of the bug with
76820         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76821         Solaris releases, you should also use the tzset module, but we won't
76822         require it as a dependency any more since we don't want LGPLed code
76823         to depend on GPLed code.
76824
76825 2005-07-02  Jim Meyering  <jim@meyering.net>
76826
76827         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76828         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76829         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76830         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76831
76832 2005-07-02  Jim Meyering  <jim@meyering.net>
76833
76834         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76835
76836 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76837
76838         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76839         declares only 'struct timespec;' (!).
76840
76841 2005-07-01  Jim Meyering  <jim@meyering.net>
76842
76843         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76844         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76845         * lib/save-cwd.c, tempname.c:
76846         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76847         and don't include <sys/file.h>).
76848
76849 2005-06-29  Jim Meyering  <jim@meyering.net>
76850
76851         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76852         type name.  Use the variable name instead.
76853         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76854         Likewise.
76855
76856 2005-06-28  Simon Josefsson  <jas@extundo.com>
76857
76858         * modules/check-version (Files): Add check-version.m4.
76859
76860 2005-06-28  Simon Josefsson  <jas@extundo.com>
76861
76862         * m4/check-version.m4: New file, suggested by Jim Meyering
76863         <jim@meyering.net>.
76864
76865 2005-06-28  Simon Josefsson  <jas@extundo.com>
76866
76867         * lib/check-version.h, lib/check-version.c: New files.
76868
76869 2005-06-28  Simon Josefsson  <jas@extundo.com>
76870
76871         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76872         collision with global variable.  Better indentation.  Don't
76873         increment buffer pointer beyond buffer end.  Based on comments
76874         from Paul Eggert <eggert@cs.ucla.edu>.
76875
76876         * lib/base64.h: Indent.
76877
76878 2005-06-28  Simon Josefsson  <jas@extundo.com>
76879
76880         * doc/gnulib.texi (Library version handling): New section.
76881
76882 2005-06-28  Jim Meyering  <jim@meyering.net>
76883
76884         * check-module (find_included_lib_files): Hard-code another
76885         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76886         but modules/fts-lgpl (correctly) does not list those files.
76887
76888         * modules/canonicalize (Files): Add lib/pathmax.h.
76889
76890 2005-06-25  Simon Josefsson  <jas@extundo.com>
76891
76892         * modules/check-version: New file.
76893
76894 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76895
76896         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76897         initializer of struct addrinfo, as an indication that we don't
76898         care how many members the structure has.
76899
76900 2005-06-24  Derek Price  <derek@ximbiot.com>
76901         and Bruno Haible  <bruno@clisp.org>
76902
76903         Remove stat module & update lstat.
76904         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76905         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76906         * m4/stat.m4: Remove this file.
76907
76908 2005-06-24  Derek Price  <derek@ximbiot.com>
76909         and Bruno Haible  <bruno@clisp.org>
76910
76911         Remove stat module & update lstat.
76912         * lib/stat.c: Remove this file...
76913         (slash_aware_lstat): ...moving this content and its support...
76914         * lib/lstat.c (rpl_lstat): ...into here.
76915         * lib/lstat.h: New file.
76916
76917 2005-06-24  Derek Price  <derek@ximbiot.com>
76918         and Bruno Haible  <bruno@clisp.org>
76919
76920         Remove stat module & update lstat.
76921         * config/srclist.txt (libc sources): Remove stat.
76922
76923 2005-06-24  Derek Price  <derek@ximbiot.com>
76924         and Bruno Haible  <bruno@clisp.org>
76925
76926         Remove stat module & update lstat.
76927         * MODULES.html.sh (stat): Remove.
76928         * MODULES.html: Regenerated.
76929         * modules/lstat (Description): Correct function name.
76930         (Files): Add "lstat.h".
76931         (Depends-on): Remove stat, add xalloc, stat-macros.
76932         * modules/stat: Remove this file.
76933         (Include): Add "lstat.h", remove <sys/stat.h>.
76934
76935 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76936
76937         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76938         (ranged_convert): Don't save conversion in a temporary struct.
76939         This causes a warning with GCC 4.0.0, and anyway in the typical
76940         case it's not worth the extra 100 bytes or so of code.
76941         (ranged_convert, __mktime_internal): When calling a function via a
76942         pointer P, use P () rather than (*P) (), as we now assume C89 or
76943         better.
76944
76945 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76946
76947         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76948         "who -r" failed to give output.  Problem reported by Tim Waugh.
76949
76950         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76951         (xcalloc): Use it to avoid needless tests.
76952         Problem reported by Jim Meyering.
76953
76954 2005-06-20  Derek Price  <derek@ximbiot.com>
76955
76956         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76957         unnecessary for Autoconfs > 2.59c.
76958
76959 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76960
76961         * lib/argp.h (__option_is_short): Check upper limit of
76962         __key. Isprint() requires its argument to have the value
76963         of an unsigned char or EOF.
76964
76965 2005-06-16  Jim Meyering  <jim@meyering.net>
76966
76967         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76968         when either N or S is zero.
76969
76970 2005-06-16  Derek Price  <derek@ximbiot.com>
76971
76972         * m4/bison.m4: Declare YACC & YFLAGS precious.
76973
76974 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76975
76976         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76977         multibyte string or pattern, fall back on unibyte matching.
76978         Problem reported by James Youngman.
76979
76980 2005-06-08  Bruno Haible  <bruno@clisp.org>
76981
76982         * modules/csharpcomp: New file.
76983         * MODULES.html.sh (C#): Add csharpcomp.
76984
76985 2005-06-08  Bruno Haible  <bruno@clisp.org>
76986
76987         * m4/csharpcomp.m4: New file, from GNU gettext.
76988
76989 2005-06-08  Bruno Haible  <bruno@clisp.org>
76990
76991         * lib/csharpcomp.h: New file, from GNU gettext.
76992         * lib/csharpcomp.c: New file, from GNU gettext.
76993         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76994
76995 2005-06-08  Bruno Haible  <bruno@clisp.org>
76996
76997         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76998         warning on mingw.
76999
77000 2005-06-07  Derek Price  <derek@ximbiot.com>
77001
77002         Sync from CVS.
77003         * lib/glob_.h: Indent nested #ifdef.
77004
77005 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77006
77007         Sync from coreutils.
77008         Use "file name" when talking about file names, instead of "filename"
77009         or "path", as per the GNU coding standards.
77010         * lib/mkdir-p.c: Renamed from makepath.c.
77011         (make_dir_parents): Renamed from make_path.  All callers changed.
77012         * lib/mkdir-p.h: Likewise.  All includers changed.
77013         * lib/filenamecat.c: Renamed from path-concat.c.
77014         (file_name_concat): Renamed from path_concat.  All callers changed.
77015         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77016         * lib/filenamecat.h: Likewise.  All includers changed.
77017         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77018         in comments or local variable names.
77019         * lib/basename.c: Likewise.
77020         * lib/canonicalize.c, canonicalize.h: Likewise.
77021         * lib/dirname.c, dirname.h: Likewise.
77022         * lib/euidaccess.c: Likewise.
77023         * lib/exclude.c: Likewise
77024         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77025         * lib/fsusage.c, fsuage.h: Likewise.
77026         * lib/fts.c, fts_.h: Likewise.
77027         * lib/getcwd.c: Likewise.
77028         * lib/getloadavg.c: Likewise.
77029         * lib/mkstemp.c: Likewise.
77030         * lib/mountlist.c, mountlist.h: Likewise.
77031         * lib/openat.c, openat.h: Likewise.
77032         * lib/readlink-stub.c: Likewise.
77033         * lib/readutmp.c, readutmp.h: Likewise.
77034         * lib/rename.c: Likewise.
77035         * lib/rmdir.c: Likewise.
77036         * lib/same.c: Likewise.
77037         * lib/savedir.c: Likewise.
77038         * lib/stripslash.c: Likewise.
77039         * lib/tempname.c: Likewise.
77040         * lib/xreadlink.c: Likewise.
77041         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77042         All uses changed.
77043         * lib/exclude.h: Likewise.
77044
77045         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77046         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77047         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77048         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77049         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77050         files have been getting away with it for years (MORE/BSD 4.3
77051         is extinct now).
77052         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77053         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77054
77055         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77056         Define to 256, not 255, as per modern POSIX.
77057
77058 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77059
77060         Sync from coreutils.
77061         Use "file name" when talking about file names, instead of "filename"
77062         or "path", as per the GNU coding standards.
77063         * MODULES.html.sh: mkdir-p renamed from makepath.
77064         filenamecat renamed from path-concat.
77065         * modules/filenamecat: Renamed from modules/path-concat.
77066         (Files): filenamecat.h and filenamecat.c renamed from
77067         path-concat.h and path-concat.c.
77068         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77069         (Include): filenamecat.h, not path-concat.h.
77070         * modules/mkdir-p: Renamed from modules/makepath.
77071         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77072         makepath.c.
77073         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77074         (Include): mkdir-p.h, not makepath.h.
77075
77076 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77077
77078         Sync from coreutils.
77079         * m4/mkdir-p.m4: Renamed from makepath.m4.
77080         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77081         Rename files from makepath.c to mkdir-p.c, and from
77082         makepath.h to mkdir-p.h.
77083         * m4/filenamecat.m4: Renamed from path-concat.m4.
77084         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77085         Rename files from path-concat.c to filenamecat.c,
77086         and from path-concat.h to filenamecat.h.
77087         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77088         "file name" in local variables or comments.
77089         * m4/rename.m4: Likewise.
77090
77091 2005-06-01  Bruno Haible  <bruno@clisp.org>
77092
77093         * modules/csharpexec: New file.
77094         * MODULES.html.sh (C#): New section.
77095
77096 2005-06-01  Bruno Haible  <bruno@clisp.org>
77097
77098         * m4/csharp.m4: New file, from GNU gettext.
77099         * m4/csharpexec.m4: New file, from GNU gettext.
77100
77101 2005-06-01  Bruno Haible  <bruno@clisp.org>
77102
77103         * lib/csharpexec.h: New file, from GNU gettext.
77104         * lib/csharpexec.c: New file, from GNU gettext.
77105         * lib/csharpexec.sh.in: New file, from GNU gettext.
77106
77107 2005-05-31  Derek Price  <derek@ximbiot.com>
77108             Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         Sync from cvs.
77111         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77112
77113 2005-05-31  Derek Price  <derek@ximbiot.com>
77114             Paul Eggert  <eggert@cs.ucla.edu>
77115
77116         Sync from cvs.
77117         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77118
77119 2005-05-29  Derek Price  <derek@ximbiot.com>
77120
77121         * config/srclist.txt (glob_.h, glob.c): Add these files.
77122
77123 2005-05-29  Derek Price  <derek@ximbiot.com>
77124
77125         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77126         * modules/glob: New file.
77127         * modules/getlogin_r: Add link to POSIX spec in description.
77128
77129 2005-05-29  Derek Price  <derek@ximbiot.com>
77130             Paul Eggert  <eggert@cs.ucla.edu>
77131
77132         * m4/glob.m4: New file.
77133
77134 2005-05-29  Derek Price  <derek@ximbiot.com>
77135             Paul Eggert  <eggert@cs.ucla.edu>
77136
77137         * lib/glob_.h, lib/glob.c: New files.
77138
77139 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77140
77141         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77142         * modules/fts-lgpl (Depends-on): Remove gettext.
77143
77144 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77145
77146         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77147         and don't require gt_INTTYPES_PRI.
77148
77149 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77150
77151         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77152
77153         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77154         the configuration hassle isn't worth it.
77155         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77156         (LONGEST_MODIFIER, PRIuMAX): Remove.
77157
77158 2005-05-27  Bruno Haible  <bruno@clisp.org>
77159
77160         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77161
77162 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77163
77164         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77165         _POSIX_PTHREAD_SEMANTICS for Solaris.
77166
77167 2005-05-25  Derek Price  <derek@ximbiot.com>
77168
77169         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77170
77171 2005-05-25  Derek Price  <derek@ximbiot.com>
77172             Paul Eggert  <eggert@cs.ucla.edu>
77173
77174         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77175         * lib/getlogin_r.c, getlogin_r.h: New files.
77176
77177 2005-05-25  Bruno Haible  <bruno@clisp.org>
77178             Derek Price  <derek@ximbiot.com>
77179
77180         * lib/getlogin_r.h: Simplify API documentation.
77181
77182 2005-05-23  Derek Price  <derek@ximbiot.com>
77183
77184         * modules/minmax (Files): Add m4/minmax.m4.
77185         (configure.ac): Add gl_MINMAX.
77186
77187 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77188
77189         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77190         so that unistd-safer.h (GPL'ed code) need not be included.
77191
77192 2005-05-22  Bruno Haible  <bruno@clisp.org>
77193
77194         * m4/minmax.m4: New file.
77195         Based on a patch by Derek Price <derek@ximbiot.com>.
77196
77197 2005-05-22  Bruno Haible  <bruno@clisp.org>
77198
77199         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77200         (INT64_MIN): Fix definition.
77201         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77202
77203         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77204         NEED_SIGNED_INT_TYPES.
77205
77206         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77207         HAVE_SYSTEM_INTTYPES.
77208
77209 2005-05-22  Bruno Haible  <bruno@clisp.org>
77210
77211         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77212         Also include <sys/param.h> if it defines MIN, MAX.
77213         Based on a patch by Derek Price <derek@ximbiot.com>.
77214
77215 2005-05-21  Jim Meyering  <jim@meyering.net>
77216
77217         * modules/fts (Files): Add m4/inttypes-pri.m4.
77218         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77219
77220 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77221
77222         New fts module.
77223         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77224         (setup_dir, free_dir): New functions.
77225         (enter_dir, leave_dir): Define trivial
77226         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77227         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77228         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77229         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77230         Move to fts-cycle.c.
77231         (fts_open): Use setup_dir.
77232         (fts_close): Use free_dir.
77233         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77234         This adds a label and some gotos, but the alternatives were messier.
77235         Check for memory allocation failure when entering a dir.
77236         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77237         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77238         (FTS): New member fts_cycle, that is a union that contains the
77239         old active_dir_ht and cycle_state.  All uses changed to mention
77240         fts_cycle.ht and fts_cycle.state.
77241         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77242         fts.c, with the following changes:
77243         (setup_dir, free_dir): New functions.
77244         (enter_dir): Now returns bool.  Return true if successful, false
77245         if memory exhausted.  All callers changed.
77246         Do not bother partly cleaning up on
77247         memory allocation failure; that is free_dir's job.
77248         However, free ad if hash_insert fails, to avoid memory leak.
77249         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77250         fts->fts_options to see which union member to use.
77251
77252 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77253
77254         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77255         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77256
77257 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77258
77259         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77260
77261 2005-05-20  Jim Meyering  <jim@meyering.net>
77262
77263         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77264         Now a macro, to pacify GCC.
77265
77266 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77267
77268         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77269         of -1.
77270
77271 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77272
77273         * lib/chown.c (rpl_chown): Return -1 on failure.
77274
77275 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77276
77277         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77278         Don't check for stddef.h.
77279         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77280         don't use its results.
77281         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77282         since we include them unconditionally.  Don't require
77283         AM_STDBOOL_H, since stdbool is a prerequisite.
77284         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77285         since we assume C89 or better.
77286         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77287         as we don't use their results.
77288         Don't check for fchdir, memmove, memset, strrchr, as we use
77289         them unconditionally.
77290         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77291         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77292
77293 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77294
77295         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77296         Include <stddef.h> unconditionally, since we assume C89 now.
77297         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77298         * lib/fts.c: Include fts_.h first, to check interface.
77299         Do not include intprops.h; no longer needed.
77300         Include cycle-check.h and hash.h, since fts_.h no longer does.
77301         Remove unnecessary casts of closedir to void.
77302         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77303         decide whether to decrement nlinks.
77304         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77305         (FTS): Use struct hash_table * instead of Hash_table, so that
77306         we no longer need to include hash.h here.
77307
77308 2005-05-18  Jim Meyering  <jim@meyering.net>
77309
77310         * modules/dirfd (License): Change to LGPL.  Most of the code
77311         is already in the public domain.
77312
77313 2005-05-18  Jim Meyering  <jim@meyering.net>
77314
77315         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77316         Reported by Yoann Vandoorselaere.
77317
77318 2005-05-17  Jim Meyering  <jim@meyering.net>
77319
77320         * m4/fts.m4: New file, from coreutils.
77321
77322 2005-05-17  Jim Meyering  <jim@meyering.net>
77323
77324         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77325
77326 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77327
77328         Sync from coreutils.
77329         * m4/unlinkdir.m4: New file.
77330
77331 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77332
77333         Sync from coreutils.
77334         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77335         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77336         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77337         White space changes only.
77338         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77339         special.
77340         * lib/yesno.c: Include getline.h, not ctype.h.
77341         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77342         Use getline to remove arbitrary restriction on response length.
77343
77344 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77345
77346         * config/srclist-update: Spell out "Street" in FSF postal
77347         mail address; this is the style the FSF seems to prefer.
77348
77349         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77350         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77351         this updates FSF postal mail address.
77352
77353         Sync from coreutils.
77354         * modules/unlinkdir: New file.
77355         * modules/yesno (Depends-on): Add getline.
77356         * MODULES.html.sh (File system functions): Add unlinkdir.
77357
77358 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77359
77360         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77361         lib/strsep.h:
77362         Change the initial comment to refer to GPL, not LGPL.
77363         gnulib-tool will change it to LGPL as needed.
77364
77365         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77366         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77367         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77368         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77369         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77370         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77371         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77372         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77373         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77374         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77375         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77376         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77377         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77378         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77379         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77380         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77381         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77382         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77383         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77384         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77385         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77386         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77387         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77388         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77389         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77390         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77391         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77392         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77393         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77394         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77395         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77396         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77397         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77398         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77399         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77400         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77401         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77402         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77403         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77404         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77405         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77406         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77407         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77408         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77409         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77410         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77411         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77412         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77413         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77414         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77415         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77416         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77417         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77418         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77419         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77420         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77421         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77422         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77423         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77424         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77425         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77426         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77427         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77428         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77429         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77430         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77431         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77432         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77433         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77434         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77435         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77436         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77437         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77438         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77439         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77440         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77441         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77442         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77443         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77444         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77445         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77446         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77447         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77448         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77449         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77450         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77451         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77452         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77453         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77454         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77455         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77456         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77457         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77458         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77459         lib/yesno.c, lib/yesno.h:
77460         Update FSF postal mail address.
77461
77462 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77463
77464         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77465         tests/test-memmem.c, tests/test-stpncpy.c:
77466         Update FSF postal mail address.
77467
77468 2005-05-13  Bruno Haible  <bruno@clisp.org>
77469
77470         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77471         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77472         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77473         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77474         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77475         Add support for 64-bit integers in the MSVC compiler.
77476
77477 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77478
77479         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77480
77481 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77482
77483         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77484
77485 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77486
77487         * doc/getdate.texi (General date syntax): Don't say that date
77488         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77489         Problem reported by Nic Ferrier.
77490
77491 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77492
77493         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77494         specified in ai_socktype. Fix invalid ai_protocol
77495         check. ai_protocol is usually set to 0 or depending on
77496         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77497         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77498         ai_socktype / ai_protocol in the returned addrinfo structure.
77499
77500 2005-05-10  Simon Josefsson  <jas@extundo.com>
77501
77502         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77503         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77504
77505 2005-05-10  Karl Berry  <karl@gnu.org>
77506
77507         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77508         (from http://www.gnu.org/licenses).
77509         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77510         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77511         fdl.texi suffices.
77512
77513 2005-05-10  Karl Berry  <karl@gnu.org>
77514
77515         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77516         (COPYING.DOC): remove.
77517
77518         * config/srclist-update: new FSF address.
77519
77520 2005-05-10  Derek Price  <derek@ximbiot.com>
77521
77522         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77523         possible.
77524
77525 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77526             Bruno Haible  <bruno@clisp.org>
77527
77528         * modules/inet_ntop: New file.
77529         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77530         inet_ntop.
77531
77532 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77533             Bruno Haible  <bruno@clisp.org>
77534
77535         * m4/inet_ntop.m4: New file.
77536
77537 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77538             Bruno Haible  <bruno@clisp.org>
77539
77540         * lib/inet_ntop.h: New file.
77541         * lib/inet_ntop.c: New file, from glibc with modifications.
77542
77543 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77544
77545         * modules/time_r (License): Change to LGPL.
77546         * modules/extensions (License): Change to LGPL.  Actually,
77547         the license is more permissive than that, but currently gnulib-tool
77548         doesn't know how to handle more-permissive licenses.
77549
77550         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77551         Problem reported by Dave Love.
77552
77553 2005-05-08  Jim Meyering  <jim@meyering.net>
77554
77555         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77556         blank.
77557
77558 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77559
77560         * modules/argmatch (Depends-on): Add stdbool.
77561         * modules/backupfile (Depends-on): Likewise.
77562         * modules/chdir-long (Depends-on): Likewise.
77563         * modules/closeout (Depends-on): Likewise.
77564         * modules/cycle-check (Depends-on): Likewise.
77565         * modules/dirname (Depends-on): Likewise.
77566         * modules/fnmatch (Depends-on): Likewise.
77567         * modules/fsusage (Depends-on): Likewise.
77568         * modules/fwriteerror (Depends-on): Likewise.
77569         * modules/getcwd (Depends-on): Likewise.
77570         * modules/getloadavg (Depends-on): Likewise.
77571         * modules/hard-locale (Depends-on): Likewise.
77572         * modules/makepath (Depends-on): Likewise.
77573         * modules/mountlist (Depends-on): Likewise.
77574         * modules/nanosleep (Depends-on): Likewise.
77575         * modules/posixtm (Depends-on): Likewise.
77576         * modules/quotearg (Depends-on): Likewise.
77577         * modules/readtokens (Depends-on): Likewise.
77578         * modules/readtokens0 (Depends-on): Likewise.
77579         * modules/readutmp (Depends-on): Likewise.
77580         * modules/save-cwd (Depends-on): Likewise.
77581         * modules/strftime (Depends-on): Likewise.
77582         * modules/userspec (Depends-on): Likewise.
77583         * modules/utimecmp (Depends-on): Likewise.
77584         * modules/xgetcwd (Depends-on): Likewise.
77585         * modules/xnanosleep (Depends-on): Likewise.
77586         * modules/xstrtod (Depends-on): Likewise.
77587         * modules/yesno (Depends-on): Likewise.
77588
77589 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77590
77591         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77592         needless checks.
77593
77594 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77595
77596         Merge from coreutils.  Among other things,
77597         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77598         * lib/fd-safer.c: New file.
77599         * lib/fcntl-safer.h, open-safer.c: Remove.
77600         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77601         * lib/dup-safer.c: Include unistd-safer.h first.
77602         Don't include errno.h.
77603         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77604         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77605         * lib/file-type.c: Rely on file-type.h change.
77606         * lib/getloadavg.c: Include unistd-safer.h.
77607         (getloadavg): Use safer open.
77608         * lib/getusershell.c: Include "stdio-safer.h".
77609         (getusershell): Use safer fopen.
77610         * lib/long-options.c (long_options): Use NULL rather than 0.
77611         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77612         'free'.
77613         * lib/modechange.c: Likewise.
77614         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77615         (MODE_DONE): New constant.
77616         (struct mode_change): Remove 'next' member.
77617         (make_node_op_equals): New function; like the old one of the
77618         same name, except it allocates an array.
77619         (mode_compile, mode_create_from_ref): Use it.
77620         (mode_compile): Allocate result as an array, not a linked list.
77621         Parse octal string ourself, so that we catch mistakes like "+0".
77622         (mode_adjust): Arg is an array, not a linked list.
77623         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77624         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77625         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77626         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77627         Remove.  This is now stat-macros.h's job.
77628         (talloc): Remove.  All callers replaced by xalloc, so that
77629         our invokers don't have to worry about reporting memory failures.
77630         (make_node_op_equals): Remove.
77631         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77632         New constants.
77633         (struct mode_change): Moved here from modechange.h.
77634         (mode_append_entry): Remove.
77635         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77636         apps to have incorrect behavior.  Use simpler algorithm for head
77637         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77638         Detect more invalid usages rather than having somewhat-random behavior.
77639         Don't insert an "a=" action, as that leads to incorrect behavior.
77640         (mode_compile, mode_create_from_ref): Return NULL on error instead
77641         of an enum, since now there's only one way to have an error.  All
77642         callers changed.
77643         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77644         at the correct time.  Simplify calculation of "+u" and its ilk.
77645         Don't mishandle "+X".
77646         (mode_free): Remove "register" and localize decls.
77647         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77648         (struct mode_change): Move to modechange.c; callers don't
77649         need to see this stuff.
77650         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77651         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77652         (mode_change, mode_adjust): Reflect the new signatures noted above.
77653         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77654         that might redefine system include files.
77655         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77656         (my_usleep): Use NULL rather than (void *) 0.
77657         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77658         Use siginterrupt to specify that system calls should be interrupted.
77659         (rpl_nanosleep): Move initialization of suspended closer to call of
77660         my_usleep.
77661         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77662         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77663         (desirable_utmp_entry): New function.
77664         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77665         using x2nrealloc, to simplify logic.
77666         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77667         size calculation.  Do not assume utmp file is a regular file.
77668         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77669         (READ_UTMP_CHECK_PIDS): New constant.
77670         * lib/save-cwd.c: Include unistd-safer.h.
77671         (save_cwd): Use fd_safer.
77672         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77673         [!_LIBC] Include "stat-macros.h" instead.
77674         * lib/unistd-safer.h (fd_safer): New decl.
77675
77676 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77677
77678         * modules/getloadavg (Depends-on): Add unistd-safer.
77679         * modules/getusershell (Depends-on): Add stdio-safer.
77680         * modules/lstat (Depends-on): Remove xalloc.
77681         * modules/mkstemp (Depends-on): Add stat-macros.
77682         * modules/modechange (Depends-on): Remove xstrtol.
77683         Add stat-macros, xalloc.
77684         * modules/save-cwd (Depends-on): Add unistd-safer.
77685         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77686         * modules/unistd-safer (Files): Add lib/fd-safer.c
77687         (Makefile.am): Remove lib_SOURCES.
77688
77689         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77690         Remove fcntl-safer; unistd-safer supersedes it.
77691
77692 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77693
77694         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77695         AC_HEADER_STAT.
77696         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77697         (gl_PREREQ_CHOWN): Remove.
77698         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77699         it.  Don't require AC_HEADER_STAT.
77700         (gl_PREREQ_LSTAT): Remove.
77701         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77702         Don't require AC_HEADER_STAT.
77703         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77704         (gl_PREREQ_RMDIR): Remove.
77705         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77706         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77707         the stat-macros module a prerequisite.
77708         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77709         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77710         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77711         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77712         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77713         variable names.
77714         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77715         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77716         variable prefixes.
77717         * m4/fcntl-safer.m4: Remove.
77718         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77719         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77720         Invoke gl_PREREQ_FD_SAFER.
77721         (gl_PREREQ_FD_SAFER): New macro.
77722         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77723         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77724         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77725         Remove duplicate call to AC_LIBOBJ(readutmp).
77726         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77727
77728         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77729         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77730
77731 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77732
77733         * MODULES.html.sh (Misc): Add byteswap.
77734
77735 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77736
77737         * modules/getcwd (Depends-on): Add extensions.
77738         * modules/openat (Depends-on): Likewise.
77739
77740 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77741
77742         * modules/byteswap: New file.
77743
77744 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77745
77746         * m4/byteswap.m4: New file.
77747
77748 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77749
77750         * lib/byteswap_.h: New file.
77751
77752 2005-04-25  Karl Berry  <karl@gnu.org>
77753
77754         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77755
77756 2005-04-25  Albert Chin  <china@thewrittenword.com>
77757
77758         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77759         Toolkit C bug.
77760
77761 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77762
77763         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77764         (func_ln_if_changed): Remove forcibly for no error message
77765         in case file does not exist.
77766
77767 2005-04-19  Simon Josefsson  <jas@extundo.com>
77768
77769         * gnulib-tool (Options): Make --symlink mean --symbolic.
77770
77771 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77772
77773         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77774
77775 2005-04-16  Simon Josefsson  <jas@extundo.com>
77776
77777         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77778
77779 2005-04-15  Simon Josefsson  <jas@extundo.com>
77780
77781         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77782
77783 2005-04-15  Simon Josefsson  <jas@extundo.com>
77784
77785         * gnulib-tool: Rename --symlink to --symbolic.
77786
77787 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77788
77789         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77790         symbolic links to files instead of copying/moving.  Add --aux-dir,
77791         specifying directory relative --dir where auxiliary build tools
77792         are placed.
77793
77794 2005-04-14  Bruno Haible  <bruno@clisp.org>
77795
77796         * modules/allocsa (License): Change to LGPL.
77797         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77798
77799 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77800
77801         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77802         that "UTC +1 second" continues to work.  Problem reported
77803         by Dmitry V. Levin.
77804         (relunit_snumber): New rule.
77805         (relunit): Use it.
77806
77807 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77808
77809         * lib/getdate.y (universal_time_zone_table): New constant.
77810         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77811         universal_time_zone_table.
77812         (lookup_zone): Prefer universal_time_zone_table to
77813         local_time_zone_table, so that "GMT" time stamps are allowed in
77814         London during the summer.  Problem reported by Ian Abbott.
77815
77816 2005-04-12  Jim Meyering  <jim@meyering.net>
77817
77818         * lib/human.c (humblock): Set *options even when returning due to
77819         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77820         warning from gcc-4.
77821
77822 2005-04-09  Jim Meyering  <jim@meyering.net>
77823
77824         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77825         -Wuninitialized: initialize tm0.tm_year.
77826
77827 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77828
77829         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77830         count, since there's no maximum.  All uses changed.
77831         Add member dsts_seen.
77832         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77833         not being INT_MAX.
77834         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77835         Use pc_rels_seen to decide whther a date is absolute.
77836
77837         * lib/getdate.y (number): Don't overwrite year.
77838         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77839         check.
77840
77841 2005-04-02  Simon Josefsson  <jas@extundo.com>
77842
77843         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77844         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77845
77846 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77847
77848         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77849         where no absolute path name can be longer than PATH_MAX.
77850
77851 2005-03-27  Jim Meyering  <jim@meyering.net>
77852
77853         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77854
77855 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77858         "one's complement" -> "ones' complement" in comment, as per Knuth.
77859         "value of type" -> "type or expression" in comment.
77860         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77861
77862 2005-03-26  Jim Meyering  <jim@meyering.net>
77863
77864         Comment nits.
77865         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77866         Correct typos: s/or/of/.
77867
77868 2005-03-26  Jim Meyering  <jim@meyering.net>
77869
77870         * modules/check-include-files: Move to ../ and rename to...
77871         * check-module: ...this.
77872
77873 2005-03-25  Jim Meyering  <jim@meyering.net>
77874
77875         * modules/xvasprintf (Files): Add xalloc.h.
77876
77877 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77878
77879         * modules/gettext (Files): config/config.rpath ->
77880         build-aux/config.rpath
77881         * modules/iconv (Files): Likewise.
77882         Problem reported by Oskar Liljeblad.
77883
77884 2005-03-23  Jim Meyering  <jim@meyering.net>
77885
77886         * modules/check-include-files: New script to check for
77887         missing dependencies, multiple includes, etc.
77888
77889         * modules/c-strtold (Depends-on): Add xalloc.
77890         * modules/c-strtod (Depends-on): Add xalloc.
77891         * modules/hash (Depends-on): Add xalloc.
77892         (Files): Remove lib/xalloc.h.
77893
77894         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77895         * modules/userspec (Files): Add lib/inttostr.h.
77896
77897 2005-03-23  Jim Meyering  <jim@meyering.net>
77898
77899         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77900
77901 2005-03-22  Jim Meyering  <jim@meyering.net>
77902
77903         * modules/stat-macros: New module.
77904         * modules/canonicalize, modules/euidaccess, modules/file-type,
77905         * modules/filemode, modules/lchown, modules/makepath,
77906         * modules/rmdir, modules/stat: Depend on new stat-macros module
77907         rather than listing lib/stat-macros.h manually.
77908         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77909
77910 2005-03-22  Jim Meyering  <jim@meyering.net>
77911
77912         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77913
77914 2005-03-22  Bruno Haible  <bruno@clisp.org>
77915
77916         * config/srclist.txt: Replace target directory 'config' with
77917         'build-aux'.
77918         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77919         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77920         ../build-aux/.
77921
77922 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77923
77924         * modules/chdir-long (Depends-on): Add mempcpy.
77925
77926         * modules/acl, modules/backupfile, modules/c-strtod,
77927         modules/c-strtold, modules/canon-host, modules/canonicalize,
77928         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77929         modules/exclude, modules/exitfail, modules/file-type,
77930         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77931         modules/getdate, modules/getline, modules/getpagesize,
77932         modules/getpass, modules/getugroups, modules/group-member,
77933         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77934         modules/inttostr, modules/long-options, modules/makepath,
77935         modules/md5, modules/memcasecmp, modules/memcoll,
77936         modules/modechange, modules/mountlist, modules/path-concat,
77937         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77938         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77939         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77940         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77941         modules/strftime, modules/strndup, modules/strverscmp,
77942         modules/timespec, modules/unlocked-io, modules/userspec,
77943         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77944         modules/yesno:
77945         Remove lib_SOURCES line from Makefile.am section, as this is now
77946         done automatically by the corresponding Autoconf macro.
77947
77948 2005-03-21  Jim Meyering  <jim@meyering.net>
77949
77950         Changes imported from coreutils.
77951
77952         * lib/cycle-check.c: Don't include xalloc.h.
77953
77954         * lib/path-concat.c: Don't include assert.h.
77955         (path_concat): Remove assertion that would have triggered
77956         for ABASE starting with more than one slash.
77957         Reported by Andreas Schwab.
77958
77959         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77960         properly when ABASE is an absolute file name.
77961         Correct the description of this function.
77962         Include <assert.h>.
77963         Add an assertion and a test driver.
77964         This fixes a bug introduced on 2004-07-02.
77965         Andreas Schwab reported the resulting failure of cp --parents:
77966         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77967
77968 2005-03-21  Jim Meyering  <jim@meyering.net>
77969
77970         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77971         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77972
77973 2005-03-21  Jim Meyering  <jim@meyering.net>
77974         and  Paul Eggert  <eggert@cs.ucla.edu>
77975
77976         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77977         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77978         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77979         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77980         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77981         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77982         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77983         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77984         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77985         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77986         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77987         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77988         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77989         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77990         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77991         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77992         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77993         for these modules.
77994
77995 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77996
77997         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77998         (which shouldn't happen), generate nothing instead of returning 0
77999         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78000
78001 2005-03-16  Bruno Haible  <bruno@clisp.org>
78002
78003         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78004         HAVE_LONGLONG_64BIT.
78005
78006 2005-03-16  Bruno Haible  <bruno@clisp.org>
78007
78008         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78009         HAVE_LONGLONG_64BIT.
78010
78011 2005-03-16  Bruno Haible  <bruno@clisp.org>
78012
78013         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78014         HAVE_LONGLONG_64BIT.
78015
78016 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78019         reliably distinguish strftime failure from empty output on POSIX
78020         hosts.
78021
78022 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78023
78024         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78025         (iconv_string): Don't guess a size-zero buffer, as that might cause
78026         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78027         result would be 'too large', where 'too large' is (heuristically)
78028         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78029         overflow concerns.  This will prevent some unwanted malloc failures
78030         when the inputs are very large.
78031
78032 2005-03-15  Karl Berry  <karl@gnu.org>
78033
78034         * config/srclist.txt (config.rpath): from gettext.
78035         * config/config.rpath: update.
78036
78037 2005-03-15  Bruno Haible  <bruno@clisp.org>
78038
78039         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78040         to 'negate'.
78041
78042         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78043         variable.
78044
78045         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78046         results.
78047
78048 2005-03-14  Simon Josefsson  <jas@extundo.com>
78049
78050         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78051         <fx@gnu.org>.
78052
78053 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78054
78055         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78056         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78057         intprops.h.
78058         * lib/strtol.c: Likewise.
78059
78060 2005-03-14  Jim Meyering  <jim@meyering.net>
78061
78062         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78063         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78064         to be nonzero so that we (and caller) can detect the difference
78065         between a valid zero-length expansion and an error return, even
78066         when the underlying strftime fails before writing anything into
78067         that location.
78068
78069 2005-03-14  Bruno Haible  <bruno@clisp.org>
78070
78071         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78072         Update from GNU gettext 0.14.3.
78073
78074 2005-03-10  Jim Meyering  <jim@meyering.net>
78075
78076         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78077
78078 2005-03-10  Jim Meyering  <jim@meyering.net>
78079
78080         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78081         so that this module works on systems without fchdir.
78082
78083 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78084
78085         Factor int-properties macros into a single file, except for
78086         glibc-related files.
78087         * lib/intprops.h: New file.
78088         * lib/getloadavg.c: Include it instead of limits.h.
78089         (INT_STRLEN_BOUND): Remove.
78090         * lib/human.c: Include intprops.h.
78091         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78092         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78093         302/1000.
78094         * lib/inttostr.h: Include intprops.h instead of limits.h.
78095         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78096         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78097         for consistency with intprops.h.
78098         (time_t_is_integer, twos_complement_arithmetic): Use them.
78099         * lib/sig2str.h: Include <signal.h>, intprops.h.
78100         (INT_STRLEN_BOUND): Remove.
78101         * lib/strftime.c (TYPE_SIGNED): Remove.
78102         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78103         * lib/strtol.c: Adjust comments to match intprops.h.
78104         * lib/userspec.c: Include intprops.h.
78105         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78106         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78107         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78108         instead of rolling our own expressions.
78109         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78110
78111         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78112         instead of int.
78113         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78114         the right thing even if adding 1900 would overflow.  Similarly
78115         for tm_mon + 1 and tm_yday + 1.
78116         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78117         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78118         (DO_SIGNED_NUMBER): New macro.
78119         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78120
78121 2005-03-07  Bruno Haible  <bruno@clisp.org>
78122
78123         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78124
78125 2005-03-07  Bruno Haible  <bruno@clisp.org>
78126
78127         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78128
78129 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78130
78131         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78132         (func_import): Only replace files via --import when they have actually
78133         changed.
78134
78135 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78136
78137         * m4/mmap-anon.m4: New file.
78138         * m4/pagealign_alloc.m4: New file.
78139
78140 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78141             Bruno Haible  <bruno@clisp.org>
78142
78143         * modules/pagealign_alloc: New file.
78144         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78145
78146 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78147             Bruno Haible  <bruno@clisp.org>
78148
78149         * lib/pagealign_alloc.h: New file.
78150         * lib/pagealign_alloc.c: New file.
78151
78152 2005-03-03  Bruno Haible  <bruno@clisp.org>
78153
78154         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78155         Use an all-permissive copyright notice, recommended by RMS.
78156
78157 2005-03-02  Bruno Haible  <bruno@clisp.org>
78158
78159         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78160         of AIX, the replacement has to be done only after <string.h> is
78161         included, therefore not in config.h. stpncpy.h does the replacement,
78162         and stpncpy.c uses it.
78163
78164 2005-03-02  Bruno Haible  <bruno@clisp.org>
78165
78166         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78167         stpncpy.c uses it.
78168
78169 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78170
78171         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78172         The workaround isn't strictly needed for POSIX conformance, and
78173         it's too much of a pain to configure and maintain.  We'll ask
78174         people to fix their kernels instead.
78175         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78176         (NANOSLEEP_BUG_WORKAROUND): Remove.
78177         (xnanosleep): Remove the workaround.
78178
78179 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78180
78181         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78182         Reported by Derek Price.
78183         (Include): Add "timespec.h".
78184
78185         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78186
78187 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78188
78189         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78190         to detect nanosleep bug.
78191
78192 2005-03-01  Bruno Haible  <bruno@clisp.org>
78193
78194         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78195
78196 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78197
78198         * modules/gethrxtime: New file.
78199         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78200         (Depends-on): Add gethrxtime.
78201         (configure.ac): Add gl_XNANOSLEEP.
78202         (Makefile.am): Remove lib_SOURCES line.
78203
78204 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78205
78206         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78207         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78208
78209 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78210
78211         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78212         * lib/timespec.h (gettime): Return void, since it always
78213         succeeds now.  All uses changed.
78214         * lib/gettime.c (gettime): Likewise.
78215         [HAVE_NANOTIME]: Prefer nanotime.
78216         Assume gettimeofday succeeds, as POSIX requires.
78217         Assime time () succeeds, since other code already does.
78218         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78219         (timespec_subtract): Remove.
78220         (NANOSLEEP_BUG_WORKAROUND): New constant.
78221         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78222         things considerably.  Use it only on GNU/Linux hosts, since the
78223         workaround shouldn't be needed elsewhere.
78224
78225 2005-02-24  Bruno Haible  <bruno@clisp.org>
78226
78227         * modules/gettext (Files): Add m4/glibc2.m4.
78228
78229 2005-02-24  Bruno Haible  <bruno@clisp.org>
78230
78231         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78232         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78233         * m4/progtest.m4:
78234         Update from GNU gettext 0.14.2.
78235         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78236
78237 2005-02-24  Bruno Haible  <bruno@clisp.org>
78238
78239         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78240         * lib/config.charset: Update from GNU gettext 0.14.2.
78241
78242 2005-02-24  Bruno Haible  <bruno@clisp.org>
78243
78244         * lib/gettext.h: Update from GNU gettext 0.14.2.
78245
78246 2005-02-23  Simon Josefsson  <jas@extundo.com>
78247
78248         * m4/iconvme.m4: New file.
78249
78250 2005-02-23  Jim Meyering  <jim@meyering.net>
78251
78252         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78253         change.
78254         Thanks to Bruno Haible for catching it.
78255
78256 2005-02-22  Simon Josefsson  <jas@extundo.com>
78257
78258         * modules/iconvme: New file.
78259
78260         * MODULES.html.sh: Add iconvme.
78261
78262 2005-02-22  Simon Josefsson  <jas@extundo.com>
78263
78264         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78265
78266 2005-02-22  Simon Josefsson  <jas@extundo.com>
78267
78268         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78269
78270 2005-02-22  Jim Meyering  <jim@meyering.net>
78271
78272         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78273         s/ifndef/ifdef/.
78274
78275 2005-02-20  Neil Conway  <neilc@samurai.com>
78276
78277         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78278         returned by OSX/Darwin if the specified buffer is not large
78279         enough for the hostname.
78280
78281 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78282
78283         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78284         pass it to _help, otherwise the latter coredumps trying to
78285         dereference state.root_argp.
78286
78287 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78288
78289         * modules/chdir-long (Depends-on): Add memrchr.
78290         * modules/memrchr (Files): Add lib/memrchr.h.
78291         (Include): "memrchr.h".
78292
78293 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78294
78295         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78296
78297 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78298
78299         * lib/memrchr.h: New file.
78300         * lib/chdir-long.c: Include it.
78301         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78302         Don't bother including stddef.h.
78303
78304 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78305
78306         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78307         inclusion.
78308         Include <sys/types.h>, for dev_t.
78309         (ME_DUMMY, ME_REMOTE): Move from here....
78310         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78311         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78312         Dmitry V. Levin.
78313         Include mountlist.h first, to test the interface.
78314
78315 2005-01-29  Bruno Haible  <bruno@clisp.org>
78316
78317         * lib/progname.c (program_name): Initialize.
78318         Needed when linking statically on MacOS X.
78319
78320 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78321
78322         Sync from coreutils.
78323         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78324         (Depends-on): Add c-strtod.
78325         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78326
78327 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78328
78329         Sync from coreutils.
78330         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78331
78332         Remove files that are specific to coreutils.
78333         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78334
78335 2005-01-28  Bruno Haible  <bruno@clisp.org>
78336
78337         * modules/javacomp: New file.
78338         * MODULES.html.sh (Java): Add javacomp.
78339
78340 2005-01-28  Bruno Haible  <bruno@clisp.org>
78341
78342         * m4/javacomp.m4: New file, from GNU gettext.
78343
78344 2005-01-28  Bruno Haible  <bruno@clisp.org>
78345
78346         * lib/javacomp.sh.in: New file, from GNU gettext.
78347         * lib/javacomp.h: New file, from GNU gettext.
78348         * lib/javacomp.c: New file, from GNU gettext.
78349
78350 2005-01-26  Simon Josefsson  <jas@extundo.com>
78351
78352         * lib/gai_strerror.c: Use GPL in header.
78353
78354 2005-01-26  Bruno Haible  <bruno@clisp.org>
78355
78356         * modules/javaexec: New file.
78357         * MODULES.html.sh (Java): Add javaexec.
78358
78359 2005-01-26  Bruno Haible  <bruno@clisp.org>
78360
78361         * m4/javaexec.m4: New file, from GNU gettext.
78362
78363 2005-01-26  Bruno Haible  <bruno@clisp.org>
78364
78365         * lib/javaexec.sh.in: New file, from GNU gettext.
78366         * lib/javaexec.h: New file, from GNU gettext.
78367         * lib/javaexec.c: New file, from GNU gettext.
78368
78369 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78370
78371         * modules/lchown (Depends-on): Remove lchown.h
78372
78373 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78374
78375         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78376         must be defined if the header file was not found, in order
78377         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78378
78379 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78380
78381         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78382         initializers for struct pentry_state.
78383         (__argp_error): Check return value of __asprintf
78384         (__argp_failure): Translate error message
78385
78386         * lib/argp-parse.c: Removed braces around the expansion of N_()
78387
78388 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78389
78390         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78391         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78392         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78393         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78394         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78395         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78396         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78397         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78398         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78399         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78400         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78401         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78402         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78403         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78404         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78405         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78406         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78407         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78408         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78409         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78410         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78411         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78412         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78413         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78414         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78415         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78416         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78417         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78418         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78419         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78420         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78421         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78422         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78423         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78424         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78425         Use an all-permissive copyright notice, recommended by RMS.
78426
78427 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78428
78429         * modules/chdir-long (Depends-on): Remove mempcpy.
78430
78431 2005-01-21  Jim Meyering  <jim@meyering.net>
78432
78433         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78434         same value as for Solaris 9.
78435
78436         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78437         component length.  This included changing the parameter to be
78438         of type `char *' rather than `char const *'.
78439         * lib/chdir-long.h (chdir_long): Update prototype.
78440
78441         * lib/openat.c (fdopendir, fstatat): New functions.
78442         * lib/openat.h: Include headers required for use of DIR and struct
78443         stat.
78444         [AT_SYMLINK_NOFOLLOW]: Define.
78445         (fdopendir, fstatat): Add prototypes.
78446
78447 2005-01-21  Bruno Haible  <bruno@clisp.org>
78448
78449         * modules/classpath: New file.
78450         * MODULES.html.sh (Java): Add classpath.
78451
78452 2005-01-21  Bruno Haible  <bruno@clisp.org>
78453
78454         * lib/classpath.h: New file, from GNU gettext.
78455         * lib/classpath.c: New file, from GNU gettext.
78456
78457 2005-01-20  Simon Josefsson  <jas@extundo.com>
78458
78459         * modules/version-etc-fsf: New file.
78460
78461 2005-01-20  Simon Josefsson  <jas@extundo.com>
78462
78463         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78464         * lib/version-etc.c: Remove version_etc_copyright.
78465         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78466         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78467
78468 2005-01-20  Simon Josefsson  <jas@extundo.com>
78469
78470         * lib/base64.h (isbase64): Add.
78471
78472         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78473         using a unsigned prototype, don't inline.
78474         (base64_decode): Use it.
78475
78476 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78477
78478         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78479         it.
78480
78481 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78482
78483         * lib/save-cwd.c (save_cwd): Remove code to support the case
78484         where fchdir is missing or flaky.
78485
78486 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78487
78488         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78489
78490 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78491
78492         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78493         AC_LIBSOURCES now does this.
78494         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78495         with new ullong_max module.
78496
78497 2005-01-19  Bruno Haible  <bruno@clisp.org>
78498
78499         * modules/sh-quote: New file.
78500         * MODULES.html.sh (Executing programs): Add sh-quote.
78501
78502 2005-01-19  Bruno Haible  <bruno@clisp.org>
78503
78504         * lib/sh-quote.h: New file, from GNU gettext.
78505         * lib/sh-quote.c: New file, from GNU gettext.
78506
78507 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78508
78509         Merge from coreutils.
78510         * m4/ullong_max.m4: New file.
78511         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78512         (gl_MACROS): Assume localeconv exists.
78513
78514 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78515
78516         Merge changes from coreutils, as described below in several
78517         changelogs dated today.
78518
78519         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78520         (O_DIRECTORY): Remove; not needed here, since "." must be
78521         a directory.  All uses removed.
78522         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78523         universal on Suns, and we also need to test for IRIX.
78524         Revamp code to use 'if' rather than '#if'.
78525         Avoid unnecessary comparison of cwd->desc to 0.
78526
78527         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78528         for known valid error numbers rather than observed invalid ones.
78529
78530 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78531
78532         * modules/ullong_max: New file.
78533
78534         * modules/chdir-long, modules/openat: New files.
78535         * modules/save-cwd (Depends-on): Depend on chdir-long.
78536         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78537
78538 2005-01-18  Jim Meyering  <jim@meyering.net>
78539
78540         Merge from coreutils.
78541         * m4/chdir-long.m4, m4/openat.m4: New files.
78542         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78543         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78544         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78545         is sane and DOES follow symlinks.  Besides, testing 20 different
78546         systems found no broken chown implementations.
78547         Prompted by a change in rsync's copy of this macro.
78548         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78549
78550         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78551
78552         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78553         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78554         NULL-means-set-to-current-time semantics.
78555         Remove temporary file immediately, rather than waiting
78556         for configure's at-exit trap code to do it.
78557
78558 2005-01-18  Jim Meyering  <jim@meyering.net>
78559
78560         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78561
78562         * lib/utimens.c (futimens): Account for the fact that futimes
78563         can also fail with errno == ENOSYS or errno == ENOENT.
78564         Patch from Dmitry V. Levin.
78565
78566         Change the name of the robust chdir function from chdir to chdir_long.
78567         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78568         (restore_cwd): Use chdir_long, not chdir.
78569         * lib/chdir-long.c: Renamed from chdir.c.
78570         * lib/chdir-long.h: Renamed from chdir.h.
78571         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78572         Hurd.
78573
78574 2005-01-18  Bruno Haible  <bruno@clisp.org>
78575
78576         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78577         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78578         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78579         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78580         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78581         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78582         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78583         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78584         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78585         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78586         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78587         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78588         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78589         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78590         Use an all-permissive copyright notice, recommended by RMS.
78591
78592 2005-01-18  Bob Proulx  <bob@proulx.com>
78593
78594         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78595         simplify offsetof() macro construct to avoid compile failure with
78596         native HP-UX 11.0 ANSI C compiler.
78597
78598 2005-01-17  Bruno Haible  <bruno@clisp.org>
78599
78600         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78601         redundant because stpncpy.m4 takes care of it.
78602
78603 2005-01-17  Bruno Haible  <bruno@clisp.org>
78604
78605         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78606
78607 2005-01-17  Bruno Haible  <bruno@clisp.org>
78608
78609         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78610         used.
78611
78612 2005-01-17  Bruno Haible  <bruno@clisp.org>
78613
78614         * lib/fwriteerror.h (fwriteerror): Change specification to include
78615         fclose.
78616         * lib/fwriteerror.c: Include <stdbool.h>.
78617         (fwriteerror): At the end, close the file stream. Record whether
78618         stdout was already closed.
78619
78620 2005-01-17  Bruno Haible  <bruno@clisp.org>
78621
78622         * lib/execute.c (environ): Declare if needed.
78623         * lib/pipe.c (environ): Likewise.
78624         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78625
78626 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78627
78628         * modules/argp: Depend on vsnprintf
78629
78630 2005-01-10  Jim Meyering  <jim@meyering.net>
78631
78632         * modules/closeout (Depends-on): Add atexit.
78633
78634 2005-01-06  Bruno Haible  <bruno@clisp.org>
78635
78636         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78637
78638 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78639
78640         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78641         definitions to be after all include files, to avoid collisions.
78642         Problem reported by Bob Proulx.
78643
78644 2005-01-04  Jim Meyering  <jim@meyering.net>
78645
78646         Changes imported from coreutils.
78647         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78648         as the mkstemp template, use a temporary directory and an
78649         8.3-friendly template to avoid trouble on systems like DJGPP.
78650         Reported by Juan M. Guerrero via Stepan Kasal.
78651         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78652         close. Remove the temporary directory right away, rather than waiting
78653         for configure's at-exit trap code to do it.
78654         Suggestion from Stepan Kasal.
78655
78656 2005-01-01  Simon Josefsson  <jas@extundo.com>
78657
78658         * gnulib-tool: Print #include directives when --import'ing.
78659
78660 2004-12-28  Simon Josefsson  <jas@extundo.com>
78661
78662         * tests/test-base64.c: Include required header files.  Remove
78663         unused variables.
78664
78665 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78666
78667         * modules/error (Depends-on): Remove gettext.
78668
78669 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78670
78671         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78672         not needed.  This removes a dependency on the gettext module.
78673         [defined _LIBC]: Do not include <libintl.h>; not needed.
78674
78675 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78676
78677         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78678         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78679
78680 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78681
78682         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78683         HAVE_DECL_STRTOLD.
78684
78685 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78686
78687         * modules/getdate (Depends-on): Remove alloca-opt.
78688
78689 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78690
78691         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78692
78693 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78694
78695         * lib/argp-parse.c: Include <stddef.h>.
78696         (alignof, alignto): New macros.
78697         (parser_init): Don't assume that void * is aligned sufficiently
78698         for struct option.
78699
78700         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78701         need to extend the stack.
78702         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78703         large.
78704
78705 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78706
78707         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78708
78709 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78710
78711         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78712         (2004-10-24) change.  Apparently this was a false alarm.
78713
78714         * modules/getdate: Depend on alloca-opt, not alloca.
78715
78716 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78717
78718         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78719         Remove now-obsolete comment about AIX.
78720         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78721         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78722         (YYMAXDEPTH): New macro.
78723
78724 2004-12-18  Simon Josefsson  <jas@extundo.com>
78725
78726         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78727
78728 2004-12-18  Bruno Haible  <bruno@clisp.org>
78729
78730         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78731
78732 2004-12-18  Bruno Haible  <bruno@clisp.org>
78733
78734         * lib/fatal-signal.c (fatal_signals): Make non-const.
78735         (init_fatal_signals): New function.
78736         (uninstall_handlers, install_handlers): Ignore signals that were set to
78737         SIG_IGN.
78738         (at_fatal_signal): Call init_fatal_signals.
78739         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78740         SIG_IGN.
78741         Reported by Paul Eggert.
78742
78743 2004-12-18  Bruno Haible  <bruno@clisp.org>
78744
78745         * doc/alloca.texi: New file.
78746         * doc/alloca-opt.texi: New file.
78747
78748 2004-12-17  Jim Meyering  <jim@meyering.net>
78749
78750         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78751         Otherwise, install-sh could exit with improper exit status when
78752         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78753
78754 2004-12-16  Simon Josefsson  <jas@extundo.com>
78755
78756         * tests/test-base64.c: Add license.
78757
78758 2004-12-15  Stepan Kasal  <address@hidden>
78759
78760         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78761
78762 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78763
78764         * modules/getcwd (Files): Add m4/d-ino.m4.
78765         Suggested by Mark D. Baushke.
78766
78767 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78768
78769         * lib/getdate.y (textint): New member "negative".
78770         (time_zone_hhmm): New function.
78771         Expect 14 shift-reduce conflicts, not 13.
78772         (o_colon_minutes): New rule.
78773         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78774         (yylex): Set the "negative" member of signed numbers.
78775
78776 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78777
78778         * doc/getdate.texi (Time of day items, Time zone items):
78779         Describe new formats +00:00, UTC+00:00.
78780
78781 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78782
78783         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78784         spurious "-l"s.  Problem reported by Stepan Kasal.
78785
78786 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78789         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78790
78791 2004-12-04  Simon Josefsson  <jas@extundo.com>
78792
78793         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78794         Vandoorselaere <yoann@prelude-ids.org>.
78795
78796 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78797
78798         Changes imported from coreutils.
78799         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78800         exist.
78801         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78802
78803 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78804
78805         Changes imported from coreutils.
78806         * lib/hard-locale.c: Assume <locale.h> exists.
78807         Include "strdup.h".
78808         (GLIBC_VERSION): New macro.
78809         (hard_locale): Assume setlocale exists.
78810         Rewrite to avoid #ifdef.
78811         Use strdup rather than malloc + strcpy.
78812         * lib/human.c: Assume <locale.h> exists.
78813         (human_readable): Assume localeconv exists.
78814
78815 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78816
78817         * modules/hard-locale (Depends-on): Add strdup.
78818
78819 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78820
78821         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78822         convert T2, not T.  (Imported from libc.)
78823
78824 2004-11-30  Simon Josefsson  <jas@extundo.com>
78825
78826         * modules/restrict (License): Change to LGPL.
78827
78828 2004-11-30  Simon Josefsson  <jas@extundo.com>
78829
78830         * m4/restrict.m4: Add copyright and copying conditions.
78831
78832 2004-11-30  Simon Josefsson  <jas@extundo.com>
78833
78834         * m4/base64.m4: New file.
78835
78836 2004-11-30  Simon Josefsson  <jas@extundo.com>
78837
78838         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78839         base64.
78840
78841         * tests/test-base64.c: New file.
78842
78843         * modules/base64: New file.
78844
78845 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78846
78847         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78848         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78849
78850         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78851
78852 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78853
78854         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78855         (__getcwd.c): Don't restore errno; glibc doesn't.
78856         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78857         first, falling back to our code only if its results look suspicious.
78858         Ensure that the resulting buffer is only as large as necessary.
78859
78860         * lib/readutmp.c: Include readutmp.h first.
78861         Include <errno.h>, since readutmp.h no longer does that.
78862         * lib/readutmp.h: Don't include <errno.h>,
78863         <sys/param.h>, <time.h>; not needed to establish interface.
78864         (errno): Remove decl.
78865         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78866         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78867         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78868
78869 2004-11-28  Simon Josefsson  <jas@extundo.com>
78870
78871         * lib/base64.h, base64.c: New file.
78872
78873 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78874
78875         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78876
78877 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78878
78879         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78880         (Depends-on): Remove pathmax, same.  Add mempcpy.
78881         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78882         (Makefile.am): Append getcwd.h to lib_SOURCES.
78883         (Include): Add getcwd.h.
78884         (Maintainer): Change from Jim Meyering to "all, glibc",
78885         since getdate now uses intended-for-glibc code.
78886         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78887         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78888
78889 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78890
78891         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78892         HP's ANSI C compiler.
78893         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78894         Declaring int functions causes warnings on some modern systems and
78895         shouldn't be needed to compile on ancient ones.
78896         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78897         defined.
78898
78899         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78900         with the following changes.
78901         (__set_errno): Parenthesize properly.
78902         Include <stdbool.h>.
78903         (MIN, MAX, MATCHING_INO): New macros.
78904         (__getcwd): Define with prototype, not K&R form.
78905         Use heuristics to allocate default buffer on stack if possible.
78906         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78907         behavior, and to avoid the PATH_MAX limit when computing
78908         ../../../../...
78909         Use MATCHING_INO to compare inode number to file.
78910         Check for arithmetic overflow in size calculations.
78911         Fix bug in reallocation of dot array that caused getcwd to fail
78912         on directories nested deeper than 75.
78913         Be more careful about saving errno on error.
78914         Do not use realloc; use only free+malloc, as this is a bit
78915         more flexible and avoids a needless copy operation.
78916         Do not inspect st_dev and st_ino for symbolic links; POSIX
78917         doesn't specify the latter.
78918         Check for closedir errors.
78919         Avoid needless casts.
78920         Use "#ifdef weak_alias" around weak_alias, to be like other
78921         glibc code.
78922         The following changes to getcwd.c have effect only when used in
78923         gnulib; they have no effect inside glibc proper.
78924         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78925         as alloca isn't used.
78926         (alloca, __alloca): Likewise.
78927         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78928         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78929         unconditionally, as gnulib assumes C89 or better.
78930         Do not include <sys/param.h>.
78931         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78932         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78933         better.
78934         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78935         Include <dirent.h> in a way that is compatible with modern Autoconf.
78936         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78937         New macros, if not already defined.
78938         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78939         Use "_LIBC", not "defined _LIBC", for consistency.
78940         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78941         a mempcpy module.
78942         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78943         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78944         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78945         credit only to Jim Meyering and adjust the copyright dates.
78946         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78947         <stdlib.h>, <unistd.h>, "pathmax.h".
78948         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78949         (INITIAL_BUFFER_SIZE): Remove.
78950         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78951
78952 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78953
78954         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78955         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78956         Use the _ONCE methods, for efficiency.
78957         Check for fcntl.h.  In test program, include <errno.h>
78958         and <fcntl.h> if available.  Remove old K&R cruft from
78959         test program.  Check for common errors in GNU/Linux,
78960         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78961         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78962         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78963         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78964         name accordingly.
78965         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78966         accommodate new getcwd.c.
78967         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78968         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78969         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78970         that's all we need now.
78971
78972 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78973
78974         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78975         argp-parse.c depends on getopt internals, that means we should
78976         always use our getopt, to be on the safe side.
78977         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78978         order not to spoil the result of an eventual previous invocation
78979         of gl_GETOPT_SUBSTITUTE.
78980
78981 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78982
78983         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78984         redefinition warnings. To avoid them, include the defines
78985         in `#if !defined __need_getopt ... #endif'. The only place
78986         where __getopt_argv_const is used is in definitions
78987         of getopt_long and getopt_long_only below, which are as well
78988         protected by `#ifndef __need_getopt'.
78989         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78990         __need_getopt after including <stdio.h> and <unistd.h> These
78991         headers might have defined it.
78992
78993 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78994
78995         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78996
78997 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78998
78999         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79000         (futimens): New function, which uses futimes if available.
79001         (futimens, utimens): Support timespec==NULL, with same semantics
79002         as utime and utimens.
79003         * lib/utimens.h (futimens): New decl.
79004
79005 2004-11-23  Jim Meyering  <jim@meyering.net>
79006
79007         * lib/getopt_.h: Remove trailing blanks.
79008
79009 2004-11-23  Jim Meyering  <jim@meyering.net>
79010
79011         * lib/__fpending.c: Add comment.
79012
79013 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79014
79015         * modules/canonicalize (Depends-on): Add xreadlink.
79016         Problem reported by James Youngman.
79017
79018 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79019
79020         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79021         New macros.
79022         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79023         optopt): Use them instead of invoking ## directly; otherwise, the
79024         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79025
79026 2004-11-19  Bruno Haible  <bruno@clisp.org>
79027
79028         * lib/strtok_r.c: Move comments from here...
79029         * lib/strtok_r.h: ... to here.
79030
79031 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79032
79033         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79034         implementations that mishandle size_t overflow.
79035
79036 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79037
79038         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79039         might fail.  Problem reported by Yoann Vandoorselaere.
79040         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79041         implementations that mishandle size_t overflow.
79042
79043 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79044
79045         * modules/canon-host (Depends-on): Add strdup.
79046
79047 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79048
79049         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79050
79051 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79052
79053         * lib/canon-host.c: Include "strdup.h".
79054         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79055         Use strdup instead of malloc/strcpy to duplicate strings.
79056
79057         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79058         (human_space_before_unit): New constant.
79059         * lib/human.c (human_readable): Support it.
79060
79061         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79062         (xgetcwd): Set errno correctly when failing.
79063         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79064         the failure is actually due to a PATH_MAX problem.
79065
79066         Further getopt changes to make it more likely that glibc will
79067         buy the changes back.
79068         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79069         (getopt): Use it, so to preserve glibc semantic
79070         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79071         when compiling for libc.
79072         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79073         (getopt_long, getopt_long_only): Use it.
79074
79075         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79076         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79077         (getopt): Argv is now char * const *, as per standard.
79078         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79079         not char *__getopt_argv_const *.
79080         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79081         _getopt_long_only_r): Likewise.
79082         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79083         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79084         _getopt_long_r, _getopt_long_only_r): Likewise.
79085         * lib/getopt_.h (__getopt_argv_const): Remove.
79086         (getopt): Argv is now char * const *, as per standard.
79087
79088         * lib/getdate.y (tORDINAL): New token.
79089         (day, relunit): Allow it for relative times.
79090         (relative_time_table): Use tORDINAL for ordinals.
79091
79092 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79093
79094         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79095         Document that "second" isn't allowed as an ordinal number.
79096
79097 2004-11-16  Jim Meyering  <jim@meyering.net>
79098
79099         * modules/closeout (Depends-on): Add fpending.
79100
79101 2004-11-15  Jim Meyering  <jim@meyering.net>
79102
79103         * lib/closeout.c: Include "__fpending.h" once again.
79104         Include <stdbool.h>.
79105         (close_stdout): Don't fail just because stdout was closed initially,
79106         since some programs don't write to stdout in the normal course of
79107         operation (other than --version and --help), and we don't want this
79108         function to make e.g. `touch file >&-' fail.
79109         But do fail if it was closed and someone has tried to write to it.
79110         E.g., `printf foo >&-' must fail.
79111
79112 2004-11-13  Jim Meyering  <jim@meyering.net>
79113
79114         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79115
79116 2004-11-12  Simon Josefsson  <jas@extundo.com>
79117
79118         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79119         small doc fix is still pending.
79120
79121 2004-11-11  Simon Josefsson  <jas@extundo.com>
79122
79123         * modules/strtok_r: New file.
79124
79125         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79126         strtok_r.
79127
79128 2004-11-11  Simon Josefsson  <jas@extundo.com>
79129
79130         * m4/strtok_r.m4: New file.
79131
79132         * m4/getopt.m4: Replace opterr.
79133
79134 2004-11-11  Simon Josefsson  <jas@extundo.com>
79135
79136         * lib/strtok_r.h, strtok_r.c: New file.
79137
79138 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79139
79140         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79141         of replacing opterr, getopt, etc.  This should handle the
79142         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79143
79144 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79145
79146         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79147         we can stop lying to compilers about the constness of argv when we
79148         are compiled outside glibc.
79149         (getopt, getopt_long, getopt_long_only): Use it.
79150         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79151         _getopt_internal, getopt): Likewise.
79152         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79153         _getopt_long_only_r): Likewise.
79154         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79155         _getopt_long_r, _getopt_long_only_r): Likewise.
79156
79157         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79158         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79159         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79160         the other external symbols.
79161         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79162         declaration, since the above renaming now works around collisions.
79163
79164 2004-11-11  Jim Meyering  <jim@meyering.net>
79165
79166         * lib/linebreak.c: Remove trailing blanks.
79167         * lib/alloca_.h: Likewise.
79168         * lib/acosl.c: Likewise.
79169         * lib/euidaccess.c: Likewise.
79170         * lib/allocsa.h: Likewise.
79171
79172 2004-11-10  Simon Josefsson  <jas@extundo.com>
79173
79174         * m4/getaddrinfo.m4: New file.
79175
79176 2004-11-10  Simon Josefsson  <jas@extundo.com>
79177
79178         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79179
79180 2004-11-10  Simon Josefsson  <jas@extundo.com>
79181
79182         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79183         getaddrinfo.
79184
79185         * modules/getaddrinfo: New file.
79186
79187 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79188
79189         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79190
79191 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79192
79193         * lib/mktime.c (SHR): New macro, which is a portable
79194         substitute for >> that should work even on Crays.
79195         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79196         Problem reported by Mark D. Baushke in
79197         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79198         * lib/getdate.y (SHR): Likewise.
79199         (tm_diff): Use it.
79200         * lib/strftime.c (SHR): Likewise.
79201         (tm_diff): Use it.
79202         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79203         quote_these_too, so that right shifts are well defined.  All uses
79204         changed.
79205
79206 2004-11-10  Jim Meyering  <jim@meyering.net>
79207
79208         Ensure that no close failure goes unreported.
79209         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79210         return early when it seems there's nothing to flush.
79211         Don't include __fpending.h.
79212
79213 2004-11-10  Jim Meyering  <jim@meyering.net>
79214
79215         * modules/closeout (Depends-on): Remove fpending.
79216
79217 2004-11-10  Jim Meyering  <jim@meyering.net>
79218
79219         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79220
79221 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79222
79223         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79224         gl_FUNC_STRFTIME.
79225         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79226         and AC_REQUIRE when possible, to avoid duplicate checks.
79227         Check for <wchar.h>.
79228
79229 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79230
79231         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79232
79233 2004-11-09  Bruno Haible  <bruno@clisp.org>
79234
79235         * m4/sockpfaf.m4: New file.
79236
79237 2004-11-05  Bruno Haible  <bruno@clisp.org>
79238
79239         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79240         Reported by Mark D. Baushke <mdb@cvshome.org>.
79241
79242 2004-11-04  Bruno Haible  <bruno@clisp.org>
79243
79244         2004-09-11  Bruno Haible  <bruno@clisp.org>
79245                 * allocsa.valgrind: New file.
79246         2004-02-06  Bruno Haible  <bruno@clisp.org>
79247                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79248                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79249                 Reported by Christopher Seip <chris.seip@hp.com>.
79250
79251 2004-11-04  Bruno Haible  <bruno@clisp.org>
79252
79253         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79254         (Makefile.am): Distribute it.
79255
79256 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79257
79258         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79259         with errno == ERANGE if the buffer is too small.
79260         Problem reported by Mark D. Baushke.
79261
79262 2004-11-03  Albert Chin  <china@thewrittenword.com>
79263             Paul Eggert  <eggert@cs.ucla.edu>
79264
79265         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79266         equivalent, substitute $ac_type for equivalent type rather than
79267         blindly using uint32_t *always* which won't work if uint32_t is not
79268         available.  Define _UINT32_T to work around typedef of uint32_t if
79269         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79270         2.5.1.
79271
79272 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79273
79274         * m4/jm-macros.m4: Sync from coreutils.
79275         (gl_MACROS): Check for mbrlen, for pathchk.
79276         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79277
79278 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79279
79280         * lib/xreadlink.c (MAXSIZE): New macro.
79281         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79282         size does not exceed MAXSIZE.  Avoid cast.
79283         As suggested by Mark D. Baushke in
79284         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79285         if readlink fails with buffer size just under MAXSIZE, try again
79286         with MAXSIZE.
79287
79288 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79289
79290         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79291
79292 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79293         and  Paul Eggert  <eggert@cs.ucla.edu>
79294
79295         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79296         (get_date): Overparenthesize to avoid GCC warning.
79297
79298 2004-11-02  Bruno Haible  <bruno@clisp.org>
79299
79300         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79301         returns void.
79302
79303 2004-11-02  Bruno Haible  <bruno@clisp.org>
79304
79305         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79306         function returns void.
79307
79308 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79309
79310         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79311         fflush_unlocked, flockfile, funlockfile, funlockfile,
79312         fputs_unlocked, putc_unlocked.
79313
79314 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79315
79316         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79317         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79318         already declared.
79319
79320 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         * modules/getdate (Files): Add doc/getdate.texi.
79323         (Depends-on): Add setenv, xalloc.
79324
79325 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79326
79327         * lib/getdate.y: Add support for TZ="foo" within a date string.
79328         Fix some bugs near time_t boundaries.  Reject dates with
79329         out-of-range components, e.g., "Sept 31".
79330         Include <stdlib.h>, "setenv.h", "xalloc.h".
79331         (ISDIGIT_LOCALE): Remove; unused.
79332         Note that the TZ and time functions used here are not reentrant.
79333         (mktime_ok, get_tz): New functions.
79334         (TZBUFSIZE): New constant.
79335         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79336         This requires that we sometimes generate our own TZ="XXX..." setting.
79337
79338 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79339
79340         * doc/getdate.texi: New file, from coreutils with modifications for
79341         the new TZ parsing.
79342
79343 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79344
79345         * lib/mktime.c (not_equal_tm): Remove redundant check.
79346
79347 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79348
79349         * modules/regex (lib_SOURCES): Add regex.c.
79350         Reported by James Youngman in
79351         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79352
79353 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79354
79355         * lib/getdate.y: Use Bison 1.875 features, and some minor
79356         code cleanups.  This change does not affect semantics.
79357         Don't include <stdlib.h>; no longer needed.
79358         Don't include unlocked-io.h; only the "#if TEST" code uses
79359         stdio, and performance isn't crucial there.
79360         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79361         Bison 1.875 features as described below.
79362         All uses of "PC." replaced by "pc->".
79363         (YYSTYPE): Add a forward declaration.
79364         (yylex, yyerror): Use full prototypes in forward decls.
79365         Use "%pure-parser" rather than obsolescent "%pure_parser".
79366         Use %parse-param and %lex-param instead of obsolescent
79367         YYPARSE_PARAM and YYLEX_PARAM.
79368         (meridian_table, month_and_day_table, time_units_table,
79369         relative_time_table, time_zone_table, military_table,
79370         lookup_zone, lookup_word, get_date):
79371         Use NULL instead of 0 where appropriate.
79372         (to_hour): Avoid abort (), to avoid a dependency on
79373         stdlib.h.
79374         (yyerror, yylex): Now accepts parser_control * arg.
79375         (main) [TEST]: Use '\0' rather than 0 for char.
79376
79377 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79378
79379         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79380
79381 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79382
79383         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79384         It's now the caller's responsibility to handle the case where
79385         !HAVE_GETPAGESIZE && !defined getpagesize.
79386
79387         * lib/mktime.c (leapyear): Arg is long int, not int.
79388
79389 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79390
79391         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79392
79393 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79394
79395         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79396         missing.  Problem reported by James Youngman.
79397
79398 2004-10-16  Simon Josefsson  <jas@extundo.com>
79399
79400         * gnulib-tool: Fix comments.  Fix parse problem.
79401         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79402
79403 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79404
79405         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79406         implementation of getopt_long.  Problem reported by Alexander Taler in:
79407         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79408
79409 2004-10-15  Bruno Haible  <bruno@clisp.org>
79410
79411         * gnulib-tool: Untabify. Initialize supplied_libname.
79412         (func_usage): More homogenous output.
79413         (func_modules_transitive_closure, func_modules_to_filelist,
79414         func_emit_lib_Makefile_am): New functions.
79415         (func_import): New function, extracted from big case statement. Use
79416         func_get_license, func_modules_transitive_closure,
79417         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79418         opt_lgpl. Don't use test -a, as it's not portable.
79419         (func_create_testdir): Use func_modules_transitive_closure,
79420         func_modules_to_filelist, func_emit_lib_Makefile_am.
79421
79422 2004-10-15  Bruno Haible  <bruno@clisp.org>
79423
79424         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79425
79426 2004-10-15  Bruno Haible  <bruno@clisp.org>
79427
79428         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79429         the portions belonging to each module.
79430         Suggested by Derek Robert Price <derek@ximbiot.com>.
79431
79432 2004-10-12  Simon Josefsson  <jas@extundo.com>
79433
79434         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79435         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79436         to real functions.
79437
79438 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79439
79440         * modules/vsnprintf: New file.
79441
79442 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79443
79444         * m4/vsnprintf.m4: New file.
79445
79446 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79447
79448         * lib/vsnprintf.h: New file.
79449         * lib/vsnprintf.c: New file.
79450
79451 2004-10-11  Bruno Haible  <bruno@clisp.org>
79452
79453         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79454         vsnprintf.
79455
79456 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79457
79458         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79459
79460 2004-10-07  Bruno Haible  <bruno@clisp.org>
79461
79462         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79463         fits into the provided buffer.
79464
79465 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79466
79467         * lib/diacrit.c, diacrit.h: Add GPL notice.
79468
79469         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79470         notice.
79471         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79472         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79473         This avoids a potential constant-folding bug.
79474
79475 2004-10-05  Bruno Haible  <bruno@clisp.org>
79476
79477         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79478         for the declaration of strsep.
79479
79480 2004-10-05  Bruno Haible  <bruno@clisp.org>
79481
79482         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79483
79484 2004-10-04  Simon Josefsson  <jas@extundo.com>
79485
79486         * modules/memmem: New file.
79487         * tests/test-memmem.c: New file.
79488         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79489
79490 2004-10-04  Simon Josefsson  <jas@extundo.com>
79491
79492         * m4/memmem.m4: New file.
79493
79494 2004-10-04  Simon Josefsson  <jas@extundo.com>
79495
79496         * lib/memmem.h: New file.
79497         * lib/memmem.c: New file, taken from glibc.
79498
79499 2004-10-04  Simon Josefsson  <jas@extundo.com>
79500
79501         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79502         '#ifdef USE_UNLOCKED_IO'.
79503
79504 2004-10-04  Simon Josefsson  <jas@extundo.com>
79505
79506         * config/srclist.txt: Add memmem from glibc.
79507
79508 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79509
79510         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79511
79512         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79513         modules/exclude, modules/getdate, modules/getline,
79514         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79515         modules/getusershell, modules/linebuffer, modules/md5,
79516         modules/mountlist, modules/posixtm, modules/readtokens,
79517         modules/readutmp, modules/regex, modules/sha1,
79518         modules/version-etc, modules/yesno:
79519         Remove dependency on unlocked-io.
79520
79521 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79522
79523         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79524
79525         * m4/unlocked-io.m4: Add copyright notice.
79526         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79527
79528 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79529
79530         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79531         * lib/xmalloc.c (xmemdup): Likewise.
79532         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79533         XFREE): Remove these long-obsolescent macros.
79534         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79535         * lib/xstrdup.c: Remove.
79536
79537         * lib/regex.c (re_comp): Cast gettext return value to char *,
79538         Problem reported by Martin Neitzel via Mark D. Baushke.
79539
79540 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79541
79542         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79543         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79544         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79545         regex.c, sha1.c, version-etc.c, yesno.c:
79546         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79547         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79548         the includer's responsibility.
79549
79550         Sync from coreutils.
79551
79552         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79553         points to the start of a string, as the C Standard says the
79554         resulting behavior is undefined.
79555
79556         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79557         simple -> simple_backups, numbered_existing ->
79558         numbered_existing_backups, numbered -> numbered_backups
79559         to avoid shadowing problems.  All uses changed.
79560         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79561         * lib/backupfile.c (check_extension, numbered_backup):
79562         Rename locals to avoid shadowing 'basename'.
79563         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79564         once.
79565
79566         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79567         * lib/.cvsignore: Add getopt.h.
79568
79569 2004-10-04  Bruno Haible  <bruno@clisp.org>
79570
79571         * modules/README: New file.
79572         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79573         not a module.
79574
79575 2004-10-02  Jim Meyering  <jim@meyering.net>
79576
79577         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79578
79579 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79580
79581         * modules/strsep: New file.
79582
79583 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79584
79585         * m4/strsep.m4: New file.
79586
79587 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79588
79589         * lib/strsep.h: New file.
79590         * lib/strsep.c: New file.
79591
79592 2004-10-01  Simon Josefsson  <jas@extundo.com>
79593
79594         * lib/snprintf.c (snprintf): Handle size==0.
79595
79596 2004-10-01  Simon Josefsson  <jas@extundo.com>
79597             Bruno Haible  <bruno@clisp.org>
79598
79599         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79600         (snprintf): Declare 'args'.
79601
79602 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79603
79604         * lib/snprintf.c: Remove comments as to why each header is needed.
79605
79606 2004-10-01  Bruno Haible  <bruno@clisp.org>
79607
79608         * MODULES.html.sh: Add strsep.
79609
79610 2004-09-30  Simon Josefsson  <jas@extundo.com>
79611
79612         * modules/snprintf: New file.
79613
79614 2004-09-30  Simon Josefsson  <jas@extundo.com>
79615
79616         * m4/snprintf.m4: New file.
79617
79618 2004-09-30  Simon Josefsson  <jas@extundo.com>
79619
79620         * lib/snprintf.h, lib/snprintf.c: New files.
79621
79622 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79623
79624         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79625         (hol_entry_help): Never translate an empty string.
79626         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79627         * lib/argp.h (OPTION_NO_TRANS): New option.
79628
79629 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79630
79631         * modules/argp (Maintainer): Replace Simon Josefsson
79632         by Sergey Poznyakoff.
79633
79634 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79635
79636         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79637         changes merged back into glibc.
79638
79639 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79640
79641         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79642
79643 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79644
79645         * lib/xvasprintf.c: Include xalloc.h.
79646         (xvasprintf): Use xalloc_die, not xmalloc_die.
79647
79648 2004-09-29  Bruno Haible  <bruno@clisp.org>
79649
79650         * modules/alloca-opt: New file, derived from modules/alloca.
79651         * modules/allocsa: Depend on alloca-opt instead of alloca.
79652         * modules/setenv: Likewise.
79653         * modules/vasnprintf: Likewise.
79654         * MODULES.html.sh: Add alloca-opt.
79655
79656 2004-09-28  Simon Josefsson  <jas@extundo.com>
79657
79658         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79659         LGPL, and to replace license template from GPL to LGPL.
79660
79661 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79662
79663         * modules/dummy: Change license to LGPL.
79664
79665 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79666
79667         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79668
79669 2004-09-24  Simon Josefsson  <jas@extundo.com>
79670
79671         * modules/minmax (License): Change from GPL to LGPL.
79672
79673 2004-09-23  Simon Josefsson  <jas@extundo.com>
79674
79675         * gnulib-tool (--import): Typo.
79676
79677 2004-09-23  Simon Josefsson  <jas@extundo.com>
79678
79679         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79680
79681 2004-09-22  Bruno Haible  <bruno@clisp.org>
79682
79683         * modules/*: Add 'License' field.
79684         * gnulib-tool: Accept --extract-license option.
79685         (func_get_license): New function.
79686
79687 2004-09-21  Bruno Haible  <bruno@clisp.org>
79688
79689         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79690         Reported by Simon Josefsson.
79691
79692 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79693
79694         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79695         gl_AC_TYPE_LONG_LONG.
79696
79697 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79698
79699         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79700
79701 2004-09-18  Simon Josefsson  <jas@extundo.com>
79702         and  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79705         calls with autoreconf.  Define GL_LIB.
79706
79707 2004-09-14  Karl Berry  <karl@gnu.org>
79708
79709         * config/srclist.txt: unsync setenv.c, sigh.
79710
79711 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79712
79713         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79714         Problem reported by Bruno Haible in:
79715         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79716
79717 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79718
79719         * config/srclist.txt: Comment out argp-pvh.c.
79720
79721 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79722
79723         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79724         in case some system header has #define'd it.  Problem reported by
79725         Soeren D. Schulze in
79726         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79727
79728 2004-09-09  Karl Berry  <karl@gnu.org>
79729
79730         * regex.[ch]: delete from the root.  These were supposed to be
79731                 synced with emacs cvs, but this has not happened for about
79732                 a year, and anyway nothing else uses emacs regex.[ch].
79733                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79734                 lib/regex[.ch] is untouched.
79735
79736 2004-09-09  Bruno Haible  <bruno@clisp.org>
79737
79738         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79739
79740 2004-09-09  Bruno Haible  <bruno@clisp.org>
79741
79742         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79743         modifications.
79744         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79745
79746 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79747
79748         * modules/xvasprintf: New file.
79749         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79750
79751 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79752
79753         * lib/xvasprintf.h: New file.
79754         * lib/xvasprintf.c: New file.
79755         * lib/xasprintf.c: New file.
79756
79757 2004-09-08  Bruno Haible  <bruno@clisp.org>
79758
79759         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79760
79761 2004-09-08  Bruno Haible  <bruno@clisp.org>
79762
79763         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79764         length is > INT_MAX.
79765         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79766         more.
79767
79768 2004-09-08  Bruno Haible  <bruno@clisp.org>
79769
79770         * lib/stdint_.h: New file, taken from GNU clisp.
79771
79772 2004-09-08  Bruno Haible  <bruno@clisp.org>
79773             Oskar Liljeblad  <oskar@osk.mine.nu>
79774
79775         * modules/stdint: New file.
79776         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79777
79778 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79779
79780         Import from coreutils.
79781         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79782         strings on unbounded length.  alloca's performance benefits aren't
79783         that important here.
79784         (V_STRDUP): Remove.
79785         (parse_with_separator): New function, with most of the internals
79786         of the old parse_user_spec.  Allow user to omit both user and group,
79787         for compatibility with FreeBSD.
79788         Clone only the user name, not the entire spec.
79789         Do not set *uid, *gid unless entirely successful.
79790         Avoid memory leak in some failing cases.
79791         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79792         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79793         (parse_user_spec): Rewrite to use parse_with_separator.
79794
79795 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79796
79797         * modules/userspec: Don't depend on alloca.
79798
79799 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79800
79801         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79802
79803 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79804
79805         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79806         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79807         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79808
79809 2004-08-16  Simon Josefsson  <jas@extundo.com>
79810
79811         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79812         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79813         Add --dry-run for --import.
79814         Let user provided command line parameters override configure.ac
79815         settings.
79816
79817 2004-08-12  Simon Josefsson  <jas@extundo.com>
79818
79819         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79820         as discussed with Paul Eggert in threads rooted at
79821         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79822         and
79823         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79824         Before, the test was empty, and relied on ELIDE_CODE in source
79825         code.)
79826         (gl_PREREQ_GETOPT): New macro.
79827         (gl_GETOPT): Use them.
79828
79829 2004-08-12  Simon Josefsson  <jas@extundo.com>
79830
79831         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79832         * lib/getopt_.h: Renamed from getopt.h.
79833
79834 2004-08-12  Simon Josefsson  <jas@extundo.com>
79835
79836         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79837         Change default library name from libfoo to libgnu.
79838         Now, if you have a configure.ac that says:
79839                 gl_SOURCE_BASE(gl)
79840                 gl_M4_BASE(gl/m4)
79841                 gl_MODULES(error getopt etcetera)
79842                 gl_INIT
79843         you can import all you need by running:
79844                 ../gnulib/gnulib-tool --import
79845
79846         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79847         (Makefile.am): Rewrite, use logic from argz.
79848         (Include): Use <getopt.h> instead of "getopt.h".
79849
79850 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79851
79852         * modules/argp (Files): Add m4/unlocked-io.m4.
79853         (Depends-on): Add extensions.
79854
79855 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79856
79857         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79858         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79859         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79860         Check for program_invocation_name, program_invocation_short_name,
79861         flockfile, funlockfile, features.h, _getopt_long_only_r.
79862
79863 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79866         its complicated substitute.
79867         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79868         and program_invocation_name.
79869         (__argp_basename) [!_LIBC]: Remove; the only use was
79870         replaced by its body.
79871         (__argp_short_program_name): Change condition from
79872         !defined __argp_short_program_name to
79873         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79874         to match argp-namefrob.h.
79875         (__argp_failure): Don't assume strerror_r returns char *.
79876         * lib/argp-parse.c (N_): Define unconditionally.
79877         (argp_default_options): Fill out initializers with 0 to avoid
79878         gcc warnings.
79879
79880 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79881
79882         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79883         getopt1.c.
79884
79885 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79886
79887         Merge from coreutils.
79888
79889         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79890
79891         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79892         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79893
79894 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79895
79896         Merge from coreutils.
79897
79898         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79899         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79900         for Reliant Unix 5.43.
79901
79902         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79903         (union fooround): Use uintmax_t, not long int.
79904         The rest is a merge from libc:
79905         [defined _LIBC]: Include <shlib-compat.h>.
79906         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79907
79908         * lib/settime.c (settime): Recode to avoid warning with
79909         Sun Forte C 6U2.
79910
79911         * lib/strverscmp.c: Convert to UTF-8.
79912
79913 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79914
79915         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79916         m4/uintmax_t.m4.
79917
79918 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79919
79920         * modules/xalloc-die: New file.
79921         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79922
79923         * modules/md5 (Files): Add m4/uint32_t.m4.
79924         * modules/sha1: Renamed from modules/sha.
79925         (Files):
79926         Rename lib/sha.h to lib/sha1.h.
79927         Rename lib/sha.c to lib/sha1.c.
79928         Rename m4/sha.m4 to m4/sha1.m4.
79929         (lib_SOURCES): Likewise.
79930         (configure.ac): Rename gl_SHA to gl_SHA1.
79931         (Include): sha.h -> sha1.h.
79932
79933 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79934
79935         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79936         * m4/sha1.m4: Renamed from sha.m4.
79937         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79938
79939 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79940
79941         * lib/obstack.h (obstack_empty_p):
79942         Don't assume that chunk->contents is suitably aligned.
79943         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79944         Likewise. Problem reported by Benno in
79945         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79946
79947         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79948         readable.  This could be improved further but it'd take some work.
79949
79950 2004-08-08  Simon Josefsson  <jas@extundo.com>
79951
79952         * modules/xgethostname (Depends-on): Remove exit and error (not
79953         used).
79954
79955         * modules/getpass-gnu: Add getpass.h.
79956         (Depends-on): Add stdbool.
79957         * modules/getpass: Add getpass.h.
79958
79959 2004-08-08  Simon Josefsson  <jas@extundo.com>
79960
79961         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79962         Check getpass declaration.
79963
79964 2004-08-08  Simon Josefsson  <jas@extundo.com>
79965
79966         * lib/xgethostname.c: Don't include error.h (not used).
79967
79968         * lib/getpass.h: Add.
79969         * lib/getpass.c: Include getpass.h first.
79970
79971 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79972
79973         * lib/xalloc-die.c: New file.
79974         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79975         All uses removed.
79976         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79977         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79978         xalloc-die.c.
79979         (_, N_, xalloc_die): Move to xalloc-die.c.
79980         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79981         so that we needn't mess with xalloc_msg_memory_exhausted.
79982
79983         * lib/sha1.h: Renamed from sha.h.
79984         (SHA1_H): Renamed from _SHA_H.
79985         (sha1_ctx): Renamed from sha_ctx.
79986         (sha1_init_ctx): Renamed from sha_init_ctx.
79987         (sha1_process_block): Renamed from sha_process_block.
79988         (sha1_process_bytes): Renamed from sha_process_bytes.
79989         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79990         (sha1_read_ctx): Renamed from sha_read_ctx.
79991         (sha1_stream): Renamed from sha_stream.
79992         (sha1_buffer): Renamed from sha_buffer.
79993         * lib/sha1.c: Likewise; renamed from sha.c.
79994         Do not include <sys/types.h>.
79995         Include <stddef.h> rather than <stdlib.h>.
79996
79997 2004-08-08  Bruno Haible  <bruno@clisp.org>
79998
79999         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80000         FILESYSTEM_PREFIX_LEN.
80001         * lib/progreloc.c: Likewise.
80002         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80003
80004 2004-08-06  Simon Josefsson  <jas@extundo.com>
80005
80006         * modules/progname (Depends-on): Don't depend on stdbool.
80007
80008 2004-08-06  Simon Josefsson  <jas@extundo.com>
80009
80010         * modules/getsubopt: New file.
80011         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80012         getsubopt.
80013
80014 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80015
80016         More merge from coreutils.
80017
80018         * m4/utimens.m4, m4/utimecmp.m4: New files.
80019         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80020         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80021         prereq.m4, sha.m4: Import changes from coreutils.
80022
80023 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         More merge from coreutils.
80026         * modules/raise, modules/readtokens0, modules/utimens:
80027         * modules/utimecmp, module/xnanosleep: New files.
80028         * modules/strftime: Add lib/strftime.h.
80029         Change include from <time.h> to "strftime.h".
80030         * modules/yesno: Add lib/yesno.h.
80031         * modules/backupfile: Remove lib/addext.c.
80032         * modules/euidaccess: Add stat-macros.h.
80033         * modules/canonicalize, modules/euidaccess,
80034         modules/filemode, modules/lchown, modules/makepath,
80035         modules/rmdir, modules/stat: Likewise.
80036
80037 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80038
80039         Merge from tar.
80040         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80041         SIZE_MAX is a valid preprocessor constant.
80042         (__argp_basename): Change from "#ifndef _LIBC"
80043         to "#ifndef __argp_short_program_name", so that
80044         we don't compile these functions for tar.
80045
80046         More merges from coreutils.
80047         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80048         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80049         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80050         * lib/addext.c: Remove; no longer needed.
80051         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80052         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80053         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80054         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80055         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80056         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80057         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80058         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80059         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80060         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80061         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80062         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80063         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80064         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80065         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80066         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80067         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80068         Import changes from coreutils.
80069
80070 2004-08-05  Simon Josefsson  <jas@extundo.com>
80071
80072         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80073
80074 2004-08-05  Simon Josefsson  <jas@extundo.com>
80075
80076         * m4/getsubopt.m4: New file.
80077
80078 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80079
80080         Merge from coreutils.
80081
80082         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80083         * m4/getcwd-path-max.m4: New files.
80084
80085         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80086         FILESYSTEM_PREFIX_LEN ->
80087         FILE_SYSTEM_PREFIX_LEN.
80088         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80089         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80090         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80091         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80092
80093         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80094         prerequisite modules now handle the DOS stuff.
80095         Don't check for unistd.h.
80096
80097 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80098
80099         Merge from coreutils.
80100
80101         * lib/.gdb-history: Remove; this doesn't belong here.
80102
80103         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80104         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80105         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80106         * lib/getcwd.c: New files.
80107
80108         * lib/dirname.h: Include <stdbool.h>.
80109         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80110         for consistency with POSIX terminology.  All uses changed.
80111         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80112         (strip_trailing_slashes): Use bool for booleans.
80113         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80114
80115         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80116         sometimes returns a positive errno value even when it succeeds.
80117         (print_errno_message) [!LIBC]: Fall back on strerror if
80118         __strerror_r fails.
80119
80120         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80121         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80122         (longest_relative_suffix): New function.
80123         (path_concat): Use it.  Assume first argument is not NULL.
80124         Port to DOS.  Omit redundant separators.
80125         Report an error instead of returning NULL.
80126         Use mempcpy instead of memcpy.
80127         (xpath_concat): Remove: not declared or used.
80128
80129         * lib/same.h: Include <stdbool.h>
80130         (same_name): Return bool, not int.
80131         * lib/same.c (same_name): Likewise.
80132         (errno): Don't declare; we assume C89 or better now.
80133
80134         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80135         if not already defined.
80136
80137         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80138         * lib/dup-safer.c (errno): Likewise.
80139
80140 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80141
80142         Merge from coreutils.
80143         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80144         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80145         * modules/path-concat: Don't depend on strdup.
80146
80147 2004-08-03  Simon Josefsson  <jas@extundo.com>
80148
80149         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80150         * lib/progname.h: Don't include stdbool.h.
80151
80152 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80153
80154         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80155         * MODULES.html.sh (func_all_modules): Remove fatal.
80156
80157 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80158
80159         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80160
80161 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80164         working.
80165
80166 2004-08-02  Simon Josefsson  <jas@extundo.com>
80167
80168         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80169         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80170         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80171
80172 2004-08-01  Simon Josefsson  <jas@extundo.com>
80173
80174         * lib/xgetdomainname.c: Include stdlib.h, for free().
80175
80176 2004-07-19  Bruno Haible  <bruno@clisp.org>
80177
80178         * MODULES.html.sh (func_all_modules): Add dummy.
80179
80180 2004-07-16  Simon Josefsson  <jas@extundo.com>
80181
80182         * modules/dummy: New file.
80183
80184 2004-07-16  Simon Josefsson  <jas@extundo.com>
80185
80186         * lib/dummy.c: New file.
80187
80188 2004-07-16  Bruno Haible  <bruno@clisp.org>
80189
80190         * lib/backupfile.h: Add extern "C" for C++.
80191         * lib/closeout.h: Likewise.
80192         * lib/copy-file.h: Likewise.
80193         * lib/findprog.h: Likewise.
80194         * lib/full-write.h: Likewise.
80195         * lib/pathname.h: Likewise.
80196         * lib/progname.h: Likewise.
80197         * lib/stpcpy.h: Likewise.
80198         * lib/stpncpy.h: Likewise.
80199         * lib/strcase.h: Likewise.
80200         * lib/strstr.h: Likewise.
80201         * lib/xalloc.h: Likewise.
80202
80203         * lib/mbswidth.h: Add extern "C" for C++.
80204         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80205
80206 2004-07-13  Robert Millan  <robertmh@gnu.org>
80207
80208         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80209
80210 2004-07-09  Simon Josefsson  <jas@extundo.com>
80211
80212         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80213         failed without this.)
80214
80215 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80216
80217         * modules/chown (Files): Add lib/fchown-stub.c, since
80218         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80219
80220 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80221
80222         * lib/fchown-stub.c: New file.
80223
80224 2004-06-24  Jim Meyering  <jim@meyering.net>
80225
80226         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80227
80228 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80229
80230         * modules/argz: Omit "#include".
80231
80232         * MODULES.html.sh (func_all_modules): Add calloc, to match
80233         2004-06-01 addition of calloc module.
80234
80235 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80236
80237         * m4/argz.m4: New file, which is autoupdated from libtool.
80238
80239 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80240
80241         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80242         libtool.
80243
80244 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80245
80246         * config/srclist-update: Don't insist on "USA." before the
80247         close-comment, as libtool omits the period and puts the */ on a
80248         separate line.
80249         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80250         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80251
80252 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80253
80254         * modules/argz: New file.
80255         * MODULES.html.sh (func_all_modules): Add argz.
80256
80257 2004-06-12  Jim Meyering  <jim@meyering.net>
80258         and  Paul Eggert  <eggert@cs.ucla.edu>
80259
80260         * modules/hash (Files): Add lib/xalloc.h.
80261         * modules/pipe (Depends-on): Add wait-process.
80262         * modules/stat (Depends-on): Add xalloc.
80263         * modules/userspec (Files): Add lib/userspec.h.
80264         * modules/xstrto
80265
80266         Upgrade from gettext-0.13.
80267         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80268         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80269         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80270
80271 2004-06-10  Jim Meyering  <jim@meyering.net>
80272
80273         * lib/calloc.c: New file.
80274
80275 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80276
80277         * lib/getdate.y (yylex): Allow space between sign and number.
80278         Problem reported by Dan Jacobson.
80279
80280 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80281
80282         Merge from coreutils CVS.
80283
80284         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80285         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80286         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80287         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80288         xstrtol.m4: Fix copyright date and/or serial number.
80289
80290         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80291         See if we need an fchown replacement.
80292         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80293         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80294         and use the replacement function if we detect either defect.
80295
80296         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80297         gl_UTIMECMP.
80298
80299 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80300         and  Jim Meyering  <jim@meyering.net>
80301
80302         Merge from coreutils CVS.
80303
80304         * lib/stat-macros.h: New file, with contents from file-type.h
80305         and coreutils' system.h.
80306         * lib/file-type.c: Include "stat-macros.h".
80307         * lib/file-type.h (file_type): Move all macro definitions to new file,
80308         stat-macros.h.
80309
80310         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80311         Wrap old code with this conditional.
80312         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80313         function that does not dereference symlinks.
80314         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80315
80316         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80317         dependency problems.
80318         (xreadlink): Accept new arg SIZE, for efficiency.
80319         All decls and uses changed.
80320         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80321
80322         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80323         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80324
80325         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80326         sysexits.h.
80327
80328 2004-06-01  Jim Meyering  <jim@meyering.net>
80329
80330         * m4/calloc.m4: New file.
80331
80332 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80333
80334         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80335         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80336         Also, fix a typo in a diagnostic.
80337
80338 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80339
80340         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80341         or AC_FUNC_REALLOC.
80342
80343 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80344
80345         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80346         macros to be defined.
80347         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80348         the allocator returns NULL because the requested size is zero.
80349
80350 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80351
80352         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80353         var.  Add comment explaining why libc still defines it.  This
80354         merges the following patch from glibc:
80355         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80356
80357 2004-05-20  Andreas Schwab  <schwab@suse.de>
80358
80359         * m4/free.m4: Replace free if it not known to work, not the other
80360         way round.
80361
80362 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80363
80364         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80365         present in glibc since revision 1.1 of this file.
80366         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80367         obstack_alignment_mask, obstack_alloc, obstack_base,
80368         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80369         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80370         obstack_grow0, obstack_init, obstack_int_grow,
80371         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80372         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80373         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80374         nonexistent functions.
80375
80376 2004-05-18  Karl Berry  <karl@gnu.org>
80377
80378         * config/srclist.txt: break link for vasnprintf.c.
80379
80380 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80381
80382         Port obstack to the AS/400, where pointers are 16 bytes wide and
80383         you cannot cast an integer to a valid pointer.  This patch is
80384         currently waiting to be integrated into glibc; see
80385         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80386
80387         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80388         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80389         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80390         (struct obstack): temp member is now a union of a pointer and
80391         an integer, instead of an integer.  All integer uses changed.
80392         This does not affect the physical layout of struct obstack,
80393         except on hosts (like the AS/400) where the size or alignment of
80394         void * is greater than that of ptrdiff_t.
80395         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80396         __STDC__)]: Store temporary in pointer member of union, not
80397         integer member.
80398         * lib/obstack.c: Include <stddef.h>, for offsetof.
80399         (struct fooalign): Remove; it doesn't need a name.
80400         (union fooround): Change double to long double, and add void *.
80401         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80402         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80403         not a macro.  Hence the values are always int; so remove all
80404         casts-to-int in uses.
80405
80406 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80407
80408         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80409         we can get this patch merged into glibc.
80410
80411 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80412             Paul Eggert  <eggert@cs.ucla.edu>
80413
80414         * m4/argp: Depend on alloca.
80415
80416 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80417             Paul Eggert  <eggert@cs.ucla.edu>
80418
80419         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80420         freecoding.
80421
80422 2004-05-17  Bruno Haible  <bruno@clisp.org>
80423
80424         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80425         precision that consists of a '.' followed by an empty digit string.
80426         Patch by Tor Lillqvist <tml@iki.fi>.
80427
80428 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80429
80430         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80431         for backward compatibility with older code.  We need our own
80432         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80433         it under some other name, and our alloca.h will define it.
80434
80435 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80436             Derek Price  <derek@ximbiot.com>
80437
80438         * lib/alloca.c: Include <alloca.h>, to get our interface.
80439         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80440         include <alloca.h> first.  Use C89 prototype for alloca; this
80441         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80442         Use #elif for simplicity, since we can assume C89 now.
80443         Don't try to source the system alloca.h since it will not be found
80444         and to prevent recursively including its replacement.
80445         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80446         * lib/regex.c: Likewise.
80447
80448 2004-05-16  Derek Price  <derek@ximbiot.com>
80449             Paul Eggert  <eggert@cs.ucla.edu>
80450
80451         getline cleanup.  This changes the getndelim2 API: both order of
80452         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80453         no delimiter).
80454
80455         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80456         interface does that.
80457         (getline): Always use getdelim, so that we don't have two
80458         copies of this code.
80459         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80460         if available.
80461         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80462         (GETNDELIM2_MAXIMUM): New macro.
80463         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80464         instead of the old practice of delim2==0.  All callers changed.
80465         Return -1 on overflow, instead of returning junk.
80466         Do not set *linesize unless allocation succeeds.
80467         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80468         that we include sys/types.h.
80469         * lib/getnline.h: Likewise.
80470         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80471         (getndelim2): Reorder arguments.
80472         * lib/getnline.c (getnline, getndelim):
80473         Don't discard the NMAX argument.
80474         (getnline): Invoke getndelim, to avoid code duplication.
80475         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80476         of (size_t) -1 by callers of the getnline family.
80477
80478 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80479
80480         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80481         Check for gettimeofday.
80482         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80483         Check for settimeofday, stime.
80484
80485 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80486
80487         * lib/nanosleep.c (suspended): Change its type from int to
80488         sig_atomic_t volatile.
80489         (first_call): Make it private to rpl_nanosleep, and have it
80490         be zero initially as that's a bit faster.
80491         (my_usleep): Round up fractional times instead of truncating them,
80492         as this is the usual meaning for 'sleep'.
80493
80494         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80495         doesn't work.
80496         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80497         (ENOSYS): Define if not defined.
80498         (settime): Fall back on stime if it exists and settimeofday fails.
80499         But don't bother with fallbacks if a method fails with errno == EPERM.
80500
80501 2004-05-11  Jim Meyering  <jim@meyering.net>
80502
80503         Prior to this change, the save_cwd caller required read access to the
80504         current directory on most systems (ones with the fchdir function).
80505
80506         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80507         fails, try write-only, and finally, resort to using xgetcwd.
80508
80509 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80510
80511         * lib/obstack.c, obstack.h: Import changes from libc.
80512
80513 2004-04-28  Bruno Haible  <bruno@clisp.org>
80514
80515         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80516         also implicitly appends .exe to executables.
80517         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80518         accepts Windows pathnames.
80519         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80520         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80521         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80522         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80523         Reported by Derek Robert Price <derek@ximbiot.com>.
80524
80525 2004-04-21  Karl Berry  <karl@gnu.org>
80526
80527         * config/srclist.txt (localcharset.c): break sync.
80528
80529 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80530
80531         * m4/host-os.m4: Add a copyright notice.
80532
80533 2004-04-20  Jim Meyering  <jim@meyering.net>
80534
80535         Change UTILS_ to gl_ in AC_DEFINE'd names.
80536         Change utils_- and jm_-prefixed variables, too.
80537         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80538         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80539         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80540
80541         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80542         Don't emit trailing blanks.
80543         Also rename jm_-prefixed variables to have gl_ prefix.
80544
80545         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80546         Also rename jm_-prefixed variables to have gl_ prefix.
80547
80548         * m4/jm-macros.m4: Reflect the renamings.
80549         * m4/prereq.m4: Likewise.
80550
80551 2004-04-20  Jim Meyering  <jim@meyering.net>
80552
80553         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80554         memory.
80555
80556 2004-04-20  Jim Meyering  <jim@meyering.net>
80557             Bruno Haible  <bruno@clisp.org>
80558
80559         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80560         memory when realloc fails.
80561
80562 2004-04-19  Jim Meyering  <jim@meyering.net>
80563
80564         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80565         now that readutmp.c may call `free (0)'.
80566
80567 2004-04-19  Bruno Haible  <bruno@clisp.org>
80568
80569         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80570         * m4/inttypes_h.m4: Likewise.
80571         * m4/stdint_h.m4: Likewise.
80572         * m4/intmax_t.m4: Likewise.
80573         * m4/uintmax_t.m4: Likewise.
80574
80575 2004-04-18  Jim Meyering  <jim@meyering.net>
80576
80577         * m4/prereq.m4: Don't forbid jm_ prefix.
80578
80579         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80580         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80581         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80582         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80583         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80584         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80585         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80586         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80587         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80588         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80589         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80590         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80591         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80592         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80593         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80594         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80595         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80596         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80597         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80598
80599 2004-04-18  Jim Meyering  <jim@meyering.net>
80600
80601         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80602         failure, don't leak memory and do call END_UTMP_ENT.
80603
80604 2004-04-16  Jim Meyering  <jim@meyering.net>
80605
80606         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80607         coreutils' stat program.
80608         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80609
80610 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80611
80612         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80613         C89.
80614         (CHAR_BIT): Remove, since we assume C89.
80615         Include <stdint.h> if available, as per current Autoconf CVS advice.
80616
80617 2004-03-31  Jim Meyering  <jim@meyering.net>
80618
80619         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80620         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80621         * m4/xalloc.m4: Likewise.
80622
80623 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80624
80625         Merge from coreutils.
80626
80627         * m4/inttostr.m4: New file.
80628         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80629         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80630         Require gl_CLOCK_TIME.
80631         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80632
80633 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80634
80635         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80636         not bool, to be more consistent with Unix conventions.
80637         Suggested by Bruno Haible.
80638
80639         Merge from coreutils.
80640
80641         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80642         * lib/umaxtostr.c: New files.
80643
80644         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80645         the usual <time.h> dance.
80646         (get_date): Change signature to support fractional time stamps.
80647         All callers changed.
80648         * lib/getdate.y: Include "getdate.h" first, as we can now
80649         assume C89 and don't need to worry about 'const'.
80650         Similarly, include "unlocked-io.h" near start, not in middle.
80651         Include <limits.h>.
80652         (textint.value): Use long int rather than int.
80653         (textint.digits): Use size_t rather than int.
80654         (BILLION, LOG10_BILLION): New constants.
80655         (parser_control): New member rel_ns.  Members day_ordinal,
80656         time_zone, month, day, hour, minutes, rel_year, rel_month,
80657         rel_day, rel_hour, rel_minutes, rel_seconds
80658         are now long int, not int.  Member seconds is now struct timespec,
80659         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80660         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80661         not int.
80662         (%union.intval): Now long int, not int.
80663         New member timespec.
80664         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80665         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80666         (spec): Now is a timespec or an item list.
80667         (timespec, items): New nonterminals.
80668         (time, rel, relunit, number, get_date):
80669         Add support for fractional seconds.
80670         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80671         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80672         (to_hour): First arg is now long int, not int.
80673         (to_year): Returns long int, not int.
80674         Don't treat year -70 like 70.
80675         (tm_diff): Returns long int, not int.
80676         (lookup_word): Use bool instead of int when appropriate.
80677         (yylex): Use size_t for count, not int.
80678         Detect overflow when parsing large integer constants.
80679         Add support for fractions.
80680         (get_date): Make pointers 'const' if possible.
80681         Use more-portable code to detect integer overflow.
80682         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80683         Don't use ctime; it's not reliable if the year has >4 digits.
80684
80685         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80686         This is for compatibility with BSD.
80687
80688         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80689         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80690         From coreutils' system.h.
80691
80692         * lib/userspec.c: Don't include "posixver.h".
80693         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80694         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80695         compatible extension.  Simplify code by removing a boolean int
80696         that was always nonzero if a string was nonnull.
80697
80698 2004-03-30  Jim Meyering  <jim@meyering.net>
80699
80700         Merge from coreutils.
80701
80702         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80703         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80704         on some systems one must include <grp.h> before it.
80705         Reported by Christian Krackowizer.
80706
80707 2004-03-30  Jim Meyering  <jim@meyering.net>
80708
80709         Merge from coreutils.
80710
80711         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80712
80713         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80714         an empty input stream.
80715
80716         * lib/readtokens.c: Include <stdbool.h>.
80717         (readtoken): Use `size_t' rather than int/long.
80718         All callers adjusted.
80719         Use `bool' rather than `int' where appropriate.
80720         Use memset rather than an explicit loop.
80721         Use x2nrealloc rather than xrealloc.
80722         Allow the use of `\0' as a delimiter.
80723         (readtokens): Likewise.
80724         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80725
80726 2004-03-30  Jim Meyering  <jim@meyering.net>
80727
80728         * m4/realloc.m4: Remove file, since now it does no more than
80729         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80730         the `configure.ac' section of module/realloc.
80731         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80732
80733 2004-03-30  Bruno Haible  <bruno@clisp.org>
80734
80735         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80736         nonnull.
80737
80738 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80739
80740         Merge changes to getloadavg.c from coreutils and Emacs.
80741
80742         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80743         Define to an expression, not to the empty string.
80744         Include cloexec.h and xalloc.h.
80745         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80746         Use set_cloexec_flag rather than rolling our own.
80747         * lib/cloexec.c, lib/cloexec.h: New files.
80748
80749 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80750
80751         * m4/cloexec.m4: New file.
80752
80753 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80754
80755         * lib/getopt.h: Sync with libc CVS.
80756
80757 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80758             Bruno Haible  <bruno@clisp.org>
80759
80760         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80761         mbswidth.
80762
80763 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80764             Bruno Haible  <bruno@clisp.org>
80765
80766         * lib/mbswidth.h: Include <wchar.h> only if
80767         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80768         <wchar.h>.
80769         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80770
80771 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80772
80773         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80774         Sync with libc CVS.
80775         * lib/getopt_int.h: New file, also synced from libc.
80776
80777 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80778
80779         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80780         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80781         Bring back getopt.c, getopt.h, getopt1.c.
80782
80783 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80784
80785         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80786         All uses changed.  Check for sa_sigaction member; this fixes
80787         a bug first reported by Jason Andrade in
80788         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80789
80790 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80791
80792         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80793         '#if' expressions.  Unlike the code it replaces, it does not
80794         depend on (defined _SC_PAGESIZE).  However, it does depend on
80795         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80796         first reported by Jason Andrade in
80797         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80798
80799 2004-02-25  Simon Josefsson  <jas@extundo.com>
80800
80801         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80802
80803 2004-02-25  Simon Josefsson  <jas@extundo.com>
80804
80805         * lib/strdup.h: New file.
80806         * lib/strdup.c: Include it.
80807         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80808         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80809
80810 2004-02-23  Karl Berry  <karl@gnu.org>
80811
80812         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80813         (from fencepost.gnu.org:/gd/gnuorg).
80814
80815 2004-02-23  Karl Berry  <karl@gnu.org>
80816
80817         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80818         * config/srclist.txt: add maintain/standards documents.
80819
80820 2004-02-18  Bruno Haible  <bruno@clisp.org>
80821
80822         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80823         Reported by Derek Robert Price <derek@ximbiot.com>.
80824
80825 2004-02-16  Karl Berry  <karl@gnu.org>
80826
80827         * config/mkinstalldirs, install-sh: update from automake.
80828
80829 2004-02-06  Karl Berry  <karl@gnu.org>
80830
80831         * m4/po.m4: update from gettext 0.14.1.
80832
80833 2004-02-06  Karl Berry  <karl@gnu.org>
80834
80835         * lib/config.charset: update from gettext 0.14.1.
80836
80837 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80838
80839         Add comments and code, prompted by suggestions from Bruno Haible
80840         for sh-quote.
80841         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80842         describing the enum quoting_style values.
80843         * lib/quotearg.c (quotearg_alloc): New function.
80844         (quotearg_buffer_restyled): Treat lone { and } as special.
80845         Treat = as special.  Work around bug with older shells
80846         that "see" a '\' that is really the 2nd byte of a multibyte char.
80847         Quote empty string with shell_quoting_style.
80848
80849 2004-02-03  Bruno Haible  <bruno@clisp.org>
80850
80851         * m4/pipe.m4: New file, from GNU gettext.
80852
80853 2004-02-03  Bruno Haible  <bruno@clisp.org>
80854
80855         * lib/pipe.h: New file, from GNU gettext.
80856         * lib/pipe.c: New file, from GNU gettext.
80857
80858 2004-01-27  Bruno Haible  <bruno@clisp.org>
80859
80860         * m4/execute.m4: New file, from GNU gettext.
80861
80862 2004-01-27  Bruno Haible  <bruno@clisp.org>
80863
80864         * lib/execute.h: New file, from GNU gettext.
80865         * lib/execute.c: New file, from GNU gettext.
80866         * lib/w32spawn.h: New file, from GNU gettext.
80867
80868 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80869
80870         Merge from diffutils.
80871
80872         * lib/file-type.c (file_type): Add typed memory objects.
80873         * lib/file-type.h (S_TYPEISTMO): New macro.
80874
80875         * lib/c-stack.h (c_stack_action): Remove argv argument.
80876         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80877         (die): Don't calculate message unless segv_action returns.
80878         (get_stack_location, min_address_from_argv, max_address_from_argv,
80879         volatile stack_base, volatile_stack_size): Remove.
80880         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80881         that every segmentation violation is a stack overflow.  (Ouch!)
80882         See Debian bug 136249 (still outstanding) for more info about why
80883         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80884
80885 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80886
80887         Exit-status fix from coreutils.
80888
80889         Use exit_failure consistently in place of EXIT_FAILURE,
80890         so that program exit statuses are consistent on failure.
80891
80892         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80893         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80894         * lib/argmatch.h: Comment fix to match the above.
80895         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80896         Now a macro referring to exit_failure, instead of a separate
80897         variable.  Include "exitfail.h" to get it.
80898         * lib/xstrtol.h: Include "exitfail.h".
80899         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80900
80901         * lib/long-options.c (parse_long_options): Use prototype
80902         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80903         for clarity.
80904
80905 2004-01-21  Jim Meyering  <jim@meyering.net>
80906
80907         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80908         so as not to conflict with a different-sized __mktime_internal
80909         function in GNU libc.
80910         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80911         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80912
80913 2004-01-20  Karl Berry  <karl@gnu.org>
80914
80915         * config/config.guess: update from config.
80916
80917         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80918
80919 2004-01-20  Bruno Haible  <bruno@clisp.org>
80920
80921         Safer stack allocation.
80922         * lib/setenv.c: Include allocsa.h.
80923         (alloca): Remove fallback definition.
80924         (freea): Remove macro.
80925         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80926         instead of freea.
80927
80928 2004-01-20  Bruno Haible  <bruno@clisp.org>
80929
80930         * m4/eealloc.m4: New file, from GNU gettext.
80931
80932 2004-01-20  Bruno Haible  <bruno@clisp.org>
80933
80934         * m4/allocsa.m4: New file, from GNU gettext.
80935
80936 2004-01-20  Bruno Haible  <bruno@clisp.org>
80937
80938         * lib/xallocsa.h: New file, from GNU gettext.
80939         * lib/xallocsa.c: New file, from GNU gettext.
80940
80941 2004-01-20  Bruno Haible  <bruno@clisp.org>
80942
80943         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80944
80945 2004-01-20  Bruno Haible  <bruno@clisp.org>
80946
80947         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80948         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80949         specially.
80950
80951 2004-01-20  Bruno Haible  <bruno@clisp.org>
80952
80953         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80954         patch.
80955
80956 2004-01-20  Bruno Haible  <bruno@clisp.org>
80957
80958         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80959
80960 2004-01-20  Bruno Haible  <bruno@clisp.org>
80961
80962         * lib/eealloc.h: New file.
80963
80964 2004-01-20  Bruno Haible  <bruno@clisp.org>
80965
80966         * lib/binary-io.h: Avoid warnings on Cygwin.
80967
80968 2004-01-20  Bruno Haible  <bruno@clisp.org>
80969
80970         * lib/allocsa.h: New file, from GNU gettext.
80971         * lib/allocsa.c: New file, from GNU gettext.
80972
80973 2004-01-18  Karl Berry  <karl@gnu.org>
80974
80975         * doc/gpl.texi, doc/lgpl.texi: new files.
80976
80977 2004-01-18  Karl Berry  <karl@gnu.org>
80978
80979         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80980         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80981
80982 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80983
80984         Merge from coreutils.
80985
80986         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80987         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80988         (gl_DEFAULT_POSIX2_VERSION): Move
80989         the documentation from 'configure' into 'config.hin',
80990         so that 'configure --help' isn't burdened by it and
80991         we don't have to worry about its formatting there.
80992         Reword the documentation so that it's more succinct
80993         and can be run together into a single paragraph.
80994         * m4/same.m4 (gl_SAME): Check for pathconf.
80995
80996 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80997
80998         Merge from coreutils.
80999
81000         * lib/posixver.c: Include posixver.h.
81001
81002         * lib/same.c: Include <stdbool.h>, <limits.h>.
81003         (_POSIX_NAME_MAX): Define if not defined.
81004         (MIN): New macro.
81005         (same_name): If file names are silently truncated, report
81006         that the file names are the same if they are the same after
81007         the silent truncation.
81008
81009         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81010         conversion function.
81011         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81012         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81013         longer needed.
81014
81015 2004-01-15  Jim Meyering  <jim@meyering.net>
81016
81017         Merge from coreutils.
81018
81019         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81020         if no library is required.
81021         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81022         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81023         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81024         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81025         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81026         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81027         value, $ac_cv_search_crypt, if it's "none required".
81028         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81029         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81030         not gl_FUNC_GETLOADAVG.
81031         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81032         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81033
81034 2004-01-15  Jim Meyering  <jim@meyering.net>
81035
81036         Merge from coreutils.
81037
81038         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81039         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81040         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81041
81042         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81043         optional configure-time default.
81044
81045         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81046
81047         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81048
81049 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81050
81051         Merge from coreutils.
81052
81053         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81054         value, $ac_cv_search_nanosleep, if it's "none required".
81055
81056 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81057
81058         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81059         with like-named macro in fnmatch.c.
81060         (EXT): Use an internal constant instead.
81061
81062         Merge fnmatch patches from glibc.
81063         * lib/fnmatch.c (mbsinit): Remove define.
81064         Add libc_hidden_ver (__fnmatch, fnmatch).
81065         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81066         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81067
81068 2004-01-14  Karl Berry  <karl@gnu.org>
81069
81070         * config/install-sh: update from automake.
81071
81072 2004-01-13  Karl Berry  <karl@gnu.org>
81073
81074         * config/install-sh: update from automake.
81075
81076 2004-01-09  Karl Berry  <karl@gnu.org>
81077
81078         * config/install-sh: update from automake.
81079
81080 2004-01-05  Karl Berry  <karl@gnu.org>
81081
81082         * config/config.{sub,guess}: update from config.
81083
81084 2003-12-31  Karl Berry  <karl@gnu.org>
81085
81086         * config/depcomp: update from automake.
81087
81088 2003-12-14  Karl Berry  <karl@gnu.org>
81089
81090         * lib/config.charset: update from gettext-runtime.
81091
81092 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81093
81094         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81095         Bug reported by Alfred M. Szmidt.
81096
81097 2003-12-03  Bruno Haible  <bruno@clisp.org>
81098
81099         * m4/gettext.m4: Upgrade from gettext-0.13.
81100         * m4/po.m4: Upgrade from gettext-0.13.
81101         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81102         * m4/intmax.m4: New file, from gettext-0.13.
81103         * m4/printf-posix.m4: New file, from gettext-0.13.
81104
81105 2003-11-29  Karl Berry  <karl@gnu.org>
81106
81107         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81108
81109 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81110             Bruno Haible  <bruno@clisp.org>
81111
81112         * lib/printf-parse.h: Don't include sys/types.h.
81113         (ARG_NONE): New macro.
81114         (char_directive): Change type of *arg_index fields to size_t.
81115         * lib/printf-parse.c: Don't include sys/types.h.
81116         (SSIZE_MAX): Remove macro.
81117         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81118         Remove unnecessary overflow check.
81119         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81120         fields.
81121
81122 2003-11-25  Bruno Haible  <bruno@clisp.org>
81123
81124         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81125
81126 2003-11-25  Bruno Haible  <bruno@clisp.org>
81127
81128         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81129         gt_TYPE_SSIZE_T.
81130
81131 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81132
81133         * modules/alloca: Remove dependency on xalloc.
81134
81135 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81136
81137         * lib/alloca.c: Remove dependency on xalloc module.
81138         (xalloc_die): Remove.
81139         (memory_full) [!defined emacs]: New macro.
81140         [!defined emacs]: Don't include xalloc.h.
81141         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81142         address arithmetic overflows.  Change datatypes a bit to avoid
81143         unnecessary casts.
81144
81145 2003-11-22  Jim Meyering  <jim@meyering.net>
81146
81147         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81148         s/size/size_t/.
81149
81150 2003-11-21  Karl Berry  <karl@gnu.org>
81151
81152         * config/config.{sub,guess}: update from config.
81153
81154 2003-11-18  Karl Berry  <karl@gnu.org>
81155
81156         * config/config.{sub,guess}: update from config.
81157
81158         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81159
81160 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81161
81162         * README: Mention that S+T cannot overflow if S is the size of
81163         an existing object and T is sufficiently small.
81164
81165 2003-11-17  Jim Meyering  <jim@meyering.net>
81166
81167         On systems without utime and without a utimes function capable of
81168         dealing with a NULL struct utimbuf* argument, this utime replacement
81169         could -- in unusual circumstances -- leak a file descriptor.
81170         * lib/utime.c: Include <unistd.h> and <errno.h>.
81171         (utime_null): Be sure to close `fd' and to preserve errno.
81172         Reported by Geoff Collyer via Arnold Robbins.
81173
81174 2003-11-17  Bruno Haible  <bruno@clisp.org>
81175
81176         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81177         (Depends-on): Add xsize.
81178
81179 2003-11-17  Bruno Haible  <bruno@clisp.org>
81180
81181         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81182
81183 2003-11-17  Bruno Haible  <bruno@clisp.org>
81184
81185         * lib/vasnprintf.c (alloca): Remove fallback definition.
81186         (freea): Remove definition.
81187         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81188         Reported by Paul Eggert.
81189
81190 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81191             Bruno Haible  <bruno@clisp.org>
81192
81193         Protect against address arithmetic overflow.
81194         * lib/printf-args.h: Include stddef.h.
81195         (arguments): Change type of field 'count' to size_t.
81196         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81197         'unsigned int' where appropriate.
81198         * lib/printf-parse.h: Include sys/types.h.
81199         (char_directive): Change type of *arg_index fields to ssize_t.
81200         (char_directives): Change type of fields 'count', max_*_length to
81201         size_t.
81202         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81203         (SSIZE_MAX): Define fallback value.
81204         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81205         instead of 'int' where appropriate. Check a_allocated, d_allocated
81206         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81207         * lib/vasnprintf.c: Include xsize.h.
81208         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81209         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81210         overflow. Avoid wraparound when converting a width or precision from
81211         decimal to binary.
81212
81213 2003-11-16  Bruno Haible  <bruno@clisp.org>
81214
81215         Update from GNU gettext.
81216         * lib/printf-parse.c: Generalize to it can be compiled for wide
81217         strings.
81218         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81219         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81220         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81221         SNPRINTF): New macros.
81222         Don't include <alloca.h> if the file is used inside libintl.
81223         (local_wcslen): New function, for Solaris 2.5.1.
81224         (VASNPRINTF): Use it instead of wcslen.
81225
81226 2003-11-16  Bruno Haible  <bruno@clisp.org>
81227
81228         * lib/xsize.h (xmax): New function.
81229         (xsum, xsum3, xsum4): Declare as "pure" functions.
81230
81231 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81232
81233         * modules/xalloc (Files): Undo latest change, since xalloc.h
81234         no longer needs SIZE_MAX or PTRDIFF_MAX.
81235
81236 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81237
81238         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81239         gl_PTRDIFF_MAX.
81240
81241 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81242
81243         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81244         "return", to pacify some unknown compiler.  Problem reported
81245         by Joerg Schilling.
81246
81247 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81248
81249         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81250         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81251         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81252         heuristic is just as accurate as far as we know, and it removes a
81253         dependency on size_max.m4 and ptrdiff_max.m4.
81254
81255 2003-11-11  Bruno Haible  <bruno@clisp.org>
81256
81257         * modules/xsize (Files): Add m4/size_max.m4.
81258         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81259
81260 2003-11-11  Bruno Haible  <bruno@clisp.org>
81261
81262         * m4/size_max.m4: New file.
81263         * m4/ptrdiff_max.m4: New file.
81264         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81265         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81266         (gl_XALLOC): Invoke it.
81267
81268 2003-11-11  Bruno Haible  <bruno@clisp.org>
81269
81270         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81271         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81272         defined.
81273
81274 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81275
81276         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81277         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81278         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81279         From Bruno Haible.
81280         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81281         not (size_t) -1, since it's defined here.
81282
81283 2003-11-09  Karl Berry  <karl@gnu.org>
81284
81285         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81286
81287 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81288
81289         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81290         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81291         Reject sizes of exactly SIZE_MAX bytes.
81292         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81293         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81294
81295 2003-11-05  Bruno Haible  <bruno@clisp.org>
81296
81297         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81298         SIZE_MAX defined in <limits.h> on Solaris.
81299
81300 2003-11-04  Jim Meyering  <jim@meyering.net>
81301
81302         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81303         variable names, rather than @VAR@.
81304         * modules/poll: Likewise.
81305
81306 2003-11-04  Bruno Haible  <bruno@clisp.org>
81307
81308         * modules/xsize: New file.
81309         * modules/linebreak: Depend on xsize.
81310         * MODULES.html.sh (func_all_modules): Add xsize.
81311
81312 2003-11-04  Bruno Haible  <bruno@clisp.org>
81313
81314         * m4/xsize.m4: New file.
81315
81316 2003-11-04  Bruno Haible  <bruno@clisp.org>
81317
81318         * lib/xsize.h: New file.
81319         * lib/linebreak.c: Include xsize.h.
81320         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81321         argument for overflow.
81322         Suggested by Paul Eggert.
81323
81324 2003-11-03  Karl Berry  <karl@gnu.org>
81325
81326         * config/config.{guess,sub}: update from config.
81327
81328 2003-11-03  Jim Meyering  <jim@meyering.net>
81329
81330         * modules/userspec (lib_SOURCES): Add userspec.h.
81331         (Include): Add "userspec.h".
81332         Improve description.
81333
81334 2003-11-03  Jim Meyering  <jim@meyering.net>
81335
81336         * lib/userspec.c: Include "userspec.h".
81337         * lib/userspec.h: New file.
81338
81339 2003-11-03  Bruno Haible  <bruno@clisp.org>
81340
81341         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81342
81343 2003-11-03  Bruno Haible  <bruno@clisp.org>
81344
81345         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81346         available, to avoid (extremely rare) race condition.
81347         Suggested by Paul Eggert.
81348
81349 2003-11-02  Karl Berry  <karl@gnu.org>
81350
81351         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81352
81353 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81354
81355         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81356         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81357         (read_filesystem_list): Set and use me_type_malloced.
81358         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81359         whatever the type happens to be), for brevity and consistency.
81360         Check for size calculation overflow on Alphas running OSF/1.
81361
81362 2003-10-31  Jim Meyering  <jim@meyering.net>
81363
81364         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81365
81366         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81367
81368 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81369             Bruno Haible  <bruno@clisp.org>
81370
81371         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81372         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81373
81374 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81375
81376         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81377         netbsd*-gnu*.  Suggested by Robert Millan.
81378
81379 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81380
81381         * modules/group-member: Depend on stdbool.
81382
81383 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81384
81385         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81386
81387 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81388
81389         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81390         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81391         after the 'gnu' in these cases.  This fixes some bugs in the
81392         previous change, and is based on suggestions by Robert Millan.
81393
81394 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81395
81396         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81397         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81398         no longer needed.
81399         * lib/quotearg.c (quotearg_n_options): Use it.
81400         * lib/group-member.c: Include <stdbool.h>.
81401         (free_group_info): Arg is now const *; don't free arg.
81402         (get_group_info): Now returns bool and accepts struct group_info *,
81403         rather than returning a malloc'ed struct group_info *.
81404         All uses changed.  Check for overflow in internal size calculation.
81405
81406         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81407         rather than xmalloc/xrealloc.
81408         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81409         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81410         conformance bug: the old code used a pointer after freeing the
81411         storage that it addressed.
81412         * lib/hash.c (hash_initialize): Simplify the code by using
81413         xalloc_oversized rather than doing it by hand.
81414         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81415         the buffer preserved.  Use free and xmalloc instead.
81416         * lib/quotearg.c (quotearg_n_options): Likewise.
81417         Use a simpler test for size overflow.  Don't use xalloc_oversized
81418         because unsigned int might be wider than size_t (!); this suggests
81419         that we should switch from unsigned int to size_t for slot numbers.
81420
81421 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81422
81423         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81424         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81425         NetBSD kernels.  Requested by Richard Stallman.
81426
81427 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81428
81429         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81430         to allocate the returned structure.  Do not allocate a subarray,
81431         as x2nrealloc will do that.
81432         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81433         instead of xnrealloc.
81434         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81435
81436 2003-10-27  Bruno Haible  <bruno@clisp.org>
81437
81438         * lib/stdbool_.h: Better support for BeOS.
81439
81440 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81441
81442         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81443         now uses inline.
81444
81445 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81446
81447         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81448         callers that want to do their own size-overflow checking.  Include
81449         <stdbool.h>, since xalloc_oversized returns bool.
81450         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81451         to use xalloc_oversized.
81452
81453         Add two functions x2realloc, x2nrealloc, for programs that grow
81454         arrays dynamically by doubling their sizes.
81455         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81456         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81457         New functions.
81458
81459         Port to C99 semantics for 'inline' of external functions.
81460         Bug reported by Bruno Haible.
81461         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81462         with the old contents of xnmalloc.
81463         (xnmalloc, xmalloc): Use it.
81464         (xnrealloc_inline): New static inline function,
81465         with the old contents of xnrealloc.
81466         (xnrealloc, xrealloc): Use it.
81467
81468         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81469         that.
81470
81471 2003-10-26  Karl Berry  <karl@gnu.org>
81472
81473         * config/srclist.txt (COPYING.DOC): no longer available from
81474         /gd/gnuorg; don't know where the ultimate source is.
81475
81476 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81477
81478         Fix several address-calculation bugs in the hash modules,
81479         plus some minor code cleanup.
81480
81481         * lib/hash.h: Include <stdbool.h>, for bool.
81482         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81483         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81484         hash_get_n_entries, hash_get_max_bucket_length,
81485         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81486         hash_rehash): Use size_t rather than unsigned.
81487         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81488         hash_get_n_buckets_used, hash_get_n_entries,
81489         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81490         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81491         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81492         Likewise.
81493         (SIZE_MAX): Define if not defined.
81494         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81495         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81496         hash_print):
81497         Use const * when possible.
81498         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81499         (check_tuning): Fix bug: if tuning parameters were very close to
81500         0 or 1, rounding errors could have caused subscript violations.
81501         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81502         (hash_initialize): Add 'fail:' label
81503         to free table and return NULL, and use it to simplify code.
81504         Use calloc rather than clearing the storage ourself.
81505         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81506         buffer size calculations.
81507         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81508         Include <stddef.h>, for size_t.
81509         * lib/hash-pjw.c (hash_pjw): Likewise.
81510         Switch to method described by Bruno Haible.
81511         Include <limits.h>, for CHAR_BIT.
81512         (SIZE_BITS): New macro.
81513
81514 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81515
81516         * m4/getline.m4 (AM_FUNC_GETLINE):
81517         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81518         hosts.  Problem reported by Derek Robert Price in
81519         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81520         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81521         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81522
81523 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81524
81525         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81526         ceiling the allocation at NMAX bytes rather than silently
81527         discarding input bytes before NMAX is reached.  This makes
81528         a difference only if NMAX exceeds SIZE_MAX / 2.
81529
81530         * lib/obstack.c: Merge from glibc.
81531         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81532         Add libc_hidden_def (_obstack_newchunk).
81533         (_obstack_free) [! defined _LIBC]: Remove.
81534         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81535         a clone of the function body.
81536         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81537         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81538
81539         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81540         glibc.
81541         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81542         arg to memcpy.
81543
81544         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81545         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81546         Don't use lvalue casts, as GCC plans to remove support for them
81547         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81548         was also present in the non-GCC version, indicating that this
81549         code had always been buggy and had never been widely used.
81550         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81551         Use the fast variant of each macro, rather than copying the
81552         definiens of the fast variant; that way, we'll be more likely to
81553         catch future bugs in the fast variants.
81554
81555 2003-10-20  Bruno Haible  <bruno@clisp.org>
81556
81557         * modules/wait-process: New file.
81558         * MODULES.html.sh (func_all_modules): Add wait-process.
81559
81560 2003-10-20  Bruno Haible  <bruno@clisp.org>
81561
81562         * m4/wait-process.m4: New file.
81563
81564 2003-10-20  Bruno Haible  <bruno@clisp.org>
81565
81566         * lib/wait-process.h: New file, from GNU gettext.
81567         * lib/wait-process.c: New file, from GNU gettext.
81568
81569 2003-10-19  Jim Meyering  <jim@meyering.net>
81570
81571         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81572         HPUX 10.20.
81573
81574 2003-10-18  Karl Berry  <karl@gnu.org>
81575
81576         * config/config.guess: update from config.
81577
81578 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81579
81580         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81581         (getgroups): First arg is int, not size_t.
81582         Don't let 'free' mangle errno.
81583
81584 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81585
81586         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81587
81588 2003-10-16  Karl Berry  <karl@gnu.org>
81589
81590         * config/config.{guess,sub}: update from config.
81591
81592 2003-10-16  Jim Meyering  <jim@meyering.net>
81593
81594         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81595         memcpy.
81596
81597 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81598
81599         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81600         (SIZE_MAX): Remove.
81601         (new_exclude, add_exclude_file): Initial size no longer needs to
81602         be a power of 2.
81603         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81604         our own address arithmetic overflow checking.
81605
81606         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81607         (fnmatch): Do not alloca more than 2000 wide characters;
81608         instead, use malloc for large buffers.
81609         Check for address arithmetic overflow, and return -1
81610         with errno set to ENOMEM in that case.
81611         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81612         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81613         instead, return -1.  Check for address arithmetic overflow.
81614
81615 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81616
81617         Handle invalid suffixes and overflow independently, so that
81618         callers can treat them independently as needed.  Fix some bugs in
81619         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81620         suffix for a human-readable blocksize.  The major caller-visible
81621         change is the addition of a new
81622         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81623         that both overflow and suffix chars were found.
81624
81625         * lib/human.c (humblock): Don't check separately for invalid suffix
81626         char; that is xstrtoumax's job (now that its bug is fixed).
81627         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81628         INTMAX_MAX]: New macros.
81629         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81630         TYPE_MAXIMUM): New macros.
81631         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81632         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81633         if overflow occurs, as it's what __strtol does and it's more useful
81634         in practice.
81635         (__xstrtol): If __strtol reports some error other than ERANGE,
81636         reflect it to the caller as LONGINT_INVALID.  If it reports
81637         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81638         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81639         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81640         value.
81641         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81642         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81643         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81644         [defined UINTMAX_MAX]: New macros.
81645
81646 2003-10-14  Bruno Haible  <bruno@clisp.org>
81647
81648         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81649
81650 2003-10-14  Bruno Haible  <bruno@clisp.org>
81651
81652         * m4/sig_atomic_t: New file, from GNU gettext.
81653         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81654
81655 2003-10-14  Bruno Haible  <bruno@clisp.org>
81656
81657         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81658         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81659         Also use volatile where needed.
81660
81661 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81662
81663         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81664         Change maintainer from Bruno Haible to 'all'.
81665
81666 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81667
81668         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81669
81670 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81671
81672         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81673         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81674         and define in terms of the other primitives.
81675         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81676         (SIZE_MAX): Define if not already defined.
81677         (array_size_overflow): New function.
81678         (xalloc_die): Abort instead of exiting if 'error' returns.
81679         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81680         (xmalloc, xrealloc): Use them.
81681         (xcalloc): Check for address arithmetic overflow.
81682         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81683         a bit faster than strcpy.
81684
81685 2003-10-10  Simon Josefsson  <jas@extundo.com>
81686
81687         * modules/argp (Depends-on): Add restrict and strcase.
81688
81689 2003-10-10  Simon Josefsson  <jas@extundo.com>
81690
81691         * m4/argp.m4: Add AC_C_INLINE.
81692
81693 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81694
81695         Merge getpass from libc, plus a few fixes.
81696
81697         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81698         Include <stdbool.h>.
81699         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81700         __fsetlocking to empty.
81701         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81702         do include <bits/libc-lock.h>.
81703         Do not include <fcntl.h>; not needed.
81704         [_LIBC]: Include <wchar.h>.
81705         (NOTCANCEL_MODE): New macro.
81706         (flockfile, funlockfile) [_LIBC]: New macros.
81707         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81708         [!_LIBC]: New macros.
81709         (call_fclose): New function.
81710         (getpass): Use it.  Save tty stream separately; this simplifies the
81711         code and makes it more reliable if stdin happens to equal stdout.
81712         Invoke __fsetlocking on tty.
81713         Handle thread cancellation if needed.
81714         Namespace cleanup (use __tcgetattr, __getline).
81715         Use bool for Booleans.
81716         [USE_IN_LIBIO]: Handle wide streams.
81717         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81718         stream might go where.
81719
81720         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81721         doesn't have to include <stdio.h> before us.
81722         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81723         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81724         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81725         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81726         if not declared, so that we can use getpass.c code from libc without
81727         rewriting it.
81728         (flockfile, ftrylockfile, funlockfile): New macros.
81729
81730 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81731
81732         * modules/getpass: Depend on stdbool.
81733
81734 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81735
81736         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81737
81738 2003-10-07  Karl Berry  <karl@gnu.org>
81739
81740         * config/config.{guess,sub}: update from config.
81741
81742 2003-10-06  Jim Meyering  <jim@meyering.net>
81743             Bruno Haible  <bruno@clisp.org>
81744
81745         This lets translators provide better translations for the
81746         "Written by ..." part of --version output.
81747         * lib/version-etc.h: Include stdarg.h.
81748         (version_etc_copyright): Declare as readonly.
81749         (version_etc): Make this function variadic with a NULL-terminated list
81750         of author name strings.
81751         (version_etc_va): New declaration.
81752         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81753         (version_etc_copyright): Declare as readonly.
81754         (version_etc_va): New function. Provide a different translatable string
81755         for each possible number of authors < 10. Abbreviate when there are 10
81756         authors or more.
81757         (version_etc): Make this function variadic. Call version_etc_va.
81758         Suggestion from Gary V. Vaughan.
81759
81760         * lib/long-options.h (parse_long_options): Change prototype: the
81761         authors string is moved to the end and becomes variadic.
81762         * lib/long-options.c: Include stdarg.h.
81763         (parse_long_options): Make this function variadic, too.
81764         Call version_etc_va, not version_etc.
81765
81766 2003-10-06  Bruno Haible  <bruno@clisp.org>
81767
81768         * modules/version-etc-2: Remove file.
81769         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81770
81771 2003-10-06  Bruno Haible  <bruno@clisp.org>
81772
81773         * modules/fatal-signal: New file.
81774         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81775
81776 2003-10-06  Bruno Haible  <bruno@clisp.org>
81777
81778         * m4/fatal-signal.m4: New file.
81779         * m4/signalblocking.m4: New file, from GNU gettext.
81780
81781 2003-10-06  Bruno Haible  <bruno@clisp.org>
81782
81783         * lib/version-etc-2.h: Remove file.
81784         * lib/version-etc-2.c: Remove file.
81785
81786 2003-10-06  Bruno Haible  <bruno@clisp.org>
81787
81788         * lib/fatal-signal.h: New file, from GNU gettext.
81789         * lib/fatal-signal.c: New file, from GNU gettext.
81790
81791 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81792
81793         * README: Rework advice for preventing empty .o files.
81794         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81795         not <sys/types.h>.
81796
81797 2003-10-04  Karl Berry  <karl@gnu.org>
81798
81799         * lib/argp*: update from libc.
81800
81801 2003-10-04  Karl Berry  <karl@gnu.org>
81802
81803         * config/config.{guess,sub}: update from config.
81804
81805 2003-10-02  Bruno Haible  <bruno@clisp.org>
81806
81807         * modules/lchown (Include): Add lchown.h.
81808         * modules/time_r (Include): Use "..." syntax.
81809         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81810
81811 2003-10-01  Simon Josefsson  <jas@extundo.com>
81812
81813         * MODULES.html.sh (func_all_modules): Move gethostname from section
81814         'based on' to section 'lacking' POSIX:2001.
81815
81816 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81817
81818         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81819         to output mode on the same stream.
81820
81821 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81822
81823         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81824         Fix arg typo in previous patch.
81825
81826 2003-09-28  Jim Meyering  <jim@meyering.net>
81827
81828         * lib/error.c: Correct cpp indentation.
81829
81830 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81831
81832         * modules/free: New file.
81833
81834 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81835
81836         * m4/free.m4: New file.
81837
81838 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81839
81840         * lib/minmax.h (MIN, MAX)
81841         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81842         Omit the special code that used __typeof__, since we worry that
81843         it could be more trouble than it's worth.  See:
81844         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81845         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81846
81847         * lib/free.c: New file.
81848
81849 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81850
81851         Trivial fixes to Makefile.am parts of module listings.
81852         * modules/strstr: Append strstr.h to lib_SOURCES.
81853         * modules/strcase: Likewise, for strcase.h.
81854
81855 2003-09-27  Karl Berry  <karl@gnu.org>
81856
81857         * config/mkinstalldirs: update from automake.
81858
81859 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81860
81861         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81862         (error_tail): Do not loop, reallocating temporary buffer, since
81863         the output cannot contain more wide characters than the input
81864         contains bytes, the size must be big enough already.  This avoids
81865         one potential size overflow calculation.  Check for size overflow
81866         when calculating temporary buffer size.  Free temporary buffer
81867         when done, if it was allocated with malloc; this plugs a memory
81868         leak.  Remove casts from void * to pointers, that are no longer
81869         needed now that we're assuming C89 or better.
81870
81871         Merge error changes from glibc.
81872
81873         * lib/error.c, error.h: Update copyright notice header to match glibc.
81874         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81875         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81876         Disable cancellation while printing error.
81877         * lib/error.h: Prepend __ to parameter names.
81878
81879 2003-09-26  Jim Meyering  <jim@meyering.net>
81880
81881         * lib/error.c (error_tail): Move some declarations
81882         into inner scope where the local variables are used.
81883
81884 2003-09-26  Bruno Haible  <bruno@clisp.org>
81885
81886         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81887         stpncpy().
81888         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81889
81890 2003-09-26  Bruno Haible  <bruno@clisp.org>
81891
81892         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81893         (stpncpy): Define as alias for gnu_stpncpy.
81894         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81895
81896 2003-09-25  Simon Josefsson  <jas@extundo.com>
81897
81898         * lib/xgetdomainname.h: New file.
81899         * lib/xgetdomainname.c: New file.
81900
81901 2003-09-25  Simon Josefsson  <jas@extundo.com>
81902             Bruno Haible  <bruno@clisp.org>
81903
81904         * modules/getdomainname: New file.
81905         * modules/xgetdomainname: New file.
81906         * MODULES.html.sh (func_all_modules): Add getdomainname,
81907         xgetdomainname.
81908
81909 2003-09-25  Simon Josefsson  <jas@extundo.com>
81910             Bruno Haible  <bruno@clisp.org>
81911
81912         * m4/getdomainname.m4: New file.
81913
81914 2003-09-25  Simon Josefsson  <jas@extundo.com>
81915             Bruno Haible  <bruno@clisp.org>
81916
81917         * lib/getdomainname.h: New file.
81918         * lib/getdomainname.c: New file.
81919
81920 2003-09-25  Karl Berry  <karl@gnu.org>
81921
81922         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81923
81924 2003-09-25  Karl Berry  <karl@gnu.org>
81925
81926         * config/install-sh: update from automake.
81927
81928 2003-09-25  Bruno Haible  <bruno@clisp.org>
81929
81930         * modules/version-etc-2: New file, from modules/version-etc with
81931         modifications.
81932         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81933
81934 2003-09-25  Bruno Haible  <bruno@clisp.org>
81935
81936         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81937         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81938
81939 2003-09-24  Simon Josefsson  <jas@extundo.com>
81940
81941         * modules/xgethostname: Add xgethostname.h.
81942
81943 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81944
81945         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81946         the buffer associated with the argument.  Bug reported by
81947         Simon Josefsson.
81948
81949 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81950
81951         * README: Document assumptions that 'int' is at least 32 bits
81952         wide, that integer arithmetic is 2's complement without overflow,
81953         that there are no holes in integer values, that adding sizes of
81954         two nonoverlapping objects can't overflow, and that all-bits-zero
81955         yields scalar zero.  Fix spelling and capitalization typos.
81956
81957 2003-09-19  Karl Berry  <karl@gnu.org>
81958
81959         * lib/argp.h: update from libc.
81960
81961 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81962
81963         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81964         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81965         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81966
81967 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81968
81969         * gnulib-tool: Use "test -h", not "test -L", for portability
81970         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81971         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81972         (sed_extract_prog): Issue s commands one-by-one, rather than
81973         using \| in one s command.
81974
81975 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81976
81977         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81978         input error, instead of returning NULL the next time we are called
81979         (and therefore losing track of errno).
81980
81981 2003-09-16  Bruno Haible  <bruno@clisp.org>
81982
81983         * gnulib-tool (func_create_testdir): Warn about duplicated
81984         dependencies.
81985
81986 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81987
81988         * modules/argmatch, modules/fatal, modules/obstack,
81989         modules/xalloc, modules/xgethostname: Sort dependencies by
81990         importance, not alphabetically.
81991
81992 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81993
81994         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81995         fails, so that the caller gets the proper errno.
81996
81997         * lib/readutmp.c (read_utmp): Likewise.
81998         Check for fstat error.  Close stream and free storage
81999         when failing.
82000
82001 2003-09-14  Karl Berry  <karl@gnu.org>
82002
82003         * config/srclist.txt (strdup.c): disable for c89 changes.
82004
82005 2003-09-14  Jim Meyering  <jim@meyering.net>
82006
82007         * lib/getloadavg.c: Correct cpp indentation.
82008         * lib/strdup.c: Likewise.
82009         * lib/vasnprintf.c: Likewise.
82010
82011 2003-09-14  Bruno Haible  <bruno@clisp.org>
82012
82013         * modules/fwriteerror: New file.
82014         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82015
82016 2003-09-14  Bruno Haible  <bruno@clisp.org>
82017
82018         * lib/fwriteerror.h: New file.
82019         * lib/fwriteerror.c: New file.
82020
82021 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82022
82023         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82024         modules/xgethostname, modules/xalloc: Depend on exit.
82025
82026 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82027
82028         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82029
82030         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82031         and AC_MINIX, too, so that their extensions are available.
82032
82033         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82034         This macro has been superseded by gl_BACKUPFILE.
82035
82036         More patches to assume C89 or better.
82037
82038         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82039
82040         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82041         unconditionally.
82042         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82043         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82044         Include <string.h>, <stdlib.h> unconditionally.
82045         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82046         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82047         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82048         headers or for string.h.
82049         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82050         or strtoul.
82051
82052         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82053         headers.
82054         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82055         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82056         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82057         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82058         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82059         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82060         memcpy, memset.
82061         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82062         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82063         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82064         strtol.
82065         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82066         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82067         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82068         strtoul.
82069
82070 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82071
82072         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82073         * lib/obstack.c [!defined _LIBC]: Likewise.
82074         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82075         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82076         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82077
82078         More changes to assume C89 or better.
82079
82080         * lib/error.c (error_tail): Assume vprintf.
82081
82082         * lib/argmatch.c (getenv): Remove decl.
82083         * lib/progreloc.c (get_full_program_name): Define via prototype.
82084         * lib/setenv.c (clearenv): Likewise.
82085         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82086         needed.
82087         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82088         (malloc, memcpy): Remove decls.
82089         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82090         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82091         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82092         (memcpy): Remove macro.
82093         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82094         (__P): Remove.  All uses removed.
82095         (PTR): Remove.  All uses changed to void *.
82096         (CHAR_BIT, NULL): Remove.
82097         (spaces, zeros, memset_space, memset_zero)
82098         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82099         Remove.
82100         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82101         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82102         Define with prototype.
82103         Remove now-unnecessary prototype decl.
82104         (extra_args_spec): Assume ANSI C.  All uses changed.
82105         (extra_args_spec_iso): Remove.
82106         (my_strftime, emacs_strftimeu): Define via prototype.
82107         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82108         unconditionally.
82109         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82110         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82111         (strtoul, strtol): Remove decls.
82112         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82113         LONG_MAX): Remove.
82114         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82115         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82116         (LOCALE_PARAM_PROTO): New macro.
82117         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82118         (INTERNAL (strtol), strtol): Define with a prototype.
82119         (PARAMS): Remove.  All uses removed.
82120         * lib/tempname.c: Include <string.h> unconditionally.
82121         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82122         * lib/xgethostname.c (main): Define with a prototype.
82123         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82124         Include <stdlib.h> unconditionally.
82125         (calloc, malloc, realloc, free): Remove decls.
82126         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82127         Include <stdlib.h> unconditionally.  Sort include file names.
82128         (strtod): Remove.
82129         (xstrtod): Define with a prototype.
82130         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82131         (strtol, strtoul): Remove decls.
82132
82133 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82134
82135         More patches to assume C89 or better.
82136         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82137         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82138         string.h, memchr, STDC_HEADERS.
82139
82140 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82141
82142         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82143         Include <stdlib.h>, <string.h> unconditionally.
82144         Remove now-unnecessary cast to char *.
82145         * lib/strnlen.c: Include <string.h> unconditionally.
82146         * lib/yesno.c (yesno): Define with a prototype.
82147
82148 2003-09-11  Bruno Haible  <bruno@clisp.org>
82149
82150         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82151
82152 2003-09-10  Jim Meyering  <jim@meyering.net>
82153
82154         * lib/error.c: Correct indentation of cpp directives.
82155
82156 2003-09-10  Bruno Haible  <bruno@clisp.org>
82157
82158         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82159         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82160         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82161         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82162         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82163         <stdlib.h> and <string.h> checks.
82164         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82165         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82166
82167 2003-09-10  Bruno Haible  <bruno@clisp.org>
82168
82169         * lib/strcspn.c: Include <string.h> unconditionally.
82170         * lib/strpbrk.c: Include <string.h> unconditionally.
82171         * lib/strstr.c: Include <string.h> unconditionally.
82172         * lib/unicodeio.c: Include <string.h> unconditionally.
82173         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82174         * lib/unsetenv.c: Likewise.
82175         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82176         * lib/yesno.c: Include <stdlib.h> unconditionally.
82177         (rpmatch): Add prototype.
82178
82179 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82180
82181         More patches to assume C89 or better.
82182         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82183         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82184         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82185         or for string.h.
82186         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82187         stdlib.h.
82188         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82189         C headers.
82190         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82191         string.h.
82192         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82193         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82194         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82195         or for string.h.
82196         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82197         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82198         C headers.
82199         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82200         memcpy.
82201         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82202         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82203         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82204         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82205         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82206         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82207         string.h, free.
82208         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82209         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82210         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82211         C headers, or for string.h.
82212         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82213         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82214         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82215         headers, memory.h, stdlib.h, string.h, strings.h.
82216         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82217         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82218         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82219         strchr.
82220         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82221         headers, memory.h, string.h.
82222         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82223         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82224         free.
82225         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82226         headers.
82227         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82228         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82229         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82230         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82231         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82232
82233 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82234
82235         More K&R removal.
82236
82237         * lib/acosl.c (main): Use a prototype.
82238         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82239         tanl.c: Likewise.
82240
82241         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82242
82243         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82244         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82245         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82246         with a prototype.
82247         * lib/getopt.c (const): Remove macro.
82248         Include <string.h> unconditionally.
82249         (my_index): Remove; all uses changed to strchr.
82250         (strlen): Remove decl.
82251         (exchange): Remove forward decl; no longer needed.
82252         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82253         Define with prototype.
82254         * lib/getopt1.c (const): Remove macro.
82255         (getopt_long, getopt_long_only, main): Define with prototype.
82256
82257         * lib/getugroups.c: Include <string.h> unconditionally.
82258
82259         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82260         (getusershell, setusershell, endusershell, readname, main):
82261         Define with prototypes.
82262
82263         * lib/group-member.c: Include group-member.h first.
82264         Include <stdlib.h> unconditionally.
82265
82266         * lib/hard-locale.c: Include hard-locale.h first.
82267         Include <stdlib.h>, <string.h> unconditionally.
82268
82269         * lib/hash.c (free, malloc): Remove decls.
82270         Include <stdlib.h> unconditionally.
82271
82272         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82273         (getenv): Do not declare.
82274
82275         * lib/idcache.c: Include <string.h> unconditionally.
82276
82277         * lib/long-options.c: Include long-options.h first, to test interface.
82278         Include <stdlib.h> unconditionally.
82279
82280         * lib/makepath.c: Include makepath.h first, to test interface.
82281         Include <stdlib.h> and <string.h> unconditionally.
82282
82283         * lib/linebuffer.c: Include <stdlib.h>.
82284         (free): Remove decl.
82285
82286         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82287         stddef.h. rpl_malloc returns void *, not char *.
82288         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82289         prototype.
82290
82291         * lib/md5.h: Include <limits.h> unconditionally.
82292         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82293         (__P): Remove; all uses removed.
82294         * lib/md5.c: Include "md5.h" first.
82295         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82296         md5_buffer, md5_process_bytes, md5_process_block):
82297         Define with prototypes.
82298         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82299         * lib/sha.c: Include "sha.h" first.
82300         Include <stdlib.h>, <string.h> unconditionally.
82301
82302         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82303         * lib/memcmp.c (__ptr_t): Likewise.
82304         * lib/memrchr.c (__ptr_t): Likewise.
82305         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82306         Include <string.h> unconditionally.
82307         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82308         * lib/memchr.c: Include <stdlib.h> unconditionally.
82309         * lib/memchr.c (LONG_MAX): Remove.
82310         * lib/memrchr.c (LONG_MAX): Likewise.
82311         * lib/memchr.c (__memchr): Define via a prototype.
82312         * lib/memrchr.c (__memrchr): Likewise.
82313         * lib/memcmp.c (__P): Remove, and remove all uses.
82314         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82315         Remove forward decls; no longer needed.
82316         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82317         Use types required by C89 in prototype.
82318
82319         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82320         * lib/savedir.c: Likewise.
82321         * lib/mkdir.c (free): Remove decl.
82322         * lib/rmdir.c (rmdir): Define with a prototype.
82323         * lib/savedir.c: Include savedir.h first, to test interface.
82324
82325         * lib/mktime.c (STDC_HEADERS): Remove.
82326         Include <stdlib.h>, <string.h> unconditionally.
82327
82328         * lib/modechange.c: Include <stdlib.h> unconditionally.
82329         (malloc): Remove decl.
82330
82331         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82332         (free): Remove decl.
82333
82334         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82335         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82336         (This type really should be intptr_t, but that's a C99ism.)
82337         (_obstack_memcpy): Remove: all uses changed to memcpy.
82338         Include <string.h> unconditionally.
82339         (struct obstack): Assume __STDC__ for types of members
82340         chunkfun, freefun, extra_arg.
82341         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82342         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82343         obstack_begin, obstack_specify_allocation,
82344         obstack_specify_allocation_with_arg, obstack_chunkfun,
82345         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82346         Remove unprototyped decls and the macros that use them.
82347         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82348         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82349         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82350         (defined __STDC__ && __STDC__)]:
82351         Remove nonprototyped code.
82352         Include <stdlib.h> unconditionally.
82353         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82354         _obstack_allocated_p, _obstack_free, obstack_free,
82355         _obstack_memory_used, print_and_abort):
82356         Define using prototypes.
82357         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82358         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82359         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82360         obstack_next_free, obstack_object_size, obstack_room) [0]:
82361         Remove unused, unprototyped code.
82362
82363         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82364
82365         * lib/physmem.c (physmem_total, physmem_available, main): Define
82366         with prototypes.
82367
82368         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82369         (main): Define with a prototype.
82370
82371         * lib/posixver.c (getenv): Remove decl.
82372
82373         * lib/putenv.c (malloc): Returns void *, not char *.
82374         Include <string.h> unconditionally.
82375         (strchr, memcpy, NULL): Do not define.
82376
82377         * lib/readtokens.c: Include readtokens.h first, to test interface.
82378         Include <stdlib.h>, <string.h> unconditionally.
82379         (init_tokenbuffer): Define with a prototype.
82380
82381         * lib/regex.c (PARAMS): Remove.  All uses removed.
82382         All uses of _RE_ARGS removed, too.
82383         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82384         unconditionally.
82385         (bzero): Assume memset exists.
82386         (memcmp, memcpy, NULL): Remove.
82387         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82388         char, or assignments to local vars of type signed char.
82389         (init_syntax_once, PREFIX(extract_number_and_incr),
82390         PREFIX(print_partial_compiled_pattern),
82391         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82392         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82393         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82394         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82395         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82396         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82397         wcs_compile_range, byte_compile_range, truncate_wchar,
82398         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82399         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82400         count_mbs_length, wcs_re_match_2_internal,
82401         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82402         PREFIX(alt_match_null_string_p),
82403         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82404         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82405         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82406         now-unnecessary declaration, if any.
82407         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82408         regcomp, regexec):
82409         Remove now-unnecessary casts among pointer types.
82410         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82411
82412         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82413         (free): Remove decl.
82414
82415         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82416
82417         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82418         (free): Remove decl.
82419
82420         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82421         * lib/xgetcwd.c: Likewise.
82422
82423         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82424         (free): Remove decl.
82425
82426         * lib/strchrnul.c (strchrnul): Define with a prototype.
82427         Fix bug: c_in was not converted to char before searching.
82428
82429         The following changes are not K&R related:
82430
82431         * lib/group-member.h: Include <sys/types.h>, so that this file is
82432         self-contained.
82433         * lib/makepath.h: Likewise.
82434
82435         * lib/getusershell.c (readname, default_index, line_size, readname):
82436         Use size_t, not int, for sizes.
82437         (readname): If the size overflows, report an error instead of
82438         looping forever.
82439
82440 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82441
82442         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82443         libc.
82444
82445 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82446
82447         * README: New section: portability guidelines.
82448
82449 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82450
82451         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82452         C89 spec.
82453
82454 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82455
82456         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82457
82458 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82459
82460         Assume C89 or better; remove K&R cruft.
82461         A few of these changes were first proposed by Derek Robert Price
82462         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82463
82464         * lib/addext.c: Include <string.h> unconditionally.
82465         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82466         Don't declare getenv or malloc.
82467
82468         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82469         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82470         (NULL): Remove.
82471         (find_stack_direction, alloca): Use prototypes.
82472
82473         * lib/atexit.c (atexit): Define using a prototype.
82474
82475         * lib/basename.c, dirname.c, stripslash.c:
82476         Include <string.h> unconditionally.
82477
82478         * lib/bcopy.c: Include <stddef.h>.
82479         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82480
82481         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82482
82483         * lib/error.h (error, error_at_line, error_print_progname)
82484         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82485         * lib/error.c: Include error.h first, to check interface.
82486         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82487         (VA_START): Remove; all uses changeed to va_start.
82488         (exit, strerror): Remove decls.
82489         (error_print_progname): Prototype uncondionally.
82490         Don't include <errno.h>; no longer needed.
82491         (private_strerror): Remove.
82492         (error_tail): Always define.
82493         (error, error_at_line): Assume C89 or better; always use prototypes.
82494         * lib/fatal.c: Include "fatal.h" first, to test interface.
82495         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82496         (VA_START): Remove; all uses changed to va_start.
82497         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82498         this case.
82499         (exit): Remove decl.
82500         (fatal): Prototype unconditionally.  Assume va_start works.
82501         Abort at end, to pacify gcc.
82502
82503         * lib/euidaccess.c (main): Define with a prototype.
82504
82505         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82506
82507         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82508
82509         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82510         prototypes.
82511         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82512         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82513         (getenv): Remove decl.
82514         (fnmatch): Define using a prototype.
82515         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82516         (FCT): Define using a prototype.
82517
82518         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82519
82520         * lib/gethostname.c: Include <stddef.h>.
82521         (gethostname): Define with prototype.  Length is size_t, not int.
82522
82523 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82524
82525         Assume C89 or better; remove K&R cruft.
82526         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82527         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82528         string.h, getenv, malloc.
82529         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82530         headers.
82531         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82532         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82533         do not check for strerror.
82534         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82535         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82536         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82537         do not check for doprnt or vprintf.
82538         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82539         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82540
82541 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82542
82543         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82544         getversion.c should have been removed then, but was accidentally
82545         preserved.
82546
82547         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82548         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82549
82550 2003-09-08  Karl Berry  <karl@gnu.org>
82551
82552         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82553                 config, forget about prep.
82554
82555         * config/depcomp, missing: update from automake.
82556
82557 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82558
82559         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82560         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82561
82562 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82563
82564         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82565         copy_tm_result.  Bug reported by Simon Josefsson in
82566         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82567
82568 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82569
82570         * m4/time_r.m4: New file.
82571         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82572         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82573         is. Check for timegm declaration.
82574         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82575         Do not check for gmtime_r.
82576         Replace mktime if __mktime_internal does not exist and if mktime
82577         hasn't been replaced already.
82578
82579 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82580
82581         * lib/time_r.c, lib/time_r.h: New files.
82582
82583         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82584         __localtime_r.
82585         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82586         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82587
82588         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82589         __gmtime_r.
82590         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82591         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82592         Include <time_r.h>.
82593
82594         * lib/timegm.c: Switch to glibc implementation, with the following
82595         changes:
82596         [defined HAVE_CONFIG_H]: Include <config.h>.
82597         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82598         (__mktime_internal) [!defined _LIBC]: New decl.
82599         (__gmtime_r) [!defined _LIBC]: New macro and function.
82600         (timegm): Use a prototype, since gnulib assumes C89.
82601         Do not bother declaring tmp to be const, as it's not really usefu.
82602         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82603         (timegm): Declare only if HAVE_DECL_TIMEGM.
82604
82605 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82606
82607         * MODULES.html.sh (func_all_modules): Add time_r.
82608         * modules/time_r: New file.
82609         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82610         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82611
82612 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82613
82614         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82615         Bug reported by Lute Kamstra in
82616         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82617
82618         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82619         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82620         course with correspondingly smaller numbers for tomorrow and
82621         yesterday.  From Tadayoshi Funaba.  Originally installed into
82622         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82623         coreutils merge?).
82624
82625 2003-08-31  Simon Josefsson  <jas@extundo.com>
82626
82627         * modules/timegm: New file.
82628         * MODULES.html.sh (func_all_modules): Add timegm.
82629
82630 2003-08-31  Simon Josefsson  <jas@extundo.com>
82631
82632         * m4/timegm.m4: New file.
82633
82634 2003-08-31  Simon Josefsson  <jas@extundo.com>
82635
82636         * lib/timegm.h: New file.
82637         * lib/timegm.c: New file.  Based on
82638         wget-1.8.2/src/http.c:mktime_from_utc.
82639
82640 2003-08-31  Karl Berry  <karl@gnu.org>
82641
82642         * lib/argp.h: update from libc.
82643
82644 2003-08-28  Bruno Haible  <bruno@clisp.org>
82645
82646         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82647         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82648         followed by '#define fnmatch fnmatch_posix' gives an error.
82649
82650 2003-08-28  Bruno Haible  <bruno@clisp.org>
82651
82652         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82653         warning on QNX, which defines O_BINARY to 000000.
82654
82655 2003-08-27  Jim Meyering  <jim@meyering.net>
82656
82657         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82658         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82659         would fail after 32.  Reported by Danny Levinson.  Details here:
82660         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82661
82662 2003-08-24  Bruno Haible  <bruno@clisp.org>
82663
82664         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82665         MSVC7 <stdio.h> is included later.
82666
82667 2003-08-22  Simon Josefsson  <jas@extundo.com>
82668
82669         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82670
82671 2003-08-20  Karl Berry  <karl@gnu.org>
82672
82673         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82674
82675 2003-08-20  Bruno Haible  <bruno@clisp.org>
82676
82677         * modules/progname: New file.
82678         * MODULES.html.sh (func_all_modules): Add progname.
82679
82680 2003-08-20  Bruno Haible  <bruno@clisp.org>
82681
82682         * lib/progname.h: New file, from GNU gettext.
82683         * lib/progname.c: New file, from GNU gettext.
82684         * lib/progreloc.c: New file, from GNU gettext.
82685
82686 2003-08-19  Jim Meyering  <jim@meyering.net>
82687
82688         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82689         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82690
82691 2003-08-19  Bruno Haible  <bruno@clisp.org>
82692
82693         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82694         more.
82695
82696 2003-08-19  Bruno Haible  <bruno@clisp.org>
82697
82698         * lib/xstrdup.c: Assume <string.h> exists.
82699
82700 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82701
82702         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82703         in makefile rules.
82704
82705 2003-08-18  Jim Meyering  <jim@meyering.net>
82706
82707         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82708         * m4/lib-ld.m4: Likewise.
82709
82710 2003-08-18  Jim Meyering  <jim@meyering.net>
82711
82712         * lib/setenv.h: Indent nested cpp directive.
82713         * lib/vasnprintf.c: Remove trailing blanks.
82714
82715 2003-08-17  Simon Josefsson  <jas@extundo.com>
82716
82717         * modules/xstrndup: New file.
82718         * MODULES.html.sh (func_all_modules): Add xstrndup.
82719
82720 2003-08-17  Simon Josefsson  <jas@extundo.com>
82721
82722         * modules/argp: Fix autoconf macro name. Add more dependencies.
82723
82724 2003-08-17  Simon Josefsson  <jas@extundo.com>
82725
82726         * m4/xstrndup.m4: New file.
82727
82728 2003-08-17  Simon Josefsson  <jas@extundo.com>
82729
82730         * m4/argp.m4: New file.
82731
82732 2003-08-17  Simon Josefsson  <jas@extundo.com>
82733             Bruno Haible  <bruno@clisp.org>
82734
82735         * lib/xstrndup.h: New file.
82736         * lib/xstrndup.c: New file.
82737
82738 2003-08-17  Bruno Haible  <bruno@clisp.org>
82739
82740         * modules/strndup (Files, Include): Add lib/strndup.h.
82741
82742 2003-08-17  Bruno Haible  <bruno@clisp.org>
82743
82744         * modules/euidaccess (Files): Add lib/euidaccess.h.
82745
82746 2003-08-17  Bruno Haible  <bruno@clisp.org>
82747
82748         * lib/strndup.h: New file.
82749
82750 2003-08-17  Bruno Haible  <bruno@clisp.org>
82751
82752         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82753         like AC_GNU_SOURCE.
82754         * modules/extensions (configure.ac): Comment out the invocation of
82755         gl_USE_SYSTEM_EXTENSIONS.
82756
82757 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82758
82759         Merges from coreutils, etc.
82760         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82761         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82762         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82763         fixing a typo.
82764         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82765         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82766
82767 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82768
82769         Document merge from coreutils.
82770         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82771         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82772         * modules/utime: Add m4/utimes-null.m4.
82773
82774 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82775
82776         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82777         space, undoing this 2003-08-12 change:
82778         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82779
82780 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82781
82782         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82783         strtoul.c from libc, undoing this 2003-08-12 change:
82784         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82785
82786 2003-08-16  Jim Meyering  <jim@meyering.net>
82787
82788         Merges from coreutils.
82789         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82790         prefix.  Adjust cache variables similarly.  Create 500 rather than
82791         just 300 files, to exercise bug on Darwin6.5, too.
82792         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82793         $missing_dir.
82794         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82795         AM_SYS_POSIX_TERMIOS.
82796         Reported by mkc@mathdogs.com.
82797         Also change use of $am_cv_sys_posix_termios
82798         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82799         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82800         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82801         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82802         in /proc/mounts until it finds one with matching device number.  This
82803         is unnecessary when the FILE argument *is* a mount point.  No stat call
82804         is necessary in that case.  So, disable the statvfs-testing code on
82805         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82806         as RedHat bug# 84846.
82807         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82808         to 1MB, so as not to render systems with no stack size limit (e.g.,
82809         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82810         Include <unistd.h>.  On some systems,
82811         it is required for the definition of _SC_PAGESIZE.
82812
82813 2003-08-16  Jim Meyering  <jim@meyering.net>
82814
82815         Merge from coreutils.
82816         * lib/xstrtoimax.c: #else #if -> #elif.
82817         * lib/xstrtoumax.c: Likewise.
82818
82819 2003-08-16  Jim Meyering  <jim@meyering.net>
82820
82821         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82822         * m4/utimes.m4: Removed.
82823         * m4/utimes-null.m4: Renamed from utimes.m4.
82824
82825         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82826         to 1MB, so as not to render systems with no stack size limit (e.g.,
82827         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82828         Include <unistd.h>.  On some systems,
82829         it is required for the definition of _SC_PAGESIZE.
82830
82831 2003-08-16  Jim Meyering  <jim@meyering.net>
82832         and Paul Eggert  <eggert@cs.ucla.edu>
82833
82834         Merges from coreutils, etc.
82835
82836         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82837         using the latest version from cvs.  This avoids problems with #line
82838         directives using a vendor (Sun) compiler.
82839         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82840         Don't set GETGROUPS_LIB here; now it's
82841         done via getgroups.m4's wrapper function.
82842         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82843         rather than just in sh-util/configure.in, so that the
82844         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82845         same.
82846         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82847         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82848         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82849         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82850         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82851         Remove code that is now done by the newly-required macros.
82852         Append $(EXEEXT) to DF_PROG.
82853         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82854         Do not invoke or require the following here,
82855         since prereq.m4 or some gnulib .m4 now does this for us:
82856         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82857         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82858         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82859         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82860         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82861         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82862         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82863         AC_FUNC_OBSTACK.
82864         Do not replace the following functions, as this is now the job
82865         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82866         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82867         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82868         atexit getpass, strdup, getpagesize.
82869         Replace 'raise'.
82870         Do not check for the following functions, as this is now the job
82871         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82872         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82873         setregid.
82874         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82875         Check for sys/sysctl.h.
82876         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82877         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82878         of checking for ssize_t ourselves.
82879
82880         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82881         Require every macro that gnulib/modules/* suggests for us.
82882         (jm_PREREQ_ADDEXT): New macro.
82883         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82884         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82885
82886         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82887         (gl_PHYSMEM): Use it.
82888         Also check for `table' function.
82889         Check for new headers and functions.
82890         Add check for sys/sysmp.h.
82891         With suggestions from Kaveh Ghazi.
82892         Ignore headers that are present but cannot be compiled.  This
82893         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82894         C 5.4.
82895
82896 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82897
82898         Document merge from coreutils.
82899         * modules/userspec: Depend on posixver.
82900         * modules/strftime: Depend on tzset.
82901
82902 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82903
82904         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82905         rather than tab, after '#' in shell-script copyright notices.
82906         Suggested by Bruno Haible.
82907
82908 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82909
82910         * config/srclist-update: Use three spaces, rather than tab, after '#'
82911         in shell-script copyright notices.  Suggested by Bruno Haible.
82912         Remove unnecessary parenthesization in regular expression.
82913
82914 2003-08-15  Jim Meyering  <jim@meyering.net>
82915
82916         Merge from coreutils.
82917         * lib/xgethostname.c: Include <stdlib.h>.
82918         (xghostname): Don't exit for anything other than memory-related
82919         failure; just return NULL.
82920         * lib/userspec.c: Include "posixver.h".
82921         (parse_user_spec): Accept `.' as a separator only
82922         in pre-POSIX-200112 mode.
82923         * lib/strtoimax.c: Use #elif rather than #else #if.
82924         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82925         Remove function, now that we can rely on a working tzset function.
82926         [!_LIBC]: Ensure that the required autoconf test has been run.
82927         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82928         Use underlying_strftime for %r.
82929         * lib/sha.c: Merge in some clean-up and optimization changes from
82930         glibc.
82931         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82932         Ensure that it is a multiple of 64.
82933         Rearrange loop exit tests so as to avoid performing an
82934         additional fread after encountering an error or EOF.
82935         * lib/realloc.c: Update copyright date.
82936
82937 2003-08-15  Jim Meyering  <jim@meyering.net>
82938         and Paul Eggert  <eggert@twinsun.com>
82939
82940         Merge from coreutils.
82941         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82942         member but strut utmpx does not.  Needed for AIX 4.3.3.
82943         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82944
82945 2003-08-15  Jim Meyering  <jim@meyering.net>
82946         and Paul Eggert  <eggert@cs.ucla.edu>
82947
82948         Merges from coreutils, etc.
82949         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82950         Require gl_FUNC_TZSET_CLOBBER.
82951         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82952         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82953         members.
82954
82955 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82956
82957         Help the merge from coreutils.
82958         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82959         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82960         * m4/tzset.m4: Use it too.
82961
82962 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82963
82964         * modules/tzset: New file.
82965
82966 2003-08-14  Jim Meyering  <jim@meyering.net>
82967
82968         Merges from coreutils.
82969         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82970         variable names, rather than @FNMATCH_H@.
82971         * modules/alloca: Likewise for $(ALLOCA_H).
82972
82973         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82974         the three copies of the literal target, `fnmatch.h'.
82975         * modules/alloca (alloca.h): Likewise.
82976
82977 2003-08-14  Jim Meyering  <jim@meyering.net>
82978
82979         Merge from coreutils.
82980         * m4/tzset.m4: New file.
82981         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82982         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82983         otherwise, AIX 5.1 systems would end up using the latter.
82984         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82985         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82986         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82987         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82988
82989 2003-08-14  Jim Meyering  <jim@meyering.net>
82990
82991         Merge from coreutils.
82992         * lib/obstack.h: Whitespace changes.
82993         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82994         and xcalloc return values.
82995         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82996         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82997         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82998         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82999         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83000         error from mntctl.
83001         Use mntctl's return value to drive the entry-processing loop, since
83002         we can't rely on the value of the vmt_length member in the last
83003         entry.  On some systems doing so could result in exhausting
83004         virtual memory.  Based in part on a patch from Mike Jetzer.
83005
83006 2003-08-14  Jim Meyering  <jim@meyering.net>
83007         and Paul Eggert  <eggert@twinsun.com>
83008
83009         Merges from coreutils, plus other fixes.
83010         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83011         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83012         for credits and details.  Thanks to Kaveh Ghazi for helping
83013         to keep these files in sync.
83014         (ARRAY_SIZE): Define it.
83015         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83016         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83017         (memcasecmp): Don't assume size_t fits in unsigned int.
83018         Remove casts and duplicate code.
83019         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83020         (memcpy): Remove definition.
83021         Merge in some clean-up and optimization changes from glibc.
83022         [BLOCKSIZE]: Move definition to top of file.
83023         Ensure that it is a multiple of 64.
83024         Rearrange loop exit tests so as to avoid performing an
83025         additional fread after encountering an error or EOF.
83026         * lib/md5.h (md5_uintptr): Define.
83027         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83028         return to the initial working directory.  Preserve errno
83029         for caller.
83030         * lib/idcache.c: Include "xalloc.h".
83031         (xmalloc, xrealloc): Remove decls.
83032         (getuser): Remove casts no longer required in C89.
83033         * lib/human.c: Include stdio.h, for sprintf.
83034         * lib/group-member.c: Include "xalloc.h".
83035         (xmalloc, xrealloc): Remove decls.
83036         (get_group_info): Remove casts no longer required in C89.
83037         * lib/getusershell.c (readname): Remove casts no longer required in
83038         C89.
83039         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83040         * lib/getline.c: Whitespace fix, from coreutils.
83041
83042 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83043
83044         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83045         Check for isascii.
83046
83047         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83048         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83049         Undo previous (whitespace-only) change.
83050
83051 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83052
83053         * lib/exclude.c: Include <ctype.h>
83054         (IN_CTYPE_DOMAIN): New macro.
83055         (is_space): New fn.
83056         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83057         and empty lines.
83058
83059         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83060         Undo previous (whitespace-only) change.
83061
83062 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83063
83064         * config/srclist-update: Change update back to the old behavior,
83065         leaving whitespace alone.  Use one 'sed' command rather than a
83066         pipeline.
83067         (fixlicense): Now a variable, not a function.
83068         (remove_trailing_blanks): Remove.
83069         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83070         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83071         Undo previous (whitespace-only) change.
83072
83073 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83074
83075         Merge from coreutils.
83076         * modules/euidaccess: Add lib_SOURCES, include for new
83077         file euidaccess.h
83078
83079 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83080
83081         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83082         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83083         Normalize leading white space and remove trailing white space.
83084
83085         Merge from coreutils
83086         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83087
83088         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83089         0.12.1.  These files are now being upgraded automatically by
83090         ../config/srclist-update.
83091
83092 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83093
83094         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83095         Normalize leading white space and remove trailing white space.
83096         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83097         notice, as per ../config/srclist-update.
83098
83099         Merge from coreutils.
83100         * lib/euidaccess.h: New file.
83101         * lib/euidaccess.c: Include it.
83102         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83103         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83104         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83105
83106 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83107
83108         * config/srclist-update: Add copyright notice.
83109         (remove_id_lines, remove_trailing_blanks): New constants.
83110         (fixfile): Use them to normalize spacing a bit in copied files.
83111         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83112         Normalize leading white space and remove trailing white space.
83113
83114         * config/texinfo.tex: Sync with texinfo.
83115
83116         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83117         strtoul.c from libc, to merge coreutils whitespace changes.
83118
83119         * config/srclist.txt: Get the following m4 files from gettext:
83120         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83121         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83122         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83123         wint_t.m4.
83124
83125 2003-08-12  Karl Berry  <karl@gnu.org>
83126
83127         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83128         been made.
83129
83130 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83131
83132         * modules/gnu-source, m4/gnu-source.m4:
83133         Remove; we're assuming Autoconf 2.54 or later now.
83134         Suggested by Bruno Haible.
83135         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83136
83137 2003-08-11  Bruno Haible  <bruno@clisp.org>
83138
83139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83140
83141 2003-08-11  Bruno Haible  <bruno@clisp.org>
83142
83143         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83144         (vasnprintf): Use it instead of wcslen.
83145
83146 2003-08-11  Bruno Haible  <bruno@clisp.org>
83147
83148         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83149         value to ensure that _Bool promotes to int. Use #define for _Bool when
83150         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83151
83152 2003-08-10  Karl Berry  <karl@gnu.org>
83153
83154         * lib/regex.h: update from libc (whitespace fix).
83155
83156 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83157
83158         Merge some files from coreutils.  These changes were
83159         originally made by Jim Meyering.
83160         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83161         many older Unixes require this.
83162         * lib/alloca.c (alloca): Remove cast to argument of free;
83163         no longer needed in C89.
83164         * lib/alloca_.h, regex.h: Fix white space to match
83165         what GNU indent does.
83166
83167 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83168
83169         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83170         apparently Emacs's Unicode mode got confused before my 2003-08-05
83171         checkin.
83172
83173 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83174
83175         * m4/extensions.m4: New file.
83176         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83177         Require gl_USE_SYSTEM_EXTENSIONS.
83178         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83179         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83180
83181 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83182
83183         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83184         * modules/extensions, modules/gnu-source: New files.
83185         * modules/timespec, modules/unlocked-io: Depend on extensions.
83186
83187 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83188
83189         * modules/restrict: New file.
83190         * MODULES.html.sh (func_all_modules): Add restrict.
83191         * modules/regex: Depend on restrict.
83192
83193 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83194
83195         * m4/restrict.m4: New file.
83196         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83197
83198 2003-08-07  Bruno Haible  <bruno@clisp.org>
83199
83200         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83201         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83202
83203 2003-08-07  Bruno Haible  <bruno@clisp.org>
83204
83205         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83206         makes the module 'getndelim2' compatible with the module 'getline'.
83207
83208 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83209
83210         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83211         byte with "\201" to avoid glitches when editing that source file
83212         with multi-gnome-terminal.
83213
83214 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83215
83216         * lib/bumpalloc.h: Remove.
83217
83218 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83219
83220         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83221         * modules/bumpalloc: Remove.
83222
83223 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83224
83225         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83226         GNU coding style.
83227
83228         Merge from coreutils.
83229         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83230         1. From glibc.
83231         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83232         from Karl Berry, implemented by Jim Meyering.
83233         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83234         from Dmitry V. Levin.
83235         Remove anachronistic cast of xrealloc.
83236         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83237         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83238         type. Otherwise, it wouldn't compile with at least /bin/cc on
83239         ymp-cray-unicos9.0.2.X.
83240         Combine two mostly-identical uses of alloca into one.
83241         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83242
83243 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83244
83245         [From Emacs.]
83246
83247         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83248         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83249         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83250         obsolete NLIST_NAME_UNION.
83251         [__GNU__]: Undef BSD and FSCALE.
83252         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83253
83254 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83255
83256         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83257         an enum type, so that it's guaranteed to promote to int.  See:
83258         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83259
83260 2003-08-03  Karl Berry  <karl@gnu.org>
83261
83262         * config/depcomp: update from automake.
83263
83264 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83265
83266         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83267         (strerror): Don't assume that a printable int fits in 14 bytes.
83268
83269 2003-07-31  Bruno Haible  <bruno@clisp.org>
83270
83271         * modules/getpass-gnu: New file.
83272         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83273
83274 2003-07-31  Bruno Haible  <bruno@clisp.org>
83275
83276         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83277
83278 2003-07-24  Karl Berry  <karl@gnu.org>
83279
83280         * config/missing: update from automake.
83281
83282 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83283             Bruno Haible  <bruno@clisp.org>
83284
83285         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83286         * lib/getline.c (getline, getdelim): Likewise.
83287         Remove _GNU_SOURCE define; now it's defined in config.h through
83288         m4/getline.m4.
83289
83290 2003-07-23  Karl Berry  <karl@gnu.org>
83291
83292         * config/config.sub: update from prep.
83293
83294 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83295
83296         * modules/xalloc (Depends-on): Add exitfail.
83297         * modules/xmemcoll: Likewise.
83298
83299 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83300
83301         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83302         over-parenthesization in macros.
83303
83304         Sync with coreutils.
83305
83306         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83307         required by C99.
83308
83309         Use `exit_failure' for xalloc and xmemcoll instead of their own
83310         private exit-failure variables.
83311         * lib/xalloc.h (xalloc_exit_failure): Remove.
83312         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83313         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83314         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83315         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83316         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83317
83318 2003-07-20  Jim Meyering  <jim@meyering.net>
83319
83320         * modules/closeout (Depends-on): Add exitfail.
83321         Suggestion from Bruno Haible.
83322
83323 2003-07-19  Karl Berry  <karl@gnu.org>
83324
83325         * config/config.sub: update from prep.
83326
83327 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83328
83329         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83330         Remove.
83331         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83332         to test that it can stand by itself.  Include "exitfail.h".
83333         Clients should set exit_failure instead.
83334         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83335
83336 2003-07-18  Bruno Haible  <bruno@clisp.org>
83337
83338         * modules/getndelim2: New file.
83339         * modules/getline: Share files with module getndelim2.
83340         * modules/getnline: Depend on getndelim2 instead of sharing files with
83341         it. Add getnline.c to lib_SOURCES.
83342         * MODULES.html.sh (func_all_modules): Add getndelim2.
83343
83344 2003-07-18  Bruno Haible  <bruno@clisp.org>
83345
83346         * m4/getndelim2.m4: New file.
83347         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83348         invoke gl_PREREQ_GETNDELIM2.
83349         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83350         gl_PREREQ_GETNDELIM2.
83351         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83352         gl_GETNDELIM2.
83353
83354 2003-07-18  Bruno Haible  <bruno@clisp.org>
83355
83356         * lib/getndelim2.h: New file.
83357         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83358         getndelim2.h.
83359         (getndelim2): Make non-static. Change return type to ssize_t.
83360         * lib/getline.h: Change argument names.
83361         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83362         * lib/getnline.c: Include getndelim2.h.
83363
83364 2003-07-18  Andreas Schwab  <schwab@suse.de>
83365
83366         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83367
83368 2003-07-17  Karl Berry  <karl@gnu.org>
83369
83370         * config/config.sub: update from prep.
83371
83372 2003-07-17  Bruno Haible  <bruno@clisp.org>
83373
83374         * modules/getnline: New file.
83375         * modules/getline: Add lib/getndelim2.c to source file list.
83376         * MODULES.html.sh (func_all_modules): Add getnline.
83377
83378 2003-07-17  Bruno Haible  <bruno@clisp.org>
83379
83380         * m4/getnline.m4: New file.
83381
83382 2003-07-17  Bruno Haible  <bruno@clisp.org>
83383
83384         * m4/Makefile.am.in: Remove file.
83385         * m4/Makefile.am: Remove file.
83386         * m4/Makefile.in: Remove file.
83387
83388 2003-07-17  Bruno Haible  <bruno@clisp.org>
83389
83390         * lib/getnline.h: New file.
83391         * lib/getnline.c: New file.
83392         * lib/getndelim2.c: New file, extracted from getline.c.
83393         (getndelim2): Renamed from getdelim2, with added nmax argument.
83394         * lib/getline.c: Include getndelim2.c.
83395         (getdelim2): Moved out to getndelim2.c.
83396         (getline, getdelim): Update.
83397
83398 2003-07-17  Bruno Haible  <bruno@clisp.org>
83399
83400         * lib/Makefile.am: Remove file.
83401         * lib/Makefile.in: Remove file.
83402
83403 2003-07-17  Bruno Haible  <bruno@clisp.org>
83404
83405         * configure.in: Remove file.
83406         * Makefile.in: Remove file.
83407
83408 2003-07-17  Bruno Haible  <bruno@clisp.org>
83409
83410         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83411
83412 2003-07-16  Karl Berry  <karl@gnu.org>
83413
83414         * config/srclist-update: was running fixlicense twice, which caused
83415                 texinfo.tex to be nullified for some reason.  Simplify,
83416                 $gplsrc is no longer needed as far as I can see?
83417
83418 2003-07-16  Jim Meyering  <jim@meyering.net>
83419
83420         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83421
83422 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83423
83424         * config/srclist.txt: Get the following files from gettext-runtime/intl
83425         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83426         ref-del.sin.  From Bruno Haible.
83427         * config/srclist-update (fixfile): Change grep pattern again, since the
83428         previous fix didn't work (there was another trailing $).  Use
83429         '[$]' to escape the $s.
83430
83431 2003-07-15  Karl Berry  <karl@gnu.org>
83432
83433         * lib/vasnprintf.c: update from gettext.
83434
83435 2003-07-15  Karl Berry  <karl@gnu.org>
83436
83437         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83438         gets expanded when surrounded by '$'.
83439
83440 2003-07-15  Jim Meyering  <jim@meyering.net>
83441
83442         * modules/save-cwd: Don't depend on error.  From Derek Price.
83443
83444 2003-07-15  Jim Meyering  <jim@meyering.net>
83445
83446         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83447
83448 2003-07-14  Simon Josefsson  <jas@extundo.com>
83449
83450         * modules/mempcpy: New file.
83451         * MODULES.html.sh (func_all_modules): Add mempcpy.
83452
83453 2003-07-14  Simon Josefsson  <jas@extundo.com>
83454
83455         * m4/mempcpy.m4: New file.
83456
83457 2003-07-14  Simon Josefsson  <jas@extundo.com>
83458
83459         * lib/mempcpy.h: New file.
83460         * lib/mempcpy.c: New file.
83461
83462 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83463
83464         * modules/getdate, modules/posixtm: Depend on mktime.
83465
83466 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83467
83468         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83469         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83470         unicodeio.c, unicodeio.h, unlocked-io.h:
83471         Switch from LGPL to GPL.
83472
83473 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83474
83475         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83476         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83477         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83478         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83479         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83480         updated automatically by ../config/srclist-update.  This changes
83481         their license from LPGL to GPL.
83482
83483 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83484
83485         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83486         assumed to refer to the root of the most recent stable gettext version.
83487         * config/srclistvars.sh: Add defaults for eggert.
83488         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83489         Match "This program" as well as "The program".  This is needed
83490         for gettext.
83491
83492 2003-07-14  Jim Meyering  <jim@meyering.net>
83493
83494         Don't emit diagnostics.  Let callers do that.
83495         * lib/save-cwd.c: Don't include "error.h".
83496         (save_cwd): Don't call error.  Ensure that errno is valid
83497         when returning nonzero.
83498
83499         * lib/save-cwd.h (restore_cwd): Update prototype.
83500         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83501         Simplify.  Don't call error upon failure.  Let callers do that.
83502         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83503         when auditing is enabled.  But don't bother updating the #if.
83504
83505 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83506
83507         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83508         it breaks C++ compilation.
83509         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83510
83511 2003-07-10  Simon Josefsson  <jas@extundo.com>
83512
83513         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83514
83515 2003-07-10  Jim Meyering  <jim@meyering.net>
83516
83517         * m4/clock_time.m4: Remove trailing blank.
83518         * m4/intmax_t.m4: Likewise.
83519
83520 2003-07-10  Jim Meyering  <jim@meyering.net>
83521
83522         * lib/vasnprintf.c: Remove trailing blanks.
83523         Make cpp indentation consistent.
83524
83525 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83526
83527         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83528         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83529         Switch from LGPL to GPL.
83530
83531 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83532
83533         * config/srclist.txt: Sort sublists.  Add
83534         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83535         that differ from gnulib for one reason or another; we'd like this list
83536         to be smaller but for now let's document what we have.
83537
83538 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83539
83540         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83541         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83542         and sweeter "eval x=$x".
83543         * config/srclist.txt: Get lib/argp* from glibc.
83544
83545 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83546
83547         * lib/mktime.c: Fix some boundary cases and remove need for floating
83548         point.
83549
83550         Issue a compile-time diagnostic if time_t is floating point, or if
83551         two's complement arithmetic is not in effect, or if arithmetic
83552         right shift does not propagate the sign.  These assumptions were
83553         all in the original code but they weren't checked.
83554
83555         (TIME_T_MIDPOINT, verify): New macros.
83556         (__isleap): Remove; it has integer overflow problems.
83557         (leapyear): New function, without those problems.
83558         (ydhms_tm_diff): Remove; splitting into two parts.
83559         (ydhms_diff): New function, containing the arithmetic part of
83560         the old ydhms_tm_diff function.  Issue a compile-time
83561         diagnostic if we are not using C99 integer division.
83562         Avoid casts when possible.
83563         (guess_time_tm): New function, containing the checking part of
83564         the old ydhms_tm_diff function.  Return the new value, rather than
83565         the difference between it and the old.  Accept a new argument T
83566         so that *T specifies the old value.  Check for overflow in the result.
83567
83568         (__mktime_internal): Use a time_t offset, not a long int offset.
83569         This undoes the 2003-06-04 change, which is no longer needed now
83570         that we have better overflow checking.
83571         (localtime_offset): Likewise.
83572
83573         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83574         and long are 64-bit but int is only 32-bit.
83575         (ydhms_diff): Use long int to store year1 and yday1.
83576         Issue a compile-time diagnostic if long int is not wide enough.
83577
83578         (__mktime_internal): Use long int to store adjusted year and yday.
83579         Use plain C rather than preprocessor commands, if that doesn't
83580         affect efficiency.
83581         Check for overflow (and try to repair) after each probe
83582         rather than checking only at the very end.  This avoids some bugs
83583         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83584         does not equal GMT offset at maximum time).
83585         Use integer to check for overflow rather than floating point; this
83586         is more portable to non-IEEE hosts, and is a tad faster.
83587         When we detect that we are oscillating between two values,
83588         don't check whether tm_isdst has the requested value, since
83589         we already know the answer.  When tm_isdst has the wrong value,
83590         use a different heuristic to find the right one, based on the
83591         extreme values actually observed in practice in tz2003a,
83592         rather than the (overly optimistic) "previous 3 calendar quarters".
83593
83594         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83595         "T const" to accommodate glibc style.
83596         (check_result): Use less-confusing report format.  "long" -> "long int.
83597         (main): Likewise.
83598         Don't loop if the iteration overflows time_t.
83599         Allow a negative step in the iteration.
83600
83601 2003-07-06  Karl Berry  <karl@gnu.org>
83602
83603         * config/depcomp: update from automake.
83604         * config/config.sub: update from prep.
83605
83606 2003-07-03  Karl Berry  <karl@gnu.org>
83607
83608         * config/config.guess: update from prep.
83609
83610 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83611
83612         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83613         xreadlink.c now includes it unconditionally.
83614
83615 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83616
83617         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83618         having it depend on HAVE_SYS_TYPES_H.
83619
83620 2003-07-01  Bruno Haible  <bruno@clisp.org>
83621
83622         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83623         <sys/types.h> should be sufficient.
83624         Reported by Paul Eggert.
83625
83626 2003-06-26  Karl Berry  <karl@gnu.org>
83627
83628         * config/depcomp: update from automake.
83629
83630 2003-06-26  Bruno Haible  <bruno@clisp.org>
83631
83632         * modules/human: Depend on module stdbool.
83633
83634 2003-06-25  Bruno Haible  <bruno@clisp.org>
83635
83636         * modules/readlink: New file.
83637         * modules/xreadlink: Depend on it.
83638         * MODULES.html.sh (func_all_modules): Add readlink.
83639
83640 2003-06-25  Bruno Haible  <bruno@clisp.org>
83641
83642         * m4/readlink.m4: New file.
83643
83644 2003-06-25  Bruno Haible  <bruno@clisp.org>
83645
83646         * lib/readlink.c: New file.
83647
83648 2003-06-22  Karl Berry  <karl@gnu.org>
83649
83650         * config/srclist.txt: update mkinstalldirs from automake.
83651         * config/mkinstalldirs: update.
83652
83653 2003-06-22  Bruno Haible  <bruno@clisp.org>
83654
83655         Portability to mingw32.
83656         * m4/ssize_t.m4: New file, from GNU gettext.
83657         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83658         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83659
83660 2003-06-22  Bruno Haible  <bruno@clisp.org>
83661
83662         * modules/safe-read: Add m4/ssize_t.m4.
83663         * modules/xreadlink: Add m4/ssize_t.m4.
83664
83665 2003-06-20  Bruno Haible  <bruno@clisp.org>
83666
83667         Assume C89, so PARAMS isn't needed.
83668         * lib/unicodeio.h (PARAMS): Remove.
83669         * lib/unicodeio.c: Don't use PARAMS.
83670
83671 2003-06-18  Karl Berry  <karl@gnu.org>
83672
83673         * config/config.{guess,sub}: update from prep.
83674
83675 2003-06-18  Jim Meyering  <jim@meyering.net>
83676
83677         Merge changes from coreutils.
83678         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83679         Remove explicit declarations of xmalloc and realloc.
83680         Include xalloc.h.
83681         (read_utmp): Remove anachronistic cast of xmalloc.
83682
83683 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83684
83685         Assume C89, so PARAMS isn't needed.
83686         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83687         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83688         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83689         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83690         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83691         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83692         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83693         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83694         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83695         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83696         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83697         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83698         no longer needed. Anyway, config.h should always be included before any
83699         other file.
83700
83701 2003-06-11  Simon Josefsson  <jas@extundo.com>
83702
83703         * modules/sysexits: New file.
83704         * MODULES.html.sh (func_all_modules): Add sysexits.
83705
83706 2003-06-11  Simon Josefsson  <jas@extundo.com>
83707
83708         * lib/sysexit_.h: New file.
83709
83710 2003-06-11  Derek Price  <derek@ximbiot.com>
83711
83712         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83713         necessary.
83714
83715 2003-06-11  Bruno Haible  <bruno@clisp.org>
83716
83717         * m4/sysexits.m4: New file.
83718
83719 2003-06-10  Simon Josefsson  <jas@extundo.com>
83720
83721         * lib/argp.h: New file, from glibc.
83722         * lib/argp-ba.c: New file, from glibc.
83723         * lib/argp-eexst.c: New file, from glibc.
83724         * lib/argp-fmtstream.c: New file, from glibc.
83725         * lib/argp-fmtstream.h: New file, from glibc.
83726         * lib/argp-fs-xinl.c: New file, from glibc.
83727         * lib/argp-help.c: New file, from glibc.
83728         * lib/argp-namefrob.h: New file, from glibc.
83729         * lib/argp-parse.c: New file, from glibc.
83730         * lib/argp-pv.c: New file, from glibc.
83731         * lib/argp-pvh.c: New file, from glibc.
83732         * lib/argp-xinl.c: New file, from glibc.
83733
83734 2003-06-10  Simon Josefsson  <jas@extundo.com>
83735
83736         * modules/strchrnul: New file.
83737
83738 2003-06-10  Simon Josefsson  <jas@extundo.com>
83739
83740         * modules/argp: New file.
83741
83742 2003-06-10  Simon Josefsson  <jas@extundo.com>
83743
83744         * m4/strchrnul.m4: New file.
83745
83746 2003-06-10  Simon Josefsson  <jas@extundo.com>
83747
83748         * lib/strchrnul.h: New file.
83749         * lib/strchrnul.c: New file.
83750
83751 2003-06-10  Bruno Haible  <bruno@clisp.org>
83752
83753         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83754
83755 2003-06-07  Karl Berry  <karl@gnu.org>
83756
83757         * config/config.{guess,sub}: update from prep.
83758
83759 2003-06-07  Jim Meyering  <jim@meyering.net>
83760
83761         * modules/strtod: Use $(...) notation, not @...@ for
83762         AC_REPLACE'd variables.
83763         * modules/localcharset: Likewise.
83764
83765 2003-06-07  Jim Meyering  <jim@meyering.net>
83766
83767         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83768         in place of my name in the copyright comment.
83769         Remove definition and uses of __P.
83770
83771         From coreutils.
83772         * lib/stat.c: Don't declare xmalloc explicitly.
83773         Instead, include "xalloc.h".
83774         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83775         xrealloc, and xcalloc return values.
83776         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83777         Improve comment.
83778         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83779
83780 2003-06-07  Bruno Haible  <bruno@clisp.org>
83781
83782         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83783         avoid AC_CONFIG_LINKS.
83784         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83785         fnmatch.h, to avoid AC_CONFIG_LINKS.
83786         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83787
83788 2003-06-07  Bruno Haible  <bruno@clisp.org>
83789
83790         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83791         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83792         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83793         directory.
83794         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83795         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83796         directory.
83797
83798 2003-06-06  Jim Meyering  <jim@meyering.net>
83799
83800         Merge from coreutils.
83801         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83802         Consolidate declarations and initializations of *_base* locals.
83803
83804         Merge from coreutils.
83805         This avoids a core dump on systems without GNU putenv,
83806         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83807         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83808         (unsetenv): New static function, from GNU libc.
83809         (rpl_putenv): Use it.
83810
83811         * lib/modechange.c: Remove trailing blanks.
83812
83813         Merge from coreutils.
83814         * lib/fsusage.c: Remove declaration of statfs.
83815         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83816
83817         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83818
83819 2003-06-06  Jim Meyering  <jim@meyering.net>
83820
83821         * lib/stdbool_.h: Renamed from stdbool.h.in.
83822
83823 2003-06-06  Jim Meyering  <jim@meyering.net>
83824             Bruno Haible  <bruno@clisp.org>
83825
83826         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83827         Adjust Makefile.am snippet not to redirect directly to target.
83828         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83829
83830 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83831
83832         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83833         mismatch, look in future quarters as well as past.  This fixes a
83834         bug when processing fall-backwards gaps immediately after a long
83835         period of daylight-saving time.
83836
83837         * lib/mktime.c: Assume freestanding C89 or better.
83838         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83839         (__P): Remove; not used.
83840         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83841         (mktime, not_equal_tm, print_tm, check_result,
83842         main): Use prototypes.  Use const * where appropriate.
83843         (main): Fix typo in testing code that uncovered by above changes.
83844         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83845
83846 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83847
83848         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83849         locale.h, localeconv.  This merges changes from coreutils.
83850
83851         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83852         It can be removed after the next Autoconf is released.
83853         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83854         needed.
83855
83856 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83857
83858         * lib/mktime.c: Fix Debian bug 177940
83859         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83860         (localtime_offset): Now long int, not time_t, because we want it
83861         to be guaranteed to be signed.  All uses changed.
83862         (__mktime_internal): If overflow would occur when adding offset,
83863         don't add it.
83864
83865         Merge 'human' changes from coreutils.  Rewrite to support
83866         locale-specific notations like thousands separators.
83867         * lib/human.c: Simplify authorship notice.
83868         Include human.h immediately after config.h.
83869         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83870         <limits.h>: Do not include, since human.h does.
83871         (SIZE_MAX, UINTMAX_MAX): New macros.
83872         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83873         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83874         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83875         (power_letter): Renamed from suffixes.
83876         (generate_suffix_backwards): Remove.
83877         (adjust_value): Now takes int style (because of human.h changes)
83878         and long double value (for greater precision on some platforms).
83879         (group_number): New function.
83880         (human_readable): Use it.  Use integer options, not enum.
83881         Put the options before the sizes in the arg list.
83882         Support all the new options.
83883         The old human_readable function has been removed;
83884         use inttostr.h instead.
83885         (human_readable, default_block_size, humblock):
83886         Use uintmax_t, not int, for block sizes.
83887         (human_readable_inexact, block_size_types): Remove.
83888         (block_size_opts): New constant.
83889         (human_options): Renamed from human_block_size, with new signature
83890         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83891         * lib/human.h: Add copyright and authorship notice.
83892         Include <limits.h> and <stdbool.h> unconditionally.
83893         (PARAMS): Remove.  All uses removed.
83894         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83895         (enum human_inexact_style): Remove tag; now a nameless enum.
83896         (human_floor, human_ceiling, human_round_to_even): Now have
83897         values 2, 0, 1 rather than -1, 1, 0.
83898         (human_group_digits, human_suppress_point_zero, human_autoscale,
83899         human_base_1024, human_SI, human_B): New constants.
83900         (human_readable_inexact, human_block_size): Remove.
83901         (human_readable): Size args are now uintmax_t, not int.
83902         (human_options): New decl.
83903
83904         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83905         unnecessary now that we assume C89 or better.  This change
83906         imported from coreutils.
83907
83908         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83909         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83910         in the 2003-05-30 sync from glibc.
83911
83912         .h files should stand alone, but we shouldn't include <sys/types.h>
83913         if we can get away with just <stddef.h>.
83914
83915         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83916         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83917         rather than <sys/types.h>, as we merely need size_t.
83918         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83919         to get size_t.
83920         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83921         Include <stdio.h>, to get FILE.
83922         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83923         memcasecmp.h has included <stddef.h> and all we need is size_t.
83924         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83925         our interface, instead of including <sys/types.h>
83926
83927 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83928
83929         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83930         now, as glibc mktime is buggy on non-glibc systems.
83931
83932 2003-06-03  Karl Berry  <karl@gnu.org>
83933
83934         * config/config.sub: update from prep.
83935
83936 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83937
83938         [from coreutils]
83939         Fix some minor time-related bugs with POSIX time arguments.
83940         Some valid time stamps were being rejected (notably -1, and
83941         time stamps before 1900 on 64-bit hosts).  And some invalid
83942         time stamps were being accepted, e.g. September 31.
83943
83944         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83945         that we can return (time_t) -1 successfully.
83946         * lib/posixtm.c: Likewise.
83947         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83948         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83949         (t): Remove static var.
83950         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83951         of static var.  All uses changed.
83952         (year): Do not reject years before 1900; they can occur with
83953         64-bit time_t.
83954         (posix_time_parse): Do not check for out-of-range components;
83955         that is now the caller's responsibility, since our checks were
83956         only approximations.
83957         (posixtime): Use mktime to check for out-of-range components,
83958         since it knows them exactly.
83959         If mktime returns (time_t) -1, check whether an error actually occurred
83960         by invoking localtime on -1.
83961         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83962         posixtime failures better.
83963         Improve the test data (in comments only).
83964
83965 2003-06-02  Karl Berry  <karl@gnu.org>
83966
83967         * config/mkinstalldirs (version): new variable.
83968         (--version): new option.
83969         (usage): improve message.
83970
83971 2003-05-30  Karl Berry  <karl@gnu.org>
83972
83973         * lib/mktime.c: update from libc.
83974
83975 2003-05-30  Bruno Haible  <bruno@clisp.org>
83976
83977         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83978         * config/config.rpath: Upgrade to gettext-0.12.1.
83979
83980 2003-05-30  Bruno Haible  <bruno@clisp.org>
83981
83982         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83983         * m4/nls.m4: New file, from gettext-0.12.1.
83984         * m4/po.m4: New file, from gettext-0.12.1.
83985         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83986
83987 2003-05-30  Bruno Haible  <bruno@clisp.org>
83988
83989         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83990         * lib/localcharset.h: Likewise.
83991         * lib/localcharset.c: Likewise.
83992
83993 2003-05-29  Karl Berry  <karl@gnu.org>
83994
83995         * config/config.rpath: update from gettext.
83996
83997 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83998
83999         Assume the headers required for C89 freestanding compilers.
84000         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84001         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84002         * m4/human.m4 (gl_HUMAN): Likewise.
84003         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84004         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84005         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84006         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84007         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84008         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84009
84010 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84011
84012         Assume the headers required for C89 freestanding compilers.
84013         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84014         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84015         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84016         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84017         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84018         define, since <limits.h> is guaranteed to do that.
84019         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84020         * lib/exclude.c: Include <stdbool.h> unconditionally.
84021         * lib/tempname.c: Include <stddef.h> unconditionally.
84022         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84023         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84024         <stddef.h> does that.
84025         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84026         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84027         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84028         needed.
84029         * lib/xstrtol.c: Likewise.
84030         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84031         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84032
84033         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84034         warnings on some platforms.
84035
84036         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84037         arbitrarily.
84038
84039 2003-05-26  Jim Meyering  <jim@meyering.net>
84040
84041         Merge in a change from coreutils:
84042         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84043         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84044         that condition, rather than `-1' which is slightly misleading.
84045         Change the name of the cache variable to have the gl_ prefix.
84046         Prompted by a patch from Richard Dawe for DJGPP.
84047
84048 2003-05-24  Karl Berry  <karl@gnu.org>
84049
84050         * config/config.guess: update from prep.
84051
84052 2003-05-22  Karl Berry  <karl@gnu.org>
84053
84054         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84055
84056 2003-05-20  Karl Berry  <karl@gnu.org>
84057
84058         * config/config.guess: update from prep.
84059
84060 2003-05-18  Karl Berry  <karl@gnu.org>
84061
84062         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84063         might actually be set by the user.
84064
84065         * config/depcomp, install-sh, mdate-sh: update from automake.
84066
84067 2003-05-17  Bruno Haible  <bruno@clisp.org>
84068
84069         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84070         invalid expansion for AC_EGREP_CPP.
84071         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84072         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84073         Suggested by Akim Demaille <akim@epita.fr> in
84074         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84075
84076 2003-05-12  Jim Meyering  <jim@meyering.net>
84077
84078         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84079         the space-padded-by-default conversion specifiers, %e, %k, %l.
84080
84081 2003-05-12  Bruno Haible  <bruno@clisp.org>
84082
84083         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84084         the string is longer than 4 KB.
84085
84086 2003-05-11  Karl Berry  <karl@gnu.org>
84087
84088         * config/config.{guess,sub}: update from prep.
84089
84090 2003-05-09  Bruno Haible  <bruno@clisp.org>
84091
84092         * modules/error: Add m4/strerror_r.m4 to file list.
84093
84094 2003-05-03  Bruno Haible  <bruno@clisp.org>
84095
84096         Upgrade to Unicode-4.0.
84097         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84098         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84099         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84100         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84101         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84102         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84103         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84104         Change width of U+E0100..U+E01EF from 1 to 0.
84105
84106 2003-04-25  Jim Meyering  <jim@meyering.net>
84107
84108         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84109         of type size_t, not int.
84110
84111 2003-04-25  Bruno Haible  <bruno@clisp.org>
84112
84113         * lib/copy-file.c: Include <stddef.h>, for size_t.
84114
84115 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84116
84117         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84118         code which expansion is under static control.  Patch imported from
84119         Akim Demaille's patch to Bison; see
84120         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84121
84122 2003-04-14  Bruno Haible  <bruno@clisp.org>
84123
84124         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84125
84126 2003-04-11  Jim Meyering  <jim@meyering.net>
84127
84128         Merge changes from Coreutils.
84129
84130         2003-03-22  Jim Meyering  <jim@meyering.net>
84131
84132         * lib/strftime.c (widen): Cast alloca return value to proper type.
84133
84134         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84135
84136         From GNU libc.
84137         * lib/strftime.c (my_strftime): Handle very large width
84138         specifications for numeric values correctly.  Improve checks for
84139         overflow.
84140
84141         2003-01-19  Jim Meyering  <jim@meyering.net>
84142
84143         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84144         definitions.
84145         (nl_get_alt_digit) [! defined my_strftime]: Define.
84146         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84147         _nl_get_alt_digit and _nl_get_walt_digit.
84148
84149         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84150         libc. These changes have no effect outside of _LIBC.
84151
84152 2003-04-10  Bruno Haible  <bruno@clisp.org>
84153
84154         * modules/findprog: New file.
84155         * MODULES.html.sh (func_all_modules): Add it.
84156
84157 2003-04-10  Bruno Haible  <bruno@clisp.org>
84158
84159         * m4/findprog.m4: New file.
84160         * m4/eaccess.m4: New file.
84161
84162 2003-04-10  Bruno Haible  <bruno@clisp.org>
84163
84164         * lib/findprog.h: New file, from GNU gettext.
84165         * lib/findprog.c: New file, from GNU gettext.
84166
84167 2003-04-05  Jim Meyering  <jim@meyering.net>
84168
84169         Merge changes from Coreutils.
84170
84171         * lib/exclude.h (PARAMS): Remove definition and uses.
84172         * lib/exclude.c: Remove uses of `PARAMS'.
84173
84174         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84175         Add test-cases for DOS filenames. Declare program_name.
84176         (main): Set up program_name.  Patch by Rich Dawe.
84177
84178         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84179         error from mntctl.
84180         Use mntctl's return value to drive the entry-processing loop, since
84181         we can't rely on the value of the vmt_length member in the last
84182         entry.  On some systems doing so could result in exhausting
84183         virtual memory.  Based in part on a patch from Mike Jetzer.
84184
84185 2003-04-04  Bruno Haible  <bruno@clisp.org>
84186
84187         * modules/linebreak: New file.
84188         * MODULES.html.sh (func_all_modules): Add it.
84189
84190 2003-04-04  Bruno Haible  <bruno@clisp.org>
84191
84192         * m4/linebreak.m4: New file.
84193
84194 2003-04-04  Bruno Haible  <bruno@clisp.org>
84195
84196         * lib/linebreak.h: New file, from GNU gettext.
84197         * lib/linebreak.c: New file, from GNU gettext with slight
84198         modifications.
84199         * lib/lbrkprop.h: New file, from GNU gettext.
84200
84201 2003-04-03  Bruno Haible  <bruno@clisp.org>
84202
84203         * modules/utf8-ucs4: New file.
84204         * modules/utf16-ucs4: New file.
84205         * modules/ucs4-utf8: New file.
84206         * modules/ucs4-utf16: New file.
84207         * MODULES.html.sh (func_all_modules): Add them.
84208
84209 2003-04-03  Bruno Haible  <bruno@clisp.org>
84210
84211         * m4/utf-ucs4.m4: New file.
84212         * m4/ucs4-utf.m4: New file.
84213
84214 2003-04-03  Bruno Haible  <bruno@clisp.org>
84215
84216         * lib/utf8-ucs4.h: New file, from GNU gettext.
84217         * lib/utf16-ucs4.h: New file, from GNU gettext.
84218         * lib/ucs4-utf8.h: New file, from GNU gettext.
84219         * lib/ucs4-utf16.h: New file, from GNU gettext.
84220
84221 2003-04-02  Bruno Haible  <bruno@clisp.org>
84222
84223         * modules/binary-io: New file.
84224         * MODULES.html.sh (func_all_modules): Add it.
84225
84226 2003-04-02  Bruno Haible  <bruno@clisp.org>
84227
84228         * lib/binary-io.h: New file, from GNU gettext.
84229
84230 2003-04-01  Bruno Haible  <bruno@clisp.org>
84231
84232         * modules/pathname: New file.
84233         * MODULES.html.sh (func_all_modules): Add it.
84234
84235 2003-04-01  Bruno Haible  <bruno@clisp.org>
84236
84237         * lib/pathname.h: New file, from GNU gettext.
84238         * lib/concatpath.c: New file, from GNU gettext.
84239
84240 2003-03-30  Bruno Haible  <bruno@clisp.org>
84241
84242         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84243
84244 2003-03-30  Bruno Haible  <bruno@clisp.org>
84245
84246         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84247         function chown() doesn't exist.
84248
84249 2003-03-28  Bruno Haible  <bruno@clisp.org>
84250
84251         * modules/copy-file: New file.
84252         * MODULES.html.sh (func_all_modules): Add it.
84253
84254 2003-03-28  Bruno Haible  <bruno@clisp.org>
84255
84256         * m4/copy-file.m4: New file.
84257
84258 2003-03-28  Bruno Haible  <bruno@clisp.org>
84259
84260         * lib/copy-file.h: New file, from GNU gettext.
84261         * lib/copy-file.c: New file, from GNU gettext.
84262
84263 2003-03-18  Jim Meyering  <jim@meyering.net>
84264
84265         * lib/quote.c (quote_n): Fix typo in comment.
84266
84267 2003-03-18  Bruno Haible  <bruno@clisp.org>
84268
84269         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84270         checking.
84271         * m4/onceonly_2_57.m4: Likewise.
84272
84273 2003-03-17  Bruno Haible  <bruno@clisp.org>
84274
84275         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84276         (m4_quote): Remove macro.
84277         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84278
84279 2003-03-14  Jim Meyering  <jim@meyering.net>
84280
84281         Merge changes from Coreutils.
84282         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84283         to be const, in order to avoid warnings.
84284         (obstack_room): Likewise.
84285         (obstack_empty_p): Likewise.
84286
84287 2003-03-14  Bruno Haible  <bruno@clisp.org>
84288
84289         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84290         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84291
84292 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84293
84294         Merge changes from Bison.
84295         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84296         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84297         when compiling Bison 1.875's `bitset bset = obstack_alloc
84298         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84299         * lib/hash.c: Include <stdbool.h> unconditionally.
84300
84301 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84302
84303         * m4/onceonly.m4 (m4_quote): New macro.
84304         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84305         Quote AC_FOREACH variable-expansions properly.
84306
84307 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84308
84309         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84310
84311 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84312
84313         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84314         Reported by Bruce Becker; see:
84315         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84316
84317 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84318             Bruno Haible  <bruno@clisp.org>
84319
84320         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84321         Reported by John Hughes, see
84322         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84323
84324 2003-02-20  Bruno Haible  <bruno@clisp.org>
84325
84326         * MODULES.html.sh (func_all_modules): Add poll.
84327
84328 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84329
84330         * modules/poll: New file.
84331
84332 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84333
84334         * lib/poll_.h: New file.
84335         * lib/poll.c: New file.
84336
84337 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84338
84339         * m4/poll.m4: New file.
84340
84341 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84342
84343         * modules/mathl: New file.
84344
84345 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84346
84347         * lib/mathl.h: New file.
84348         * lib/acosl.c: New file.
84349         * lib/asinl.c: New file.
84350         * lib/atanl.c: New file.
84351         * lib/ceill.c: New file.
84352         * lib/cosl.c: New file.
84353         * lib/expl.c: New file.
84354         * lib/floorl.c: New file.
84355         * lib/frexpl.c: New file.
84356         * lib/ldexpl.c: New file.
84357         * lib/logl.c: New file.
84358         * lib/sincosl.c: New file.
84359         * lib/sinl.c: New file.
84360         * lib/sqrtl.c: New file.
84361         * lib/tanl.c: New file.
84362         * lib/trigl.c: New file.
84363         * lib/trigl.h: New file.
84364
84365 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84366
84367         * m4/mathl.m4: New file.
84368
84369 2003-02-18  Bruno Haible  <bruno@clisp.org>
84370
84371         * MODULES.html.sh (func_all_modules): Add mathl.
84372
84373 2003-02-17  Bruno Haible  <bruno@clisp.org>
84374
84375         * modules/mkdtemp: New module.
84376         * MODULES.html.sh (func_all_modules): Add it.
84377
84378 2003-02-17  Bruno Haible  <bruno@clisp.org>
84379
84380         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84381
84382 2003-02-17  Bruno Haible  <bruno@clisp.org>
84383
84384         * lib/mkdtemp.h: New file, from GNU gettext.
84385         * lib/mkdtemp.c: New file, from GNU gettext.
84386
84387 2003-02-02  Jim Meyering  <jim@meyering.net>
84388
84389         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84390         e.g. glibc-2.2.93.
84391
84392 2003-01-31  Bruno Haible  <bruno@clisp.org>
84393
84394         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84395         'rpl_rename'.
84396         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84397         'rpl_strnlen'.
84398         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84399         'rpl_strtod'.
84400         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84401         'rpl_utime'.
84402
84403 2003-01-31  Bruno Haible  <bruno@clisp.org>
84404
84405         * lib/rename.c: #undef rename before defining rpl_rename.
84406         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84407
84408 2003-01-30  Bruno Haible  <bruno@clisp.org>
84409
84410         * modules/vasnprintf, modules/vasprintf: New modules.
84411         * MODULES.html.sh (func_all_modules): Add them.
84412
84413 2003-01-30  Bruno Haible  <bruno@clisp.org>
84414
84415         * m4/signed.m4: New file, from GNU gettext.
84416         * m4/longdouble.m4: New file, from GNU gettext.
84417         * m4/wchar_t.m4: New file, from GNU gettext.
84418         * m4/wint_t.m4: New file, from GNU gettext.
84419         * m4/vasnprintf.m4: New file.
84420         * m4/vasprintf.m4: New file.
84421
84422 2003-01-30  Bruno Haible  <bruno@clisp.org>
84423
84424         * lib/printf-args.h: New file, from GNU gettext.
84425         * lib/printf-args.c: New file, from GNU gettext.
84426         * lib/printf-parse.h: New file, from GNU gettext.
84427         * lib/printf-parse.c: New file, from GNU gettext.
84428         * lib/vasnprintf.h: New file, from GNU gettext.
84429         * lib/vasnprintf.c: New file, from GNU gettext.
84430         * lib/asnprintf.c: New file, from GNU gettext.
84431         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84432         * lib/vasprintf.c: New file, from GNU gettext.
84433         * lib/asprintf.c: New file, from GNU gettext.
84434
84435 2003-01-29  Bruno Haible  <bruno@clisp.org>
84436
84437         * modules/stpncpy: New module.
84438         * MODULES.html.sh (func_all_modules): Add it.
84439
84440 2003-01-29  Bruno Haible  <bruno@clisp.org>
84441
84442         * m4/stpncpy.m4: New file.
84443
84444 2003-01-29  Bruno Haible  <bruno@clisp.org>
84445
84446         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84447         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84448
84449 2003-01-28  Bruno Haible  <bruno@clisp.org>
84450
84451         * modules/c-ctype: New module.
84452         * MODULES.html.sh (func_all_modules): Add it.
84453
84454 2003-01-28  Bruno Haible  <bruno@clisp.org>
84455
84456         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84457         Paul Eggert.
84458         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84459         Paul Eggert.
84460
84461 2003-01-27  Bruno Haible  <bruno@clisp.org>
84462
84463         * modules/xsetenv: New module.
84464         * MODULES.html.sh (func_all_modules): Add it.
84465
84466 2003-01-27  Bruno Haible  <bruno@clisp.org>
84467
84468         * lib/xsetenv.h: New file, from GNU gettext.
84469         * lib/xsetenv.c: New file, from GNU gettext.
84470
84471 2003-01-23  Jim Meyering  <jim@meyering.net>
84472
84473         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84474         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84475
84476 2003-01-23  Bruno Haible  <bruno@clisp.org>
84477
84478         * modules/minmax: New module.
84479         * MODULES.html.sh (func_all_modules): Add it.
84480
84481 2003-01-23  Bruno Haible  <bruno@clisp.org>
84482
84483         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84484         Eggert.
84485
84486 2003-01-22  Bruno Haible  <bruno@clisp.org>
84487
84488         * modules/exit: New module.
84489         * MODULES.html.sh (func_all_modules): Add it.
84490
84491 2003-01-22  Bruno Haible  <bruno@clisp.org>
84492
84493         * lib/exit.h: New file, from GNU gettext.
84494
84495 2003-01-19  Bruno Haible  <bruno@clisp.org>
84496
84497         * gnulib-tool: Recognize option --extract-maintainer.
84498         (func_get_maintainer): New function.
84499         * modules/*: Add Maintainer entry.
84500
84501 2003-01-16  Jim Meyering  <jim@meyering.net>
84502
84503         * m4/regex.m4: The `regex' struct is both input and output.
84504         Initialize it before each use.  Patch by Tim Waugh.
84505
84506 2003-01-16  Bruno Haible  <bruno@clisp.org>
84507
84508         * MODULES.html.sh: Add a table of contents. Add the module name as
84509         leftmost column. Add hyperlinks.
84510
84511 2003-01-15  Bruno Haible  <bruno@clisp.org>
84512
84513         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84514
84515 2003-01-15  Bruno Haible  <bruno@clisp.org>
84516
84517         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84518         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84519         suffix.
84520
84521 2003-01-15  Bruno Haible  <bruno@clisp.org>
84522
84523         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84524
84525 2003-01-15  Bruno Haible  <bruno@clisp.org>
84526
84527         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84528         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84529
84530 2003-01-14  Jim Meyering  <jim@meyering.net>
84531
84532         * lib/same.c (same_name): Tweak a comment.
84533
84534 2003-01-14  Bruno Haible  <bruno@clisp.org>
84535
84536         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84537         when a string comparison is sufficient.
84538
84539 2003-01-14  Bruno Haible  <bruno@clisp.org>
84540
84541         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84542         'unsigned int'.
84543
84544 2003-01-14  Bruno Haible  <bruno@clisp.org>
84545
84546         * lib/hash-pjw.c: Add comment about low quality of this function.
84547
84548 2003-01-13  Bruno Haible  <bruno@clisp.org>
84549
84550         * modules/stpcpy: Distribute lib/stpcpy.h.
84551         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84552
84553 2003-01-13  Bruno Haible  <bruno@clisp.org>
84554
84555         * modules/*: Add a description.
84556         * modules/strpbrk: Fix Makefile.am snippet.
84557         * modules/strtoimax: Fix dependencies.
84558         * modules/strtoumax: Likewise.
84559
84560 2003-01-13  Bruno Haible  <bruno@clisp.org>
84561
84562         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84563         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84564         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84565
84566 2003-01-13  Bruno Haible  <bruno@clisp.org>
84567
84568         * gnulib-tool (func_create_testdir): Store config/* files in the main
84569         directory.
84570         * config.rpath: Move to ...
84571         * config/config.rpath: ... here.
84572         * modules/gettext: Contains config/config.rpath, not config.rpath.
84573         * modules/iconv: Likewise.
84574
84575 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84576
84577         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84578         to avoid collisions with libcurses and libreadline.
84579
84580         * m4/getstr.m4: Remove.
84581         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84582
84583 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84584
84585         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84586         to avoid collisions with libcurses and libreadline.
84587
84588         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84589         * lib/getstr.h, getstr.c: Remove.
84590         * lib/getline.c: Include "getline.h", to check interface.
84591         Move body of old getstr.c here: this defines MIN_CHUNK and
84592         declares getdelim2, which is renamed from getstr.
84593         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84594
84595         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84596         All uses changed.
84597         * lib/linebuffer.h: Likewise.
84598         (readline): Remove backward-compatibility macro.
84599
84600 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84601
84602         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84603         to avoid collisions with libcurses and libreadline.
84604         * getstr: Remove.
84605         * MODULES.html.sh: Remove getstr.
84606         * modules/getline: Depend on unlocked-io, not getstr.
84607
84608 2003-01-12  Jim Meyering  <jim@meyering.net>
84609
84610         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84611
84612 2003-01-10  Bruno Haible  <bruno@clisp.org>
84613
84614         * modules/alloca: Change Makefile.am requirements. Simplify Include
84615         requirements. Add lib/alloca_.h to file list.
84616
84617 2003-01-10  Bruno Haible  <bruno@clisp.org>
84618
84619         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84620
84621 2003-01-10  Bruno Haible  <bruno@clisp.org>
84622
84623         * lib/alloca_.h: New file.
84624         * lib/getdate.y: Unconditionally include alloca.h.
84625         * lib/makepath.c: Likewise.
84626         * lib/setenv.c: Likewise.
84627         * lib/userspec.c: Likewise.
84628
84629 2003-01-09  Karl Berry  <karl@gnu.org>
84630
84631         * MODULES.html.sh: include `dirname $0` in PATH, to find
84632         gnulib-tool.
84633
84634 2003-01-09  Bruno Haible  <bruno@clisp.org>
84635
84636         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84637         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84638
84639 2003-01-09  Bruno Haible  <bruno@clisp.org>
84640
84641         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84642
84643 2003-01-09  Bruno Haible  <bruno@clisp.org>
84644
84645         * lib/stdbool.h.in: New file.
84646
84647 2003-01-09  Bruno Haible  <bruno@clisp.org>
84648
84649         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84650         * MODULES.html.sh: Likewise.
84651
84652 2003-01-08  Jim Meyering  <jim@meyering.net>
84653
84654         * lib/full-write.c: Undefine and define-away `const' after inclusion
84655         of errno.h, not before.  Suggestion from Bruno Haible.
84656
84657 2003-01-08  Bruno Haible  <bruno@clisp.org>
84658
84659         * modules/full-read: Depend on full-write.
84660
84661 2003-01-08  Bruno Haible  <bruno@clisp.org>
84662
84663         * lib/safe-read.c: Include specification header first, to ensure its
84664         selfcontainedness.
84665         * lib/full-write.c: Likewise.
84666
84667 2003-01-07  Jim Meyering  <jim@meyering.net>
84668
84669         * lib/full-write.c: Rework so that it may serve to define full_read,
84670         too.
84671         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84672
84673 2003-01-07  Bruno Haible  <bruno@clisp.org>
84674
84675         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84676         <inttypes.h>.
84677         * lib/xstrtol.h: Likewise.
84678         * lib/xstrtoimax.c: Likewise.
84679         * lib/xstrtoumax.c: Likewise.
84680         * lib/human.h: Likewise.
84681
84682         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84683         on systems that have <inttypes.h> but not <stdint.h>.
84684
84685 2003-01-07  Bruno Haible  <bruno@clisp.org>
84686
84687         * MODULES.html.sh: Add copyright notice.
84688         (missed_files): Omit CVS directory entries.
84689         (func_module): Make it work with sed-3.02.
84690         * MODULES.txt: Remove file.
84691
84692 2003-01-06  Jim Meyering  <jim@meyering.net>
84693
84694         * lib/version-etc.c: Update year in translatable copyright string.
84695
84696 2003-01-03  Karl Berry  <karl@gnu.org>
84697
84698         * config/config.{guess,sub}: update from prep.
84699
84700 2003-01-02  Karl Berry  <karl@gnu.org>
84701
84702         * doc/COPYING.DOC: belatedly updated to 1.2.
84703
84704 2003-01-01  Karl Berry  <karl@gnu.org>
84705
84706         * gnulib-tool (func_verify_module): report module name $module in
84707         error message, not $1.
84708         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84709         be created, only if it doesn't exist.
84710         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84711
84712 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84713
84714         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84715
84716 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84717
84718         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84719         memcmp if strcoll doesn't work.
84720
84721 2002-12-31  Bruno Haible  <bruno@clisp.org>
84722
84723         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84724         nonempty.
84725
84726 2002-12-31  Bruno Haible  <bruno@clisp.org>
84727
84728         * lib/memcoll.c (STRCOLL): New macro.
84729         (memcoll): Use it.
84730
84731 2002-12-31  Bruno Haible  <bruno@clisp.org>
84732
84733         * lib/localcharset.h: New file.
84734         * lib/localcharset.c: Include it.
84735         * lib/unicodeio.c: Likewise.
84736
84737 2002-12-31  Bruno Haible  <bruno@clisp.org>
84738
84739         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84740         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84741
84742 2002-12-31  Bruno Haible  <bruno@clisp.org>
84743
84744         * lib/getline.h: Include <stddef.h>, for size_t.
84745
84746         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84747         * lib/unicodeio.c: Don't include <stddef.h>.
84748
84749 2002-12-31  Bruno Haible  <bruno@clisp.org>
84750
84751         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84752         HAVE_TM_ZONE.
84753
84754 2002-12-24  Karl Berry  <karl@gnu.org>
84755
84756         * config/config.guess: update from prep.
84757
84758 2002-12-24  Bruno Haible  <bruno@clisp.org>
84759
84760         General infrasructure.
84761         * m4/README: Rewritten.
84762         * m4/onceonly.m4: New file.
84763         * m4/onceonly_2_57.m4: New file.
84764
84765         Module atexit.
84766         * m4/atexit.m4: New file.
84767
84768         Module strtod.
84769         * m4/strtod.m4: New file.
84770
84771         Module strtol.
84772         * m4/strtol.m4: New file.
84773
84774         Module strtoul.
84775         * m4/strtoul.m4: New file.
84776
84777         Module memchr.
84778         * m4/memchr.m4: New file.
84779
84780         Module memcmp.
84781         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84782         (jm_FUNC_MEMCMP): Invoke it.
84783
84784         Module memcpy.
84785         * m4/memcpy.m4: New file.
84786
84787         Module memmove.
84788         * m4/memmove.m4: New file.
84789
84790         Module memset.
84791         * m4/memset.m4: New file.
84792
84793         Module strcspn.
84794         * m4/strcspn.m4: New file.
84795
84796         Module strpbrk.
84797         * m4/strpbrk.m4: New file.
84798
84799         Module strstr.
84800         * m4/strstr.m4: New file.
84801
84802         Module strerror.
84803         * m4/strerror.m4: New file.
84804
84805         Module mktime.
84806         * m4/mktime.m4: Renamed from jm-mktime.m4.
84807         (gl_PREREQ_MKTIME): New macro.
84808         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84809
84810         Module malloc.
84811         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84812         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84813         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84814
84815         Module realloc.
84816         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84817         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84818         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84819
84820         Module strftime.
84821         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84822         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84823         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84824         gl_TM_GMTOFF.
84825         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84826
84827         Module xalloc.
84828         * m4/xalloc.m4: New file.
84829
84830         Module alloca.
84831         * m4/alloca.m4: New file.
84832
84833         Module putenv.
84834         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84835         (jm_FUNC_PUTENV): Invoke it.
84836
84837         Module setenv.
84838         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84839         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84840         when invoked twice.
84841         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84842         gt_FUNC_SETENV.
84843
84844         Module memrchr.
84845         * m4/memrchr.m4: New file.
84846
84847         Module stpcpy.
84848         * m4/stpcpy.m4: New file.
84849
84850         Module strcase.
84851         * m4/strcase.m4: New file.
84852
84853         Module strdup.
84854         * m4/strdup.m4: New file.
84855
84856         Module strnlen.
84857         * m4/strnlen.m4: New file.
84858
84859         Module strndup.
84860         * m4/strndup.m4: New file.
84861
84862         Module xstrtod.
84863         * m4/xstrtod.m4: New file.
84864
84865         Module xstrtol.
84866         * m4/xstrtol.m4: New file.
84867
84868         Module getdate.
84869         * m4/getdate.m4: New file.
84870
84871         Module unlocked-io.
84872         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84873         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84874         * m4/jm-glibc-io.m4n: Remove file.
84875
84876         Module long-options.
84877         * m4/long-options.m4: New file.
84878
84879         Module md5.
84880         * m4/md5.m4: New file.
84881
84882         Module sha.
84883         * m4/sha.m4: New file.
84884
84885         Module getstr.
84886         * m4/getstr.m4: New file.
84887
84888         Module getline.
84889         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84890         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84891         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84892         simply getline. Infoke gl_PREREQ_GETLINE.
84893
84894         Module obstack.
84895         * m4/obstack.m4: New file.
84896
84897         Module hash.
84898         * m4/hash.m4: New file.
84899
84900         Module readtokens.
84901         * m4/readtokens.m4: New file.
84902
84903         Module strverscmp.
84904         * m4/strverscmp.m4: New file.
84905
84906         Module stdbool.
84907         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84908         OSF/1.
84909
84910         Module strtoll.
84911         * m4/strtoll.m4: New file.
84912
84913         Module strtoull.
84914         * m4/strtoull.m4: New file.
84915
84916         Module strtoimax.
84917         * m4/strtoimax.m4: New file.
84918
84919         Module strtoumax.
84920         * m4/strtoumax.m4: New file.
84921
84922         Module xstrtoimax.
84923         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84924         jm_AC_PREREQ_XSTRTOIMAX.
84925         Moved the strtol prerequisites to strtol.m4.
84926         Moved the strtoll prerequisites to strtoll.m4.
84927         Moved the strtoimax prerequisites to strtoimax.m4.
84928
84929         Module xstrtoumax.
84930         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84931         jm_AC_PREREQ_XSTRTOUMAX.
84932         Moved the strtoul prerequisites to strtoul.m4.
84933         Moved the strtoull prerequisites to strtoull.m4.
84934         Moved the strtoumax prerequisites to strtoumax.m4.
84935
84936         Module chown.
84937         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84938         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84939
84940         Module dup2.
84941         * m4/dup2.m4: New file.
84942
84943         Module ftruncate.
84944         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84945         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84946
84947         Module getgroups.
84948         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84949         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84950
84951         Module gettimeofday.
84952         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84953         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84954         gl_PREREQ_GETTIMEOFDAY.
84955
84956         Module mkdir.
84957         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84958         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84959
84960         Module mkstemp.
84961         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84962         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84963         jm_AC_TYPE_UINTMAX_T.
84964         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84965
84966         Module stat.
84967         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84968         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84969
84970         Module lstat.
84971         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84972         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84973
84974         Module timespec.
84975         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84976         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84977         * m4/st_mtim.m4: Indentation.
84978
84979         Module nanosleep.
84980         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84981         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84982         gl_PREREQ_NANOSLEEP.
84983
84984         Module regex.
84985         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84986         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84987         (gl_REGEX): New macro.
84988
84989         Module rename.
84990         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84991         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84992
84993         Module rmdir.
84994         * m4/rmdir.m4: New file.
84995
84996         Module utime.
84997         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84998         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84999         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85000
85001         Module dirname.
85002         * m4/dirname.m4: New file.
85003
85004         Module getopt.
85005         * m4/getopt.m4: New file.
85006
85007         Module unistd-safer.
85008         * m4/unistd-safer.m4: New file.
85009
85010         Module fnmatch.
85011         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85012         declaration.
85013         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85014         (gl_FUNC_FNMATCH_POSIX): New macro.
85015         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85016         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85017         simply fnmatch.
85018
85019         Module exclude.
85020         * m4/exclude.m4: New file.
85021
85022         Module human.
85023         * m4/human.m4: New file.
85024
85025         Module acl.
85026         * m4/acl.m4: Nop.
85027
85028         Module backupfile.
85029         * m4/backupfile.m4: New file.
85030         * m4/d-ino.m4: Indentation.
85031
85032         Module fsusage.
85033         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85034         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85035         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85036
85037         Module dirfd.
85038         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85039         requirements.
85040
85041         Module euidaccess.
85042         * m4/euidaccess.m4: New file.
85043
85044         Module file-type.
85045         * m4/file-type.m4: New file.
85046
85047         Module fileblocks.
85048         * m4/fileblocks.m4: New file.
85049
85050         Module filemode.
85051         * m4/filemode.m4: New file.
85052
85053         Module isdir.
85054         * m4/isdir.m4: New file.
85055
85056         Module lchown.
85057         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85058         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85059
85060         Module makepath.
85061         * m4/makepath.m4: New file.
85062
85063         Module modechange.
85064         * m4/modechange.m4: New file.
85065
85066         Module mountlist.
85067         * m4/mountlist.m4: New file.
85068         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85069         Indentation.
85070
85071         Module path-concat.
85072         * m4/path-concat.m4: New file.
85073
85074         Module pathmax.
85075         * m4/pathmax.m4: New file.
85076
85077         Module same.
85078         * m4/same.m4: New file.
85079
85080         Module save-cwd.
85081         * m4/save-cwd.m4: New file.
85082
85083         Module savedir.
85084         * m4/savedir.m4: New file.
85085
85086         Module xgetcwd.
85087         * m4/xgetcwd.m4: New file.
85088         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85089
85090         Module xreadlink.
85091         * m4/xreadlink.m4: New file.
85092
85093         Module safe-read.
85094         * m4/safe-read.m4: New file.
85095
85096         Module safe-write.
85097         * m4/safe-write.m4: New file.
85098
85099         Module closeout.
85100         * m4/closeout.m4: New file.
85101
85102         Module stdio-safer.
85103         * m4/stdio-safer.m4: New file.
85104
85105         Module getpass.
85106         * m4/getpass.m4: New file.
85107
85108         Module getugroups.
85109         * m4/getugroups.m4: New file.
85110
85111         Module group-member.
85112         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85113         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85114
85115         Module idcache.
85116         * m4/idcache.m4: New file.
85117
85118         Module userspec.
85119         * m4/userspec.m4: New file.
85120
85121         Module gettime.
85122         * m4/clock_time.m4: New file.
85123         * m4/gettime.m4: New file.
85124
85125         Module settime.
85126         * m4/settime.m4: New file.
85127
85128         Module posixtm.
85129         * m4/posixtm.m4: New file.
85130
85131         Module gethostname.
85132         * m4/gethostname.m4: New file.
85133
85134         Module canon-host.
85135         * m4/canon-host.m4: New file.
85136
85137         Module gettext.
85138         * m4/codeset.m4: New file, from gettext-0.11.5.
85139         * m4/gettext.m4: New file, from gettext-0.11.5.
85140         * m4/glibc21.m4: New file, from gettext-0.11.5.
85141         * m4/iconv.m4: New file, from gettext-0.11.5.
85142         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85143         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85144         * m4/inttypes.m4: New file, from gettext-0.11.5.
85145         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85146         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85147         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85148         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85149         * m4/lib-link.m4: New file, from gettext-0.11.5.
85150         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85151         * m4/progtest.m4: New file, from gettext-0.11.5.
85152         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85153         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85154         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85155
85156         Module localcharset.
85157         * m4/localcharset.m4: New file.
85158
85159         Module hard-locale.
85160         * m4/hard-locale.m4: New file.
85161
85162         Module mbswidth.
85163         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85164         onceonly macros.
85165         * m4/mbrtowc.m4: Add comment.
85166
85167         Module memcasecmp.
85168         * m4/memcasecmp.m4: New file.
85169
85170         Module memcoll.
85171         * m4/memcoll.m4: New file.
85172
85173         Module unicodeio.
85174         * m4/unicodeio.m4: New file.
85175
85176         Module rpmatch.
85177         * m4/rpmatch.m4: New file.
85178
85179         Module yesno.
85180         * m4/yesno.m4: New file.
85181
85182         Module exitfail.
85183         * m4/exitfail.m4: New file.
85184
85185         Module c-stack.
85186         * m4/c-stack.m4 (gl_C_STACK): New macro.
85187         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85188
85189         Module error.
85190         * m4/error.m4 (gl_ERROR): New macro.
85191         (jm_PREREQ_ERROR): Use onceonly macros.
85192
85193         Module fatal.
85194         * m4/fatal.m4: New file.
85195
85196         Module getloadavg.
85197         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85198         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85199
85200         Module getpagesize.
85201         * m4/getpagesize.m4: New file.
85202
85203         Module getusershell.
85204         * m4/getusershell.m4: New file.
85205
85206         Module physmem.
85207         * m4/physmem.m4: New file.
85208
85209         Module posixver.
85210         * m4/posixver.m4: New file.
85211
85212         Module quotearg.
85213         * m4/quotearg.m4: New file.
85214
85215         Module quote.
85216         * m4/quote.m4: New file.
85217
85218         Module readutmp.
85219         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85220
85221         Module sig2str.
85222         * m4/sig2str.m4: New file.
85223
85224         Other.
85225         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85226         ulonglong.m4.
85227         * m4/intmax_t.m4: New file.
85228         * m4/d-type.m4: Indentation.
85229         * m4/jm-macros.m4: Update.
85230         * m4/prereq.m4 (jm_PREREQ): Update.
85231         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85232         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85233         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85234         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85235         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85236         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85237         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85238         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85239         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85240         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85241         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85242         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85243         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85244         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85245         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85246         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85247         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85248         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85249         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85250
85251 2002-12-24  Bruno Haible  <bruno@clisp.org>
85252
85253         * MODULES.txt: Update according to m4/ changes.
85254
85255         Module gettext.
85256         * config.rpath: New file, from gettext-0.11.5.
85257
85258         * modules/*: New module descriptions.
85259         * gnulib-tool: New file.
85260         * MODULES.html.sh: New file.
85261
85262 2002-12-21  Karl Berry  <karl@gnu.org>
85263
85264         * doc/fdl.texi: update to version 1.2.
85265
85266 2002-12-19  Karl Berry  <karl@gnu.org>
85267
85268         * config/config.guess: update from prep.
85269
85270 2002-12-18  Bruno Haible  <bruno@clisp.org>
85271
85272         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85273         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85274
85275 2002-12-17  Bruno Haible  <bruno@clisp.org>
85276
85277         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85278         stdlib.h, string.h.
85279
85280 2002-12-17  Bruno Haible  <bruno@clisp.org>
85281
85282         * lib/canon-host.c (strdup): Remove unused declaration.
85283
85284         * lib/fsusage.c: Include full_read.h.
85285         (get_fs_usage): Use full_read instead of safe_read.
85286
85287         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85288
85289 2002-12-12  Karl Berry  <karl@gnu.org>
85290
85291         * config/config.guess: update from prep.
85292
85293 2002-12-11  Bruno Haible  <bruno@clisp.org>
85294
85295         * m4/setenv.m4: New file, from gettext-0.11.5.
85296
85297 2002-12-11  Bruno Haible  <bruno@clisp.org>
85298
85299         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85300         not unsetenv().
85301         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85302         modifications:
85303
85304         2002-12-11  Bruno Haible  <bruno@clisp.org>
85305
85306                 * setenv.c (alloca): Fall back to malloc.
85307                 (freea): New macro.
85308                 (setenv): Use freea() to free memory allocated with alloca().
85309
85310         2002-11-13  Bruno Haible  <bruno@clisp.org>
85311
85312                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85313                 function declarations.
85314                 * unsetenv.c (unsetenv): Likewise.
85315
85316         2002-03-04  Bruno Haible  <bruno@clisp.org>
85317
85318                 Portability to AIX 4.3.3.
85319                 * unsetenv.c: New file, extracted from setenv.c.
85320                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85321
85322         2001-12-20  Bruno Haible  <bruno@clisp.org>
85323
85324                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85325                 use malloc instead. For SunOS 4.
85326
85327         2001-12-11  Bruno Haible  <bruno@clisp.org>
85328
85329                 * setenv.c: Declare alloca.
85330                 (compar_fn_t): New typedef.
85331                 (KNOWN_VALUE, STORE_VALUE): Use it.
85332
85333         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85334         setenv.h.
85335
85336 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85337
85338         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85339         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85340         Choose values that are less likely to collide with system fnmatch
85341         options.
85342         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85343         defined (e.g., a pure POSIX system).
85344         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85345         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85346
85347 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85348
85349         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85350         a pain in practice to deal with generated m4 files.  This change
85351         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85352
85353         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85354         and jm-glibc-io.m4, as they are no longer a special case.
85355         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85356         kludge and the auto-generation stuff.  Check only whether the
85357         functions are declared, not whether they exist, since older hosts
85358         that don't declare the functions can't use the optimization anyway.
85359
85360 2002-12-06  Jim Meyering  <jim@meyering.net>
85361
85362         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85363
85364         Merge in changes from libc's misc/error.c, in preparation
85365         for the merge of gnulib's changes back into libc.
85366
85367         * lib/error.c (_): Define only if not already defined.
85368         Move definition to follow all #include directives.
85369         Include unlocked-io.h only if !_LIBC.
85370         [_LIBC]: Include <libio/libioP.h>.
85371         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85372         (fflush): Tweak definition to use INTUSE.
85373         (putc): Define.
85374
85375 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85376
85377         * lib/alloca.c [defined emacs]: Include "lisp.h".
85378         (xalloc_die) [defined emacs]: New macro.
85379         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85380         [! defined emacs]: Include <xalloc.h>.
85381         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85382         (pointer): Typedef to POINTER_TYPE *.
85383         (malloc): Remove decl; we now always use xmalloc.
85384         (alloca): Use old-style definition, since Emacs needs this.
85385         Check for arithmetic overflow when computing combined size.
85386
85387 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85388
85389         Do not generate unlocked-io.h automatically, since it's easier to
85390         maintain it by hand.
85391
85392         * lib/unlocked-io.h: New file, from GNU diffutils,
85393         but with proper copyright notice and attribution.
85394         * lib/gen-uio: Remove.
85395         * lib/Makefile.am: Add copyright notice.
85396         (libfetish_a_SOURCES): Add unlocked-io.h.
85397         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85398         (DISTCLEANFILES, io_functions): Remove macros.
85399         (EXTRA_DIST): Remove gen_uio.
85400         (unlocked-io.h): Remove rule.
85401
85402 2002-12-04  Jim Meyering  <jim@meyering.net>
85403
85404         Reflect the fact that stat.c and lstat.c are no longer generated.
85405         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85406         (DISTCLEANFILES): Likewise.
85407         (EXTRA_DIST): Likewise.
85408         (all_local): Don't depend on stat.c or lstat.c.
85409         (stat.c, lstat.c): Remove rules.
85410         (EXTRA_DIST): Remove xstat.in.
85411
85412         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85413         * lib/stat.c: New file.  Contents mostly from xstat.in.
85414         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85415         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85416
85417         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85418         too.
85419         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85420
85421 2002-12-03  Jim Meyering  <jim@meyering.net>
85422
85423         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85424         but not semantics, to minimize the differences between these two files.
85425         (safe_read): Change comment to mention SAFE_READ_ERROR.
85426
85427         * lib/safe-read.c (IS_EINTR): Define.
85428         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85429
85430 2002-12-02  Jim Meyering  <jim@meyering.net>
85431
85432         * lib/safe-read.c (EINTR): Define.
85433         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85434         (INT_MAX): Provide fallback.
85435         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85436
85437         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85438
85439 2002-12-02  Bruno Haible  <bruno@clisp.org>
85440
85441         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85442         Define, taken from safe-read.c.
85443         (INT_MAX): Provide fallback.
85444         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85445         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85446
85447         * lib/safe-read.c (EINTR): Remove definition.
85448         (safe_read): Don't use EINTR if it is absent.
85449
85450 2002-12-01  Jim Meyering  <jim@meyering.net>
85451
85452         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85453         zero.
85454         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85455
85456 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85457
85458         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85459         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85460         with `if (! (value < limit)) abort ();', for readability.
85461
85462 2002-11-26  Karl Berry  <karl@gnu.org>
85463
85464         * lib/strdup.c: copy from libc again, with jim's ok.
85465         * lib/.cppi-disable: re-add strdup.c
85466
85467 2002-11-25  Karl Berry  <karl@gnu.org>
85468
85469         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85470         instead of "strtol.c".
85471
85472 2002-11-25  Karl Berry  <karl@gnu.org>
85473
85474         * config/install-sh: update from automake for variable quoting, $0 in
85475         error msgs, etc.
85476
85477         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85478         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85479         entry.
85480
85481 2002-11-25  Jim Meyering  <jim@meyering.net>
85482
85483         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85484
85485 2002-11-24  Karl Berry  <karl@gnu.org>
85486
85487         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85488         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85489
85490 2002-11-24  Jim Meyering  <jim@meyering.net>
85491
85492         Update from coreutils:
85493
85494         * lib/mktime.c: Merge in changes from libc.
85495
85496         Avoid a link-time failure on some Linux systems.
85497         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85498         (otherwise).
85499         (__mon_yday): Declare with the STATIC attribute.
85500         (__mktime_internal): Likewise.
85501         Based on a report from Greg Schafer.
85502
85503 2002-11-23  Jim Meyering  <jim@meyering.net>
85504
85505         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85506         Use `unsigned', not `int', as type of index.
85507
85508         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85509
85510         * lib/fsusage.c: Remove unneeded parentheses around operands of
85511         `defined'.
85512
85513 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85514
85515         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85516         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85517         so that we can be included first.
85518         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85519         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85520         No need to include stddef.h or sys/types.h any more.
85521         Surround local include files with "", not "<>".
85522         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85523         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85524         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85525         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85526         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85527         (ISPRINT): Remove; no longer needed now that we assume C89.
85528
85529         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85530         Preserve errno.
85531
85532         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85533         quotearg_char): Use SIZE_MAX rather than
85534         (size_t) -1 when we are talking about "infinity".
85535
85536         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85537
85538 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85539
85540         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85541         hint that one should use `if (! x) abort ();' rather than `assert
85542         (x);', and anyway it's one less thing to worry about configuring.
85543         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85544         hash_rehash, hash_insert): Use abort rather than assert.
85545
85546 2002-11-22  Bruno Haible  <bruno@clisp.org>
85547
85548         * lib/safe-read.h: Assume C89. Add comments.
85549         (safe_read): Change return type to size_t.
85550         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85551         byte counts > SSIZE_MAX correctly.
85552         * lib/safe-write.h: New file.
85553         * lib/safe-write.c: New file.
85554         * lib/full-read.h: New file.
85555         * lib/full-read.c: New file.
85556         * lib/full-write.h: Assume C89. Add comments.
85557         * lib/full-write.c: Include safe-write.h.
85558         (full_write): Rewritten to use safe_write.
85559         Suggested by Jim Meyering and Paul Eggert.
85560
85561 2002-11-21  Jim Meyering  <jim@meyering.net>
85562
85563         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85564
85565         Merge in changes from the coreutils.
85566
85567         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85568         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85569         <stdint.h>.
85570         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85571         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85572         int.  Work more efficiently if X is the same width as uintmax_t.
85573         Do not compare X to -1, to avoid bogus compiler warning.
85574         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85575         Don't assume that f_frsize and f_bsize are the same type.
85576
85577         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85578         warning on FreeBSD.
85579
85580         * lib/makepath.c (make_path): Restore umask *before* creating the final
85581         component.
85582         (make_path): Minor reformatting.
85583
85584         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85585         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85586         HAVE_MALLOC/HAVE_REALLOC.
85587
85588         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85589         dummy ones.  At least on GNU/Linux systems, `auto' means something
85590         else.
85591         From Michael Stone.
85592
85593 2002-11-21  Bruno Haible  <bruno@clisp.org>
85594
85595         Remove case insensitive option matching.
85596         * lib/argmatch.h (argcasematch): Remove declaration.
85597         (ARGCASEMATCH): Remove macro.
85598         (__xargmatch_internal): Remove case_sensitive argument.
85599         (XARGMATCH): Update.
85600         (XARGCASEMATCH): Remove macro.
85601         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85602         case_sensitive argument.
85603         (argcasematch): Remove function.
85604         (__xargmatch_internal): Remove case_sensitive argument.
85605         (main): Use XARGMATCH instead of XARGCASEMATCH.
85606
85607         * lib/xmalloc.c: Change compile-time error message. Add comment about
85608         required autoconf version.
85609
85610 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85611
85612         Merge argmatch cleanups from Bison.  Assume C89.
85613
85614         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85615         Include stdlib.h, for EXIT_FAILURE.
85616         Always include <string.h>, since we assume C89.
85617         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85618         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85619         Include <stddef.h> instead, since it's all we need for size_t.
85620         (PARAMS): Remove.  All uses removed.
85621         (ARRAY_CARDINALITY): Do not bother to #undef.
85622         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85623         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85624         Remove unnecessary parentheses.
85625         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85626         Insert necessary parentheses.
85627         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85628         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85629
85630 2002-11-19  Bruno Haible  <bruno@clisp.org>
85631
85632         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85633         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85634
85635         * lib/mbswidth.h (PARAMS): Remove macro.
85636         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85637         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85638
85639         * lib/gcd.h (PARAMS): Remove macro.
85640         (gcd): Use ANSI C function declarations.
85641         * lib/gcd.c (gcd): Likewise.
85642
85643 2002-11-15  Bruno Haible  <bruno@clisp.org>
85644
85645         * lib/strcspn.c: Include <stddef.h>.
85646         (strcspn): Use ANSI C function declaration. Change return type to
85647         size_t. Use NULL.
85648         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85649         (strpbrk): Use NULL.
85650         * lib/strpbrk.h (PARAMS): Remove macro.
85651         (strpbrk): Use ANSI C function declaration.
85652         * lib/strstr.c: Don't include <sys/types.h>.
85653         * lib/strstr.h (PARAMS): Remove macro.
85654         (strstr): Use ANSI C function declarations.
85655
85656 2002-11-14  Karl Berry  <karl@gnu.org>
85657
85658         * config/mkinstalldirs: `do' on separate line, instead of
85659         `for var; do'.
85660
85661 2002-11-06  Bruno Haible  <bruno@clisp.org>
85662
85663         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85664         * lib/gcd.c (gcd): Likewise.
85665
85666 2002-11-05  Bruno Haible  <bruno@clisp.org>
85667
85668         * lib/gcd.h: New file, from gettext-0.11.5.
85669         * lib/gcd.c: New file, from gettext-0.11.5.
85670
85671 2002-11-05  Bruno Haible  <bruno@clisp.org>
85672
85673         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85674         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85675         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85676         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85677
85678         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85679         <libintl.h>.
85680         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85681         <libintl.h>.
85682
85683         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85684         * lib/human.c: Include gettext.h instead of <libintl.h>.
85685         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85686         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85687         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85688         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85689         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85690         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85691         (textdomain): Remove definition.
85692         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85693
85694         * lib/long-options.c: Remove include of <libintl.h> and definition of
85695         _.
85696         * lib/same.c: Remove include of <libintl.h> and definition of _.
85697
85698 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85699
85700         * lib/config.charset: A few additions for Solaris.
85701
85702 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85703
85704         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85705         * lib/localcharset.c (locale_charset): Declare as extern "C".
85706
85707 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85708
85709         * lib/config.charset: msdos in uk_UA uses CP1125.
85710
85711 2002-11-04  Bruno Haible  <bruno@clisp.org>
85712
85713         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85714         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85715         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85716         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85717         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85718
85719 2002-11-04  Bruno Haible  <bruno@clisp.org>
85720
85721         * lib/localcharset.c (locale_charset): Don't return an empty string.
85722
85723 2002-11-04  Bruno Haible  <bruno@clisp.org>
85724
85725         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85726         aliases.
85727
85728 2002-11-04  Bruno Haible  <bruno@clisp.org>
85729
85730         * lib/config.charset: Update for newest glibc. Add canonical names
85731         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85732
85733 2002-11-04  Bruno Haible  <bruno@clisp.org>
85734
85735         * lib/config.charset: Add support for NetBSD.
85736
85737 2002-11-04  Bruno Haible  <bruno@clisp.org>
85738
85739         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85740
85741 2002-11-01  Bruno Haible  <bruno@clisp.org>
85742
85743         * configure.in: Add AC_CONFIG_AUX_DIR call.
85744         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85745         test/Makefile.
85746         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85747
85748 2002-09-28  Karl Berry  <karl@gnu.org>
85749
85750         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85751         installed automake until the next release, since changes have been
85752         made.
85753
85754 2002-09-25  Karl Berry  <karl@gnu.org>
85755
85756         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85757         * lib/getopt*: copy from libc/posix.
85758         * lib/gettext.h: copy from gettext.
85759         * lib/.cppi-disable: add strdup.c, gettext.h.
85760
85761 2002-09-25  Karl Berry  <karl@gnu.org>
85762
85763         * config/srclist.txt: enable gettext.h check.
85764         * config/config.{guess,sub}: update from prep.
85765         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85766                 from automake 1.6.3.
85767         See srclist*.
85768
85769 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85770
85771         * regex.c (PATFETCH): Remove the translating fetch.
85772         (PATFETCH_RAW): Rename to PATFETCH.
85773         (set_image_of_range): New fun.
85774         (SET_RANGE_TABLE_WORK_AREA): Use it.
85775         (regex_compile): Don't translate the pattern chars so eagerly.
85776         Only do it when inserting an `exactn' bytecode or when handling
85777         a char-range.
85778         (mutually_exclusive_p): Avoid empty statement.
85779
85780 2002-07-06  Jim Meyering  <meyering@lucent.com>
85781
85782         * m4/README: Don't mention Makefile.am.in.
85783         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85784
85785 2002-07-01  Jim Meyering  <meyering@lucent.com>
85786
85787         * lib/c-stack.c: Include sys/time.h.
85788         From Volker Borchert.
85789
85790 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85791
85792         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85793
85794 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85795
85796         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85797         New macro.  Use it uniformly instead of
85798         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85799         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85800         reported by Vin Shelton.
85801
85802 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85803
85804         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85805         Do not assume SA_SIGINFO behavior.
85806         Bug reported by Jim Meyering on NetBSD 1.5.2.
85807
85808 2002-06-22  Jim Meyering  <meyering@lucent.com>
85809
85810         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85811         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85812
85813         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85814         now that configure.ac uses AC_GNU_SOURCE.
85815         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85816         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85817
85818         Update to latest tools.  Suggestions from Paul Eggert.
85819         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85820         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85821         * m4/fnmatch.m4: Likewise.
85822         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85823         to AC_HEADER_STDBOOL
85824
85825 2002-06-22  Jim Meyering  <meyering@lucent.com>
85826
85827         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85828         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85829
85830 2002-06-22  Jim Meyering  <meyering@lucent.com>
85831
85832         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85833
85834         * lib/exitfail.c, exitfail.h: Likewise.
85835         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85836
85837         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85838         of fnmatch.h.
85839         (EXTRA_DIST): Add fnmatch_loop.c.
85840         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85841
85842         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85843         * lib/fnmatch.c: Update from diffutils-2.8.2.
85844         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85845         * lib/fnmatch.h: Remove file.
85846
85847 2002-06-21  Jim Meyering  <meyering@lucent.com>
85848
85849         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85850         * m4/mbrtowc.m4: Likewise.
85851
85852         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85853         * m4/mbswidth.m4: Reflect name change:
85854         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85855         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85856
85857         * m4/lib-link.m4: Update from gettext-0.11.2.
85858         * m4/gettext.m4: Likewise.
85859
85860         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85861         From Alfred M. Szmidt.
85862
85863 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85864
85865         * lib/file-type.h: Report an error if neither S_ISREG nor
85866         S_IFREG is defined, instead of using a test specific to glibc
85867         2.2.  This should be safe, since POSIX requires S_ISREG and
85868         Unix Version 7 had S_IFREG.  We don't need to check for
85869         <sys/types.h> since we don't use any symbols that it defines.
85870
85871 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85872
85873         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85874         $@-t, so that each temporary file name is unique and valid in the first
85875         8 characters, for operation under DOS.
85876
85877 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85878
85879         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85880
85881 2002-06-15  Jim Meyering  <meyering@lucent.com>
85882
85883         Work even with DJGPP 2.03, which lacks support for symlinks.
85884         From Richard Dawe.
85885         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85886         is defined.
85887         * lib/lchown.c (S_ISLNK): Likewise.
85888
85889 2002-06-15  Jim Meyering  <meyering@lucent.com>
85890
85891         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85892         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85893         have been included before this file.
85894
85895 2002-06-14  Jim Meyering  <meyering@lucent.com>
85896
85897         * lib/file-type.h: Use the version from diffutils-2.8.2.
85898         * lib/file-type.c: Likewise.
85899
85900 2002-06-07  Jim Meyering  <meyering@lucent.com>
85901
85902         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85903         They're needed at least for NetBSD 1.5.2.
85904         ($statxfs_includes): Include those same headers.
85905         ($statxfs_includes): Include sys/vfs.h if available.
85906         ($statxfs_includes): Likewise for sys/statvfs.h.
85907         Check for the following members in both structs statfs and statvfs:
85908         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85909
85910 2002-06-01  Jim Meyering  <meyering@lucent.com>
85911
85912         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85913         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85914
85915 2002-05-28  Jim Meyering  <meyering@lucent.com>
85916
85917         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85918         Reported by Volker Borchert.
85919
85920 2002-05-27  Jim Meyering  <meyering@lucent.com>
85921
85922         Fix a problem seen only on nonconforming systems whereby ls.c's
85923         use of localtime, and then of gettimeofday would cause trouble:
85924         the localtime call used to initialize rpl_gettimeofday's save
85925         mechanism would clobber ls's current local time information so
85926         that in any long listing the first file would always be listed
85927         with date 1970-01-01.  Analysis by Volker Borchert.
85928
85929         * lib/gettimeofday.c (localtime): Undefine.
85930         (rpl_localtime): New function.
85931
85932 2002-05-27  Jim Meyering  <meyering@lucent.com>
85933
85934         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85935         localtime.
85936
85937         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85938         use the replacement function; it wouldn't resolve at link time.
85939         Reported by Volker Borchert.
85940
85941 2002-05-22  Jim Meyering  <meyering@lucent.com>
85942
85943         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85944         file-type.h.
85945         * lib/file-type.h: New file.
85946         * lib/file-type.c (file_type): New file/function.  Extracted from
85947         diffutils.
85948
85949 2002-04-30  Jim Meyering  <meyering@lucent.com>
85950
85951         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85952
85953 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85954
85955         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85956
85957 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85958
85959         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85960         Do not check for alloca.h (no longer used) or stdbool.h (was never
85961         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85962
85963 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85964
85965         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85966
85967 2002-04-29  Jim Meyering  <meyering@lucent.com>
85968
85969         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85970         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85971         Use AC_FUNC_STRNLEN here instead.
85972
85973         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85974         With autoconf-2.53a, it's part of AC_PROG_CC.
85975
85976 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85977
85978         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85979         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85980
85981 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85982
85983         * lib/sig2str.h, lib/sig2str.c: New files.
85984         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85985
85986 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85987
85988         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85989         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85990         of 127, since 64 is the largest conceivable number for ancient
85991         nonstandard hosts.
85992         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85993
85994 2002-04-28  Jim Meyering  <meyering@lucent.com>
85995
85996         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85997
85998 2002-04-24  Jim Meyering  <meyering@lucent.com>
85999
86000         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86001         (jm_PREREQ): Use it.
86002
86003         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86004         mach/mach.h fcntl.h.
86005         Check for this function: setlocale.
86006
86007 2002-04-24  Jim Meyering  <meyering@lucent.com>
86008
86009         * lib/gettext.h: New file, from Gettext.
86010         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86011         (libfetish_a_SOURCES): Add gettext.h.
86012
86013 2002-04-16  Jim Meyering  <meyering@lucent.com>
86014
86015         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86016         ut_pid, ut_id, ut_exit.
86017
86018 2002-04-16  Jim Meyering  <meyering@lucent.com>
86019
86020         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86021         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86022         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86023
86024 2002-04-12  Jim Meyering  <meyering@lucent.com>
86025
86026         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86027         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86028         existence of the getmntinfo function.  Needed for Darwin 5.3.
86029
86030         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86031         This is necessary at least on Darwin 5.3.
86032
86033         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86034         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86035         strnlen.o in the library, and that makes some versions of ranlib
86036         object.
86037
86038 2002-04-12  Jim Meyering  <meyering@lucent.com>
86039
86040         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86041
86042 2002-04-09  Jim Meyering  <meyering@lucent.com>
86043
86044         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86045         to be more precise.  Rather than saying we're checking whether the
86046         function `works', say what we're testing.
86047         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86048         Reported by Bruno Haible.
86049
86050 2002-03-10  Jim Meyering  <meyering@lucent.com>
86051
86052         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86053         Suggestion from Santiago Vila.
86054
86055 2002-03-08  Jim Meyering  <meyering@lucent.com>
86056
86057         * lib/rename.c: Mention that this wrapper is needed also on
86058         mips-dec-ultrix4.4 systems.
86059
86060 2002-03-02  Jim Meyering  <meyering@lucent.com>
86061
86062         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86063         not HAVE_CLOCK_SETTIME.
86064
86065 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86066
86067         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86068         Check for clock_settime.
86069
86070 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86071
86072         * lib/nanosleep.h: Rename to....
86073         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86074
86075         * lib/gettime.c: New file.
86076         * lib/settime.c: New file.
86077         * lib/stime.c: Remove.
86078
86079         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86080         timespec.h.  Remove nanosleep.h.
86081
86082 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86083
86084         * m4/acl.m4: New file.
86085         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86086         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86087
86088 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86089
86090         * lib/acl.c, lib/acl.h: New files.
86091         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86092
86093 2002-02-24  Jim Meyering  <meyering@lucent.com>
86094
86095         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86096         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86097         cause trouble.  Reported by Nelson Beebe.
86098
86099 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86100
86101         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86102         compilers that don't know that xalloc_die never returns.
86103
86104 2002-02-20  Jim Meyering  <meyering@lucent.com>
86105
86106         * lib/getdate.c: Regenerate using bison-1.33.
86107
86108 2002-02-17  Jim Meyering  <meyering@lucent.com>
86109
86110         * config/config.guess (main): Don't use `head -1'; it's no longer
86111         portable. Use `sed 1q' instead.
86112
86113 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86114
86115         * m4/codeset.m4: Upgrade to gettext-0.11.
86116         * m4/gettext.m4: Upgrade to gettext-0.11.
86117         * m4/glibc21.m4: Upgrade to gettext-0.11.
86118         * m4/iconv.m4: Upgrade to gettext-0.11.
86119         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86120         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86121         * m4/lib-ld.m4: New file, from gettext-0.11.
86122         * m4/lib-link.m4: New file, from gettext-0.11.
86123         * m4/lib-prefix.m4: New file, from gettext-0.11.
86124         * m4/progtest.m4: Upgrade to gettext-0.11.
86125
86126 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86127
86128         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86129         (jm_PREREQ): Use it.
86130
86131 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86132
86133         * lib/posixver.c, lib/posixver.h: New files.
86134         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86135
86136 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86137             Bruno Haible  <bruno@clisp.org>
86138
86139         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86140         (fwrite_success_callback): New declaration.
86141         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86142         print_unicode_char. Call failure callback instead of error.
86143         (fwrite_success_callback): New function.
86144         (exit_failure_callback): New function.
86145         (fallback_failure_callback): New function.
86146         (print_unicode_char): Call unicode_to_mb.
86147
86148 2002-01-26  Jim Meyering  <meyering@lucent.com>
86149
86150         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86151         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86152
86153 2002-01-26  Jim Meyering  <meyering@lucent.com>
86154
86155         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86156
86157 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86158
86159         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86160
86161 2002-01-22  Jim Meyering  <meyering@lucent.com>
86162
86163         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86164         Otherwise, some versions of automake would omit the rule that makes
86165         Makefile from Makefile.in.
86166
86167 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86168
86169         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86170         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86171         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86172         (memcoll): Set errno to zero if there is no error.
86173
86174         * lib/quotearg.c (quotearg_buffer_restyled):
86175         Fix bug with quoting buffers containing NUL when backslashing escapes.
86176         This bug was exposed by the other changes in this patch.
86177         (quotearg_n_options): New arg ARGSIZE.
86178         All callers changed.
86179         (quoting_options_from_style): New function.
86180         (quotearg_n_style): Use it.
86181         (quotearg_n_style_mem): New function.
86182
86183         * lib/quotearg.h (quotearg_n_style_mem): New function.
86184
86185 2002-01-19  Jim Meyering  <meyering@lucent.com>
86186
86187         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86188         Remove useless quotes: DF_PROG="df".
86189         * m4/strnlen.m4: New file.
86190
86191 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86192
86193         * lib/backupfile.c (ISDIGIT): Comment fix.
86194         * lib/getdate.y (ISDIGIT): Likewise.
86195         * lib/posixtm.c (ISDIGIT, year): Likewise.
86196         * lib/strverscmp.c (ISDIGIT): Likewise.
86197         * lib/userspec.c (ISDIGIT): Likewise.
86198
86199 2002-01-16  Jim Meyering  <meyering@lucent.com>
86200
86201         * lib/getdate.y: Add three semicolons, each just before a closing
86202         brace. Bison (as of version 1.31) no longer papers over that mistake.
86203
86204 2002-01-05  Jim Meyering  <meyering@lucent.com>
86205
86206         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86207
86208 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86209
86210         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86211         not silently exit merely because the output buffer happens to
86212         have nothing pending.
86213
86214 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86215
86216         See the big note in ../ChangeLog.
86217         * lib/human.c (suffixes): Prefer K to k for 1024.
86218         (generate_suffix_backwards): New function.
86219         (human_readable_inexact): Use it.
86220         * lib/xstrtol.c (__xstrtol): If there is no number but there
86221         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86222         Accept 'K' as well as 'k'.
86223
86224 2001-12-15  Jim Meyering  <meyering@lucent.com>
86225
86226         * lib/regex.h (__restrict_arr): Update from libc.
86227
86228         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86229         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86230         (STREQ): Define.
86231
86232 2001-12-14  Jim Meyering  <meyering@lucent.com>
86233
86234         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86235         Suggestion from Bruno Haible.
86236
86237 2001-12-10  Jim Meyering  <meyering@lucent.com>
86238
86239         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86240         xrealloc, Instead, include "xalloc.h".
86241         (initbuffer): Don't cast xmalloc return value to char*.
86242         (readline): Reword comment.
86243         Don't cast xrealloc return value to char*
86244         Return NULL, not 0.
86245
86246 2001-12-09  Jim Meyering  <meyering@lucent.com>
86247
86248         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86249         about `signed and unsigned type in conditional expression'.
86250         * lib/posixtm.c (posix_time_parse): Likewise.
86251
86252         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86253
86254         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86255         to avoid a pedantic warning.
86256
86257         * lib/getstr.c: Don't include assert.h.
86258         (getstr): Remove warning-evoking assertions.
86259         Return -1 if offset parameter is out of bounds.
86260         Change the type of a local from int to size_t.
86261
86262         * lib/strftime.c (my_strftime_localtime_r): Include this function
86263         definition in the `#if ! HAVE_TM_GMTOFF' block.
86264
86265         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86266         Include xalloc.h instead.
86267
86268 2001-12-02  Jim Meyering  <meyering@lucent.com>
86269
86270         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86271         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86272         included.
86273
86274         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86275         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86276
86277 2001-11-30  Akim Demaille  <akim@epita.fr>
86278
86279         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86280         before being defined.
86281
86282 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86283
86284         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86285         First arg is int, not unsigned.
86286         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86287         (SIZE_MAX, UINT_MAX): New macros.
86288         (quotearg_n_options): Abort if N is negative.
86289         Avoid overflow check on hosts where size_t is 64 bits and int
86290         is 32 bits, as overflow is impossible there.
86291         Fix off-by-one typo that caused unnecessary reallocation.
86292
86293 2001-11-27  Jim Meyering  <meyering@lucent.com>
86294
86295         * lib/tempname.c: Merge with version from libc.
86296         * lib/regex.c: Likewise.
86297
86298         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86299         systems for which STDC_HEADERS is 0, it was not included, resulting in
86300         a warning about an integer-to-pointer conversion problem with getenv.
86301         Reported by Volker Borchert.
86302
86303 2001-11-26  Jim Meyering  <meyering@lucent.com>
86304
86305         * lib/gtod.h: Remove file.
86306         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86307         * lib/gettimeofday.c: Don't include gtod.h.
86308         (GTOD_init): Remove function.
86309         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86310         Suggestion from Volker Borchert.
86311
86312 2001-11-23  Jim Meyering  <meyering@lucent.com>
86313
86314         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86315         it.
86316         * lib/hash.c (struct hash_table): Define it here instead.
86317
86318 2001-11-22  Jim Meyering  <meyering@lucent.com>
86319
86320         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86321
86322 2001-11-20  Jim Meyering  <meyering@lucent.com>
86323
86324         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86325         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86326
86327 2001-11-19  Jim Meyering  <meyering@lucent.com>
86328
86329         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86330         directory.  Use "conftestXXXXXX" as the template.
86331         Suggestion from Paul Eggert.
86332
86333         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86334         immediately, so the test doesn't mistakenly hit the max-open-files
86335         limit.
86336
86337 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86338
86339         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86340         (TEMPORARIES): New macro.
86341         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86342         removes an artificial limitation (e.g. HP-UX 10.20, where
86343         TMP_MAX is 17576).
86344
86345 2001-11-18  Jim Meyering  <meyering@lucent.com>
86346
86347         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86348
86349 2001-11-18  Jim Meyering  <meyering@lucent.com>
86350
86351         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86352         on SunOS 4.
86353
86354         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86355         files will be created before anything else.
86356
86357 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86358
86359         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86360         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86361
86362 2001-11-17  Jim Meyering  <meyering@lucent.com>
86363
86364         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86365         Prompted by a report from Bob Proulx.
86366
86367         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86368         Instead, require UTILS_FUNC_MKSTEMP.
86369
86370 2001-11-17  Jim Meyering  <meyering@lucent.com>
86371
86372         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86373         Now, that's done as part of AC_FUNC_STRTOD.
86374
86375 2001-11-17  Jim Meyering  <meyering@lucent.com>
86376
86377         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86378         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86379         rather than group writable.  Patch by Juan F. Codagnone.
86380
86381         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86382         xrealloc, Instead, include "xalloc.h".
86383
86384         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86385         Remove explicit declarations of xmalloc, xrealloc,
86386         and xstrdup.  Instead, include "xalloc.h".
86387
86388         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86389         unlocked-io.h.
86390         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86391         Likewise.
86392         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86393
86394         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86395         Reported by Padraig Brady.
86396
86397         * lib/mkstemp.c: #undef mkstemp.
86398         Include config.h.
86399         (rpl_mkstemp): Rename from mkstemp.
86400         Protoize.
86401
86402 2001-11-16  Jim Meyering  <meyering@lucent.com>
86403
86404         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86405         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86406         determine the amount of total physical memory, use pstat_getstatic.
86407         HPUX-11 doesn't define _SC_PHYS_PAGES.
86408         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86409         If sysconf couldn't be used to determine the amount of available
86410         physical memory, use both pstat_getstatic and pstat_getdynamic.
86411         Based on a patch from Bob Proulx.
86412
86413 2001-11-10  Jim Meyering  <meyering@lucent.com>
86414
86415         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86416         (jm_PREREQ): Use it.
86417
86418 2001-11-09  Jim Meyering  <meyering@lucent.com>
86419
86420         * m4/jm-macros.m4: Require autoconf-2.52f.
86421         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86422         Use these AC_-prefixed names, not the AM_-prefixed ones.
86423
86424         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86425
86426 2001-11-05  Jim Meyering  <meyering@lucent.com>
86427
86428         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86429
86430 2001-11-04  Jim Meyering  <meyering@lucent.com>
86431
86432         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86433         $DEFS.
86434
86435 2001-11-03  Jim Meyering  <meyering@lucent.com>
86436
86437         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86438         of AC_DEFUN.
86439
86440         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86441         know the name of the variable in the macro definition.
86442
86443 2001-11-03  Jim Meyering  <meyering@lucent.com>
86444
86445         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86446         in argmatch_to_argument call.
86447
86448         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86449         argument.
86450
86451         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86452         e.g., a fault due to an attempt to free a NULL pointer.
86453
86454 2001-11-01  Jim Meyering  <meyering@lucent.com>
86455
86456         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86457         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86458
86459 2001-11-01  Jim Meyering  <meyering@lucent.com>
86460
86461         * lib/dirfd.c, lib/dirfd.h: New files.
86462         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86463
86464         * lib/hash.c (hash_print) [TESTING]: Clean up.
86465
86466 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86467
86468         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86469         to avoid a warning if -Wall.
86470
86471 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86472
86473         * README: New file
86474         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86475         (per RMS's instructions, this is now the canonical source)
86476         * lgpl/, gpl/: New directories.
86477
86478 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86479
86480         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86481
86482 2001-10-21  Jim Meyering  <meyering@lucent.com>
86483
86484         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86485         this code would end up calling gettext even in packages built
86486         with --disable-nls.
86487         * lib/getopt.c (_): Likewise.
86488         * lib/regex.c (_): Likewise.
86489
86490 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86491
86492         * m4/error.m4 (jm_PREREQ_ERROR):
86493         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86494         AC_FUNC_STRERROR_R does that.
86495         Check for strerror declaration.
86496
86497         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86498         are supposed to have them these days.
86499         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86500         Merge changes from latest Autoconf CVS.
86501         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86502         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86503         POSIX decided to standardize on the int flavor of strerror_r.
86504
86505 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86506
86507         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86508         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86509         Use strerror_r that is only a macro, even if it is not a function.
86510         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86511         (private_strerror): Use prototypes, not old-style function definition.
86512         (print_errno_message): New function.
86513         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86514         char*-flavored one.
86515         (error_tail, error, error_at_line): Use it.
86516
86517 2001-10-11  Jim Meyering  <meyering@lucent.com>
86518
86519         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86520         and quote_n (1, ... to avoid clobbering a buffer.
86521
86522 2001-10-05  Jim Meyering  <meyering@lucent.com>
86523
86524         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86525         hash-pjw.h.
86526         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86527         * lib/hash-pjw.h: New file.
86528
86529 2001-09-30  Jim Meyering  <meyering@lucent.com>
86530
86531         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86532         `struct fsstat' has the `f_fstypename' member.
86533         Use that to define FS_TYPE, which is now used to make
86534         the getfsstat link test tighter.
86535
86536 2001-09-30  Jim Meyering  <meyering@lucent.com>
86537
86538         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86539         Include <sys/ucred.h>, for Apple Darwin.
86540         Include sys/mount.h and sys/fs_types.h only if available.
86541         (FS_TYPE): Define.
86542         (read_filesystem_list): Use FS_TYPE.
86543
86544 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86545
86546         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86547         a boolean context.
86548
86549 2001-09-29  Jim Meyering  <meyering@lucent.com>
86550
86551         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86552         [one-argument getmntent function]): Include stdio.h before mntent.h.
86553         SunOS 4.1.x needs it for the declaration of `FILE'.
86554         Patch by Volker Borchert.
86555
86556         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86557         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86558         sys/fs_types.h, and make the link-test for getfsstat guard #include
86559         directives with appropriate #if HAVE_*_H tests so that we can
86560         detect getfsstat on Apple Darwin1.3.7 systems.
86561         Reported by Nelson Beebe.
86562         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86563
86564 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86565
86566         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86567         #defines strtoimax.  Also treat the other strto* functions
86568         like strtoimax.
86569
86570         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86571         Check for strtoul and strtoumax,
86572         as those declarations are made even in the signed case.
86573         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86574         Likewise, for strtol and strtoimax.
86575
86576 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86577
86578         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86579         #defines strtoimax.  Also treat the other strto* functions
86580         like strtoimax.
86581
86582         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86583         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86584         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86585
86586 2001-09-26  Jim Meyering  <meyering@lucent.com>
86587
86588         Most macros in unlocked-io.h had the wrong number of arguments.
86589         * lib/gen-uio: New script.
86590         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86591         * lib/unlocked-io.hin: Remove file.
86592         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86593         rather than trying to embed it here.
86594         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86595         Reported by Padraig Brady.
86596
86597 2001-09-25  Volker Borchert  <bt@teknon.de>
86598
86599         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86600         `result'.
86601
86602 2001-09-24  Jim Meyering  <meyering@lucent.com>
86603
86604         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86605
86606 2001-09-23  Jim Meyering  <meyering@lucent.com>
86607
86608         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86609         instead of the mere test for existence of mntent.h.  The latter
86610         would get a false-positive on AIX 3.4 systems.
86611         In the outer getmntent if-block, don't die if neither of the getmntent
86612         tests succeeds.  Instead, just fall through and continue with the
86613         remaining tests.
86614
86615 2001-09-23  Jim Meyering  <meyering@lucent.com>
86616
86617         * lib/mountlist.c: Remove useless parentheses in #if directives.
86618         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86619         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86620
86621 2001-09-22  Jim Meyering  <meyering@lucent.com>
86622
86623         * m4/gettext.m4: New file.  From gettext.
86624         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86625         * m4/progtest.m4: Likewise
86626         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86627         * m4/glibc21.m4: Likewise.
86628
86629         * m4/libintl.m4: Remove.  No longer used.
86630
86631 2001-09-22  Jim Meyering  <meyering@lucent.com>
86632
86633         * lib/localcharset.c: Update from latest gettext.
86634         * lib/config.charset: Likewise.
86635
86636 2001-09-20  Jim Meyering  <meyering@lucent.com>
86637
86638         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86639         strtoimax.
86640         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86641         strtoumax.
86642
86643 2001-09-20  Jim Meyering  <meyering@lucent.com>
86644
86645         * lib/xstrtol.c (strtoimax): Guard declaration with
86646         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86647         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86648         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86649         (strtoumax): Likewise, for completeness (it wasn't necessary).
86650
86651 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86652
86653         * lib/strtoimax.c (HAVE_LONG_LONG):
86654         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86655         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86656         to work around bug in IBM C compiler.
86657
86658 2001-09-17  Jim Meyering  <meyering@lucent.com>
86659
86660         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86661         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86662         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86663         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86664         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86665         whenever the right hand side need not be expanded by the shell.
86666
86667 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86668
86669         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86670         library.  It's not correct, as some older glibcs are buggy.
86671         fnmatch wasn't fixed until glibc 2.2.
86672
86673         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86674         special shell magic here.
86675
86676 2001-09-16  Jim Meyering  <meyering@lucent.com>
86677
86678         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86679         * m4/jm-macros.m4: Require it.
86680
86681 2001-09-16  Jim Meyering  <meyering@lucent.com>
86682
86683         * lib/mkdir.c: New file.
86684
86685 2001-09-15  Jim Meyering  <meyering@lucent.com>
86686
86687         * m4/jm-macros.m4: Check for help2man.
86688
86689 2001-09-11  Jim Meyering  <meyering@lucent.com>
86690
86691         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86692         The body, by Paul Eggert, was moved here from configure.in.
86693         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86694
86695 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86696
86697         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86698         (jm_PREREQ): Use it.
86699
86700 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86701
86702         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86703         Use ssize_t, not int, to store result of readlink.
86704         Check for ssize_t overflow as well as size_t overflow,
86705         as POSIX says the result of readlink is implementation-defined
86706         when ssize_t overflows.
86707         Remove unnecessary cast to char*.
86708         Use free+malloc instead of realloc, as the storage doesn't need
86709         to be preserved and it's clearer and can be more efficient that way.
86710         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86711         * lib/xreadlink.h (xreadlink): Update prototype.
86712
86713 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86714
86715         * lib/xgetcwd.c: Revert some of the previous change; intead,
86716         fix the HAVE_GETCWD_NULL code to behave more like the
86717         !HAVE_GETCWD_NULL code used to.
86718
86719         Include "xalloc.h".
86720         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86721         invoke xalloc_die.
86722
86723 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86724
86725         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86726         sys/param.h, as pathmax.h includes them.
86727
86728 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86729
86730         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86731         (jm_PREREQ_XGETCWD): New macro.
86732
86733         * m4/getcwd.m4: New file.
86734
86735 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86736
86737         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86738         like the HAVE_GETCWD_NULL code.
86739         Include pathmax.h if not HAVE_GETCWD.
86740         Do not include xalloc.h.
86741         (INITIAL_BUFFER_SIZE): New symbol.
86742         Do not use xmalloc / xrealloc, since the caller is responsible for
86743         handling errors.  Preserve errno around `free' during failure.
86744         Do not overrun buffer when using getwd.
86745
86746 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86747
86748         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86749         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86750         getcwd (NULL, 0).
86751
86752 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86753
86754         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86755         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86756         spotted by Jim Meyering.
86757
86758 2001-09-03  Jim Meyering  <meyering@lucent.com>
86759
86760         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86761         failure.
86762
86763 2001-09-02  Jim Meyering  <meyering@lucent.com>
86764
86765         * lib/error.c: Update from GNU libc.
86766
86767 2001-09-01  Jim Meyering  <meyering@lucent.com>
86768
86769         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86770         Used by df.
86771
86772 2001-09-01  Jim Meyering  <meyering@lucent.com>
86773
86774         * lib/xreadlink.c: New file.
86775         * lib/xreadlink.h: New file.
86776         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86777         xreadlink.h.
86778
86779         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86780         doesn't conflict with sparc Solaris 7's definition in
86781         /usr/include/sys/int_types.h.
86782
86783         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86784         files.
86785         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86786         and strncasecmp as r-values.  Unixware didn't have declarations.
86787
86788 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86789
86790         * lib/xstrtol.h: Add copyright notice.
86791         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86792         LONGINT_INVALID_SUFFIX_CHAR.
86793
86794 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86795
86796         * lib/xstrtol.c (strtoimax): New decl.
86797
86798 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86799
86800         * lib/xgetcwd.c: Don't include pathmax.h.
86801         Include stdlib.h and unistd.h if available.
86802         Include xalloc.h.
86803         (xmalloc, xstrdup, free): Remove decls.
86804         (xgetcwd): Don't assume sizes fit in unsigned.
86805         Check for overflow when computing sizes.
86806         Simplify reallocation code.
86807
86808 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86809
86810         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86811         a directory's st_size can have an arbitrary value, so the old
86812         usage could waste an arbitrary amount of memory.  All uses
86813         changed.
86814         * lib/savedir.h: Update prototype.
86815
86816 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86817
86818         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86819
86820         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86821         old strtoimax.c.
86822
86823         Also, make the following further changes to make this file's
86824         configuration more similar to that of strtol.c:
86825         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86826         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86827         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86828         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86829         changed to signed values.
86830
86831         And make the following changes as well:
86832         Fix copyright notice, as 1999 was missing.
86833         (verify): New macro.
86834         (strtoimax): Check sizes at compile-time, not run-time.
86835         Prefer strtol to strtoll if both work.
86836         (main): Remove; it was not that useful and was a pain to maintain.
86837
86838         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86839
86840 2001-08-31  Jim Meyering  <meyering@lucent.com>
86841
86842         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86843         Use an initial, malloc'd, buffer of length 128 rather than
86844         a statically allocated one of length 1024.
86845
86846 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86847
86848         Simplify code, partly by assuming autoconf 2.52 semantics.
86849
86850         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86851
86852         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86853         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86854         All uses removed.
86855         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86856         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86857         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86858         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86859         jm_AC_HEADER_INTTYPES_H.
86860         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86861
86862         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86863
86864         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86865         Quote first arg of AC_DEFUN.
86866         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86867         since they are needed to parse the include file even if we need
86868         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86869         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86870         but with opposite signedness.
86871
86872 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86873
86874         Merge 'exclude' changes from tar 1.13.22.
86875         This fixes one or two unlikely storage allocation overflow bugs,
86876         but doesn't change user-visible behavior otherwise.
86877
86878 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86879
86880         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86881         (jm_PREREQ_EXCLUDE): New macro.
86882
86883 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86884
86885         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86886         tm to be declared.
86887
86888 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86889
86890         * lib/hash.c: Remove '2001' from copyright notice.
86891
86892 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86893
86894         * lib/full-write.h: New file.
86895         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86896         * lib/full-write.c: Correct credits, as cccp.c no longer
86897         exists and anyway it was so heavily changed from the old cccp
86898         code as to be unrecognizable.  Include full-write.h.
86899         (full_write): Return size_t, with short writes meaning failure.
86900         All callers changed.  This fixes a bug with large buffers
86901         on 64-bit hosts.
86902         * lib/utime.c: Include full-write.h.
86903
86904 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86905
86906         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86907         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86908         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86909         Include if available.
86910         (<xalloc.h>): Include
86911         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86912         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86913         collide with FNM macros.
86914         (struct patopts): New struct.
86915         (struct exclude): Use it, as exclude patterns now come with options.
86916         (new_exclude): Support above changes.
86917         (new_exclude, add_exclude_file):
86918         Initial size must now be a power of two to simplify overflow checking.
86919         (free_exclude, fnmatch_no_wildcards): New function.
86920         (excluded_filename): No longer requires options arg, as the options
86921         are determined by add_exclude.  Now returns bool, not int.
86922         (excluded_filename, add_exclude):
86923         Add support for the fancy new exclusion options.
86924         (add_exclude, add_exclude_file): Now takes int options arg.
86925         Check for arithmetic overflow when computing sizes.
86926         (add_exclude_file): xrealloc might modify errno, so don't
86927         realloc until after errno might be used.
86928
86929         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86930         New macros.
86931         (free_exclude): New decl.
86932         (add_exclude, add_exclude_file): Now takes int options arg.
86933         (excluded_filename): No longer requires options arg, as the options
86934         are determined by add_exclude.  Now returns bool, not int.
86935
86936 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86937
86938         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86939
86940 2001-08-27  Jim Meyering  <meyering@lucent.com>
86941
86942         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86943
86944         * lib/version-etc.c (N_): Remove definition.
86945         Revert most of last change.
86946         Instead, simply don't mark the `Copyright...' string for translation.
86947         Based on advice from Paul Eggert.
86948
86949         * lib/strtoxmax.c: Tweak comment.
86950
86951 2001-08-26  Jim Meyering  <meyering@lucent.com>
86952
86953         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86954
86955         * m4/xstrtoimax.m4: New file.
86956         * m4/xstrtoumax.m4: Add comments explaining why we
86957         AC_REPLACE_FUNCS(strtol).
86958
86959 2001-08-26  Jim Meyering  <meyering@lucent.com>
86960
86961         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86962         of copyright with `%s' so translators don't get an untranslated
86963         message in 2002.
86964         (COPYRIGHT_YEAR): Define.
86965         (version_etc): Use fprintf rather than fputs.
86966         Suggestion from Ulrich Drepper.
86967
86968         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86969
86970         * lib/strtoll.c: New file, from GNU libc.
86971         * lib/xstrtoimax.c: New file.
86972
86973         * lib/xstrtol.h: Add xstrtoimax.
86974         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86975         * lib/strtoimax.c: New file.  Likewise, but first define
86976         STRTOUXMAX_SIGNED.
86977
86978         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86979         ...
86980         * lib/strtoxmax.c: ... then renamed to this.
86981
86982 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86983
86984         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86985         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86986         (jm_AC_TYPE_INTMAX_T): New macro.
86987         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86988
86989         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86990
86991         * m4/longlong.m4: Renamed from ulonglong.m4.
86992         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86993         * m4/uintmax_t.m4: Removed.
86994
86995 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86996
86997         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86998         Port to Solaris 8, where 'sed' requires a space after the 'r'
86999         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87000         Redirect output to $tmp just once.
87001
87002 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87003
87004         * lib/addext.c (<errno.h>): Include.
87005         (errno): Declare if not defined.
87006         (addext): Work correctly when pathconf returns -1 and leaves
87007         errno alone because there is no limit.  Also, work even if
87008         pathconf returns a value greater than SIZE_MAX.
87009
87010 2001-08-12  Jim Meyering  <meyering@lucent.com>
87011
87012         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87013         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87014         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87015         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87016         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87017         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87018         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87019         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87020         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87021         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87022         utime.m4, utimes.m4, xstrtoumax.m4:
87023         Quote the first argument in each use of AC_DEFUN.
87024
87025 2001-08-12  Jim Meyering  <meyering@lucent.com>
87026
87027         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87028         Simply `return getcwd (NULL, 0);'.
87029         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87030         Use 1300 as initial value for length, not PATH_MAX.
87031
87032         * lib/pathmax.h: Clean up cpp syntax.
87033
87034 2001-08-12  Jim Meyering  <meyering@lucent.com>
87035
87036         * lib/gettimeofday.c: New file.
87037         * lib/gtod.h: New file.
87038         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87039
87040 2001-08-05  Jim Meyering  <meyering@lucent.com>
87041
87042         * m4/jm-macros.m4: Require autoconf-2.52.
87043
87044 2001-08-04  Jim Meyering  <meyering@lucent.com>
87045
87046         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87047         stmt, to get in sync with glibc.
87048
87049 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87050
87051         The following changes are from gettext 0.10.39 as maintained by
87052         Bruno Haible.
87053
87054         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87055         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87056         with inverted sense.  All uses changed.
87057
87058         * lib/mbswidth.c: Don't include <limits.h>.
87059         Include <stdlib.h> and <string.h> unconditionally.
87060         (iswcntrl, mbsinit, ISCNTRL): New macros.
87061         (mbsnwidth): Use K&R style function declarations.
87062         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87063         can optimize it when MB_CUR_MAX == 1.
87064         The width of control characters is zero, not 1.
87065
87066 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87067
87068         The following changes are from gettext 0.10.39 as maintained by
87069         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87070
87071         * m4/codeset.m4: Upgrade to serial AM1.
87072         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87073         all uses changed.  Quote first arg of AC_DEFUN.
87074         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87075
87076         * m4/iconv.m4: Upgrade to serial AM2.
87077         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87078         Add --with-libconv-prefix.
87079         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87080         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87081         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87082         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87083         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87084
87085         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87086         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87087         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87088         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87089         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87090         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87091         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87092         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87093         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87094
87095         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87096         string.h any more.
87097
87098         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87099         not the default value.
87100
87101         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87102         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87103         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87104         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87105         Also check for iswcntrl, used for wcwidth fallback.
87106         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87107         to Autoconf 2.13.
87108
87109 2001-08-03  Jim Meyering  <meyering@lucent.com>
87110
87111         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87112         as it was in the original.  Reported by Paul Eggert.
87113
87114 2001-07-16  Jim Meyering  <meyering@lucent.com>
87115
87116         * m4/gettimeofday.m4: New file.
87117         Prompted by a report from Bernhard Baehr.
87118
87119 2001-07-15  Jim Meyering  <meyering@lucent.com>
87120
87121         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87122         stuff. Now it's in ../Makefile.cfg.
87123
87124 2001-07-15  Jim Meyering  <meyering@lucent.com>
87125
87126         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87127         (BUILT_SOURCES): Add unlocked-io.h.
87128         (io_functions): Define.
87129         (unlocked-io.h): New rule.
87130         (DISTCLEANFILES): Add unlocked-io.h.
87131         (all-local): Depend on unlocked-io.h, to ensure it is created.
87132
87133         * lib/unlocked-io.hin: New file
87134
87135         * lib/regex.c: Update from glibc.
87136
87137 2001-07-05  Jim Meyering  <meyering@lucent.com>
87138
87139         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87140         recommendation.
87141         (libfetish_a_SOURCES): Put all .h files here instead.
87142         Remove a thus-exposed (better checks in automake) duplicate and
87143         two unnecessary .h files.
87144
87145 2001-07-04  Jim Meyering  <meyering@lucent.com>
87146
87147         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87148         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87149         distcheck failure.
87150
87151 2001-07-02  Jim Meyering  <meyering@lucent.com>
87152
87153         The following changes were prompted by suggestions from Bruno Haible.
87154
87155         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87156         is now generated.
87157         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87158         definition of EXTRA_DIST.
87159         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87160         ensure that the generated file is created/updated whenever the list
87161         of $(unlocked_functions) is changed.
87162         (jm-glibc-io.m4): New rule.
87163         (unlocked-io.h): New rule -- currently unused.
87164
87165 2001-06-24  Jim Meyering  <meyering@lucent.com>
87166
87167         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87168         unmatched right bracket, rather than kludging it with an extra,
87169         falsely-matching quote in a comment.  Patch by Akim Demaille.
87170
87171 2001-06-11  Jim Meyering  <meyering@lucent.com>
87172
87173         * lib/regex.c: Update from GNU libc.
87174
87175 2001-05-27  Jim Meyering  <meyering@lucent.com>
87176
87177         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87178         Check for ut_type in struct utmp.
87179
87180 2001-05-27  Jim Meyering  <meyering@lucent.com>
87181
87182         * lib/readutmp.h (UT_TYPE): Define.
87183
87184 2001-05-24  Jim Meyering  <meyering@lucent.com>
87185
87186         * lib/argmatch.c: Include "quote.h".
87187         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87188         quote function.  Reported by Göran Uddeborg.
87189
87190 2001-05-22  Jim Meyering  <meyering@lucent.com>
87191
87192         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87193         now that we use the package-supplied version unconditionally.
87194         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87195
87196 2001-05-21  Jim Meyering  <meyering@lucent.com>
87197
87198         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87199         shell syntax errors.
87200
87201 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87202
87203         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87204
87205 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87206
87207         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87208         Don't bother to check library strftime, since
87209         we'll be using our own my_strftime function anyway.
87210         Define my_strftime instead of strftime.
87211
87212 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87213
87214         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87215         which is not yet declared.
87216
87217 2001-05-15  Jim Meyering  <meyering@lucent.com>
87218
87219         * m4/regex.m4: Use proper quoting so brackets appear in the test
87220         program.
87221         Reported by, and with help from, Bruno Haible.
87222
87223 2001-05-13  Jim Meyering  <meyering@lucent.com>
87224
87225         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87226         undefined.
87227
87228 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87229
87230         dirname code cleanup.  base_name now behaves more compatibly
87231         with POSIX basename when given file names that have trailing
87232         slashes, and similarly for dir_name.  Add new primitives
87233         base_len and dir_len.  Put the directory-name-related decls
87234         into dirname.h.
87235
87236         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87237         * lib/backupfile.c (base_name): Likewise.
87238         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87239         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87240         * lib/makepath.c (strip_trailing_slashes): Likewise.
87241         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87242         ISSLASH): Likewise.
87243         * lib/rename.c (strip_trailing_slashes): Likewise.
87244         * lib/same.c (base_name): Likewise.
87245         * lib/stripslash.c (ISSLASH): Likewise.
87246
87247         * lib/addext.c: Include <dirname.h> after size_t is defined.
87248         * lib/backupfile.c: Likewise.
87249
87250         * lib/addext.c (addext): Use base_len to trim redundant
87251         trailing slashes instead of doing it ourselves.
87252         But do not trim the last slash if it is not redundant.
87253
87254         * lib/backupfile.c (find_backup_file_name,
87255         max_backup_version): Use base_len instead of rolling it ourselves.
87256         Handle the case of "" and (on DOS) "C:" correctly.
87257
87258         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87259         needed. Include <string.h>, <dirname.h>.
87260         (base_name): Allow file names ending in slashes, other than names
87261         that are all slashes.  In this case, return the basename followed
87262         by the slashes.  This is more general, and can be used in places
87263         where the original base_name purposely had an assertion failure.
87264         (base_len): New function.
87265
87266         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87267         Do not include <assert.h>; no longer needed.
87268         Include xalloc.h.
87269         (memrchr): Remove decl.
87270         (dir_name_r): Remove.
87271         (dir_len): Renamed from dirlen.  All callers changed.
87272         Rewrite in terms of base_name, for simplicity and consistency.
87273         (dir_name): Never return NULL.  All callers changed.
87274         Do not include <stdlib.h> in test program; no longer needed.
87275         return 0; is fine for test program.
87276
87277         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87278         New macros.
87279         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87280
87281         * lib/path-concat.c (path_concat): Use base_len to compute
87282         base length, not strlen; this means we cannot rely on memcpy
87283         to null-terminate.
87284
87285         * lib/same.c (STREQ): Remove.
87286         (same_name): Handle the case where the basename ends in trailing '/'.
87287
87288         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87289         a slash was stripped.  Do not strip the last slash after a
87290         file system prefix.
87291
87292 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87293
87294         * lib/Makefile.am (libfetish_a_SOURCES):
87295         Add strftime.c, since we now compile it on all hosts.
87296
87297         * lib/strftime.c (my_strftime):
87298         Define to nstrftime if emacs, but only if my_strftime is not defined.
87299         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87300         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87301         Add one more extra argument: a nanoseconds value.
87302         All uses changed.
87303         (ns): New macro.
87304         (my_strftime function): Add %N format.
87305         (emacs_strftimeu): Renamed from emacs_strftime,
87306         with extra ut argument.
87307
87308 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87309
87310         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87311
87312 2001-04-21  Jim Meyering  <meyering@lucent.com>
87313
87314         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87315         doesn't interfere.
87316
87317 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87318
87319         * m4/ftruncate.m4: Check for chsize.
87320         Link with ftruncate.o unconditionally if ftruncate is missing.
87321         This was required when cross-compiling to i586-mingw32msvc.
87322
87323 2001-04-08  Jim Meyering  <meyering@lucent.com>
87324
87325         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87326         recomputed; that's necessary when the offset spans a DST transition.
87327         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87328
87329 2001-04-02  Jim Meyering  <meyering@lucent.com>
87330
87331         * lib/regex.h, regex.c: Update from GNU libc.
87332
87333 2001-03-24  Jim Meyering  <meyering@lucent.com>
87334
87335         * m4/jm-macros.m4: Require autoconf-2.49d.
87336
87337 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87338
87339         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87340
87341 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87342
87343         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87344
87345 2001-03-17  Jim Meyering  <meyering@lucent.com>
87346
87347         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87348         now that the version in autoconf is equivalent.
87349         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87350
87351         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87352         Suggestion from Akim Demaille.
87353
87354         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87355         (jm_PREREQ_TEMPNAME): New function.
87356
87357 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87358
87359         * lib/tempname.c (uint64_t): Define to uintmax_t if
87360         not defined, and if UINT64_MAX is not defined.
87361         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87362         Reported by John David Anglin.
87363
87364 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87365
87366         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87367         resolve alias if codeset is empty.
87368         * lib/config.charset (BeOS): Use wildcard syntax.
87369
87370 2001-03-13  Jim Meyering  <meyering@lucent.com>
87371
87372         * lib/path-concat.c (path_concat)
87373         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87374         concatenating e.g., `C:' and `foo'.
87375         From Bruno Haible.
87376
87377 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87378
87379         * lib/localcharset.c (locale_charset): Don't use
87380         setlocale(LC_CTYPE,NULL). Don't return NULL.
87381         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87382
87383 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87384
87385         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87386         support for DOS/DJGPP.
87387
87388 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87389
87390         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87391         lacks mkstemp.  Compile our own tempname.c if we compile our own
87392         mkstemp.c, as mkstemp relies on tempname.
87393
87394 2001-03-01  Jim Meyering  <meyering@lucent.com>
87395
87396         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87397         AH_VERBATIM really does output its argument verbatim.
87398
87399 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87400
87401         * lib/Makefile.am (libfetish_a_SOURCES):
87402         Add dup-safer.c, fopen-safer.c.
87403         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87404
87405         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87406         * lib/unistd-safer.h: New files.
87407
87408 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87409
87410         The mkstemp replacement is taken from glibc 2.2.2, with some
87411         portability fixes for use outside glibc, as follows:
87412
87413         * lib/tempname.c (struct_stat64): New macro.
87414         (direxists, __gen_tempname): Use it.
87415         This avoids a portability problem with Solaris 8.
87416
87417         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87418         (<stddef.h>, <stdint.h>, <string.h>):
87419         Include only if STDC_HEADERS || _LIBC.
87420         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87421         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87422         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87423         (__set_errno): Define this macro if <errno.h> doesn't.
87424         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87425         Define these macros if <stdio.h> doesn't.
87426         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87427         Define these macros if <sys/stat.h>
87428         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87429         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87430         __xstat64): Define if not _LIBC.
87431         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87432         (__gen_tempname): Invoke gettimeofday only if
87433         HAVE_GETTIMEOFDAY || _LIBC;
87434         otherwise, fall back on plain "time".
87435         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87436
87437         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87438
87439         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87440
87441 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87442
87443         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87444
87445 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87446
87447         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87448         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87449         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87450         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87451
87452 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87453
87454         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87455         Remove workaround macros for hosts that have mbrtowc but not
87456         mbstate_t, as we now insist on proper declarations for both
87457         before using mbrtowc.
87458
87459 2001-02-17  Jim Meyering  <meyering@lucent.com>
87460
87461         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87462         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87463         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87464         UnixWare 7.1.1.
87465
87466         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87467         rather than AC_CACHE_VAL.
87468
87469 2001-02-17  Jim Meyering  <meyering@lucent.com>
87470
87471         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87472         around included file name.
87473
87474         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87475
87476         * lib/strftime.c: Update from GNU libc (the only changes were to
87477         comments).
87478
87479 2001-02-17  Jim Meyering  <meyering@lucent.com>
87480
87481         * lib/regex.c: Update from libc.
87482
87483 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87484
87485         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87486         clash.
87487
87488 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87489
87490         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87491         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87492         Reported by Mark Hounschell via Paul Eggert.
87493
87494 2001-02-07  Jim Meyering  <meyering@lucent.com>
87495
87496         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87497
87498 2001-02-05  Jim Meyering  <meyering@lucent.com>
87499
87500         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87501         it includes the patch required for `large file' support with at least
87502         HP-UX's 10.20 /bin/cc.
87503
87504 2001-02-03  Jim Meyering  <meyering@lucent.com>
87505
87506         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87507         AS_IF, now that it works once again (mysteriously).
87508         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87509
87510 2001-01-30  Jim Meyering  <meyering@lucent.com>
87511
87512         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87513         * m4/chown.m4: Rename conftestchown to conftest.chown.
87514         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87515         s/conftestdir2/conftest.d2/.
87516         * m4/utimes.m4: s/conftestdata/conftest.data/
87517         Inspired by Pavel Roskin's change in autoconf.
87518
87519 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87520
87521         * lib/config.charset: Update for FreeBSD 4.2.
87522
87523 2001-01-27  Jim Meyering  <meyering@lucent.com>
87524
87525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87526         a use of AS_IF.
87527         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87528
87529 2001-01-26  Jim Meyering  <meyering@lucent.com>
87530
87531         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87532         quotearg.c includes it.
87533
87534 2001-01-26  Jim Meyering  <meyering@lucent.com>
87535
87536         * lib/quotearg.c: Include stddef.h.
87537         * lib/quote.c: Include stddef.h.
87538         Reported by Axel Kittenberger.
87539
87540         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87541         line in double quotes so that it evokes a better diagnostic.
87542         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87543         Reported by Axel Kittenberger.
87544
87545 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87546
87547         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87548         as if it was a `charset'.
87549
87550 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87551
87552         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87553         has const.
87554
87555 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87556
87557         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87558         to avoid a warning.  Add back 'const' to inptr.
87559
87560 2001-01-20  Jim Meyering  <meyering@lucent.com>
87561
87562         Be sure that headers are checked before used in code compiled
87563         for the type checks.
87564         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87565         In place of that, invoke jm_CHECK_ALL_TYPES.
87566         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87567         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87568         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87569         The check for ssize_t was mistakenly run before the test for unistd.h.
87570
87571         The configure-time check for stdbool.h was missing.
87572         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87573         (jm_PREREQ_HASH): New function.
87574
87575 2001-01-17  Jim Meyering  <meyering@lucent.com>
87576
87577         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87578         for autoconf-2.49c.
87579         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87580
87581 2001-01-16  Jim Meyering  <meyering@lucent.com>
87582
87583         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87584         From Bruno Haible.
87585
87586 2001-01-14  Jim Meyering  <meyering@lucent.com>
87587
87588         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87589         foo and bar.  Create conftestdir/ in the script, not in the C code.
87590         Remove directories in the script, not in the C code.
87591         Remove conftestdir{,2} before trying to create the directory.
87592         Make the entire configure script fail if the mkdir fails.
87593
87594 2001-01-14  Jim Meyering  <meyering@lucent.com>
87595
87596         * lib/rename.c: New file.  From Volker Borchert.
87597         Include stdlib.h, string.h or strings.h, and xalloc.h.
87598         Use strip_trailing_slashes rather than open-coding it.
87599
87600 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87601
87602         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87603
87604 2001-01-03  Jim Meyering  <meyering@lucent.com>
87605
87606         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87607         of local `inptr' to avoid warning with some system declarations of
87608         iconv.
87609
87610 2001-01-02  Volker Borchert  <bt@teknon.de>
87611
87612         * m4/rename.m4: New file.
87613         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87614
87615 2001-01-01  Jim Meyering  <meyering@lucent.com>
87616
87617         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87618         even on systems with utmpx.h.  It's necessary for the declaration of
87619         utmp's ut_user member.  Reported by Andreas Jaeger.
87620
87621         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87622         available. They are required for the declarations of getgrgid and
87623         getpwuid resp.
87624         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87625         Reported by Andreas Jaeger.
87626
87627 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87628
87629         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87630         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87631         so `make install' also works in VPATH builds.
87632
87633 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87634
87635         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87636         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87637         can be used in subdirectories.
87638
87639 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87640
87641         * lib/modechange.c: Do not assume that mode_t uses the
87642         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87643         the other-execute bit of FOO even if S_IXOTH != 1.
87644
87645         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87646         WOTH, XOTH, ALLM): New macros.
87647         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87648          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87649         Use them.
87650         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87651         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87652         (mode_compile):
87653         No need to use uintmax_t; unsigned long is long enough.
87654         Don't bother to get suffix since we don't use it.
87655
87656 2000-12-26  Jim Meyering  <meyering@lucent.com>
87657
87658         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87659         better with autoheader.
87660
87661 2000-12-24  Jim Meyering  <meyering@lucent.com>
87662
87663         * lib/hash.c (is_prime): Return explicit boolean values.
87664         (hash_get_first): Return NULL to appease Irix5.6's 89.
87665         Reported by Nelson Beebe.
87666
87667 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87668
87669         * lib/localcharset.c (locale_charset): Add support for Win32.
87670
87671 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87672
87673         * lib/physmem.h, lib/physmem.c: New files.
87674
87675         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87676         (noinst_HEADERS): Add physmem.h.
87677
87678         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87679         't' for compatibility with Solaris 8 sort.
87680
87681 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87682
87683         * lib/config.charset: Add support for BeOS.
87684
87685 2000-12-17  Jim Meyering  <meyering@lucent.com>
87686
87687         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87688         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87689
87690 2000-12-16  Jim Meyering  <meyering@lucent.com>
87691
87692         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87693         N and M) would have treated it like `chown N:N FILE'.
87694
87695         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87696
87697 2000-12-16  Jim Meyering  <meyering@lucent.com>
87698
87699         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87700         SHELLS_FILE to a file name that's useful on djgpp systems.
87701         Include stdlib.h.
87702         (ADDITIONAL_DEFAULT_SHELLS): Define.
87703         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87704         Based mostly on a patch from Prashant TR.
87705
87706 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87707
87708         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87709         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87710         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87711
87712 2000-12-08  Andreas Schwab  <schwab@suse.de>
87713
87714         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87715         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87716
87717 2000-12-07  Jim Meyering  <meyering@lucent.com>
87718
87719         * lib/stripslash.c (ISSLASH): Define.
87720         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87721         `/'.
87722         From Prashant TR.
87723
87724         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87725         (dir_name_r): Declare this function as static.
87726         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87727         manifest itself on a name containing a mix of slashes and
87728         backslashes.
87729         Make this function work with names starting with a DOS-style
87730         drive letter and colon prefix.
87731         (dir_name): Append `.' if necessary.
87732         Based mostly on patches from Prashant TR and Eli Zaretskii.
87733
87734         * lib/dirname.h (dir_name_r): Remove prototype.
87735
87736 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87737
87738         * m4/off_t-format.m4: Remove this file.
87739         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87740
87741 2000-12-06  Jim Meyering  <meyering@lucent.com>
87742
87743         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87744         replacement strtoull, we may well need the replacement strtoul, too.
87745         Check for declarations of strtoul and strtoull.
87746         Check for strtol.  Mainly as a cue to cause automake to include
87747         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87748         Check for limits.h -- strtol.c needs it.
87749
87750 2000-12-05  Jim Meyering  <meyering@lucent.com>
87751
87752         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87753
87754 2000-12-04  Jim Meyering  <meyering@lucent.com>
87755
87756         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87757         Also include memory.h, stdlib.h, unistd.h if appropriate.
87758         Reported by Andreas Jaeger (conflicting declaration of malloc).
87759
87760 2000-12-02  Jim Meyering  <meyering@lucent.com>
87761
87762         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87763         * m4/jm-macros.m4 (jm_MACROS): require it.
87764
87765 2000-12-02  Jim Meyering  <meyering@lucent.com>
87766
87767         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87768
87769 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87770
87771         * lib/memrchr.c: Include <config.h> before any system include file.
87772
87773 2000-11-30  Jim Meyering  <meyering@lucent.com>
87774
87775         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87776
87777 2000-11-30  Jim Meyering  <meyering@lucent.com>
87778
87779         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87780
87781 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87782
87783         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87784
87785 2000-11-26  Jim Meyering  <meyering@lucent.com>
87786
87787         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87788
87789 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87790
87791         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87792         size of (size_t) -1; it's not portable.
87793
87794 2000-11-17  Jim Meyering  <meyering@lucent.com>
87795
87796         * lib/strstr.c: Update from GNU libc.
87797
87798 2000-11-17  Akim Demaille  <akim@epita.fr>
87799
87800         * lib/obstack.h: Formatting changes.
87801         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87802         prevent type checking.
87803         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87804         cast the value to (void *): assigning a `foo *' to a `void *'
87805         variable is valid.
87806         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87807
87808 2000-11-16  Jim Meyering  <meyering@lucent.com>
87809
87810         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87811
87812 2000-11-11  Jim Meyering  <meyering@lucent.com>
87813
87814         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87815
87816 2000-11-10  Jim Meyering  <meyering@lucent.com>
87817
87818         * lib/obstack.h: Update from GNU libc.
87819         * lib/obstack.c: Likewise.
87820
87821 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87822
87823         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87824
87825 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87826
87827         * lib/getusershell.c (setusershell): Use rewind rather than
87828         fseek/fseeko, to avoid configuration hassles with fseeko.
87829         Don't bother opening SHELLS_FILE if shellstream is NULL;
87830         it's not necessary.
87831
87832 2000-11-05  Jim Meyering  <meyering@lucent.com>
87833
87834         * lib/makepath.h (make_dir): Declare.
87835         * lib/makepath.c (make_dir): Remove `static' attribute.
87836         Tweak a comment.
87837
87838 2000-11-04  Jim Meyering  <meyering@lucent.com>
87839
87840         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87841
87842 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87843
87844         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87845         last one in a bucket, advance to the next bucket.
87846
87847 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87848
87849         * lib/fnmatch.c: Do not comment out all the code if we are using
87850         the GNU C library, because in some cases we are replacing buggy
87851         code in the GNU C library itself.
87852
87853 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87854
87855         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87856         (regex_compile): Catch bogus \(\1\).
87857
87858 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87859
87860         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87861         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87862         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87863
87864 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87865
87866         * lib/error.h, getline.h, modechange.h:
87867         Remove "2000" from Copyright line, as the file hasn't been
87868         changed this year other than in the copyright notice.
87869
87870         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87871         was changed this year.
87872
87873 2000-10-29  Jim Meyering  <meyering@lucent.com>
87874
87875         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87876         renaming.
87877         * m4/ls-mntd-fs.m4: Likewise
87878
87879 2000-10-29  Jim Meyering  <meyering@lucent.com>
87880
87881         * lib/xstat.in: Fix grammar in comment.
87882
87883 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87884
87885         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87886         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87887         doesn't define __restrict_arr.
87888
87889 2000-10-28  Jim Meyering  <meyering@lucent.com>
87890
87891         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87892         (jm_PREREQ_MEMCHR): New function.
87893
87894 2000-10-28  Jim Meyering  <meyering@lucent.com>
87895
87896         * lib/memchr.c: Update from libc.
87897         Adjust for portability:
87898         [HAVE_STDLIB_H]: Include stdlib.h.
87899         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87900         Undef __memchr, too.
87901         [!weak_alias]: Define __memchr to memchr.
87902
87903         * lib/regex.c: Update from libc.
87904         * lib/regex.h: Likewise.
87905         * lib/getopt1.c: Likewise.
87906         * lib/memcmp.c: Likewise.
87907
87908         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87909         Avoid using fseek, when possible -- it's broken by design.
87910         Patch by Ulrich Drepper.
87911
87912 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87913
87914         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87915         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87916         Giving in to popular pressure to shut up the compiler with casts.
87917
87918 2000-10-26  Jim Meyering  <meyering@lucent.com>
87919
87920         * lib/strftime.c: Update from libc.
87921
87922 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87923
87924         * regex.c: More `unsigned char' -> `re_char' changes.
87925         Also change several `int' into `re_wchar_t'.
87926         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87927         (PUSH_FAILURE_POINTER): Don't cast any more.
87928         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87929         We want GCC to complain, since this piece of code makes
87930         re_match non-reentrant, which *should* be fixed.
87931         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87932         (EXTEND_BUFFER): Use RETALLOC.
87933         (SET_LIST_BIT): Don't cast.
87934         (re_wchar_t): New type.
87935         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87936         that those two functions will always properly return.
87937         (IMMEDIATE_QUIT_CHECK): Cast to void.
87938         (analyse_first): Use recursion rather than an explicit stack.
87939         (re_compile_fastmap): Can't fail anymore.
87940         (re_search_2): Don't check re_compile_fastmap for failure.
87941         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87942         Now also sets the new value (passed in a new argument).
87943         (re_match_2_internal): Use it.
87944         Also, use a new var `reg' of type size_t when looping through regs
87945         rather than reuse the inappropriate `mcnt'.
87946
87947 2000-10-25  Jim Meyering  <meyering@lucent.com>
87948
87949         * lib/obstack.c: Update from libc.
87950
87951 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87952
87953         * regex.c (regex_compile): Change the way of handling a range from
87954         a char less than 256 to a char not less than 256.
87955
87956 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87957
87958         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87959         NT-Emacs only.
87960         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87961         so that re_search functions only quit when callers expect them to.
87962
87963 2000-10-23  Jim Meyering  <meyering@lucent.com>
87964
87965         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87966         wrong.  That set_locale call must not have any side effects.
87967         From Paul Eggert.
87968
87969 2000-10-22  Jim Meyering  <meyering@lucent.com>
87970
87971         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87972         [CYCLIC]: Remove now-unused definition.
87973
87974         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87975         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87976         Suggestion from Ulrich Drepper.
87977
87978 2000-10-21  Jim Meyering  <meyering@lucent.com>
87979
87980         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87981         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87982         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87983
87984 2000-10-21  Jim Meyering  <meyering@lucent.com>
87985
87986         * lib/dirname.c (memrchr): Declare if necessary.
87987         (dir_name): Remove the restriction that there be no
87988         trailing slashes.  Now, this code skips past them, effectively
87989         ignoring them.
87990         [TEST_DIRNAME] (main): New unit tests.
87991
87992         * lib/memrchr.c: New file from GNU libc.
87993         Undef __memrchr, too.
87994         [!weak_alias]: Define __memrchr to memrchr.
87995         Guard weak_alias use with `#ifdef weak_alias'.
87996
87997 2000-10-21  Jim Meyering  <meyering@lucent.com>
87998
87999         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88000         (dir_name): Use dir_name_r.
88001         * lib/dirname.h (dir_name_r): Declare it.
88002
88003 2000-10-17  Jim Meyering  <meyering@lucent.com>
88004
88005         * lib/quote.h (PARAMS): Define and use.
88006         Reported by Akim Demaille.
88007
88008         * lib/getopt.c: Update from libc.
88009
88010 2000-10-16  Jim Meyering  <meyering@lucent.com>
88011
88012         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88013         setlocale.
88014         From Jan Fedak.
88015
88016 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88017
88018         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88019
88020 2000-09-25  Jim Meyering  <meyering@lucent.com>
88021
88022         * lib/md5.h (rol): Define (from GnuPG).
88023
88024         * lib/sha.c: Give credit (GnuPG) where due.
88025         (M): Use rol rather than open-coding it.
88026         Add a FIXME comment.
88027
88028 2000-09-21  Jim Meyering  <meyering@lucent.com>
88029
88030         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88031         Reported by Michael Stone.
88032
88033 2000-09-20  Jim Meyering  <meyering@lucent.com>
88034
88035         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88036         (noinst_HEADERS): Add sha.h.
88037         Based on code from Scott G. Miller and from GnuPG.
88038
88039 2000-09-18  Jim Meyering  <meyering@lucent.com>
88040
88041         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88042         LIBS. Otherwise, everyone ends up linking with -lelf for some
88043         configurations.
88044         Reported by Mike Stone.
88045
88046 2000-09-15  Jim Meyering  <meyering@lucent.com>
88047
88048         * lib/regex.c: Update from libc.
88049
88050 2000-09-10  Jim Meyering  <meyering@lucent.com>
88051
88052         * lib/getopt.c (_getopt_internal): Update from glibc.
88053
88054 2000-09-09  Jim Meyering  <meyering@lucent.com>
88055
88056         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88057         think it should be used as a general replacement for isascii.
88058         * lib/fnmatch.c: Likewise.
88059         * lib/mbswidth.c: Likewise
88060         * lib/regex.c: Likewise.
88061
88062         Don't use atoi.
88063         * lib/userspec.c: Include sys/param.h and limits.h.
88064         Include xstrtol.h.
88065         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88066         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88067         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88068         UID, GID.  Check range.
88069
88070 2000-09-06  Jim Meyering  <meyering@lucent.com>
88071
88072         * lib/getopt.c (_getopt_internal): Update from glibc.
88073
88074 2000-08-30  Jim Meyering  <meyering@lucent.com>
88075
88076         * lib/strftime.c: Merge in changes from GNU libc.
88077
88078 2000-08-26  Jim Meyering  <meyering@lucent.com>
88079
88080         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88081         * m4/fpending.m4: New file.
88082
88083 2000-08-26  Jim Meyering  <meyering@lucent.com>
88084
88085         * lib/closeout.c: Include "__fpending.h".
88086         (close_stdout_status): Return right away if there's nothing to flush.
88087
88088         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88089         * lib/__fpending.c: New file.
88090         * lib/__fpending.h: New file.
88091
88092 2000-08-20  Jim Meyering  <meyering@lucent.com>
88093
88094         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88095         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88096         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88097
88098 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88099
88100         Improve fileutils installation on systems where running
88101         programs (like install) can't be unlinked.
88102         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88103         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88104
88105 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88106
88107         Standardize on "memory exhausted" instead of "Memory exhausted"
88108         or "virtual memory exhausted".
88109         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88110         "virtual memory exhausted".
88111         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88112         our own message.
88113         * lib/userspec.c (parse_user_spec): Likewise.
88114         * lib/bumpalloc.h: comment fix
88115         * lib/same.c, userspec.c: Include xalloc.h.
88116
88117         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88118         not char *const and pointing to a constant array.
88119         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88120         (xrealloc): Comment fix.
88121
88122         * lib/userspec.c (parse_user_spec):
88123         Don't translate a message until just before returning,
88124         to avoid unnecessary translation.
88125
88126 2000-08-07  Jim Meyering  <meyering@lucent.com>
88127
88128         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88129         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88130         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88131         getgroups.c, gethostname.c, getopt.h, group-member.c,
88132         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88133         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88134         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88135         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88136         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88137         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88138         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88139         yesno.c: Back out Copyright date changes for each file with no change
88140         this year.  This eases coordination with other programs using the same
88141         source code modules.  From Paul Eggert.
88142
88143 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88144
88145         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88146         not char, for compatibility with glibc 2.1.3 strftime.c.
88147
88148 2000-08-03  Greg McGary  <greg@mcgary.org>
88149
88150         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88151         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88152         (EXTEND_BUFFER): Use them.
88153
88154 2000-08-01  Jim Meyering  <meyering@lucent.com>
88155
88156         * lib/dirname.c (ISSLASH): Define.
88157         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88158         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88159         both `\' and `/' may be use as path separators.
88160         Based on a patch from Prashant TR.
88161
88162 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88163
88164         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88165         slot vector a constant, since it might get modified.
88166
88167 2000-07-31  Jim Meyering  <meyering@lucent.com>
88168
88169         * lib/xmalloc.c: Use `virtual memory exhausted', not
88170         `Memory exhausted'.
88171         * lib/obstack.c (print_and_abort): Likewise.
88172
88173 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88174
88175         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88176         buffer, so that the caller can always quote one small
88177         component of a "memory exhausted" message in slot 0.
88178         From a suggestion by Jim Meyering.
88179
88180 2000-07-30  Jim Meyering  <meyering@lucent.com>
88181
88182         * lib/makepath.c (make_path): Quote the other instance, too.
88183
88184         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88185         (STATIC_BUF_SIZE): Define.
88186         (quotearg_n_options): Use only statically allocated storage when
88187         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88188         than STATIC_BUF_SIZE.
88189
88190 2000-07-29  Jim Meyering  <meyering@lucent.com>
88191
88192         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88193         * lib/dirname.c (dir_name): Likewise.
88194
88195         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88196         `/'.
88197
88198         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88199         (dir_name): Assert that there are no trailing slashes.
88200
88201 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88202
88203         * lib/mbswidth.h (mbswidth): Add a flags argument.
88204         (mbswidth): New declaration.
88205         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88206         * lib/mbswidth.c (mbswidth): Add a flags argument.
88207         (mbsnwidth): New function.
88208
88209 2000-07-24  Jim Meyering  <meyering@lucent.com>
88210
88211         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88212
88213 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88214
88215         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88216
88217 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88218
88219         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88220         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88221         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88222         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88223         invoke multibyte primitives.
88224
88225 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88226
88227         * lib/quotearg.c:
88228         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88229         so that mbstate_t is always defined.
88230
88231         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88232         be 1 in at least one GCC installation, and this configuration
88233         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88234         performance on hosts that have mbrtowc but have only unibyte
88235         locales, but I assume these hosts are rare.
88236
88237 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88238
88239         * lib/mbswidth.c (_XOPEN_SOURCE):
88240         Don't define; this causes problems on Solaris 7.
88241         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88242
88243 2000-07-23  Jim Meyering  <meyering@lucent.com>
88244
88245         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88246         too: getgrgid, getpwuid, getuid.
88247
88248 2000-07-23  Jim Meyering  <meyering@lucent.com>
88249
88250         * lib/basename.c (base_name): Add an assertion.
88251
88252 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88253
88254         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88255         shadow its mbsinit function.
88256
88257 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88258
88259         * lib/mbswidth.h: New file.
88260         * lib/mbswidth.c: New file.
88261         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88262         (noinst_HEADERS): Add mbswidth.h.
88263
88264 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88265
88266         * lib/config.charset: Add support for FreeBSD. Improve support for
88267         HP-UX and IRIX 6.
88268
88269 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88270
88271         * m4/mbswidth.m4: New file.
88272         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88273
88274 2000-07-15  Jim Meyering  <meyering@lucent.com>
88275
88276         * lib/makepath.c: Include quote.h.
88277         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88278         corresponding argument in a `quote (...)' call.
88279         Give better diagnostics.
88280
88281         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88282         (noinst_HEADERS): Add quote.h.
88283
88284         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88285         from tar's src/misc.c.
88286         * lib/quote.h: New file.  Prototypes for same.
88287
88288 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88289
88290         From a suggestion by Bruno Haible.
88291         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88292         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88293         to decide whether to define the BeOS workaround macro;
88294         this adjusts to the change to AC_MBSTATE_T.
88295
88296 2000-07-14  Jim Meyering  <meyering@lucent.com>
88297
88298         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88299         jm_AC_TYPE_UINTMAX_T.
88300
88301 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88302
88303         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88304
88305         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88306         quotearg_buffer_restyled): Add support for
88307         clocale_quoting_style.  Undo previous change to
88308         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88309         and "{RIGHT QUOTATION MARK}" msgids.
88310
88311 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88312
88313         From a suggestion by Bruno Haible.
88314         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88315         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88316         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88317         and mbstate_t, to a single-part test that simply defines mbstate_t.
88318         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88319         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88320
88321 2000-07-10  Jim Meyering  <meyering@lucent.com>
88322
88323         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88324
88325         * m4/gnu-source.m4: Output to confdefs.h directly.
88326         Suggestion from Akim Demaille.
88327
88328 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88329
88330         The old behavior of quoting `like this' doesn't look good with
88331         newer, ISO-style fonts.  See:
88332         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88333
88334         Instead, quote "like this" by default.  Let the translator
88335         tailor the locale-specific quoting behavior by providing
88336         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88337
88338         * lib/quotearg.c (N_): New macro.
88339         (gettext_default): New function.
88340         (quotearg_buffer_restyled): Use
88341         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88342         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88343
88344 2000-07-09  Jim Meyering  <meyering@lucent.com>
88345
88346         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88347         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88348
88349         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88350         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88351
88352 2000-07-09  Jim Meyering  <meyering@lucent.com>
88353
88354         * lib/Most files: Update copyright dates to include 2000.
88355
88356 2000-07-08  Jim Meyering  <meyering@lucent.com>
88357
88358         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88359         if not defined.
88360         (xgethostname): Remove now-unnecessary #ifdef.
88361         Move declaration of `err' into loop where it's used.
88362
88363 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88364         and Bruno Haible  <haible@clisp.cons.org>
88365
88366         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88367         only if the test for an object-type mbstate_t fails.  This
88368         prevents us from mistakenly reporting that mbstate_t is a
88369         system object type after we "#define mbstate_t int" to work
88370         around its lack.
88371
88372 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88373         and Bruno Haible  <haible@clisp.cons.org>
88374
88375         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88376
88377 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88378
88379         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88380         to strerror_r.
88381         Include <ctype.h> for use of isalpha.
88382
88383 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88384
88385         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88386         by allocating a larger buffer. Test the gethostname return value for
88387         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88388         returns an error and ENAMETOOLONG isn't defined.
88389
88390 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88391
88392         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88393         dimension.
88394
88395 2000-07-04  Jim Meyering  <meyering@lucent.com>
88396
88397         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88398         of the deprecated AC_CHECKING.
88399
88400 2000-07-04  Jim Meyering  <meyering@lucent.com>
88401
88402         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88403         Reported by Bruno Haible.
88404
88405 2000-07-04  Jim Meyering  <meyering@lucent.com>
88406
88407         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88408         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88409         lacks mbrtowc.
88410
88411 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88412
88413         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88414         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88415
88416 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88417         and Bruno Haible  <haible@clisp.cons.org>
88418
88419         * lib/quotearg.c (mbrtowc):
88420         Assign to *pwc, and return 1 only if result is nonzero.
88421         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88422
88423 2000-07-03  Jim Meyering  <meyering@lucent.com>
88424
88425         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88426
88427 2000-07-03  Jim Meyering  <meyering@lucent.com>
88428
88429         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88430         This is necessary to get a definition of e.g., UTMP_FILE on
88431         HP-UX 10.20.
88432         From Bob Proulx.
88433
88434 2000-07-02  Jim Meyering  <meyering@lucent.com>
88435
88436         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88437
88438         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88439         AC_LIBOBJ(function_name).
88440         * m4/chown.m4: Likewise.
88441         * m4/fnmatch.m4: Likewise.
88442         * m4/ftruncate.m4: Likewise.
88443         * m4/getgroups.m4: Likewise.
88444         * m4/getline.m4: Likewise.
88445         * m4/group-member.m4: Likewise.
88446         * m4/jm-macros.m4: Likewise.
88447         * m4/lstat.m4: Likewise.
88448         * m4/malloc.m4: Likewise.
88449         * m4/memcmp.m4: Likewise.
88450         * m4/nanosleep.m4: Likewise.
88451         * m4/putenv.m4: Likewise.
88452         * m4/realloc.m4: Likewise.
88453         * m4/regex.m4: Likewise.
88454         * m4/stat.m4: Likewise.
88455         * m4/strftime.m4: Likewise.
88456
88457 2000-07-02  Jim Meyering  <meyering@lucent.com>
88458
88459         * lib/quotearg.c (mbstate_t): Don't define here.
88460
88461 2000-07-02  Jim Meyering  <meyering@lucent.com>
88462
88463         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88464
88465 2000-07-01  Jim Meyering  <meyering@lucent.com>
88466
88467         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88468
88469 2000-07-01  Jim Meyering  <meyering@lucent.com>
88470
88471         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88472         problem.
88473
88474 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88475
88476         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88477         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88478
88479 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88480
88481         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88482         per change in ../m4/ls-mntd-fs.m4.
88483         (read_filesystem_list): Ignore symbolic links.
88484
88485 2000-06-29  Jim Meyering  <meyering@lucent.com>
88486
88487         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88488         for declaration of strcmp.
88489
88490         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88491
88492         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88493         Avoid warning by casting result to `char *' to remove `const'.
88494
88495 2000-06-28  Jim Meyering  <meyering@lucent.com>
88496
88497         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88498         included by quotearg.c, for which we perform this test.  From
88499         Bruno Haible.
88500
88501 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88502
88503         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88504         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88505         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88506
88507 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88508
88509         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88510
88511 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88512
88513         savedir now sets errno on failure and invokes xmalloc to get memory.
88514         Fix a couple of other minor bugs while we're at it.
88515
88516         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88517         (NAMLEN): Remove macro.
88518         (malloc, realloc): Remove decls.
88519         (stpcpy): Likewise.
88520         ("xalloc.h"): Include.
88521         (NAME_SIZE_DEFAULT): New macro.
88522         (savedir): Use xmalloc / xrealloc to allocate memory.
88523         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88524         Skip "" directory entries.
88525         Use strlen to calculate directory entry length, since the old method
88526         is rarely used these days and isn't worth supporting.
88527         Don't use a pointer after freeing it.
88528         Check for integer overflow when calculating allocation size.
88529         Use memcpy to copy entries, instead of stpcpy.
88530         Set errno properly when returning NULL.
88531         Check for readdir error.
88532
88533 2000-06-26  Jim Meyering  <meyering@lucent.com>
88534
88535         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88536
88537 2000-06-25  Jim Meyering  <meyering@lucent.com>
88538
88539         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88540         Linux header bug when _XOPEN_SOURCE is defined to 500.
88541
88542 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88543
88544         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88545         deficiency.
88546
88547 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88548
88549         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88550         Include xalloc.h.
88551         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88552
88553 2000-06-24  Jim Meyering  <meyering@lucent.com>
88554
88555         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88556         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88557         for which strerror does return char*, but which lacks a conveniently
88558         accessible declaration of the function.  If the compile-test says
88559         strerror_r doesn't work, then resort to a `run'-test that works on
88560         BeOS and segfaults on DEC Unix.
88561
88562 2000-06-24  Jim Meyering  <meyering@lucent.com>
88563
88564         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88565
88566 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88567
88568         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88569         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88570
88571 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88572
88573         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88574         (mbrtowc, mbstate_t): Define substitutes if
88575         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88576         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88577         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88578
88579 2000-06-23  Jim Meyering  <meyering@lucent.com>
88580
88581         * m4/afs.m4: Add missing AC_MSG_RESULT.
88582         Reported by Bruno Haible.
88583
88584         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88585         Suggestion from Bruno Haible.
88586
88587 2000-06-23  Jim Meyering  <meyering@lucent.com>
88588
88589         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88590
88591 2000-06-21  Jim Meyering  <meyering@lucent.com>
88592
88593         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88594
88595 2000-06-21  Jim Meyering  <meyering@lucent.com>
88596
88597         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88598         (noinst_HEADERS): Add getstr.h.
88599
88600         * lib/getline.c (getstr): Move into a separate file.
88601         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88602         the following changes: new parameter, delim2; both delim[12]
88603         parameters have type `int', not `char'.  The latter would lose
88604         with 8-bit delimiters.
88605         * lib/getstr.h: New file.
88606
88607 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88608
88609         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88610         than 1024, return a memory chunk of least possible size, instead
88611         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88612         Use free/xmalloc instead of xrealloc to avoid copying for very long
88613         paths.
88614
88615 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88616
88617         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88618         the empty string.
88619
88620 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88621
88622         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88623         address, not strdup.  Include <stdlib.h> and don't declare free().
88624
88625 2000-06-19  Jim Meyering  <meyering@lucent.com>
88626
88627         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88628
88629 2000-06-18  Jim Meyering  <meyering@lucent.com>
88630
88631         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88632
88633         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88634         `checking whether...' message to be consistent with that of the
88635         lstat test.
88636
88637 2000-06-18  Jim Meyering  <meyering@lucent.com>
88638
88639         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88640         Besides, these days every porting target provides a mkdir function.
88641
88642         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88643         needed. (this snippet comes from src/system.h).
88644
88645 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88646
88647         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88648
88649 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88650
88651         * lib/human.c (adjust_value): New function.
88652         (human_readable_inexact): Apply rounding style even when
88653         printing approximate values.
88654
88655 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88656
88657         * lib/human.c (human_readable_inexact): Allow an input block
88658         size that is not a multiple of the output block size, and vice versa.
88659         Reported by Piergiorgio Sartor.
88660
88661 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88662
88663         * lib/getdate.y (get_date): Apply relative times after time
88664         zone indicator, not before.  Reported by Todd A. Jacobs.
88665
88666 2000-06-13  Jim Meyering  <meyering@lucent.com>
88667
88668         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88669
88670         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88671
88672 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88673
88674         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88675
88676 2000-06-12  Jim Meyering  <meyering@lucent.com>
88677
88678         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88679         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88680         optional argument.
88681         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88682         the optional argument, `lib'.
88683
88684 2000-06-08  Jim Meyering  <meyering@lucent.com>
88685
88686         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88687
88688 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88689
88690         Rewrite largefile configuration so that we don't need to run
88691         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88692         AC_CANONICAL_HOST in configure.in -- jmm]
88693
88694         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88695         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88696         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88697         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88698         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88699         All uses changed.
88700         Instead of inspecting the output of getconf, try to compile the
88701         test program without and with the macro definition.
88702         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88703         for getconf.  Instead, check for the needed flags by compiling
88704         test programs.
88705
88706 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88707
88708         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88709
88710 2000-06-04  Jim Meyering  <meyering@lucent.com>
88711
88712         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88713         SunOS 4.1.4 for which gid_t is an unsigned type.
88714
88715 2000-06-03  Jim Meyering  <meyering@lucent.com>
88716
88717         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88718         now that autoconf requires that.
88719
88720         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88721         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88722         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88723
88724 2000-06-03  Jim Meyering  <meyering@lucent.com>
88725
88726         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88727
88728 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88729
88730         * m4/glibc21.m4: New file.
88731         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88732
88733 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88734
88735         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88736         newer, don't install charset.alias.
88737         * lib/config.charset: Change the Linux/glibc rules so they become empty
88738         on glibc-2.1 or newer.
88739
88740 2000-06-02  Jim Meyering  <meyering@lucent.com>
88741
88742         * lib/mountlist.c: Back out last change.  Instead, do this...
88743         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88744         me_dummy member using the same `ignore'-testing code.
88745         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88746         fs_type strings.
88747         From Mark D. Roth.
88748
88749 2000-05-29  Jim Meyering  <meyering@lucent.com>
88750
88751         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88752         mounts with the `ignore' attribute.  Based on a patch from
88753         Mark D. Roth.
88754
88755 2000-05-28  Jim Meyering  <meyering@lucent.com>
88756
88757         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88758         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88759         * m4/stat.m4: Likewise.
88760         * m4/lstat.m4: Likewise.
88761         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88762
88763         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88764         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88765
88766 2000-05-26  Jim Meyering  <meyering@lucent.com>
88767
88768         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88769
88770 2000-05-24  Jim Meyering  <meyering@lucent.com>
88771
88772         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88773         autoconf requires that.
88774         * m4/lib-check.m4: Likewise.
88775         * m4/jm-macros.m4: Likewise.
88776         * m4/strftime.m4: Likewise.
88777
88778         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88779         AC_CHECK_DECLS, now that autoconf requires that.
88780
88781 2000-05-22  Jim Meyering  <meyering@lucent.com>
88782
88783         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88784         * m4/lstat.m4: Likewise.
88785
88786 2000-05-22  Jim Meyering  <meyering@lucent.com>
88787
88788         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88789
88790 2000-05-20  Jim Meyering  <meyering@lucent.com>
88791
88792         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88793         (jm_PREREQ): Use it.
88794
88795 2000-05-18  Jim Meyering  <meyering@lucent.com>
88796
88797         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88798         back, too, since it may have been modified by allocate_entry.
88799         (hash_delete): Rewrite to use neither the assignment operator
88800         nor the comma operator in an if-expression.
88801
88802 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88803
88804         * lib/closeout.c:
88805         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88806         Remove; no longer needed.
88807         "quotearg.h": Add include.
88808         (file_name): Do not bother to explicitly initialize to NULL; it's less
88809         efficient on some hosts.
88810         (close_stdout_status): Remove test as to whether stdout was already
88811         closed; it breaks for the case "echo x | sort >&-".
88812         Quote file name colons.
88813         Do not assume that _("write error") lacks format strings.
88814
88815 2000-05-15  Jim Meyering  <meyering@lucent.com>
88816
88817         * lib/version-etc.c (version_etc_copyright): Update the copyright
88818         string used in all --version output.
88819
88820 2000-05-14  Jim Meyering  <meyering@lucent.com>
88821
88822         * lib/closeout.c (close_stdout_set_file_name): New function.
88823         (close_stdout_status): Use new file-scoped global.
88824         Return right away if fstat says the stdout file descriptor is invalid.
88825         * lib/closeout.h (close_stdout_set_file_name): Declare.
88826
88827 2000-05-10  Jim Meyering  <meyering@lucent.com>
88828
88829         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88830         (close_stdout_set_status): New function.
88831         * lib/closeout.h (close_stdout_set_status): Declare.
88832
88833 2000-05-09  Jim Meyering  <meyering@lucent.com>
88834
88835         * m4/gettext.m4: Rename this...
88836         * m4/libintl.m4: ...to this.
88837
88838 2000-05-08  Jim Meyering  <meyering@lucent.com>
88839
88840         * lib/long-options.c: Don't include closeout.h.
88841         (parse_long_options): Don't call close_stdout for --version.
88842
88843 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88844
88845         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88846         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88847         2.1.3 bug.  This avoids a clash when files like regex.c define
88848         _GNU_SOURCE.
88849
88850 2000-05-06  Jim Meyering  <meyering@lucent.com>
88851
88852         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88853         (AC_REPLACE_FUNCS): Add strnlen.
88854
88855         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88856         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88857
88858         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88859         AC_SEARCH_LIBS call for nanosleep.
88860         (LIB_NANOSLEEP): Set and AC_SUBST.
88861
88862 2000-05-06  Jim Meyering  <meyering@lucent.com>
88863
88864         * lib/strnlen.c: Undefine __strnlen and strnlen.
88865         [!weak_alias]: Define __strnlen to strnlen.
88866
88867         * lib/atexit.c: New file, from libiberty.
88868
88869 2000-05-06  Jim Meyering  <meyering@lucent.com>
88870
88871         * lib/closeout.c (close_stdout_status): Also check for errors on the
88872         stderr stream.
88873
88874 2000-05-05  Jim Meyering  <meyering@lucent.com>
88875
88876         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88877         AC_SEARCH_LIBS call for clock_gettime.
88878         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88879
88880         * m4/search-libs.m4: Update from autoconf.
88881
88882         su doesn't work on Solaris 2.6.
88883         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88884         <shadow.h>.  Reported by Dragos Harabor.
88885
88886 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88887
88888         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88889         memcpy instead of xmalloc, xrealloc, path_concat.
88890         (locale_charset): Treat empty environment variables as absent.
88891         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88892
88893 2000-05-04  Jim Meyering  <meyering@lucent.com>
88894
88895         * lib/getopt.c: Update from glibc.
88896         * lib/obstack.c: Likewise.
88897         * lib/obstack.h: Likewise.
88898         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88899         file
88900
88901         * lib/regex.h: Likewise.
88902         * lib/strndup.c: Likewise.
88903         * lib/strnlen.c: New file, from glibc.
88904
88905 2000-05-03  Jim Meyering  <meyering@lucent.com>
88906
88907         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88908
88909 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88910
88911         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88912         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88913         compile-time test, rather than inspecting host and OS, to
88914         decide whether to define _LARGEFILE_SOURCE.
88915
88916 2000-05-01  Jim Meyering  <meyering@lucent.com>
88917
88918         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88919
88920         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88921         Based on a patch from Bruno Haible.
88922
88923 2000-05-01  Jim Meyering  <meyering@lucent.com>
88924
88925         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88926
88927 2000-04-29  Jim Meyering  <meyering@lucent.com>
88928
88929         * lib/path-concat.c: Declare strdup only if it's not defined.
88930         * lib/canon-host.c: Likewise.
88931
88932 2000-04-28  Jim Meyering  <meyering@lucent.com>
88933
88934         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88935         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88936         is included first, then limits.h is included by locale.h by libintl.h.
88937         From John David Anglin.
88938
88939 2000-04-25  Jim Meyering  <meyering@lucent.com>
88940
88941         * lib/makepath.c (S_IRWXUGO): Define.
88942         (make_path): Always perform explicit chmod if MODE specifies any
88943         of the `special' permission bits.  Prompted by a bug report against
88944         install from Mate Wierdl and Joost van Baal.
88945
88946 2000-04-18  Jim Meyering  <meyering@lucent.com>
88947
88948         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88949         (jm_PREREQ): Use it.
88950
88951 2000-04-18  Jim Meyering  <meyering@lucent.com>
88952
88953         * lib/README: New file.
88954
88955         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88956         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88957
88958 2000-04-17  Jim Meyering  <meyering@lucent.com>
88959
88960         Get it right :-)
88961         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88962         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88963         Suggestion from Akim Demaille.
88964
88965 2000-04-17  Jim Meyering  <meyering@lucent.com>
88966
88967         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88968         the definition of it to rpl_strftime also defined-away the system's
88969         declaration.
88970
88971 2000-04-15  Jim Meyering  <meyering@lucent.com>
88972
88973         Use `C' to denote so-called `contiguous' files, the same way
88974         that tar does.
88975         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88976         (ftypelet): Use S_ISCTG.
88977         From Michael Deutschmann.
88978
88979 2000-04-14  Jim Meyering  <meyering@lucent.com>
88980
88981         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88982         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88983         clobbered.
88984
88985 2000-04-14  Jim Meyering  <meyering@lucent.com>
88986
88987         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88988
88989 2000-04-13  Jim Meyering  <meyering@lucent.com>
88990
88991         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88992         AH_VERBATIM to insert required #ifndef into config.h.in.
88993         Suggestion from Akim Demaille.
88994
88995 2000-04-12  Jim Meyering  <meyering@lucent.com>
88996
88997         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88998         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88999         Christian Krackowizer.
89000
89001         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89002         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89003         (AC_SYS_LARGEFILE): Require.
89004         (AM_C_PROTOTYPES): Require.
89005
89006 2000-04-08  Jim Meyering  <meyering@lucent.com>
89007
89008         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89009         names don't conflict.  Reported by Eli Zaretskii.
89010
89011 2000-04-07  Jim Meyering  <meyering@lucent.com>
89012
89013         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89014         sys/types.h, to work around system header problems on AIX 3.2.5.
89015         From Bruno Haible.
89016
89017 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89018
89019         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89020         bug.  Deal with the different error behavior of Irix iconv.
89021
89022 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89023
89024         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89025         IRIX if the installer said otherwise.
89026
89027 2000-04-05  Jim Meyering  <meyering@lucent.com>
89028
89029         Portability tweaks required for ultrix4.3.
89030         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89031         (jm_CHECK_DECLS): Add getutent to the list of functions.
89032         (_jm_DECL_HEADERS): Add utmpx.h.
89033         From John David Anglin.
89034
89035         * m4/strftime.m4: Back out the 2000-04-02 change.
89036         Instead of that change, simply undefine putenv in the test program.
89037
89038 2000-04-05  Jim Meyering  <meyering@lucent.com>
89039
89040         Portability tweaks required for ultrix4.3.
89041         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89042         getutent.
89043         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89044         * lib/canon-host.c: Declare strdup.
89045         * lib/path-concat.c: Likewise.
89046         From John David Anglin.
89047
89048 2000-04-04  Jim Meyering  <meyering@lucent.com>
89049
89050         Be more DOS 8.3-friendly.
89051         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89052         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89053         * lib/Makefile.am: Reflect renaming.
89054         Reported by Eli Zaretskii.
89055
89056         Use a temporary file name that won't clash with `charset.alias'
89057         in the DOS 8.3 name space.
89058         * lib/Makefile.am (charset_tmp): Define.
89059         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89060         (uninstall-local): Likewise.
89061         Reported by Eli Zaretskii.
89062
89063 2000-04-03  Jim Meyering  <meyering@lucent.com>
89064
89065         * m4/gettext.m4: Fix typo in comment.
89066
89067         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89068         textutils/configure.in).  Suggestion from Paul Eggert.
89069         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89070
89071 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89072
89073         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89074         variable in the shell rather than using putenv, which isn't
89075         portable.  This avoids the configure-time inter-test dependency
89076         on the potentially-renamed putenv function.
89077
89078 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89079
89080         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89081         before checking struct stat.st_blksize, so that
89082         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89083
89084 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89085
89086         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89087         since strftime.c uses HAVE_STRFTIME to decide whether to use
89088         the underlying strftime.
89089
89090 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89091
89092         * lib/time/strftime.c (my_strftime): Make sure we call the system
89093         strftime, not ourselves, when invoking the underlying strftime.
89094
89095 2000-03-24  Jim Meyering  <meyering@lucent.com>
89096
89097         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89098         (charset_alias): Define.
89099         (install-exec-local): Factor out common code.
89100         (uninstall-local): Split lines longer than 80.
89101         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89102         (SUFFIXES): Define.
89103         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89104         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89105
89106 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89107
89108         * lib/config.charset: Output a line containing "Packages using this
89109         file".
89110         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89111         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89112         ref-del.sed): New rules.
89113
89114 2000-03-17  Jim Meyering  <meyering@lucent.com>
89115
89116         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89117         Otherwise, include <strings.h>
89118
89119 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89120
89121         * lib/unicodeio.c (utf8_wctomb): New function.
89122         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89123         format instead of in UCS-4 with platform dependent endianness.
89124
89125 2000-03-10  Jim Meyering  <meyering@lucent.com>
89126
89127         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89128         From Marco Franzen.
89129
89130 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89131
89132         * lib/savedir.c (savedir): Work even if directory size is
89133         negative; this can happen with some screwy NFS configurations.
89134
89135 2000-03-06  Jim Meyering  <meyering@lucent.com>
89136
89137         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89138         if it's NULL (because we ran out of memory).  From Bruno Haible.
89139
89140 2000-03-05  Jim Meyering  <meyering@lucent.com>
89141
89142         * lib/localcharset.c ("path-concat.h"): Include.
89143         (get_charset_aliases): Use path_concat instead of ANSI string
89144         concatenation.
89145
89146         * lib/unicodeio.h (PARAMS): Define.
89147         Use it to guard prototype.
89148
89149 2000-03-04  Jim Meyering  <meyering@lucent.com>
89150
89151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89152         for lib/localcharset.c.
89153
89154 2000-03-04  Jim Meyering  <meyering@lucent.com>
89155
89156         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89157         installing into it.
89158         (uninstall-local): Uncomment this rule so `make distcheck' works
89159         once again.
89160
89161         * lib/unicodeio.c (<errno.h>): Include it.
89162         (errno): Declare if not defined.
89163
89164         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89165
89166         * lib/config.charset: New version, incorporating remarks from a linux
89167         i18n mailing list.  From Bruno Haible.
89168
89169 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89170
89171         * m4/codeset.m4: New file.
89172         * m4/iconv.m4: New file.
89173         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89174
89175 2000-03-03  Jim Meyering  <meyering@lucent.com>
89176
89177         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89178
89179 2000-03-02  Jim Meyering  <meyering@lucent.com>
89180
89181         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89182         the messages come out on separate lines.
89183
89184         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89185         rather than jm_CHECK_DECLARATIONS.
89186         * m4/decl.m4: Remove now-unused file.
89187
89188         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89189         geteuid.
89190
89191 2000-03-02  Jim Meyering  <meyering@lucent.com>
89192
89193         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89194
89195 2000-03-01  Jim Meyering  <meyering@lucent.com>
89196
89197         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89198         * lib/unicodeio.c: Likewise.
89199
89200 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89201
89202         * lib/config.charset: New file.
89203         * lib/localcharset.c: New file.
89204         * lib/unicodeio.h, lib/unicodeio.c: New files.
89205         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89206         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89207         (noinst_HEADERS): Add unicodeio.h.
89208         (all-local, install-exec-local, charset.alias): New targets.
89209
89210 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89211
89212         * lib/quotearg.c (ALERT_CHAR): New macro.
89213         (quotearg_buffer_restyled): Use it.
89214
89215 2000-02-27  Jim Meyering  <meyering@lucent.com>
89216
89217         * m4/check-decl.m4: Add getenv to the list.
89218
89219 2000-02-27  Jim Meyering  <meyering@lucent.com>
89220
89221         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89222         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89223
89224         * lib/backupfile.c: Guard inclusion of stdlib.h with
89225         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89226         Declare malloc if needed.
89227
89228         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89229         `#ifndef HAVE_DECL..'
89230         now that autoconf always defines the HAVE_DECL_ symbols.
89231         * lib/human.c: Likewise.
89232         * lib/same.c: Likewise.
89233         * lib/strtoumax.c: Likewise.
89234
89235         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89236         declaration check was not run.
89237         * lib/hash.c: Likewise.
89238         * lib/human.c: Likewise.
89239         * lib/same.c: Likewise.
89240         * lib/strtoumax.c: Likewise.
89241
89242         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89243         `.', then first look up the entire `.'-containing string as a login
89244         name.
89245
89246 2000-02-23  Jim Meyering  <meyering@lucent.com>
89247
89248         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89249         in place of my hack.
89250
89251 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89252
89253         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89254         (textint): New typedef.
89255         (parser_control): Member year changed from int to textint.
89256         All uses changed.
89257         (YYSTYPE): Removed; replaced by %union with int and textint members.
89258         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89259         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89260         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89261         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89262         (date, number, to_year): Use width of number in digits, not its value,
89263         to determine whether it's a 2-digit year, or a 2-digit time.
89264         (yylex): Store number of digits of numeric tokens.
89265         Reported by John Kendall.
89266
89267         (parser_control): Changed from struct parser_control to typedef (for
89268         consistency).  All uses changed.
89269
89270         (tID): Removed; not used.
89271         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89272
89273 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89274
89275         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89276         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89277
89278 2000-02-12  Jim Meyering  <meyering@lucent.com>
89279
89280         * lib/userspec.c (ISDIGIT): Define it.
89281         (isdigit): Remove definition.
89282         (is_number): Use ISDIGIT, not isdigit.
89283         <libintl.h>: Include.
89284         (_ and N_): Define.
89285         (parse_user_spec): Mark translatable strings.
89286
89287 2000-02-10  Jim Meyering  <meyering@lucent.com>
89288
89289         With these changes, nanosleep.[ch] are finally enough like the other
89290         lib/* replacement files to compile on a few more losing systems.
89291
89292         * lib/nanosleep.h: Don't include config.h.
89293         Remove prototype from declaration of nanosleep.
89294         (PARAMS): Remove now-unneeded definition.
89295         * lib/nanosleep.c: #undef nanosleep.
89296         (rpl_nanosleep): Rename from nanosleep.
89297
89298 2000-02-10  Jim Meyering  <meyering@lucent.com>
89299
89300         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89301         gnu_nanosleep to rpl_nanosleep.
89302
89303 2000-02-09  Jim Meyering  <meyering@lucent.com>
89304
89305         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89306         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89307
89308 2000-02-08  Akim Demaille  <akim@epita.fr>
89309
89310         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89311         `[' and `]' and remove uses of `changequote'.
89312         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89313         (AC_SYS_LARGEFILE): Likewise.
89314         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89315         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89316         of changequote.
89317         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89318         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89319         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89320         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89321
89322 2000-02-05  Jim Meyering  <meyering@lucent.com>
89323
89324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89325         Remove explicit use of AC_HEADER_TIME.  It is required by
89326         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89327         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89328         in autoconf whereby the expansion of the latter ended up preceding
89329         the expansion of its prerequisite, AC_HEADER_TIME.
89330         Reported by Volker Borchert.
89331
89332 2000-02-03  Jim Meyering  <meyering@lucent.com>
89333
89334         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89335
89336 2000-02-03  Jim Meyering  <meyering@lucent.com>
89337
89338         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89339         rather than with `#if HAVE_UTMPNAME'.
89340
89341 2000-02-02  Jim Meyering  <meyering@lucent.com>
89342
89343         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89344         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89345         Reported by Eli Zaretskii.
89346
89347 2000-02-01  Jim Meyering  <meyering@lucent.com>
89348
89349         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89350
89351 2000-01-31  Jim Meyering  <meyering@lucent.com>
89352
89353         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89354         functions.  Add the time.h and sys/time.h headers along with the
89355         AC_REQUIRE'ment of AC_HEADER_TIME.
89356
89357 2000-01-31  Jim Meyering  <meyering@lucent.com>
89358
89359         * lib/nanosleep.h (nanosleep): Guard declaration with
89360         `#if ! HAVE_DECL_NANOSLEEP'.
89361         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89362         the declaration in that vendor's sys/timers.h.
89363         Reported by Christian Krackowizer.
89364
89365         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89366         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89367         (ISPRINT): Likewise.
89368         Reported by Tom Tromey.
89369
89370 2000-01-30  Jim Meyering  <meyering@lucent.com>
89371
89372         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89373
89374         * m4/prereq.m4 (utmp_includes): Define.
89375         Check for ut_user and ut_name members in both struct utmpx
89376         and struct utmp.
89377
89378 2000-01-30  Jim Meyering  <meyering@lucent.com>
89379
89380         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89381         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89382         header files where only utmpx.ut_user is declared.
89383
89384         * lib/readutmp.h (UT_USER): Define.
89385
89386 2000-01-29  Jim Meyering  <meyering@lucent.com>
89387
89388         * m4/lib-check.m4: New file containing library-related checks from
89389         fileutils and sh-utils (textutils had none).
89390
89391 2000-01-28  Jim Meyering  <meyering@lucent.com>
89392
89393         * m4/perl.m4: Change format of warning message to look more like that
89394         from the missing script.  Suggestion from François Pinard.
89395
89396 2000-01-25  Jim Meyering  <meyering@lucent.com>
89397
89398         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89399         well as time.h in the compile check.
89400         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89401         Fix typo in cross-compiling case: s/yes/no/.
89402
89403 2000-01-23  Jim Meyering  <meyering@lucent.com>
89404
89405         * m4/jm-macros.m4: Move df-related tests here from
89406         fileutils/configure.in
89407
89408         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89409         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89410
89411         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89412         s/space/ac_fsusage_space/.
89413         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89414
89415         * m4/ftruncate.m4: New file (derived from part of
89416         fileutils/configure.in).
89417         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89418         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89419
89420         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89421         AC_SUBST these here, rather than just in sh-util/configure.in, so
89422         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89423         all the same.
89424         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89425         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89426         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89427         (AC_SUBST(POW_LIBM)): Likewise.
89428         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89429
89430 2000-01-23  Jim Meyering  <meyering@lucent.com>
89431
89432         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89433         obstack.c.
89434
89435 2000-01-22  Jim Meyering  <meyering@lucent.com>
89436
89437         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89438
89439         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89440
89441         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89442         configure.in
89443         (AC_CHECK_HEADERS): Likewise for sh-utils.
89444         (AC_CHECK_HEADERS): Likewise for textutils.
89445         Merge the three lists of headers.
89446
89447         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89448         from fileutils' configure.in.
89449
89450         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89451         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89452         check-decl.m4.
89453
89454         * m4/check-decl.m4: Use #if rather than #ifdef.
89455         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89456         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89457         (_jm_DECL_HEADERS): Define new function.
89458         (jm_CHECK_DECLARATIONS): Require it.
89459
89460 2000-01-22  Jim Meyering  <meyering@lucent.com>
89461
89462         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89463         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89464         Required for some AIX systems.  Reported by Christian Krackowizer.
89465         [TESTING] (main): New function.
89466
89467         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89468         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89469         letters.
89470
89471         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89472         iswprint.
89473
89474         * lib/strverscmp.c (ISDIGIT): Define.
89475         (strverscmp): Use ISDIGIT, not isdigit.
89476
89477 2000-01-19  Jim Meyering  <meyering@lucent.com>
89478
89479         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89480         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89481         defines `struct timespec' in <sys/time.h>
89482
89483         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89484         Thanks to Akim for explaining.
89485
89486 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89487
89488         * lib/nanosleep.c (nanosleep):
89489         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89490         POSIX.1 doesn't require SA_INTERRUPT and some systems
89491         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89492         it's been part of POSIX.1 since day 1 (in 1988).
89493
89494 2000-01-17  Jim Meyering  <meyering@lucent.com>
89495
89496         * lib/interlock: Remove unused file.  Reported by François Pinard.
89497
89498 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89499
89500         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89501         alert, backslash, formfeed, and vertical tab unnecessarily in
89502         shell quoting style.
89503
89504 2000-01-16  Jim Meyering  <meyering@lucent.com>
89505
89506         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89507         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89508         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89509         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89510
89511 2000-01-16  Jim Meyering  <meyering@lucent.com>
89512
89513         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89514         because the latter didn't work.
89515
89516 2000-01-15  Jim Meyering  <meyering@lucent.com>
89517
89518         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89519         (AC_REPLACE_FUNCS): Add memcpy and memset.
89520         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89521         Add strpbrk.
89522         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89523
89524 2000-01-12  Jim Meyering  <meyering@lucent.com>
89525
89526         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89527         (jm_PREREQ): Use it.
89528         (jm_PREREQ_READUTMP): New macro.
89529         (jm_PREREQ): Use it.
89530
89531 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89532
89533         Quote multibyte characters correctly.
89534         * m4/c-bs-a.m4: New file.
89535         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89536         (jm_PREREQ): Use it.
89537
89538 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89539
89540         * m4/uintmax_t.m4: Port to autoconf 2.13.
89541
89542 2000-01-08  Jim Meyering  <meyering@ascend.com>
89543
89544         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89545         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89546
89547 2000-01-04  Jim Meyering  <meyering@ascend.com>
89548
89549         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89550         jm_STRUCT_DIRENT_D_TYPE.
89551         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89552         jm_STRUCT_DIRENT_D_INO.
89553         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89554         jm_STRUCT_UTIMBUF.
89555         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89556         renamings.
89557         * m4/utime.m4: Likewise.
89558
89559         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89560         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89561
89562 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89563
89564         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89565         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89566
89567 2000-01-02  Jim Meyering  <meyering@ascend.com>
89568
89569         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89570         remember if this is necessary.
89571
89572 1999-12-26  Jim Meyering  <meyering@ascend.com>
89573
89574         * m4/jm-macros.m4: Use it here.
89575         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89576
89577 1999-12-23  Jim Meyering  <meyering@ascend.com>
89578
89579         * m4/jm-macros.m4: Check for clock_gettime (moved from
89580         fileutils/configure.in)
89581         Check for gettimeofday.
89582
89583 1999-12-20  Jim Meyering  <meyering@ascend.com>
89584
89585         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89586         autoconf-2.14a-1999-12-20.
89587
89588 1999-12-19  Jim Meyering  <meyering@ascend.com>
89589
89590         * m4/lstat-slash.m4: New file.
89591         * m4/jm-macros.m4: Use the new macro:
89592         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89593
89594 1999-12-07  Jim Meyering  <meyering@ascend.com>
89595
89596         * m4/perl.m4: Require that File::Compare be available, too.
89597         Too many systems seem to lack it.
89598
89599         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89600         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89601
89602 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89603
89604         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89605         problem with the QNX 4.25 shell, which doesn't propagate exit
89606         status of failed commands inside shell assignments.
89607
89608 1999-11-17  Jim Meyering  <meyering@ascend.com>
89609
89610         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89611
89612 1999-11-07  Jim Meyering  <meyering@ascend.com>
89613
89614         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89615
89616 1999-11-06  Jim Meyering  <meyering@ascend.com>
89617
89618         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89619         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89620
89621 1999-11-05  Jim Meyering  <meyering@ascend.com>
89622
89623         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89624         configure.in of textutils, fileutils, and sh-utils into this one
89625         (shared between those packages) file.
89626         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89627         AC_STRUCT_ST_BLKSIZE.
89628
89629 1999-11-03  Jim Meyering  <meyering@ascend.com>
89630
89631         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89632         of AC_CHECK_TYPE checks includes unistd.h.
89633         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89634         Suggestion from Akim Demaille.
89635
89636 1999-10-30  Jim Meyering  <meyering@ascend.com>
89637
89638         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89639         m4-quoted string.
89640         * m4/ls-mntd-fs.m4: Likewise.
89641         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89642         * m4/jm-winsz1.m4: Likewise.
89643
89644         * m4/const.m4: Remove file, since the fix made it into the experimental
89645         version of autoconf.
89646         * m4/mktime.m4: Likewise.
89647
89648         * m4/check-type.m4: Remove file, now that the latest version of
89649         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89650
89651         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89652         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89653         AC_CHECK_TYPE.
89654
89655 1999-10-04  Jim Meyering  <meyering@ascend.com>
89656
89657         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89658
89659 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89660
89661         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89662         2.95.1 bug with HP-UX 10.20.
89663
89664 1999-09-17  Jim Meyering  <meyering@ascend.com>
89665
89666         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89667         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89668         due to missing strdup (against sh-utils-2.0).
89669
89670 1999-08-29  Jim Meyering  <meyering@ascend.com>
89671
89672         * m4/jm-macros.m4: Require jm_BISON.
89673         * m4/bison.m4: New file.
89674
89675 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89676
89677         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89678         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89679
89680 1999-08-05  Jim Meyering  <meyering@ascend.com>
89681
89682         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89683         to avoid conflicts with `conftest' on 8+3 filesystems.
89684         Suggestion from Eli Zaretskii.
89685
89686 1999-08-04  Jim Meyering  <meyering@ascend.com>
89687
89688         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89689         fileutils and sh-utils (textutils's getline test was inadequate).
89690         (AM_FUNC_GETLINE): Run this test.
89691         (AC_CHECK_FUNCS): Check for getdelim.
89692         Reported by Bob Proulx.
89693
89694 1999-08-02  Jim Meyering  <meyering@ascend.com>
89695
89696         * m4/jm-macros.m4: Add a comment.
89697
89698 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89699
89700         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89701         <inttypes.h> defines strtoumax as a macro (and not as a
89702         function).
89703
89704 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89705
89706         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89707         that we can shift, multiply and divide unsigned long long
89708         values; Ultrix cc can't do it.
89709
89710 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89711
89712         * m4/mktime.m4: New file, which is a preview of what should appear
89713         in the next public autoconf release.
89714
89715 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89716
89717         * m4/lfs.m4: Remove this file.
89718         * m4/largefile.m4: New file.  It contains the old contents of
89719         lfs.m4, except that all names with prefix AC_LFS have been
89720         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89721         compatible with future autoconf versions.  Also, some minor m4
89722         quoting problems have been fixed.
89723
89724 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89725
89726         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89727         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89728         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89729         and simplify the shell code.
89730
89731 1999-08-01  Jim Meyering  <meyering@ascend.com>
89732
89733         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89734         m4.
89735
89736 1999-07-20  Jim Meyering  <meyering@ascend.com>
89737
89738         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89739
89740 1999-07-15  Jim Meyering  <meyering@ascend.com>
89741
89742         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89743
89744 1999-05-22  Jim Meyering  <meyering@ascend.com>
89745
89746         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89747
89748 1999-05-20  Jim Meyering  <meyering@ascend.com>
89749
89750         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89751         Add a colon after each `then' in case $4 is empty.
89752
89753 1999-05-16  Jim Meyering  <meyering@ascend.com>
89754
89755         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89756
89757 1999-05-10  Jim Meyering  <meyering@ascend.com>
89758
89759         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89760
89761         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89762         AC_FUNC_MKTIME.
89763
89764 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89765
89766         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89767
89768 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89769
89770         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89771         not CPPFLAGS, so that linking works correctly in IRIX.
89772
89773 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89774
89775         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89776
89777 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89778
89779         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89780         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89781         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89782         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89783         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89784
89785         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89786
89787 1999-04-20  Jim Meyering  <meyering@ascend.com>
89788
89789         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89790         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89791         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89792
89793 1999-04-18  Jim Meyering  <meyering@ascend.com>
89794
89795         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89796         * m4/jm-macros.m4: Use it.
89797
89798 1999-04-06  Jim Meyering  <meyering@ascend.com>
89799
89800         * m4/strftime.m4: Remove test for %f.
89801
89802 1999-03-29  Jim Meyering  <meyering@ascend.com>
89803
89804         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89805         superset of the AC_TYPE_* checks in the textutils, fileutils,
89806         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89807         AC_TYPE_PID_T.
89808
89809 1999-03-28  Jim Meyering  <meyering@ascend.com>
89810
89811         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89812         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89813         replaced e.g., in the *.sh files of the sh-utils.
89814
89815 1999-03-20  Jim Meyering  <meyering@ascend.com>
89816
89817         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89818         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89819         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89820
89821 1999-03-19  Jim Meyering  <meyering@ascend.com>
89822
89823         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89824
89825 1999-03-12  Jim Meyering  <meyering@ascend.com>
89826
89827         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89828
89829 1999-03-07  Jim Meyering  <meyering@ascend.com>
89830
89831         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89832         declared.
89833
89834 1999-02-17  Jim Meyering  <meyering@ascend.com>
89835
89836         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89837         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89838
89839 1999-02-07  Jim Meyering  <meyering@ascend.com>
89840
89841         * m4/group-member.m4: New file -- extracted from sh-utils'
89842         configure.in.
89843
89844         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89845         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89846
89847 1999-02-06  Jim Meyering  <meyering@ascend.com>
89848
89849         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89850         * m4/fnmatch.m4: Likewise.
89851         * m4/getgroups.m4: Likewise.
89852         * m4/lstat.m4: Likewise.
89853         * m4/malloc.m4: Likewise.
89854         * m4/putenv.m4: Likewise.
89855         * m4/realloc.m4: Likewise.
89856         * m4/regex.m4: Likewise.
89857         * m4/stat.m4: Likewise.
89858         * m4/strftime.m4: Likewise.
89859         Suggestion from Alain Magloire.
89860
89861         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89862         * m4/fnmatch.m4: Likewise.
89863         * m4/getgroups.m4: Likewise.
89864         * m4/getline.m4: Likewise.
89865         * m4/lstat.m4: Likewise.
89866         * m4/malloc.m4: Likewise.
89867         * m4/memcmp.m4: Likewise.
89868         * m4/putenv.m4: Likewise.
89869         * m4/realloc.m4: Likewise.
89870         * m4/regex.m4: Likewise.
89871         * m4/stat.m4: Likewise.
89872         * m4/strftime.m4: Likewise.
89873         Suggestion from Alain Magloire.
89874
89875         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89876         an argument.
89877
89878         * m4/regex.m4: Add a run-time Test for proper operation of
89879         re_compile_pattern.
89880
89881 1999-01-31  Jim Meyering  <meyering@ascend.com>
89882
89883         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89884
89885 1999-01-30  Jim Meyering  <meyering@ascend.com>
89886
89887         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89888
89889         * m4/jm-mktime.m4: Make this a wrapper around the official
89890         AM_FUNC_MKTIME rather than my private copy, now that the official one
89891         is up to date.
89892         * m4/mktime.m4: Remove file.
89893
89894         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89895         * m4/uptime.m4: Likewise.
89896         * m4/uintmax_t.m4: Likewise.
89897
89898 1999-01-28  Jim Meyering  <meyering@ascend.com>
89899
89900         * m4/jm-macros.m4: Use jm_AFS.
89901         * m4/afs.m4: New file (from fileutils' configure.in).
89902
89903         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89904         * m4/chown.m4: Likewise.
89905         * m4/d-ino.m4: Likewise.
89906         * m4/d-type.m4: Likewise.
89907         * m4/fnmatch.m4: Likewise.
89908         * m4/getgroups.m4: Likewise.
89909         * m4/gettext.m4: Likewise.
89910         * m4/jm-mktime.m4: Likewise.
89911         * m4/jm-winsz2.m4: Likewise.
89912         * m4/lcmessage.m4: Likewise.
89913         * m4/ls-mntd-fs.m4: Likewise.
89914         * m4/malloc.m4: Likewise.
89915         * m4/memcmp.m4: Likewise.
89916         * m4/putenv.m4: Likewise.
89917         * m4/realloc.m4: Likewise.
89918         * m4/st_mtim.m4: Likewise.
89919         * m4/strftime.m4: Likewise.
89920
89921 1999-01-16  Jim Meyering  <meyering@ascend.com>
89922
89923         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89924         (ARGMATCH_DIE_DECL): Define.
89925
89926 1999-01-12  Jim Meyering  <meyering@ascend.com>
89927
89928         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89929         Reported by Lars Hecking.
89930
89931 1999-01-10  Jim Meyering  <meyering@ascend.com>
89932
89933         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89934         gross kludge.
89935         * m4/inttypes_h.m4: Likewise.
89936         * m4/lstat.m4: Likewise.
89937         * m4/malloc.m4: Likewise.
89938         * m4/readdir.m4: Likewise.
89939         * m4/realloc.m4: Likewise.
89940         * m4/st_dm_mode.m4: Likewise.
89941         * m4/stat.m4: Likewise.
89942         * m4/utimbuf.m4: Likewise.
89943         * m4/utimes.m4: Likewise.
89944
89945         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89946         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89947         comments in config.h.in are meaningful.
89948
89949         * m4/jm-macros.m4: Require autoconf-2.13 here.
89950
89951         * m4/regex.m4: By default, don't use the included regex.c on systems
89952         with glibc 2.  Suggestion from Uli Drepper.
89953
89954 1999-01-02  Jim Meyering  <meyering@ascend.com>
89955
89956         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89957
89958 1998-12-18  Jim Meyering  <meyering@ascend.com>
89959
89960         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89961         Based on a suggestion from Lars Hecking.
89962
89963 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89964
89965         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89966
89967 1998-11-16  Jim Meyering  <meyering@ascend.com>
89968
89969         * m4/lfs.m4: Double-quote the `uname...` expression.
89970
89971 1998-11-14  Jim Meyering  <meyering@ascend.com>
89972
89973         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89974         * m4/stat.m4: Likewise.
89975
89976 1998-11-03  Jim Meyering  <meyering@ascend.com>
89977
89978         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89979         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89980
89981 1998-10-18  Jim Meyering  <meyering@ascend.com>
89982
89983         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89984
89985 1998-10-17  Jim Meyering  <meyering@ascend.com>
89986
89987         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89988         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89989         calls for those previously hard-coded headers.  Instead, take a new
89990         parameter.
89991         (jm_CHECK_DECLARATIONS): Reflect interface change.
89992         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89993         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89994
89995         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89996
89997 1998-10-14  Jim Meyering  <meyering@ascend.com>
89998
89999         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90000         instead of "TZ=America/Vancouver".  From Paul Eggert.
90001
90002 1998-10-11  Jim Meyering  <meyering@ascend.com>
90003
90004         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90005         This adds a test for a recently added compatibility fix for mktime.c.
90006         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90007
90008 1998-09-27  Jim Meyering  <meyering@ascend.com>
90009
90010         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90011
90012         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90013         ../configure.in, including a change from Gordon Matzigkeit to allow
90014         cross-compiling for the Hurd.
90015
90016         * m4/glibc.m4: New file/macro to test for the GNU C Library
90017         versions 1 and 2.  From Gordon Matzigkeit.
90018         Indent.
90019
90020 1998-09-21  Jim Meyering  <meyering@ascend.com>
90021
90022         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90023
90024 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90025
90026         Port nanosecond-resolution times to UnixWare 2.1.2 and
90027         pedantic Solaris 2.6.
90028
90029         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90030         AC_STRUCT_ST_MTIM.
90031         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90032         Generate name of ns member, instead of just 1 or undef.
90033         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90034
90035 1998-08-15  Jim Meyering  <meyering@ascend.com>
90036
90037         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90038         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90039         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90040         instead of jm_TYPE_SSIZE_T.
90041
90042 1998-08-12  Jim Meyering  <meyering@ascend.com>
90043
90044         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90045
90046 1998-08-02  Jim Meyering  <meyering@ascend.com>
90047
90048         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90049         in acconfig.h manually.
90050
90051 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90052
90053         * m4/st_mtim.m4: New file.
90054
90055 1998-07-28  Jim Meyering  <meyering@ascend.com>
90056
90057         * m4/utimes.m4: Undef stat.
90058
90059 1998-07-25  Jim Meyering  <meyering@ascend.com>
90060
90061         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90062         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90063
90064 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90065
90066         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90067         uid and gid actually remain unchanged.
90068
90069 1998-07-07  Jim Meyering  <meyering@ascend.com>
90070
90071         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90072
90073 1998-07-04  Jim Meyering  <meyering@ascend.com>
90074
90075         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90076         to prove that this macro can be used in packages without regex.c.
90077
90078 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90079
90080         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90081         is to be used.
90082
90083 1998-07-03  Jim Meyering  <meyering@ascend.com>
90084
90085         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90086
90087         * m4/gettext.m4: New file -- from gettext-0.10.35.
90088         * m4/lcmessage.m4: Likewise.
90089         * m4/progtest.m4: Likewise.
90090
90091         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90092         * m4/jm-macros.m4: Require the new macro.
90093
90094 1998-06-29  Jim Meyering  <meyering@ascend.com>
90095
90096         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90097         for the definition of NGROUPS (used in a system header included
90098         by sys/mount.h).
90099
90100 1998-06-28  Jim Meyering  <meyering@ascend.com>
90101
90102         * m4/ls-mntd-fs.m4: New file.
90103         * m4/fstypename.m4: New file.
90104
90105         * m4/jm-macros.m4: Require the new macro.
90106         * m4/jm-glibc-io.m4: New file.
90107
90108 1998-05-19  Jim Meyering  <meyering@ascend.com>
90109
90110         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90111         * m4/lchown.m4: New file.
90112
90113         * m4/Makefile.am.in: New file.
90114         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90115
90116 1998-05-14  Jim Meyering  <meyering@ascend.com>
90117
90118         * m4/Makefile.am (EXTRA_DIST): Add them.
90119         * m4/jm-macros.m4: New file.
90120         * m4/utimbuf.m4: New file.
90121
90122 1998-05-12  Jim Meyering  <meyering@ascend.com>
90123
90124         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90125
90126 1998-05-11  Jim Meyering  <meyering@ascend.com>
90127
90128         * m4/isc-posix.m4: New file.
90129
90130 1998-05-10  Jim Meyering  <meyering@ascend.com>
90131
90132         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90133
90134 1998-05-09  Jim Meyering  <meyering@ascend.com>
90135
90136         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90137         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90138         with automake.
90139
90140         * m4/ssize_t.m4: New file.
90141         * m4/mktime.m4: Remove file -- the new automake has this now.
90142
90143 1998-04-26  Jim Meyering  <meyering@ascend.com>
90144
90145         * m4/assert.m4: New file.
90146         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90147
90148 1998-04-05  Jim Meyering  <meyering@ascend.com>
90149
90150         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90151         (jm_PREREQ): Use it here.
90152
90153 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90154
90155         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90156         in acconfig.h.
90157
90158 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90159
90160         * m4/prereq.m4: New file.
90161         * m4/error.m4: New file.
90162         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90163
90164 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90165
90166         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90167         cache-check for the same variable -- that defeated the purpose of
90168         the test; the test program was never run.  This was a problem only
90169         on systems with losing getline functions -- HP-UX 10.20 is one.
90170         Reported by Bjorn Helgaas.
90171
90172 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90173
90174         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90175
90176 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90177
90178         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90179
90180         * m4/const.m4: New file.  Use an initializer in this declaration
90181         typedef int charset[2]; const charset x;
90182         Reported by Bob Glickstein.
90183
90184 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90185
90186         * m4/chown.m4: Fix reversed types on -1 args to chown.
90187         From Kaveh Ghazi.
90188
90189 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90190
90191         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90192         Add lseek and memchr.
90193
90194         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90195         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90196         have a 20-character limit on names.
90197
90198 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90199
90200         * m4/inttypes_h.m4: New file.
90201         * m4/uintmax_t.m4: New file.
90202         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90203
90204
90205         -----
90206
90207         Local Variables:
90208         coding: utf-8
90209         End:
90210
90211         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90212
90213         Copying and distribution of this file, with or without
90214         modification, are permitted provided the copyright notice
90215         and this notice are preserved.