maint.mk: add syntax check for use of compare from init.sh
[gnulib.git] / ChangeLog
1 2011-11-29  Eric Blake  <eblake@redhat.com>
2
3         maint.mk: add syntax check for use of compare from init.sh
4         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5         moved here from coreutils.
6
7         manywarnings: drop -Wunsuffixed-float-constants
8         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9         '1.0D', which is the only way to silence this warning for 'double'.
10
11 2011-11-29  Jim Meyering  <meyering@redhat.com>
12
13         hash: mark compute_bucket_size with the pure attribute
14         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
15
16         quotearg, propername: correct pragma guard expression
17         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
18         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
19
20 2011-11-28  Jim Meyering  <meyering@redhat.com>
21
22         propername: do not mark proper_name with the const attribute
23         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
24         since it examines data pointed to by its parameter.
25         * lib/propername.c (proper_name): Instead, add a pragma to suppress
26         the suggestion from -Wsuggest-attribute=const.
27
28         propername: mark one more function as const
29         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
30
31 2011-11-27  Jim Meyering  <meyering@redhat.com>
32
33         mark functions with const and pure attributes
34
35         Mark functions per suggestions from gcc-4.6 when using these options:
36         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
37         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
38         Follow these guidelines: when possible, apply the attribute to
39         an extern declaration, not to its definition.  Apply it to the
40         definition only when the definition is static.
41         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
42         * lib/argv-iter.h (argv_iter_n_args): Likewise.
43         * lib/base64.h (isbase64): Likewise.
44         * lib/basename-lgpl.c (last_component, base_len): Likewise.
45         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
46         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
47         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
48         (c_tolower, c_toupper): Likewise.
49         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
50         * lib/chdir-long.c (find_non_slash): Likewise.
51         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
52         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
53         * lib/file-type.h (file_type): Likewise.
54         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
55         * lib/filevercmp.c (verrevcmp): Likewise.
56         * lib/freadahead.h (freadahead): Likewise.
57         * lib/fts.c (fts_maxarglen): Likewise.
58         * lib/hash-pjw.h (hash_pjw): Likewise.
59         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
60         * lib/hash.c (is_prime, next_prime): Likewise.
61         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
62         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
63         (hash_table_ok, hash_get_first, hash_string): Likewise.
64         (compute_bucket_size): Likewise.
65         * lib/i-ring.h (i_ring_empty): Likewise.
66         * lib/isnan.c (isnanl): Likewise.
67         * lib/math.h (isnanl, rpl_isnanl): Likewise.
68         * lib/memcasecmp.h (memcasecmp): Likewise.
69         * lib/memchr2.h (memchr2): Likewise.
70         * lib/memcmp2.h (memcmp2): Likewise.
71         * lib/parse-datetime.y (lookup_zone): Likewise.
72         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
73         [!WINDOWS_SOCKETS]: Likewise.
74         * lib/strnlen1.h (strnlen1): Likewise.
75         * lib/uniwidth.in.h (uc_width): Likewise.
76         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
77         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
78         (quoting_options_from_style): Add a comment.
79         * lib/propername.h (proper_name): Add a comment.
80
81 2011-11-27  Bruno Haible  <bruno@clisp.org>
82
83         Remove unused macros from !_LIBC code in glibc-borrowed files.
84         * lib/fnmatch.c (STRCOLL): Remove macro.
85         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
86         * lib/glob.c (__stat, __readdir64): Remove macros.
87         * lib/tempname.c (__open64, __xstat64): Remove macros.
88         Suggested by Paul Eggert.
89
90 2011-11-27  Bruno Haible  <bruno@clisp.org>
91
92         getcwd: Fix link error on MSVC 9.
93         * modules/getcwd (Depends-on): Add readdir, rewinddir.
94
95 2011-11-27  Bruno Haible  <bruno@clisp.org>
96
97         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
98         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
99         HAVE_OPENDIR is 0.
100         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
101         HAVE_CLOSEDIR is 0.
102         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
103         is 0.
104         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
105
106 2011-11-27  Bruno Haible  <bruno@clisp.org>
107
108         getcwd: Fix bug from 2011-08-17.
109         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
110         platforms that need it.
111         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
112         code of 4 to be a failure, not a success. This ensures that
113         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
114
115 2011-11-27  Bruno Haible  <bruno@clisp.org>
116
117         binary-io tests: Avoid test failure on mingw when libtool is used.
118         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
119         Don't verify the size of t-bin-out1.tmp here.
120         * tests/test-binary-io.sh: Verify it here.
121         Reported by Simon Josefsson.
122
123 2011-11-26  Bruno Haible  <bruno@clisp.org>
124
125         Fix conflict between two instantiations of module 'unistd'.
126         * gnulib-tool (func_emit_autoconf_snippet): Substitute
127         ${include_guard_prefix} also in the autoconf snippet.
128         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
130         GNULIB_UNISTD_H_GETOPT.
131         * modules/getopt-posix (configure.ac): Set the
132         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
133         * modules/getopt-gnu (configure.ac): Likewise.
134         * modules/unistd (Makefile.am): Change the substitution value of
135         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
136         Reported by Simon Josefsson.
137
138 2011-11-25  Bruno Haible  <bruno@clisp.org>
139
140         pagealign_alloc: Doc and comments.
141         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
142         module.
143         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
144
145 2011-11-25  Jim Meyering  <meyering@redhat.com>
146
147         test-update-copyright.sh: avoid false-positive failure
148         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
149         around false positive failure on Cygwin/Windows.  The latter was
150         matching erroneously-created files with names like
151         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
152
153 2011-11-25  Simon Josefsson  <simon@josefsson.org>
154
155         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
156         * m4/valgrind-tests.m4: Check that the parameters that will be
157         used works, not just a subset of them.  Reported by Bruno Haible
158         <bruno@clisp.org>.
159
160 2011-11-24  Jim Meyering  <meyering@redhat.com>
161
162         test-stdalign.c: comment out long double tests
163         * tests/test-stdalign.c: Don't try to reduce alignment of long double
164         variables.  That provokes errors like this from gcc-4.7.0 20111124:
165         error: '_Alignas' specifiers cannot reduce alignment of \
166         'static_longdouble_alignas'.
167
168 2011-11-22  Jim Meyering  <meyering@redhat.com>
169
170         init.sh: make "compare /dev/null FILE" output more readable
171         * tests/init.sh (compare_): Document the preferred order of arguments.
172         (emit_diff_u_header_): New function.
173         (compare_dev_null_): Emit a simulated diff, rather than just the
174         contents of the unexpected file.  Suggestion from Bruno Haible.
175
176 2011-11-21  Jim Meyering  <meyering@redhat.com>
177             Eric Blake  <eblake@redhat.com>
178
179         init.sh: work around OSF/1 5.1's mishandling of /dev/null
180         * tests/init.sh: Make our compare function slightly more portable.
181         Reported by Bruno Haible in
182         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
183
184 2011-11-21  Simon Josefsson  <simon@josefsson.org>
185
186         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
187         before using it, in code that ends up in config.h.
188
189 2011-11-20  Bruno Haible  <bruno@clisp.org>
190
191         getcwd: Work around getcwd bug on AIX 5..7.
192         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
193         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
194         Use a different value for gl_cv_func_getcwd_path_max. Move the
195         definition of HAVE_PARTLY_WORKING_GETCWD from here...
196         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
197         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
198         Define HAVE_MINIMALLY_WORKING_GETCWD.
199         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
200         where it is not even minimally working, that is, on AIX.
201         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
202         m4/getcwd-path-max.m4.
203         (main): Update exit code computation.
204         * doc/posix-functions/getcwd.texi: Mention list of platforms where
205         getcwd does not handle long file names.
206
207 2011-11-20  Bruno Haible  <bruno@clisp.org>
208
209         getcwd: Fix bug from 2009-09-10.
210         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
211         like "no".
212
213 2011-11-20  Simon Josefsson  <simon@josefsson.org>
214
215         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
216
217 2011-11-20  Bruno Haible  <bruno@clisp.org>
218
219         fma tests: Avoid shadowing local variables.
220         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
221         expected.
222
223 2011-11-20  Bruno Haible  <bruno@clisp.org>
224
225         copysignf tests: Fix.
226         * tests/test-copysignf.c: Fix signature check.
227
228 2011-11-20  Bruno Haible  <bruno@clisp.org>
229
230         fma: Remove unused code.
231         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
232         unused macros.
233
234 2011-11-20  Bruno Haible  <bruno@clisp.org>
235
236         sethostname: Fix doc about AIX.
237         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
238         sethostname; it has it.
239
240         sethostname: Mention more portability problems.
241         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
242         problem.
243         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
244
245 2011-11-19  Bruno Haible  <bruno@clisp.org>
246
247         Depend on module fcntl-h when AT_FDCWD is used.
248         * modules/utimens (Depends-on): Add fcntl-h.
249         * modules/areadlinkat (Depends-on): Likewise.
250         * modules/areadlinkat-with-size (Depends-on): Likewise.
251         * modules/faccessat (Depends-on): Likewise.
252         * modules/fchmodat (Depends-on): Likewise.
253         * modules/fchownat (Depends-on): Likewise.
254         * modules/getcwd (Depends-on): Likewise.
255         * modules/mkdirat (Depends-on): Likewise.
256         * modules/mkfifoat (Depends-on): Likewise.
257         * modules/readlinkat (Depends-on): Likewise.
258         * modules/symlinkat (Depends-on): Likewise.
259         * modules/dup2-tests (Depends-on): Likewise.
260         * modules/fdutimensat-tests (Depends-on): Likewise.
261         * modules/futimens-tests (Depends-on): Likewise.
262
263 2011-11-19  Bruno Haible  <bruno@clisp.org>
264
265         euidaccess: Update a comment.
266         * lib/euidaccess.c: Update comment about platforms with faccessat.
267
268 2011-11-19  Bruno Haible  <bruno@clisp.org>
269
270         openat: Fix file list.
271         * modules/openat (Files): Remove lib/at-func.c.
272
273 2011-11-19  Bruno Haible  <bruno@clisp.org>
274
275         fstatat: Simplify.
276         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
277         gnulib should define rpl_fstatat, there is a
278         "#define fstatat rpl_fstatat" in <sys/stat.h>.
279
280 2011-11-19  Bruno Haible  <bruno@clisp.org>
281
282         Ensure 'inline' can be used in tests/test-utimens-common.h.
283         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
284         * modules/futimens-tests (configure.ac): Likewise.
285         * modules/utimens-tests (configure.ac): Likewise.
286         * modules/utimensat-tests (configure.ac): Likewise.
287
288 2011-11-19  Simon Josefsson  <simon@josefsson.org>
289
290         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
291         not hash_insert0.
292         (hash_insert_if_absent): Doc fix.
293
294 2011-11-19  Simon Josefsson  <simon@josefsson.org>
295
296         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
297
298 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
299
300         test-getcwd: disambiguate exit status
301         * tests/test-getcwd.c (test_long_name): Return 0..7.
302         (main): Exit with an unambiguous exit status.  The old
303         code yielded a mysterious mixture of two failure codes.
304
305         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
306         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
307         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
308         rpl_fstatat or fstatat.  This should fix the other problem
309         reported by Kai Habel in
310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
311         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
313         and I reproduced it on a Solaris 8 host we still have in production.
314
315 2011-11-18  Jim Meyering  <meyering@redhat.com>
316
317         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
318         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
319         Add a sentence to the comment.
320         (hash_insert0): New function that simply calls hash_insert_if_absent.
321         * lib/hash.h (hash_insert_if_absent): Declare it.
322         (hash_insert0): Add deprecation attribute.
323         (_GL_ATTRIBUTE_DEPRECATED): Define.
324         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
325         not hash_insert0.
326         * NEWS: Mention it, even though it's not really an incompatible change.
327
328 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
329
330         openat: avoid compilation failure due to lack of <errno.h> inclusion
331         * lib/openat.c: Include <errno.h>.
332
333 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
334
335         * modules/getcwd (Depends-on): Add fdopendir.
336         This fixes one of the two problems reported by Kai Habel in
337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
338
339         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
340         stdalign problem reported by Ian Beckwith in
341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
342         * modules/crypto/gc-arcfour (Depends-on):
343         Depend conditionally on crypto/arcfour.
344         * modules/crypto/gc-arctwo (Depends-on):
345         Depend conditionally on crypto/arctwo.
346         * modules/crypto/gc-des (Depends-on):
347         Depend conditionally on crypto/des.
348         * modules/crypto/gc-hmac-md5 (Depends-on):
349         Depend conditionally on crypto/hmac-md5.
350         * modules/crypto/gc-hmac-sha1 (Depends-on):
351         Depend conditionally on crypto/hmac-sha1.
352         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
353         * modules/crypto/gc-md4 (Depends-on):
354         Depend conditionally on crypto/md4.
355         * modules/crypto/gc-md5 (Depends-on):
356         Depend conditionally on crypto/md5.
357         * modules/crypto/gc-rijndael (Depends-on):
358         Depend conditionally on crypto/rijndael.
359         * modules/crypto/gc-sha1 (Depends-on):
360         Depend conditionally on crypto/sha1.
361         * modules/crypto/gc-arcfour:
362         * modules/crypto/gc-arctwo:
363         * modules/crypto/gc-des:
364         * modules/crypto/gc-hmac-md5:
365         * modules/crypto/gc-hmac-sha1:
366         * modules/crypto/gc-md2:
367         * modules/crypto/gc-md4:
368         * modules/crypto/gc-md5:
369         * modules/crypto/gc-rijndael:
370         * modules/crypto/gc-sha1:
371         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
372         now that the conditional dependencies do the work for us.
373
374 2011-11-17  Jim Meyering  <meyering@redhat.com>
375
376         tests: factor st_ctime-comparison out of two headers
377         * tests/test-utimens-common.h (ctime_compare): Define.
378         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
379         * tests/test-lutimens.h (test_lutimens): Likewise.
380         * tests/test-utimens.h (test_utimens): Likewise.
381
382         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
383         Invoke the test program via an init.sh-using wrapper.
384         * tests/test-getcwd.sh: New file.
385         * modules/getcwd-tests (Files): Add it.
386         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
387
388 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
389
390         gitlog-to-changelog: support multi-author commits.
391         The FSF cares about keeping track of all authors of patches to its
392         projects, but Git doesn't provide obvious support for multi-author
393         changesets. Consensus seems to be forming around the use of extra
394         Signed-off-by inspired lines in the log message formatted as
395         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
396         multi-author commits between version control systems.
397         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
398         log message and output in standard ChangeLog multi-author format.
399         Reported by Peter Rosin <peda@lysator.liu.se>
400
401 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
402             Bruno Haible  <bruno@clisp.org>
403
404         Fix some modules' file list.
405         * modules/fstatat (Files): Add m4/lstat.m4.
406         * modules/openat (Files): Likewise.
407         * modules/unlinkat (Files): Likewise.
408
409 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
410
411         maint.mk: fix tight-scope.mk generation in VPATH builds.
412         * top/maint.mk (tight-scope.mk): Make sure to prefix file
413         reference with $(srcdir) so that the file is found correctly even
414         when running `make syntax-check' in a VPATH build.
415
416 2011-11-13  Bruno Haible  <bruno@clisp.org>
417             Jim Meyering  <meyering@redhat.com>
418
419         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
420         * tests/init.sh (compare): Remove "No differences encountered" or
421         synonymous output from the 'diff' program.
422
423 2011-11-13  Bruno Haible  <bruno@clisp.org>
424
425         Makefile: Tweak indentation.
426         * Makefile: Use tab as first character in every line that contains rule
427         commands.
428
429 2011-11-13  Bruno Haible  <bruno@clisp.org>
430
431         Syntax check for copyright statements.
432         * check-copyright: New file.
433         * Makefile (sc_check_copyright): New rule.
434
435 2011-11-13  Simon Josefsson  <simon@josefsson.org>
436
437         * build-aux/git-version-gen: Add --prefix to configure the tag
438         match string.
439
440 2011-11-13  Simon Josefsson  <simon@josefsson.org>
441
442         * build-aux/git-version-gen: Add --help and --version.
443
444 2011-11-12  Jim Meyering  <meyering@redhat.com>
445
446         revamp the other test-exclude?.sh scripts to use init.sh, too
447         * tests/test-exclude1.sh: Use init.sh.
448         * tests/test-exclude2.sh: Likewise.
449         * tests/test-exclude3.sh: Likewise.
450         * tests/test-exclude4.sh: Likewise.
451         * tests/test-exclude5.sh: Likewise.
452         * tests/test-exclude6.sh: Likewise.
453         * tests/test-exclude7.sh: Likewise.
454         * tests/test-exclude8.sh: Likewise.
455         * modules/exclude-tests (Files): List init.sh.
456
457         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
458         These shell scripts ignored failure of the binary test-exclude,
459         so making the latter return 77 didn't cause them to be skipped.
460         * tests/test-exclude5.sh: Exit with test-exclude's error status
461         when that program fails.  Revamp to use init.sh.
462         * tests/test-exclude2.sh: Likewise.
463
464         test-exclude: fix a typo
465         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
466
467 2011-11-11  Bruno Haible  <bruno@clisp.org>
468
469         obstack: Fix compilation error on MSVC 9.
470         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
471
472 2011-11-11  Jim Meyering  <meyering@redhat.com>
473
474         test-exclude: skip tests rather than failing on deficient systems
475         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
476         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
477         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
478         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
479
480 2011-11-10  Bruno Haible  <bruno@clisp.org>
481
482         ptsname_r test: Avoid gcc warning on glibc systems.
483         * tests/test-ptsname_r.c (null_ptr): New function.
484         (test_errors): Use it.
485
486 2011-11-10  Bruno Haible  <bruno@clisp.org>
487
488         ptsname_r: Avoid compilation error on OSF/1 5.1.
489         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
491         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
492         function is not declared or incompatibly declared.
493         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
494         * modules/ptsname_r (Depends-on, configure.ac): Update.
495         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
496
497 2011-11-10  Bruno Haible  <bruno@clisp.org>
498
499         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
500         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
501         When cross-compiling, guess yes on all platforms except AIX.
502         Reported by Ludovic Courtès <ludo@gnu.org>.
503
504 2011-11-09  Bruno Haible  <bruno@clisp.org>
505
506         ptsname_r tests: Fix bugs.
507         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
508         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
509
510 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
511
512         fstatat: work with cross-compilation
513         Problem reported by Ludovic Courtès in
514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
515         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
516         "cross-compiling" and assume the bug is present.  Replace
517         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
518         an inverted sense, to be more conservative about our assumptions.
519         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
520
521 2011-11-09  Bruno Haible  <bruno@clisp.org>
522
523         Improve MODULES.html output.
524         * modules/mkfifoat (Description): Use the word "function".
525         * modules/readlinkat (Description): Likewise.
526         * modules/symlinkat (Description): Likewise.
527
528 2011-11-09  Eric Blake  <eblake@redhat.com>
529
530         ptsname_r-tests: new test module
531         * modules/ptsname_r-tests: New module.
532         * tests/test-ptsname_r.c: New file.
533
534         ptsname_r: new module
535         * modules/ptsname_r: New module.
536         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
537         * lib/ptsname.c (__ptsname_r): Split...
538         * lib/ptsname_r.c: ...into new file.
539         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
540         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
541         * modules/stdlib (Makefile.am): Substitute witnesses.
542         * lib/stdlib.in.h (ptsname_r): Declare it.
543         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
544         * MODULES.html.sh (Misc): Likewise.
545         * modules/ptsname (Depends-on): Alter dependency.
546         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
547
548 2011-11-09  Jim Meyering  <meyering@redhat.com>
549
550         announce-gen: be more concise when there's only one URL+tarball
551         * build-aux/announce-gen (get_tool_versions): When you distribute
552         only one type of tarball, combine the first two "Here are..."
553         sections and make the key-checking grammar independent of
554         how many tarballs there are.
555
556 2011-11-09  Eric Blake  <eblake@redhat.com>
557
558         openpty: provide a stub on mingw
559         * lib/pty.in.h (includes): Provide forward declarations.
560         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
561
562         raise: fix mingw handling of SIGPIPE
563         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
564
565 2011-11-08  Bruno Haible  <bruno@clisp.org>
566
567         More conditional dependencies.
568         * modules/faccessat (Depends-on): Add conditions.
569         * modules/fchmodat (Depends-on): Likewise.
570         * modules/fchownat (Depends-on): Likewise.
571         * modules/fstatat (Depends-on): Likewise.
572         * modules/mkfifoat (Depends-on): Likewise.
573         * modules/readlinkat (Depends-on): Likewise.
574         * modules/symlinkat (Depends-on): Likewise.
575         * modules/unlinkat (Depends-on): Likewise.
576         * modules/utimensat (Depends-on): Likewise.
577         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
578         * modules/linkat (Depends-on): Refine the conditions.
579         * modules/renameat (Depends-on): Likewise.
580
581 2011-11-08  Bruno Haible  <bruno@clisp.org>
582
583         faccessat: Move AC_LIBOBJ invocation to module description.
584         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
585         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
586         invocation from here...
587         * modules/faccessat (configure.ac): ... to here. Invoke
588         gl_PREREQ_FACCESSAT.
589
590 2011-11-08  Bruno Haible  <bruno@clisp.org>
591
592         faccessat: Simplify autoconf macro.
593         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
594         gl_FUNC_EUIDACCESS.
595
596 2011-11-08  Bruno Haible  <bruno@clisp.org>
597
598         renameat: Fix dependencies.
599         * modules/renameat (Depends-on): Add stdbool.
600
601 2011-11-08  Bruno Haible  <bruno@clisp.org>
602
603         mkfifoat: Fix module description.
604         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
605         not gl_UNISTD_MODULE_INDICATOR.
606
607 2011-11-08  Bruno Haible  <bruno@clisp.org>
608
609         fstatat: Remove unused dependency.
610         * modules/fstatat (Depends-on): Remove fstat.
611
612 2011-11-08  Simon Josefsson  <simon@josefsson.org>
613
614         GNUmakefile: behave when Makefile is missing.
615         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
616
617 2011-11-08  Bruno Haible  <bruno@clisp.org>
618
619         openat: Conditionalize dependencies.
620         * lib/openat.c: Reduce the scope of some #includes.
621         * modules/openat (Depends-on): Add conditions.
622
623 2011-11-07  Jim Meyering  <meyering@redhat.com>
624
625         maint.mk: extract GPG key ID without using a temporary file
626         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
627         without using a temporary file.  Based on a suggestion from Werner Koch
628         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
629
630 2011-11-07  Eric Blake  <eblake@redhat.com>
631
632         grantpt: fix typo
633         * lib/stdlib.in.h (grantpt): Check correct function.
634
635         maint.mk: silence new syntax check
636         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
637
638 2011-11-06  Bruno Haible  <bruno@clisp.org>
639
640         Doc about floating-point and math API.
641         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
642         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
643
644 2011-11-06  Bruno Haible  <bruno@clisp.org>
645
646         stdalign tests: Skip the test when compiled by Sun C.
647         * tests/test-stdalign.c (main): Skip the test on Sun C.
648
649 2011-11-06  Bruno Haible  <bruno@clisp.org>
650
651         ansi-c++-opt: Complete the 2011-06-05 change.
652         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
653         does not support namespaces, set the variable to "no", not to ":".
654
655 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
656
657         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
658
659 2011-11-06  Bruno Haible  <bruno@clisp.org>
660
661         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
662         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
663         (minus_zerol) [HP-UX]: New macro.
664         (unary_minus) [HP-UX]: New function.
665         (copysignl) [HP-UX]: Use unary_minus function.
666
667 2011-11-06  Bruno Haible  <bruno@clisp.org>
668
669         ldexp, ldexpf, ldexpl: Enhance tests.
670         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
671         and tests/test-ldexpl.c.
672         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
673         LDEXP, MIN_EXP, MAX_EXP): New macros.
674         Include test-ldexp.h.
675         (main): Just call test_function.
676         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
677         infinity.h, nan.h.
678         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
679         MAX_EXP): New macros.
680         Include test-ldexp.h.
681         (x, y): Remove variables.
682         (main): Just call test_function.
683         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
684         infinity.h, nan.h.
685         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
686         MAX_EXP): New macros.
687         Include test-ldexp.h.
688         (x, y): Remove variables.
689         (main): Just call test_function.
690         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
691         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
692         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
693         (Depends-on): Add isnand-nolibm, signbit, float.
694         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
695         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
696         (Depends-on): Add isnanf-nolibm, signbit, float.
697
698 2011-11-06  Bruno Haible  <bruno@clisp.org>
699
700         math tests: Cosmetics.
701         * tests/test-math-c++.cc: Reorder declarations.
702
703 2011-11-05  Bruno Haible  <bruno@clisp.org>
704
705         fma*: Simplify test.
706         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
707         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
708
709         Tests for module 'fmal'.
710         * modules/fmal-tests: New file.
711         * tests/test-fmal1.c: New file.
712         * tests/test-fmal2.c: New file.
713
714         New module 'fmal'.
715         * lib/math.in.h (fmal): New declaration.
716         * lib/fmal.c: New file.
717         * m4/fmal.m4: New file.
718         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
719         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
720         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
721         REPLACE_FMAL.
722         * modules/fmal: New file.
723         * doc/posix-functions/fmal.texi: Mention the new module and the various
724         bugs.
725
726         Tests for module 'fmaf'.
727         * modules/fmaf-tests: New file.
728         * tests/test-fmaf1.c: New file.
729         * tests/test-fmaf2.c: New file.
730
731         New module 'fmaf'.
732         * lib/math.in.h (fmaf): New declaration.
733         * lib/fmaf.c: New file.
734         * m4/fmaf.m4: New file.
735         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
736         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
737         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
738         REPLACE_FMAF.
739         * modules/fmaf: New file.
740         * doc/posix-functions/fmaf.texi: Mention the new module and the various
741         bugs.
742
743         Tests for module 'fma'.
744         * modules/fma-tests: New file.
745         * tests/test-fma1.c: New file.
746         * tests/test-fma1.h: New file.
747         * tests/test-fma2.c: New file.
748         * tests/test-fma2.h: New file.
749
750         New module 'fma'.
751         * lib/math.in.h (fma): New declaration.
752         * lib/fma.c: New file.
753         * m4/fma.m4: New file.
754         * m4/fegetround.m4: New file.
755         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
756         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
757         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
758         REPLACE_FMA.
759         * modules/fma: New file.
760         * doc/posix-functions/fma.texi: Mention the new module and the various
761         bugs.
762
763         Extend gl_MATHFUNC.
764         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
765         Support 'void' as argument type.
766         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
767
768 2011-11-05  Jim Meyering  <meyering@redhat.com>
769
770         maint.mk: also prohibit inclusion of dirent.h without use
771         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
772
773 2011-11-05  Bruno Haible  <bruno@clisp.org>
774
775         ldexpl tests: Avoid test failure on MSVC 9.
776         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
777         value. Needed in order to enforce the conversion from a value greater
778         than LDBL_MAX to Infinity.
779
780 2011-11-05  Bruno Haible  <bruno@clisp.org>
781
782         New modules 'at-internal', 'openat-h', split off from module 'openat'.
783         * modules/at-internal: New file, extracted from modules/openat.
784         * modules/openat-h: New file.
785         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
786         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
787         * modules/openat (Description): Add reference to POSIX function.
788         (Files): Remove lib/openat.h, lib/openat-proc.c.
789         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
790         intprops, unistd.
791         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
792         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
793         gl_FCNTL_MODULE_INDICATOR.
794         (Include): Remove unistd.h, openat.h.
795         * modules/areadlinkat (Files): Add lib/at-func.c.
796         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
797         openat-die, openat-h, save-cwd.
798         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
799         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
800         openat-die, openat-h, save-cwd, unistd.
801         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
802         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
803         openat-h, save-cwd. Remove fcntl-h, openat.
804         * modules/fchmodat (Files): Remove lib/openat.h.
805         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
806         openat, stdbool, unistd.
807         * modules/fchownat (Files): Remove lib/openat.h.
808         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
809         openat, stdbool, sys_stat.
810         * modules/fdopendir (Files): Remove lib/openat-priv.h,
811         lib/openat-proc.c.
812         (Depends-on): Add at-internal.
813         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
814         * modules/fstatat (Files): Remove lib/openat.h.
815         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
816         stdbool, unistd.
817         * modules/fts (Depends-on): Add openat-h.
818         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
819         openat.
820         * modules/mkdirat (Files): Remove lib/openat.h.
821         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
822         openat, stdbool, sys_stat.
823         * modules/mkfifoat (Files): Add lib/at-func.c.
824         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
825         openat-h, save-cwd. Remove fcntl-h, openat.
826         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
827         * modules/readlinkat (Files): Add lib/at-func.c.
828         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
829         openat-h, save-cwd. Remove fcntl-h, openat.
830         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
831         openat.
832         * modules/selinux-at (Files): Add lib/at-func.c.
833         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
834         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
835         * modules/symlinkat (Files): Add lib/at-func.c.
836         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
837         openat-h, save-cwd. Remove fcntl-h, openat.
838         * modules/unlinkat (Files): Remove lib/openat.h.
839         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
840         stdbool.
841         * modules/utimensat (Files): Add lib/at-func.c.
842         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
843         openat-die, openat-h, save-cwd.
844         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
845         * modules/fdutimensat-tests (Depends-on): Add openat.
846         * modules/fstatat-tests (Depends-on): Add openat-h.
847         * modules/readlinkat-tests (Depends-on): Add openat.
848         * modules/symlinkat-tests (Depends-on): Add openat.
849
850 2011-11-05  Bruno Haible  <bruno@clisp.org>
851
852         openat: Include <stdbool.h>.
853         * lib/openat.c: Include <stdbool.h>.
854
855 2011-11-04  Bruno Haible  <bruno@clisp.org>
856
857         fchownat, renameat, unlinkat: Fix dependencies.
858         * modules/fchownat (Depends-on): Add fstatat.
859         * modules/renameat (Depends-on): Likewise.
860         * modules/unlinkat (Depends-on): Likewise.
861
862 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
863
864         openat: remove direct dependency on dirent
865         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
866         and hasn't been needed ever since fdopendir was split into its own
867         module on 2009-08-31.
868         * modules/openat (Depends-on): Remove dirent.
869
870 2011-11-04  Bruno Haible  <bruno@clisp.org>
871
872         renameat: Optimize code size.
873         * modules/renameat (configure.ac): Don't compile at-func2.c if
874         REPLACE_RENAMEAT is 1.
875
876 2011-11-04  Bruno Haible  <bruno@clisp.org>
877
878         openat tests: Fix file list.
879         * modules/openat-tests (Files): Add tests/test-open.h.
880
881 2011-11-04  Bruno Haible  <bruno@clisp.org>
882
883         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
884         * modules/fchmodat (Depends-on): Add openat-die.
885         * modules/fchownat (Depends-on): Likewise.
886         * modules/linkat (Depends-on): Likewise.
887         * modules/renameat (Depends-on): Likewise.
888         * modules/openat (Depends-on): Add dirent.
889
890 2011-11-04  Jim Meyering  <meyering@redhat.com>
891
892         at-func*.c: fix comments
893         * lib/at-func2.c: Correct/improve first-line comment.
894         * lib/at-func.c: Correct grammar in first-line comment.
895
896 2011-11-04  Bruno Haible  <bruno@clisp.org>
897
898         New module 'mkdirat', split off from module 'openat'.
899         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
900         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
901         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
902         * modules/mkdirat: New file, extracted from modules/openat.
903         * modules/openat (Files): Remove lib/mkdirat.c.
904         (Depends-on): Remove mkdir.
905         (configure.ac): Remove AC_LIBOBJ of mkdirat.
906         (Include): Remove <sys/stat.h>.
907         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
908         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
909         tests/test-mkdir.h.
910         (Depends-on): Remove ignore-value.
911         (Makefile.am): Remove rules for test-mkdirat.
912         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
913         of module 'openat'.
914         * NEWS: Mention the change.
915
916 2011-11-04  Bruno Haible  <bruno@clisp.org>
917
918         closedir: Avoid warning on mingw.
919         * lib/closedir.c: Include <unistd.h>.
920
921 2011-11-04  Bruno Haible  <bruno@clisp.org>
922
923         New module 'fstatat', split off from module 'openat'.
924         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
925         defined.
926         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
927         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
928         gl_FUNC_FSTATAT.
929         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
930         * modules/fstatat: New file, extracted from modules/openat.
931         * modules/openat (Files): Remove lib/fstatat.c.
932         (Depends-on): Remove lstat.
933         (configure.ac): Remove AC_LIBOBJ of fstatat.
934         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
935         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
936         tests/test-lstat.h, tests/test-stat.h.
937         (Depends-on): Remove getcwd-lgpl.
938         (Makefile.am): Remove rules for test-fstatat.
939         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
940         of module 'openat'.
941         * NEWS: Mention the change.
942         * modules/getcwd (Depends-on): Add fstatat.
943         * modules/linkat (Depends-on): Likewise.
944         * modules/mkfifoat-tests (Depends-on): Likewise.
945         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
946
947 2011-11-03  Bruno Haible  <bruno@clisp.org>
948
949         New module 'unlinkat', split off from module 'openat'.
950         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
951         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
952         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
953         * modules/unlinkat: New file, extracted from modules/openat. Correct
954         the dependency conditions.
955         * modules/openat (Files): Remove lib/unlinkat.c.
956         (Depends-on): Remove rmdir, unlink.
957         (configure.ac): Remove AC_LIBOBJ of unlinkat.
958         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
959         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
960         tests/test-rmdir.h, tests/test-unlink.h.
961         (Depends-on): Remove unlinkdir.
962         (Makefile.am): Remove rules for test-unlinkat.
963         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
964         of module 'openat'.
965         * NEWS: Mention the change.
966         * modules/linkat-tests (Depends-on): Add unlinkat.
967         * modules/mkfifoat-tests (Depends-on): Likewise.
968         * modules/readlinkat-tests (Depends-on): Likewise.
969
970 2011-11-02  Bruno Haible  <bruno@clisp.org>
971
972         New module 'fchmodat', split off from module 'openat'.
973         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
974         defined.
975         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
976         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
977         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
978         * modules/fchmodat: New file, extracted from modules/openat.
979         * modules/openat (Files): Remove lib/fchmodat.c.
980         (configure.ac): Remove AC_LIBOBJ of fchmodat.
981         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
982         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
983         (Makefile.am): Remove rules for test-fchmodat.
984         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
985         of module 'openat'.
986         * NEWS: Mention the change.
987
988 2011-11-02  Jim Meyering  <meyering@redhat.com>
989
990         putenv: indent #definition of "environ" to placate cppi
991         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
992
993         gitlog-to-changelog: provide a ChangeLog-repair mechanism
994         Git logs are often treated as immutable, because editing them
995         changes the SHA1 checksums of all descendants.  Thus, errors in
996         git logs tend to stay there forever.  However, when we generate
997         a ChangeLog file -- typically for distribution -- from that git log,
998         we can actually make corrections in the generated file.  The key
999         lies in recording in machine-readable/applicable form the desired
1000         corrections.  See --help for description and an example.
1001         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1002         (usage): Describe it; alphabetize option descriptions.
1003         (main): Honor the new option, carefully.
1004
1005 2011-11-01  Jim Meyering  <meyering@redhat.com>
1006
1007         gitlog-to-changelog: avoid an infloop
1008         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1009         that ends up being empty.
1010
1011 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1012
1013         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1014         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1015         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1016         contains (possibly-quoted) backslashes.  This should avoid
1017         all-too-common shell bugs if COMPLICATED contains backslashes in
1018         the "wrong" places.  Reported by David Evans in
1019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1020         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1021         because we want ASCII ranges.  Is there some reason we don't use
1022         the C locale everywhere in this script?
1023         (func_module, top level): Avoid unwanted pathname expansion when
1024         $repo_url_prefix or $repo_url_suffix_repl contain shell
1025         metacharacters like '?' and '*'.
1026
1027 2011-11-01  Bruno Haible  <bruno@clisp.org>
1028
1029         fchownat: Improve description.
1030         * modules/fchownat (Description): Add link to function.
1031
1032 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1033
1034         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1035         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1036         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1037         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1038
1039 2011-11-01  Bruno Haible  <bruno@clisp.org>
1040
1041         alignof: Avoid collision with stdalign module.
1042         * lib/alignof.h (alignof): Remove macro.
1043         * NEWS: Mention the change.
1044         Reported by Paul Eggert.
1045
1046 2011-11-01  Bruno Haible  <bruno@clisp.org>
1047
1048         New module 'fchownat', split off from module 'openat'.
1049         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1050         defined.
1051         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1052         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1053         invoke gl_FUNC_FCHOWNAT.
1054         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1055         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1056         * modules/fchownat: New file, extracted from modules/openat.
1057         * modules/openat (Files): Remove lib/fchownat.c.
1058         (Depends-on): Remove lchown.
1059         (configure.ac): Remove AC_LIBOBJ of fchownat.
1060         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1061         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1062         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1063         (Depends-on): Remove mgetgroups, usleep, stat-time.
1064         (configure.ac): Remove test for getegid.
1065         (Makefile.am): Remove rules for test-fchownat.
1066         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1067         of module 'openat'.
1068         * NEWS: Mention the change.
1069
1070 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1071
1072         stdalign: port better to MSVC and to Sun C 5.11
1073         This fixes some of the problems reported by Bruno Haible in
1074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1075         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1076         shortcomings of MSVC and of Sun C 5.11.
1077         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1078         around __declspec arg.
1079         * modules/stdalign-tests (Files): Add tests/macros.h.
1080         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1081         Include macros.h, for ASSERT.
1082         (DECLARE_ALIGNED): Remove.
1083         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1084         to catch bug), and to 1 if not (simplifies the rest of the code).
1085         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1086         (CHECK_AUTO): Remove.
1087         (CHECK_ALIGNED): Check only the alignment of the static vars,
1088         since auto var alignment isn't supported by Sun C 5.11.
1089         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1090         ASSERT failures are easier to diagnose.
1091
1092 2011-10-31  Bruno Haible  <bruno@clisp.org>
1093
1094         doc about some IRIX 5.3 problems.
1095         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1096         on IRIX 5.3.
1097         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1098         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1099         5.3.
1100         * doc/posix-functions/grantpt.texi: Likewise.
1101         * doc/posix-functions/unlockpt.texi: Likewise.
1102         * doc/posix-functions/lgamma.texi: Likewise.
1103         * doc/posix-functions/nextafter.texi: Likewise.
1104         * doc/posix-functions/remainder.texi: Likewise.
1105         * doc/posix-functions/select.texi: Mention misplaced declaration on
1106         IRIX 5.3.
1107         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1108
1109 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1110
1111         gitlog-to-changelog: fix git-log invocation.
1112         git-log mishandles date strings before 1970-01-01 UTC, and there is
1113         no use to specify --since=1970-01-01 by default anyway.
1114         * build-aux/gitlog-to-changelog: By default, when no --since option
1115         was given, do not specify explicit --since option to git-log.
1116
1117 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1118
1119         gitlog-to-changelog: new option --append-dot.
1120         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1121         first non-blank line of each commit message terminated with a dot.
1122
1123 2011-10-30  Bruno Haible  <bruno@clisp.org>
1124
1125         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1126         * lib/ffsl.h: Include <config.h>.
1127         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1128
1129 2011-10-30  Jim Meyering  <meyering@redhat.com>
1130
1131         GNUmakefile: reenable "make syntax-check" for most projects
1132         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1133         build-aux variable", "syntax-check" would do nothing but succeed with
1134         the "No version control files detected..." diagnostic (unless you
1135         happened to override _build-aux via cfg.mk).
1136         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1137         to precede inclusion of maint.mk.  Otherwise, these variables would
1138         be used undefined in any project that does not override the default.
1139
1140 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1141
1142         gitlog-to-changelog: treat a message with only blank lines as empty.
1143         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1144         trailing blank lines before the code that issues a warning about an
1145         empty commit message.
1146
1147 2011-10-30  Jim Meyering  <meyering@redhat.com>
1148
1149         test-parse-datetime.c: avoid new DST-related false positive test failure
1150         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1151         based on the time/date we'll convert, not the current time.
1152         Otherwise, the moment we cross a DST boundary like today's in
1153         Europe, (CEST to CET), that offset ends up being one hour off.
1154
1155 2011-10-27  Bruno Haible  <bruno@clisp.org>
1156
1157         fstat: Tweak documentation.
1158         * modules/fstat (Description): More precise description.
1159
1160 2011-10-27  Bruno Haible  <bruno@clisp.org>
1161
1162         Update documentation regarding 'largefile' module.
1163         * doc/posix-functions/fstat.texi: Tweak wording.
1164         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1165         problems with huge directories and/or small ino_t types.
1166         * doc/posix-functions/readdir.texi: Likewise.
1167         * doc/posix-functions/rewinddir.texi: Likewise.
1168
1169 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1170
1171         maint.mk: don't maintain a second build-aux variable.
1172         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1173         depends on GNUmakefile, which already maintains a cfg.mk
1174         overridable $(_build-aux) for projects with a non-standard
1175         build-aux directory location, although without the $(srcdir)
1176         prefix.  Use that variable consistently instead of introducing a
1177         second one.  Adjust all call sites.
1178
1179 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1180
1181         Add stdalign module and use it in other modules.
1182         This is based on a previous proposal by Bruno Haible
1183         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1184
1185         stdalign: new module
1186         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1187         * modules/stdalign: New files.
1188         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1189         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1190
1191         stdalign-tests: new module
1192         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1193
1194         argp: use stdalign
1195         * lib/argp-parse.c: Include <stdalign.h>.
1196         (alignof): Remove.
1197         * modules/argp (Depends-on): Add stdalign.
1198
1199         crypto libraries: use stdalign
1200         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1201         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1202         Do not include <stdlib.h> twice, in md4.c.
1203         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1204         because we are accessing a pointer's bit-pattern, not a size.
1205         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1206         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1207         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1208         * modules/crypto/sha512: Likewise.
1209
1210         sys_socket: use stdalign, not alignof
1211         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1212         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1213
1214 2011-10-27  Bruno Haible  <bruno@clisp.org>
1215
1216         raise test: Avoid a test failure on Linux/MIPS.
1217         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1218         because 99 is a valid signal on Linux/MIPS.
1219
1220 2011-10-27  Bruno Haible  <bruno@clisp.org>
1221
1222         nonblocking tests: Fix test failure on Linux/MIPS.
1223         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1224         Set to 270000.
1225
1226 2011-10-27  Bruno Haible  <bruno@clisp.org>
1227
1228         utimensat: Work around problem on Linux/hppa.
1229         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1230         values.
1231         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1232
1233 2011-10-25  Jim Meyering  <meyering@redhat.com>
1234
1235         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1236         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1237         after symbols like NULL, size_t, etc.
1238         Reported by Alfred M. Szmidt.
1239
1240         maint.mk: exempt ENODATA from a syntax-check rule
1241         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1242         from the sc_prohibit_always-defined_macros syntax-check rule.
1243         Add a comment.  See this for more details:
1244         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1245
1246 2011-10-23  Jim Meyering  <meyering@redhat.com>
1247
1248         fts: close parent dir FD before returning from post-traversal fts_read
1249         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1250         unlink A, even though an FD open on A remained.  This is suboptimal
1251         (holding a file descriptor open longer than needed), but otherwise not
1252         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1253         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1254         that represents a real problem: it causes the removal of A to fail
1255         with e.g., "rm: cannot remove `A': Device or resource busy"
1256
1257         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1258         directory file descriptors.  After completing the final, FTS_DP,
1259         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1260         cache, but then proceeded to add a new FD to it via the subsequent
1261         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1262         final file descriptor would be closed only via fts_close's call to
1263         fd_ring_clear.  Now, it is usually closed earlier, via the final
1264         FTS_DP-returning fts_read call.
1265         * lib/fts.c (restore_initial_cwd): New function, converted from
1266         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1267         Update callers.
1268         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1269         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1270
1271 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1272             Bruno Haible  <bruno@clisp.org>
1273             Jim Meyering  <jim@meyering.net>
1274
1275         readme-release: improve safety of release prep instructions.
1276         * README-release: Don't git pull all branches when only master
1277         is needed for the release process.
1278         Run make maintainer-clean before changing trees and merging.
1279         Don't try to run ./configure right after git pull in case files
1280         that influence the bootstrap process have changed, move the
1281         ./configure step to after running ./bootstrap.
1282         Don't bootstrap "one last time"... it's the first time!
1283
1284 2011-10-22  Bruno Haible  <bruno@clisp.org>
1285
1286         errno, strerror-override: Support for MSVC 10.
1287         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1288         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1289         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1290         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1291         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1292         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1293         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1294         Assign values compatible with MSVC 10.
1295         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1296         New macros.
1297         (GNULIB_defined_EWINSOCK): New macro.
1298         * lib/strerror-override.c (strerror_override): Update accordingly.
1299         * lib/strerror-override.h: Likewise.
1300         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1301         longer equal to the corresponding errno value.
1302         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1303
1304 2011-10-22  Bruno Haible  <bruno@clisp.org>
1305
1306         perror: Recognize when test program crashes.
1307         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1308         strerror, set gl_cv_func_perror_works to no.
1309         Reported by Daniel Richard G. <skunk@iskunk.org>.
1310
1311         perror: Fix indentation.
1312         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1313
1314 2011-10-22  Bruno Haible  <bruno@clisp.org>
1315
1316         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1317         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1318         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1319         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1320         functions, not as a macro.
1321         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1322         macros.
1323         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1324         absence of macro.
1325         Suggested by Eric Blake.
1326         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1327
1328 2011-10-21  Bruno Haible  <bruno@clisp.org>
1329
1330         relocatable-prog-wrapper: Don't leave object files behind.
1331         * build-aux/install-reloc: Re-synchronize list of .o files to be
1332         removed with list of compilation units.
1333
1334 2011-10-20  Bruno Haible  <bruno@clisp.org>
1335
1336         openpty, posix_openpt: Remove code duplication.
1337         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1338         * lib/openpty.c: Include <stdlib.h>.
1339         (openpty): Use posix_openpt on all platforms except IRIX.
1340         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1341
1342 2011-10-20  Bruno Haible  <bruno@clisp.org>
1343
1344         unlockpt: Detect invalid argument.
1345         * lib/unlockpt.c: Include <fcntl.h>.
1346         (unlockpt): Check whether fd is valid, using fcntl().
1347         * modules/unlockpt (Depends-on): Add fcntl-h.
1348
1349 2011-10-20  Bruno Haible  <bruno@clisp.org>
1350
1351         openpty: Avoid compilation error on AIX 6.1.
1352         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1353
1354 2011-10-20  Bruno Haible  <bruno@clisp.org>
1355
1356         posix_openpt: Support for OpenBSD.
1357         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1358         (posix_openpt) [OpenBSD]: New code.
1359         * lib/grantpt.c: Include <fcntl.h>.
1360         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1361         * modules/grantpt (Depends-on): Add fcntl-h.
1362
1363 2011-10-20  Bruno Haible  <bruno@clisp.org>
1364
1365         posix_openpt test: Coding style.
1366         * tests/test-posix_openpt.c: Use GNU coding style.
1367
1368 2011-10-20  Bruno Haible  <bruno@clisp.org>
1369
1370         grantpt: Support --avoid=pt_chown.
1371         * modules/grantpt (Files): Add lib/pty-private.h.
1372
1373 2011-10-20  Bruno Haible  <bruno@clisp.org>
1374
1375         posix_openpt: Fix autoconf macro.
1376         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1377         unneeded check for _getpty.
1378
1379 2011-10-20  Bruno Haible  <bruno@clisp.org>
1380
1381         openpty: Update comments.
1382         * lib/openpty.c: Add comments about Minix.
1383
1384 2011-10-19  Eric Blake  <eblake@redhat.com>
1385
1386         openpty: relax license
1387         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1388
1389         pt_chown: use configmake to simplify build
1390         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1391
1392         ptsname and others: relax license
1393         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1394         * modules/unlockpt (License): Likewise.
1395         * modules/pt_chown (License): Likewise.
1396         * modules/ptsname (License): Likewise.
1397         * modules/ttyname_r (License): Likewise.
1398
1399 2011-10-19  Jim Meyering  <meyering@redhat.com>
1400
1401         posix_openpt: remove spurious #endif
1402         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1403
1404 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1405
1406         maint.mk: Respect $(build_aux) in web-manual rule.
1407         * top/maint.mk (web-manual): Find gen-announce script in user's
1408         $(build_aux) directory instead of hard-coding 'build-aux'.
1409
1410 2011-10-19  Bruno Haible  <bruno@clisp.org>
1411
1412         posix_openpt: Fix compilation error.
1413         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1414         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1415         Mention the openpty module as an alternative.
1416
1417 2011-10-19  Bruno Haible  <bruno@clisp.org>
1418
1419         Support for old NeXTstep 3.3 frexp().
1420         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1421         execution time of the test to 5 seconds.
1422         Reported by Daniel Richard G. <skunk@iskunk.org>.
1423
1424 2011-10-19  Bruno Haible  <bruno@clisp.org>
1425
1426         Support for old NeXTstep 3.3 sed.
1427         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1428         part, use /.../, not \|...|. Escape periods in the header file name.
1429         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1430         Reported by Daniel Richard G. <skunk@iskunk.org>.
1431
1432 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1433
1434         Support for old NeXTstep 3.3 gcc.
1435         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1436         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1437         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1438         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1439         * lib/regex.h (_Restrict_arr_): Likewise.
1440         * lib/regex_internal.h (re_token_t): Likewise.
1441         * lib/regexec.c (check_node_accept_bytes): Likewise.
1442         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1443
1444 2011-10-18  Eric Blake  <eblake@redhat.com>
1445
1446         posix_openpt: new module
1447         * modules/posix_openpt: New module.
1448         * m4/posix_openpt.m4: New file.
1449         * lib/posix_openpt.c: Likewise.
1450         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1451         (gl_STDLIB_H_DEFAULTS): Set defaults.
1452         * modules/stdlib (Makefile.am): Substitute macros.
1453         * lib/stdlib.in.h (posix_openpt): Declare.
1454         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1455         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1456         * modules/posix_openpt-tests: New test module.
1457         * tests/test-posix_openpt.c: New test.
1458
1459 2011-10-15  Bruno Haible  <bruno@clisp.org>
1460
1461         xstrtoll: Fix compilation failure.
1462         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1463         from lib/strtol.c.
1464         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1465         some platforms.
1466         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1467
1468 2011-10-15  Bruno Haible  <bruno@clisp.org>
1469
1470         vasnprintf: Optimize bit search operation.
1471         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1472         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1473         gl_DOUBLE_EXPONENT_LOCATION.
1474         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1475         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1476         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1477         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1478         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1479         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1480         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1481         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1482         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1483
1484 2011-10-15  Bruno Haible  <bruno@clisp.org>
1485
1486         vasnprintf: Fix comments.
1487         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1488
1489 2011-10-14  Bruno Haible  <bruno@clisp.org>
1490
1491         Tests for module 'integer_length_ll'.
1492         * modules/integer_length_ll-tests: New file.
1493         * tests/test-integer_length_ll.c: New file.
1494
1495         New module 'integer_length_ll'.
1496         * lib/integer_length_ll.c: New file.
1497         * modules/integer_length_ll: New file.
1498
1499 2011-10-14  Bruno Haible  <bruno@clisp.org>
1500
1501         Tests for module 'integer_length_l'.
1502         * modules/integer_length_l-tests: New file.
1503         * tests/test-integer_length_l.c: New file.
1504
1505         New module 'integer_length_l'.
1506         * lib/integer_length_l.c: New file.
1507         * modules/integer_length_l: New file.
1508
1509 2011-10-14  Bruno Haible  <bruno@clisp.org>
1510
1511         Tests for module 'integer_length'.
1512         * modules/integer_length-tests: New file.
1513         * tests/test-integer_length.c: New file.
1514
1515         New module 'integer_length'.
1516         * lib/integer_length.h: New file.
1517         * lib/integer_length.c: New file.
1518         * modules/integer_length: New file.
1519
1520 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1521
1522         popen: Fix dependency conditions.
1523         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1524
1525 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1526
1527         perror: Fix autoconf test.
1528         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1529         <stdlib.h> and <string.h>.
1530
1531 2011-10-14  Bruno Haible  <bruno@clisp.org>
1532
1533         ffsl: Optimize on 64-bit platforms.
1534         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1535         unrolling.
1536
1537 2011-10-13  Bruno Haible  <bruno@clisp.org>
1538
1539         ffsl: Optimize on 32-bit platforms.
1540         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1541         use ffs() without a loop.
1542
1543         ffsl, ffsll: Optimize for GCC.
1544         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1545         * lib/ffsl.c (GCC_BUILTIN): New macro.
1546         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1547
1548 2011-10-13  Bruno Haible  <bruno@clisp.org>
1549
1550         ffs, bcopy, memset: Support symbol renaming via config.h.
1551         * lib/ffs.c: Include <config.h>.
1552         * lib/bcopy.c: Likewise.
1553         * lib/memset.c: Likewise.
1554
1555 2011-10-10  Bruno Haible  <bruno@clisp.org>
1556
1557         atanl: Simplify for platforms where 'long double' == 'double'.
1558         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1559         alternative implementation.
1560         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1561         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1562         * modules/atanl (Depends-on): Add atan. Update conditions.
1563
1564 2011-10-10  Bruno Haible  <bruno@clisp.org>
1565
1566         acosl: Simplify for platforms where 'long double' == 'double'.
1567         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1568         alternative implementation.
1569         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1570         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1571         * modules/acosl (Depends-on): Add acos. Update conditions.
1572
1573 2011-10-10  Bruno Haible  <bruno@clisp.org>
1574
1575         asinl: Simplify for platforms where 'long double' == 'double'.
1576         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1577         alternative implementation.
1578         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1579         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1580         * modules/asinl (Depends-on): Add asin. Update conditions.
1581
1582 2011-10-10  Bruno Haible  <bruno@clisp.org>
1583
1584         tanl: Simplify for platforms where 'long double' == 'double'.
1585         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1586         implementation.
1587         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1588         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1589         * modules/tanl (Depends-on): Add tan. Update conditions.
1590         (configure.ac): Don't compile trigl.c if
1591         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1592
1593 2011-10-10  Bruno Haible  <bruno@clisp.org>
1594
1595         cosl: Simplify for platforms where 'long double' == 'double'.
1596         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1597         implementation.
1598         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1599         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1600         * modules/cosl (Depends-on): Add cos. Update conditions.
1601         (configure.ac): Don't compile sincosl.c and trigl.c if
1602         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1603
1604 2011-10-10  Bruno Haible  <bruno@clisp.org>
1605
1606         sinl: Simplify for platforms where 'long double' == 'double'.
1607         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1608         implementation.
1609         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1610         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1611         * modules/sinl (Depends-on): Add sin. Update conditions.
1612         (configure.ac): Don't compile sincosl.c and trigl.c if
1613         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1614
1615 2011-10-10  Bruno Haible  <bruno@clisp.org>
1616
1617         logl: Simplify for platforms where 'long double' == 'double'.
1618         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1619         implementation.
1620         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1621         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1622         * modules/logl (Depends-on): Add log. Update conditions.
1623
1624 2011-10-10  Bruno Haible  <bruno@clisp.org>
1625
1626         expl: Simplify for platforms where 'long double' == 'double'.
1627         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1628         implementation.
1629         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1630         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1631         * modules/expl (Depends-on): Add exp. Update conditions.
1632
1633 2011-10-10  Bruno Haible  <bruno@clisp.org>
1634
1635         sqrtl: Simplify for platforms where 'long double' == 'double'.
1636         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1637         alternative implementation.
1638         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1639         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1640         * modules/sqrtl (Depends-on): Update conditions.
1641
1642 2011-10-10  Bruno Haible  <bruno@clisp.org>
1643
1644         ldexpl: Simplify for platforms where 'long double' == 'double'.
1645         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1646         alternative implementation.
1647         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1648         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1649         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1650
1651 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1652
1653         ffsll: set correct witness
1654         * modules/ffsll (configure.ac): Fix typo.
1655
1656 2011-10-10  Bruno Haible  <bruno@clisp.org>
1657
1658         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1659         * lib/printf-frexpl.c: Include <config.h>.
1660         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1661         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1662         second time.
1663         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1664         gl_LONG_DOUBLE_VS_DOUBLE.
1665         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1666         conditions.
1667
1668 2011-10-10  Bruno Haible  <bruno@clisp.org>
1669
1670         frexpl: Simplify for platforms where 'long double' == 'double'.
1671         * lib/frexpl.c: Include <config.h>.
1672         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1673         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1674         time.
1675         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1676         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1677         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1678         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1679         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1680         conditions.
1681
1682 2011-10-10  Jim Meyering  <meyering@redhat.com>
1683
1684         test-renameat: don't leave behind a temporary file
1685         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1686           ERROR: files left in build directory after distclean:
1687           ./gltests/test-renameat.too
1688           make[1]: *** [distcleancheck] Error 1
1689         Reported by Tom G. Christensen.
1690
1691 2011-10-09  Bruno Haible  <bruno@clisp.org>
1692
1693         rint: Determine RINT_LIBM correctly on AIX 7.
1694         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1695         directly, not only through a function pointer. Also accept an optional
1696         4th argument with extra code.
1697         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1698         rintf() call by gcc when optimizing.
1699
1700         mathfunc.m4: Refactor.
1701         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1702         m4 variable.
1703
1704 2011-10-09  Bruno Haible  <bruno@clisp.org>
1705
1706         rintl: Simplify for platforms where 'long double' == 'double'.
1707         * lib/rintl.c: Include <config.h>.
1708         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1709         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1710         time.
1711         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1712         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1713         * modules/rintl (Depends-on): Add rint. Update conditions.
1714
1715 2011-10-09  Bruno Haible  <bruno@clisp.org>
1716
1717         roundl: Simplify for platforms where 'long double' == 'double'.
1718         * lib/roundl.c: Include <config.h>.
1719         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1720         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1721         time.
1722         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1723         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1724         * modules/roundl (Depends-on): Add round. Update conditions.
1725
1726 2011-10-09  Bruno Haible  <bruno@clisp.org>
1727
1728         truncl: Simplify for platforms where 'long double' == 'double'.
1729         * lib/truncl.c: Include <config.h>.
1730         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1731         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1732         time.
1733         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1734         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1735         * modules/truncl (Depends-on): Add trunc. Update conditions.
1736
1737 2011-10-09  Bruno Haible  <bruno@clisp.org>
1738
1739         ceill: Simplify for platforms where 'long double' == 'double'.
1740         * lib/ceill.c: Include <config.h>.
1741         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1742         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1743         time.
1744         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1745         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1746         * modules/ceill (Depends-on): Add ceil. Update conditions.
1747
1748 2011-10-09  Bruno Haible  <bruno@clisp.org>
1749
1750         floorl: Simplify for platforms where 'long double' == 'double'.
1751         * lib/floorl.c: Include <config.h>.
1752         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1753         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1754         time.
1755         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1756         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1757         * modules/floorl (Depends-on): Add floor. Update conditions.
1758
1759 2011-10-09  Bruno Haible  <bruno@clisp.org>
1760
1761         rint: Fix ordering constraints.
1762         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1763         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1764         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1765
1766 2011-10-09  Bruno Haible  <bruno@clisp.org>
1767
1768         copysignl: Simplify for platforms where 'long double' == 'double'.
1769         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1770         alternative.
1771         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1772         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1773         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1774
1775 2011-10-09  Bruno Haible  <bruno@clisp.org>
1776
1777         Tests for module 'rintl'.
1778         * modules/rintl-tests: New file.
1779         * tests/test-rintl.c: New file.
1780
1781         New module 'rintl'.
1782         * lib/math.in.h (rintl): New declaration.
1783         * lib/rintl.c: New file.
1784         * m4/rintl.m4: New file.
1785         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1787         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1788         * modules/rintl: New file.
1789         * tests/test-math-c++.cc: Check the declaration of rintl.
1790         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1791         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1792         * doc/posix-functions/rintl.texi: Mention the new module.
1793
1794 2011-10-09  Bruno Haible  <bruno@clisp.org>
1795
1796         Tests for module 'rintf'.
1797         * modules/rintf-tests: New file.
1798         * tests/test-rintf.c: New file.
1799
1800         New module 'rintf'.
1801         * lib/math.in.h (rintf): New declaration.
1802         * lib/rintf.c: New file.
1803         * m4/rintf.m4: New file.
1804         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1806         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1807         * modules/rintf: New file.
1808         * tests/test-math-c++.cc: Check the declaration of rintf.
1809         * doc/posix-functions/rintf.texi: Mention the new module.
1810
1811 2011-10-09  Bruno Haible  <bruno@clisp.org>
1812
1813         rint: Support for MSVC.
1814         * lib/math.in.h (rint): New declaration.
1815         * lib/rint.c: New file.
1816         * m4/rint.m4: New file.
1817         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1819         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1820         * modules/rint (Description): Fix.
1821         (Files): Add lib/rint.c, m4/rint.m4.
1822         (Depends-on): Add math.
1823         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1824         gl_MATH_MODULE_INDICATOR.
1825         * tests/test-math-c++.cc: Check the declaration of rint.
1826         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1827         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1828         * doc/posix-functions/rint.texi: Mention the replacement provided by
1829         the module.
1830
1831         rint tests: More tests.
1832         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1833         minus-zero.h, infinity.h, nan.h.
1834         (main): Skip the test if the current rounding mode is not standard. Add
1835         tests for negative numbers, minus zero, infinity, NaN.
1836         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1837         tests/nan.h.
1838         (Depends-on): Add isnand-nolibm.
1839
1840 2011-10-09  Bruno Haible  <bruno@clisp.org>
1841
1842         Tests for module 'copysignl'.
1843         * modules/copysignl-tests: New file.
1844         * tests/test-copysignl.c: New file.
1845
1846         New module 'copysignl'.
1847         * lib/math.in.h (copysignl): New declaration.
1848         * lib/copysignl.c: New file.
1849         * m4/copysignl.m4: New file.
1850         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1852         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1853         HAVE_COPYSIGNL.
1854         * modules/copysignl: New file.
1855         * tests/test-math-c++.cc: Check the declaration of copysignl.
1856         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1857         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1858         * doc/posix-functions/copysignl.texi: Mention the new module.
1859
1860 2011-10-09  Bruno Haible  <bruno@clisp.org>
1861
1862         Tests for module 'copysignf'.
1863         * modules/copysignf-tests: New file.
1864         * tests/test-copysignf.c: New file.
1865
1866         New module 'copysignf'.
1867         * lib/math.in.h (copysignf): New declaration.
1868         * lib/copysignf.c: New file.
1869         * m4/copysignf.m4: New file.
1870         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1872         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1873         HAVE_COPYSIGNF.
1874         * modules/copysignf: New file.
1875         * tests/test-math-c++.cc: Check the declaration of copysignf.
1876         * doc/posix-functions/copysignf.texi: Mention the new module.
1877
1878 2011-10-09  Bruno Haible  <bruno@clisp.org>
1879
1880         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1881         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1882         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1883         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1884         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1885         gl_SIGNAL_H_DEFAULTS.
1886
1887 2011-10-09  Bruno Haible  <bruno@clisp.org>
1888
1889         poll: Make macro safer.
1890         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1891         ac_cv_header_poll_h is not set.
1892
1893 2011-10-09  Bruno Haible  <bruno@clisp.org>
1894
1895         copysign: Provide replacement.
1896         * lib/math.in.h (copysign): New declaration.
1897         * lib/copysign.c: New file.
1898         * m4/copysign.m4: New file.
1899         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1901         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1902         HAVE_COPYSIGN.
1903         * modules/copysign (Description): Clarify.
1904         (Files): Add lib/copysign.c, m4/copysign.m4.
1905         (Depends-on): Add math, signbit.
1906         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1907         gl_MATH_MODULE_INDICATOR.
1908         * tests/test-math-c++.cc: Check the declaration of copysign.
1909         * doc/posix-functions/copysign.texi: Mention the effects of the module
1910         on Minix and MSVC.
1911
1912 2011-10-09  Bruno Haible  <bruno@clisp.org>
1913
1914         isinf: Ensure macro on AIX 5.1.
1915         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1916         macro.
1917         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1918
1919 2011-10-09  Bruno Haible  <bruno@clisp.org>
1920
1921         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1922         * modules/snprintf-posix-tests (configure.ac): Require
1923         gl_LONG_DOUBLE_VS_DOUBLE.
1924         * modules/sprintf-posix-tests (configure.ac): Likewise.
1925         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1926         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1927         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1928         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1929         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1930         tests on platforms where 'long double' is the same as 'double'.
1931         * tests/test-sprintf-posix.h (test_function): Likewise.
1932         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1933         * tests/test-vasprintf-posix.c (test_function): Likewise.
1934
1935         *printf: Fix for platforms where 'long double' == 'double'.
1936         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1937         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1938         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1939         * modules/fprintf-posix (Files): Likewise.
1940         * modules/obstack-printf-posix (Files): Likewise.
1941         * modules/snprintf-posix (Files): Likewise.
1942         * modules/sprintf-posix (Files): Likewise.
1943         * modules/vasnprintf (Files): Likewise.
1944         * modules/vasnprintf-posix (Files): Likewise.
1945         * modules/vasprintf-posix (Files): Likewise.
1946         * modules/vdprintf-posix (Files): Likewise.
1947         * modules/vfprintf-posix (Files): Likewise.
1948         * modules/vsnprintf-posix (Files): Likewise.
1949         * modules/vsprintf-posix (Files): Likewise.
1950         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1951         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1952         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1953         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1954         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1955         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1956         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1957
1958         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1959         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1960         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1961         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1962         'long double'.
1963         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1964
1965         isinf: Fix for platforms where 'long double' == 'double'.
1966         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1967         Don't blindly assume 80-bit 'long double'.
1968
1969         isfinite: Fix for platforms where 'long double' == 'double'.
1970         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1971         Don't blindly assume 80-bit 'long double'.
1972
1973         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1974         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1975         * modules/isfinite-tests (configure.ac): Require
1976         gl_LONG_DOUBLE_VS_DOUBLE.
1977         * modules/isinf-tests (configure.ac): Likewise.
1978         * modules/isnan-tests (configure.ac): Likewise.
1979         * modules/isnanl-tests (configure.ac): Likewise.
1980         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1981         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1982         tests on platforms where 'long double' is the same as 'double'.
1983         * tests/test-isinf.c (test_isinfl): Likewise.
1984         * tests/test-isnan.c (test_long_double): Likewise.
1985         * tests/test-isnanl.h (main): Likewise.
1986
1987 2011-10-08  Bruno Haible  <bruno@clisp.org>
1988
1989         Tests for module 'tanhf'.
1990         * modules/tanhf-tests: New file.
1991         * tests/test-tanhf.c: New file.
1992
1993         New module 'tanhf'.
1994         * lib/math.in.h (tanhf): New declaration.
1995         * lib/tanhf.c: New file.
1996         * m4/tanhf.m4: New file.
1997         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1999         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2000         * modules/tanhf: New file.
2001         * tests/test-math-c++.cc: Check the declaration of tanhf.
2002         * doc/posix-functions/tanhf.texi: Mention the new module.
2003
2004         tanh: Use a .m4 file.
2005         * m4/tanh.m4: New file.
2006         * modules/tanh (Files): Add it.
2007         (configure.ac): Just invoke gl_FUNC_TANH.
2008
2009 2011-10-08  Bruno Haible  <bruno@clisp.org>
2010
2011         Tests for module 'coshf'.
2012         * modules/coshf-tests: New file.
2013         * tests/test-coshf.c: New file.
2014
2015         New module 'coshf'.
2016         * lib/math.in.h (coshf): New declaration.
2017         * lib/coshf.c: New file.
2018         * m4/coshf.m4: New file.
2019         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2021         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2022         * modules/coshf: New file.
2023         * tests/test-math-c++.cc: Check the declaration of coshf.
2024         * doc/posix-functions/coshf.texi: Mention the new module.
2025
2026         cosh: Use a .m4 file.
2027         * m4/cosh.m4: New file.
2028         * modules/cosh (Files): Add it.
2029         (configure.ac): Just invoke gl_FUNC_COSH.
2030
2031 2011-10-08  Bruno Haible  <bruno@clisp.org>
2032
2033         Tests for module 'sinhf'.
2034         * modules/sinhf-tests: New file.
2035         * tests/test-sinhf.c: New file.
2036
2037         New module 'sinhf'.
2038         * lib/math.in.h (sinhf): New declaration.
2039         * lib/sinhf.c: New file.
2040         * m4/sinhf.m4: New file.
2041         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2043         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2044         * modules/sinhf: New file.
2045         * tests/test-math-c++.cc: Check the declaration of sinhf.
2046         * doc/posix-functions/sinhf.texi: Mention the new module.
2047
2048         sinh: Use a .m4 file.
2049         * m4/sinh.m4: New file.
2050         * modules/sinh (Files): Add it.
2051         (configure.ac): Just invoke gl_FUNC_SINH.
2052
2053 2011-10-08  Bruno Haible  <bruno@clisp.org>
2054
2055         Tests for module 'atan2f'.
2056         * modules/atan2f-tests: New file.
2057         * tests/test-atan2f.c: New file.
2058
2059         New module 'atan2f'.
2060         * lib/math.in.h (atan2f): New declaration.
2061         * lib/atan2f.c: New file.
2062         * m4/atan2f.m4: New file.
2063         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2065         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2066         * modules/atan2f: New file.
2067         * tests/test-math-c++.cc: Check the declaration of atan2f.
2068         * doc/posix-functions/atan2f.texi: Mention the new module.
2069
2070         atan2: Use a .m4 file.
2071         * m4/atan2.m4: New file.
2072         * modules/atan2 (Files): Add it.
2073         (configure.ac): Just invoke gl_FUNC_ATAN2.
2074
2075 2011-10-08  Bruno Haible  <bruno@clisp.org>
2076
2077         Tests for module 'atanf'.
2078         * modules/atanf-tests: New file.
2079         * tests/test-atanf.c: New file.
2080
2081         New module 'atanf'.
2082         * lib/math.in.h (atanf): New declaration.
2083         * lib/atanf.c: New file.
2084         * m4/atanf.m4: New file.
2085         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2087         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2088         * modules/atanf: New file.
2089         * tests/test-math-c++.cc: Check the declaration of atanf.
2090         * doc/posix-functions/atanf.texi: Mention the new module.
2091
2092         atan: Use a .m4 file.
2093         * m4/atan.m4: New file.
2094         * modules/atan (Files): Add it.
2095         (configure.ac): Just invoke gl_FUNC_ATAN.
2096
2097 2011-10-08  Bruno Haible  <bruno@clisp.org>
2098
2099         Tests for module 'acosf'.
2100         * modules/acosf-tests: New file.
2101         * tests/test-acosf.c: New file.
2102
2103         New module 'acosf'.
2104         * lib/math.in.h (acosf): New declaration.
2105         * lib/acosf.c: New file.
2106         * m4/acosf.m4: New file.
2107         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2109         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2110         * modules/acosf: New file.
2111         * tests/test-math-c++.cc: Check the declaration of acosf.
2112         * doc/posix-functions/acosf.texi: Mention the new module.
2113
2114         acos: Use a .m4 file.
2115         * m4/acos.m4: New file.
2116         * modules/acos (Files): Add it.
2117         (configure.ac): Just invoke gl_FUNC_ACOS.
2118
2119 2011-10-08  Bruno Haible  <bruno@clisp.org>
2120
2121         Tests for module 'asinf'.
2122         * modules/asinf-tests: New file.
2123         * tests/test-asinf.c: New file.
2124
2125         New module 'asinf'.
2126         * lib/math.in.h (asinf): New declaration.
2127         * lib/asinf.c: New file.
2128         * m4/asinf.m4: New file.
2129         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2130         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2131         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2132         * modules/asinf: New file.
2133         * tests/test-math-c++.cc: Check the declaration of asinf.
2134         * doc/posix-functions/asinf.texi: Mention the new module.
2135
2136         asin: Use a .m4 file.
2137         * m4/asin.m4: New file.
2138         * modules/asin (Files): Add it.
2139         (configure.ac): Just invoke gl_FUNC_ASIN.
2140
2141 2011-10-08  Bruno Haible  <bruno@clisp.org>
2142
2143         Tests for module 'tanf'.
2144         * modules/tanf-tests: New file.
2145         * tests/test-tanf.c: New file.
2146
2147         New module 'tanf'.
2148         * lib/math.in.h (tanf): New declaration.
2149         * lib/tanf.c: New file.
2150         * m4/tanf.m4: New file.
2151         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2152         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2153         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2154         * modules/tanf: New file.
2155         * tests/test-math-c++.cc: Check the declaration of tanf.
2156         * doc/posix-functions/tanf.texi: Mention the new module.
2157
2158         tan: Use a .m4 file.
2159         * m4/tan.m4: New file.
2160         * modules/tan (Files): Add it.
2161         (configure.ac): Just invoke gl_FUNC_TAN.
2162
2163 2011-10-08  Bruno Haible  <bruno@clisp.org>
2164
2165         Tests for module 'cosf'.
2166         * modules/cosf-tests: New file.
2167         * tests/test-cosf.c: New file.
2168
2169         New module 'cosf'.
2170         * lib/math.in.h (cosf): New declaration.
2171         * lib/cosf.c: New file.
2172         * m4/cosf.m4: New file.
2173         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2175         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2176         * modules/cosf: New file.
2177         * tests/test-math-c++.cc: Check the declaration of cosf.
2178         * doc/posix-functions/cosf.texi: Mention the new module.
2179
2180         cos: Use a .m4 file.
2181         * m4/cos.m4: New file.
2182         * modules/cos (Files): Add it.
2183         (configure.ac): Just invoke gl_FUNC_COS.
2184
2185 2011-10-08  Bruno Haible  <bruno@clisp.org>
2186
2187         Tests for module 'sinf'.
2188         * modules/sinf-tests: New file.
2189         * tests/test-sinf.c: New file.
2190
2191         New module 'sinf'.
2192         * lib/math.in.h (sinf): New declaration.
2193         * lib/sinf.c: New file.
2194         * m4/sinf.m4: New file.
2195         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2197         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2198         * modules/sinf: New file.
2199         * tests/test-math-c++.cc: Check the declaration of sinf.
2200         * doc/posix-functions/sinf.texi: Mention the new module.
2201
2202         sin: Use a .m4 file.
2203         * m4/sin.m4: New file.
2204         * modules/sin (Files): Add it.
2205         (configure.ac): Just invoke gl_FUNC_SIN.
2206
2207 2011-10-08  Bruno Haible  <bruno@clisp.org>
2208
2209         Tests for module 'powf'.
2210         * modules/powf-tests: New file.
2211         * tests/test-powf.c: New file.
2212
2213         New module 'powf'.
2214         * lib/math.in.h (powf): New declaration.
2215         * lib/powf.c: New file.
2216         * m4/powf.m4: New file.
2217         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2218         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2219         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2220         * modules/powf: New file.
2221         * tests/test-math-c++.cc: Check the declaration of powf.
2222         * doc/posix-functions/powf.texi: Mention the new module.
2223
2224         pow: Use a .m4 file.
2225         * m4/pow.m4: New file.
2226         * modules/pow (Files): Add it.
2227         (configure.ac): Just invoke gl_FUNC_POW.
2228
2229 2011-10-08  Bruno Haible  <bruno@clisp.org>
2230
2231         Tests for module 'log10f'.
2232         * modules/log10f-tests: New file.
2233         * tests/test-log10f.c: New file.
2234
2235         New module 'log10f'.
2236         * lib/math.in.h (log10f): New declaration.
2237         * lib/log10f.c: New file.
2238         * m4/log10f.m4: New file.
2239         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2241         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2242         * modules/log10f: New file.
2243         * tests/test-math-c++.cc: Check the declaration of log10f.
2244         * doc/posix-functions/log10f.texi: Mention the new module.
2245
2246         log10: Use a .m4 file.
2247         * m4/log10.m4: New file.
2248         * modules/log10 (Files): Add it.
2249         (configure.ac): Just invoke gl_FUNC_LOG10.
2250
2251 2011-10-08  Bruno Haible  <bruno@clisp.org>
2252
2253         Tests for module 'logf'.
2254         * modules/logf-tests: New file.
2255         * tests/test-logf.c: New file.
2256
2257         New module 'logf'.
2258         * lib/math.in.h (logf): New declaration.
2259         * lib/logf.c: New file.
2260         * m4/logf.m4: New file.
2261         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2263         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2264         * modules/logf: New file.
2265         * tests/test-math-c++.cc: Check the declaration of logf.
2266         * doc/posix-functions/logf.texi: Mention the new module.
2267
2268         log: Use a .m4 file.
2269         * m4/log.m4: New file.
2270         * modules/log (Files): Add it.
2271         (configure.ac): Just invoke gl_FUNC_LOG.
2272
2273 2011-10-08  Bruno Haible  <bruno@clisp.org>
2274
2275         Tests for module 'expf'.
2276         * modules/expf-tests: New file.
2277         * tests/test-expf.c: New file.
2278
2279         New module 'expf'.
2280         * lib/math.in.h (expf): New declaration.
2281         * lib/expf.c: New file.
2282         * m4/expf.m4: New file.
2283         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2285         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2286         * modules/expf: New file.
2287         * tests/test-math-c++.cc: Check the declaration of expf.
2288         * doc/posix-functions/expf.texi: Mention the new module.
2289
2290         exp: Use a .m4 file.
2291         * m4/exp.m4: New file.
2292         * modules/exp (Files): Add it.
2293         (configure.ac): Just invoke gl_FUNC_EXP.
2294
2295 2011-10-08  Bruno Haible  <bruno@clisp.org>
2296
2297         Tests for module 'sqrtf'.
2298         * modules/sqrtf-tests: New file.
2299         * tests/test-sqrtf.c: New file.
2300
2301         New module 'sqrtf'.
2302         * lib/math.in.h (sqrtf): New declaration.
2303         * lib/sqrtf.c: New file.
2304         * m4/sqrtf.m4: New file.
2305         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2306         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2307         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2308         * modules/sqrtf: New file.
2309         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2310         * doc/posix-functions/sqrtf.texi: Mention the new module.
2311
2312 2011-10-08  Bruno Haible  <bruno@clisp.org>
2313
2314         Tests: Avoid link failures w.r.t. libintl.
2315         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2316         $(LIBINTL).
2317         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2318         $(LIBINTL).
2319         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2320         against $(LIBINTL).
2321         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2322         $(LIBINTL).
2323         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2324         $(LIBINTL).
2325         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2326
2327 2011-10-08  Bruno Haible  <bruno@clisp.org>
2328
2329         pow tests: Defeat compiler optimizations.
2330         * tests/test-pow.c (main): Assign arguments to x and y before use.
2331
2332 2011-10-08  Bruno Haible  <bruno@clisp.org>
2333
2334         gnulib-tool: Improve last commit.
2335         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2336         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2337         ignore dependencies that are not among the modules list.
2338
2339 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2340
2341         gnulib-tool: don't follow dependencies to avoided modules
2342         This fixes a bug that is related to the previous one.
2343         * gnulib-tool (func_modules_transitive_closure)
2344         (func_emit_autoconf_snippets):
2345         Check whether a dependency is acceptable before using it.
2346         (--extract-dependencies): Report an error if --avoid is also used,
2347         since this combination of options is not yet supported.
2348
2349         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2350         Problem reported by Peter Dyballa in
2351         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2352         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2353         when echoing "$condition".
2354
2355 2011-10-07  Bruno Haible  <bruno@clisp.org>
2356
2357         Fix documentation about math functions on MacOS X.
2358         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2359         MacOS X 10.5.
2360         * doc/posix-functions/fdim.texi: Likewise.
2361         * doc/posix-functions/feclearexcept.texi: Likewise.
2362         * doc/posix-functions/fegetenv.texi: Likewise.
2363         * doc/posix-functions/fegetround.texi: Likewise.
2364         * doc/posix-functions/feholdexcept.texi: Likewise.
2365         * doc/posix-functions/feraiseexcept.texi: Likewise.
2366         * doc/posix-functions/fesetenv.texi: Likewise.
2367         * doc/posix-functions/fesetround.texi: Likewise.
2368         * doc/posix-functions/fetestexcept.texi: Likewise.
2369         * doc/posix-functions/feupdateenv.texi: Likewise.
2370         * doc/posix-functions/fmax.texi: Likewise.
2371         * doc/posix-functions/fmin.texi: Likewise.
2372         * doc/posix-functions/log2.texi: Likewise.
2373         * doc/posix-functions/modff.texi: Likewise.
2374         * doc/posix-functions/nan.texi: Likewise.
2375         * doc/posix-functions/nanf.texi: Likewise.
2376         * doc/posix-functions/nextafterf.texi: Likewise.
2377         * doc/posix-functions/remquo.texi: Likewise.
2378
2379 2011-10-07  Bruno Haible  <bruno@clisp.org>
2380
2381         modff: Drop assumption about library that defines modff.
2382         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2383         AC_CHECK_FUNCS.
2384         * modules/modff (Files): Add m4/mathfunc.m4.
2385
2386 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2387
2388         raise tests: Avoid a GCC warning.
2389         * tests/test-raise.c (handler): Use _Noreturn.
2390
2391 2011-10-07  Bruno Haible  <bruno@clisp.org>
2392
2393         Tests for module 'ldexpf'.
2394         * modules/ldexpf-tests: New file.
2395         * tests/test-ldexpf.c: New file.
2396
2397         New module 'ldexpf'.
2398         * lib/math.in.h (ldexpf): New declaration.
2399         * lib/ldexpf.c: New file.
2400         * m4/ldexpf.m4: New file.
2401         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2402         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2403         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2404         * modules/ldexpf: New file.
2405         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2406         * doc/posix-functions/ldexpf.texi: Mention the new module.
2407
2408 2011-10-06  Bruno Haible  <bruno@clisp.org>
2409
2410         frexpf: Work around problems on IRIX and mingw.
2411         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2413         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2414         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2415         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2416         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2417         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2418
2419 2011-10-06  Bruno Haible  <bruno@clisp.org>
2420
2421         fabsf: Drop assumption about library that defines fabsf.
2422         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2423         AC_CHECK_FUNCS.
2424         * modules/fabsf (Files): Add m4/mathfunc.m4.
2425
2426 2011-10-06  Bruno Haible  <bruno@clisp.org>
2427
2428         frexpf: Drop assumption about library that defines frexpf.
2429         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2430         'int *', 'float *', 'long double *', 'float', 'long double'.
2431         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2432         AC_CHECK_FUNCS.
2433         * modules/frexpf (Files): Add m4/mathfunc.m4.
2434
2435         Tests for module 'frexpf'.
2436         * modules/frexpf-tests: New file.
2437         * tests/test-frexpf.c: New file.
2438
2439         New module 'frexpf'.
2440         * lib/math.in.h (frexpf): New declaration.
2441         * lib/frexpf.c: New file.
2442         * m4/frexpf.m4: New file.
2443         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2444         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2445         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2446         * modules/frexpf: New file.
2447         * tests/test-math-c++.cc: Check the declaration of frexpf.
2448         * doc/posix-functions/frexpf.texi: Mention the new module.
2449
2450 2011-10-06  Bruno Haible  <bruno@clisp.org>
2451
2452         math: Sort function declarations of math.in.h.
2453         * lib/math.in.h (frexp, logb): Move declarations.
2454
2455 2011-10-05  Bruno Haible  <bruno@clisp.org>
2456
2457         Tests for module 'modff'.
2458         * modules/modff-tests: New file.
2459         * tests/test-modff.c: New file.
2460
2461         New module 'modff'.
2462         * lib/math.in.h (modff): New declaration.
2463         * lib/modff.c: New file.
2464         * m4/modff.m4: New file.
2465         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2466         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2467         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2468         * modules/modff: New file.
2469         * tests/test-math-c++.cc: Check the declaration of modff.
2470         * doc/posix-functions/modff.texi: Mention the new module.
2471
2472         modf tests: Make test sharper.
2473         * tests/test-modf.c (main): Strengthen upper bound.
2474
2475         modf: Use a .m4 file.
2476         * m4/modf.m4: New file.
2477         * modules/modf (Files): Add it.
2478         (configure.ac): Just invoke gl_FUNC_MODF.
2479
2480 2011-10-05  Bruno Haible  <bruno@clisp.org>
2481
2482         Tests for module 'fmodf'.
2483         * modules/fmodf-tests: New file.
2484         * tests/test-fmodf.c: New file.
2485
2486         New module 'fmodf'.
2487         * lib/math.in.h (fmodf): New declaration.
2488         * lib/fmodf.c: New file.
2489         * m4/fmodf.m4: New file.
2490         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2492         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2493         * modules/fmodf: New file.
2494         * tests/test-math-c++.cc: Check the declaration of fmodf.
2495         * doc/posix-functions/fmodf.texi: Mention the new module.
2496
2497         fmod: Use a .m4 file.
2498         * m4/fmod.m4: New file.
2499         * modules/fmod (Files): Add it.
2500         (configure.ac): Just invoke gl_FUNC_FMOD.
2501
2502 2011-10-05  Bruno Haible  <bruno@clisp.org>
2503
2504         Tests for module 'fabsf'.
2505         * modules/fabsf-tests: New file.
2506         * tests/test-fabsf.c: New file.
2507
2508         New module 'fabsf'.
2509         * lib/math.in.h (fabsf): New declaration.
2510         * lib/fabsf.c: New file.
2511         * m4/fabsf.m4: New file.
2512         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2514         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2515         * modules/fabsf: New file.
2516         * tests/test-math-c++.cc: Check the declaration of fabsf.
2517         * doc/posix-functions/fabsf.texi: Mention the new module.
2518
2519         fabs: Use a .m4 file.
2520         * m4/fabs.m4: New file.
2521         * modules/fabs (Files): Add it.
2522         (configure.ac): Just invoke gl_FUNC_FABS.
2523
2524 2011-10-05  Jim Meyering  <meyering@redhat.com>
2525
2526         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2527         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2528         ls -lL regression introduced in coreutils-8.12, it does so at the
2529         cost of an additional stat call in the common case.  Besides, now
2530         that the kernel change that prompted commit 95f7c57f has been reverted
2531         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2532         we have no use for commit 95f7c57f, "file-has-acl: use
2533         acl_extended_file_nofollow if available".
2534
2535 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2536
2537         file-has-acl: revert unintended change in behavior of ls -L
2538         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2539         derived from...
2540         (file_has_acl): ...code here.  Call it.
2541         This problem was introduced with 2011-07-22 commit 95f7c57f,
2542         "file-has-acl: use acl_extended_file_nofollow if available".
2543         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2544
2545 2011-10-03  Bruno Haible  <bruno@clisp.org>
2546
2547         poll: Avoid link errors on MSVC.
2548         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2549         * modules/poll (Depends-on): Add sockets.
2550         (Link): New section.
2551         * NEWS: Mention the change.
2552         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2553         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2554         $(LIB_POLL) instead of $(LIBSOCKET).
2555
2556 2011-10-03  Bruno Haible  <bruno@clisp.org>
2557
2558         sys_select tests: Fix link error on MSVC 9.
2559         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2560         with $(LIB_SELECT) instead of $(LIBSOCKET).
2561
2562 2011-10-03  Bruno Haible  <bruno@clisp.org>
2563
2564         sys_select: Fix compilation error on mingw.
2565         * lib/sys_select.in.h: On native Windows, include <io.h>.
2566
2567 2011-10-03  Bruno Haible  <bruno@clisp.org>
2568
2569         wmemset: Support for MSVC.
2570         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2571         whether wmemset() exists.
2572
2573 2011-10-03  Bruno Haible  <bruno@clisp.org>
2574
2575         wmemmove: Support for MSVC.
2576         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2577         whether wmemmove() exists.
2578
2579 2011-10-03  Bruno Haible  <bruno@clisp.org>
2580
2581         wmemcpy: Support for MSVC.
2582         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2583         whether wmemcpy() exists.
2584
2585 2011-10-03  Bruno Haible  <bruno@clisp.org>
2586
2587         wmemcmp: Support for MSVC.
2588         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2589         whether wmemcmp() exists.
2590
2591 2011-10-03  Bruno Haible  <bruno@clisp.org>
2592
2593         wmemchr: Support for MSVC.
2594         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2595         whether wmemchr() exists.
2596
2597 2011-10-03  Bruno Haible  <bruno@clisp.org>
2598
2599         glthread/*, strsignal: Support for MSVC.
2600         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2601         including <winsock.h> on MSVC 9.
2602         * lib/glthread/lock.h: Likewise.
2603         * lib/glthread/thread.h: Likewise.
2604         * lib/glthread/tls.h: Likewise.
2605         * lib/glthread/yield.h: Likewise.
2606         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2607         if HAVE_UNISTD_H is false.
2608         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2609
2610 2011-10-03  Bruno Haible  <bruno@clisp.org>
2611
2612         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2613         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2614         Set to 100000.
2615
2616 2011-10-03  Bruno Haible  <bruno@clisp.org>
2617
2618         acl: Fix specification.
2619         * lib/file-has-acl.c (file_has_acl): Fix specification.
2620
2621 2011-10-03  Bruno Haible  <bruno@clisp.org>
2622
2623         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2624         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2625         (compute_curr_prefix, shared_library_fullname,
2626         find_shared_library_fullname, get_shared_library_fullname, relocate):
2627         Use it together with PIC && INSTALLDIR.
2628         Reported by <jojelino@gmail.com>
2629         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2630
2631 2011-10-01  Jim Meyering  <meyering@redhat.com>
2632
2633         maint.mk: adjust a release-related rule not to require use of gzip
2634         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2635         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2636         projects that build only .tar.xz files.  Also fix an erroneous test.
2637
2638         test-linkat: don't leave behind a temporary file
2639         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2640         Otherwise, coreutils' "make distcheck" would fail with this:
2641           Only in /c/cu/tests/torture/coreutils/test/\
2642             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2643           make[2]: *** [my-distcheck] Error 1
2644
2645         float, math: add omitted file
2646         * lib/itold.c: Add file, required for yesterday's float change.
2647
2648 2011-10-01  Bruno Haible  <bruno@clisp.org>
2649
2650         isinf: Fix for OpenBSD/x86.
2651         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2652         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2653         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2654
2655 2011-10-01  Bruno Haible  <bruno@clisp.org>
2656
2657         isfinite: Fix syntax error in configure test.
2658         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2659
2660         isfinite: Fix typo.
2661         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2662         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2663
2664 2011-10-01  Bruno Haible  <bruno@clisp.org>
2665
2666         nonblocking tests: Fix test failure on Linux/IA-64.
2667         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2668         Set to 270000.
2669
2670 2011-10-01  Bruno Haible  <bruno@clisp.org>
2671
2672         mkfifoat tests: Fix a test failure on mingw.
2673         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2674         with error ENOSYS.
2675
2676 2011-09-30  Bruno Haible  <bruno@clisp.org>
2677
2678         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2679         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2680         'long double'. Set REPLACE_ITOLD.
2681         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2682         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2683         * lib/itold.c: New file.
2684         * modules/float (Files): Add lib/itold.c.
2685         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2686         (Makefile.am): Substitute REPLACE_ITOLD.
2687         * modules/math (Depends-on): Add float.
2688         (Makefile.am): Substitute REPLACE_ITOLD.
2689         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2690         * doc/posix-headers/math.texi: Likewise.
2691         * doc/posix-functions/logl.texi: Likewise.
2692
2693 2011-09-30  Bruno Haible  <bruno@clisp.org>
2694
2695         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2696         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2697         Set to 140000.
2698
2699 2011-09-30  Bruno Haible  <bruno@clisp.org>
2700
2701         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2702         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2703         invocation, say "right after AC_PROG_CC_STDC", not "right after
2704         AC_PROG_CC".
2705         Reported by Gary V. Vaughan <gary@gnu.org>.
2706
2707 2011-09-30  Bruno Haible  <bruno@clisp.org>
2708
2709         Centralize C99 requirement.
2710         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2711         * modules/stdarg (configure.ac-early): Invoke it instead of
2712         AC_PROG_CC_STDC.
2713         Reported by Gary V. Vaughan and Paul Eggert.
2714
2715 2011-09-29  Bruno Haible  <bruno@clisp.org>
2716
2717         float: Fix LDBL_MAX value on Linux/PowerPC.
2718         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2719         on Linux/PowerPC.
2720         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2721         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2722         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2723         platform.
2724         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2725
2726 2011-09-29  Bruno Haible  <bruno@clisp.org>
2727
2728         doc: Improve doc about gl_EARLY.
2729         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2730         AC_PROG_CC_STDC invocation.
2731         Reported by Gary V. Vaughan <gary@gnu.org>.
2732
2733 2011-09-28  Bruno Haible  <bruno@clisp.org>
2734
2735         fgetc, fputc, fread, fwrite tests: Fix link error.
2736         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2737         on non-MSVC platforms.
2738         * tests/test-fputc.c (main): Likewise.
2739         * tests/test-fread.c (main): Likewise.
2740         * tests/test-fwrite.c (main): Likewise.
2741         Reported by Jim Meyering.
2742
2743 2011-09-27  Bruno Haible  <bruno@clisp.org>
2744
2745         fputc, fwrite tests: Avoid test failure on MSVC.
2746         * tests/test-fgetc.c: Include msvc-inval.h.
2747         (main): Invoke gl_msvc_inval_ensure_handler.
2748         * tests/test-fputc.c: Include msvc-inval.h.
2749         (main): Invoke gl_msvc_inval_ensure_handler.
2750         * tests/test-fread.c: Include msvc-inval.h.
2751         (main): Invoke gl_msvc_inval_ensure_handler.
2752         * tests/test-fwrite.c: Include msvc-inval.h.
2753         (main): Invoke gl_msvc_inval_ensure_handler.
2754         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2755         * modules/fputc-tests (Depends-on): Likewise.
2756         * modules/fread-tests (Depends-on): Likewise.
2757         * modules/fwrite-tests (Depends-on): Likewise.
2758
2759 2011-09-27  Bruno Haible  <bruno@clisp.org>
2760
2761         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2762         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2763         (raise): Remove older, duplicated declaration.
2764         (_gl_raise_SIGPIPE): New declaration.
2765         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2766         (rpl_raise): Remove function.
2767         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2768         a gnulib-defined SIGPIPE here.
2769         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2770         'sigprocmask' has detected missing signal-blocking and the module
2771         'sigpipe' is enabled.
2772         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2773
2774 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2775
2776         base64-tests: avoid memory leak
2777         * tests/test-base64.c (main): Plug memory leak.
2778
2779         base32: new module
2780         * modules/base32: New module.
2781         * lib/base32.c: New file.
2782         * lib/base32.h: Likewise.
2783         * m4/base32.m4: Likewise.
2784         * modules/base32-tests: New test.
2785         * tests/test-base32.c: Likewise.
2786         * MODULES.html.sh (Misc): Mention it.
2787
2788 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2789
2790         gnulib: use more-standard license notice wording
2791         * gnulib-tool (func_emit_copyright_notice): When emitting a
2792         license notice into a file, use the standard wording as suggested
2793         by the current information for GNU maintainers, except say "file"
2794         rather than "program".  The new wording gives a license version
2795         number, which addresses an issue raised by Glenn Morris in
2796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2797         * m4/onceonly.m4: Use that same wording here, too.
2798
2799         dup2: minor simplification
2800         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2801         as lib/dup2.c no longer uses 'inline'.
2802
2803 2011-09-25  Bruno Haible  <bruno@clisp.org>
2804
2805         strings: Fix compilation error on MSVC.
2806         * lib/strings.in.h: Include <stddef.h> for size_t.
2807
2808 2011-09-25  Bruno Haible  <bruno@clisp.org>
2809
2810         fflush et al.: Document limitation on MSVC.
2811         * doc/posix-functions/fflush.texi: Document possible crash in handling
2812         mode other than DEFAULT_HANDLING.
2813         * doc/posix-functions/fgetc.texi: Likewise.
2814         * doc/posix-functions/fputc.texi: Likewise.
2815         * doc/posix-functions/fread.texi: Likewise.
2816         * doc/posix-functions/fwrite.texi: Likewise.
2817
2818 2011-09-25  Bruno Haible  <bruno@clisp.org>
2819
2820         msvc-inval: Allow three invalid parameter handling modes.
2821         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2822         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2823         macros.
2824         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2825         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2826         SANE_LIBRARY_HANDLING as a no-op.
2827         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2828         <stdlib.h>.
2829         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2830
2831 2011-09-25  Bruno Haible  <bruno@clisp.org>
2832
2833         msvc-inval: Make handler multithread-safe.
2834         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2835         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2836         declarations.
2837         (gl_msvc_inval_current): New declaration.
2838         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2839         Operate on the structure returned by gl_msvc_inval_current().
2840         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2841         Remove varaiables.
2842         (tls_index, tls_initialized): New variables.
2843         (not_per_thread): New variable.
2844         (gl_msvc_inval_current): New function.
2845         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2846         returned by gl_msvc_inval_current().
2847
2848 2011-09-25  Bruno Haible  <bruno@clisp.org>
2849
2850         msvc-inval: Install handler globally.
2851         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2852         !_MSC_VER.
2853         (gl_msvc_invalid_parameter_handler): Remove declaration.
2854         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2855         declarations.
2856         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2857         Install the handler globally, don't uninstall it.
2858         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2859         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2860         currently valid, call RaiseException instead.
2861         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2862         for !_MSC_VER.
2863
2864 2011-09-25  Bruno Haible  <bruno@clisp.org>
2865
2866         strerror_r-posix: Fix for MSVC 9.
2867         * lib/strerror_r.c (local_snprintf): New function.
2868         (snprintf): Define to local_snprintf, not to _snprintf.
2869
2870 2011-09-25  Bruno Haible  <bruno@clisp.org>
2871
2872         ftruncate: Support for MSVC 9.
2873         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2874         (chsize_nothrow): New function.
2875         (chsize): Redefine as a macro.
2876         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2877         * modules/ftruncate (Depends-on): Add msvc-inval.
2878
2879 2011-09-25  Bruno Haible  <bruno@clisp.org>
2880
2881         New module 'fstat'.
2882         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2883         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2884         * lib/fchdir.c (rpl_fstat): Remove function.
2885         * m4/fstat.m4: New file.
2886         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2887         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2888         declared.
2889         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2890         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2891         * modules/fstat: New file.
2892         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2893         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2894         is set.
2895         * doc/posix-functions/fstat.texi: Mention the new module and the
2896         problem on MSVC.
2897         * NEWS: Mention the change.
2898         * modules/acl (Depends-on): Add fstat.
2899         * modules/chdir-safer (Depends-on): Likewise.
2900         * modules/chown (Depends-on): Likewise.
2901         * modules/copy-file (Depends-on): Likewise.
2902         * modules/fchdir (Depends-on): Likewise.
2903         * modules/fdopendir (Depends-on): Likewise.
2904         * modules/fopen (Depends-on): Likewise.
2905         * modules/fts (Depends-on): Likewise.
2906         * modules/getcwd (Depends-on): Likewise.
2907         * modules/isapipe (Depends-on): Likewise.
2908         * modules/linkat (Depends-on): Likewise.
2909         * modules/lseek (Depends-on): Likewise.
2910         * modules/mkdir-p (Depends-on): Likewise.
2911         * modules/open (Depends-on): Likewise.
2912         * modules/openat (Depends-on): Likewise.
2913         * modules/read-file (Depends-on): Likewise.
2914         * modules/renameat (Depends-on): Likewise.
2915         * modules/utimens (Depends-on): Likewise.
2916
2917 2011-09-25  Bruno Haible  <bruno@clisp.org>
2918
2919         linkat: Fix compilation on MSVC 9.
2920         * lib/linkat.c: Don't include <stdint.h>.
2921
2922 2011-09-25  Bruno Haible  <bruno@clisp.org>
2923
2924         fclose: Support for MSVC 9.
2925         * lib/fclose.c: Include msvc-inval.h.
2926         (fclose_nothrow): New function.
2927         (rpl_fclose): Use it.
2928         * modules/fclose (Depends-on): Add msvc-inval.
2929         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2930
2931 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2932
2933         dup2: minor simplifications
2934         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2935         that it's a performance win.
2936         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2937         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2938
2939 2011-09-24  Jim Meyering  <meyering@redhat.com>
2940
2941         test-futimens: avoid a warning from gcc -Wshadow
2942         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2943         to avoid a shadowing warning.
2944
2945 2011-09-24  Bruno Haible  <bruno@clisp.org>
2946
2947         fdopen: Support for MSVC 9.
2948         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2949         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2950         * lib/fdopen.c: Include msvc-inval.h.
2951         (fdopen_nothrow): New function.
2952         (rpl_fdopen): Use it.
2953         * modules/fdopen (Depends-on): Add msvc-inval.
2954         * modules/fclose-tests (Depends-on): Add fdopen.
2955         * modules/fflush-tests (Depends-on): Likewise.
2956         * modules/fgetc-tests (Depends-on): Likewise.
2957         * modules/fputc-tests (Depends-on): Likewise.
2958         * modules/fread-tests (Depends-on): Likewise.
2959         * modules/freopen-tests (Depends-on): Likewise.
2960         * modules/fseeko-tests (Depends-on): Likewise.
2961         * modules/ftello-tests (Depends-on): Likewise.
2962         * modules/fwrite-tests  (Depends-on): Likewise.
2963         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2964
2965 2011-09-24  Bruno Haible  <bruno@clisp.org>
2966
2967         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2968         * modules/fgetc-tests (Depends-on): Add unistd.
2969         * modules/fputc-tests (Depends-on): Likewise.
2970         * modules/fread-tests (Depends-on): Likewise.
2971         * modules/fwrite-tests (Depends-on): Likewise.
2972
2973 2011-09-24  Bruno Haible  <bruno@clisp.org>
2974
2975         dup: Simplify autoconf test.
2976         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2977         on gl_MSVC_INVAL's result.
2978
2979 2011-09-24  Bruno Haible  <bruno@clisp.org>
2980
2981         Tests for function fwrite().
2982         * modules/fwrite-tests: New file.
2983         * tests/test-fwrite.c: New file.
2984         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2985
2986         Tests for function fread().
2987         * modules/fread-tests: New file.
2988         * tests/test-fread.c: New file.
2989         * modules/stdio-tests (Depends-on): Add fread-tests.
2990
2991         Activate fputc tests.
2992         * modules/stdio-tests (Depends-on): Add fputc-tests.
2993
2994         Enhance fgetc, fputc tests.
2995         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2996         * tests/test-fputc.c (main): Likewise.
2997
2998 2011-09-24  Bruno Haible  <bruno@clisp.org>
2999
3000         write: Support for MSVC 9.
3001         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3002         is not 1.
3003         * lib/write.c (write_nothrow): New function.
3004         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3005         not 1. Use write_nothrow.
3006         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3007         invalid parameter handler.
3008         (gl_PREREQ_WRITE): New macro.
3009         * modules/write (Depends-on): Add msvc-inval.
3010         (configure.ac): Invoke gl_PREREQ_WRITE.
3011         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3012
3013 2011-09-24  Bruno Haible  <bruno@clisp.org>
3014
3015         read: Fix last commit.
3016         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3017
3018 2011-09-24  Bruno Haible  <bruno@clisp.org>
3019
3020         dup2: Fix last commit.
3021         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3022         (rpl_dup2): Disable fcntl workaround on native Windows.
3023
3024         sigprocmask: Make code safer.
3025         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3026         section that changes macro definitions for this compilation unit.
3027
3028 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3029
3030         dup2: clarify by coalescing Windows-specific material
3031         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3032         "msvc-nothrow.h"' to the Windows-specific section, so that the
3033         Emacs source need not contain these include files.
3034         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3035         Windows-specific fixes into this function rather than just the
3036         nothrow fix, as this shortens and clarifies the code.  Always
3037         define as a function, as that's a bit cleaner than having it be
3038         sometimes a function and sometimes a macro.
3039         (rpl_dup2): Move the Windows-specific stuff out of here and into
3040         ms_windows_dup2.  Don't protect the Haiku-related fix with
3041         "#if !defined __linux__", as the same code also works around
3042         a Linux kernel bug, and it doesn't add any system calls on any
3043         platform.  Add comment about FreeBSD 6.1.
3044
3045         sigprocmask: move #include directive
3046         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3047         Windows-specific section, so that the Emacs source need not
3048         contain msvc-inval.h.
3049
3050 2011-09-23  Bruno Haible  <bruno@clisp.org>
3051
3052         read: Support for MSVC 9.
3053         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3054         is not 1.
3055         * lib/read.c (read_nothrow): New function.
3056         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3057         read_nothrow.
3058         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3059         invalid parameter handler.
3060         (gl_PREREQ_READ): New macro.
3061         * modules/read (Depends-on): Add msvc-inval.
3062         (configure.ac): Invoke gl_PREREQ_READ.
3063         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3064
3065 2011-09-23  Bruno Haible  <bruno@clisp.org>
3066
3067         close: Support for MSVC 9.
3068         * lib/close.c: Include <errno.h>, msvc-inval.h.
3069         (close_nothrow): New function.
3070         (rpl_close): Use it.
3071         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3072         invalid parameter handler.
3073         * modules/close (Depends-on): Add msvc-inval.
3074         * modules/dup2-tests (Depends-on): Add close.
3075         * modules/dup3-tests (Depends-on): Likewise.
3076         * modules/fcntl-tests (Depends-on): Likewise.
3077         * modules/spawn-pipe-tests (Depends-on): Likewise.
3078         * modules/unistd-safer-tests (Depends-on): Likewise.
3079         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3080
3081 2011-09-23  Bruno Haible  <bruno@clisp.org>
3082
3083         New module 'dup'.
3084         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3085         Allow replacement.
3086         * lib/dup.c: New file.
3087         * lib/fchdir.c (rpl_dup): Remove function.
3088         * m4/dup.m4: New file.
3089         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3090         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3091         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3092         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3093         * modules/dup: New file.
3094         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3095         'dup' module is in use.
3096         * modules/fdopendir (Depends-on): Add dup.
3097         * modules/fdutimensat-tests (Depends-on): Likewise.
3098         * modules/fts (Depends-on): Likewise.
3099         * modules/futimens-tests (Depends-on): Likewise.
3100         * modules/posix_spawnp-tests (Depends-on): Likewise.
3101         * modules/unistd-safer-tests (Depends-on): Likewise.
3102         * modules/utimens-tests (Depends-on): Likewise.
3103         * doc/posix-functions/dup.texi: Mention the new module and the problem
3104         on MSVC.
3105
3106 2011-09-23  Bruno Haible  <bruno@clisp.org>
3107
3108         getdtablesize: Support for MSVC 9.
3109         * lib/getdtablesize.c: Include msvc-inval.h.
3110         (_setmaxstdio_nothrow): New function.
3111         (_setmaxstdio): Redefine it.
3112         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3113         * modules/getdtablesize (Depends-on): Add msvc-inval.
3114         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3115
3116 2011-09-23  Bruno Haible  <bruno@clisp.org>
3117
3118         signal-h: Rename from signal.
3119         * modules/signal-h: Renamed from modules/signal.
3120         * modules/pthread_sigmask (Depends-on): Update.
3121         * modules/raise (Depends-on): Likewise.
3122         * modules/sigaction (Depends-on): Likewise.
3123         * modules/sigpipe (Depends-on): Likewise.
3124         * modules/sigprocmask (Depends-on): Likewise.
3125         * modules/sys_select (Depends-on): Likewise.
3126         * modules/signal-h-tests: Renamed from modules/signal-tests.
3127         (Files, Depends-on, Makefile.am): Update.
3128         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3129         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3130         (Files, Makefile.am): Update.
3131         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3132         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3133         * modules/signal: New placeholder file.
3134         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3135         * doc/posix-headers/signal.texi: Update.
3136         * NEWS: Mention the change.
3137
3138 2011-09-23  Bruno Haible  <bruno@clisp.org>
3139
3140         sigprocmask: Avoid crashes through signal() on MSVC 9.
3141         * lib/sigprocmask.c: Include msvc-inval.h.
3142         (signal_nothrow): New function.
3143         (signal): Redefine it.
3144         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3145         * modules/sigprocmask (Depends-on): Add msvc-inval.
3146         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3147
3148 2011-09-23  Bruno Haible  <bruno@clisp.org>
3149
3150         Tests for module 'raise'.
3151         * modules/raise-tests: New file.
3152         * tests/test-raise.c: New file.
3153
3154         raise: Support for MSVC.
3155         * lib/signal.in.h (raise): New declaration.
3156         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3157         for native Windows platforms.
3158         * m4/raise.m4: New file.
3159         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3160         HAVE_RAISE, REPLACE_RAISE.
3161         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3162         REPLACE_RAISE.
3163         * modules/raise (Status, Notice): Remove fields.
3164         (Files): Add m4/raise.m4.
3165         (Depends-on): Add signal, msvc-inval.
3166         (configure.ac): Use the common idioms.
3167         (Maintainer): Add me.
3168         * tests/test-signal-c++.cc: Check the signature of raise.
3169         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3170
3171 2011-09-23  Bruno Haible  <bruno@clisp.org>
3172
3173         pipe2: Fix compilation on pre-C99 compilers.
3174         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3175
3176 2011-09-23  Bruno Haible  <bruno@clisp.org>
3177
3178         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3179         * lib/msvc-nothrow.h: New file.
3180         * lib/msvc-nothrow.c: New file.
3181         * m4/msvc-nothrow.m4: New file.
3182         * modules/msvc-nothrow: New file.
3183         * lib/dup2.c: Include msvc-nothrow.h.
3184         (rpl_dup2): No need to protect _get_osfhandle call here.
3185         * lib/accept4.c: Include msvc-nothrow.h.
3186         * lib/error.c: Likewise.
3187         * lib/fcntl.c: Likewise.
3188         * lib/lseek.c: Likewise.
3189         * lib/nonblocking.c: Likewise.
3190         * lib/poll.c: Likewise.
3191         * lib/read.c: Likewise.
3192         * lib/select.c: Likewise.
3193         * lib/sockets.h: Likewise.
3194         * lib/sockets.c: Likewise.
3195         * lib/stdio-read.c: Likewise.
3196         * lib/stdio-write.c: Likewise.
3197         * lib/write.c: Likewise.
3198         * lib/w32sock.h: Likewise.
3199         * lib/w32spawn.h: Likewise.
3200         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3201         * lib/fsync.c: Likewise.
3202         * lib/isapipe.c: Likewise.
3203         * modules/dup2 (Depends-on): Add msvc-nothrow.
3204         * modules/accept4 (Depends-on): Likewise.
3205         * modules/error (Depends-on): Likewise.
3206         * modules/fcntl (Depends-on): Likewise.
3207         * modules/lseek (Depends-on): Likewise.
3208         * modules/nonblocking (Depends-on): Likewise.
3209         * modules/poll (Depends-on): Likewise.
3210         * modules/read (Depends-on): Likewise.
3211         * modules/select (Depends-on): Likewise.
3212         * modules/sockets (Depends-on): Likewise.
3213         * modules/sigpipe (Depends-on): Likewise.
3214         * modules/write (Depends-on): Likewise.
3215         * modules/accept (Depends-on): Likewise.
3216         * modules/bind (Depends-on): Likewise.
3217         * modules/connect (Depends-on): Likewise.
3218         * modules/gethostname (Depends-on): Likewise.
3219         * modules/getpeername (Depends-on): Likewise.
3220         * modules/getsockname (Depends-on): Likewise.
3221         * modules/getsockopt (Depends-on): Likewise.
3222         * modules/ioctl (Depends-on): Likewise.
3223         * modules/listen (Depends-on): Likewise.
3224         * modules/recv (Depends-on): Likewise.
3225         * modules/recvfrom (Depends-on): Likewise.
3226         * modules/send (Depends-on): Likewise.
3227         * modules/sendto (Depends-on): Likewise.
3228         * modules/setsockopt (Depends-on): Likewise.
3229         * modules/shutdown (Depends-on): Likewise.
3230         * modules/socket (Depends-on): Likewise.
3231         * modules/execute (Depends-on): Likewise.
3232         * modules/spawn-pipe (Depends-on): Likewise.
3233         * modules/flock (Depends-on): Likewise.
3234         * modules/fsync (Depends-on): Likewise.
3235         * modules/isapipe (Depends-on): Likewise.
3236         * tests/test-cloexec.c: Include msvc-nothrow.h.
3237         * tests/test-dup-safer.c: Likewise.
3238         * tests/test-dup2.c: Likewise.
3239         * tests/test-dup3.c: Likewise.
3240         * tests/test-fcntl.c: Likewise.
3241         * tests/test-pipe.c: Likewise.
3242         * tests/test-pipe2.c: Likewise.
3243         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3244         * modules/unistd-safer-tests (Depends-on): Likewise.
3245         * modules/dup2-tests (Depends-on): Likewise.
3246         * modules/dup3-tests (Depends-on): Likewise.
3247         * modules/fcntl-tests (Depends-on): Likewise.
3248         * modules/pipe-posix-tests (Depends-on): Likewise.
3249         * modules/pipe2-tests (Depends-on): Likewise.
3250
3251 2011-09-23  Bruno Haible  <bruno@clisp.org>
3252
3253         dup2: Make code more maintainable.
3254         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3255         (rpl_dup2): Use it.
3256         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3257         * modules/dup2 (configure.ac): Invoke it.
3258         Reported by Paul Eggert.
3259
3260 2011-09-23  Bruno Haible  <bruno@clisp.org>
3261
3262         msvc-inval: Fix compilation error.
3263         * lib/msvc-inval.h: Include <excpt.h>.
3264
3265 2011-09-23  Bruno Haible  <bruno@clisp.org>
3266
3267         mkdir: Tweak for MSVC 9.
3268         * lib/sys_stat.in.h: Update comments.
3269         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3270
3271         Tests for module 'chdir'.
3272         * modules/chdir-tests: New file.
3273         * tests/test-chdir.c: New file.
3274
3275         New module 'chdir'.
3276         * modules/chdir: New file.
3277         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3278         (chdir): New declaration.
3279         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3280         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3281         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3282         * tests/test-unistd-c++.cc: Check signature of chdir.
3283         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3284         * modules/chdir-long (Depends-on): Add chdir.
3285         * modules/fchdir (Depends-on): Likewise.
3286         * modules/rename (Depends-on): Likewise.
3287         * modules/savewd (Depends-on): Likewise.
3288
3289         rmdir: Support for mingw, MSVC 9.
3290         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3291         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3292
3293         getcwd: Tweak for MSVC 9.
3294         * lib/unistd.in.h: Update comments.
3295         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3296
3297 2011-09-22  Bruno Haible  <bruno@clisp.org>
3298
3299         strerror_r-posix: Avoid a link error on MSVC.
3300         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3301         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3302
3303 2011-09-22  Bruno Haible  <bruno@clisp.org>
3304
3305         select: Avoid link errors on MSVC.
3306         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3307         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3308         * modules/pselect (Link): Likewise.
3309         * NEWS: Mention the change.
3310         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3311         test-select-stdin against $(LIB_SELECT).
3312         * modules/pselect-tests (Makefile.am): Link test-pselect against
3313         $(LIB_SELECT).
3314
3315 2011-09-22  Bruno Haible  <bruno@clisp.org>
3316
3317         select: Avoid compilation error on MSVC.
3318         * lib/select.c: Don't include <stdbool.h>.
3319
3320 2011-09-21  Bruno Haible  <bruno@clisp.org>
3321
3322         Consolidate all uses of PATH_MAX in *.m4 files.
3323         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3324         macros.
3325         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3326         and gl_PATHMAX_SNIPPET.
3327         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3328         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3329         * modules/chdir-long (Files): Add m4/pathmax.m4.
3330         * modules/getcwd (Files): Likewise.
3331
3332 2011-09-21  Bruno Haible  <bruno@clisp.org>
3333
3334         ftruncate: Un-deprecate, concentrate on Win32 support.
3335         * modules/ftruncate (Status, Notice): Remove sections.
3336         (Depends-on): Add largefile.
3337         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3338         non-mingw platforms.
3339         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3340         include <io.h>.
3341         * modules/perror-tests (Depends-on): Add ftruncate.
3342         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3343         'ftruncate' module.
3344
3345 2011-09-21  Bruno Haible  <bruno@clisp.org>
3346
3347         Add dependencies to new dirent related modules.
3348         * modules/opendir (Depends-on): Add closedir.
3349         * modules/getcwd (Depends-on): Add opendir, closedir.
3350         * modules/dirent-safer-tests (Depends-on): Likewise.
3351         * modules/fdopendir-tests (Depends-on): Likewise.
3352         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3353         * modules/renameat-tests (Depends-on): Likewise.
3354
3355 2011-09-21  Bruno Haible  <bruno@clisp.org>
3356
3357         opendir: Avoid compilation error on mingw.
3358         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3359         * modules/opendir (Depends-on): Add unistd.
3360
3361 2011-09-21  Bruno Haible  <bruno@clisp.org>
3362
3363         ftruncate tests: Avoid a test failure on mingw.
3364         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3365
3366 2011-09-21  Bruno Haible  <bruno@clisp.org>
3367
3368         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3369         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3370         native Windows.
3371
3372 2011-09-21  Bruno Haible  <bruno@clisp.org>
3373
3374         New module 'fdopen'.
3375         * lib/stdio.in.h (fdopen): New declaration.
3376         * lib/fdopen.c: New file.
3377         * m4/fdopen.m4: New file.
3378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3379         REPLACE_FDOPEN.
3380         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3381         REPLACE_FDOPEN.
3382         * modules/fdopen: New file.
3383         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3384         * tests/test-stdio-c++.cc: Check signature of fdopen.
3385         * doc/posix-functions/fdopen.texi: Mention the new module.
3386
3387 2011-09-21  Bruno Haible  <bruno@clisp.org>
3388
3389         unlockpt tests: Avoid test failure on NetBSD 5.1.
3390         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3391         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3392
3393 2011-09-21  Bruno Haible  <bruno@clisp.org>
3394
3395         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3396         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3397         * tests/test-getlogin_r.c (main): Likewise.
3398
3399 2011-09-20  Bruno Haible  <bruno@clisp.org>
3400
3401         time tests: Don't require pid_t.
3402         * doc/posix-headers/time.texi: Revert last change.
3403         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3404         * tests/test-time.c: Comment out the check for pid_t.
3405
3406 2011-09-20  Bruno Haible  <bruno@clisp.org>
3407
3408         fsync tests: Avoid a test failure on mingw.
3409         * tests/test-fsync.c (main): Allow a failure with EIO.
3410
3411 2011-09-20  Bruno Haible  <bruno@clisp.org>
3412
3413         euidaccess: Update comments.
3414         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3415
3416 2011-09-20  Bruno Haible  <bruno@clisp.org>
3417
3418         Ensure EBADF returns for socket functions on mingw.
3419         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3420         descriptor is invalid.
3421         * lib/bind.c (rpl_bind): Likewise.
3422         * lib/connect.c (rpl_connect): Likewise.
3423         * lib/getpeername.c (rpl_getpeername): Likewise.
3424         * lib/getsockname.c (rpl_getsockname): Likewise.
3425         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3426         * lib/listen.c (rpl_listen): Likewise.
3427         * lib/recv.c (rpl_recv): Likewise.
3428         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3429         * lib/send.c (rpl_send): Likewise.
3430         * lib/sendto.c (rpl_sendto): Likewise.
3431         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3432         * lib/shutdown.c (rpl_shutdown): Likewise.
3433
3434 2011-09-20  Bruno Haible  <bruno@clisp.org>
3435
3436         select tests: EBADF tests.
3437         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3438         test_bad_fd): New functions.
3439         (test_function): Invoke also test_bad_fd.
3440
3441 2011-09-20  Bruno Haible  <bruno@clisp.org>
3442
3443         Tests for module 'posix_spawn_file_actions_addopen.
3444         * modules/posix_spawn_file_actions_addopen-tests: New file.
3445         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3446
3447         Tests for module 'posix_spawn_file_actions_adddup2'.
3448         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3449         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3450
3451         Tests for module 'posix_spawn_file_actions_addclose'.
3452         * modules/posix_spawn_file_actions_addclose-tests: New file.
3453         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3454
3455 2011-09-20  Bruno Haible  <bruno@clisp.org>
3456
3457         Tests for module 'unlockpt'.
3458         * modules/unlockpt-tests: New file.
3459         * tests/test-unlockpt.c: New file.
3460         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3461
3462         Tests for module 'grantpt'.
3463         * modules/grantpt-tests: New file.
3464         * tests/test-grantpt.c: New file.
3465         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3466
3467 2011-09-20  Bruno Haible  <bruno@clisp.org>
3468
3469         freopen tests: EBADF tests.
3470         * tests/test-freopen.c: Include errno.h, unistd.h.
3471         (main): Add tests for EBADF, commented out for the moment.
3472
3473         fclose tests: EBADF tests.
3474         * tests/test-fclose.c (main): Add tests for EBADF.
3475
3476         fflush tests: EBADF tests.
3477         * tests/test-fflush.c: Include errno.h, macros.h.
3478         (main): Add tests for EBADF.
3479
3480         ftello tests: EBADF tests.
3481         * tests/test-ftello4.sh: New file.
3482         * tests/test-ftello4.c: New file.
3483         * modules/ftello-tests (Files): Add them.
3484         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3485
3486         fseeko tests: EBADF tests.
3487         * tests/test-fseeko4.sh: New file.
3488         * tests/test-fseeko4.c: New file.
3489         * modules/fseeko-tests (Files): Add them.
3490         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3491
3492         Tests for function fputc().
3493         * modules/fputc-tests: New file.
3494         * tests/test-fputc.c: New file.
3495         * modules/stdio-tests (Depends-on): Add fputc-tests.
3496
3497         Tests for function fgetc().
3498         * modules/fgetc-tests: New file.
3499         * tests/test-fgetc.c: New file.
3500         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3501
3502         Tests for function fdopen().
3503         * modules/fdopen-tests: New file.
3504         * tests/test-fdopen.c: New file.
3505         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3506
3507         Tests for module 'vdprintf'.
3508         * modules/vdprintf-tests: New file.
3509         * tests/test-vdprintf.c: New file.
3510
3511         Tests for module 'dprintf'.
3512         * modules/dprintf-tests: New file.
3513         * tests/test-dprintf.c: New file.
3514
3515 2011-09-20  Bruno Haible  <bruno@clisp.org>
3516
3517         Tests for module 'ioctl'.
3518         * modules/ioctl-tests: New file.
3519         * tests/test-ioctl.c: New file.
3520
3521 2011-09-20  Bruno Haible  <bruno@clisp.org>
3522
3523         fcntl tests: EBADF tests.
3524         * tests/test-fcntl.c (main): Add more tests for EBADF.
3525
3526 2011-09-20  Bruno Haible  <bruno@clisp.org>
3527
3528         utimensat tests: EBADF tests.
3529         * tests/test-utimensat.c (main): Add tests for EBADF.
3530
3531         renameat tests: EBADF tests.
3532         * tests/test-renameat.c (main): Add tests for EBADF.
3533
3534         mkfifoat tests: EBADF tests.
3535         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3536
3537         readlinkat tests: EBADF tests.
3538         * tests/test-readlinkat.c (main): Add tests for EBADF.
3539
3540         symlinkat tests: EBADF tests.
3541         * tests/test-symlinkat.c (main): Add tests for EBADF.
3542
3543         linkat tests: EBADF tests.
3544         * tests/test-linkat.c (main): Add tests for EBADF.
3545
3546         Tests for module 'faccessat'.
3547         * modules/faccessat-tests: New file.
3548         * tests/test-faccessat.c: New file.
3549
3550         fdopendir tests: EBADF tests.
3551         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3552
3553         openat tests: EBADF tests.
3554         * tests/test-fchownat.c (main): Add tests for EBADF.
3555         * tests/test-fstatat.c (main): Likewise.
3556         * tests/test-mkdirat.c (main): Likewise.
3557         * tests/test-openat.c (main): Likewise.
3558         * tests/test-unlinkat.c (main): Likewise.
3559         * tests/test-fchmodat.c: New file.
3560         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3561         (Makefile.am): Also run 'test-fchmodat'.
3562
3563 2011-09-20  Bruno Haible  <bruno@clisp.org>
3564
3565         utimens, futimens, fdutimensat tests: EBADF tests.
3566         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3567
3568         Tests for function fstat().
3569         * modules/fstat-tests: New file.
3570         * tests/test-fstat.c: New file.
3571         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3572
3573 2011-09-20  Bruno Haible  <bruno@clisp.org>
3574
3575         test-ttyname_r tests: EBADF tests.
3576         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3577
3578         Tests for module 'isatty'.
3579         * modules/isatty-tests: New file.
3580         * tests/test-isatty.c: New file.
3581
3582         Tests for module 'write'.
3583         * modules/write-tests: New file.
3584         * tests/test-write.c: New file.
3585
3586         Tests for module 'read'.
3587         * modules/read-tests: New file.
3588         * tests/test-read.c: New file.
3589
3590         pwrite tests: EBADF tests.
3591         * tests/test-pwrite.c (main): Add tests for EBADF.
3592
3593         pread tests: EBADF tests.
3594         * tests/test-pread.c (main): Add tests for EBADF.
3595
3596         lseek tests: EBADF tests.
3597         * tests/test-lseek.c (main): Add more tests for EBADF.
3598
3599         Tests for module 'ftruncate'.
3600         * modules/ftruncate-tests: New file.
3601         * tests/test-ftruncate.sh: New file.
3602         * tests/test-ftruncate.c: New file.
3603
3604         fsync tests: EBADF tests.
3605         * tests/test-fsync.c (main): Add more tests for EBADF.
3606
3607         fdatasync tests: EBADF tests.
3608         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3609
3610         Tests for module 'fchown'.
3611         * modules/fchown-tests: New file.
3612         * tests/test-fchown.c: New file.
3613
3614         Tests for module 'fchmod'.
3615         * modules/fchmod-tests: New file.
3616         * tests/test-fchmod.c: New file.
3617
3618         fchdir tests: EBADF tests.
3619         * tests/test-fchdir.c (main): Add more tests for EBADF.
3620
3621         dup2 tests: EBADF tests.
3622         * tests/test-dup2.c (main): Add more tests for EBADF.
3623
3624         Tests for module 'dup'.
3625         * modules/dup-tests: New file.
3626         * tests/test-dup.c: New file.
3627
3628         Tests for module 'close'.
3629         * modules/close-tests: New file.
3630         * tests/test-close.c: New file.
3631
3632 2011-09-20  Bruno Haible  <bruno@clisp.org>
3633
3634         Tests for module 'shutdown'.
3635         * modules/shutdown-tests: New file.
3636         * tests/test-shutdown.c: New file.
3637
3638         Tests for module 'setsockopt'.
3639         * modules/setsockopt-tests: New file.
3640         * tests/test-setsockopt.c: New file.
3641
3642         Tests for module 'sendto'.
3643         * modules/sendto-tests: New file.
3644         * tests/test-sendto.c: New file.
3645
3646         Tests for module 'send'.
3647         * modules/send-tests: New file.
3648         * tests/test-send.c: New file.
3649
3650         Tests for module 'recvfrom'.
3651         * modules/recvfrom-tests: New file.
3652         * tests/test-recvfrom.c: New file.
3653
3654         Tests for module 'recv'.
3655         * modules/recv-tests: New file.
3656         * tests/test-recv.c: New file.
3657
3658         Tests for module 'listen'.
3659         * modules/listen-tests: New file.
3660         * tests/test-listen.c: New file.
3661
3662         Tests for module 'getsockopt'.
3663         * modules/getsockopt-tests: New file.
3664         * tests/test-getsockopt.c: New file.
3665
3666         Tests for module 'getsockname'.
3667         * modules/getsockname-tests: New file.
3668         * tests/test-getsockname.c: New file.
3669
3670         Tests for module 'getpeername'.
3671         * modules/getpeername-tests: New file.
3672         * tests/test-getpeername.c: New file.
3673
3674         Tests for module 'connect'.
3675         * modules/connect-tests: New file.
3676         * tests/test-connect.c: New file.
3677
3678         Tests for module 'bind'.
3679         * modules/bind-tests: New file.
3680         * tests/test-bind.c: New file.
3681
3682         accept4 tests: Fix for native Windows.
3683         * tests/test-accept4.c: Include sockets.h.
3684         (main): Invoke gl_sockets_startup.
3685         * modules/accept4-tests (Depends-on): Add sockets.
3686
3687         accept tests: Fix for native Windows.
3688         * tests/test-accept.c: Include sockets.h.
3689         (main): Invoke gl_sockets_startup.
3690         * modules/accept-tests (Depends-on): Add sockets.
3691
3692 2011-09-19  Bruno Haible  <bruno@clisp.org>
3693
3694         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3695         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3696         do...while(0).
3697         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3698         Suggested by Paul Eggert.
3699
3700 2011-09-19  Bruno Haible  <bruno@clisp.org>
3701
3702         sched: Ensure pid_t is defined.
3703         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3704         not define pid_t.
3705         * lib/sched.in.h: Include <sys/types.h>.
3706         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3707         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3708
3709 2011-09-19  Bruno Haible  <bruno@clisp.org>
3710
3711         msvc-inval: Ensure the entire expansion is a single statement.
3712         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3713         of braces.
3714
3715 2011-09-19  Jim Meyering  <meyering@redhat.com>
3716
3717         tests: use printf, not echo in init.sh's warn_ function
3718         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3719         misbehave when given strings containing a backslash or starting
3720         with e.g., -n.  James Youngman suggested setting IFS.
3721
3722 2011-09-19  Eric Blake  <eblake@redhat.com>
3723
3724         futimens: enhance test
3725         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3726         closed non-negative fd.
3727
3728         date: accept 'hence' as opposite of 'ago'
3729         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3730         * tests/test-parse-datetime.c (main): Enhance test.
3731         Suggested by Jesse Wilson.
3732
3733 2011-09-19  Jim Meyering  <meyering@redhat.com>
3734
3735         getcwd: don't fail in a deep directory on a system without openat
3736         Before this change, getcwd would fail when called from a directory
3737         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3738         the non-openat implementation used "..", "../..", "../../..", etc.
3739         to access ancestor directories.  With too many, that string would
3740         be longer than PATH_MAX.
3741         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3742         using gnulib's openat replacement.
3743         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3744         we're using the replacement function.
3745
3746 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3747
3748         maint.mk: avoid warnings from perl about missing files
3749         * top/maint.mk (def_sym_regex): Ignore files listed in
3750         $(gl_other_headers_) that do not exist, say because a project
3751         does not use a corresponding module.
3752
3753 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3754
3755         stat: use pathmax.h only if needed
3756         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3757         This is better for Emacs, which does not have a mingw port and
3758         therefore can avoid the pathmax module.
3759
3760         utimens: remove dependency on dup2
3761         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3762         to work around the Linux kernel bug.
3763         * modules/utimens (Depends-on): Remove dup2.
3764
3765 2011-09-18  Bruno Haible  <bruno@clisp.org>
3766
3767         inet_ntop, inet_pton: Look for it also in libresolv.
3768         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3769         libnsl, search for it in libresolv.
3770         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3771         Needed on Solaris 7.
3772
3773 2011-09-18  Bruno Haible  <bruno@clisp.org>
3774
3775         accept, accept4 tests: Avoid link error on Solaris.
3776         * modules/accept-tests (Makefile.am): Link test-accept against
3777         $(LIBSOCKET).
3778         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3779         $(LIBSOCKET).
3780
3781         accept4: Avoid link error on Solaris.
3782         * modules/accept4 (Link): New section.
3783
3784         socket functions: Avoid link errors on Solaris.
3785         * modules/accept (Depends-on): Add socketlib.
3786         (Link): New section.
3787         * modules/bind (Depends-on): Add socketlib.
3788         (Link): New section.
3789         * modules/connect (Depends-on): Add socketlib.
3790         (Link): New section.
3791         * modules/getpeername (Depends-on): Add socketlib.
3792         (Link): New section.
3793         * modules/getsockname (Depends-on): Add socketlib.
3794         (Link): New section.
3795         * modules/getsockopt (Depends-on): Add socketlib.
3796         (Link): New section.
3797         * modules/listen (Depends-on): Add socketlib.
3798         (Link): New section.
3799         * modules/recv (Depends-on): Add socketlib.
3800         (Link): New section.
3801         * modules/recvfrom (Depends-on): Add socketlib.
3802         (Link): New section.
3803         * modules/send (Depends-on): Add socketlib.
3804         (Link): New section.
3805         * modules/sendto (Depends-on): Add socketlib.
3806         (Link): New section.
3807         * modules/setsockopt (Depends-on): Add socketlib.
3808         (Link): New section.
3809         * modules/shutdown (Depends-on): Add socketlib.
3810         (Link): New section.
3811         * modules/socket (Depends-on): Add socketlib.
3812         (Link): New section.
3813
3814 2011-09-18  Bruno Haible  <bruno@clisp.org>
3815
3816         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3817         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3818         than 5 seconds.
3819         * modules/ptsname-tests (configure.ac): Test for alarm.
3820
3821 2011-09-18  Bruno Haible  <bruno@clisp.org>
3822
3823         posix_spawn_file_actions_add*: Fix module dependencies.
3824         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3825         posix_spawn_file_actions_init.
3826         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3827         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3828
3829 2011-09-18  Bruno Haible  <bruno@clisp.org>
3830
3831         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3832         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3833         * tests/test-renameat.c (main): Likewise.
3834
3835 2011-09-18  Bruno Haible  <bruno@clisp.org>
3836
3837         Tests for module 'accept4'.
3838         * modules/accept4-tests: New file.
3839         * tests/test-accept4.c: New file.
3840
3841 2011-09-18  Bruno Haible  <bruno@clisp.org>
3842
3843         Tests for module 'accept'.
3844         * modules/accept-tests: New file.
3845         * tests/test-accept.c: New file.
3846
3847 2011-09-18  Bruno Haible  <bruno@clisp.org>
3848
3849         dup2: Support for MSVC.
3850         * lib/dup2.c: Include msvc-inval.h.
3851         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3852         _get_osfhandle calls.
3853         * modules/dup2 (Depends-on): Add msvc-inval.
3854         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3855
3856         New module 'msvc-inval'.
3857         * lib/msvc-inval.h: New file.
3858         * lib/msvc-inval.c: New file.
3859         * m4/msvc-inval.m4: New file.
3860         * modules/msvc-inval: New file.
3861
3862 2011-09-17  Bruno Haible  <bruno@clisp.org>
3863
3864         Tests for module 'pclose'.
3865         * modules/pclose-tests: New file.
3866
3867         New module 'pclose'.
3868         * lib/stdio.in.h (pclose): New declaration.
3869         * lib/pclose.c: New file.
3870         * m4/pclose.m4: New file.
3871         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3872         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3873         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3874         * modules/pclose: New file.
3875         * modules/popen-tests (Depends-on): Add pclose.
3876         * modules/popen-safer-tests (Depends-on): Likewise.
3877         * doc/posix-functions/pclose.texi: Mention the new module.
3878
3879 2011-09-17  Bruno Haible  <bruno@clisp.org>
3880
3881         popen: Support for MSVC.
3882         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3883         * lib/popen.c (popen): Provide alternate definition for native Windows.
3884         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3886         * modules/popen (Depends-on, configure.ac): Update condition.
3887         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3888         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3889         fixed.
3890
3891 2011-09-17  Bruno Haible  <bruno@clisp.org>
3892
3893         isnanl, isnand, isnanf: Work around MSVC bug.
3894         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3895
3896 2011-09-17  Bruno Haible  <bruno@clisp.org>
3897
3898         sys_socket tests: Fix recent mistake.
3899         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3900
3901 2011-09-17  Bruno Haible  <bruno@clisp.org>
3902
3903         putenv: Support for MSVC.
3904         * modules/putenv (Depends-on): Add environ.
3905         * lib/putenv.c (environ): Disable declaration.
3906         * lib/unistd.in.h: Update comment.
3907
3908 2011-09-17  Bruno Haible  <bruno@clisp.org>
3909
3910         math: Avoid macro redefinition warnings on MSVC.
3911         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3912         Undefine before redefining.
3913
3914 2011-09-17  Bruno Haible  <bruno@clisp.org>
3915
3916         doc: Mention functions which are declared as macros.
3917         * doc/posix-functions/*[fl].texi: Mention that some functions are
3918         defined as macros with arguments only.
3919
3920 2011-09-17  Bruno Haible  <bruno@clisp.org>
3921
3922         Add dependencies to new dirent related modules.
3923         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3924         * modules/fts (Depends-on): Likewise.
3925         * modules/glob (Depends-on): Likewise.
3926         * modules/savedir (Depends-on): Likewise.
3927         * modules/scandir (Depends-on): Likewise.
3928         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3929         * modules/fdopendir (Depends-on): Add opendir.
3930
3931 2011-09-17  Bruno Haible  <bruno@clisp.org>
3932
3933         inet_pton: Support for MSVC on Windows Vista or newer.
3934         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3935         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3936         HAVE_DECL_INET_PTON is defined.
3937         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3938         On platforms with <winsock2.h>, test whether inet_pton is declared in
3939         <ws2tcpip.h>. If so, arrange to replace it.
3940         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3941         REPLACE_INET_PTON.
3942         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3943         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3944         (Depends-on, configure.ac): Update condition.
3945         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3946
3947 2011-09-17  Bruno Haible  <bruno@clisp.org>
3948
3949         inet_ntop: Support for MSVC on Windows Vista or newer.
3950         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3951         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3952         HAVE_DECL_INET_NTOP is defined.
3953         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3954         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3955         <ws2tcpip.h>. If so, arrange to replace it.
3956         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3957         REPLACE_INET_NTOP.
3958         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3959         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3960         (Depends-on, configure.ac): Update condition.
3961         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3962
3963 2011-09-16  Eric Blake  <eblake@redhat.com>
3964
3965         test-fsync: yet another enhancement
3966         * tests/test-fsync.c (main): Also test behavior on read-only text
3967         file.
3968
3969 2011-09-16  Bruno Haible  <bruno@clisp.org>
3970
3971         Enhance fsync, fdatasync tests.
3972         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3973         * tests/test-fdatasync.c (main): Likewise.
3974
3975 2011-09-16  Bruno Haible  <bruno@clisp.org>
3976
3977         Support for MSVC compiler: Ensure mode_t gets defined.
3978         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3979         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3980         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3981         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3982         * tests/test-fcntl-h.c: Check that mode_t is defined.
3983         * tests/test-sys_stat.c: Likewise.
3984         * tests/test-sys_types.c: Likewise.
3985         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3986         * doc/posix-headers/sys_stat.texi: Likewise.
3987         * doc/posix-headers/sys_types.texi: Likewise.
3988
3989 2011-09-16  Bruno Haible  <bruno@clisp.org>
3990
3991         sys_stat: Support for MSVC.
3992         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3993         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3994         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3995         MSVC.
3996
3997 2011-09-16  Bruno Haible  <bruno@clisp.org>
3998
3999         Support for MSVC compiler: Ensure off_t gets defined.
4000         * lib/unistd.in.h: Include <sys/types.h>.
4001         * tests/test-fcntl-h.c: Check that off_t is defined.
4002         * tests/test-sys_stat.c: Likewise.
4003         * tests/test-sys_types.c: Likewise.
4004
4005 2011-09-16  Eric Blake  <eblake@redhat.com>
4006
4007         fdatasync: port to Solaris
4008         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4009         * modules/fdatasync (Link): Document it.
4010         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4011
4012         fdatasync: port to MacOS X 10.7
4013         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4014         declared.
4015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4016         * modules/unistd (Makefile.am): Substitute it.
4017         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4018         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4019
4020         fdatasync: minor improvements
4021         * modules/fdatasync (Depends-on): Add condition for fsync.
4022         * lib/fdatasync.c (fdatasync): Add comment.
4023         * tests/test-unistd-c++.cc: Test fdatasync.
4024
4025         unistd: update refs to newer POSIX
4026         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4027         Suggested by Bruno Haible.
4028
4029         fdatasync: new module
4030         * modules/fsync (Description): Document difference to fdatasync.
4031         * modules/fdatasync: New module.
4032         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4033         * lib/fdatasync.c (fdatasync): Likewise.
4034         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4035         defaults.
4036         * modules/unistd (Makefile.am): Set witnesses.
4037         * lib/unistd.in.h (fdatasync): Declare.
4038         * MODULES.html.sh: Document it.
4039         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4040         * modules/fdatasync-tests: New test.
4041         * tests/test-fdatasync.c: Likewise.
4042
4043 2011-09-16  Eric Blake  <eblake@redhat.com>
4044
4045         test-fsync: enhance tests
4046         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4047         * tests/test-fsync.c (main): Enhance test.
4048
4049 2011-09-15  Bruno Haible  <bruno@clisp.org>
4050
4051         Support for MSVC compiler: Ensure ssize_t gets defined.
4052         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4053         * doc/posix-headers/stdio.texi: Likewise.
4054         * modules/stdio (Depends-on): Add ssize_t.
4055         * modules/sys_socket (Depends-on): Likewise.
4056         * modules/sys_types (Depends-on): Likewise.
4057         * modules/sys_uio (Depends-on): Likewise.
4058         * modules/unistd (Depends-on): Likewise.
4059         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4060         * tests/test-sys_types.c: Check that ssize_t is defined.
4061
4062 2011-09-14  Bruno Haible  <bruno@clisp.org>
4063
4064         Avoid using #, the m4 comment starter character, near brackets.
4065         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4066         delimiter character in sed expressions.
4067         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4068         Suggested by Eric Blake.
4069
4070         Properly quote AC_CHECK_DECLS' 4th argument.
4071         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4072         argument.
4073         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4074         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4075         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4076         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4077         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4078         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4079         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4080         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4081         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4082         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4083         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4084         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4085         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4086         * m4/isinf.m4 (gl_ISINF): Likewise.
4087         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4088         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4089         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4090         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4091         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4092         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4093         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4094         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4095         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4096         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4097         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4098         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4100         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4102         Reported by Eric Blake.
4103
4104         Properly quote AC_CHECK_DECL's 4th argument.
4105         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4106         argument.
4107         * m4/argp.m4 (gl_ARGP): Likewise.
4108         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4109         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4110         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4111         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4112         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4113         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4114         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4115         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4116         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4117         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4118         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4119         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4120         Reported by Eric Blake.
4121
4122 2011-09-14  Eric Blake  <eblake@redhat.com>
4123
4124         opendir: avoid compile warning
4125         * lib/opendir.c (includes): Always include errno.h.
4126         Reported by Tatsuro MATSUOKA.
4127
4128 2011-09-14  Jim Meyering  <meyering@redhat.com>
4129
4130         maint.mk: sc_tight_scope: propagate failure from sub-make
4131         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4132         Reported by Martin von Gagern.
4133
4134 2011-09-13  Bruno Haible  <bruno@clisp.org>
4135
4136         tempname: Support for MSVC.
4137         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4138         MSVC.
4139         * modules/tempname (Depends-on): Add fcntl-h.
4140
4141 2011-09-13  Bruno Haible  <bruno@clisp.org>
4142
4143         sys_time: Support for MSVC.
4144         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4145         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4146         include <winsock2.h>.
4147         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4148         function declarations that collide with POSIX.
4149         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4150         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4151
4152 2011-09-13  Bruno Haible  <bruno@clisp.org>
4153
4154         stat: Support for MSVC.
4155         * lib/stat.c: Include pathmax.h.
4156         * modules/stat (Depends-on): Add pathmax.
4157
4158         pathmax: Support for native Windows.
4159         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4160
4161 2011-09-12  Bruno Haible  <bruno@clisp.org>
4162
4163         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4164         * lib/dirent.in.h (struct dirent): New type.
4165         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4166         DT_WHT): New macros.
4167         (DIR): New type.
4168         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4169         (readdir, rewinddir): New declarations.
4170         * lib/dirent-private.h: New file.
4171         * lib/opendir.c: New file.
4172         * lib/readdir.c: New file.
4173         * lib/rewinddir.c: New file.
4174         * lib/closedir.c: New file.
4175         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4176         * m4/opendir.m4: New file.
4177         * m4/readdir.m4: New file.
4178         * m4/rewinddir.m4: New file.
4179         * m4/closedir.m4: New file.
4180         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4181         REPLACE_CLOSEDIR here.
4182         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4183         readdir, rewinddir are declared.
4184         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4185         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4186         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4187         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4188         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4189         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4190         * modules/opendir: New file.
4191         * modules/readdir: New file.
4192         * modules/rewinddir: New file.
4193         * modules/closedir: New file.
4194         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4195         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4196         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4197         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4198         * NEWS: Mention the 'fchdir' change.
4199
4200 2011-09-11  Bruno Haible  <bruno@clisp.org>
4201
4202         asm-underscore.m4: Support for MSVC.
4203         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4204         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4205
4206 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4207
4208         Doc about crypt functions.
4209         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4210         needing for _GNU_SOURCE to get crypt.
4211         * doc/posix-functions/encrypt.texi: Likewise.
4212         * doc/posix-functions/setkey.texi: Likewise.
4213
4214 2011-09-11  Bruno Haible  <bruno@clisp.org>
4215
4216         doc: Update regarding MSVC 9.
4217         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4218         tested".
4219         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4220         * doc/posix-headers/*.texi: Likewise.
4221         * doc/pastposix-functions/*.texi: Likewise.
4222         * doc/glibc-functions/*.texi: Likewise.
4223         * doc/glibc-headers/*.texi: Likewise.
4224
4225 2011-09-11  Bruno Haible  <bruno@clisp.org>
4226
4227         unistd et al.: Don't assume <unistd.h> exists.
4228         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4229         does not exist.
4230         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4231         exist. But include <stdlib.h>.
4232         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4233         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4234         symlink() does not exist.
4235         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4236         include <io.h> instead.
4237         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4238         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4239         include <direct.h> instead.
4240         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4241         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4242         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4243         <io.h> instead.
4244         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4245         correctly if the system does not have hard links.
4246         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4247         <direct.h> instead.
4248         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4249         it when looking for function declarations.
4250         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4251         <direct.h> and <io.h> instead.
4252         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4253
4254 2011-09-11  Bruno Haible  <bruno@clisp.org>
4255
4256         strcase: Support for MSVC.
4257         * modules/strcase (Status, Notice): Remove obsoletion mark.
4258         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4259         * doc/posix-functions/strncasecmp.texi: Likewise.
4260
4261         strings: Don't assume <strings.h> exists.
4262         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4263         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4264         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4265         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4266
4267 2011-09-11  Bruno Haible  <bruno@clisp.org>
4268
4269         dirent: Don't assume <dirent.h> exists.
4270         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4271         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4272         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4273         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4274
4275 2011-09-11  Bruno Haible  <bruno@clisp.org>
4276
4277         Fix wint_t on MSVC.
4278         * lib/wchar.in.h (wint_t): On MSVC, override it.
4279         * lib/wctype.in.h (wint_t): Likewise.
4280         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4281         MSVC.
4282         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4283         * doc/posix-headers/wctype.texi: Likewise.
4284
4285 2011-09-11  Bruno Haible  <bruno@clisp.org>
4286
4287         sys_types: Fix typo.
4288         * lib/sys_types.in.h: Fix typo in comment.
4289         Reported by Paul Eggert.
4290
4291         Support for MSVC compiler: Ensure size_t gets defined.
4292         * modules/strings (Depends-on): Add 'sys_types'.
4293         * modules/sys_uio (Depends-on): Likewise.
4294         * lib/sys_uio.in.h: Update comment.
4295
4296         C++ tests for module 'sys_types'.
4297         * modules/sys_types-c++-tests: New file.
4298         * tests/test-sys_types-c++.cc: New file.
4299
4300         Tests for module 'sys_types'.
4301         * modules/sys_types-tests: New file.
4302         * tests/test-sys_types.c: New file.
4303
4304         New module 'sys_types'.
4305         * lib/sys_types.in.h: New file.
4306         * m4/sys_types_h.m4: New file.
4307         * modules/sys_types: New file.
4308         * doc/posix-headers/sys_types.texi: Mention the new module and the
4309         size_t problem on MSVC 9.
4310
4311 2011-09-11  Bruno Haible  <bruno@clisp.org>
4312
4313         Support for MSVC compiler: Avoid division by a literal 0.
4314         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4315         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4316         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4317         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4318         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4319         * tests/infinity.h: New file.
4320         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4321         on MSVC.
4322         * tests/test-ceilf1.c: Include infinity.h.
4323         (main): Use Infinityf.
4324         * tests/test-ceil1.c: Include infinity.h.
4325         (main): Use Infinityd.
4326         * tests/test-ceill.c: Include infinity.h.
4327         (main): Use Infinityl.
4328         * tests/test-dprintf-posix.c: Include infinity.h.
4329         (test_function): Use Infinityd.
4330         * tests/test-floorf1.c: Include infinity.h.
4331         (main): Use Infinityf.
4332         * tests/test-floor1.c: Include infinity.h.
4333         (main): Use Infinityd.
4334         * tests/test-floorl.c: Include infinity.h.
4335         (main): Use Infinityl.
4336         * tests/test-fprintf-posix.c: Include infinity.h.
4337         (test_function): Use Infinityd.
4338         * tests/test-frexp.c: Include infinity.h.
4339         (main): Use Infinityd.
4340         * tests/test-frexpl.c: Include infinity.h.
4341         (main): Use Infinityl.
4342         * tests/test-isfinite.c: Include infinity.h.
4343         (test_isfinitef): Use Infinityf.
4344         (test_isfinited): Use Infinityd.
4345         (test_isfinitel): Use Infinityl.
4346         * tests/test-isinf.c: Include infinity.h.
4347         (test_isinff): Use Infinityf.
4348         (test_isinfd): Use Infinityd.
4349         (test_isinfl): Use Infinityl.
4350         * tests/test-isnan.c: Include infinity.h.
4351         (test_float): Use Infinityf.
4352         (test_double): Use Infinityd.
4353         (test_long_double): Use Infinityl.
4354         * tests/test-isnanf.h: Include infinity.h.
4355         (main): Use Infinityf.
4356         * tests/test-isnand.h: Include infinity.h.
4357         (main): Use Infinityd.
4358         * tests/test-isnanl.h: Include infinity.h.
4359         (main): Use Infinityl.
4360         * tests/test-ldexpl.c: Include infinity.h.
4361         (main): Use Infinityl.
4362         * tests/test-printf-posix.h: Include infinity.h.
4363         (test_function): Use Infinityd.
4364         * tests/test-roundf1.c: Include infinity.h.
4365         (main): Use Infinityf.
4366         * tests/test-round1.c: Include infinity.h.
4367         (main): Use Infinityd.
4368         * tests/test-roundl.c: Include infinity.h.
4369         (main): Use Infinityl.
4370         * tests/test-signbit.c: Include infinity.h.
4371         (test_signbitf): Use Infinityf.
4372         (test_signbitd): Use Infinityd.
4373         (test_signbitl): Use Infinityl.
4374         * tests/test-snprintf-posix.h: Include infinity.h.
4375         (test_function): Use Infinityd, Infinityl.
4376         * tests/test-sprintf-posix.h: Include infinity.h.
4377         (test_function): Use Infinityd, Infinityl.
4378         * tests/test-truncf1.c: Include infinity.h.
4379         (main): Use Infinityf.
4380         * tests/test-trunc1.c: Include infinity.h.
4381         (main): Use Infinityd.
4382         * tests/test-truncl.c: Include infinity.h.
4383         (main): Use Infinityl.
4384         * tests/test-vasnprintf-posix.c: Include infinity.h.
4385         (test_function): Use Infinityd, Infinityl.
4386         * tests/test-vasprintf-posix.c: Include infinity.h.
4387         (test_function): Use Infinityd, Infinityl.
4388         * modules/ceilf-tests (Files): Add tests/infinity.h.
4389         * modules/ceil-tests (Files): Likewise.
4390         * modules/ceill-tests (Files): Likewise.
4391         * modules/dprintf-posix-tests (Files): Likewise.
4392         * modules/floorf-tests (Files): Likewise.
4393         * modules/floor-tests (Files): Likewise.
4394         * modules/floorl-tests (Files): Likewise.
4395         * modules/fprintf-posix-tests (Files): Likewise.
4396         * modules/frexp-tests (Files): Likewise.
4397         * modules/frexp-nolibm-tests (Files): Likewise.
4398         * modules/frexpl-tests (Files): Likewise.
4399         * modules/frexpl-nolibm-tests (Files): Likewise.
4400         * modules/isfinite-tests (Files): Likewise.
4401         * modules/isinf-tests (Files): Likewise.
4402         * modules/isnan-tests (Files): Likewise.
4403         * modules/isnanf-tests (Files): Likewise.
4404         * modules/isnanf-nolibm-tests (Files): Likewise.
4405         * modules/isnand-tests (Files): Likewise.
4406         * modules/isnand-nolibm-tests (Files): Likewise.
4407         * modules/isnanl-tests (Files): Likewise.
4408         * modules/isnanl-nolibm-tests (Files): Likewise.
4409         * modules/ldexpl-tests (Files): Likewise.
4410         * modules/printf-posix-tests (Files): Likewise.
4411         * modules/roundf-tests (Files): Likewise.
4412         * modules/round-tests (Files): Likewise.
4413         * modules/roundl-tests (Files): Likewise.
4414         * modules/signbit-tests (Files): Likewise.
4415         * modules/snprintf-posix-tests (Files): Likewise.
4416         * modules/sprintf-posix-tests (Files): Likewise.
4417         * modules/truncf-tests (Files): Likewise.
4418         * modules/trunc-tests (Files): Likewise.
4419         * modules/truncl-tests (Files): Likewise.
4420         * modules/vasnprintf-posix-tests (Files): Likewise.
4421         * modules/vasprintf-posix-tests (Files): Likewise.
4422         * modules/vdprintf-posix-tests (Files): Likewise.
4423         * modules/vfprintf-posix-tests (Files): Likewise.
4424         * modules/vprintf-posix-tests (Files): Likewise.
4425         * modules/vsnprintf-posix-tests (Files): Likewise.
4426         * modules/vsprintf-posix-tests (Files): Likewise.
4427         * modules/xprintf-posix-tests (Files): Likewise.
4428
4429 2011-09-11  Bruno Haible  <bruno@clisp.org>
4430
4431         Ensure pid_t gets defined.
4432         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4433         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4434         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4435         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4436         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4437         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4438         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4439         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4440         * tests/test-fcntl-h.c: Check that pid_t is defined.
4441         * tests/test-sched.c: Likewise.
4442         * tests/test-termios.c: Likewise.
4443         * tests/test-time.c: Likewise.
4444         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4445         * doc/posix-headers/signal.texi: Likewise.
4446         * doc/posix-headers/sys_types.texi: Likewise.
4447         * doc/posix-headers/time.texi: Likewise.
4448
4449 2011-09-11  Bruno Haible  <bruno@clisp.org>
4450
4451         acl: Fix compilation on Solaris 10 (older version).
4452         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4453         of ACE_EVERYONE.
4454         * lib/set-mode-acl.c (qset_acl): Likewise.
4455         Reported by Christian Jullien <eligis@orange.fr>.
4456
4457 2011-09-10  Bruno Haible  <bruno@clisp.org>
4458
4459         iconv, unsetenv: Add support for MSVC compiler.
4460         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4461         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4462
4463 2011-09-10  Bruno Haible  <bruno@clisp.org>
4464
4465         *printf: Add support for MSVC compiler.
4466         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4467         handles the exception caused by the %n directive. When cross-compiling,
4468         guess no on native Windows.
4469         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4470         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4471         emulate it through vsnprintf.
4472         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4473         * doc/posix-functions/dprintf.texi: Update documentation regarding
4474         MSVC 9.
4475         * doc/posix-functions/fprintf.texi: Likewise.
4476         * doc/posix-functions/printf.texi: Likewise.
4477         * doc/posix-functions/snprintf.texi: Likewise.
4478         * doc/posix-functions/sprintf.texi: Likewise.
4479         * doc/posix-functions/swprintf.texi: Likewise.
4480         * doc/posix-functions/vdprintf.texi: Likewise.
4481         * doc/posix-functions/vfprintf.texi: Likewise.
4482         * doc/posix-functions/vprintf.texi: Likewise.
4483         * doc/posix-functions/vsnprintf.texi: Likewise.
4484         * doc/posix-functions/vsprintf.texi: Likewise.
4485         * doc/glibc-functions/asprintf.texi: Likewise.
4486         * doc/glibc-functions/obstack_printf.texi: Likewise.
4487         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4488         * doc/glibc-functions/vasprintf.texi: Likewise.
4489
4490 2011-09-10  Bruno Haible  <bruno@clisp.org>
4491
4492         nocrash: Add support for native Windows.
4493         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4494
4495 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4496             Bruno Haible  <bruno@clisp.org>
4497
4498         absolute-header, include-next: Add support for MSVC compiler.
4499         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4500         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4501         directory separator in #line directives.
4502         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4503         recognize also backslash as directory separator in #line directives.
4504
4505 2011-09-08  Jim Meyering  <meyering@redhat.com>
4506
4507         maint.mk: mark the post-release commit log with "maint: " prefix
4508         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4509         one-line commit-log summary.
4510
4511 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4512             Bruno Haible  <bruno@clisp.org>
4513
4514         Doc about crypt functions.
4515         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4516         systems.
4517         * doc/posix-functions/encrypt.texi: Likewise.
4518         * doc/posix-functions/setkey.texi: Likewise.
4519
4520 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4521
4522         * lib/gc.h: Fix copyright header.
4523
4524 2011-09-07  Bruno Haible  <bruno@clisp.org>
4525
4526         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4527         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4528         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4529
4530 2011-09-07  Bruno Haible  <bruno@clisp.org>
4531
4532         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4533         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4534         * lib/freopen.c: Likewise.
4535         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4536         * lib/lstat.c: Likewise.
4537         * lib/stat.c: Likewise.
4538         * lib/open.c: Use different syntax for include of <fcntl.h>.
4539         * lib/openat.c: Include fcntl.h again, explicitly.
4540
4541 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4542
4543         parse-datetime: document the newly accepted format
4544         * doc/parse-datetime.texi (Combined date and time of day items):
4545         New section.
4546
4547 2011-09-06  Bruno Haible  <bruno@clisp.org>
4548
4549         acl: Fix a test failure on newer Solaris 10 with ZFS.
4550         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4551         ENOSYS as no ACL.
4552         Reported by Jim Meyering.
4553
4554 2011-09-06  Bruno Haible  <bruno@clisp.org>
4555
4556         acl: Update for AIX >= 5.3 with NFS.
4557         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4558         ENOSYS as no ACL.
4559
4560         acl: Fix a test failure on AIX >= 5.3 with NFS.
4561         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4562         as no ACL.
4563
4564 2011-09-06  Bruno Haible  <bruno@clisp.org>
4565
4566         acl: Fix a test failure on IRIX 6.5 with NFS.
4567         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4568         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4569         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4570         * lib/copy-acl.c (qcopy_acl): Likewise.
4571
4572 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4573
4574         openat: port to AIX 7.1 with large files
4575         AIX 7.1 does a "#define openat open64at" if large files are in use,
4576         so we can't simply #undef openat.  Use the orig_openat trick (similar
4577         to orig_open in lib/open.c) to work around the problem.  Problem
4578         reported by Kevin Brott for GNU tar, in the thread containing
4579         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4580         * lib/openat.c (__need_system_fcntl_h): Define first.
4581         Include <fcntl.h> and <sys/types.h> before undefining.
4582         (orig_openat) [HAVE_OPENAT]: New inline function.
4583         (openat) [HAVE_OPENAT]: Do not undef.
4584         (rpl_openat): Use orig_openat, not openat.
4585
4586 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4587             Bruno Haible  <bruno@clisp.org>
4588
4589         acl: Avoid errors on NonStop Kernel.
4590         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4591         ENOTSUP errors.
4592
4593 2011-09-05  Bruno Haible  <bruno@clisp.org>
4594
4595         acl: Clean up Solaris code.
4596         * lib/acl-internal.h: Remove no-op #if.
4597         * lib/file-has-acl.c: Likewise.
4598         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4599         * lib/copy-acl.c (qcopy_acl): Likewise.
4600
4601 2011-09-05  Bruno Haible  <bruno@clisp.org>
4602
4603         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4604         binaries built on the original Solaris 10.
4605         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4606         trivial.
4607
4608 2011-09-05  Bruno Haible  <bruno@clisp.org>
4609
4610         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4611         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4612         10.
4613         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4614         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4615         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4616         instead of acl_get, facl_get, acl_set, facl_set.
4617
4618 2011-09-05  Bruno Haible  <bruno@clisp.org>
4619
4620         copy-file: Try unit tests on more file systems.
4621         * tests/test-copy-file-1.sh: New file.
4622         * tests/test-copy-file-2.sh: New file.
4623         * modules/copy-file-tests (Files): Add them.
4624         (Makefile.am): Add them to TESTS.
4625
4626         acl: Try unit tests on more file systems.
4627         * tests/test-file-has-acl-1.sh: New file.
4628         * tests/test-file-has-acl-2.sh: New file.
4629         * tests/test-set-mode-acl-1.sh: New file.
4630         * tests/test-set-mode-acl-2.sh: New file.
4631         * tests/test-copy-acl-1.sh: New file.
4632         * tests/test-copy-acl-2.sh: New file.
4633         * modules/acl-tests (Files): Add them.
4634         (Makefile.am): Add them to TESTS.
4635
4636 2011-09-04  Bruno Haible  <bruno@clisp.org>
4637
4638         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4639         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4640         10.
4641         (OLD_ALLOW, OLD_DENY): New macros.
4642         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4643         ACE_ACCESS_ALLOWED_ACE_TYPE.
4644         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4645         ACE_ACCESS_DENIED_ACE_TYPE.
4646         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4647         (NEW_ACE_EXECUTE): Fix value.
4648         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4649         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4650         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4651         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4652         NEW_ACE_SYNCHRONIZE): New macros.
4653         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4654         instead of acl_fromtext, acl_set, facl_set.
4655         Fixes a coreutils/tests/cp/perm failure.
4656
4657 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4658
4659         openat: test for fstatat (..., 0) bug
4660         Further testing with tar suggests that fstatat (..., 0)
4661         does not work in general, on AIX 7.1; see
4662         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4663         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4664         replacement fstatat (which is what older AIX releases were using
4665         anyway).
4666         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4667         use is now changed to orig_fstatat.  This was probably the right
4668         thing to do anyway.
4669         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4670         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4671         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4672         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4673         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4674         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4675         if the bug is found.
4676
4677         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4678         This tests for another fstatat bug on AIX 7.1:
4679         fstatat (AT_FDCWD, ..., 0) does not work.  See
4680         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4681         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4682         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4683         (rpl_fstatat): Adjust so that it works around either (or both)
4684         bugs if present.
4685         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4686
4687 2011-09-03  Karl Berry  <karl@gnu.org>
4688
4689         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4690         in index entries.
4691
4692 2011-09-02  Bruno Haible  <bruno@clisp.org>
4693
4694         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4695         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4696         values of AR, ARFLAGS, RANLIB.
4697         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4698
4699 2011-09-02  Bruno Haible  <bruno@clisp.org>
4700
4701         Find 'ar' program that fits with --host argument.
4702         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4703
4704 2011-09-02  Bruno Haible  <bruno@clisp.org>
4705
4706         tests: init.sh: Support any non-GNU diff.
4707         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4708         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4709         Solaris 8.
4710
4711 2011-09-02  Bruno Haible  <bruno@clisp.org>
4712
4713         tests: init.sh: work also with any non-GNU diff that supports -u
4714         * tests/init.sh: Relax check for diff -u support.
4715         Rather than checking for GNU diff via --version, simply check
4716         for support for -u itself.  Useful at least on OpenBSD 4.9,
4717         AIX 7.1, IRIX 6.5, and Solaris 10.
4718
4719 2011-09-01  Bruno Haible  <bruno@clisp.org>
4720
4721         strtoimax, strtoumax: Document problem on HP-UX 11.
4722         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4723         * doc/posix-functions/strtoumax.texi: Likewise.
4724
4725 2011-09-01  Bruno Haible  <bruno@clisp.org>
4726
4727         strtoumax: Avoid link error on OSF/1 with DTK cc.
4728         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4729         defined as a function.
4730         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4731         strtoumax is defined, not whether it is declared.
4732
4733 2011-09-01  Bruno Haible  <bruno@clisp.org>
4734
4735         strtoimax: Avoid link error on OSF/1 with DTK cc.
4736         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4737         defined as a function.
4738         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4739         strtoimax is defined, not whether it is declared.
4740
4741 2011-09-01  Bruno Haible  <bruno@clisp.org>
4742
4743         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4744         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4745         as a function.
4746         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4747         whether it is declared.
4748
4749 2011-09-01  Bruno Haible  <bruno@clisp.org>
4750
4751         imaxabs: Avoid link error on OSF/1 with DTK cc.
4752         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4753         as a function.
4754         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4755         whether it is declared.
4756
4757 2011-09-01  Bruno Haible  <bruno@clisp.org>
4758
4759         Tests for module 'strtoumax'.
4760         * modules/strtoumax-tests: New file.
4761         * tests/test-strtoumax.c: New file.
4762
4763         Tests for module 'strtoimax'.
4764         * modules/strtoimax-tests: New file.
4765         * tests/test-strtoimax.c: New file.
4766
4767         Tests for module 'imaxdiv'.
4768         * modules/imaxdiv-tests: New file.
4769         * tests/test-imaxdiv.c: New file.
4770
4771         Tests for module 'imaxabs'.
4772         * modules/imaxabs-tests: New file.
4773         * tests/test-imaxabs.c: New file.
4774
4775 2011-09-01  Bruno Haible  <bruno@clisp.org>
4776
4777         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4778         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4779         pthread_create.
4780
4781 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4782
4783         openat: work around AIX 7.1 fstatat issue
4784         This should fix the problem that was not properly fixed
4785         in the previous change, dated 2011-08-30.
4786         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4787         __need_system_stat_h defined.
4788         (orig_fstatat) [HAVE_FSTATAT]: New function.
4789         (rpl_fstatat): Go back to the old way of doing things,
4790         except call orig_fstatat instead of fstatat.
4791         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4792         Remove unnecessary check whether fstatat fills in st_size etc.
4793
4794 2011-09-01  Bruno Haible  <bruno@clisp.org>
4795
4796         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4797         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4798         just include the system's header.
4799
4800 2011-08-31  Jim Meyering  <meyering@redhat.com>
4801
4802         tests: avoid spurious assertion failure in test-float.c on ppc64
4803         * tests/test-float.c (test_long_double): Comment out an assertion,
4804         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4805         with gcc-4.4.4.
4806
4807         maint: indent with spaces, not TABs
4808         I need to get in the habit of running gnulib's "make check".
4809         Both of these would have been caught.
4810         * m4/largefile.m4: Indent with spaces, not TABs.
4811         * lib/parse-datetime.y (iso_8601_time): Likewise.
4812         Spotted by Pádraig Brady.
4813
4814         test-parse-datetime.c: accommodate a relatively strict gcc warning
4815         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4816         to avoid a warning from gcc's -Werror=missing-declarations.
4817         Insert a few spaces-before-funcall-parenthesis.
4818
4819 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4820
4821         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4822         The parser now accepts ISO 8601 date-time strings with "T" as the
4823         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4824         with a space between the date and time strings.  Now it also parses
4825         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4826         variants like "2004-02-29T16:21:42.333-07:00"
4827         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4828         of day representation using the 'T' separator character.
4829         * doc/parse-datetime.texi (General date syntax): replace use of
4830         deprecated --iso-8601 option with --rfc-3339 in example of date
4831         command output formats that can be parsed.
4832         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4833         lib/parse-datetime.y.
4834         (gmt_offset): New function.
4835         (main): Add additional test cases to validate ISO8601 extended
4836         date and time of day parsing.
4837
4838 2011-08-31  Bruno Haible  <bruno@clisp.org>
4839
4840         freopen: Documentation.
4841         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4842         name.
4843         Reported by Claudio Bley <claudio.bley@gmail.com>.
4844
4845 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4846
4847         freopen: Don't crash if the filename argument is NULL.
4848         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4849         NULL.
4850
4851 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4852
4853         openat: work around AIX 7.1 fstatat bug
4854         Problem reported by Kevin Brott for GNU tar, in the thread containing
4855         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4856         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4857         FSTATAT_ST_SIZE_ETC_BROKEN.
4858         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4859         rpl_fstatat.
4860         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4861         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4862         AC_CHECK_FUNCS_ONCE for fstatat.
4863         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4864         fchmodat, mkdirat, openat and unlinkat.
4865
4866 2011-08-30  Bruno Haible  <bruno@clisp.org>
4867
4868         Avoid endless recursions if config.h includes some header files.
4869         * lib/fopen.c (__need_FILE): Define already before including config.h.
4870         * lib/freopen.c (__need_FILE): Likewise.
4871         * lib/open.c (__need_system_fcntl_h): Likewise.
4872         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4873         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4874         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4875
4876 2011-08-25  Karl Berry  <karl@gnu.org>
4877
4878         * config/srclist.txt (ylwrap): new try.
4879         * build-aux/ylwrap: new file.
4880
4881 2011-08-23  Bruno Haible  <bruno@clisp.org>
4882
4883         tmpdir: Use a good default directory on native Windows.
4884         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4885         (P_tmpdir): Default to _P_tmpdir on native Windows.
4886         (path_search): On native Windows, try the value returned by GetTempPath
4887         before trying P_tmpdir.
4888         * modules/tmpdir (Depends-on): Add pathmax.
4889         Suggested by John Darrington <john@darrington.wattle.id.au>.
4890
4891 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4892
4893         doc: fix typo in README-release
4894         * top/README-release: Capitalize first word of a sentence.
4895
4896 2011-08-19  Jim Meyering  <meyering@redhat.com>
4897
4898         fts: do not exhaust memory when processing million-entry directories
4899         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4900         directory would require about 256*N bytes of memory.  Thus, it was
4901         easy to construct a directory too large to be processed by any of
4902         those tools.  With this change, fts' maximum memory utilization is
4903         now limited to around 30MB.
4904         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4905         (fts_read): When we've processed the final entry (i.e., when
4906         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4907         using the parent entry to read any remaining entries.  Dispatch
4908         depending on what fts_build returns:
4909         - NULL+stop, aka failure: stop
4910         - NULL otherwise: move up in the dir hierarchy
4911         - non-NULL: handle this new entry
4912         (fts_build): Declare and use new local, continue_readdir.
4913         Prepare to be called from fts_read, when the entries
4914         from a partially-read directory have just been exhausted.
4915         In that case, we'll skip the opendir and instead use the parent's
4916         fts_dirp and derive dir_fd from that.
4917         Finally, in the readdir loop, if we read max_entries entries,
4918         exit the loop ensuring *not* to call closedir.  This is required
4919         so that fts_dirp can be reused on a subsequent call.
4920         Prompted by Ben England's report of memory exhaustion in find
4921         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4922
4923         maint: fts: move decl of `dp' down into while loop; split a long line
4924         * lib/fts.c (fts_build): No semantic change.
4925
4926         fts: add/use new struct member, fts_dirp
4927         We are about to use this to manage any directory with
4928         too many entries to read all of them into memory at once.
4929         To do that, we'll need to save the DIR* pointer in each
4930         affected FTSENT struct.
4931         * lib/fts_.h: Include <dirent.h>.
4932         (struct FTSENT) [fts_dirp]: New member.
4933         * lib/fts.c (closedir_and_clear): Define.
4934         Use it in place of closedir so that we are sure to
4935         clear the new fts_dirp member when done with it.
4936         (fts_alloc): Initialize the new member.
4937         (fts_lfree): Free, if needed.
4938
4939         maint: fts: give __opendir2 a new parameter and rename
4940         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4941         than surreptitiously using sole caller's "dir_fd".
4942         (fts_opendir): Rename from __opendir2.
4943
4944         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4945         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4946
4947         maint: fts.c: correct off-by-one indentation
4948         * lib/fts.c (fts_build): Correct indentation, change style
4949         of a couple of block comments, and bracing style.
4950
4951         maint: fts.c: move __opendir2 #define "up" out of function body
4952         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4953
4954         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4955         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4956         out for a long time and besides was useful only on BSD systems.
4957
4958 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4959
4960         regex: port to Stratus OpenVOS
4961         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4962         define to empty, rather than attempting nonportable optimizations.
4963         Problem reported by Paul Green in:
4964         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4965         and fix suggested by Eric Blake in:
4966         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4967
4968 2011-08-17  Eric Blake  <eblake@redhat.com>
4969
4970         getcwd: fix test failures on mingw
4971         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4972         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4973         test if long directory cannot be created, and allow mingw errno.
4974
4975         getcwd-lgpl: fix m4 to match relaxed test for BSD
4976         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4977         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4978         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4979         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4980         signature problem.
4981
4982         getcwd: fix compilation on mingw64
4983         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4984         getcwd.
4985         Reported by Marc-André Lureau.
4986
4987         pipe2: silence compiler warning
4988         * lib/pipe2.c (pipe2): Hide label if it is not used.
4989
4990 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4991
4992         relocatable-prog: fix link error
4993         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4994         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4995         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4996         into modules/relocatable-lib without noticing that
4997         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4998         also needs to build relocatable.c.
4999
5000 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5001
5002         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5003         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5004         shell code: it contained a 'break' that was not in a loop.
5005         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5006         via a shell-language loop; this may have been true in old Autoconf
5007         versions, but it's not true in Autoconf 2.68.  I found this bug
5008         when testing coreutils git on Solaris 8, whose shell complains
5009         about the syntax error.
5010
5011 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5012
5013         * lib/base64.c: Fix comment to reference RFC 4648.
5014         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5015         <gvtulder@gmail.com>.
5016
5017 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5018
5019         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5020
5021         po/Makefile.in.in: fix make -q problem
5022         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5023         rule, since there's no file named 'check-macro-version' and its
5024         use as a file breaks make -q.
5025         (all): Don't depend on check-macro-version.
5026         (CHECK_MACRO_VERSION): New macro.
5027         (stamp-po): Use it.
5028
5029         configmake: fix make -q problem
5030         * modules/configmake (configmake.h): Update configmake.h's time stamp
5031         even if the file does not change.  Otherwise, 'make -q' fails.
5032         Problem reported by Simon Josefsson in
5033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5034
5035 2011-08-11  Jim Meyering  <meyering@redhat.com>
5036
5037         git-version-gen: correct the advice in a comment
5038         * build-aux/git-version-gen: Correct comment.
5039         Don't recommend to list .tarball-version in .gitignore.
5040
5041 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5042
5043         base64: fix off-by-one buffer size bug
5044         Problem and (trivial) fix reported by Gijs van Tulder in
5045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5046         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5047         * tests/test-base64.c (main): Catch the bug.
5048
5049 2011-08-10  Eric Blake  <eblake@redhat.com>
5050
5051         closein: correct comments
5052         * lib/closein.c (close_stdin): Improve comments.
5053
5054 2011-08-09  Bruno Haible  <bruno@clisp.org>
5055
5056         More tests for 'fseeko'.
5057         * tests/test-fseeko3.c: New file, from Eric Blake.
5058         * tests/test-fseeko3.sh: New file.
5059         * modules/fseeko-tests (Files): Add them.
5060         (TESTS): Add test-fseeko3.sh.
5061         (check_PROGRAMS): Add test-fseeko3.
5062
5063 2011-08-09  Eric Blake  <eblake@redhat.com>
5064
5065         fseeko: remove unneeded hack
5066         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5067
5068         fseeko: fix bug on glibc
5069         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5070         Reported by John W. Eaton.
5071
5072 2011-08-08  Bruno Haible  <bruno@clisp.org>
5073
5074         unictype/base: Fix interoperability with preinstalled libunistring.
5075         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5076         Reported by Simon Josefsson.
5077
5078 2011-08-08  Bruno Haible  <bruno@clisp.org>
5079
5080         iswblank: Detect declaration correctly.
5081         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5082         AC_CHECK_DECLS invocation.
5083
5084 2011-08-08  Bruno Haible  <bruno@clisp.org>
5085
5086         tcgetsid: Detect declaration correctly.
5087         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5088         AC_CHECK_DECLS invocation.
5089         Reported by Simon Josefsson.
5090
5091 2011-08-08  Eric Blake  <eblake@redhat.com>
5092
5093         largefile: fix typo that regressed large file support
5094         * modules/largefile (configure.ac-early): Fix section name.
5095
5096 2011-08-06  Karl Berry  <karl@gnu.org>
5097
5098         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5099         a separate module.
5100
5101 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5102
5103         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5104         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5105         get prototype for free.
5106
5107 2011-08-04  Bruno Haible  <bruno@clisp.org>
5108
5109         Tests for module 'pathmax'.
5110         * modules/pathmax-tests: New file.
5111         * tests/test-pathmax.c: New file.
5112
5113         canonicalize-lgpl: Support larger filenames on the Hurd.
5114         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5115         Reported by Paul Eggert.
5116
5117         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5118         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5119         * lib/chdir-long.h: Include pathmax.h.
5120         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5121         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5122         (PATH_MAX): Remove code that is done by pathmax.h.
5123         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5124         * lib/tmpfile.c: Add a comment.
5125         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5126         * modules/chdir-long (Depends-on): Add pathmax.
5127         * modules/getcwd (Depends-on): Add pathmax.
5128         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5129         is not defined.
5130         * doc/posix-headers/limits.texi: Mention the pathmax module.
5131         * NEWS: Mention the change.
5132
5133 2011-08-02  Bruno Haible  <bruno@clisp.org>
5134
5135         pthread_sigmask: Actually use results of gl_THREADLIB.
5136         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5137         gl_THREADLIB, not gl_[]THREADLIB.
5138         Reported by Eric Blake.
5139
5140 2011-08-02  Jim Meyering  <meyering@redhat.com>
5141
5142         maint.mk: relax the default _gl_TS_function_match regexp
5143         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5144         space between function name and "(" in an "extern" declaration.
5145         That would fail to match a decl with no space there: extern void foo();
5146
5147 2011-07-31  Iain Nicol  <iain@thenicols.net>
5148
5149         git-version-gen: document that EXTRA_DIST must include .version
5150         * build-aux/git-version-gen: In the how-to-use comment, document
5151         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5152         will fail when run from an unpacked distribution tarball.
5153
5154 2011-08-01  Bruno Haible  <bruno@clisp.org>
5155
5156         wctype-h: Fix last change.
5157         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5158         REPLACE_TOWLOWER to 0.
5159         Reported by Sam Steingold <sds@gnu.org>.
5160
5161 2011-07-31  Bruno Haible  <bruno@clisp.org>
5162
5163         frexpl: Update autoconf test.
5164         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5165         according to changes of 2011-06-20.
5166
5167 2011-07-31  Bruno Haible  <bruno@clisp.org>
5168
5169         sys_utsname: Add support for Minix.
5170         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5171         <sys/utsname.h>.
5172         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5173         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5174
5175 2011-07-31  Bruno Haible  <bruno@clisp.org>
5176
5177         strings: Add support for Minix.
5178         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5179         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5180         * doc/posix-headers/strings.texi: Document the Minix problem.
5181
5182 2011-07-31  Bruno Haible  <bruno@clisp.org>
5183
5184         wctype-h: Add support for Minix.
5185         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5186         REPLACE_TOWLOWER.
5187         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5188         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5189         REPLACE_ISWCNTRL.
5190
5191 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5192
5193         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5194         This is a performance improvement for 64-bit hosts: it causes the
5195         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5196
5197 2011-07-31  Bruno Haible  <bruno@clisp.org>
5198
5199         stdioext: Add support for Minix.
5200         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5201         * lib/fpurge.c (fpurge): Likewise.
5202         * lib/freadahead.c (freadahead): Likewise.
5203         * lib/freadable.c (freadable): Likewise.
5204         * lib/freading.c (freading): Likewise.
5205         * lib/freadptr.c (freadptr): Likewise.
5206         * lib/freadseek.c (freadptrinc): Likewise.
5207         * lib/fseeko.c (rpl_fseeko): Likewise.
5208         * lib/fseterr.c (fseterr): Likewise.
5209         * lib/fwritable.c (fwritable): Likewise.
5210         * lib/fwriting.c (fwriting): Likewise.
5211         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5212         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5213
5214 2011-07-31  Bruno Haible  <bruno@clisp.org>
5215
5216         errno: Port to Minix.
5217         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5218         ECONNABORTED are defined.
5219         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5220         GNULIB_defined_ECONNABORTED): New macros.
5221         * lib/strerror-override.h (strerror_override): Test also
5222         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5223         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5224         ECONNABORTED.
5225         * doc/posix-headers/errno.texi: Mention the Minix problem.
5226
5227 2011-07-31  Bruno Haible  <bruno@clisp.org>
5228
5229         Work around declaration collisions on Minix.
5230         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5231         defined, set REPLACE_MBSINIT.
5232         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5233         defined, set REPLACE_MBRTOWC.
5234         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5235         set REPLACE_MBRLEN.
5236         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5237         defined, set REPLACE_MBSRTOWCS.
5238         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5239         defined, set REPLACE_WCRTOMB.
5240         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5241         defined, set REPLACE_WCSRTOMBS.
5242
5243 2011-07-31  Bruno Haible  <bruno@clisp.org>
5244
5245         Add support for Minix with ACK compiler.
5246         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5247         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5248         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5249
5250 2011-07-31  Bruno Haible  <bruno@clisp.org>
5251
5252         Documentation about Minix.
5253         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5254         * doc/glibc-headers/*.texi: Likewise.
5255         * doc/posix-functions/*.texi: Likewise.
5256         * doc/glibc-functions/*.texi: Likewise.
5257
5258 2011-07-31  Bruno Haible  <bruno@clisp.org>
5259
5260         snippet/warn-on-use: Fix indentation.
5261         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5262
5263 2011-07-25  Jim Meyering  <meyering@redhat.com>
5264
5265         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5266         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5267         commands.
5268
5269 2011-07-27  Jim Meyering  <meyering@redhat.com>
5270
5271         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5272         * top/maint.mk (gl_extract_significant_defines_): Now that
5273         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5274         gnulib/lib/signal.in.h, and now that we recommend to
5275         define-if-undefined those two symbols in application code,
5276         we must filter them out of the "significant" list.
5277         This avoids a "make syntax-check" failure in coreutils.
5278
5279 2011-07-26  Eric Blake  <eblake@redhat.com>
5280
5281         warnings: add comments about previous patch
5282         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5283         * m4/include_next.m4: Likewise.
5284         * m4/warn-on-use.m4: Likewise.
5285         * m4/warnings.m4: Likewise, and simplify use.
5286         Suggested by Stefano Lattarini.
5287
5288         include-next, warnings: support older autoconf
5289         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5290         AS_VAR_PUSHDEF in a way that works with older autoconf.
5291         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5292         Reported by Daniel P. Berrange.
5293
5294 2011-07-25  Bruno Haible  <bruno@clisp.org>
5295
5296         fseek, ftell: Fix doc.
5297         * doc/posix-functions/fseek.texi: Reword statement about
5298         AC_SYS_LARGEFILE.
5299         * doc/posix-functions/ftell.texi: Likewise.
5300
5301 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5302             Bruno Haible  <bruno@clisp.org>
5303
5304         Add dependencies to the 'largefile' module.
5305         * modules/fopen (Depends-on): Add 'largefile'.
5306         * modules/freopen (Depends-on): Likewise.
5307         * modules/fseeko (Depends-on): Likewise.
5308         * modules/ftello (Depends-on): Likewise.
5309         * modules/glob (Depends-on): Likewise.
5310         * modules/lseek (Depends-on): Likewise.
5311         * modules/lstat (Depends-on): Likewise.
5312         * modules/mkostemp (Depends-on): Likewise.
5313         * modules/mkostemps (Depends-on): Likewise.
5314         * modules/mkstemp (Depends-on): Likewise.
5315         * modules/mkstemps (Depends-on): Likewise.
5316         * modules/open (Depends-on): Likewise.
5317         * modules/openat (Depends-on): Likewise.
5318         * modules/pread (Depends-on): Likewise.
5319         * modules/pwrite (Depends-on): Likewise.
5320         * modules/scandir (Depends-on): Likewise.
5321         * modules/stat (Depends-on): Likewise.
5322         * modules/tmpfile (Depends-on): Likewise.
5323         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5324         since the containing module now depends on the largefile module.
5325         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5326         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5327         off_t is fixed by gnulib.
5328         * doc/posix-functions/freopen.texi: Likewise.
5329         * doc/posix-functions/fseeko.texi: Likewise.
5330         * doc/posix-functions/fstatat.texi: Likewise.
5331         * doc/posix-functions/ftello.texi: Likewise.
5332         * doc/posix-functions/glob.texi: Likewise.
5333         * doc/posix-functions/lseek.texi: Likewise.
5334         * doc/posix-functions/lstat.texi: Likewise.
5335         * doc/posix-functions/mkstemp.texi: Likewise.
5336         * doc/posix-functions/open.texi: Likewise.
5337         * doc/posix-functions/openat.texi: Likewise.
5338         * doc/posix-functions/pread.texi: Likewise.
5339         * doc/posix-functions/pwrite.texi: Likewise.
5340         * doc/posix-functions/scandir.texi: Likewise.
5341         * doc/posix-functions/stat.texi: Likewise.
5342         * doc/posix-functions/tmpfile.texi: Likewise.
5343         * doc/glibc-functions/mkostemp.texi: Likewise.
5344         * doc/glibc-functions/mkostemps.texi: Likewise.
5345         * doc/glibc-functions/mkstemps.texi: Likewise.
5346
5347 2011-07-25  Bruno Haible  <bruno@clisp.org>
5348
5349         fcntl: Move AC_LIBOBJ invocation to module description.
5350         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5351         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5352
5353         fcntl: Remove call-in from fchdir.m4.
5354         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5356
5357         dup3: Remove potential call-in from fchdir.m4.
5358         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5360
5361         dup2: Move AC_LIBOBJ invocation to module description.
5362         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5363         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5364         Don't invoke AC_LIBOBJ.
5365         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5366
5367         dup2: Remove call-in from fchdir.m4.
5368         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5369         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5370
5371         fclose: Move AC_LIBOBJ invocation to module description.
5372         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5373         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5374         to 1.
5375         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5376
5377         fclose: Remove call-in from close.m4.
5378         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5379         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5380
5381         close: Move AC_LIBOBJ invocation to module description.
5382         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5383         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5384         1.
5385         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5386
5387         close: Remove call-in from fchdir.m4.
5388         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5390
5391         open: Move AC_LIBOBJ invocation to module description.
5392         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5393         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5394         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5395
5396         open: Remove call-in from fchdir.m4.
5397         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5399
5400         fchdir: Start to remove gl_REPLACE_* idiom.
5401         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5402         (gl_FUNC_FCHDIR): Invoke it.
5403
5404 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5405
5406         * lib/ftell.c (ftell): Comment out cast.
5407
5408         close: use gl_REPLACE_FCLOSE only if defined
5409         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5410         is defined.  The close module doesn't depend on the fclose module
5411         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5412         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5413         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5414
5415 2011-07-24  Jim Meyering  <meyering@redhat.com>
5416
5417         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5418         * tests/test-select.h (test_function): Declare as "static".
5419
5420 2011-07-24  Bruno Haible  <bruno@clisp.org>
5421
5422         doc: Mention the effects of AC_SYS_LARGEFILE.
5423         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5424         on this function.
5425         * doc/posix-functions/aio_error.texi: Likewise.
5426         * doc/posix-functions/aio_fsync.texi: Likewise.
5427         * doc/posix-functions/aio_read.texi: Likewise.
5428         * doc/posix-functions/aio_return.texi: Likewise.
5429         * doc/posix-functions/aio_suspend.texi: Likewise.
5430         * doc/posix-functions/aio_write.texi: Likewise.
5431         * doc/posix-functions/fgetpos.texi: Likewise.
5432         * doc/posix-functions/fopen.texi: Likewise.
5433         * doc/posix-functions/freopen.texi: Likewise.
5434         * doc/posix-functions/fsetpos.texi: Likewise.
5435         * doc/posix-functions/fstatvfs.texi: Likewise.
5436         * doc/posix-functions/ftruncate.texi: Likewise.
5437         * doc/posix-functions/ftw.texi: Likewise.
5438         * doc/posix-functions/getrlimit.texi: Likewise.
5439         * doc/posix-functions/glob.texi: Likewise.
5440         * doc/posix-functions/lio_listio.texi: Likewise.
5441         * doc/posix-functions/lockf.texi: Likewise.
5442         * doc/posix-functions/mkstemp.texi: Likewise.
5443         * doc/posix-functions/mmap.texi: Likewise.
5444         * doc/posix-functions/nftw.texi: Likewise.
5445         * doc/posix-functions/openat.texi: Likewise.
5446         * doc/posix-functions/opendir.texi: Likewise.
5447         * doc/posix-functions/posix_fadvise.texi: Likewise.
5448         * doc/posix-functions/posix_fallocate.texi: Likewise.
5449         * doc/posix-functions/pread.texi: Likewise.
5450         * doc/posix-functions/pwrite.texi: Likewise.
5451         * doc/posix-functions/readdir.texi: Likewise.
5452         * doc/posix-functions/readdir_r.texi: Likewise.
5453         * doc/posix-functions/rewinddir.texi: Likewise.
5454         * doc/posix-functions/scandir.texi: Likewise.
5455         * doc/posix-functions/seekdir.texi: Likewise.
5456         * doc/posix-functions/setrlimit.texi: Likewise.
5457         * doc/posix-functions/statvfs.texi: Likewise.
5458         * doc/posix-functions/telldir.texi: Likewise.
5459         * doc/posix-functions/tmpfile.texi: Likewise.
5460         * doc/posix-functions/truncate.texi: Likewise.
5461         * doc/glibc-functions/fallocate.texi: Likewise.
5462         * doc/glibc-functions/fstatfs.texi: Likewise.
5463         * doc/glibc-functions/fts_children.texi: Likewise.
5464         * doc/glibc-functions/fts_read.texi: Likewise.
5465         * doc/glibc-functions/getdirentries.texi: Likewise.
5466         * doc/glibc-functions/mkostemp.texi: Likewise.
5467         * doc/glibc-functions/mkostemps.texi: Likewise.
5468         * doc/glibc-functions/mkstemps.texi: Likewise.
5469         * doc/glibc-functions/preadv.texi: Likewise.
5470         * doc/glibc-functions/pwritev.texi: Likewise.
5471         * doc/glibc-functions/sendfile.texi: Likewise.
5472         * doc/glibc-functions/statfs.texi: Likewise.
5473
5474 2011-07-24  Bruno Haible  <bruno@clisp.org>
5475
5476         doc: Fix typo.
5477         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5478
5479 2011-07-24  Bruno Haible  <bruno@clisp.org>
5480
5481         doc: Mention fsusage.
5482         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5483
5484 2011-07-24  Bruno Haible  <bruno@clisp.org>
5485
5486         doc: Mention new glibc headers and functions.
5487         * doc/glibc-headers/gshadow.texi: New file.
5488         * doc/glibc-functions/endsgent.texi: New file.
5489         * doc/glibc-functions/fgetsgent.texi: New file.
5490         * doc/glibc-functions/fgetsgent_r.texi: New file.
5491         * doc/glibc-functions/getsgent.texi: New file.
5492         * doc/glibc-functions/getsgent_r.texi: New file.
5493         * doc/glibc-functions/getsgnam.texi: New file.
5494         * doc/glibc-functions/getsgnam_r.texi: New file.
5495         * doc/glibc-functions/putsgent.texi: New file.
5496         * doc/glibc-functions/setsgent.texi: New file.
5497         * doc/glibc-functions/sgetsgent.texi: New file.
5498         * doc/glibc-functions/sgetsgent_r.texi: New file.
5499         * doc/glibc-functions/malloc_info.texi: New file.
5500         * doc/glibc-functions/preadv.texi: New file.
5501         * doc/glibc-functions/pwritev.texi: New file.
5502         * doc/glibc-functions/register_printf_modifier.texi: New file.
5503         * doc/glibc-functions/register_printf_specifier.texi: New file.
5504         * doc/glibc-functions/register_printf_type.texi: New file.
5505         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5506         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5507         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5508         * doc/glibc-functions/pthread_getname_np.texi: New file.
5509         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5510         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5511         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5512         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5513         * doc/glibc-functions/pthread_setname_np.texi: New file.
5514         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5515         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5516         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5517         * doc/glibc-functions/qsort_r.texi: New file.
5518         * doc/glibc-functions/quick_exit.texi: New file.
5519         * doc/glibc-functions/syncfs.texi: New file.
5520         * doc/gnulib.texi: Include them.
5521         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5522         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5523         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5524         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5525         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5526         * doc/glibc-functions/execvpe.texi: Likewise.
5527
5528 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5529
5530         ftell: don't include <unistd.h>
5531         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5532         guaranteed to define off_t, and the ftell module depends on the
5533         stdio module.
5534
5535         ftell: do not assume wraparound signed arithmetic
5536         * lib/ftell.c: Include <limits.h>.
5537         (ftell): Don't assume wraparound signed arithmetic.
5538
5539 2011-07-24  Bruno Haible  <bruno@clisp.org>
5540
5541         close: No longer depend on module 'fclose'.
5542         * modules/close (Depends-on): Remove fclose.
5543         * NEWS: Mention the change.
5544         Suggested by Sam Steingold <sds@gnu.org>.
5545
5546 2011-07-24  Bruno Haible  <bruno@clisp.org>
5547
5548         fsusage: Enable large volume support on AIX >= 5.2.
5549         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5550         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5551         instead of STAT_STATVFS.
5552         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5553
5554         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5555         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5556         f_blocks field only on MacOS X.
5557
5558         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5559         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5560         * modules/fsusage (Depends-on): Add largefile.
5561
5562 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5563
5564         * README: Modernize discussion of signed integers.
5565         Assuming overflow wraparound is no longer safe.
5566         Mention ones' complement and signed magnitude.
5567
5568 2011-07-22  Bruno Haible  <bruno@clisp.org>
5569
5570         select tests, pselect tests: Refactor.
5571         * tests/test-select.h: New file, extracted from tests/test-select.c.
5572         (select_fn): New type.
5573         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5574         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5575         test_pipe): Add my_select argument.
5576         (test_function): Renamed from main. Add my_select argument.
5577         * tests/test-select.c: Move most code to tests/test-select.h. Include
5578         test-select.h.
5579         * modules/select-tests (Files): Add tests/test-select.h.
5580         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5581         (my_select, main): New functions.
5582         * modules/pselect-tests (Files): Add tests/test-select.h,
5583         tests/macros.h, tests/signature.h.
5584         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5585         (configure.ac): Check for <sys/wait.h>.
5586
5587 2011-07-22  Bruno Haible  <bruno@clisp.org>
5588
5589         sys_select tests: Check the signature of FD_*.
5590         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5591         signature tests from here...
5592         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5593         here.
5594         * modules/sys_select-tests (Files): Add tests/signature.h.
5595
5596 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5597
5598         largefile: new module, replacing large-inode
5599         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5600         * MODULES.html.sh: Add largefile, remove large-inode.
5601         * modules/largefile, m4/largefile.m4: New files.
5602         * modules/large-inode, m4/large-inode.m4: Remove.
5603
5604         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5605         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5606         implementations that use only 32 bits to count blocks.
5607         On typical hosts with 1024-byte blocks, this fails with file
5608         systems as small as 4 TiB.  Problem reported by Herb Wartens
5609         <http://debbugs.gnu.org/9140> and this should also fix a similar
5610         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5611
5612         large-inode: New module
5613         * MODULES.html.sh: Add it.
5614         * modules/large-inode, m4/large-inode.m4: New files.
5615
5616         extensions: Enable extensions on MacOS X 10.5 and later.
5617         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5618
5619 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5620
5621         file-has-acl: use acl_extended_file_nofollow if available
5622         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5623         (acl_extended_file): New macro.
5624         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5625         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5626
5627 2011-07-21  Bruno Haible  <bruno@clisp.org>
5628
5629         Declare system functions in a way that works with C++.
5630         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5631         declare fdopendir as extern "C".
5632         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5633         declare frexpl as extern "C".
5634         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5635         declare gai_strerror as extern "C".
5636         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5637         programs, declare gai_strerror as extern "C".
5638         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5639         declare getlogin_r as extern "C".
5640         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5641         as extern "C".
5642         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5643         declare ldexpl as extern "C".
5644         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5645         as extern "C".
5646         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5647         program, declare getmntinfo as extern "C".
5648         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5649         stpncpy as extern "C".
5650         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5651         program, declare __xpg_strerror_r as extern "C".
5652         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5653         strndup as extern "C".
5654         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5655         declare memset and bzero as extern "C".
5656         Reported by Sam Steingold <sds@gnu.org>.
5657
5658 2011-07-12  Jim Meyering  <meyering@redhat.com>
5659
5660         maint.mk: prohibit inclusion of "verify.h" without use
5661         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5662
5663 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5664
5665         timer-time: A new module to check for timer_settime()
5666         * m4/timer_time.m4: Check for the posix function.
5667         * modules/timer-time: Add the new module.
5668         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5669         Mention it.
5670
5671 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5672             Bruno Haible  <bruno@clisp.org>
5673
5674         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5675         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5676         not defined, assume POSIX threads and look for pthread_sigmask in
5677         $LIBS, without changing $CPPFLAGS.
5678
5679 2011-07-19  Bruno Haible  <bruno@clisp.org>
5680
5681         strstr: Update cross-compilation guess.
5682         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5683         CPUs, guess no, in view of glibc
5684         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5685         Suggested by Eric Blake. Reported by Reuben Thomas.
5686
5687 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5688
5689         getopt-gnu: suppress core dumps from detection code
5690         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5691         to suppress core dumps that may well occur on glibc systems.
5692         * modules/getopt-gnu: Depend on nocrash.
5693
5694 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5695
5696         pthread_sigmask: ensure usleep is declared
5697         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5698         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5699
5700 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5701
5702         doc: Document NonStop portability issues.
5703         * doc/posix-functions/sigaction.texi (sigaction):
5704         * doc/posix-headers/signal.texi (signal.h):
5705         Document NonStop.  See Joachim Schmitz in
5706         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5707
5708 2011-07-15  Bruno Haible  <bruno@clisp.org>
5709
5710         ffsl, ffsll: Avoid unportable behaviour.
5711         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5712
5713 2011-07-15  Bruno Haible  <bruno@clisp.org>
5714
5715         ffs: More tests.
5716         * tests/test-ffs.c (NBITS): New macro.
5717         (main): Add more tests.
5718         * tests/test-ffsl.c (NBITS): New macro.
5719         (main): Add more tests.
5720         * tests/test-ffsll.c (NBITS): New macro.
5721         (main): Add more tests.
5722
5723 2011-07-15  Eric Blake  <eblake@redhat.com>
5724
5725         ffsl, ffsll: new modules
5726         * modules/ffsl: New file.
5727         * modules/ffsll: Likewise.
5728         * m4/ffsl.m4: Likewise.
5729         * m4/ffsll.m4: Likewise.
5730         * lib/ffsl.c: Likewise.
5731         * lib/ffsl.h: Likewise.
5732         * lib/ffsll.c: Likewise.
5733         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5734         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5735         * modules/string (Makefile.am): Substitute witnesses.
5736         * lib/strings.in.h (ffsl, ffsll): Declare.
5737         * modules/ffsl-tests: New test file.
5738         * modules/ffsll-tests: Likewise.
5739         * tests/test-ffsl.c: Likewise.
5740         * tests/test-ffsll.c: Likewise.
5741         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5742         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5743         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5744
5745         ffs: fix m4 prerequisite
5746         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5747
5748         ffs: avoid undefined behavior
5749         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5750         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5751         Reported by Bruno Haible.
5752
5753 2011-07-12  Bruno Haible  <bruno@clisp.org>
5754
5755         pthread_sigmask: Rely on module 'threadlib'.
5756         * modules/pthread_sigmask (Depends-on): Add threadlib.
5757         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5758         is defined.
5759
5760 2011-07-12  Bruno Haible  <bruno@clisp.org>
5761
5762         regex: Depend on module 'strcase'.
5763         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5764
5765 2011-07-12  Jim Meyering  <meyering@redhat.com>
5766
5767         warn-on-use: fix typo in file name
5768         * modules/snippet/warn-on-use (Files): Correct file name:
5769         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5770
5771 2011-07-12  Bruno Haible  <bruno@clisp.org>
5772
5773         strings: Document module.
5774         * doc/posix-headers/strings.texi: Mention module 'strings'.
5775
5776 2011-07-12  Bruno Haible  <bruno@clisp.org>
5777
5778         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5779         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5780         (Files, Makefile.am): Update.
5781         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5782         * modules/stdlib (Depends-on): Update.
5783
5784 2011-07-12  Bruno Haible  <bruno@clisp.org>
5785
5786         * NEWS: Mention the changes.
5787
5788         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5789         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5790         (Files, Makefile.am): Update.
5791         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5792         * modules/arpa_inet (Depends-on): Update.
5793         * modules/ctype (Depends-on): Update.
5794         * modules/dirent (Depends-on): Update.
5795         * modules/fcntl-h (Depends-on): Update.
5796         * modules/glob (Depends-on): Update.
5797         * modules/iconv-h (Depends-on): Update.
5798         * modules/inttypes-incomplete (Depends-on): Update.
5799         * modules/langinfo (Depends-on): Update.
5800         * modules/locale (Depends-on): Update.
5801         * modules/math (Depends-on): Update.
5802         * modules/netdb (Depends-on): Update.
5803         * modules/poll-h (Depends-on): Update.
5804         * modules/pty (Depends-on): Update.
5805         * modules/search (Depends-on): Update.
5806         * modules/signal (Depends-on): Update.
5807         * modules/spawn (Depends-on): Update.
5808         * modules/stdio (Depends-on): Update.
5809         * modules/stdlib (Depends-on): Update.
5810         * modules/string (Depends-on): Update.
5811         * modules/strings (Depends-on): Update.
5812         * modules/sys_file (Depends-on): Update.
5813         * modules/sys_ioctl (Depends-on): Update.
5814         * modules/sys_select (Depends-on): Update.
5815         * modules/sys_socket (Depends-on): Update.
5816         * modules/sys_stat (Depends-on): Update.
5817         * modules/sys_time (Depends-on): Update.
5818         * modules/sys_times (Depends-on): Update.
5819         * modules/sys_utsname (Depends-on): Update.
5820         * modules/sys_wait (Depends-on): Update.
5821         * modules/termios (Depends-on): Update.
5822         * modules/time (Depends-on): Update.
5823         * modules/unistd (Depends-on): Update.
5824         * modules/wchar (Depends-on): Update.
5825         * modules/wctype-h (Depends-on): Update.
5826         * MODULES.html.sh (Support for building libraries and executables):
5827         Update.
5828
5829         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5830         * modules/snippet/unused-parameter: Renamed from
5831         modules/unused-parameter.
5832         (Files, Makefile.am): Update.
5833         * build-aux/snippet/unused-parameter.h: Renamed from
5834         build-aux/unused-parameter.h.
5835         * modules/selinux-h (Depends-on): Update.
5836         * modules/unistr/base (Depends-on): Update.
5837         * MODULES.html.sh (Core language properties): Update.
5838
5839         Rename module 'link-warning' to 'snippet/link-warning'.
5840         * modules/snippet/link-warning: Renamed from modules/link-warning.
5841         (Files, Makefile.am): Update.
5842         * build-aux/snippet/link-warning.h: Renamed from
5843         build-aux/link-warning.h.
5844         * MODULES.html.sh (Support for building libraries and executables):
5845         Update.
5846
5847         Rename module 'c++defs' to 'snippet/c++defs'.
5848         * modules/snippet/c++defs: Renamed from modules/c++defs.
5849         (Files, Makefile.am): Update.
5850         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5851         * modules/arpa_inet (Depends-on): Update.
5852         * modules/ctype (Depends-on): Update.
5853         * modules/dirent (Depends-on): Update.
5854         * modules/fcntl-h (Depends-on): Update.
5855         * modules/glob (Depends-on): Update.
5856         * modules/iconv-h (Depends-on): Update.
5857         * modules/langinfo (Depends-on): Update.
5858         * modules/locale (Depends-on): Update.
5859         * modules/math (Depends-on): Update.
5860         * modules/netdb (Depends-on): Update.
5861         * modules/poll-h (Depends-on): Update.
5862         * modules/pty (Depends-on): Update.
5863         * modules/search (Depends-on): Update.
5864         * modules/signal (Depends-on): Update.
5865         * modules/spawn (Depends-on): Update.
5866         * modules/stdio (Depends-on): Update.
5867         * modules/stdlib (Depends-on): Update.
5868         * modules/string (Depends-on): Update.
5869         * modules/strings (Depends-on): Update.
5870         * modules/sys_ioctl (Depends-on): Update.
5871         * modules/sys_select (Depends-on): Update.
5872         * modules/sys_socket (Depends-on): Update.
5873         * modules/sys_stat (Depends-on): Update.
5874         * modules/sys_time (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
5882         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5883         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5884         (Files, Makefile.am): Update.
5885         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5886         * modules/argv-iter (Depends-on): Update.
5887         * modules/arpa_inet (Depends-on): Update.
5888         * modules/dirent (Depends-on): Update.
5889         * modules/fcntl-h (Depends-on): Update.
5890         * modules/fnmatch (Depends-on): Update.
5891         * modules/getopt-posix (Depends-on): Update.
5892         * modules/glob (Depends-on): Update.
5893         * modules/iconv-h (Depends-on): Update.
5894         * modules/inttypes-incomplete (Depends-on): Update.
5895         * modules/locale (Depends-on): Update.
5896         * modules/math (Depends-on): Update.
5897         * modules/netdb (Depends-on): Update.
5898         * modules/search (Depends-on): Update.
5899         * modules/signal (Depends-on): Update.
5900         * modules/spawn (Depends-on): Update.
5901         * modules/stdio (Depends-on): Update.
5902         * modules/stdlib (Depends-on): Update.
5903         * modules/string (Depends-on): Update.
5904         * modules/strings (Depends-on): Update.
5905         * modules/sys_socket (Depends-on): Update.
5906         * modules/sys_stat (Depends-on): Update.
5907         * modules/sys_time (Depends-on): Update.
5908         * modules/sys_times (Depends-on): Update.
5909         * modules/sys_utsname (Depends-on): Update.
5910         * modules/time (Depends-on): Update.
5911         * modules/unistd (Depends-on): Update.
5912         * modules/wchar (Depends-on): Update.
5913         * MODULES.html.sh (Support for building libraries and executables):
5914         Update.
5915
5916 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5917
5918         Improvements on _Noreturn and related modules.
5919
5920         modules/_Exit-tests: test _Noreturn too
5921         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5922         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5923         (main): Use them.
5924
5925         stdnoreturn, stdnoreturn-tests: remove modules
5926         They're not needed here and a bit premature for use elsewhere.  See
5927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5928         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5929         * tests/test-stdnoreturn.c: Remove files.
5930         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5931         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5932         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5933         and using noreturn.
5934         * modules/openat, modules/sigpipe-die, modules/xalloc:
5935         * modules/xmemdup0, modules/xstrtol:
5936         Remove dependency on stdnoreturn.
5937
5938         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5939         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5940         Reparenthesize to avoid GCC warning.
5941         Support Microsoft's syntax.
5942         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5943
5944         _Noreturn-tests: remove module
5945         * modules/_Noreturn-tests: Remove.
5946         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5947         * tests/test-_Noreturn.c: Remove.
5948         * tests/test-stdnoreturn.c: Merge from the old
5949         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5950
5951 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5952
5953         _Noreturn, stdnoreturn, and related modules.
5954
5955         * top/maint.mk: Adjust to new noreturn support.
5956         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5957         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5958
5959         xalloc: use stdnoreturn.h
5960         * lib/xalloc.h: Include <stdnoreturn.h>.
5961         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5962         * modules/xalloc (Depends-on): Add stdnoreturn.
5963
5964         xstrtol: use stdnoreturn.h
5965         * lib/xstrtol.h: Include <stdnoreturn.h>.
5966         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5967         * modules/xstrtol (Depends-on): Add stdnoreturn.
5968
5969         xmemdup0: use stdnoreturn.h
5970         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5971         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5972         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5973
5974         sigpipe-die: use stdnoreturn.h
5975         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5976         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5977         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5978
5979         openat: use stdnoreturn.h
5980         * lib/openat.h: Include <stdnoreturn.h>.
5981         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5982         * modules/openat (Depends-on): Add stdnoreturn.
5983
5984         * lib/openat-die.c (openat_save_fail): Modernize comment.
5985
5986         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5987
5988         * lib/glthread/thread.h: Modernize comment.
5989
5990         obstack: use _Noreturn
5991         * lib/obstack.c (__attribute__): Remove macro.
5992         (print_and_abort): Use _Noreturn.
5993
5994         c-stack: use _Noreturn
5995         * lib/c-stack.c (die, overflow_handler, segv_handler):
5996         Use _Noreturn rather than __attribute__((noreturn)).
5997
5998         argmatch-tests, exclude_tests: use _Noreturn
5999         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6000         Remove.
6001         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6002
6003         stdlib: use _Noreturn
6004         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6005         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6006         * modules/stdlib (Depends-on): Add _Noreturn.
6007         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6008
6009         stdnoreturn-tests: new module
6010         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6011
6012         stdnoreturn: new module
6013         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6014         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6015
6016         _Noreturn-tests: new module
6017         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6018
6019         _Noreturn: new module
6020         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6021         New section, mentioning it.
6022         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6023
6024         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6025
6026 2011-07-11  Eric Blake  <eblake@redhat.com>
6027
6028         ffs: new module
6029         * modules/ffs: New file.
6030         * m4/ffs.m4: Likewise.
6031         * lib/ffs.c: Likewise.
6032         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6033         * modules/strings (Makefile.am): Substitute witness.
6034         (Depends-on): Add c++defs.
6035         * lib/strings.in.h (ffs): Declare.
6036         * modules/ffs-tests: New test file.
6037         * tests/test-ffs.c: Test new module.
6038         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6039         * doc/posix-functions/ffs.texi (ffs): Likewise.
6040
6041         regex: avoid compiler warning
6042         * lib/regex.c (includes): Include <strings.h>, for use of
6043         strcasecmp in regcomp.c.
6044         Reported by Joachim Schmitz.
6045
6046 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6047
6048         stdint: respect system's intmax_t if INTMAX_MAX
6049         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6050         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6051         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6052         long but int64_t is long long, and where we will clash with the
6053         system intmax_t if we override it.  See
6054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6055         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6056         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6057         similarly for UINTMAX_C.
6058
6059 2011-07-08  Bruno Haible  <bruno@clisp.org>
6060
6061         pthread_sigmask tests: Avoid a compiler warning.
6062         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6063         non-zero.
6064
6065         sigprocmask tests: A better way to avoid a compiler warning.
6066         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6067         (main): Complain if system() returns non-zero.
6068         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6069
6070 2011-07-08  Bruno Haible  <bruno@clisp.org>
6071
6072         pthread_sigmask: Work around IRIX bug.
6073         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6074         bug.
6075         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6076         there may be unblocked pending signals.
6077         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6078
6079 2011-07-08  Bruno Haible  <bruno@clisp.org>
6080
6081         pthread_sigmask: Work around Cygwin bug.
6082         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6083         bug.
6084         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6085         the system's pthread_sigmask function.
6086         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6087
6088 2011-07-08  Bruno Haible  <bruno@clisp.org>
6089
6090         pthread_sigmask: Work around bug in single-threaded implementation.
6091         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6092         FreeBSD, HP-UX, Solaris bug.
6093         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6094         * lib/pthread_sigmask.c: Include <stddef.h>.
6095         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6096         the system's pthread_sigmask function.
6097         * modules/pthread_sigmask (configure.ac): Invoke
6098         gl_PREREQ_PTHREAD_SIGMASK.
6099         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6100         HP-UX, Solaris.
6101
6102 2011-07-08  Eric Blake  <eblake@redhat.com>
6103
6104         test-sigprocmask: avoid compiler warning
6105         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6106         * tests/test-sigprocmask.c (main): Use it to silence warning.
6107         Reported by Jim Meyering.
6108
6109         test-snprintf: avoid compiler warning
6110         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6111         * tests/test-vsnprintf.c (main): Likewise.
6112         Reported by Jim Meyering.
6113
6114 2011-07-08  Bruno Haible  <bruno@clisp.org>
6115
6116         Tests for module 'pthread_sigmask'.
6117         * modules/pthread_sigmask-tests: New file.
6118         * tests/test-pthread_sigmask1.c: New file, based on
6119         tests/test-sigprocmask.c.
6120         * tests/test-pthread_sigmask2.c: New file.
6121
6122 2011-07-08  Jim Meyering  <meyering@redhat.com>
6123
6124         test-getopt.h: avoid warning about an unused variable
6125         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6126
6127 2011-07-07  Jim Meyering  <meyering@redhat.com>
6128
6129         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6130         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6131         now that it no longer contains leading TABs.
6132         Remove unused "url=FIXME" statement.
6133
6134 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6135
6136         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6137         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6138         When gl_THREADLIB is not in use, assume that the POSIX sematics
6139         are desired.  This is better for Emacs, which uses POSIX semantics
6140         on GNUish and/or POSIXish platforms, and does not use threads at
6141         all otherwise.
6142
6143         pthread_sigmask: fix typo when testing for libraries
6144         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6145         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6146
6147 2011-07-08  Eric Blake  <eblake@redhat.com>
6148
6149         fts: introduce FTS_NOATIME
6150         * lib/fts_.h (FTS_NOATIME): New bit flag.
6151         (FTS_OPTIONMASK): Adjust.
6152         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6153         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6154
6155 2011-07-08  Bruno Haible  <bruno@clisp.org>
6156
6157         Tests for module 'thread'.
6158         * modules/thread-tests: New file.
6159         * tests/test-thread_self.c: New file.
6160         * tests/test-thread_create.cc: New file.
6161
6162 2011-07-08  Bruno Haible  <bruno@clisp.org>
6163
6164         thread: Avoid gcc warnings when using gl_thread_self().
6165         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6166         'void *'.
6167         (gl_thread_self_pointer): Update.
6168
6169 2011-07-07  Bruno Haible  <bruno@clisp.org>
6170
6171         signal-c++-tests: Check declaration of pthread_sigmask.
6172         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6173         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6174         $(LIB_PTHREAD_SIGMASK).
6175
6176 2011-07-07  Bruno Haible  <bruno@clisp.org>
6177
6178         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6179         * lib/signal.in.h (pthread_sigmask): Override if
6180         REPLACE_PTHREAD_SIGMASK is 1.
6181         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6182         REPLACE_PTHREAD_SIGMASK.
6183         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6184         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6185         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6186         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6187         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6188
6189 2011-07-07  Bruno Haible  <bruno@clisp.org>
6190
6191         pthread_sigmask: Ensure declaration in <signal.h>.
6192         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6193         include <pthread.h>.
6194         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6195         problem.
6196
6197 2011-07-07  Bruno Haible  <bruno@clisp.org>
6198
6199         pthread_sigmask: Document the module.
6200         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6201
6202 2011-07-07  Bruno Haible  <bruno@clisp.org>
6203
6204         pthread_sigmask: Follow gnulib conventions.
6205         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6206         gl_PTHREAD_SIGMASK.
6207         * modules/pthread_sigmask (configure.ac): Update.
6208
6209 2011-07-07  Bruno Haible  <bruno@clisp.org>
6210
6211         pthread_sigmask: Make declaration C++ safe.
6212         * lib/signal.in.h: In two special conditions, just do an #include_next.
6213         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6214         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6215         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6216         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6217         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6218         not REPLACE_PTHREAD_MASK.
6219         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6220         not REPLACE_PTHREAD_MASK.
6221         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6222
6223 2011-07-07  Bruno Haible  <bruno@clisp.org>
6224
6225         pthread_sigmask: Fix return value.
6226         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6227         * lib/pthread_sigmask.c: New file.
6228         * modules/pthread_sigmask (Files): Add it.
6229         (configure.ac): Invoke AC_LIBOBJ.
6230
6231 2011-07-07  Eric Blake  <eblake@redhat.com>
6232
6233         getopt: more portable argv creation
6234         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6235         const, use char arrays rather than strings.
6236         Suggested by Paul Eggert.
6237
6238 2011-07-07  Bruno Haible  <bruno@clisp.org>
6239
6240         Tests for module 'sigprocmask'.
6241         * modules/sigprocmask-tests: New file.
6242         * tests/test-sigprocmask.c: New file.
6243
6244 2011-07-07  Bruno Haible  <bruno@clisp.org>
6245
6246         float tests: Tweak.
6247         * tests/test-float.c (main): Tweak skip message.
6248
6249 2011-07-07  Eric Blake  <eblake@redhat.com>
6250
6251         getopt: avoid compiler warning during configure
6252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6253         assigning string literals to non-const pointer.
6254
6255         getopt-gnu: avoid crash in glibc getopt
6256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6257         * tests/test-getopt.h (test_getopt): Enhance test.
6258         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6259         * doc/posix-functions/getopt.texi (getopt): Document it.
6260         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6261         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6262         Likewise.
6263
6264 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6265
6266         getopt: handle W; without long options in getopt [BZ #12922]
6267         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6268         but no long options are defined, just return 'W'.
6269
6270 2011-07-07  Bruno Haible  <bruno@clisp.org>
6271
6272         Avoid literal tabs.
6273         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6274         variable containing a tab instead of a literal tab.
6275         Reported by Jim Meyering.
6276
6277 2011-07-07  Bruno Haible  <bruno@clisp.org>
6278
6279         Comments.
6280         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6281
6282 2011-07-06  Bruno Haible  <bruno@clisp.org>
6283
6284         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6285         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6286         <winsock2.h>.
6287         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6288         lib/sys_socket.in.h.
6289         (close, gethostname): Hide declarations from <winsock2.h>.
6290         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6291         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6292         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6293         (select): Don't override if gnulib's <sys/select.h> was already
6294         included.
6295         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6296         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6297         setsockopt, shutdown, select): Tweak indentation.
6298
6299 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6300
6301         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6302         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6303         in an application that does not use the sys_select module.
6304
6305 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6306
6307         poll: do not return 0 on timeout=-1
6308         * lib/poll.c: Loop with yield if no events occured
6309
6310 2011-07-06  Eric Blake  <eblake@redhat.com>
6311
6312         pthread_sigmask: always replace when not using pthread
6313         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6314         replacement when using some threading other than pthread.  Fix
6315         logic bug.
6316
6317 2011-07-06  Bruno Haible  <bruno@clisp.org>
6318
6319         Comments.
6320         * m4/printf.m4: Update comments about mingw.
6321
6322 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6323
6324         sys_select: define sigset_t more portably
6325         * lib/sys_select.in.h: Always include <sys/types.h>, since
6326         we now need sigset_t and mingw defines it there.
6327         Include <signal.h> before split inclusion guard, to avoid
6328         mishaps on Solaris, whose <signal.h> eventually includes us.
6329         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6330         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6331         which come from ...
6332         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6333         gl_CHECK_TYPE_SIGSET_T.
6334         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6335         does the real work.
6336         * modules/sys_select (Depends-on): Add 'signal'.
6337
6338         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6339         Suggested by Bruno Haible.
6340
6341         pselect: Use pthread_sigmask, not sigprocmask.
6342         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6343         multithreaded apps better than sigprocmask does.
6344         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6345         sigprocmask directly.
6346
6347 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6348
6349         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6350         Don't #undef,  since we don't need any underlying pselect.
6351         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6352         (Depends-on): Add select.
6353         (Link): Add $(LIBSOCKET).
6354         These changes suggested by Bruno Haible.
6355
6356         pselect: document better
6357         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6358         * doc/posix-functions/pselect.texi (pselect): Document new module.
6359
6360         pthread_sigmask: new module
6361         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6362         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6363         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6364         This is done only as a macro; I don't know how well that'll
6365         work for C++.  Move <sys/types.h> include before the include_next,
6366         to avoid mishap on Solaris.
6367         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6368         * modules/signal (Makefile.am): Substitute the check's results.
6369         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6370
6371         test-pselect: new module
6372         * modules/pselect-tests, tests/test-pselect.c: New files.
6373         * tests/test-select.c, tests/test-sys_select-c++.cc:
6374         If TEST_PSELECT is defined, test pselect instead of testing select.
6375
6376         * tests/test-sys_select.c (sigset_t): Test for it, too.
6377         Suggested by Bruno Haible.
6378
6379 2011-07-05  Eric Blake  <eblake@redhat.com>
6380
6381         snprintf: guarantee %1$d, for libintl
6382         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6383         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6384         * doc/posix-functions/snprintf.texi (snprintf): Update.
6385         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6386         * tests/test-snprintf.c (main): Enhance test.
6387         * tests/test-vsnprintf.c (main): Likewise.
6388
6389 2011-07-05  Jim Meyering  <meyering@redhat.com>
6390
6391         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6392         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6393         per Bruno's request, to accommodate this idiom (no space after "#")
6394         even when the function is inside an #if block:
6395         char *
6396         gets (char *s)
6397         #undef gets
6398         {
6399           ...
6400         }
6401
6402 2011-07-04  Jim Meyering  <meyering@redhat.com>
6403
6404         maint: indent with spaces, not TABs, and add a rule to check this
6405         * tests/test-userspec.c: Indent with spaces, not TABs.
6406         * tests/test-argp.c: Likewise.
6407         * tests/test-c-stack2.sh: Likewise.
6408         * tests/test-parse-duration.sh: Likewise
6409         * m4/strtod.m4: Likewise.
6410         * m4/alloca.m4: Likewise.
6411         * m4/pselect.m4: Likewise.
6412         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6413
6414 2011-07-03  Jim Meyering  <meyering@redhat.com>
6415
6416         maint.mk: correct omissions in prohibit_argmatch_without_use check
6417         This rule would mistakenly report that argmatch.h is included without
6418         use even when both the argmatch and invalid_arg macro were used.
6419         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6420         of argmatch and invalid_arg.
6421
6422 2011-07-03  Bruno Haible  <bruno@clisp.org>
6423
6424         Comments about EINTR.
6425         * lib/safe-read.h: Explain the purpose of this module.
6426         * lib/safe-write.h: Likewise.
6427         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6428         module.
6429         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6430         module.
6431         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6432
6433 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6434
6435         xnanosleep: Rewrite to use new dtotimespec module.
6436         It has the conversion code that used to be in xnanosleep.
6437         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6438         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6439         (TIME_T_MAX): Remove.
6440         (xnanosleep): Rewrite in terms of dtotimespec.
6441         * modules/xnanosleep (Depends-on): Add dtotimespec.
6442         Remove intprops, stdbool.
6443
6444         timespec-add, timespec-sub: new modules
6445         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6446         * lib/timespec-add.c, lib/timespec-sub.c:
6447         * modules/timespec-add, modules/timespec-sub: New files.
6448
6449         dtotimespec: new module
6450         * lib/timespec.h (dtotimespec): New decl.
6451         * lib/dtotimespec.c, modules/dtotimespec: New files.
6452
6453         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6454
6455         pselect: new module
6456         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6457         (pselect): New decls.
6458         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6459         since the standard pselect decl uses 'restrict'.
6460         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6461         HAVE_PSELECT, REPLACE_PSELECT.
6462         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6463         HAVE_PSELECT, REPLACE_PSELECT.
6464         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6465
6466         sys_select: don't depend on sys_socket
6467         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6469         This fix works on GNU and GNU-like platforms, but has not been tested
6470         on native Windows.
6471         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6472         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6473         gl_HEADER_SYS_SOCKET.
6474         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6475         gl_PREREQ_SYS_H_WINSOCK2.
6476
6477 2011-06-29  Eric Blake  <eblake@redhat.com>
6478
6479         pipe2: fix C89 compile problem
6480         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6481         Reported by Bruno Haible.
6482
6483         pipe, pipe2: don't corrupt fd on error
6484         * lib/pipe.c (pipe): Leave fd unchanged on error.
6485         * lib/pipe2.c (pipe2): Likewise.
6486         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6487         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6488
6489 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6490
6491         mmap-anon: do not use regular expressions inadvertently
6492         * m4/mmap-anon.m4: Remove trailing period from strings sought
6493         in the output.
6494
6495 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6496
6497         nanosleep: fix integer overflow problem
6498         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6499         arithmetic wraps around on overflow.
6500
6501         nanosleep: simplify carrying
6502         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6503         first call to the underyling nanosleep, not for the last one.
6504         This doesn't fix any bugs, but it simplifies the computation of
6505         the remaining delay.  Found while auditing integer overflow issues.
6506
6507         dup2: remove test for existence of fcntl
6508         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6509         "#if HAVE_FCNTL", in the configure-time test program.
6510         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6511         and therefore speeds up "configure" a bit.  Found while
6512         adding the dup2 module to Emacs.
6513
6514 2011-06-24  Eric Blake  <eblake@redhat.com>
6515
6516         maint.mk: enhance useless header checks
6517         * top/maint.mk (_sc_header_without_use): Check both include
6518         styles.
6519         (sc_prohibit_assert_without_use)
6520         (sc_prohibit_close_stream_without_use)
6521         (sc_prohibit_getopt_without_use)
6522         (sc_prohibit_quotearg_without_use)
6523         (sc_prohibit_quote_without_use)
6524         (sc_prohibit_long_options_without_use)
6525         (sc_prohibit_inttostr_without_use)
6526         (sc_prohibit_ignore_value_without_use)
6527         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6528         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6529         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6530         (sc_prohibit_hash_pjw_without_use)
6531         (sc_prohibit_safe_read_without_use)
6532         (sc_prohibit_argmatch_without_use)
6533         (sc_prohibit_canonicalize_without_use)
6534         (sc_prohibit_root_dev_ino_without_use)
6535         (sc_prohibit_openat_without_use)
6536         (sc_prohibit_c_ctype_without_use)
6537         (sc_prohibit_signal_without_use)
6538         (sc_prohibit_stdio--_without_use)
6539         (sc_prohibit_stdio-safer_without_use)
6540         (sc_prohibit_strings_without_use)
6541         (sc_prohibit_intprops_without_use)
6542         (sc_prohibit_stddef_without_use)
6543         (sc_prohibit_xfreopen_without_use): Update clients.
6544
6545 2011-06-24  Jim Meyering  <meyering@redhat.com>
6546
6547         syntax-check: keep one maint.mk rule in sync with its header
6548         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6549         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6550         I prefer to avoid temporary files here, so use <(...), but that
6551         is not supported by /bin/sh, so...
6552         (SHELL): Define to /bin/bash.
6553
6554 2011-06-24  Eric Blake  <eblake@redhat.com>
6555
6556         maint.mk: update sc_prohibit_intprops_without_use
6557         * top/maint.mk (_intprops_names): Match recent changes.
6558
6559 2011-06-24  Bruno Haible  <bruno@clisp.org>
6560
6561         strerror-override: No-op tweak.
6562         * lib/strerror-override.h (strerror_override): Reorder conditions,
6563         for consistency with lib/strerror-override.c.
6564
6565 2011-06-23  Eric Blake  <eblake@redhat.com>
6566
6567         maint.mk: test further PATH_MAX issues
6568         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6569         (sc_prohibit_path_max_allocation): ...and also test alloca.
6570         Suggested by Jim Meyering.
6571
6572 2011-06-22  Eric Blake  <eblake@redhat.com>
6573
6574         maint.mk: add syntax-check to avoid char[PATH_MAX]
6575         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6576
6577         stat: be robust to PATH_MAX definition
6578         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6579         * modules/stat (Depends-on): Add verify.
6580
6581         link: work around IRIX bug
6582         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6583         * lib/link.c (rpl_link): Work around it.
6584         * tests/test-link.h (test_link): Enhance test.
6585         * doc/posix-functions/link.texi (link): Document the bug.
6586
6587         getopt: silence clang warning
6588         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6589         dereference.
6590         Reported by Gustavo Martin Domato.
6591
6592 2011-06-22  Jim Meyering  <meyering@redhat.com>
6593
6594         bootstrap: do not insert a blank line into each .gitignore file
6595         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6596
6597 2011-06-21  Eric Blake  <eblake@redhat.com>
6598
6599         perror: test for output mismatch
6600         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6601         perror on IRIX.
6602
6603         strerror_r: fix OpenBSD behavior on out-of-range
6604         * lib/strerror_r.c (strerror_r): Always use maximal string.
6605         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6606
6607         strerror_r: fix OpenBSD behavior on 0
6608         * lib/strerror-override.c (strerror_override): Also override 0
6609         when needed.
6610         * lib/strerror-override.h (strerror_override): Likewise.
6611         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6612         earlier.
6613         * lib/strerror_r.c (strerror_r): Likewise.
6614         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6615         behavior...
6616         (gl_FUNC_STRERROR_0): ...into new macro.
6617         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6618         is overridden.
6619         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6620         * modules/strerror-override (Files): Add strerror.m4.
6621         (configure.ac): Also provide override for 0 when needed.
6622         * doc/posix-functions/strerror.texi (strerror): Document this.
6623         * doc/posix-functions/perror.texi (perror): Likewise.
6624
6625         perror: adjust array size
6626         * modules/perror (Depends-on): Add strerror-override.
6627         * lib/perror.c (perror): Use it to avoid magic number.
6628
6629         strerror-override: reduce size
6630         * lib/strerror-override.c (strerror_override): Use fewer lines.
6631
6632 2011-06-20  Bruno Haible  <bruno@clisp.org>
6633
6634         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6635         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6636
6637 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6638
6639         alloca: port to compilers that can optimize like GCC 4.6.0
6640         * lib/alloca.c (find_stack_direction): New signature, taken from
6641         Autoconf git.  This works with GCC 4.6.0.  This code should never
6642         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6643         be used with other compilers that optimize as well as GCC 4.6.0 does.
6644         (alloca): Adjust to new signature.
6645         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6646         New macro, which patches Autoconf in a similar way.
6647
6648         c-stack: stop worrying about stack direction
6649         * lib/c-stack.c (find_stack_direction): Remove.
6650         (segv_handler): Don't worry about stack direction growth, as it's
6651         too much of a pain to configure this correctly, given how compilers
6652         are optimizing-away our stack-growth detection code.  Instead, assume
6653         that any access to just before or just after the stack is OK.
6654         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6655         Don't require AC_FUNC_ALLOCA; no longer needed.
6656
6657 2011-06-20  Eric Blake  <eblake@redhat.com>
6658
6659         test-stat: don't allocate PATH_MAX bytes
6660         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6661         PATH_MAX-sized buffer.
6662         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6663         * modules/stat-tests (Depends-on): Likewise.
6664         * tests/test-fstatat.c (includes): Drop pathmax.h.
6665         * tests/test-stat.c (includes): Likewise.
6666         Reported by Bruno Haible.
6667
6668 2011-06-20  Bruno Haible  <bruno@clisp.org>
6669
6670         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6671         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6672         * lib/float.c: New file.
6673         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6674         REPLACE_FLOAT_LDBL.
6675         * modules/float (Files): Add lib/float.c.
6676         (configure.ac): Invoke AC_LIBOBJ.
6677         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6678
6679 2011-06-20  Bruno Haible  <bruno@clisp.org>
6680
6681         Tests for module 'float'.
6682         * modules/float-tests: New file.
6683         * tests/test-float.c: New file.
6684
6685 2011-06-19  Bruno Haible  <bruno@clisp.org>
6686
6687         isinf: Coding style.
6688         * lib/isinf.c: Use GNU coding style.
6689
6690 2011-06-19  Bruno Haible  <bruno@clisp.org>
6691
6692         linkat test: Avoid test failure on AIX 7.1.
6693         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6694         * tests/test-link.h (test_link): Likewise.
6695
6696 2011-06-19  Bruno Haible  <bruno@clisp.org>
6697
6698         pread test: Avoid test failure on OpenBSD 4.9.
6699         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6700
6701 2011-06-19  Bruno Haible  <bruno@clisp.org>
6702
6703         sprintf-posix: Fix test failure on AIX 7.1.
6704         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6705         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6706         on AIX.
6707         * doc/posix-functions/fprintf.texi: Likewise.
6708         * doc/posix-functions/printf.texi: Likewise.
6709         * doc/posix-functions/snprintf.texi: Likewise.
6710         * doc/posix-functions/sprintf.texi: Likewise.
6711         * doc/posix-functions/vdprintf.texi: Likewise.
6712         * doc/posix-functions/vfprintf.texi: Likewise.
6713         * doc/posix-functions/vprintf.texi: Likewise.
6714         * doc/posix-functions/vsnprintf.texi: Likewise.
6715         * doc/posix-functions/vsprintf.texi: Likewise.
6716
6717 2011-06-19  Bruno Haible  <bruno@clisp.org>
6718
6719         roundl-ieee: Fix test failure on AIX 7.1.
6720         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6721         * doc/posix-functions/roundl.texi: Mention problem with negative
6722         arguments.
6723
6724 2011-06-19  Bruno Haible  <bruno@clisp.org>
6725
6726         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6727         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6728         * doc/posix-functions/round.texi: Mention problem with negative
6729         arguments.
6730         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6731
6732 2011-06-19  Bruno Haible  <bruno@clisp.org>
6733
6734         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6735         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6736         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6737         * doc/posix-functions/roundf.texi: Mention problem with negative
6738         arguments.
6739         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6740
6741 2011-06-19  Bruno Haible  <bruno@clisp.org>
6742
6743         ceilf-ieee: Work around bug on MacOS X 10.5.
6744         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6745
6746         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6747         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6748         IEEE compliant, avoid compiler optimizations.
6749         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6750         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6751         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6752         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6753         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6754         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6755         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6756         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6757         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6758         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6759
6760 2011-06-19  Bruno Haible  <bruno@clisp.org>
6761
6762         ceilf-ieee: Work around bug on AIX 7.1.
6763         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6764         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6765
6766 2011-06-19  Bruno Haible  <bruno@clisp.org>
6767
6768         ceil-ieee: Work around bug on AIX 7.1.
6769         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6770         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6771
6772 2011-06-18  Bruno Haible  <bruno@clisp.org>
6773
6774         fsync test: Avoid test failure on MacOS X and AIX.
6775         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6776         EINVAL.
6777
6778 2011-06-18  Bruno Haible  <bruno@clisp.org>
6779
6780         openat, fdopendir tests: Fix link errors.
6781         * modules/openat-tests (Depends-on): Add progname.
6782         * modules/fdopendir-tests (Depends-on): Likewise.
6783         * tests/test-fchownat.c: Include progname.h.
6784         (main): Call set_program_name.
6785         * tests/test-fstatat.c: Include progname.h.
6786         (main): Call set_program_name.
6787         * tests/test-mkdirat.c: Include progname.h.
6788         (main): Call set_program_name.
6789         * tests/test-openat.c: Include progname.h.
6790         (main): Call set_program_name.
6791         * tests/test-unlinkat.c: Include progname.h.
6792         (main): Call set_program_name.
6793         * tests/test-fdopendir.c: Include progname.h.
6794         (main): Call set_program_name.
6795
6796 2011-06-18  Bruno Haible  <bruno@clisp.org>
6797
6798         Doc update.
6799         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6800         HP-UX.
6801         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6802
6803 2011-06-18  Bruno Haible  <bruno@clisp.org>
6804
6805         getcwd tests: Avoid compilation error on HP-UX 11.31.
6806         * modules/getcwd-tests (Depends-on): Add pathmax.
6807         * tests/test-getcwd.c: Include pathmax.h.
6808
6809 2011-06-18  Bruno Haible  <bruno@clisp.org>
6810
6811         isfinite, isinf: Fix link error on AIX 6 and 7.
6812         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6813         needed, also test the macro with a 'float' argument.
6814         * m4/isinf.m4 (gl_ISINF): Likewise.
6815
6816 2011-06-18  Bruno Haible  <bruno@clisp.org>
6817
6818         getloadavg: Don't clobber LIBS. Regression from previous commit.
6819         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6820         AC_CHECK_LIB from here...
6821         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6822         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6823         gl_func_getloadavg_done.
6824         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6825
6826 2011-06-18  Bruno Haible  <bruno@clisp.org>
6827
6828         clean-temp: Improve documentation.
6829         * lib/clean-temp.h: Explain better how to use this module.
6830         Reported by John Darrington <john@darrington.wattle.id.au>.
6831
6832 2011-06-17  Bruno Haible  <bruno@clisp.org>
6833
6834         pread, pwrite: Avoid cc warning on AIX.
6835         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6836         (pwrite): Likewise.
6837
6838 2011-06-17  Bruno Haible  <bruno@clisp.org>
6839
6840         spawn-pipe tests: Fix link error.
6841         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6843
6844 2011-06-17  Bruno Haible  <bruno@clisp.org>
6845
6846         Tests: Remove unnecessary dependency.
6847         * modules/canonicalize-tests (Depends-on): Remove progname.
6848         * modules/chown-tests (Depends-on): Likewise.
6849         * modules/dirname-tests (Depends-on): Likewise.
6850         * modules/fdopendir-tests (Depends-on): Likewise.
6851         * modules/fdutimensat-tests (Depends-on): Likewise.
6852         * modules/hash-tests (Depends-on): Likewise.
6853         * modules/lchown-tests (Depends-on): Likewise.
6854         * modules/linkat-tests (Depends-on): Likewise.
6855         * modules/renameat-tests (Depends-on): Likewise.
6856         * modules/spawn-pipe-tests (Depends-on): Likewise.
6857         * modules/utimensat-tests (Depends-on): Likewise.
6858
6859 2011-06-17  Bruno Haible  <bruno@clisp.org>
6860
6861         spawn-pipe tests: Fix link error.
6862         * tests/test-spawn-pipe-child.c: Undefine fflush.
6863
6864 2011-06-17  Bruno Haible  <bruno@clisp.org>
6865
6866         Fix tests link errors.
6867         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6868         * modules/chown-tests (Makefile.am): Don't link test-chown with
6869         LIBINTL.
6870         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6871         LIBINTL.
6872         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6873         LIBINTL.
6874         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6875         LIBINTL.
6876
6877 2011-06-16  Bruno Haible  <bruno@clisp.org>
6878
6879         crypto/gc-sha1: Fix recent regression.
6880         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6881         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6882
6883         crypto/gc-md5: Fix recent regression.
6884         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6885
6886         crypto/gc-md4: Fix recent regression.
6887         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6888         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6889
6890         crypto/gc-arctwo: Fix recent regression.
6891         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6892         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6893
6894         crypto/gc-rijndael: Fix recent regression.
6895         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6896         (configure.ac): Invoke AC_LIBOBJ here.
6897         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6898         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6899
6900         crypto/gc-hmac-sha1: Fix recent regression.
6901         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6902         (configure.ac): Invoke AC_LIBOBJ here.
6903         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6905
6906         crypto/gc-hmac-md5: Fix recent regression.
6907         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6908         (configure.ac): Invoke AC_LIBOBJ here.
6909         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6911
6912         crypto/gc-des: Fix recent regression.
6913         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6914         (configure.ac): Invoke AC_LIBOBJ here.
6915         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6916         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6917
6918         crypto/gc-arcfour: Fix recent regression.
6919         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6920         (configure.ac): Invoke AC_LIBOBJ here.
6921         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6922         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6923
6924 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6925
6926         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6927         After the 2011-05-21 change, this macro requires
6928         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6929         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6930
6931 2011-06-16  Bruno Haible  <bruno@clisp.org>
6932
6933         fprintftime: Move AC_LIBOBJ invocations to module description.
6934         * m4/fprintftime.m4: Remove file.
6935         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6936         (configure.ac): Remove gl_FPRINTFTIME call.
6937         (Makefile.am): Augment lib_SOURCES.
6938         Reported by Jim Meyering.
6939
6940 2011-06-16  Bruno Haible  <bruno@clisp.org>
6941
6942         tmpfile-safer: Finish 2011-05-23 commit.
6943         * m4/stdio-safer.m4: Really remove file.
6944         Reported by Jim Meyering.
6945
6946 2011-06-16  Bruno Haible  <bruno@clisp.org>
6947
6948         syntax-check: Fix typo.
6949         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6950         printf-posix.m4.
6951         Reported by Jim Meyering.
6952
6953 2011-06-13  Jim Meyering  <meyering@redhat.com>
6954
6955         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6956         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6957
6958 2011-05-23  Bruno Haible  <bruno@clisp.org>
6959
6960         yesno: Move AC_LIBOBJ invocations to module description.
6961         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6962         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6963
6964 2011-05-23  Bruno Haible  <bruno@clisp.org>
6965
6966         xstrtol: Move AC_LIBOBJ invocations to module description.
6967         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6968         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6969
6970 2011-05-23  Bruno Haible  <bruno@clisp.org>
6971
6972         xstrtold: Move AC_LIBOBJ invocations to module description.
6973         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6974         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6975
6976 2011-05-23  Bruno Haible  <bruno@clisp.org>
6977
6978         xstrtod: Move AC_LIBOBJ invocations to module description.
6979         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6980         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6981
6982 2011-05-23  Bruno Haible  <bruno@clisp.org>
6983
6984         xnanosleep: Move AC_LIBOBJ invocations to module description.
6985         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6986         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6987
6988 2011-05-23  Bruno Haible  <bruno@clisp.org>
6989
6990         xgetcwd: Move AC_LIBOBJ invocations to module description.
6991         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6992         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6993
6994 2011-05-23  Bruno Haible  <bruno@clisp.org>
6995
6996         xalloc: Move AC_LIBOBJ invocations to module description.
6997         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6998         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6999
7000 2011-05-23  Bruno Haible  <bruno@clisp.org>
7001
7002         write-any-file: Move AC_LIBOBJ invocations to module description.
7003         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7004         invocation.
7005         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7006
7007 2011-05-23  Bruno Haible  <bruno@clisp.org>
7008
7009         utimens: Move AC_LIBOBJ invocations to module description.
7010         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7011         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7012
7013 2011-05-23  Bruno Haible  <bruno@clisp.org>
7014
7015         utimecmp: Move AC_LIBOBJ invocations to module description.
7016         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7017         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7018
7019 2011-05-23  Bruno Haible  <bruno@clisp.org>
7020
7021         userspec: Move AC_LIBOBJ invocations to module description.
7022         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7023         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7024
7025 2011-05-23  Bruno Haible  <bruno@clisp.org>
7026
7027         unlinkdir: Move AC_LIBOBJ invocations to module description.
7028         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7029         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7030
7031 2011-05-23  Bruno Haible  <bruno@clisp.org>
7032
7033         unistd-safer: Move AC_LIBOBJ invocations to module description.
7034         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7035         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7036
7037 2011-05-23  Bruno Haible  <bruno@clisp.org>
7038
7039         tempname: Move AC_LIBOBJ invocations to module description.
7040         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7041         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7042
7043 2011-05-23  Bruno Haible  <bruno@clisp.org>
7044
7045         strftime: Move AC_LIBOBJ invocations to module description.
7046         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7047         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7048
7049 2011-05-23  Bruno Haible  <bruno@clisp.org>
7050
7051         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7052         * m4/stdlib-safer.m4: Remove file.
7053         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7054         (configure.ac): Remove gl_STDLIB_SAFER call.
7055         (Makefile.am): Augment lib_SOURCES.
7056
7057 2011-05-23  Bruno Haible  <bruno@clisp.org>
7058
7059         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7060         * m4/stdio-safer.m4: Remove file.
7061         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7062         (configure.ac): Remove gl_TMPFILE_SAFER call.
7063         (Makefile.am): Augment lib_SOURCES.
7064
7065 2011-05-23  Bruno Haible  <bruno@clisp.org>
7066
7067         popen-safer: Move AC_LIBOBJ invocations to module description.
7068         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7069         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7070         (configure.ac): Remove gl_POPEN_SAFER call.
7071         (Makefile.am): Augment lib_SOURCES.
7072
7073 2011-05-23  Bruno Haible  <bruno@clisp.org>
7074
7075         freopen-safer: Move AC_LIBOBJ invocations to module description.
7076         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7077         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7078         (configure.ac): Remove gl_FREOPEN_SAFER call.
7079         (Makefile.am): Augment lib_SOURCES.
7080
7081 2011-05-23  Bruno Haible  <bruno@clisp.org>
7082
7083         fopen-safer: Move AC_LIBOBJ invocations to module description.
7084         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7085         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7086         (configure.ac): Remove gl_FOPEN_SAFER call.
7087         (Makefile.am): Augment lib_SOURCES.
7088
7089 2011-05-23  Bruno Haible  <bruno@clisp.org>
7090
7091         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7092         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7093         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7094
7095 2011-05-23  Bruno Haible  <bruno@clisp.org>
7096
7097         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7098         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7099         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7100
7101 2011-05-23  Bruno Haible  <bruno@clisp.org>
7102
7103         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7104         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7105         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7106
7107 2011-05-23  Bruno Haible  <bruno@clisp.org>
7108
7109         settime: Move AC_LIBOBJ invocations to module description.
7110         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7111         * modules/settime (Makefile.am): Augment lib_SOURCES.
7112
7113 2011-05-23  Bruno Haible  <bruno@clisp.org>
7114
7115         savedir: Move AC_LIBOBJ invocations to module description.
7116         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7117         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7118
7119 2011-05-23  Bruno Haible  <bruno@clisp.org>
7120
7121         save-cwd: Move AC_LIBOBJ invocations to module description.
7122         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7123         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7124
7125 2011-05-23  Bruno Haible  <bruno@clisp.org>
7126
7127         same: Move AC_LIBOBJ invocations to module description.
7128         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7129         * modules/same (Makefile.am): Augment lib_SOURCES.
7130
7131 2011-05-23  Bruno Haible  <bruno@clisp.org>
7132
7133         safe-write: Move AC_LIBOBJ invocations to module description.
7134         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7135         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7136         instead of gl_SAFE_WRITE.
7137         (Makefile.am): Augment lib_SOURCES.
7138
7139 2011-05-23  Bruno Haible  <bruno@clisp.org>
7140
7141         safe-read: Move AC_LIBOBJ invocations to module description.
7142         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7143         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7144         of gl_SAFE_READ.
7145         (Makefile.am): Augment lib_SOURCES.
7146
7147 2011-05-23  Bruno Haible  <bruno@clisp.org>
7148
7149         safe-alloc: Move AC_LIBOBJ invocations to module description.
7150         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7151         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7152
7153 2011-05-23  Bruno Haible  <bruno@clisp.org>
7154
7155         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7156         * m4/rijndael.m4: Remove file.
7157         * modules/crypto/rijndael (Files): Remove it.
7158         (configure.ac): Remove gl_RIJNDAEL call.
7159         (Makefile.am): Augment lib_SOURCES.
7160
7161 2011-05-23  Bruno Haible  <bruno@clisp.org>
7162
7163         readtokens: Move AC_LIBOBJ invocations to module description.
7164         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7165         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7166
7167 2011-05-23  Bruno Haible  <bruno@clisp.org>
7168
7169         read-file: Move AC_LIBOBJ invocations to module description.
7170         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7171         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7172         of gl_FUNC_READ_FILE.
7173         (Makefile.am): Augment lib_SOURCES.
7174
7175 2011-05-23  Bruno Haible  <bruno@clisp.org>
7176
7177         quotearg: Move AC_LIBOBJ invocations to module description.
7178         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7179         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7180
7181 2011-05-23  Bruno Haible  <bruno@clisp.org>
7182
7183         quote: Move AC_LIBOBJ invocations to module description.
7184         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7185         * modules/quote (Makefile.am): Augment lib_SOURCES.
7186
7187 2011-05-23  Bruno Haible  <bruno@clisp.org>
7188
7189         posixver: Move AC_LIBOBJ invocations to module description.
7190         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7191         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7192
7193 2011-05-23  Bruno Haible  <bruno@clisp.org>
7194
7195         posixtm: Move AC_LIBOBJ invocations to module description.
7196         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7197         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7198
7199 2011-05-23  Bruno Haible  <bruno@clisp.org>
7200
7201         physmem: Move AC_LIBOBJ invocations to module description.
7202         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7203         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7204
7205 2011-05-23  Bruno Haible  <bruno@clisp.org>
7206
7207         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7208         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7209         invocation.
7210         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7211
7212 2011-05-23  Bruno Haible  <bruno@clisp.org>
7213
7214         mpsort: Move AC_LIBOBJ invocations to module description.
7215         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7216         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7217
7218 2011-05-23  Bruno Haible  <bruno@clisp.org>
7219
7220         modechange: Move AC_LIBOBJ invocations to module description.
7221         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7222         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7223
7224 2011-05-23  Bruno Haible  <bruno@clisp.org>
7225
7226         mkdir-p: Move AC_LIBOBJ invocations to module description.
7227         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7228         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7229
7230 2011-05-23  Bruno Haible  <bruno@clisp.org>
7231
7232         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7233         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7234         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7235
7236 2011-05-23  Bruno Haible  <bruno@clisp.org>
7237
7238         mgetgroups: Move AC_LIBOBJ invocations to module description.
7239         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7240         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7241
7242 2011-05-23  Bruno Haible  <bruno@clisp.org>
7243
7244         memxor: Move AC_LIBOBJ invocations to module description.
7245         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7246         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7247
7248 2011-05-23  Bruno Haible  <bruno@clisp.org>
7249
7250         memcoll: Move AC_LIBOBJ invocations to module description.
7251         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7252         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7253
7254 2011-05-23  Bruno Haible  <bruno@clisp.org>
7255
7256         memcasecmp: Move AC_LIBOBJ invocations to module description.
7257         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7258         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7259
7260 2011-05-23  Bruno Haible  <bruno@clisp.org>
7261
7262         crypto/md5: Move AC_LIBOBJ invocations to module description.
7263         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7264         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7265
7266 2011-05-23  Bruno Haible  <bruno@clisp.org>
7267
7268         crypto/md4: Move AC_LIBOBJ invocations to module description.
7269         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7270         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7271
7272 2011-05-23  Bruno Haible  <bruno@clisp.org>
7273
7274         crypto/md2: Move AC_LIBOBJ invocations to module description.
7275         * m4/md2.m4: Remove file.
7276         * modules/crypto/md2 (Files): Remove it.
7277         (configure.ac): Remove gl_MD2 call.
7278         (Makefile.am): Augment lib_SOURCES.
7279
7280 2011-05-23  Bruno Haible  <bruno@clisp.org>
7281
7282         long-options: Move AC_LIBOBJ invocations to module description.
7283         * m4/long-options.m4: Remove file.
7284         * modules/long-options (Files): Remove it.
7285         (configure.ac): Remove gl_LONG_OPTIONS call.
7286         (Makefile.am): Augment lib_SOURCES.
7287
7288 2011-05-23  Bruno Haible  <bruno@clisp.org>
7289
7290         i-ring: Move AC_LIBOBJ invocations to module description.
7291         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7292         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7293
7294 2011-05-23  Bruno Haible  <bruno@clisp.org>
7295
7296         idcache: Move AC_LIBOBJ invocations to module description.
7297         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7298         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7299
7300 2011-05-23  Bruno Haible  <bruno@clisp.org>
7301
7302         human: Move AC_LIBOBJ invocations to module description.
7303         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7304         * modules/human (Makefile.am): Augment lib_SOURCES.
7305
7306 2011-05-23  Bruno Haible  <bruno@clisp.org>
7307
7308         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7309         * m4/hmac-sha1.m4: Remove file.
7310         * modules/crypto/hmac-sha1 (Files): Remove it.
7311         (configure.ac): Remove gl_HMAC_SHA1 call.
7312         (Makefile.am): Augment lib_SOURCES.
7313
7314 2011-05-23  Bruno Haible  <bruno@clisp.org>
7315
7316         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7317         * m4/hmac-md5.m4: Remove file.
7318         * modules/crypto/hmac-md5 (Files): Remove it.
7319         (configure.ac): Remove gl_HMAC_MD5 call.
7320         (Makefile.am): Augment lib_SOURCES.
7321
7322 2011-05-23  Bruno Haible  <bruno@clisp.org>
7323
7324         hash: Move AC_LIBOBJ invocations to module description.
7325         * m4/hash.m4: Remove file.
7326         * modules/hash (Files): Remove it.
7327         (configure.ac): Remove gl_HASH call.
7328         (Makefile.am): Augment lib_SOURCES.
7329
7330 2011-05-23  Bruno Haible  <bruno@clisp.org>
7331
7332         hard-locale: Move AC_LIBOBJ invocations to module description.
7333         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7334         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7335
7336 2011-05-23  Bruno Haible  <bruno@clisp.org>
7337
7338         getugroups: Move AC_LIBOBJ invocations to module description.
7339         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7340         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7341
7342 2011-05-23  Bruno Haible  <bruno@clisp.org>
7343
7344         gettime: Move AC_LIBOBJ invocations to module description.
7345         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7346         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7347
7348 2011-05-23  Bruno Haible  <bruno@clisp.org>
7349
7350         getndelim2: Move AC_LIBOBJ invocations to module description.
7351         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7352         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7353
7354 2011-05-23  Bruno Haible  <bruno@clisp.org>
7355
7356         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7357         * m4/gc-pbkdf2-sha1.m4: Remove file.
7358         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7359         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7360         (Makefile.am): Augment lib_SOURCES.
7361
7362 2011-05-23  Bruno Haible  <bruno@clisp.org>
7363
7364         fts: Move AC_LIBOBJ invocations to module description.
7365         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7366         * modules/fts (configure.ac): ... to here.
7367
7368 2011-05-23  Bruno Haible  <bruno@clisp.org>
7369
7370         file-type: Move AC_LIBOBJ invocations to module description.
7371         * m4/file-type.m4: Remove file.
7372         * modules/file-type (Files): Remove it.
7373         (configure.ac): Remove gl_FILE_TYPE call.
7374         (Makefile.am): Augment lib_SOURCES.
7375
7376 2011-05-23  Bruno Haible  <bruno@clisp.org>
7377
7378         filenamecat*: Respect rules for use of AC_LIBOBJ.
7379         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7380         Remove AC_LIBOBJ invocation.
7381         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7382         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7383
7384 2011-05-23  Bruno Haible  <bruno@clisp.org>
7385
7386         filemode: Move AC_LIBOBJ invocations to module description.
7387         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7388         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7389
7390 2011-05-23  Bruno Haible  <bruno@clisp.org>
7391
7392         openat-safer: Move AC_LIBOBJ invocations to module description.
7393         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7394         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7395
7396 2011-05-23  Bruno Haible  <bruno@clisp.org>
7397
7398         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7399         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7400         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7401
7402 2011-05-23  Bruno Haible  <bruno@clisp.org>
7403
7404         exclude: Move AC_LIBOBJ invocations to module description.
7405         * m4/exclude.m4: Remove file.
7406         * modules/exclude (Files): Remove it.
7407         (configure.ac): Remove gl_EXCLUDE call.
7408         (Makefile.am): Augment lib_SOURCES.
7409
7410 2011-05-23  Bruno Haible  <bruno@clisp.org>
7411
7412         dirname*: Respect rules for use of AC_LIBOBJ.
7413         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7414         invocations.
7415         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7416         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7417
7418 2011-05-23  Bruno Haible  <bruno@clisp.org>
7419
7420         dirent-safer: Move AC_LIBOBJ invocations to module description.
7421         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7422         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7423
7424 2011-05-23  Bruno Haible  <bruno@clisp.org>
7425
7426         crypto/des: Move AC_LIBOBJ invocations to module description.
7427         * m4/des.m4: Remove file.
7428         * modules/crypto/des (Files): Remove it.
7429         (configure.ac): Remove gl_DES call.
7430         (Makefile.am): Augment lib_SOURCES.
7431
7432 2011-05-23  Bruno Haible  <bruno@clisp.org>
7433
7434         cycle-check: Move AC_LIBOBJ invocations to module description.
7435         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7436         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7437
7438 2011-05-23  Bruno Haible  <bruno@clisp.org>
7439
7440         c-strtold: Move AC_LIBOBJ invocations to module description.
7441         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7442         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7443
7444 2011-05-23  Bruno Haible  <bruno@clisp.org>
7445
7446         c-strtod: Move AC_LIBOBJ invocations to module description.
7447         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7448         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7449
7450 2011-05-23  Bruno Haible  <bruno@clisp.org>
7451
7452         crc: Move AC_LIBOBJ invocations to module description.
7453         * m4/crc.m4: Remove file.
7454         * modules/crc (Files): Remove it.
7455         (configure.ac): Remove gl_CRC call.
7456         (Makefile.am): Augment lib_SOURCES.
7457
7458 2011-05-23  Bruno Haible  <bruno@clisp.org>
7459
7460         close-stream: Move AC_LIBOBJ invocations to module description.
7461         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7462         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7463
7464 2011-05-23  Bruno Haible  <bruno@clisp.org>
7465
7466         closeout: Move AC_LIBOBJ invocations to module description.
7467         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7468         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7469
7470 2011-05-23  Bruno Haible  <bruno@clisp.org>
7471
7472         closein: Move AC_LIBOBJ invocations to module description.
7473         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7474         * modules/closein (Makefile.am): Augment lib_SOURCES.
7475
7476 2011-05-23  Bruno Haible  <bruno@clisp.org>
7477
7478         cloexec: Move AC_LIBOBJ invocations to module description.
7479         * m4/cloexec.m4: Remove file.
7480         * modules/cloexec (Files): Remove it.
7481         (configure.ac): Remove gl_CLOEXEC call.
7482         (Makefile.am): Augment lib_SOURCES.
7483
7484 2011-05-23  Bruno Haible  <bruno@clisp.org>
7485
7486         check-version: Move AC_LIBOBJ invocations to module description.
7487         * m4/check-version.m4: Remove file.
7488         * modules/check-version (Files): Remove it.
7489         (configure.ac): Remove gl_CHECK_VERSION call.
7490         (Makefile.am): Augment lib_SOURCES.
7491
7492 2011-05-23  Bruno Haible  <bruno@clisp.org>
7493
7494         chdir-safer: Move AC_LIBOBJ invocations to module description.
7495         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7496         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7497
7498 2011-05-23  Bruno Haible  <bruno@clisp.org>
7499
7500         canonicalize: Move AC_LIBOBJ invocations to module description.
7501         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7502         AC_LIBOBJ invocation.
7503         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7504
7505 2011-05-23  Bruno Haible  <bruno@clisp.org>
7506
7507         canon-host: Move AC_LIBOBJ invocations to module description.
7508         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7509         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7510         instead of gl_CANON_HOST.
7511         (Makefile.am): Augment lib_SOURCES.
7512
7513 2011-05-23  Bruno Haible  <bruno@clisp.org>
7514
7515         backupfile: Move AC_LIBOBJ invocations to module description.
7516         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7517         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7518
7519 2011-05-23  Bruno Haible  <bruno@clisp.org>
7520
7521         argmatch: Move AC_LIBOBJ invocations to module description.
7522         * m4/argmatch.m4: Remove file.
7523         * modules/argmatch (Files): Remove it.
7524         (configure.ac): Remove gl_ARGMATCH call.
7525         (Makefile.am): Augment lib_SOURCES.
7526
7527 2011-05-23  Bruno Haible  <bruno@clisp.org>
7528
7529         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7530         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7531         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7532
7533 2011-05-23  Bruno Haible  <bruno@clisp.org>
7534
7535         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7536         * m4/arcfour.m4: Remove file.
7537         * modules/crypto/arcfour (Files): Remove it.
7538         (configure.ac): Remove gl_ARCFOUR call.
7539         (Makefile.am): Augment lib_SOURCES.
7540
7541 2011-05-22  Bruno Haible  <bruno@clisp.org>
7542
7543         write: Move AC_LIBOBJ invocations to module description.
7544         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7545         * modules/write (configure.ac): ... to here.
7546
7547 2011-05-22  Bruno Haible  <bruno@clisp.org>
7548
7549         wmemset: Move AC_LIBOBJ invocations to module description.
7550         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7551         here...
7552         * modules/wmemset (configure.ac): ... to here.
7553
7554 2011-05-22  Bruno Haible  <bruno@clisp.org>
7555
7556         wmemmove: Move AC_LIBOBJ invocations to module description.
7557         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7558         here...
7559         * modules/wmemmove (configure.ac): ... to here.
7560
7561 2011-05-22  Bruno Haible  <bruno@clisp.org>
7562
7563         wmemcpy: Move AC_LIBOBJ invocations to module description.
7564         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7565         here...
7566         * modules/wmemcpy (configure.ac): ... to here.
7567
7568 2011-05-22  Bruno Haible  <bruno@clisp.org>
7569
7570         wmemcmp: Move AC_LIBOBJ invocations to module description.
7571         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7572         here...
7573         * modules/wmemcmp (configure.ac): ... to here.
7574
7575 2011-05-22  Bruno Haible  <bruno@clisp.org>
7576
7577         wmemchr: Move AC_LIBOBJ invocations to module description.
7578         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7579         here...
7580         * modules/wmemchr (configure.ac): ... to here.
7581
7582 2011-05-22  Bruno Haible  <bruno@clisp.org>
7583
7584         wcswidth: Move AC_LIBOBJ invocations to module description.
7585         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7586         here...
7587         * modules/wcswidth (configure.ac): ... to here.
7588
7589 2011-05-22  Bruno Haible  <bruno@clisp.org>
7590
7591         wcwidth: Respect rules for use of AC_LIBOBJ.
7592         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7593         invocation from here...
7594         * modules/wcwidth (configure.ac): ... to here.
7595         (Depends-on): Update conditions.
7596
7597 2011-05-22  Bruno Haible  <bruno@clisp.org>
7598
7599         wctype: Move AC_LIBOBJ invocations to module description.
7600         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7601         invocation from here...
7602         * modules/wctype (configure.ac): ... to here.
7603         (Depends-on): Update conditions.
7604
7605 2011-05-22  Bruno Haible  <bruno@clisp.org>
7606
7607         wctrans: Move AC_LIBOBJ invocations to module description.
7608         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7609         invocation from here...
7610         * modules/wctrans (configure.ac): ... to here.
7611
7612 2011-05-22  Bruno Haible  <bruno@clisp.org>
7613
7614         wctomb: Move AC_LIBOBJ invocations to module description.
7615         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7616         invocations from here...
7617         * modules/wctomb (configure.ac): ... to here.
7618
7619 2011-05-22  Bruno Haible  <bruno@clisp.org>
7620
7621         wctob: Move AC_LIBOBJ invocations to module description.
7622         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7623         gl_PREREQ_WCTOB invocations from here...
7624         * modules/wctob (configure.ac): ... to here.
7625         (Depends-on): Update conditions.
7626
7627 2011-05-22  Bruno Haible  <bruno@clisp.org>
7628
7629         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7630         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7631         here...
7632         * modules/wcsxfrm (configure.ac): ... to here.
7633
7634 2011-05-22  Bruno Haible  <bruno@clisp.org>
7635
7636         wcstok: Move AC_LIBOBJ invocations to module description.
7637         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7638         * modules/wcstok (configure.ac): ... to here.
7639
7640 2011-05-22  Bruno Haible  <bruno@clisp.org>
7641
7642         wcsstr: Move AC_LIBOBJ invocations to module description.
7643         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7644         * modules/wcsstr (configure.ac): ... to here.
7645
7646 2011-05-22  Bruno Haible  <bruno@clisp.org>
7647
7648         wcsspn: Move AC_LIBOBJ invocations to module description.
7649         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7650         * modules/wcsspn (configure.ac): ... to here.
7651
7652 2011-05-22  Bruno Haible  <bruno@clisp.org>
7653
7654         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7655         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7656         gl_PREREQ_WCSRTOMBS invocations from here...
7657         * modules/wcsrtombs (configure.ac): ... to here.
7658
7659 2011-05-22  Bruno Haible  <bruno@clisp.org>
7660
7661         wcsrchr: Move AC_LIBOBJ invocations to module description.
7662         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7663         here...
7664         * modules/wcsrchr (configure.ac): ... to here.
7665
7666 2011-05-22  Bruno Haible  <bruno@clisp.org>
7667
7668         wcspbrk: Move AC_LIBOBJ invocations to module description.
7669         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7670         here...
7671         * modules/wcspbrk (configure.ac): ... to here.
7672
7673 2011-05-22  Bruno Haible  <bruno@clisp.org>
7674
7675         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7676         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7677         gl_PREREQ_WCSNRTOMBS invocations from here...
7678         * modules/wcsnrtombs (configure.ac): ... to here.
7679
7680 2011-05-22  Bruno Haible  <bruno@clisp.org>
7681
7682         wcsnlen: Move AC_LIBOBJ invocations to module description.
7683         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7684         here...
7685         * modules/wcsnlen (configure.ac): ... to here.
7686
7687 2011-05-22  Bruno Haible  <bruno@clisp.org>
7688
7689         wcsncpy: Move AC_LIBOBJ invocations to module description.
7690         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7691         here...
7692         * modules/wcsncpy (configure.ac): ... to here.
7693
7694 2011-05-22  Bruno Haible  <bruno@clisp.org>
7695
7696         wcsncmp: Move AC_LIBOBJ invocations to module description.
7697         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7698         here...
7699         * modules/wcsncmp (configure.ac): ... to here.
7700
7701 2011-05-22  Bruno Haible  <bruno@clisp.org>
7702
7703         wcsncat: Move AC_LIBOBJ invocations to module description.
7704         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7705         here...
7706         * modules/wcsncat (configure.ac): ... to here.
7707
7708 2011-05-22  Bruno Haible  <bruno@clisp.org>
7709
7710         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7711         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7712         from here...
7713         * modules/wcsncasecmp (configure.ac): ... to here.
7714
7715 2011-05-22  Bruno Haible  <bruno@clisp.org>
7716
7717         wcslen: Move AC_LIBOBJ invocations to module description.
7718         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7719         * modules/wcslen (configure.ac): ... to here.
7720
7721 2011-05-22  Bruno Haible  <bruno@clisp.org>
7722
7723         wcsdup: Move AC_LIBOBJ invocations to module description.
7724         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7725         * modules/wcsdup (configure.ac): ... to here.
7726
7727 2011-05-22  Bruno Haible  <bruno@clisp.org>
7728
7729         wcscspn: Move AC_LIBOBJ invocations to module description.
7730         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7731         here...
7732         * modules/wcscspn (configure.ac): ... to here.
7733
7734 2011-05-22  Bruno Haible  <bruno@clisp.org>
7735
7736         wcscpy: Move AC_LIBOBJ invocations to module description.
7737         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7738         * modules/wcscpy (configure.ac): ... to here.
7739
7740 2011-05-22  Bruno Haible  <bruno@clisp.org>
7741
7742         wcscoll: Move AC_LIBOBJ invocations to module description.
7743         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7744         here...
7745         * modules/wcscoll (configure.ac): ... to here.
7746
7747 2011-05-22  Bruno Haible  <bruno@clisp.org>
7748
7749         wcscmp: Move AC_LIBOBJ invocations to module description.
7750         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7751         * modules/wcscmp (configure.ac): ... to here.
7752
7753 2011-05-22  Bruno Haible  <bruno@clisp.org>
7754
7755         wcschr: Move AC_LIBOBJ invocations to module description.
7756         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7757         * modules/wcschr (configure.ac): ... to here.
7758
7759 2011-05-22  Bruno Haible  <bruno@clisp.org>
7760
7761         wcscat: Move AC_LIBOBJ invocations to module description.
7762         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7763         * modules/wcscat (configure.ac): ... to here.
7764
7765 2011-05-22  Bruno Haible  <bruno@clisp.org>
7766
7767         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7768         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7769         here...
7770         * modules/wcscasecmp (configure.ac): ... to here.
7771
7772 2011-05-22  Bruno Haible  <bruno@clisp.org>
7773
7774         wcrtomb: Move AC_LIBOBJ invocations to module description.
7775         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7776         invocations from here...
7777         * modules/wcrtomb (configure.ac): ... to here.
7778
7779 2011-05-22  Bruno Haible  <bruno@clisp.org>
7780
7781         wcpncpy: Move AC_LIBOBJ invocations to module description.
7782         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7783         here...
7784         * modules/wcpncpy (configure.ac): ... to here.
7785
7786 2011-05-22  Bruno Haible  <bruno@clisp.org>
7787
7788         wcpcpy: Move AC_LIBOBJ invocations to module description.
7789         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7790         * modules/wcpcpy (configure.ac): ... to here.
7791
7792 2011-05-22  Bruno Haible  <bruno@clisp.org>
7793
7794         waitpid: Move AC_LIBOBJ invocations to module description.
7795         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7796         invocation from here...
7797         * modules/waitpid (configure.ac): ... to here.
7798
7799 2011-05-22  Bruno Haible  <bruno@clisp.org>
7800
7801         utimensat: Move AC_LIBOBJ invocations to module description.
7802         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7803         here...
7804         * modules/utimensat (configure.ac): ... to here.
7805
7806 2011-05-22  Bruno Haible  <bruno@clisp.org>
7807
7808         usleep: Move AC_LIBOBJ invocations to module description.
7809         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7810         here...
7811         * modules/usleep (configure.ac): ... to here.
7812
7813 2011-05-22  Bruno Haible  <bruno@clisp.org>
7814
7815         unlockpt: Move AC_LIBOBJ invocations to module description.
7816         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7817         gl_PREREQ_UNLOCKPT invocations from here...
7818         * modules/unlockpt (configure.ac): ... to here.
7819
7820 2011-05-22  Bruno Haible  <bruno@clisp.org>
7821
7822         unlink: Respect rules for use of AC_LIBOBJ.
7823         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7824         * modules/unlink (configure.ac): ... to here.
7825
7826 2011-05-22  Bruno Haible  <bruno@clisp.org>
7827
7828         uname: Move AC_LIBOBJ invocations to module description.
7829         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7830         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7831         here...
7832         * modules/uname (configure.ac): ... to here.
7833
7834 2011-05-22  Bruno Haible  <bruno@clisp.org>
7835
7836         ttyname_r: Move AC_LIBOBJ invocations to module description.
7837         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7838         gl_PREREQ_TTYNAME_R invocations from here...
7839         * modules/ttyname_r (configure.ac): ... to here.
7840
7841 2011-05-22  Bruno Haible  <bruno@clisp.org>
7842
7843         tsearch: Move AC_LIBOBJ invocations to module description.
7844         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7845         invocations from here...
7846         * modules/tsearch (configure.ac): ... to here.
7847
7848 2011-05-22  Bruno Haible  <bruno@clisp.org>
7849
7850         towctrans: Move AC_LIBOBJ invocations to module description.
7851         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7852         AC_LIBOBJ invocation from here...
7853         * modules/towctrans (configure.ac): ... to here.
7854
7855 2011-05-22  Bruno Haible  <bruno@clisp.org>
7856
7857         tmpfile: Move AC_LIBOBJ invocations to module description.
7858         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7859         invocations from here...
7860         * modules/tmpfile (configure.ac): ... to here.
7861
7862 2011-05-22  Bruno Haible  <bruno@clisp.org>
7863
7864         times: Move AC_LIBOBJ invocations to module description.
7865         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7866         * modules/times (configure.ac): ... to here.
7867
7868 2011-05-22  Bruno Haible  <bruno@clisp.org>
7869
7870         time_r: Move AC_LIBOBJ invocations to module description.
7871         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7872         invocations from here...
7873         * modules/time_r (configure.ac): ... to here.
7874
7875 2011-05-22  Bruno Haible  <bruno@clisp.org>
7876
7877         timegm: Move AC_LIBOBJ invocations to module description.
7878         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7879         invocations from here...
7880         * modules/timegm (configure.ac): ... to here.
7881
7882 2011-05-22  Bruno Haible  <bruno@clisp.org>
7883
7884         tcgetsid: Move AC_LIBOBJ invocations to module description.
7885         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7886         and gl_PREREQ_TCGETSID invocations from here...
7887         * modules/tcgetsid (configure.ac): ... to here.
7888         (Depends-on): Update conditions.
7889
7890 2011-05-22  Bruno Haible  <bruno@clisp.org>
7891
7892         symlinkat: Move AC_LIBOBJ invocations to module description.
7893         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7894         here...
7895         * modules/symlinkat (configure.ac): ... to here.
7896
7897 2011-05-22  Bruno Haible  <bruno@clisp.org>
7898
7899         symlink: Move AC_LIBOBJ invocations to module description.
7900         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7901         here...
7902         * modules/symlink (configure.ac): ... to here.
7903
7904 2011-05-22  Bruno Haible  <bruno@clisp.org>
7905
7906         strverscmp: Move AC_LIBOBJ invocations to module description.
7907         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7908         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7909         from here...
7910         * modules/strverscmp (configure.ac): ... to here.
7911
7912 2011-05-22  Bruno Haible  <bruno@clisp.org>
7913
7914         strtok_r: Move AC_LIBOBJ invocations to module description.
7915         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7916         and gl_PREREQ_STRTOK_R invocations from here...
7917         * modules/strtok_r (configure.ac): ... to here.
7918         (Depends-on): Update conditions.
7919
7920 2011-05-22  Bruno Haible  <bruno@clisp.org>
7921
7922         strtoumax: Move AC_LIBOBJ invocations to module description.
7923         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7924         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7925         from here...
7926         * modules/strtoumax (configure.ac): ... to here.
7927
7928 2011-05-22  Bruno Haible  <bruno@clisp.org>
7929
7930         strtoimax: Move AC_LIBOBJ invocations to module description.
7931         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7932         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7933         from here...
7934         * modules/strtoimax (configure.ac): ... to here.
7935
7936 2011-05-22  Bruno Haible  <bruno@clisp.org>
7937
7938         strtoull: Move AC_LIBOBJ invocations to module description.
7939         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7940         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7941         from here...
7942         * modules/strtoull (configure.ac): ... to here.
7943
7944 2011-05-22  Bruno Haible  <bruno@clisp.org>
7945
7946         strtoll: Move AC_LIBOBJ invocations to module description.
7947         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7948         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7949         here...
7950         * modules/strtoll (configure.ac): ... to here.
7951
7952 2011-05-22  Bruno Haible  <bruno@clisp.org>
7953
7954         strtoul: Move AC_LIBOBJ invocations to module description.
7955         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7956         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7957         * modules/strtoul (configure.ac): ... to here.
7958
7959 2011-05-22  Bruno Haible  <bruno@clisp.org>
7960
7961         strtol: Move AC_LIBOBJ invocations to module description.
7962         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7963         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7964         * modules/strtol (configure.ac): ... to here.
7965
7966 2011-05-22  Bruno Haible  <bruno@clisp.org>
7967
7968         strtod: Move AC_LIBOBJ invocations to module description.
7969         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7970         invocations from here...
7971         * modules/strtod (configure.ac): ... to here.
7972
7973 2011-05-22  Bruno Haible  <bruno@clisp.org>
7974
7975         strstr*: Move AC_LIBOBJ invocations to module description.
7976         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7977         invocations from here...
7978         * modules/strstr-simple (configure.ac): ... to here.
7979         * modules/strstr (configure.ac): ... and here.
7980
7981 2011-05-22  Bruno Haible  <bruno@clisp.org>
7982
7983         strsignal: Move AC_LIBOBJ invocations to module description.
7984         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7985         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7986         * modules/strsignal (configure.ac): ... to here.
7987         (Depends-on): Update conditions.
7988
7989 2011-05-22  Bruno Haible  <bruno@clisp.org>
7990
7991         strsep: Move AC_LIBOBJ invocations to module description.
7992         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7993         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7994         here...
7995         * modules/strsep (configure.ac): ... to here.
7996
7997 2011-05-22  Bruno Haible  <bruno@clisp.org>
7998
7999         strptime: Move AC_LIBOBJ invocations to module description.
8000         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8001         gl_PREREQ_STRPTIME invocations from here...
8002         * modules/strptime (configure.ac): ... to here.
8003
8004 2011-05-22  Bruno Haible  <bruno@clisp.org>
8005
8006         strpbrk: Move AC_LIBOBJ invocations to module description.
8007         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8008         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8009         here...
8010         * modules/strpbrk (configure.ac): ... to here.
8011
8012 2011-05-22  Bruno Haible  <bruno@clisp.org>
8013
8014         strnlen: Move AC_LIBOBJ invocations to module description.
8015         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8016         invocations from here...
8017         * modules/strnlen (configure.ac): ... to here.
8018
8019 2011-05-22  Bruno Haible  <bruno@clisp.org>
8020
8021         strndup: Move AC_LIBOBJ invocations to module description.
8022         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8023         invocations from here...
8024         * modules/strndup (configure.ac): ... to here.
8025         (Depends-on): Update conditions.
8026
8027 2011-05-22  Bruno Haible  <bruno@clisp.org>
8028
8029         strncat: Move AC_LIBOBJ invocations to module description.
8030         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8031         invocations from here...
8032         * modules/strncat (configure.ac): ... to here.
8033
8034 2011-05-22  Bruno Haible  <bruno@clisp.org>
8035
8036         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8037         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8038         invocations from here...
8039         * modules/strdup (configure.ac): ... to here.
8040         * modules/strdup-posix (configure.ac): ... and here.
8041
8042 2011-05-22  Bruno Haible  <bruno@clisp.org>
8043
8044         strcspn: Move AC_LIBOBJ invocations to module description.
8045         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8046         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8047         here...
8048         * modules/strcspn (configure.ac): ... to here.
8049
8050 2011-05-22  Bruno Haible  <bruno@clisp.org>
8051
8052         strchrnul: Move AC_LIBOBJ invocations to module description.
8053         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8054         gl_PREREQ_STRCHRNUL invocations from here...
8055         * modules/strchrnul (configure.ac): ... to here.
8056
8057 2011-05-22  Bruno Haible  <bruno@clisp.org>
8058
8059         strcasestr*: Move AC_LIBOBJ invocations to module description.
8060         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8061         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8062         * modules/strcasestr-simple (configure.ac): ... to here.
8063         * modules/strcasestr (configure.ac): ... and here.
8064
8065 2011-05-22  Bruno Haible  <bruno@clisp.org>
8066
8067         strcase: Move AC_LIBOBJ invocations to module description.
8068         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8069         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8070         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8071         gl_PREREQ_STRNCASECMP invocations from here...
8072         * modules/strcase (configure.ac): ... to here.
8073
8074 2011-05-22  Bruno Haible  <bruno@clisp.org>
8075
8076         stpncpy: Move AC_LIBOBJ invocations to module description.
8077         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8078         here...
8079         * modules/stpncpy (configure.ac): ... to here.
8080
8081 2011-05-22  Bruno Haible  <bruno@clisp.org>
8082
8083         stpcpy: Move AC_LIBOBJ invocations to module description.
8084         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8085         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8086         here...
8087         * modules/stpcpy (configure.ac): ... to here.
8088
8089 2011-05-21  Bruno Haible  <bruno@clisp.org>
8090
8091         stat: Move AC_LIBOBJ invocations to module description.
8092         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8093         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8094         here...
8095         * modules/stat (configure.ac): ... to here.
8096
8097 2011-05-21  Bruno Haible  <bruno@clisp.org>
8098
8099         sleep: Move AC_LIBOBJ invocations to module description.
8100         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8101         * modules/sleep (configure.ac): ... to here.
8102
8103 2011-05-21  Bruno Haible  <bruno@clisp.org>
8104
8105         signbit: Move AC_LIBOBJ invocations to module description.
8106         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8107         * modules/signbit (configure.ac): ... to here.
8108
8109 2011-05-21  Bruno Haible  <bruno@clisp.org>
8110
8111         sigprocmask: Move AC_LIBOBJ invocations to module description.
8112         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8113         gl_PREREQ_SIGPROMASK invocations from here...
8114         * modules/sigprocmask (configure.ac): ... to here.
8115
8116 2011-05-21  Bruno Haible  <bruno@clisp.org>
8117
8118         sigaction: Move AC_LIBOBJ invocations to module description.
8119         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8120         gl_PREREQ_SIGACTION invocations from here...
8121         * modules/sigaction (configure.ac): ... to here.
8122
8123 2011-05-21  Bruno Haible  <bruno@clisp.org>
8124
8125         sig2str: Move AC_LIBOBJ invocations to module description.
8126         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8127         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8128         here...
8129         * modules/sig2str (configure.ac): ... to here.
8130
8131 2011-05-21  Bruno Haible  <bruno@clisp.org>
8132
8133         setlocale: Move AC_LIBOBJ invocations to module description.
8134         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8135         gl_PREREQ_SETLOCALE invocations from here...
8136         * modules/setlocale (configure.ac): ... to here.
8137
8138 2011-05-21  Bruno Haible  <bruno@clisp.org>
8139
8140         unsetenv: Move AC_LIBOBJ invocations to module description.
8141         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8142         and gl_PREREQ_UNSETENV invocations from here...
8143         * modules/unsetenv (configure.ac): ... to here.
8144         (Depends-on): Update.
8145
8146 2011-05-21  Bruno Haible  <bruno@clisp.org>
8147
8148         setenv: Move AC_LIBOBJ invocations to module description.
8149         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8150         here...
8151         * modules/setenv (configure.ac): ... to here.
8152
8153 2011-05-21  Bruno Haible  <bruno@clisp.org>
8154
8155         selinux-h: Move AC_LIBOBJ invocations to module description.
8156         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8157         AC_LIBOBJ invocation from here...
8158         * modules/selinux-h (configure.ac): ... to here.
8159
8160 2011-05-21  Bruno Haible  <bruno@clisp.org>
8161
8162         select: Respect rules for use of AC_LIBOBJ.
8163         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8164         here...
8165         * modules/select (configure.ac): ... to here.
8166
8167 2011-05-21  Bruno Haible  <bruno@clisp.org>
8168
8169         scandir: Move AC_LIBOBJ invocations to module description.
8170         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8171         invocations from here...
8172         * modules/scandir (configure.ac): ... to here.
8173
8174 2011-05-21  Bruno Haible  <bruno@clisp.org>
8175
8176         rpmatch: Move AC_LIBOBJ invocations to module description.
8177         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8178         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8179         here...
8180         * modules/rpmatch (configure.ac): ... to here.
8181
8182 2011-05-21  Bruno Haible  <bruno@clisp.org>
8183
8184         rmdir: Respect rules for use of AC_LIBOBJ.
8185         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8186         * modules/rmdir (configure.ac): ... to here.
8187
8188 2011-05-21  Bruno Haible  <bruno@clisp.org>
8189
8190         renameat: Move AC_LIBOBJ invocations to module description.
8191         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8192         here...
8193         * modules/renameat (configure.ac): ... to here.
8194
8195 2011-05-21  Bruno Haible  <bruno@clisp.org>
8196
8197         rename: Respect rules for use of AC_LIBOBJ.
8198         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8199         here...
8200         * modules/rename (configure.ac): ... to here.
8201
8202 2011-05-21  Bruno Haible  <bruno@clisp.org>
8203
8204         remove: Move AC_LIBOBJ invocations to module description.
8205         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8206         here...
8207         * modules/remove (configure.ac): ... to here.
8208
8209 2011-05-21  Bruno Haible  <bruno@clisp.org>
8210
8211         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8212         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8213         macro.
8214         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8215         * modules/relocatable-lib (configure.ac): ... to here.
8216         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8217         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8218
8219 2011-05-21  Bruno Haible  <bruno@clisp.org>
8220
8221         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8222         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8223         here...
8224         * modules/relocatable-prog (configure.ac): ... to here.
8225
8226 2011-05-21  Bruno Haible  <bruno@clisp.org>
8227
8228         regex: Move AC_LIBOBJ invocations to module description.
8229         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8230         invocations from here...
8231         * modules/regex (configure.ac): ... to here.
8232
8233 2011-05-21  Bruno Haible  <bruno@clisp.org>
8234
8235         realloc-*: Move AC_LIBOBJ invocations to module description.
8236         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8237         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8238         AC_LIBOBJ invocations from here...
8239         * modules/realloc-gnu (configure.ac): ... to here.
8240         * modules/realloc-posix (configure.ac): ... and here.
8241
8242 2011-05-21  Bruno Haible  <bruno@clisp.org>
8243
8244         readutmp: Move AC_LIBOBJ invocations to module description.
8245         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8246         * modules/readutmp (configure.ac): ... to here.
8247
8248 2011-05-21  Bruno Haible  <bruno@clisp.org>
8249
8250         readlinkat: Move AC_LIBOBJ invocations to module description.
8251         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8252         here...
8253         * modules/readlinkat (configure.ac): ... to here.
8254
8255 2011-05-21  Bruno Haible  <bruno@clisp.org>
8256
8257         readlink: Move AC_LIBOBJ invocations to module description.
8258         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8259         gl_PREREQ_READLINK invocations from here...
8260         * modules/readlink (configure.ac): ... to here.
8261
8262 2011-05-21  Bruno Haible  <bruno@clisp.org>
8263
8264         readline: Move AC_LIBOBJ invocations to module description.
8265         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8266         gl_PREREQ_READLINE invocations from here...
8267         * modules/readline (configure.ac): ... to here.
8268
8269 2011-05-21  Bruno Haible  <bruno@clisp.org>
8270
8271         read: Move AC_LIBOBJ invocations to module description.
8272         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8273         * modules/read (configure.ac): ... to here.
8274
8275 2011-05-21  Bruno Haible  <bruno@clisp.org>
8276
8277         rawmemchr: Move AC_LIBOBJ invocations to module description.
8278         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8279         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8280         from here...
8281         * modules/rawmemchr (configure.ac): ... to here.
8282
8283 2011-05-21  Bruno Haible  <bruno@clisp.org>
8284
8285         random_r: Move AC_LIBOBJ invocations to module description.
8286         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8287         gl_PREREQ_RANDOM_R invocations from here...
8288         * modules/random_r (configure.ac): ... to here.
8289
8290 2011-05-21  Bruno Haible  <bruno@clisp.org>
8291
8292         pwrite: Move AC_LIBOBJ invocations to module description.
8293         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8294         * modules/pwrite (configure.ac): ... to here.
8295
8296 2011-05-21  Bruno Haible  <bruno@clisp.org>
8297
8298         putenv: Move AC_LIBOBJ invocations to module description.
8299         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8300         * modules/putenv (configure.ac): ... to here.
8301
8302 2011-05-21  Bruno Haible  <bruno@clisp.org>
8303
8304         login_tty: Move AC_LIBOBJ invocations to module description.
8305         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8306         * modules/login_tty (configure.ac): ... to here.
8307
8308 2011-05-21  Bruno Haible  <bruno@clisp.org>
8309
8310         openpty: Move AC_LIBOBJ invocations to module description.
8311         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8312         * modules/openpty (configure.ac): ... to here.
8313
8314 2011-05-21  Bruno Haible  <bruno@clisp.org>
8315
8316         forkpty: Move AC_LIBOBJ invocations to module description.
8317         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8318         * modules/forkpty (configure.ac): ... to here.
8319
8320 2011-05-21  Bruno Haible  <bruno@clisp.org>
8321
8322         ptsname: Move AC_LIBOBJ invocations to module description.
8323         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8324         invocations from here...
8325         * modules/ptsname (configure.ac): ... to here.
8326
8327 2011-05-21  Bruno Haible  <bruno@clisp.org>
8328
8329         pread: Move AC_LIBOBJ invocations to module description.
8330         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8331         * modules/pread (configure.ac): ... to here.
8332
8333 2011-05-21  Bruno Haible  <bruno@clisp.org>
8334
8335         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8336         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8337         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8338         * modules/posix_spawn (configure.ac): ... to here.
8339         * modules/posix_spawnp (configure.ac): ... and here.
8340
8341 2011-05-21  Bruno Haible  <bruno@clisp.org>
8342
8343         popen: Move AC_LIBOBJ invocations to module description.
8344         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8345         invocations from here...
8346         * modules/popen (configure.ac): ... to here.
8347
8348 2011-05-21  Bruno Haible  <bruno@clisp.org>
8349
8350         poll: Move AC_LIBOBJ invocations to module description.
8351         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8352         invocations from here...
8353         * modules/poll (configure.ac): ... to here.
8354
8355 2011-05-21  Bruno Haible  <bruno@clisp.org>
8356
8357         pipe-posix: Move AC_LIBOBJ invocations to module description.
8358         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8359         * modules/pipe-posix (configure.ac): ... to here.
8360
8361 2011-05-21  Bruno Haible  <bruno@clisp.org>
8362
8363         openat: Respect rules for use of AC_LIBOBJ.
8364         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8365         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8366         * modules/openat (configure.ac): ... to here.
8367
8368 2011-05-21  Bruno Haible  <bruno@clisp.org>
8369
8370         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8371         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8372         invocation from here...
8373         * modules/obstack-printf (configure.ac): ... to here.
8374         * modules/obstack-printf-posix (configure.ac): ... and here.
8375
8376 2011-05-21  Bruno Haible  <bruno@clisp.org>
8377
8378         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8379         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8380         from here...
8381         * modules/nl_langinfo (configure.ac): ... to here.
8382
8383 2011-05-21  Bruno Haible  <bruno@clisp.org>
8384
8385         nanosleep: Move AC_LIBOBJ invocations to module description.
8386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8387         gl_PREREQ_NANOSLEEP invocations from here...
8388         * modules/nanosleep (configure.ac): ... to here.
8389
8390 2011-05-21  Bruno Haible  <bruno@clisp.org>
8391
8392         mountlist: Move AC_LIBOBJ invocations to module description.
8393         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8394         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8395         * modules/mountlist (configure.ac): ... to here.
8396
8397 2011-05-21  Bruno Haible  <bruno@clisp.org>
8398
8399         mktime: Respect rules for use of AC_LIBOBJ.
8400         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8401         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8402         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8403         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8404         * modules/mktime (configure.ac): ... to here.
8405         * modules/mktime-internal (configure.ac): ... and here.
8406         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8407
8408 2011-05-21  Bruno Haible  <bruno@clisp.org>
8409
8410         mkstemps: Move AC_LIBOBJ invocations to module description.
8411         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8412         here...
8413         * modules/mkstemps (configure.ac): ... to here.
8414
8415 2011-05-21  Bruno Haible  <bruno@clisp.org>
8416
8417         mkstemp: Move AC_LIBOBJ invocations to module description.
8418         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8419         gl_PREREQ_MKSTEMP invocations from here...
8420         * modules/mkstemp (configure.ac): ... to here.
8421
8422 2011-05-21  Bruno Haible  <bruno@clisp.org>
8423
8424         mkostemps: Move AC_LIBOBJ invocations to module description.
8425         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8426         here...
8427         * modules/mkostemps (configure.ac): ... to here.
8428
8429 2011-05-21  Bruno Haible  <bruno@clisp.org>
8430
8431         mkostemp: Move AC_LIBOBJ invocations to module description.
8432         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8433         gl_PREREQ_MKOSTEMP invocations from here...
8434         * modules/mkostemp (configure.ac): ... to here.
8435
8436 2011-05-21  Bruno Haible  <bruno@clisp.org>
8437
8438         mknod: Move AC_LIBOBJ invocations to module description.
8439         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8440         * modules/mknod (configure.ac): ... to here.
8441
8442 2011-05-21  Bruno Haible  <bruno@clisp.org>
8443
8444         mkfifoat: Move AC_LIBOBJ invocations to module description.
8445         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8446         here...
8447         * modules/mkfifoat (configure.ac): ... to here.
8448
8449 2011-05-21  Bruno Haible  <bruno@clisp.org>
8450
8451         mkfifo: Respect rules for use of AC_LIBOBJ.
8452         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8453         here...
8454         * modules/mkfifo (configure.ac): ... to here.
8455
8456 2011-05-21  Bruno Haible  <bruno@clisp.org>
8457
8458         mkdtemp: Move AC_LIBOBJ invocations to module description.
8459         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8460         invocations from here...
8461         * modules/mkdtemp (configure.ac): ... to here.
8462
8463 2011-05-21  Bruno Haible  <bruno@clisp.org>
8464
8465         mkdir: Move AC_LIBOBJ invocations to module description.
8466         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8467         * modules/mkdir (configure.ac): ... to here.
8468
8469 2011-05-21  Bruno Haible  <bruno@clisp.org>
8470
8471         memset: Move AC_LIBOBJ invocations to module description.
8472         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8473         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8474         here...
8475         * modules/memset (configure.ac): ... to here.
8476
8477 2011-05-21  Bruno Haible  <bruno@clisp.org>
8478
8479         memrchr: Move AC_LIBOBJ invocations to module description.
8480         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8481         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8482         here...
8483         * modules/memrchr (configure.ac): ... to here.
8484
8485 2011-05-21  Bruno Haible  <bruno@clisp.org>
8486
8487         mempcpy: Move AC_LIBOBJ invocations to module description.
8488         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8489         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8490         here...
8491         * modules/mempcpy (configure.ac): ... to here.
8492
8493 2011-05-21  Bruno Haible  <bruno@clisp.org>
8494
8495         memmove: Move AC_LIBOBJ invocations to module description.
8496         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8497         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8498         here...
8499         * modules/memmove (configure.ac): ... to here.
8500
8501 2011-05-21  Bruno Haible  <bruno@clisp.org>
8502
8503         memmem*: Move AC_LIBOBJ invocations to module description.
8504         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8505         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8506         here...
8507         (gl_FUNC_MEMMEM): ... and here...
8508         * modules/memmem-simple (configure.ac): ... to here.
8509         * modules/memmem (configure.ac): ... and here.
8510
8511 2011-05-21  Bruno Haible  <bruno@clisp.org>
8512
8513         memcpy: Move AC_LIBOBJ invocations to module description.
8514         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8515         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8516         here...
8517         * modules/memcpy (configure.ac): ... to here.
8518
8519 2011-05-21  Bruno Haible  <bruno@clisp.org>
8520
8521         memcmp: Simplify autoconf macro.
8522         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8523         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8524         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8525
8526 2011-05-21  Bruno Haible  <bruno@clisp.org>
8527
8528         memcmp: Move AC_LIBOBJ invocations to module description.
8529         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8530         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8531         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8532         * modules/memcmp (configure.ac): ... to here.
8533         (Depends-on): Update conditions.
8534
8535 2011-05-21  Bruno Haible  <bruno@clisp.org>
8536
8537         memchr: Respect rules for use of AC_LIBOBJ.
8538         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8539         invocations from here...
8540         * modules/memchr (configure.ac): ... to here.
8541
8542 2011-05-21  Bruno Haible  <bruno@clisp.org>
8543
8544         mbtowc: Move AC_LIBOBJ invocations to module description.
8545         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8546         invocations from here...
8547         * modules/mbtowc (configure.ac): ... to here.
8548
8549 2011-05-21  Bruno Haible  <bruno@clisp.org>
8550
8551         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8552         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8553         gl_PREREQ_MBSRTOWCS invocations from here...
8554         * modules/mbsrtowcs (configure.ac): ... to here.
8555
8556 2011-05-21  Bruno Haible  <bruno@clisp.org>
8557
8558         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8559         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8560         gl_PREREQ_MBSNRTOWCS invocations from here...
8561         * modules/mbsnrtowcs (configure.ac): ... to here.
8562
8563 2011-05-21  Bruno Haible  <bruno@clisp.org>
8564
8565         mbsinit: Move AC_LIBOBJ invocations to module description.
8566         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8567         invocations from here...
8568         * modules/mbsinit (configure.ac): ... to here.
8569
8570 2011-05-21  Bruno Haible  <bruno@clisp.org>
8571
8572         mbrlen: Move AC_LIBOBJ invocations to module description.
8573         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8574         invocations from here...
8575         * modules/mbrlen (configure.ac): ... to here.
8576
8577 2011-05-21  Bruno Haible  <bruno@clisp.org>
8578
8579         mbrtowc: Respect rules for use of AC_LIBOBJ.
8580         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8581         invocations from here...
8582         * modules/mbrtowc (configure.ac): ... to here.
8583
8584 2011-05-21  Bruno Haible  <bruno@clisp.org>
8585
8586         malloc-*: Move AC_LIBOBJ invocations to module description.
8587         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8588         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8589         AC_LIBOBJ invocations from here...
8590         * modules/malloc-gnu (configure.ac): ... to here.
8591         * modules/malloc-posix (configure.ac): ... and here.
8592
8593 2011-05-21  Bruno Haible  <bruno@clisp.org>
8594
8595         lstat, openat: Respect rules for use of AC_LIBOBJ.
8596         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8597         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8598         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8599         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8600         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8601         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8602         here.
8603         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8604
8605 2011-05-21  Bruno Haible  <bruno@clisp.org>
8606
8607         lseek: Move AC_LIBOBJ invocations to module description.
8608         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8609         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8610         * modules/lseek (configure.ac): ... to here.
8611
8612 2011-05-21  Bruno Haible  <bruno@clisp.org>
8613
8614         linkat: Move AC_LIBOBJ invocations to module description.
8615         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8616         here...
8617         * modules/linkat (configure.ac): ... to here.
8618
8619 2011-05-21  Bruno Haible  <bruno@clisp.org>
8620
8621         link: Respect rules for use of AC_LIBOBJ.
8622         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8623         * modules/link (configure.ac): ... to here.
8624
8625 2011-05-21  Bruno Haible  <bruno@clisp.org>
8626
8627         lchown: Move AC_LIBOBJ invocations to module description.
8628         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8629         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8630         * modules/lchown (configure.ac): ... to here.
8631
8632 2011-05-21  Bruno Haible  <bruno@clisp.org>
8633
8634         iswctype: Move AC_LIBOBJ invocations to module description.
8635         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8636         here...
8637         * modules/iswctype (configure.ac): ... to here.
8638
8639 2011-05-21  Bruno Haible  <bruno@clisp.org>
8640
8641         iswblank: Move AC_LIBOBJ invocations to module description.
8642         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8643         here...
8644         * modules/iswblank (configure.ac): ... to here.
8645
8646 2011-05-21  Bruno Haible  <bruno@clisp.org>
8647
8648         atanl: Move AC_LIBOBJ invocations to module description.
8649         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8650         * modules/atanl (configure.ac): ... to here.
8651
8652 2011-05-21  Bruno Haible  <bruno@clisp.org>
8653
8654         acosl: Move AC_LIBOBJ invocations to module description.
8655         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8656         * modules/acosl (configure.ac): ... to here.
8657
8658 2011-05-21  Bruno Haible  <bruno@clisp.org>
8659
8660         asinl: Respect rules for use of AC_LIBOBJ.
8661         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8662         * modules/asinl (configure.ac): ... to here.
8663
8664 2011-05-21  Bruno Haible  <bruno@clisp.org>
8665
8666         tanl: Move AC_LIBOBJ invocations to module description.
8667         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8668         * modules/tanl (configure.ac): ... to here.
8669
8670 2011-05-21  Bruno Haible  <bruno@clisp.org>
8671
8672         cosl: Move AC_LIBOBJ invocations to module description.
8673         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8674         * modules/cosl (configure.ac): ... to here.
8675
8676 2011-05-21  Bruno Haible  <bruno@clisp.org>
8677
8678         sinl: Move AC_LIBOBJ invocations to module description.
8679         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8680         * modules/sinl (configure.ac): ... to here.
8681
8682 2011-05-21  Bruno Haible  <bruno@clisp.org>
8683
8684         logl: Move AC_LIBOBJ invocations to module description.
8685         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8686         * modules/logl (configure.ac): ... to here.
8687
8688 2011-05-21  Bruno Haible  <bruno@clisp.org>
8689
8690         expl: Move AC_LIBOBJ invocations to module description.
8691         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8692         * modules/expl (configure.ac): ... to here.
8693
8694 2011-05-21  Bruno Haible  <bruno@clisp.org>
8695
8696         roundl: Move AC_LIBOBJ invocations to module description.
8697         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8698         * modules/roundl (configure.ac): ... to here.
8699
8700 2011-05-21  Bruno Haible  <bruno@clisp.org>
8701
8702         round: Move AC_LIBOBJ invocations to module description.
8703         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8704         * modules/round (configure.ac): ... to here.
8705
8706 2011-05-21  Bruno Haible  <bruno@clisp.org>
8707
8708         roundf: Move AC_LIBOBJ invocations to module description.
8709         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8710         * modules/roundf (configure.ac): ... to here.
8711
8712 2011-05-21  Bruno Haible  <bruno@clisp.org>
8713
8714         truncl: Move AC_LIBOBJ invocations to module description.
8715         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8716         * modules/truncl (configure.ac): ... to here.
8717
8718 2011-05-21  Bruno Haible  <bruno@clisp.org>
8719
8720         trunc: Move AC_LIBOBJ invocations to module description.
8721         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8722         * modules/trunc (configure.ac): ... to here.
8723
8724 2011-05-21  Bruno Haible  <bruno@clisp.org>
8725
8726         truncf: Move AC_LIBOBJ invocations to module description.
8727         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8728         * modules/truncf (configure.ac): ... to here.
8729
8730 2011-05-21  Bruno Haible  <bruno@clisp.org>
8731
8732         ceill: Move AC_LIBOBJ invocations to module description.
8733         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8734         * modules/ceill (configure.ac): ... to here.
8735
8736 2011-05-21  Bruno Haible  <bruno@clisp.org>
8737
8738         ceil: Move AC_LIBOBJ invocations to module description.
8739         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8740         * modules/ceil (configure.ac): ... to here.
8741
8742 2011-05-21  Bruno Haible  <bruno@clisp.org>
8743
8744         ceilf: Move AC_LIBOBJ invocations to module description.
8745         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8746         * modules/ceilf (configure.ac): ... to here.
8747
8748 2011-05-21  Bruno Haible  <bruno@clisp.org>
8749
8750         floorl: Respect rules for use of AC_LIBOBJ.
8751         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8752         * modules/floorl (configure.ac): ... to here.
8753
8754 2011-05-21  Bruno Haible  <bruno@clisp.org>
8755
8756         floor: Respect rules for use of AC_LIBOBJ.
8757         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8758         * modules/floor (configure.ac): ... to here.
8759
8760 2011-05-21  Bruno Haible  <bruno@clisp.org>
8761
8762         floorf: Move AC_LIBOBJ invocations to module description.
8763         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8764         * modules/floorf (configure.ac): ... to here.
8765
8766 2011-05-20  Bruno Haible  <bruno@clisp.org>
8767
8768         sqrtl: Respect rules for use of AC_LIBOBJ.
8769         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8770         * modules/sqrtl (configure.ac): ... to here.
8771
8772 2011-05-20  Bruno Haible  <bruno@clisp.org>
8773
8774         ldexpl: Respect rules for use of AC_LIBOBJ.
8775         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8776         * modules/ldexpl (configure.ac): ... to here.
8777
8778 2011-05-20  Bruno Haible  <bruno@clisp.org>
8779
8780         frexpl*: Respect rules for use of AC_LIBOBJ.
8781         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8782         invocation from here...
8783         * modules/frexpl (configure.ac): ... to here.
8784         * modules/frexpl-nolibm (configure.ac): ... and here.
8785
8786 2011-05-20  Bruno Haible  <bruno@clisp.org>
8787
8788         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8789         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8790         invocation from here...
8791         * modules/frexp (configure.ac): ... to here.
8792         * modules/frexp-nolibm (configure.ac): ... and here.
8793
8794 2011-05-20  Bruno Haible  <bruno@clisp.org>
8795
8796         isnan: Respect rules for use of AC_LIBOBJ.
8797         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8798         invocations here.
8799         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8800         REPLACE_ISNAN.
8801         * modules/isnand (configure.ac): Likewise.
8802         * modules/isnanl (configure.ac): Likewise.
8803
8804 2011-05-20  Bruno Haible  <bruno@clisp.org>
8805
8806         isnanl*: Respect rules for use of AC_LIBOBJ.
8807         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8808         invocation from here...
8809         * modules/isnanl (configure.ac): ... to here.
8810         * modules/isnanl-nolibm (configure.ac): ... and here.
8811
8812 2011-05-20  Bruno Haible  <bruno@clisp.org>
8813
8814         isnand*: Move AC_LIBOBJ invocations to module description.
8815         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8816         invocation from here...
8817         * modules/isnand (configure.ac): ... to here.
8818         * modules/isnand-nolibm (configure.ac): ... and here.
8819
8820 2011-05-20  Bruno Haible  <bruno@clisp.org>
8821
8822         isnanf*: Move AC_LIBOBJ invocations to module description.
8823         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8824         invocation from here...
8825         * modules/isnanf (configure.ac): ... to here.
8826         * modules/isnanf-nolibm (configure.ac): ... and here.
8827
8828 2011-05-20  Bruno Haible  <bruno@clisp.org>
8829
8830         isnan*: Separate the AC_LIBOBJ invocations.
8831         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8832         AC_LIBOBJ invocation.
8833         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8834         here.
8835         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8836         AC_LIBOBJ invocation.
8837         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8838         here.
8839         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8840         AC_LIBOBJ invocation.
8841         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8842         here.
8843         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8844
8845 2011-05-08  Bruno Haible  <bruno@clisp.org>
8846
8847         isinf: Move AC_LIBOBJ invocations to module description.
8848         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8849         * modules/isinf (configure.ac): ... to here.
8850
8851 2011-05-08  Bruno Haible  <bruno@clisp.org>
8852
8853         isfinite: Move AC_LIBOBJ invocations to module description.
8854         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8855         * modules/isfinite (configure.ac): ... to here.
8856
8857 2011-05-08  Bruno Haible  <bruno@clisp.org>
8858
8859         isblank: Move AC_LIBOBJ invocations to module description.
8860         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8861         here...
8862         * modules/isblank (configure.ac): ... to here.
8863
8864 2011-05-08  Bruno Haible  <bruno@clisp.org>
8865
8866         isapipe: Move AC_LIBOBJ invocations to module description.
8867         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8868         gl_PREREQ_ISAPIPE invocations from here...
8869         * modules/isapipe (configure.ac): ... to here.
8870         (Depends-on): Update condition.
8871
8872 2011-05-08  Bruno Haible  <bruno@clisp.org>
8873
8874         ioctl: Move AC_LIBOBJ invocations to module description.
8875         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8876         invocations from here...
8877         * modules/ioctl (configure.ac): ... to here.
8878         (Depends-on): Update condition.
8879
8880 2011-05-08  Bruno Haible  <bruno@clisp.org>
8881
8882         imaxdiv: Move AC_LIBOBJ invocations to module description.
8883         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8884         invocations from here...
8885         * modules/imaxdiv (configure.ac): ... to here.
8886
8887 2011-05-08  Bruno Haible  <bruno@clisp.org>
8888
8889         imaxabs: Move AC_LIBOBJ invocations to module description.
8890         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8891         invocations from here...
8892         * modules/imaxabs (configure.ac): ... to here.
8893
8894 2011-05-08  Bruno Haible  <bruno@clisp.org>
8895
8896         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8897         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8898         AC_LIBOBJ invocations from here...
8899         * modules/getaddrinfo (configure.ac): ... to here.
8900         (Depends-on): Add conditions.
8901
8902 2011-05-08  Bruno Haible  <bruno@clisp.org>
8903
8904         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8905         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8906         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8907         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8908         (gl_PREREQ_INET_PTON): ... from here.
8909         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8910         gl_PREREQ_INET_PTON here.
8911         (Depends-on): Update condition.
8912
8913 2011-05-08  Bruno Haible  <bruno@clisp.org>
8914
8915         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8916         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8917         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8918         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8919         (gl_PREREQ_INET_NTOP): ... from here.
8920         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8921         gl_PREREQ_INET_NTOP here.
8922         (Depends-on): Update condition.
8923
8924 2011-05-08  Bruno Haible  <bruno@clisp.org>
8925
8926         iconv_open: Move AC_LIBOBJ invocations to module description.
8927         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8928         AC_LIBOBJ invocations from here...
8929         * modules/iconv_open (configure.ac): ... to here.
8930
8931 2011-05-08  Bruno Haible  <bruno@clisp.org>
8932
8933         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8934         If module 'iconv_open' is among the main modules and module
8935         'iconv_open-utf' is among the tests dependencies, then
8936         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8937         return the special iconv_t values. Therefore iconv() and iconv_close()
8938         must support these special iconv_t values, already in lib, not only in
8939         tests.
8940         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8941         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8942         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8943         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8944         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8945         (Depends-on): Add the dependencies of iconv_open-utf.
8946         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8947         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8948         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8949
8950 2011-05-08  Bruno Haible  <bruno@clisp.org>
8951
8952         group-member: Move AC_LIBOBJ invocations to module description.
8953         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8954         gl_PREREQ_GROUP_MEMBER invocations from here...
8955         * modules/group-member (configure.ac): ... to here.
8956
8957 2011-05-08  Bruno Haible  <bruno@clisp.org>
8958
8959         grantpt: Move AC_LIBOBJ invocations to module description.
8960         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8961         invocations from here...
8962         * modules/grantpt (configure.ac): ... to here.
8963
8964 2011-05-08  Bruno Haible  <bruno@clisp.org>
8965
8966         glob: Move AC_LIBOBJ invocations to module description.
8967         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8968         from here...
8969         * modules/glob (configure.ac): ... to here.
8970
8971 2011-05-08  Bruno Haible  <bruno@clisp.org>
8972
8973         getusershell: Move AC_LIBOBJ invocations to module description.
8974         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8975         Move AC_LIBOBJ invocation from here...
8976         * modules/getusershell (configure.ac): ... to here.
8977         (Depends-on): Update condition.
8978
8979 2011-05-08  Bruno Haible  <bruno@clisp.org>
8980
8981         gettimeofday: Move AC_LIBOBJ invocations to module description.
8982         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8983         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8984         gl_PREREQ_GETTIMEOFDAY invocations from here...
8985         * modules/gettimeofday (configure.ac): ... to here.
8986
8987 2011-05-08  Bruno Haible  <bruno@clisp.org>
8988
8989         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8990         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8991         just gl_FUNC_TZSET.
8992         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8993         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8994         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8995         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8996
8997 2011-05-08  Bruno Haible  <bruno@clisp.org>
8998
8999         getsubopt: Move AC_LIBOBJ invocations to module description.
9000         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9001         gl_PREREQ_GETSUBOPT invocations from here...
9002         * modules/getsubopt (configure.ac): ... to here.
9003
9004 2011-05-08  Bruno Haible  <bruno@clisp.org>
9005
9006         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9007         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9008         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9009         * modules/getpass-gnu (configure.ac): ... to here.
9010
9011 2011-05-08  Bruno Haible  <bruno@clisp.org>
9012
9013         getpass: Move AC_LIBOBJ invocations to module description.
9014         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9015         gl_PREREQ_GETPASS invocations from here...
9016         * modules/getpass (configure.ac): ... to here.
9017
9018 2011-05-08  Bruno Haible  <bruno@clisp.org>
9019
9020         getpagesize: Move AC_LIBOBJ invocations to module description.
9021         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9022         from here...
9023         * modules/getpagesize (configure.ac): ... to here.
9024
9025 2011-05-08  Bruno Haible  <bruno@clisp.org>
9026
9027         getopt: Move AC_LIBOBJ invocations to module description.
9028         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9029         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9030         invocations from here...
9031         * modules/getopt-gnu (configure.ac): ... to here.
9032         * modules/getopt-posix (configure.ac): ... and here.
9033         (Depends-on): Update condition.
9034
9035 2011-05-08  Bruno Haible  <bruno@clisp.org>
9036
9037         getopt, argp: Respect rules for use of AC_LIBOBJ.
9038         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9039         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9040         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9041         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9042
9043 2011-05-08  Bruno Haible  <bruno@clisp.org>
9044
9045         getlogin_r: Move AC_LIBOBJ invocations to module description.
9046         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9047         gl_PREREQ_GETLOGIN_R invocations from here...
9048         * modules/getlogin_r (configure.ac): ... to here.
9049
9050 2011-05-08  Bruno Haible  <bruno@clisp.org>
9051
9052         getlogin: Move AC_LIBOBJ invocations to module description.
9053         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9054         here...
9055         * modules/getlogin (configure.ac): ... to here.
9056
9057 2011-05-08  Bruno Haible  <bruno@clisp.org>
9058
9059         getloadavg: Move AC_LIBOBJ invocations to module description.
9060         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9061         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9062         * modules/getloadavg (configure.ac): ... to here.
9063
9064 2011-05-08  Bruno Haible  <bruno@clisp.org>
9065
9066         gethrxtime: Move AC_LIBOBJ invocations to module description.
9067         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9068         LIB_GETHRXTIME from here...
9069         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9070         invocations from here...
9071         * modules/gethrxtime (configure.ac): ... to here.
9072
9073 2011-05-08  Bruno Haible  <bruno@clisp.org>
9074
9075         gethostname: Move AC_LIBOBJ invocations to module description.
9076         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9077         gl_PREREQ_GETHOSTNAME invocations from here...
9078         * modules/gethostname (configure.ac): ... to here.
9079
9080 2011-05-08  Bruno Haible  <bruno@clisp.org>
9081
9082         getgroups: Move AC_LIBOBJ invocations to module description.
9083         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9084         here...
9085         * modules/getgroups (configure.ac): ... to here.
9086
9087 2011-05-08  Bruno Haible  <bruno@clisp.org>
9088
9089         getdtablesize: Move AC_LIBOBJ invocations to module description.
9090         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9091         invocation from here...
9092         * modules/getdtablesize (configure.ac): ... to here.
9093
9094 2011-05-08  Bruno Haible  <bruno@clisp.org>
9095
9096         getdomainname: Move AC_LIBOBJ invocations to module description.
9097         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9098         gl_PREREQ_GETDOMAINNAME invocations from here...
9099         * modules/getdomainname (configure.ac): ... to here.
9100
9101 2011-05-08  Bruno Haible  <bruno@clisp.org>
9102
9103         getline: Move AC_LIBOBJ invocations to module description.
9104         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9105         invocations from here...
9106         * modules/getline (configure.ac): ... to here.
9107
9108 2011-05-08  Bruno Haible  <bruno@clisp.org>
9109
9110         getline: Simplify.
9111         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9112         It's already handled through the module dependency.
9113
9114 2011-05-08  Bruno Haible  <bruno@clisp.org>
9115
9116         getdelim: Move AC_LIBOBJ invocations to module description.
9117         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9118         and gl_PREREQ_GETDELIM invocations from here...
9119         * modules/getdelim (configure.ac): ... to here.
9120         (Depends-on): Fix condition.
9121
9122 2011-05-08  Bruno Haible  <bruno@clisp.org>
9123
9124         getcwd: Move AC_LIBOBJ invocations to module description.
9125         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9126         invocations from here...
9127         * modules/getcwd (configure.ac): ... to here.
9128
9129 2011-05-08  Bruno Haible  <bruno@clisp.org>
9130
9131         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9132         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9133         here...
9134         * modules/getcwd-lgpl (configure.ac): ... to here.
9135
9136 2011-05-07  Bruno Haible  <bruno@clisp.org>
9137
9138         crypto/gc: Move AC_LIBOBJ invocations to module description.
9139         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9140         * modules/crypto/gc (configure.ac): ... to here.
9141
9142 2011-05-07  Bruno Haible  <bruno@clisp.org>
9143
9144         fwriting: Move AC_LIBOBJ invocations to module description.
9145         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9146         here...
9147         * modules/fwriting (configure.ac): ... to here.
9148
9149 2011-05-07  Bruno Haible  <bruno@clisp.org>
9150
9151         fwritable: Move AC_LIBOBJ invocations to module description.
9152         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9153         here...
9154         * modules/fwritable (configure.ac): ... to here.
9155
9156 2011-05-07  Bruno Haible  <bruno@clisp.org>
9157
9158         futimens: Move AC_LIBOBJ invocations to module description.
9159         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9160         here...
9161         * modules/futimens (configure.ac): ... to here.
9162
9163 2011-05-07  Bruno Haible  <bruno@clisp.org>
9164
9165         ftruncate: Move AC_LIBOBJ invocations to module description.
9166         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9167         gl_PREREQ_FTRUNCATE invocations from here...
9168         * modules/ftruncate (configure.ac): ... to here.
9169
9170 2011-05-07  Bruno Haible  <bruno@clisp.org>
9171
9172         fsync: Move AC_LIBOBJ invocations to module description.
9173         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9174         invocations from here...
9175         * modules/fsync (configure.ac): ... to here.
9176
9177 2011-05-07  Bruno Haible  <bruno@clisp.org>
9178
9179         fsusage: Move AC_LIBOBJ invocations to module description.
9180         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9181         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9182         * modules/fsusage (configure.ac): ... to here.
9183
9184 2011-05-07  Bruno Haible  <bruno@clisp.org>
9185
9186         freopen: Move AC_LIBOBJ invocations to module description.
9187         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9188         invocations from here...
9189         * modules/freopen (configure.ac): ... to here.
9190
9191 2011-05-07  Bruno Haible  <bruno@clisp.org>
9192
9193         free: Move AC_LIBOBJ invocations to module description.
9194         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9195         invocations from here...
9196         * modules/free (configure.ac): ... to here.
9197
9198 2011-05-07  Bruno Haible  <bruno@clisp.org>
9199
9200         freadable: Move AC_LIBOBJ invocations to module description.
9201         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9202         here...
9203         * modules/freadable (configure.ac): ... to here.
9204
9205 2011-05-07  Bruno Haible  <bruno@clisp.org>
9206
9207         fpurge: Move AC_LIBOBJ invocations to module description.
9208         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9209         invocations from here...
9210         * modules/fpurge (configure.ac): ... to here.
9211
9212 2011-05-07  Bruno Haible  <bruno@clisp.org>
9213
9214         fpending: Move AC_LIBOBJ invocations to module description.
9215         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9216         gl_FUNC_FPENDING.
9217         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9218         invocations from here...
9219         * modules/fpending (configure.ac): ... to here.
9220
9221 2011-05-07  Bruno Haible  <bruno@clisp.org>
9222
9223         fopen: Move AC_LIBOBJ invocations to module description.
9224         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9225         invocations from here...
9226         * modules/fopen (configure.ac): ... to here.
9227
9228 2011-05-07  Bruno Haible  <bruno@clisp.org>
9229
9230         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9231         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9232         gl_FUNC_FNMATCH_POSIX.
9233         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9234         invocations from here...
9235         * modules/fnmatch (configure.ac): ... to here.
9236         * modules/fnmatch-gnu (configure.ac): ... and here.
9237
9238 2011-05-07  Bruno Haible  <bruno@clisp.org>
9239
9240         flock: Move AC_LIBOBJ invocations to module description.
9241         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9242         invocations from here...
9243         * modules/flock (configure.ac): ... to here.
9244
9245 2011-05-07  Bruno Haible  <bruno@clisp.org>
9246
9247         fileblocks: Move AC_LIBOBJ invocations to module description.
9248         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9249         gl_PREREQ_FILEBLOCKS invocations from here...
9250         * modules/fileblocks (configure.ac): ... to here.
9251
9252 2011-05-06  Bruno Haible  <bruno@clisp.org>
9253
9254         fflush: Move AC_LIBOBJ invocations to module description.
9255         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9256         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9257         invocations from here...
9258         * modules/fflush (configure.ac): ... to here.
9259
9260 2011-05-06  Bruno Haible  <bruno@clisp.org>
9261
9262         fdopendir: Move AC_LIBOBJ invocations to module description.
9263         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9264         here...
9265         * modules/fdopendir (configure.ac): ... to here.
9266         (Depends-on): Improve conditions.
9267
9268 2011-05-06  Bruno Haible  <bruno@clisp.org>
9269
9270         _Exit: Move AC_LIBOBJ invocations to module description.
9271         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9272         invocations from here...
9273         * modules/_Exit (configure.ac): ... to here.
9274
9275 2011-05-21  Bruno Haible  <bruno@clisp.org>
9276
9277         euidaccess: Respect rules for use of AC_LIBOBJ.
9278         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9279         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9280         from here...
9281         * modules/euidaccess (configure.ac): ... to here.
9282
9283 2011-05-06  Bruno Haible  <bruno@clisp.org>
9284
9285         error: Move AC_LIBOBJ invocations to module description.
9286         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9287         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9288         invocations from here...
9289         * modules/error (configure.ac): ... to here.
9290
9291 2011-05-06  Bruno Haible  <bruno@clisp.org>
9292
9293         duplocale: Move AC_LIBOBJ invocations to module description.
9294         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9295         gl_PREREQ_DUPLOCALE invocations from here...
9296         * modules/duplocale (configure.ac): ... to here.
9297
9298 2011-05-05  Bruno Haible  <bruno@clisp.org>
9299
9300         dirfd: Move AC_LIBOBJ invocations to module description.
9301         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9302         gl_FUNC_DIRFD.
9303         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9304         here...
9305         * modules/dirfd (configure.ac): ... to here.
9306         (Depends-on): Fix condition.
9307
9308 2011-05-05  Bruno Haible  <bruno@clisp.org>
9309
9310         chown: Respect rules for use of AC_LIBOBJ.
9311         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9312         * modules/chown (configure.ac): ... to here.
9313
9314 2011-05-05  Bruno Haible  <bruno@clisp.org>
9315
9316         chdir-long: Move AC_LIBOBJ invocations to module description.
9317         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9318         gl_PREREQ_CHDIR_LONG invocations from here...
9319         * modules/chdir-long (configure.ac): ... to here.
9320
9321 2011-05-05  Bruno Haible  <bruno@clisp.org>
9322
9323         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9324         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9325         from here...
9326         * modules/canonicalize-lgpl (configure.ac): ... to here.
9327
9328 2011-05-05  Bruno Haible  <bruno@clisp.org>
9329
9330         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9331         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9332         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9333         REPLACE_CALLOC.
9334         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9335         * modules/calloc-gnu (configure.ac): Likewise.
9336
9337 2011-05-05  Bruno Haible  <bruno@clisp.org>
9338
9339         btowc: Move AC_LIBOBJ invocations to module description.
9340         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9341         invocations from here...
9342         * modules/btowc (configure.ac): ... to here.
9343
9344 2011-05-21  Bruno Haible  <bruno@clisp.org>
9345
9346         atexit: Move AC_LIBOBJ invocations to module description.
9347         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9348         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9349         here...
9350         * modules/atexit (configure.ac): ... to here.
9351
9352 2011-05-05  Bruno Haible  <bruno@clisp.org>
9353
9354         atoll: Move AC_LIBOBJ invocations to module description.
9355         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9356         invocations from here...
9357         * modules/atoll (configure.ac): ... to here.
9358
9359 2011-05-05  Bruno Haible  <bruno@clisp.org>
9360
9361         argz: Move AC_LIBOBJ invocations to module description.
9362         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9363         * modules/argz (configure.ac): ... to here.
9364
9365 2011-05-05  Bruno Haible  <bruno@clisp.org>
9366
9367         alphasort: Move AC_LIBOBJ invocations to module description.
9368         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9369         gl_PREREQ_ALPHASORT invocations from here...
9370         * modules/alphasort (configure.ac): ... to here.
9371
9372 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9373
9374         verify: new macro verify_expr; verify_true deprecated
9375         * NEWS: Mention this.
9376         * doc/verify.texi (Compile-time Assertions): Document this.
9377         * lib/verify.h (verify_true): Deprecate.
9378         (verify_expr): New macro.
9379         * tests/test-verify.c (function): Test verify_expr.
9380
9381 2011-06-14  Jim Meyering  <meyering@redhat.com>
9382
9383         init.sh: give more portable redirection-related advice in a comment
9384         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9385         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9386         for lots of discussion.  Stefano Lattarini suggested the solution
9387         of putting "9>&2" after the command.  Reported by Bruno Haible.
9388
9389 2011-06-13  Bruno Haible  <bruno@clisp.org>
9390
9391         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9392         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9393         'none'.
9394
9395 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9396
9397         ftoastr: use strtof only if HAVE_STRTOF
9398         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9400         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9401         * modules/ftoastr (configure.ac): Check for strtof.
9402
9403 2011-06-13  Bruno Haible  <bruno@clisp.org>
9404
9405         gnulib-tool: Addendum to 2011-06-08 commit.
9406         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9407         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9408
9409 2011-06-13  Bruno Haible  <bruno@clisp.org>
9410
9411         fseeko: Provide a non-inline replacement of fseek().
9412         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9413         * modules/fseeko (Depends-on): Add fseek.
9414         * modules/fseek (License): Change to LGPLv2+.
9415
9416 2011-06-13  Bruno Haible  <bruno@clisp.org>
9417
9418         ftello: Provide a non-inline replacement of ftell().
9419         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9420         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9421         not have ftello() (such as on mingw).
9422         * modules/ftello (Depends-on): Add ftell.
9423         * modules/ftell (License): Change to LGPLv2+.
9424
9425 2011-05-07  Bruno Haible  <bruno@clisp.org>
9426
9427         ftell: Move AC_LIBOBJ invocations to module description.
9428         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9429         * modules/ftell (configure.ac): ... to here.
9430
9431 2011-05-07  Bruno Haible  <bruno@clisp.org>
9432
9433         ftello: Respect rules for use of AC_LIBOBJ.
9434         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9435         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9436         here...
9437         * modules/ftello (configure.ac): ... to here.
9438
9439 2011-05-07  Bruno Haible  <bruno@clisp.org>
9440
9441         fseeko: Simplify.
9442         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9443         (gl_FUNC_FSEEKO): Inline it here.
9444
9445 2011-05-07  Bruno Haible  <bruno@clisp.org>
9446
9447         fseek: Move AC_LIBOBJ invocations to module description.
9448         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9449         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9450         * modules/fseek (configure.ac): ... to here.
9451
9452 2011-05-07  Bruno Haible  <bruno@clisp.org>
9453
9454         fseek: Respect rules for use of AC_LIBOBJ.
9455         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9456         here...
9457         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9458
9459 2011-05-07  Bruno Haible  <bruno@clisp.org>
9460
9461         fseeko: Respect rules for use of AC_LIBOBJ.
9462         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9463         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9464         here...
9465         * modules/fseeko (configure.ac): ... to here.
9466
9467 2011-06-13  Bruno Haible  <bruno@clisp.org>
9468
9469         gnulib-tool: Allow comments in the 'Depends-on' section.
9470         * doc/gnulib.texi (Module description): Mention comment syntax in the
9471         Depends-on section.
9472         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9473
9474 2011-06-13  Bruno Haible  <bruno@clisp.org>
9475
9476         file-set.h: guard __attibute__ use, now that it's not always defined
9477         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9478         versions that support it.  This fixes a coreutils build failure with
9479         the vendor cc on HP-UX 11.31.
9480
9481 2011-06-12  Bruno Haible  <bruno@clisp.org>
9482
9483         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9484         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9485         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9486         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9487         (acl, aclsort): New declarations.
9488         (aclv_nontrivial): New declaration.
9489         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9490         (file_has_acl): Read also the second kind of HP-UX ACLs.
9491         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9492         kind of HP-UX ACLs if the first kind fails.
9493         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9494         second kind of HP-UX ACLs.
9495         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9496         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9497         agree.
9498         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9499         hpuxjfs.
9500         Handle hpuxjfs.
9501         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9502         hpuxjfs.
9503         Handle hpuxjfs.
9504         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9505         (func_test_same_acls): Use both lsacl and getacl.
9506         Handle hpuxjfs.
9507         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9508         (func_test_same_acls): Use both lsacl and getacl.
9509         Handle hpuxjfs.
9510
9511 2011-06-12  Bruno Haible  <bruno@clisp.org>
9512
9513         acl: Complete the 2010-08-10 fix.
9514         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9515         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9516         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9517         explicitly.
9518         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9519         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9520
9521 2011-06-12  Bruno Haible  <bruno@clisp.org>
9522
9523         spawn-pipe tests: Comments.
9524         * tests/test-spawn-pipe-child.c (main): Update comment.
9525         Reported by James Youngman <jay@gnu.org>.
9526
9527 2011-06-11  James Youngman  <jay@gnu.org>
9528
9529         New module 'stat-size'.
9530         * modules/stat-size: New module.  Provides macros for accessing
9531         file size information in instances of struct stat.  Depends on the
9532         fileblocks module because it calls st_blocks.
9533         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9534         * doc/gnulib.texi: Include stat-size.texi.
9535         * doc/stat-size.texi: Documentation for this module.
9536         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9537         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9538         AC_STRUCT_ST_BLOCKS.
9539
9540 2011-06-09  Bruno Haible  <bruno@clisp.org>
9541
9542         thread: Support pthreads-win32.
9543         * lib/glthread/thread.h (gl_thread_self): Define differently on
9544         pthreads-win32.
9545         (gl_null_thread): New declaration.
9546         (gl_thread_self_pointer): New macro.
9547         * lib/glthread/thread.c (gl_null_thread): New constant.
9548         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9549         gl_thread_self.
9550         * tests/test-tls.c: Likewise.
9551         Suggested by Paul Eggert. Reported by Eric Blake.
9552
9553 2011-06-09  Bruno Haible  <bruno@clisp.org>
9554
9555         thread: Fix confusion between NULL and 0.
9556         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9557         Reported by Paul Eggert.
9558
9559 2011-06-09  Bruno Haible  <bruno@clisp.org>
9560
9561         spawn-pipe tests: Avoid test failure on HP-UX 11.
9562         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9563         is closed.
9564
9565 2011-06-09  Bruno Haible  <bruno@clisp.org>
9566
9567         acl tests: Fix compilation error on HP-UX 11.
9568         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9569
9570 2011-06-09  Bruno Haible  <bruno@clisp.org>
9571
9572         rmdir: Avoid test failure on HP-UX 10.20.
9573         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9574         EEXIST.
9575
9576 2011-06-08  Eric Blake  <eblake@redhat.com>
9577
9578         perror: fix test on mingw
9579         * modules/perror-tests (Depends-on): Add dup2.
9580
9581         strerror_r-posix: fix on MacOS
9582         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9583         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9584         logic bug.
9585         * lib/strerror_r.c (strerror_r): Fix the bug.
9586         * lib/strerror.c (strerror): Likewise.
9587         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9588         problem.
9589         * doc/posix-functions/strerror.texi (strerror): Likewise.
9590         * doc/posix-functions/perror.texi (perror): Likewise.
9591         * tests/test-strerror.c (main): Enhance test.
9592         * tests/test-strerror_r.c (main): Likewise.
9593
9594 2011-06-08  Bruno Haible  <bruno@clisp.org>
9595
9596         gnulib-tool: Better isolation between different gnulib-tool invocations.
9597         * gnulib-tool: New option --witness-c-macro.
9598         (witness_c_macro): New variable.
9599         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9600         AM_CPPFLAGS define it as a C macro.
9601         (func_emit_tests_Makefile_am): Likewise.
9602         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9603         read it from there.
9604         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9605         m4_define, not AC_DEFUN.
9606         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9607         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9608         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9609         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9610         s|...|...|, to substitute the values of the GNULIB_* module indicator
9611         variables.
9612         * modules/dirent (Makefile.am): Likewise.
9613         * modules/fcntl-h (Makefile.am): Likewise.
9614         * modules/iconv-h (Makefile.am): Likewise.
9615         * modules/langinfo (Makefile.am): Likewise.
9616         * modules/locale (Makefile.am): Likewise.
9617         * modules/math (Makefile.am): Likewise.
9618         * modules/netdb (Makefile.am): Likewise.
9619         * modules/poll-h (Makefile.am): Likewise.
9620         * modules/pty (Makefile.am): Likewise.
9621         * modules/search (Makefile.am): Likewise.
9622         * modules/signal (Makefile.am): Likewise.
9623         * modules/spawn (Makefile.am): Likewise.
9624         * modules/stdio (Makefile.am): Likewise.
9625         * modules/stdlib (Makefile.am): Likewise.
9626         * modules/string (Makefile.am): Likewise.
9627         * modules/sys_ioctl (Makefile.am): Likewise.
9628         * modules/sys_select (Makefile.am): Likewise.
9629         * modules/sys_socket (Makefile.am): Likewise.
9630         * modules/sys_stat (Makefile.am): Likewise.
9631         * modules/sys_times (Makefile.am): Likewise.
9632         * modules/sys_utsname (Makefile.am): Likewise.
9633         * modules/sys_wait (Makefile.am): Likewise.
9634         * modules/termios (Makefile.am): Likewise.
9635         * modules/time (Makefile.am): Likewise.
9636         * modules/unistd (Makefile.am): Likewise.
9637         * modules/wchar (Makefile.am): Likewise.
9638
9639 2011-06-08  Eric Blake  <eblake@redhat.com>
9640
9641         strerror: simplify replacement
9642         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9643         * modules/strerror (configure.ac): No prereqs needed here...
9644         * modules/strerror-override (configure.ac): ...but this needs it.
9645         (Files): Add file for needed prereq macro.
9646
9647 2011-06-08  Bruno Haible  <bruno@clisp.org>
9648
9649         strerror_r-posix: Tweaks.
9650         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9651         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9652         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9653         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9654         (gl_FUNC_STRERROR_R): ... to here.
9655         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9656
9657 2011-06-07  Eric Blake  <eblake@redhat.com>
9658
9659         perror: document fixed bugs
9660         * doc/posix-functions/perror.texi (perror): Document recent
9661         patches.
9662
9663 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9664
9665         stat-time: get_stat_birthtime failure is better-defined
9666         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9667         return a timestamp whose tv_sec and tv_nsec values are both -1.
9668         Previously, the spec said only that the tv_nsec value was negative.
9669         This upward-compatible change simplifies GNU tar a bit.
9670
9671 2011-06-07  Eric Blake  <eblake@redhat.com>
9672
9673         strerror_r-posix: work around cygwin 1.7.9
9674         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9675         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9676         bug without replacing strerror_r.
9677         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9678         strerror_r is buggy, but without requiring strerror_r compilation.
9679         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9680
9681         test-perror: relax test to ignore cygwin bug
9682         * tests/test-perror2.c (main): Relax test on requiring detection
9683         of stream errors, and use unbuffered stream.
9684         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9685         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9686         * doc/posix-functions/fputc.texi (fputc): Likewise.
9687         * doc/posix-functions/fputs.texi (fputs): Likewise.
9688         * doc/posix-functions/fputws.texi (fputws): Likewise.
9689         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9690         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9691         * doc/posix-functions/getopt.texi (getopt): Likewise.
9692         * doc/posix-functions/perror.texi (perror): Likewise.
9693         * doc/posix-functions/printf.texi (printf): Likewise.
9694         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9695         * doc/posix-functions/psignal.texi (psignal): Likewise.
9696         * doc/posix-functions/putc.texi (putc): Likewise.
9697         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9698         Likewise.
9699         * doc/posix-functions/putchar.texi (putchar): Likewise.
9700         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9701         Likewise.
9702         * doc/posix-functions/puts.texi (puts): Likewise.
9703         * doc/posix-functions/putwc.texi (putwc): Likewise.
9704         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9705         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9706         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9707         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9708         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9709         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9710         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9711         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9712
9713 2011-05-22  Bruno Haible  <bruno@clisp.org>
9714
9715         strerror: Move AC_LIBOBJ invocations to module description.
9716         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9717         gl_PREREQ_STRERROR invocations from here...
9718         * modules/strerror (configure.ac): ... to here.
9719
9720 2011-05-21  Bruno Haible  <bruno@clisp.org>
9721
9722         perror: Use common idiom.
9723         * modules/perror (configure.ac): Reorder statements.
9724
9725 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9726
9727         tests: fix usage message in 'mktempd_'
9728         * tests/init.sh (mktempd_): In the usage message, use literal
9729         'mktempd_', not '$ME' (which is even undefined), as the name of
9730         the subroutine.
9731
9732 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9733
9734         tests init: new function 'fatal_', for hard errors
9735         Before this patch, the only way offered by tests/init.sh to
9736         properly signal a hard error was the `framework_failure_'
9737         function.  But the error message issued by that function,
9738         as its name would suggest, refers to a set-up failure in the
9739         testsuite, while hard errors can obviously also be due to
9740         other reasons.  The best way to fix this inconsistency is to
9741         introduce a new function with a more general error message.
9742         * tests/init.sh (fatal_): New function.
9743
9744 2011-06-06  Eric Blake  <eblake@redhat.com>
9745
9746         canonicalize-lgpl: use common idiom
9747         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9748         over newer POSIX -Rf.
9749         Reported by Bruno Haible.
9750
9751         canonicalize-lgpl: work around AIX realpath bug
9752         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9753         * doc/posix-functions/realpath.texi (realpath): Document it.
9754         Reported by Bruno Haible.
9755
9756         strerror: work around FreeBSD bug
9757         * lib/strerror.c (strerror): Special case 0.
9758         Reported by Bruno Haible.
9759
9760         strerror-override: avoid bloating errno module
9761         * modules/errno (Files, configure.ac): Move replacement strings...
9762         * modules/strerror-override: ...to new module.
9763         * modules/strerror (Depends-on): Add strerror-override.
9764         * modules/strerror_r-posix (Depends-on): Likewise.
9765         * MODULES.html.sh: Document new module.
9766         Reported by Bruno Haible.
9767
9768 2011-06-06  Bruno Haible  <bruno@clisp.org>
9769
9770         spawn-pipe tests: Rename program.
9771         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9772         * tests/test-spawn-pipe-child.c: Update comment.
9773         * tests/test-spawn-pipe.sh: Update.
9774         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9775
9776         spawn-pipe tests: Link the child program only against libc.
9777         * tests/test-spawn-pipe-child.c: New file, extracted from
9778         tests/test-spawn-pipe.c.
9779         (main): Expect only one argument.
9780         (is_open): New function, copied from tests/test-pipe.c.
9781         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9782         (child_main): Remove function.
9783         (test_pipe): Pass only one argument to the child program.
9784         (main): Remove child process code. Expect the child program's name as
9785         first argument.
9786         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9787         argument.
9788         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9789         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9790         test-spawn-pipe-child against no libraries.
9791
9792 2011-06-06  Bruno Haible  <bruno@clisp.org>
9793
9794         careadlinkat: Avoid mismatch between ssize_t and int.
9795         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9796         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9797
9798 2011-06-06  Jim Meyering  <meyering@redhat.com>
9799
9800         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9801         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9802         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9803
9804 2011-06-05  Bruno Haible  <bruno@clisp.org>
9805
9806         ansi-c++-opt: Interoperability with libtool.
9807         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9808         set the variable to "no", not to ":".
9809         * NEWS: Mention the change.
9810
9811 2011-06-05  Bruno Haible  <bruno@clisp.org>
9812
9813         acl: Fix test failure on AIX 7.
9814         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9815         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9816
9817 2011-06-05  Bruno Haible  <bruno@clisp.org>
9818
9819         pipe-filter-ii: Fix test failure on AIX and IRIX.
9820         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9821         with EAGAIN, retry with a smaller buffer size.
9822
9823 2011-06-05  Bruno Haible  <bruno@clisp.org>
9824
9825         localename: Fix link dependencies.
9826         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9827         * modules/localename-tests (Makefile.am): Link test-localename with
9828         $(LIBTHREAD).
9829
9830 2011-06-05  Bruno Haible  <bruno@clisp.org>
9831
9832         error: Avoid gcc warning.
9833         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9834
9835 2011-06-05  Bruno Haible  <bruno@clisp.org>
9836
9837         unsetenv: Avoid gcc warning.
9838         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9839
9840 2011-06-05  Bruno Haible  <bruno@clisp.org>
9841
9842         setenv: Avoid gcc warning.
9843         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9844
9845 2011-06-05  Bruno Haible  <bruno@clisp.org>
9846
9847         sys_select: Ensure memset is declared also on AIX 7.
9848         * lib/sys_select.in.h: Include <string.h> also on AIX.
9849         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9850         self-contained also on AIX 7.1.
9851
9852 2011-06-04  Jim Meyering  <meyering@redhat.com>
9853
9854         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9855         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9856         function name, "error".
9857         (_gl_translatable_diag_func_re): New configurable variable.
9858
9859 2011-06-04  Bruno Haible  <bruno@clisp.org>
9860
9861         getopt: Avoid gcc warning.
9862         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9863
9864 2011-06-04  Bruno Haible  <bruno@clisp.org>
9865
9866         strerror_r: Fix comments.
9867         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9868         commit.
9869
9870 2011-06-04  Bruno Haible  <bruno@clisp.org>
9871
9872         perror: Fix compilation error.
9873         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9874         Undefine fprintf, not sprintf.
9875         * modules/perror (Depends-on): Remove intprops, verify.
9876
9877 2011-06-04  Bruno Haible  <bruno@clisp.org>
9878
9879         setlocale: Enable replacement on Cygwin 1.5.
9880         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9881         Cygwin 1.5.x.
9882         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9883         LC_CTYPE category also exists on Cygwin 1.5.x.
9884
9885 2011-06-04  Bruno Haible  <bruno@clisp.org>
9886
9887         strerror-override: Don't disable symbol renamings.
9888         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9889         * lib/strerror-override.c: Include config.h.
9890         (strerror_override): Don't undefine.
9891
9892 2011-06-03  Bruno Haible  <bruno@clisp.org>
9893
9894         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9895         * lib/localename.h: Update copyright header.
9896         * lib/localename.c: Likewise.
9897         * lib/relocatable.h: Likewise.
9898         * lib/relocatable.c: Likewise.
9899
9900 2011-06-02  Bruno Haible  <bruno@clisp.org>
9901
9902         doc: Fix a module name.
9903         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9904
9905 2011-06-02  Bruno Haible  <bruno@clisp.org>
9906
9907         pipe2: Remove dependency on 'nonblocking' module.
9908         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9909         O_NONBLOCK is defined by gnulib.
9910         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9911         is zero.
9912         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9913         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9914         defined by gnulib.
9915         (get_nonblocking_flag): New function.
9916         (main): Test O_NONBLOCK flag only if it is nonzero.
9917         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9918
9919 2011-06-03  Jim Meyering  <meyering@redhat.com>
9920
9921         maint: three new prohibit-header-without-use rules
9922         Prohibit use of cloexec.h, posixver.h, same.h without use.
9923         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9924         (sc_prohibit_posixver_without_use): Likewise.
9925         (sc_prohibit_same_without_use): Likewise.
9926
9927 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9928
9929         allocator: 'die' routine is now given requested size
9930         * lib/allocator.h (struct allocator.die): New size arg.
9931         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9932         If the actual problem is an ssize_t limitation, not a size_t or
9933         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9934
9935 2011-06-01  Eric Blake  <eblake@redhat.com>
9936
9937         strerror: drop strerror_r dependency
9938         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9939         * lib/strerror-override.c (strerror_override): ...to new file.
9940         * lib/strerror-override.h: Add prototype.
9941         * lib/strerror-impl.h: Delete.
9942         * lib/strerror.c (strerror): New implementation.
9943         * modules/errno (Files): Add new files.
9944         (configure.ac): Compile new file as appropriate.
9945         * modules/strerror (Files): Drop unused file.
9946         (Depends-on): Drop strerror_r-posix.
9947         * MODULES.html.sh: Document strerror_r-posix.
9948         Requested by Sam Steingold.
9949
9950         perror: call strerror_r directly
9951         * modules/perror (Files): Drop strerror-impl.h.
9952         * lib/perror.c (perror): Use our own stack buffer, rather than
9953         calling a wrapper that uses static storage.
9954         * doc/posix-functions/perror.texi (perror): Document a limitation
9955         of our replacement.
9956
9957         strerror_r: fix includes for FreeBSD
9958         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9959         since we use abort on some platforms.
9960         Reported by Matthias Bolte.
9961
9962 2011-05-31  Bruno Haible  <bruno@clisp.org>
9963
9964         Fix link errors in tests: openat-die uses gettext-h.
9965         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9966         against $(LIBINTL).
9967         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9968         against $(LIBINTL).
9969         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9970         $(LIBINTL).
9971         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9972         against $(LIBINTL).
9973         * modules/linkat-tests (Makefile.am): Link test-linkat against
9974         $(LIBINTL).
9975         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9976         $(LIBINTL).
9977         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9978         against $(LIBINTL).
9979         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9980         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9981         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9982         $(LIBINTL).
9983         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9984         $(LIBINTL).
9985         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9986         $(LIBINTL).
9987         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9988
9989 2011-05-31  Bruno Haible  <bruno@clisp.org>
9990
9991         Fix link errors in tests: wait-process uses gettext-h.
9992         * modules/nonblocking-pipe-tests (Makefile.am): Set
9993         test_nonblocking_pipe_main_LDADD.
9994         * modules/nonblocking-socket-tests (Makefile.am): Link
9995         test-nonblocking-socket-main against $(LIBINTL).
9996         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9997
9998 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9999
10000         assert-h: work around 'verify' incompatibility
10001         * lib/verify.h: Use @...@ directives, not ifdef.
10002         * modules/assert-h (assert.h): Implement the directives.
10003         (assert.h): Substitute the symbol-prefix more consistently.
10004
10005 2011-05-29  Jim Meyering  <meyering@redhat.com>
10006
10007         trim: remove three superfluous assignments
10008         * lib/trim.c (trim2): Remove three superfluous assignments
10009         and correct brace positioning.
10010
10011 2011-05-29  Bruno Haible  <bruno@clisp.org>
10012
10013         wctype-h: Avoid namespace pollution on Solaris 2.6.
10014         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10015         identifiers.
10016         * doc/posix-headers/wctype.texi: Mention the problem.
10017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10018
10019 2011-05-28  Jim Meyering  <meyering@redhat.com>
10020
10021         parse-datetime.y: accommodate -Wstrict-overflow
10022         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10023         placate -Wstrict-overflow.
10024
10025         trim: avoid a warning from -O2 -Wstrict-overflow
10026         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10027
10028 2011-05-29  Bruno Haible  <bruno@clisp.org>
10029
10030         gnulib-tool: Fix bug in yesterday's commit.
10031         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10032         twice.
10033
10034 2011-05-29  Bruno Haible  <bruno@clisp.org>
10035
10036         Allow multiple gnulib generated include files to be combined.
10037         * gnulib-tool (func_compute_include_guard_prefix): New function.
10038         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10039         ${gl_include_guard_prefix} references.
10040         (func_import, func_create_testdir): Invoke
10041         func_compute_include_guard_prefix.
10042         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10043         * lib/ctype.in.h: Likewise.
10044         * lib/dirent.in.h: Likewise.
10045         * lib/errno.in.h: Likewise.
10046         * lib/fcntl.in.h: Likewise.
10047         * lib/float.in.h: Likewise.
10048         * lib/getopt.in.h: Likewise.
10049         * lib/iconv.in.h: Likewise.
10050         * lib/langinfo.in.h: Likewise.
10051         * lib/locale.in.h: Likewise.
10052         * lib/math.in.h: Likewise.
10053         * lib/netdb.in.h: Likewise.
10054         * lib/netinet_in.in.h: Likewise.
10055         * lib/poll.in.h: Likewise.
10056         * lib/pthread.in.h: Likewise.
10057         * lib/pty.in.h: Likewise.
10058         * lib/sched.in.h: Likewise.
10059         * lib/se-selinux.in.h: Likewise.
10060         * lib/search.in.h: Likewise.
10061         * lib/signal.in.h: Likewise.
10062         * lib/spawn.in.h: Likewise.
10063         * lib/stdarg.in.h: Likewise.
10064         * lib/stddef.in.h: Likewise.
10065         * lib/stdint.in.h: Likewise.
10066         * lib/stdio.in.h: Likewise.
10067         * lib/stdlib.in.h: Likewise.
10068         * lib/string.in.h: Likewise.
10069         * lib/strings.in.h: Likewise.
10070         * lib/sys_file.in.h: Likewise.
10071         * lib/sys_ioctl.in.h: Likewise.
10072         * lib/sys_select.in.h: Likewise.
10073         * lib/sys_socket.in.h: Likewise.
10074         * lib/sys_stat.in.h: Likewise.
10075         * lib/sys_time.in.h: Likewise.
10076         * lib/sys_times.in.h: Likewise.
10077         * lib/sys_uio.in.h: Likewise.
10078         * lib/sys_utsname.in.h: Likewise.
10079         * lib/sys_wait.in.h: Likewise.
10080         * lib/sysexits.in.h: Likewise.
10081         * lib/termios.in.h: Likewise.
10082         * lib/time.in.h: Likewise.
10083         * lib/unistd.in.h: Likewise.
10084         * lib/wchar.in.h: Likewise.
10085         * lib/wctype.in.h: Likewise.
10086         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10087         * modules/ctype (Makefile.am): Likewise.
10088         * modules/dirent (Makefile.am): Likewise.
10089         * modules/errno (Makefile.am): Likewise.
10090         * modules/fcntl-h (Makefile.am): Likewise.
10091         * modules/float (Makefile.am): Likewise.
10092         * modules/getopt-posix (Makefile.am): Likewise.
10093         * modules/iconv-h (Makefile.am): Likewise.
10094         * modules/langinfo (Makefile.am): Likewise.
10095         * modules/locale (Makefile.am): Likewise.
10096         * modules/math (Makefile.am): Likewise.
10097         * modules/netdb (Makefile.am): Likewise.
10098         * modules/netinet_in (Makefile.am): Likewise.
10099         * modules/poll-h (Makefile.am): Likewise.
10100         * modules/pthread (Makefile.am): Likewise.
10101         * modules/pty (Makefile.am): Likewise.
10102         * modules/sched (Makefile.am): Likewise.
10103         * modules/search (Makefile.am): Likewise.
10104         * modules/selinux-h (Makefile.am): Likewise.
10105         * modules/signal (Makefile.am): Likewise.
10106         * modules/spawn (Makefile.am): Likewise.
10107         * modules/stdarg (Makefile.am): Likewise.
10108         * modules/stddef (Makefile.am): Likewise.
10109         * modules/stdint (Makefile.am): Likewise.
10110         * modules/stdio (Makefile.am): Likewise.
10111         * modules/stdlib (Makefile.am): Likewise.
10112         * modules/string (Makefile.am): Likewise.
10113         * modules/strings (Makefile.am): Likewise.
10114         * modules/sys_file (Makefile.am): Likewise.
10115         * modules/sys_ioctl (Makefile.am): Likewise.
10116         * modules/sys_select (Makefile.am): Likewise.
10117         * modules/sys_socket (Makefile.am): Likewise.
10118         * modules/sys_stat (Makefile.am): Likewise.
10119         * modules/sys_time (Makefile.am): Likewise.
10120         * modules/sys_times (Makefile.am): Likewise.
10121         * modules/sys_uio (Makefile.am): Likewise.
10122         * modules/sys_utsname (Makefile.am): Likewise.
10123         * modules/sys_wait (Makefile.am): Likewise.
10124         * modules/sysexits (Makefile.am): Likewise.
10125         * modules/termios (Makefile.am): Likewise.
10126         * modules/time (Makefile.am): Likewise.
10127         * modules/unistd (Makefile.am): Likewise.
10128         * modules/wchar (Makefile.am): Likewise.
10129         * modules/wctype-h (Makefile.am): Likewise.
10130         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10131
10132 2011-05-29  Bruno Haible  <bruno@clisp.org>
10133
10134         assert-h: Allow multiple gnulib generated replacements to coexist.
10135         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10136
10137 2011-05-29  Bruno Haible  <bruno@clisp.org>
10138
10139         argp: Allow coexistence with strerror_r-posix module.
10140         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10141         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10142         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10143         not the glibc signature.
10144
10145 2011-05-28  Bruno Haible  <bruno@clisp.org>
10146
10147         gnulib-tool: Alternative structure of testdirs, similar to --import.
10148         * gnulib-tool: New option --single-configure.
10149         (func_usage): Document it.
10150         (single_configure): New variable.
10151         (func_modules_transitive_closure_separately,
10152         func_modules_transitive_closure_separately,
10153         func_determine_use_libtests, func_modules_add_dummy_separately,
10154         func_modules_to_filelist_separately): New functions, extracted from
10155         func_import.
10156         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10157         (func_import): Use the new functions.
10158         (func_create_testdir): Set final_modules. Handle $single_configure =
10159         true case.
10160
10161 2011-05-28  Bruno Haible  <bruno@clisp.org>
10162
10163         getloadavg: Remove an unreliable safety check.
10164         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10165         getloadavg.c is in place.
10166         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10167         Reported by Sam Steingold <sds@gnu.org>.
10168
10169 2011-05-28  Bruno Haible  <bruno@clisp.org>
10170
10171         doc: Cleanup yet another file produced by texinfo.tex.
10172         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10173
10174 2011-05-28  Bruno Haible  <bruno@clisp.org>
10175
10176         Finish the conditional dependencies mechanism.
10177         * gnulib-tool: New option --no-conditional-dependencies.
10178         (func_usage): Document it. Don't mark --conditional-dependencies as
10179         experimental.
10180         (cond_dependencies): The possible values can now be true, false, empty.
10181         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10182         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10183         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10184
10185 2011-05-28  Bruno Haible  <bruno@clisp.org>
10186
10187         doc: Use a recent texinfo.tex.
10188         * doc/Makefile (tex_opts): New variable.
10189         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10190
10191 2011-05-28  Jim Meyering  <meyering@redhat.com>
10192
10193         intprops.h: adjust comment to match code change
10194         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10195         only once, it *may* have side effects.  Also fix an unrelated typo.
10196         (_GL_INT_SIGNED): Likewise.
10197
10198 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10199
10200         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10201
10202 2011-05-26  Bruno Haible  <bruno@clisp.org>
10203
10204         mbsrchr: Avoid collision with system function on Interix.
10205         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10206         Reported by Markus Duft <mduft@gentoo.org>.
10207
10208 2011-05-15  James Youngman  <jay@gnu.org>
10209
10210         getopt: for ambiguous options, enumerate the possibilities.
10211         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10212         the ambiguous options when an ambiguous prefix is given. This was
10213         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10214         glibc change was
10215         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10216
10217 2011-05-25  Eric Blake  <eblake@redhat.com>
10218
10219         getcwd: work around mingw bug
10220         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10221         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10222         Reported by Matthias Bolte.
10223
10224 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10225
10226         test-intprops: disable -Wtype-limits diagnostics
10227         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10228         diagnostics.  Otherwise, the integer overflow macros generate many
10229         diagnostics.  Reported by Jim Meyering in
10230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10231
10232         intprops: shorten, to pacify gcc -Woverlength-strings
10233         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10234         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10235         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10236         likely to run afoul of C compiler limits for string constant lengths.
10237         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10238
10239 2011-05-24  Eric Blake  <eblake@redhat.com>
10240
10241         docs: document recently fixed glibc printf bug
10242         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10243         * doc/posix-functions/printf.texi (printf): Likewise.
10244         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10245         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10246
10247         closein-tests: convert to init.sh
10248         * modules/closein-tests (Files): Add init.sh
10249         * tests/test-closein.sh Use it.
10250
10251         yesno-tests: convert to init.sh
10252         * modules/yesno-tests (Files): Add init.sh.
10253         * tests/test-yesno.sh: Use it.
10254
10255         atexit-tests: ensure reliable exit status
10256         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10257         Reported by Bruno Haible.
10258
10259 2011-05-24  Bruno Haible  <bruno@clisp.org>
10260
10261         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10262         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10263         gl_PREREQ_STRERROR_R invocations from here...
10264         * modules/strerror_r-posix (configure.ac): ... to here.
10265
10266 2011-05-24  Eric Blake  <eblake@redhat.com>
10267
10268         strerror_r: fix missing header
10269         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10270
10271         strerror_r: fix AIX test failures
10272         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10273         ERANGE failure.
10274
10275         strerror_r: fix Solaris test failures
10276         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10277         failures.
10278         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10279
10280         strerror_r: enforce POSIX recommendations
10281         * lib/strerror_r.c (safe_copy): New helper method.
10282         (strerror_r): Guarantee a non-empty string.
10283         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10284         recent POSIX rulings and to match our strerror guarantees.
10285         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10286
10287 2011-05-24  Jim Meyering  <meyering@redhat.com>
10288
10289         test-perror2.c: avoid warning about unused variable
10290         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10291
10292 2011-05-24  Eric Blake  <eblake@redhat.com>
10293
10294         perror: avoid spurious test failure on HP-UX
10295         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10296
10297         tests: fix logic bug in init.sh
10298         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10299         shell.
10300
10301 2011-05-24  Jim Meyering  <meyering@redhat.com>
10302
10303         utimensat: do not reference an out-of-scope buffer
10304         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10305         declared in an inner scope, yet "times" would be dereferenced outside
10306         the scope in which "ts" was valid.
10307         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10308         of ts[2] "out/up", so that the use of aliased "times" (via
10309         "times = ts;") does not end up referencing an out-of-scope "ts"
10310
10311         opendir-safer.c: don't clobber errno; don't close negative FD
10312         * lib/opendir-safer.c (opendir_safer):
10313         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10314         file descriptor, and more importantly, don't clobber the
10315         offending errno value with EINVAL.  Before, upon failure
10316         of dup_safer, we would pass the negative file descriptor to
10317         fdopendir, which would clobber errno.
10318
10319 2011-05-23  Bruno Haible  <bruno@clisp.org>
10320
10321         idcache: Fix module description.
10322         * modules/idcache (Include): Set to "idcache.h".
10323
10324 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10325
10326         gnulib-tool: fix portability problem with MacOS sed
10327         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10328         before the "}".  Problem reported by Leo in
10329         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10330         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10331         sed_extract_condition1, sed_extract_condition2.
10332
10333 2011-05-23  Bruno Haible  <bruno@clisp.org>
10334
10335         hash: Simplify autoconf macro.
10336         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10337
10338 2011-05-23  Bruno Haible  <bruno@clisp.org>
10339
10340         getugroups: Fix module description.
10341         * modules/getugroups (Include): Set to "getugroups.h".
10342
10343 2011-05-23  Bruno Haible  <bruno@clisp.org>
10344
10345         linkat: Simplify autoconf macro.
10346         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10347
10348 2011-05-23  Bruno Haible  <bruno@clisp.org>
10349             Eric Blake  <eblake@redhat.com>
10350
10351         linkat, renameat: Update dependencies.
10352         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10353         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10354         symlinkat.
10355
10356 2011-05-23  Jim Meyering  <meyering@redhat.com>
10357
10358         maint.mk: more tight_scope improvements
10359         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10360         (_gl_TS_headers): Define only in if-0'd block.
10361         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10362         sometimes we must *not* use it.  Adjust uses accordingly.
10363         (sc_tight_scope): Use much simpler grep-based test to determine
10364         whether we skip this rule.
10365
10366         maint.mk: generalize/improve the tight-scope rule
10367         * top/maint.mk: Emit a warning when the test is skipped.
10368         (_gl_TS_dir): Add $(srcdir)/ prefix.
10369         (_gl_TS_function_match): Simplify, rather than trying
10370         to enumerate common types.  Otherwise, it would fail to match an
10371         "extern unsigned char const *" declaration in idutils.
10372         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10373         a way to support use of that type of macro.
10374         (_gl_TS_var_match): Simplify regexp.
10375         (_gl_TS_obj_files): New configurable variable.
10376         (_gl_TS_headers): Likewise.
10377
10378 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10379
10380         verify: fix bug when gnulib <assert.h> is also included
10381         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10382         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10383         Perhaps there's a better way, but this fixes the immediate problem.
10384         Problem reported by Bruno Haible in
10385         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10386
10387 2011-05-22  Bruno Haible  <bruno@clisp.org>
10388
10389         xgetcwd: Simplify autoconf macro.
10390         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10391
10392 2011-05-22  Bruno Haible  <bruno@clisp.org>
10393
10394         New module 'mktime-internal'.
10395         * modules/mktime-internal: New file.
10396         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10397         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10398         mktime_internal as a C macro if libc has __mktime_internal.
10399         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10400         conditions.
10401         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10402
10403 2011-05-22  Bruno Haible  <bruno@clisp.org>
10404
10405         timegm: Correct mktime replacement statements.
10406         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10407         defining mktime as a C macro. This completes a 2009-07-28 commit.
10408
10409 2011-05-22  Bruno Haible  <bruno@clisp.org>
10410
10411         timegm: Simplify autoconf macro.
10412         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10413
10414 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10415
10416         clock-time: change to LGPLv2+.
10417         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10418         BSD-like but we have no mark for that; this is good enough for now.
10419
10420 2011-05-21  Bruno Haible  <bruno@clisp.org>
10421
10422         strerror_r: Fix comments.
10423         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10424
10425 2011-05-21  Bruno Haible  <bruno@clisp.org>
10426
10427         relocatable-prog-wrapper: Fix possible link error.
10428         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10429         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10430         (gl_FUNC_SETENV): ... to here.
10431         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10432         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10433
10434 2011-05-21  Bruno Haible  <bruno@clisp.org>
10435
10436         relocatable-prog-wrapper: Assume strerror() exists.
10437         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10438         m4/strerror.m4.
10439         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10440         * lib/relocwrapper.c: Remove mention of strerror module.
10441         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10442         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10443         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10444         C macro.
10445
10446 2011-05-21  Bruno Haible  <bruno@clisp.org>
10447
10448         select: Simplify replacement idiom.
10449         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10450         Win32 platforms.
10451         * lib/sys_select.in.h (select): Simplify accordingly.
10452         * modules/select (Depends-on): Likewise.
10453
10454 2011-05-21  Bruno Haible  <bruno@clisp.org>
10455
10456         mkdir-p: Simplify autoconf macro.
10457         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10458         gl_FUNC_LCHOWN.
10459
10460 2011-05-21  Eric Blake  <eblake@redhat.com>
10461
10462         strerror_r: avoid clobbering strerror on cygwin
10463         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10464         fall back instead to sys_errlist.
10465         * modules/strerror (configure.ac): Add witness.
10466         * tests/test-strerror_r.c (main): Enhance test.
10467         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10468         * tests/test-perror2.c (main): Free memory before exit.
10469
10470 2011-05-21  Bruno Haible  <bruno@clisp.org>
10471
10472         mkdtemp: Use gnulib naming conventions.
10473         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10474         * modules/mkdtemp (configure.ac): Update.
10475
10476 2011-05-20  Eric Blake  <eblake@redhat.com>
10477
10478         strerror_r: avoid corrupting errno on Solaris
10479         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10480         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10481
10482         strerror_r: avoid compiler warning
10483         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10484
10485         strerror_r: simplify AIX code
10486         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10487
10488         test-perror: avoid spurious failure on FreeBSD
10489         * modules/perror-tests (Depends-on): Add strerror, now that
10490         strerror_r no longer pulls it in.
10491
10492 2011-05-20  Bruno Haible  <bruno@clisp.org>
10493
10494         strerror_r-posix: Remove unused dependencies.
10495         * modules/strerror_r-posix (Depends-on): Remove strerror.
10496         Reported by Eric Blake.
10497
10498 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10499
10500         intprops: remove assumption about A|B representation
10501         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10502         is a valid integer if both A and B are.  Although this is true for
10503         all known practical hosts, the C standard doesn't guarantee it,
10504         and the code need not assume it.  Also, this change may work around
10505         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10506         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10507
10508 2011-05-20  Eric Blake  <eblake@redhat.com>
10509
10510         perror: work around FreeBSD bug
10511         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10512         is broken.  Move AC_LIBOBJ...
10513         * modules/perror (configure.ac): Here.
10514         * doc/posix-functions/perror.texi (perror): Document this.
10515         * tests/test-perror2.c (main): Enhance test.
10516
10517         test-perror: check for strerror interactions
10518         * tests/macros.h (STREQ): Add macro.
10519         * modules/perror-tests (Files): Add second test.
10520         * tests/test-perror2.c (main): New file.
10521         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10522
10523         test-perror: rewrite to use init script
10524         * modules/perror-tests (Files): Add init.sh.
10525         * tests/test-perror.sh: Use temporary directory.
10526
10527 2011-05-20  Jim Meyering  <meyering@redhat.com>
10528
10529         maint: replace misused "a" with "an"
10530         * doc/intprops.texi: "a integer"
10531         * doc/regex.texi: "a explanation"
10532         * lib/alignof.h: "a object"
10533         * lib/argmatch.h: "a explanation"
10534         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10535         * lib/stdint.in.h: "a integer"
10536         * lib/userspec.c: "a owner"
10537         * doc/gnulib.texi: Fix "a idea", and reword.
10538
10539 2011-05-19  Jim Meyering  <meyering@redhat.com>
10540
10541         maint: correct misuse of "a" and "an"
10542         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10543         * lib/argp-help.c: "an docum...": s/an/a/
10544         * lib/argp-parse.c: "An vector": s/An/A/
10545         * lib/execute.c: "an native": s/an/a/
10546         * lib/spawn-pipe.c: Likewise.
10547         * lib/gc.h: "an Gc_rc": s/an/a/
10548         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10549         * lib/fts.c: "an stat.st_dev": s/an/a/
10550
10551 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10552
10553         intprops-tests: work around HP-UX 11.23 cc bug with constants
10554         * tests/test-intprops.c (VERIFY): New macro.
10555         (main): Use it, instead of verify, to work around the compiler bug; see
10556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10557
10558         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10559         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10560         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10561         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10562         (_GL_REMAINDER_OVERFLOW): Use it.
10563
10564         intprops-tests: revert unsigned part of previous change
10565         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10566         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10567         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10569
10570 2011-05-19  Bruno Haible  <bruno@clisp.org>
10571
10572         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10573         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10574         strerror_r() returned without filling the buffer.
10575         Reported by Eric Blake.
10576
10577 2011-05-19  Eric Blake  <eblake@redhat.com>
10578
10579         strerror_r: guarantee unchanged errno
10580         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10581         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10582         failure.
10583         * tests/test-strerror_r.c (main): Enhance test.
10584
10585 2011-05-19  Bruno Haible  <bruno@clisp.org>
10586
10587         strerror_r: Reorder #if blocks.
10588         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10589         for consistency with the previous commit.
10590
10591 2011-05-19  Bruno Haible  <bruno@clisp.org>
10592
10593         perror: Avoid clobbering the strerror buffer when possible.
10594         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10595         * lib/strerror.c: Include it.
10596         * modules/strerror (Files): Add lib/strerror-impl.h.
10597         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10598         (my_strerror): New function, defined through lib/strerror-impl.h.
10599         (perror): Use it instead of strerror.
10600         * modules/perror (Files): Add lib/strerror-impl.h.
10601         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10602
10603 2011-05-19  Eric Blake  <eblake@redhat.com>
10604
10605         strerror_r: fix on newer cygwin
10606         * lib/strerror_r.c (strerror_r): Cygwin now has
10607         __xpg_strerror_r, use it.
10608
10609 2011-05-19  Bruno Haible  <bruno@clisp.org>
10610
10611         strerror_r: Avoid clobbering the strerror buffer when possible.
10612         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10613         (sys_nerr, sys_errlist): New declarations.
10614         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10615         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10616         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10617
10618 2011-05-19  Bruno Haible  <bruno@clisp.org>
10619
10620         strerror_r: Fix test failure on mingw.
10621         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10622         EXTEND_STRERROR_R.
10623         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10624         macros from errno.in.h instead.
10625
10626 2011-05-19  Eric Blake  <eblake@redhat.com>
10627
10628         strerror: relax test for Solaris
10629         * tests/test-strerror.c (main): Permit Solaris behavior.
10630         * tests/test-strerror_r.c (main): Likewise.
10631
10632         strerror: enforce POSIX ruling on strerror(0)
10633         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10634         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10635         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10636         * doc/posix-functions/strerror.texi (strerror): Document it.
10637         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10638         * tests/test-strerror.c (main): Strengthen test.
10639         * tests/test-strerror_r.c (main): Likewise.
10640
10641 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10642
10643         intprop-tests: port to older and more-pedantic compilers
10644         * modules/intprops-tests (Files): Add tests/macros.h.
10645         * tests/test-intprops.c: Include macros.h.
10646         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10647         it's no longer documented to expand to an integer constant expression.
10648         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10649         argument is floating point, as it's no longer documented to expand
10650         to an integer constant expression in that case.
10651         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10652         compiler bugs reported by Bruno Haible.  See
10653         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10654         (U0, U1): New constants, to work around the same bugs.  Also,
10655         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10656
10657         intprops: work around C compiler bugs
10658         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10659         bug in Sun C 5.11 2010/08/13 and other compilers; see
10660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10661
10662         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10663         * doc/intprops.texi (Integer Type Determination): Fix
10664         documentation for TYPE_IS_INTEGER: it returns an constant
10665         expression, not an integer constant expression.  Fix doc for
10666         TYPE_SIGNED: it returns an integer constant expression only if its
10667         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10668         hardly worth documented that way....)
10669
10670 2011-05-18  Bruno Haible  <bruno@clisp.org>
10671
10672         strerror_r: Avoid clobbering the strerror buffer when possible.
10673         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10674         Handle gnulib defined errno values here. When strerror() returns NULL
10675         or an empty string, return EINVAL.
10676         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10677         gnulib defined errno values here.
10678         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10679
10680 2011-05-18  Eric Blake  <eblake@redhat.com>
10681
10682         fnmatch: avoid compiler warning
10683         * lib/fnmatch_loop.c (FCT): Use correct type.
10684         Reported by Matthias Bolte.
10685
10686 2011-05-13  Jim Meyering  <meyering@redhat.com>
10687
10688         maint.mk: three new prohibit_<HDR>_without_use rules
10689         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10690         (sc_prohibit_stdio-safer_without_use): Likewise.
10691         (sc_prohibit_xfreopen_without_use): Likewise.
10692
10693 2011-05-17  Jim Meyering  <meyering@redhat.com>
10694
10695         announce-gen: fail if the NEWS delta is empty
10696         If there's nothing noteworthy in NEWS, then either you forgot
10697         or you shouldn't be releasing.
10698         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10699
10700 2011-05-17  Pádraig Brady <P@draigBrady.com>
10701
10702         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10703         reserved symbols starting with double underscore from the check.
10704
10705 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10706
10707         intprops: add doc
10708         * doc/intprops.texi: New file, documenting intprops.
10709         * doc/gnulib.texi (Particular Modules): Include it.
10710
10711         verify: add doc to gnulib manual and fix example
10712         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10713         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10714         (Compile-time Assertions): Fix example so it can't overflow.
10715
10716 2011-05-17  Jim Meyering  <meyering@redhat.com>
10717
10718         warnings.m4: don't usurp save_CPPFLAGS variable name
10719         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10720
10721         doc: fix typo
10722         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10723
10724 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10725             Bruno Haible  <bruno@clisp.org>
10726
10727         doc: Tweak recent change.
10728         * README (Portability guidelines): Tweak new text.
10729         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10730         Interix 6.1.
10731
10732 2011-05-16  Eric Blake  <eblake@redhat.com>
10733
10734         inttypes: avoid autoconf warning
10735         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10736         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10737
10738 2011-05-16  Sam Steingold <sds@gnu.org>
10739         and Eric Blake  <eblake@redhat.com>
10740
10741         vc-list-files: accept multiple directory operands
10742         * build-aux/vc-list-files: Iterate over all remaining operands.
10743
10744 2011-05-16  Bruno Haible  <bruno@clisp.org>
10745
10746         Fix confusion regarding deprecated modules.
10747         * modules/calloc (Status, Notice): Mark module as deprecated, not
10748         obsolete.
10749         * modules/fnmatch-posix (Status, Notice): Likewise.
10750         * modules/getdate (Status, Notice): Likewise.
10751         * modules/getopt (Status, Notice): Likewise.
10752         * modules/malloc (Status, Notice): Likewise.
10753         * modules/pipe (Status, Notice): Likewise.
10754         * modules/realloc (Status, Notice): Likewise.
10755         * modules/rename-dest-slash (Status, Notice): Likewise.
10756         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10757         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10758         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10759         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10760         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10761
10762 2011-05-16  Bruno Haible  <bruno@clisp.org>
10763
10764         doc: List the target platforms.
10765         * doc/gnulib-intro.texi (Target Platforms): New section.
10766         * doc/gnulib.texi (Introduction): Update menu.
10767         * README (Portability guidelines): Refer to the new section. Update
10768         statement about oldest supported environment. Remove rationale why
10769         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10770         unportable C89 function.
10771         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10772         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10773
10774 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10775
10776         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10777
10778 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10779
10780         intprops-tests: new module
10781         * modules/intprops-tests, tests/test-intprops.c: New files.
10782
10783         intprops: add safe, portable integer overflow checking
10784         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10785         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10786         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10787         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10788         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10789         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10790         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10791         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10792         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10793         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10794         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10795
10796 2011-05-12  James Youngman  <jay@gnu.org>
10797
10798         Add a test for glibc's Bugzilla bug #12378.
10799         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10800         doesn't allow the literal matching of a lone "[" (which is
10801         required by POSIX).
10802         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10803
10804 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10805
10806         Sync glibc change fixing Bugzilla bug #12378.
10807         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10808         beginning and fall back to matching as normal character if the
10809         string ends before the matching ']' is found.  This is what POSIX
10810         requires.
10811
10812 2011-05-13  Eric Blake  <eblake@redhat.com>
10813
10814         getcwd-lgpl: relax test for FreeBSD
10815         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10816         issue.
10817         * tests/test-getcwd-lgpl.c (main): Relax test.
10818         Reported by Matthias Bolte.
10819
10820 2011-05-11  Eric Blake  <eblake@redhat.com>
10821
10822         test-fflush: silence compiler warning
10823         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10824
10825 2011-05-11  Bruno Haible  <bruno@clisp.org>
10826
10827         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10828         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10829         * modules/canonicalize (Depends-on): Add 'nocrash'.
10830         * modules/canonicalize-lgpl (Depends-on): Likewise.
10831         * doc/posix-functions/realpath.texi: Update platforms list.
10832         Reported by Ryan Schmidt <ryandesign@macports.org>.
10833
10834 2011-05-11  Bruno Haible  <bruno@clisp.org>
10835
10836         group-member: Declare function in <unistd.h>.
10837         * lib/unistd.in.h (group_member): New declaration.
10838         * lib/group-member.h: Remove file.
10839         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10840         * tests/test-unistd-c++.cc: Check signature of group_member.
10841         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10842         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10843         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10844         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10845         HAVE_GROUP_MEMBER.
10846         * modules/group-member (Files): Remove lib/group-member.h.
10847         (Depends-on): Add unistd. Specify conditions.
10848         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10849         (Include): Change to <unistd.h>.
10850         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10851         HAVE_GROUP_MEMBER.
10852         * NEWS: Mention the change.
10853         * lib/euidaccess.c: Don't include group-member.h.
10854
10855 2011-05-11  Bruno Haible  <bruno@clisp.org>
10856
10857         group-member: Document module.
10858         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10859         module.
10860
10861 2011-05-11  Bruno Haible  <bruno@clisp.org>
10862
10863         fclose: Fix mistake earlier today.
10864         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10865
10866 2011-05-11  Eric Blake  <eblake@redhat.com>
10867
10868         fclose: preserve fflush errors
10869         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10870         Reported by Jim Meyering.
10871
10872         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10873         * build-aux/bootstrap (check_versions): When no specific version
10874         is required, merely check that the app produces an exit status
10875         that indicates its existence.
10876
10877         maint.mk: drop redundant check
10878         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10879         the same but better.
10880
10881 2011-05-11  Bruno Haible  <bruno@clisp.org>
10882
10883         fclose: Fix possible link error.
10884         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10885         unregister_shadow_fd. Improve comments.
10886         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10887         Eric Blake.
10888
10889 2011-05-11  Jim Meyering  <meyering@redhat.com>
10890
10891         maint.mk: improve "can not" detection and generalize rule name
10892         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10893         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10894         Use the same technique as in sc_prohibit_doubled_word, so that
10895         we recognize "can not" also when the words are separated by a newline.
10896         Suggested by Eric Blake.
10897         (perl_filename_lineno_text_): Define.  Factored out of...
10898         (prohibit_doubled_word_): ...here.  Use the new definition.
10899         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10900         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10901         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10902
10903 2011-05-10  Eric Blake  <eblake@redhat.com>
10904
10905         fclose: avoid double close race when possible
10906         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10907         all but WINDOWS_SOCKETS.
10908
10909 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10910
10911         openat: correct new comment
10912         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10913
10914 2011-05-10  Jim Meyering  <meyering@redhat.com>
10915
10916         openat: add comments
10917         * lib/openat-proc.c (openat_proc_name): Add comments,
10918         mostly from Eric Blake.
10919
10920 2011-05-09  Eric Blake  <eblake@redhat.com>
10921
10922         openat: reduce syscalls in first probe of /proc
10923         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10924         be a directory.  Simplify the probe for .. bugs.
10925         * modules/openat (Depends-on): Drop same-inode.
10926         Reported by Bastien ROUCARIES.
10927
10928 2011-05-09  Jim Meyering  <meyering@redhat.com>
10929
10930         maint.mk: change semantics/name of tight_scope variables
10931         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10932         Rename variables to align with semantics that make them more useful.
10933
10934         maint.mk: tweak new rule's name not to impinge
10935         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10936         (sc_tight_scope): Use new rule name rather than $@-0.
10937
10938         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10939         * top/maint.mk (sc_tight_scope): New rule.
10940         (sc_tight_scope-0): New rule, ifdef'd out.
10941         (_gl_TS_dir): Default.
10942         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10943         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10944
10945 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10946
10947         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10948         Haible <bruno@clisp.org>.
10949
10950 2011-05-08  Bruno Haible  <bruno@clisp.org>
10951
10952         Comments.
10953         * m4/isnanf.m4: Add comment.
10954         * m4/isnanl.m4: Likewise.
10955
10956 2011-05-08  Bruno Haible  <bruno@clisp.org>
10957
10958         glob: Remove obsolete macro.
10959         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10960
10961 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10962
10963         intprops: Sun C 5.11 supports __typeof__
10964         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10965         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10966         which is new.
10967         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10968
10969         intprops: switch to usual gnulib indenting and naming
10970         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10971         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10972
10973         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10974
10975 2011-05-08  Jim Meyering  <meyering@redhat.com>
10976
10977         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10978         * top/maint.mk (release-prep): Use make's --no-print-directory
10979         option when generating the announcement.  This eliminates the
10980         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10981         generated announcement template.
10982
10983 2011-05-08  Bruno Haible  <bruno@clisp.org>
10984
10985         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10986         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10987         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10988
10989 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10990
10991         ignore-value, verify: Omit include files from lib_SOURCES.
10992         * modules/ignore-value, modules/verify (Makefile.am):
10993         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10994         that leads Automake to duplicate use of am__objects_... variables
10995         in Makefile.in.  See
10996         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10997
10998 2011-05-07  Bruno Haible  <bruno@clisp.org>
10999
11000         fclose: Simplify autoconf macro.
11001         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11002         defined.
11003
11004 2011-05-07  Bruno Haible  <bruno@clisp.org>
11005
11006         canonicalize-lgpl: Fix autoconf macro ordering bug.
11007         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11008         gl_STDLIB_H_DEFAULTS.
11009
11010 2011-05-06  Eric Blake  <eblake@redhat.com>
11011
11012         maintainer-makefile: make sc_po_check easier to tune
11013         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11014         to probe for strings, such as an alternate location for gnulib.
11015
11016         fclose: guarantee behavior on seekable stdin
11017         * modules/fclose (Depends-on): Add fflush.
11018         * doc/posix-functions/fclose.texi (fclose): Document this.
11019         * tests/test-fclose.c (main): Make test for this unconditional.
11020
11021 2011-05-06  Bruno Haible  <bruno@clisp.org>
11022
11023         fflush, fpurge: Relicense under LGPLv2+.
11024         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11025         * modules/fpurge (License): Likewise.
11026         With permission from Eric Blake and Jim Meyering.
11027         Suggested by Eric Blake.
11028
11029 2011-05-06  Karl Berry  <karl@gnu.org>
11030
11031         * MODULES.html.sh (func_all_modules): remove exit.
11032
11033 2011-05-06  Jim Meyering  <meyering@redhat.com>
11034
11035         maint.mk: use info-gnu@ as the default only for a stable release
11036         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11037         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11038         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11039         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11040
11041 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11042
11043         assert-h: new module, which supports C1X-style static_assert
11044         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11045         * lib/verify.h: Revamp so that this can be copied into assert.h,
11046         while retaining the ability to use it standalone as before.
11047         Rename private identifiers so as not to encroach on the
11048         standard C namespace, since this is now used by assert.h.
11049         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11050         the old verify_true.
11051         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11052         the old verify_true.  Use _GL_VERIFY_TYPE.
11053         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11054         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11055         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11056         defined when this file is copied into the replacement assert.h.
11057         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11058         and _Static_assert is not built in.
11059         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11060         defined, and use the new macros mentioned above.
11061         * doc/posix-headers/assert.texi: Document this.
11062
11063 2011-05-05  Bruno Haible  <bruno@clisp.org>
11064
11065         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11066         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11067         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11068         gl_REPLACE_FCLOSE here.
11069         * modules/fflush (Depends-on): Remove fclose.
11070         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11071         combination with module 'fclose'.
11072
11073 2011-05-05  Bruno Haible  <bruno@clisp.org>
11074
11075         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11076         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11077         gl_FUNC_FFLUSH.
11078         (gl_FUNC_FFLUSH): Use it.
11079         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11080         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11081         gl_REPLACE_FSEEKO here.
11082
11083 2011-05-05  Bruno Haible  <bruno@clisp.org>
11084
11085         tzset: Relicense under LGPL.
11086         * modules/tzset (License): Change to LGPL.
11087         No agreement needed; it's a no-op.
11088
11089         strtoimax, strtoumax: Relicense under LGPL.
11090         * modules/strtoimax (License): Change to LGPL.
11091         * modules/strtoumax (License): Likewise.
11092         With permission from Jim Meyering, Paul Eggert:
11093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11095
11096         getgroups: Relicense under LGPL.
11097         * modules/getgroups (License): Change to LGPL.
11098         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11102
11103         nanosleep: Relicense under LGPL.
11104         * modules/nanosleep (License): Change to LGPL.
11105         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11106         Haible:
11107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11111
11112         futimens: Relicense under LGPL.
11113         * modules/futimens (License): Change to LGPL.
11114         With permission from Eric Blake:
11115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11116
11117         fflush: Relicense under LGPL.
11118         * modules/fflush (License): Change to LGPL.
11119         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11123
11124         tmpfile: Relicense under LGPL.
11125         * modules/tmpfile (License): Change to LGPL.
11126         With permission from Ben Pfaff:
11127         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11128
11129         isfinite: Relicense under LGPL.
11130         * modules/isfinite (License): Change to LGPL.
11131         With permission from Ben Pfaff, Bruno Haible:
11132         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11134
11135         acosl..tanl: Relicense under LGPL.
11136         * modules/acosl (License): Change to LGPL.
11137         * modules/asinl (License): Likewise.
11138         * modules/atanl (License): Likewise.
11139         * modules/cosl (License): Likewise.
11140         * modules/expl (License): Likewise.
11141         * modules/logl (License): Likewise.
11142         * modules/sinl (License): Likewise.
11143         * modules/sqrtl (License): Likewise.
11144         * modules/tanl (License): Likewise.
11145         Source code originally from glibc and Paolo Bonzini. Agreements:
11146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11148
11149 2011-05-05  Bruno Haible  <bruno@clisp.org>
11150
11151         signal: Define sighandler_t.
11152         * lib/signal.in.h (sighandler_t): New type.
11153         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11154         whether sighandler_t is defined.
11155         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11156         * modules/signal (Depends-on): Add extensions.
11157         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11158         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11159         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11160
11161 2011-05-05  Eric Blake  <eblake@redhat.com>
11162
11163         maint: remove useless REPLACE_*_H macros
11164         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11165         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11166         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11167         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11168         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11169         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11170         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11171         * m4/btowc.m4: Update callers.
11172         * m4/dirfd.m4: Likewise.
11173         * m4/duplocale.m4: Likewise.
11174         * m4/fchdir.m4: Likewise.
11175         * m4/fdopendir.m4: Likewise.
11176         * m4/inet_ntop.m4: Likewise.
11177         * m4/inet_pton.m4: Likewise.
11178         * m4/ioctl.m4: Likewise.
11179         * m4/mbrlen.m4: Likewise.
11180         * m4/mbrtowc.m4: Likewise.
11181         * m4/mbsinit.m4: Likewise.
11182         * m4/mbsnrtowcs.m4: Likewise.
11183         * m4/mbsrtowcs.m4: Likewise.
11184         * m4/poll.m4: Likewise.
11185         * m4/setlocale.m4: Likewise.
11186         * m4/wcrtomb.m4: Likewise.
11187         * m4/wcsnrtombs.m4: Likewise.
11188         * m4/wcsrtombs.m4: Likewise.
11189         * m4/wctob.m4: Likewise.
11190         * m4/wcwidth.m4: Likewise.
11191         * modules/posix_spawn: Likewise.
11192         * modules/posix_spawn_file_actions_addclose: Likewise.
11193         * modules/posix_spawn_file_actions_adddup2: Likewise.
11194         * modules/posix_spawn_file_actions_addopen: Likewise.
11195         * modules/posix_spawn_file_actions_destroy: Likewise.
11196         * modules/posix_spawn_file_actions_init: Likewise.
11197         * modules/posix_spawnattr_destroy: Likewise.
11198         * modules/posix_spawnattr_getflags: Likewise.
11199         * modules/posix_spawnattr_getpgroup: Likewise.
11200         * modules/posix_spawnattr_getschedparam: Likewise.
11201         * modules/posix_spawnattr_getschedpolicy: Likewise.
11202         * modules/posix_spawnattr_getsigdefault: Likewise.
11203         * modules/posix_spawnattr_getsigmask: Likewise.
11204         * modules/posix_spawnattr_init: Likewise.
11205         * modules/posix_spawnattr_setflags: Likewise.
11206         * modules/posix_spawnattr_setpgroup: Likewise.
11207         * modules/posix_spawnattr_setschedparam: Likewise.
11208         * modules/posix_spawnattr_setschedpolicy: Likewise.
11209         * modules/posix_spawnattr_setsigdefault: Likewise.
11210         * modules/posix_spawnattr_setsigmask: Likewise.
11211         * modules/posix_spawnp: Likewise.
11212
11213 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11214
11215         Add option to do-release-commit-and-tag to specify branch.
11216         * build-aux/do-release-commit-and-tag: Add --branch.
11217
11218 2011-05-03  Bruno Haible  <bruno@clisp.org>
11219
11220         Avoid unnecessary compilation units, through conditional dependencies.
11221         * modules/accept (Depends-on): Add conditions to the dependencies.
11222         * modules/acosl (Depends-on): Likewise.
11223         * modules/argz (Depends-on): Likewise.
11224         * modules/asinl (Depends-on): Likewise.
11225         * modules/atanl (Depends-on): Likewise.
11226         * modules/atoll (Depends-on): Likewise.
11227         * modules/bind (Depends-on): Likewise.
11228         * modules/btowc (Depends-on): Likewise.
11229         * modules/canonicalize-lgpl (Depends-on): Likewise.
11230         * modules/ceil (Depends-on): Likewise.
11231         * modules/ceilf (Depends-on): Likewise.
11232         * modules/ceill (Depends-on): Likewise.
11233         * modules/chdir-long (Depends-on): Likewise.
11234         * modules/chown (Depends-on): Likewise.
11235         * modules/close (Depends-on): Likewise.
11236         * modules/connect (Depends-on): Likewise.
11237         * modules/cosl (Depends-on): Likewise.
11238         * modules/dirfd (Depends-on): Likewise.
11239         * modules/dprintf (Depends-on): Likewise.
11240         * modules/dprintf-posix (Depends-on): Likewise.
11241         * modules/error (Depends-on): Likewise.
11242         * modules/euidaccess (Depends-on): Likewise.
11243         * modules/expl (Depends-on): Likewise.
11244         * modules/faccessat (Depends-on): Likewise.
11245         * modules/fchdir (Depends-on): Likewise.
11246         * modules/fclose (Depends-on): Likewise.
11247         * modules/fcntl (Depends-on): Likewise.
11248         * modules/fdopendir (Depends-on): Likewise.
11249         * modules/fflush (Depends-on): Likewise.
11250         * modules/floor (Depends-on): Likewise.
11251         * modules/floorf (Depends-on): Likewise.
11252         * modules/floorl (Depends-on): Likewise.
11253         * modules/fnmatch (Depends-on): Likewise.
11254         * modules/fopen (Depends-on): Likewise.
11255         * modules/fprintf-posix (Depends-on): Likewise.
11256         * modules/frexp (Depends-on): Likewise.
11257         * modules/frexp-nolibm (Depends-on): Likewise.
11258         * modules/frexpl (Depends-on): Likewise.
11259         * modules/frexpl-nolibm (Depends-on): Likewise.
11260         * modules/fseek (Depends-on): Likewise.
11261         * modules/fsusage (Depends-on): Likewise.
11262         * modules/ftell (Depends-on): Likewise.
11263         * modules/ftello (Depends-on): Likewise.
11264         * modules/futimens (Depends-on): Likewise.
11265         * modules/getcwd (Depends-on): Likewise.
11266         * modules/getcwd-lgpl (Depends-on): Likewise.
11267         * modules/getdelim (Depends-on): Likewise.
11268         * modules/getdomainname (Depends-on): Likewise.
11269         * modules/getgroups (Depends-on): Likewise.
11270         * modules/gethostname (Depends-on): Likewise.
11271         * modules/getline (Depends-on): Likewise.
11272         * modules/getlogin_r (Depends-on): Likewise.
11273         * modules/getopt-posix (Depends-on): Likewise.
11274         * modules/getpeername (Depends-on): Likewise.
11275         * modules/getsockname (Depends-on): Likewise.
11276         * modules/getsockopt (Depends-on): Likewise.
11277         * modules/getsubopt (Depends-on): Likewise.
11278         * modules/getusershell (Depends-on): Likewise.
11279         * modules/glob (Depends-on): Likewise.
11280         * modules/grantpt (Depends-on): Likewise.
11281         * modules/iconv_open (Depends-on): Likewise.
11282         * modules/iconv_open-utf (Depends-on): Likewise.
11283         * modules/inet_ntop (Depends-on): Likewise.
11284         * modules/inet_pton (Depends-on): Likewise.
11285         * modules/ioctl (Depends-on): Likewise.
11286         * modules/isapipe (Depends-on): Likewise.
11287         * modules/isfinite (Depends-on): Likewise.
11288         * modules/isinf (Depends-on): Likewise.
11289         * modules/lchown (Depends-on): Likewise.
11290         * modules/ldexpl (Depends-on): Likewise.
11291         * modules/link (Depends-on): Likewise.
11292         * modules/linkat (Depends-on): Likewise.
11293         * modules/listen (Depends-on): Likewise.
11294         * modules/logl (Depends-on): Likewise.
11295         * modules/lstat (Depends-on): Likewise.
11296         * modules/mbrlen (Depends-on): Likewise.
11297         * modules/mbrtowc (Depends-on): Likewise.
11298         * modules/mbsinit (Depends-on): Likewise.
11299         * modules/mbsnrtowcs (Depends-on): Likewise.
11300         * modules/mbsrtowcs (Depends-on): Likewise.
11301         * modules/mbtowc (Depends-on): Likewise.
11302         * modules/memcmp (Depends-on): Likewise.
11303         * modules/mkdir (Depends-on): Likewise.
11304         * modules/mkdtemp (Depends-on): Likewise.
11305         * modules/mkfifo (Depends-on): Likewise.
11306         * modules/mkfifoat (Depends-on): Likewise.
11307         * modules/mknod (Depends-on): Likewise.
11308         * modules/mkostemp (Depends-on): Likewise.
11309         * modules/mkostemps (Depends-on): Likewise.
11310         * modules/mkstemp (Depends-on): Likewise.
11311         * modules/mkstemps (Depends-on): Likewise.
11312         * modules/mktime (Depends-on): Likewise.
11313         * modules/nanosleep (Depends-on): Likewise.
11314         * modules/open (Depends-on): Likewise.
11315         * modules/openat (Depends-on): Likewise.
11316         * modules/perror (Depends-on): Likewise.
11317         * modules/poll (Depends-on): Likewise.
11318         * modules/popen (Depends-on): Likewise.
11319         * modules/posix_spawn (Depends-on): Likewise.
11320         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11321         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11322         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11323         * modules/posix_spawnp (Depends-on): Likewise.
11324         * modules/pread (Depends-on): Likewise.
11325         * modules/printf-posix (Depends-on): Likewise.
11326         * modules/ptsname (Depends-on): Likewise.
11327         * modules/putenv (Depends-on): Likewise.
11328         * modules/pwrite (Depends-on): Likewise.
11329         * modules/readline (Depends-on): Likewise.
11330         * modules/readlink (Depends-on): Likewise.
11331         * modules/readlinkat (Depends-on): Likewise.
11332         * modules/recv (Depends-on): Likewise.
11333         * modules/recvfrom (Depends-on): Likewise.
11334         * modules/regex (Depends-on): Likewise.
11335         * modules/remove (Depends-on): Likewise.
11336         * modules/rename (Depends-on): Likewise.
11337         * modules/renameat (Depends-on): Likewise.
11338         * modules/rmdir (Depends-on): Likewise.
11339         * modules/round (Depends-on): Likewise.
11340         * modules/roundf (Depends-on): Likewise.
11341         * modules/roundl (Depends-on): Likewise.
11342         * modules/rpmatch (Depends-on): Likewise.
11343         * modules/select (Depends-on): Likewise.
11344         * modules/send (Depends-on): Likewise.
11345         * modules/sendto (Depends-on): Likewise.
11346         * modules/setenv (Depends-on): Likewise.
11347         * modules/setlocale (Depends-on): Likewise.
11348         * modules/setsockopt (Depends-on): Likewise.
11349         * modules/shutdown (Depends-on): Likewise.
11350         * modules/sigaction (Depends-on): Likewise.
11351         * modules/signbit (Depends-on): Likewise.
11352         * modules/sigprocmask (Depends-on): Likewise.
11353         * modules/sinl (Depends-on): Likewise.
11354         * modules/sleep (Depends-on): Likewise.
11355         * modules/snprintf (Depends-on): Likewise.
11356         * modules/snprintf-posix (Depends-on): Likewise.
11357         * modules/socket (Depends-on): Likewise.
11358         * modules/sprintf-posix (Depends-on): Likewise.
11359         * modules/sqrtl (Depends-on): Likewise.
11360         * modules/stat (Depends-on): Likewise.
11361         * modules/strchrnul (Depends-on): Likewise.
11362         * modules/strdup-posix (Depends-on): Likewise.
11363         * modules/strerror (Depends-on): Likewise.
11364         * modules/strerror_r-posix (Depends-on): Likewise.
11365         * modules/strndup (Depends-on): Likewise.
11366         * modules/strnlen (Depends-on): Likewise.
11367         * modules/strptime (Depends-on): Likewise.
11368         * modules/strsep (Depends-on): Likewise.
11369         * modules/strsignal (Depends-on): Likewise.
11370         * modules/strstr-simple (Depends-on): Likewise.
11371         * modules/strtod (Depends-on): Likewise.
11372         * modules/strtoimax (Depends-on): Likewise.
11373         * modules/strtok_r (Depends-on): Likewise.
11374         * modules/strtoumax (Depends-on): Likewise.
11375         * modules/symlink (Depends-on): Likewise.
11376         * modules/symlinkat (Depends-on): Likewise.
11377         * modules/tanl (Depends-on): Likewise.
11378         * modules/tcgetsid (Depends-on): Likewise.
11379         * modules/tmpfile (Depends-on): Likewise.
11380         * modules/trunc (Depends-on): Likewise.
11381         * modules/truncf (Depends-on): Likewise.
11382         * modules/truncl (Depends-on): Likewise.
11383         * modules/uname (Depends-on): Likewise.
11384         * modules/unlink (Depends-on): Likewise.
11385         * modules/unlockpt (Depends-on): Likewise.
11386         * modules/unsetenv (Depends-on): Likewise.
11387         * modules/usleep (Depends-on): Likewise.
11388         * modules/utimensat (Depends-on): Likewise.
11389         * modules/vasprintf (Depends-on): Likewise.
11390         * modules/vdprintf (Depends-on): Likewise.
11391         * modules/vdprintf-posix (Depends-on): Likewise.
11392         * modules/vfprintf-posix (Depends-on): Likewise.
11393         * modules/vprintf-posix (Depends-on): Likewise.
11394         * modules/vsnprintf (Depends-on): Likewise.
11395         * modules/vsnprintf-posix (Depends-on): Likewise.
11396         * modules/vsprintf-posix (Depends-on): Likewise.
11397         * modules/wcrtomb (Depends-on): Likewise.
11398         * modules/wcscasecmp (Depends-on): Likewise.
11399         * modules/wcscspn (Depends-on): Likewise.
11400         * modules/wcsdup (Depends-on): Likewise.
11401         * modules/wcsncasecmp (Depends-on): Likewise.
11402         * modules/wcsnrtombs (Depends-on): Likewise.
11403         * modules/wcspbrk (Depends-on): Likewise.
11404         * modules/wcsrtombs (Depends-on): Likewise.
11405         * modules/wcsspn (Depends-on): Likewise.
11406         * modules/wcsstr (Depends-on): Likewise.
11407         * modules/wcstok (Depends-on): Likewise.
11408         * modules/wcswidth (Depends-on): Likewise.
11409         * modules/wctob (Depends-on): Likewise.
11410         * modules/wctomb (Depends-on): Likewise.
11411         * modules/wctype (Depends-on): Likewise.
11412         * modules/wcwidth (Depends-on): Likewise.
11413         * modules/write (Depends-on): Likewise.
11414
11415 2011-05-03  Bruno Haible  <bruno@clisp.org>
11416
11417         Support for conditional dependencies.
11418         * doc/gnulib.texi (Module description): Document the syntax of
11419         conditional dependencies.
11420         * gnulib-tool: New option --conditional-dependencies.
11421         (func_usage): Document it.
11422         (cond_dependencies): New variable.
11423         (func_get_automake_snippet_conditional,
11424         func_get_automake_snippet_unconditional): New functions, extracted from
11425         func_get_automake_snippet.
11426         (func_get_automake_snippet): Use them.
11427         (sed_first_32_chars): New variable.
11428         (func_module_shellfunc_name): New function.
11429         (func_module_shellvar_name): New function.
11430         (func_module_conditional_name): New function.
11431         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11432         func_cond_module_condition): New functions.
11433         (func_modules_transitive_closure): Add support for conditional
11434         dependencies.
11435         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11436         conditional automake snippet in an automake conditional.
11437         (func_emit_autoconf_snippets): Emit shell functions that contain the
11438         code for conditional modules.
11439         (func_import, func_create_testdir): Update specification.
11440
11441 2011-05-03  Eric Blake  <eblake@redhat.com>
11442
11443         test-getaddrinfo: report error information
11444         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11445
11446 2011-05-03  Jim Meyering  <meyering@redhat.com>
11447
11448         bootstrap: avoid build failure when $GZIP is set
11449         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11450         program name.  If defined at all, it is supposed to list gzip options.
11451         Reported by Alan Curry in http://debbugs.gnu.org/8609
11452
11453 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11454
11455         readme-release: new module with release instructions
11456         * modules/readme-release: New module.
11457         * top/README-release: New file, from coreutils, grep, diffutils.
11458         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11459
11460 2011-05-02  Eric Blake  <eblake@redhat.com>
11461
11462         fflush: also replace fclose when fixing fflush
11463         * modules/fflush (Depends-on): Add fclose.
11464         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11465         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11466         memstreams with no backing fd.
11467         * doc/posix-functions/fclose.texi (fclose): Document the use of
11468         fflush module to fix the bug.
11469         * tests/test-fclose.c (main): Relax test when fclose is used in
11470         isolation.
11471
11472         fclose: add some tests
11473         * modules/fclose-tests: New test module.
11474         * tests/test-fclose.c: New file.
11475         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11476
11477         fclose: reduced dependencies
11478         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11479         simpler lseek.
11480         * lib/fclose.c (rpl_fclose): Likewise.
11481         Reported by Simon Josefsson.
11482
11483         exit: drop remaining clients
11484         * modules/argmatch (Depends-on): Replace exit with stdlib.
11485         * modules/copy-file (Depends-on): Likewise.
11486         * modules/execute (Depends-on): Likewise.
11487         * modules/exitfail (Depends-on): Likewise.
11488         * modules/obstack (Depends-on): Likewise.
11489         * modules/pagealign_alloc (Depends-on): Likewise.
11490         * modules/pipe-filter-gi (Depends-on): Likewise.
11491         * modules/pipe-filter-ii (Depends-on): Likewise.
11492         * modules/savewd (Depends-on): Likewise.
11493         * modules/spawn-pipe (Depends-on): Likewise.
11494         * modules/wait-process (Depends-on): Likewise.
11495         * modules/xsetenv (Depends-on): Likewise.
11496         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11497         * modules/git-merge-changelog (Depends-on): Likewise.
11498         * modules/long-options (Depends-on): Likewise.
11499         * modules/pt_chown (Depends-on): Likewise.
11500         * modules/sysexits (Depends-on): Likewise.
11501
11502         freading: relax license from LGPLv3+ to LGPLv2+
11503         * modules/freading (License): Relax LGPL version.
11504
11505 2011-05-02  Bruno Haible  <bruno@clisp.org>
11506
11507         fchdir: Remove unused dependencies.
11508         * modules/fchdir (Depends-on): Remove include_next.
11509
11510 2011-05-02  Bruno Haible  <bruno@clisp.org>
11511
11512         gnulib-tool: Refactor.
11513         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11514         from func_emit_autoconf_snippets.
11515         (func_emit_autoconf_snippets): Use it.
11516
11517 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11518
11519         * NEWS: Document removal of 'exit'.
11520         * modules/exit: Remove file.
11521
11522 2011-05-01  Bruno Haible  <bruno@clisp.org>
11523
11524         Update DEPENDENCIES.
11525         * DEPENDENCIES (gettext): Recommend the newest release.
11526         Reported by Simon Josefsson.
11527
11528 2011-05-01  Bruno Haible  <bruno@clisp.org>
11529
11530         gnulib-tool: Reduce code duplication.
11531         * gnulib-tool (func_emit_autoconf_snippets): New function.
11532         (func_import, func_create_testdir): Use it.
11533
11534 2011-04-30  Eric Blake  <eblake@redhat.com>
11535
11536         fclose: don't fail on non-seekable input stream
11537         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11538         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11539         since fflush is allowed to fail in that case.
11540
11541 2011-04-30  Bruno Haible  <bruno@clisp.org>
11542
11543         dup3: cleanup
11544         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11545
11546 2011-04-30  Bruno Haible  <bruno@clisp.org>
11547
11548         netdb: Make it work in C++ mode.
11549         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11550         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11551         module.
11552         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11553         gl_MODULE_INDICATOR_FOR_TESTS.
11554         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11555         * modules/netdb-c++-tests: New file.
11556         * tests/test-netdb-c++.cc: New file.
11557
11558 2011-04-30  Bruno Haible  <bruno@clisp.org>
11559
11560         New modules 'vfscanf', 'vscanf'.
11561         * modules/vfscanf: New file.
11562         * modules/vscanf: New file.
11563         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11564         here.
11565         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11566         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11567
11568 2011-04-30  Bruno Haible  <bruno@clisp.org>
11569
11570         passfd: Add comments.
11571         * lib/passfd.c: Add comments about platforms.
11572
11573 2011-04-30  Bruno Haible  <bruno@clisp.org>
11574
11575         sys_uio: Make <sys/uio.h> self-contained.
11576         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11577         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11578
11579 2011-04-30  Bruno Haible  <bruno@clisp.org>
11580
11581         sys_socket: Ensure 'struct iovec' definition.
11582         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11583         <sys/socket.h>.
11584         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11585
11586 2011-04-30  Bruno Haible  <bruno@clisp.org>
11587
11588         sys_uio: Protect definition of 'struct iovec'.
11589         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11590         it as a C struct.
11591
11592 2011-04-30  Bruno Haible  <bruno@clisp.org>
11593
11594         manywarnings: fix indentation
11595         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11596
11597 2011-04-30  Pádraig Brady <P@draigBrady.com>
11598
11599         manywarnings: add -Wno-missing-field-initializers if needed.
11600         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11601         option if it's needed to allow initialization with { 0, }
11602
11603 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11604
11605         announce-gen: cosmetic improvement
11606         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11607
11608 2011-04-29  Jim Meyering  <meyering@redhat.com>
11609
11610         vc-list-files: indent with spaces, not TABs
11611         * build-aux/vc-list-files: Convert leading TABs to spaces,
11612         to match the style of most other files in gnulib.
11613
11614         announce-gen: indent with spaces, not TABs
11615         * build-aux/announce-gen: Convert all TABs to spaces, to match
11616         the style of most other files in gnulib.
11617
11618 2011-04-29  Eric Blake  <eblake@redhat.com>
11619
11620         quotearg: avoid uninitialized variable use
11621         * lib/quotearg.c (quoting_options_from_style): Initialize
11622         remaining fields, and ensure that custom styles are only used via
11623         quoting_options rather than quoting_style.
11624
11625 2011-04-29  Jim Meyering  <meyering@redhat.com>
11626
11627         maint.mk: remove unused VC-tag variable
11628         * top/maint.mk (VC-tag): Remove unused variable.
11629
11630 2011-04-29  Bruno Haible  <bruno@clisp.org>
11631
11632         netdb: fix gai_strerror replacements
11633         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11634         * modules/netdb: Substitute it.
11635
11636 2011-04-29  Jim Meyering  <meyering@redhat.com>
11637
11638         test-getcwd.c: avoid new set-but-not-used warning
11639         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11640         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11641         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11642         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11643
11644         test-hash.c: avoid a new shadowing warning
11645         * tests/test-hash.c (main): Don't shadow "dup".
11646
11647 2011-04-28  Eric Blake  <eblake@redhat.com>
11648
11649         getaddrinfo: fix gai_strerror signature
11650         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11651         and work around mingw with UNICODE defined.
11652         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11653         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11654         * modules/netdb (Makefile.am): Substitute it.
11655         * lib/netdb.in.h (gai_strerror): Declare replacement.
11656         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11657         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11658         the fix.
11659
11660         getsockopt: avoid compiler warning
11661         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11662         Reported by Matthias Bolte.
11663
11664         tests: drop unused link dependency
11665         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11666         * modules/dirent-safer-tests (Makefile.am): Likewise.
11667         * modules/fdopendir-tests (Makefile.am): Likewise.
11668         * modules/mkfifoat-tests (Makefile.am): Likewise.
11669         * modules/openat-safer-tests (Makefile.am): Likewise.
11670         * modules/openat-tests (Makefile.am): Likewise.
11671         * modules/readlinkat-tests (Makefile.am): Likewise.
11672         * modules/symlinkat-tests (Makefile.am): Likewise.
11673         * modules/linkat-tests (Makefile.am): Likewise.
11674         (Depends-on): Switch to filenamecat-lgpl.
11675         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11676         LIBINTL.
11677         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11678         * tests/test-linkat.c (main): Don't require xalloc.
11679
11680         hash, mgetgroups: drop xalloc dependency
11681         * lib/hash.c (includes): Adjust includes.
11682         * lib/mgetgroups.c (includes): Likewise.
11683         (xgetgroups): Move...
11684         * lib/xgetgroups.c: ...to new file.
11685         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11686         * modules/xgetgroups: New file, split from...
11687         * modules/mgetgroups: ...here.
11688         (Depends-on): Add xalloc-oversized.
11689         * modules/hash (Depends-on): Likewise.
11690         * modules/hash-tests (Depends-on): Drop xalloc.
11691         (test_hash_LDADD): Drop unused library.
11692         * tests/test-hash.c (main): Break xalloc dependency.
11693         (includes): Drop unused include.
11694
11695         xalloc-oversized: new module
11696         * modules/xalloc-oversized: New module.
11697         * modules/xalloc (Depends-on): Add it.
11698         * lib/xalloc.h (xalloc_oversized): Move...
11699         * lib/xalloc-oversized.h: ...into new file.
11700
11701         utimecmp: drop dependency on xmalloc
11702         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11703         due to memory pressure.
11704         * modules/utimecmp (Depends-on): Drop xalloc.
11705
11706 2011-04-27  Eric Blake  <eblake@redhat.com>
11707
11708         getcwd: fix mingw bugs
11709         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11710         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11711         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11712
11713 2011-04-27  Bruno Haible  <bruno@clisp.org>
11714
11715         mkstemps: Ensure declaration on MacOS X 10.5.
11716         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11717         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11718         MacOS X.
11719
11720 2011-04-27  Bruno Haible  <bruno@clisp.org>
11721
11722         mkstemp: More documentation.
11723         * doc/posix-functions/mkstemp.texi: Document header file problem on
11724         MacOS X.
11725
11726 2011-04-27  Bruno Haible  <bruno@clisp.org>
11727
11728         mkstemp: Tweak configure message when cross-compiling.
11729         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11730         result as a guess.
11731
11732 2011-04-27  Bruno Haible  <bruno@clisp.org>
11733
11734         clean-temp: Clarify what it does.
11735         * lib/clean-temp.h: Add more comments.
11736         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11737         module.
11738         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11739         * doc/glibc-functions/mkstemps.texi: Likewise.
11740         * doc/glibc-functions/mkostemps.texi: Likewise.
11741
11742 2011-04-27  Eric Blake  <eblake@redhat.com>
11743
11744         fchdir: avoid extra chdir and fix test
11745         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11746         getcwd-lgpl.
11747         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11748         have to be canonical.
11749         (canonicalize_file_name): Drop unused macro.
11750         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11751
11752         filenamecat-lgpl: fix licence
11753         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11754         when it was first created.
11755
11756         linkat, renameat: add missing dependency
11757         * modules/linkat (Depends-on): Require getcwd-lgpl.
11758         * modules/renameat (Depends-on): Likewise.
11759
11760         tests: reduce dependencies
11761         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11762         * tests/test-renameat.c (main): Likewise.
11763         * modules/linkat-tests (Depends-on): Relax dependency.
11764         * modules/renameat-tests (Depends-on): Likewise.
11765         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11766         dependency explicit.
11767
11768         save-cwd: reduce default dependency
11769         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11770         * lib/save-cwd.c: Update comments.
11771         * NEWS: Document the semantic change.
11772
11773         getcwd: enhance tests
11774         * tests/test-getcwd-lgpl.c: New file, taken from...
11775         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11776         repeat long path stress tests from m4 probe.
11777         * modules/getcwd-lgpl-tests: New module.
11778         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11779         * m4/getcwd-abort-bug.m4: Update comment.
11780         * m4/getcwd-path-max.m4: Likewise.
11781
11782         getcwd-lgpl: new module
11783         * modules/getcwd-lgpl: New module.
11784         * lib/getcwd-lgpl.c: New file.
11785         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11786         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11787         * modules/getcwd (configure.ac): Set C witness.
11788         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11789
11790         getcwd: tweak comments
11791         * m4/getcwd-abort-bug.m4: Fix comments.
11792         * m4/getcwd-path-max.m4: Likewise.
11793         * m4/getcwd.m4: Likewise.
11794
11795 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11796         and Eric Blake  <eblake@redhat.com>
11797
11798         mkstemp: replace if system version uses wrong permissions
11799         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11800         read/write mode bits set in file created by mkstemp.
11801         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11802
11803 2011-04-27  Eric Blake  <eblake@redhat.com>
11804
11805         passfd: avoid compiler warning
11806         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11807         Reported by Laine Stump.
11808
11809 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11810
11811         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11812         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11813
11814 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11815         and Eric Blake  <eblake@redhat.com>
11816
11817         mkstemp: mention clean-temp module
11818         * lib/mkstemp.c: Add comment.
11819         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11820
11821 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11822
11823         inttypes: also provide default values for 32-bit tests
11824         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11825         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11826
11827 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11828
11829         strtoumax: remove dependency on strtoimax
11830         This is like the strtoull change of yesterday.
11831         * modules/strtoumax (Files): Add lib/strtoimax.c.
11832         (Depends-on): Remove strtoimax and add verify.
11833
11834         inttypes-incomplete: new module
11835         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11836         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11837         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11838         of gl_INTTYPES_H.
11839         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11840         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11841         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11842         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11843         * modules/strtoumax, modules/xstrtol (Depends-on):
11844         Depend on inttypes-incomplete, not inttypes.
11845         * modules/inttypes-incomplete: New module, containing the contents
11846         of the old modules/inttypes module, except that the Files: section
11847         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11848         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11849         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11850         (Depends-on): Depend only on inttypes-incomplete.
11851         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11852
11853         inttypes: omit now-redundant strtoimax and strtoumax work
11854         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11855         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11856
11857         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11858         This supports apps that need pointers to strtoimax and strtoumax,
11859         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11860         nonexistent functions.  See
11861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11862         et seq.
11863         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11864         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11865         a macro.
11866         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11867
11868 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11869
11870         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11871
11872 2011-04-25  Bruno Haible  <bruno@clisp.org>
11873
11874         strtol, strtoul: Mark modules as obsolete.
11875         * modules/strtol (Status, Notice): New sections.
11876         * modules/strtoul (Status, Notice): New sections.
11877
11878 2011-04-25  Bruno Haible  <bruno@clisp.org>
11879
11880         strtod: Remove check for strtod, unless supporting old platforms.
11881         * modules/strtod-obsolete: New file.
11882         * m4/strtod-obsolete.m4: New file.
11883         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11884         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11885         * modules/strtod (Depends-on): Add strtod-obsolete.
11886         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11887
11888 2011-04-25  Bruno Haible  <bruno@clisp.org>
11889
11890         strcase: Make module obsolete.
11891         * modules/strcase (Status, Notice): New sections.
11892
11893 2011-04-25  Bruno Haible  <bruno@clisp.org>
11894
11895         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11896         * modules/dup2-obsolete: New file.
11897         * m4/dup2-obsolete.m4: New file.
11898         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11899         gl_FUNC_DUP2_OBSOLETE is not also defined.
11900         * modules/dup2 (Depends-on): Add dup2-obsolete.
11901         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11902
11903 2011-04-25  Bruno Haible  <bruno@clisp.org>
11904
11905         strnlen: Avoid memchr related link error on old obsolete platforms.
11906         * modules/memchr-obsolete: New file.
11907         * m4/memchr-obsolete.m4: New file.
11908         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11909         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11910         * modules/memchr (Depends-on): Add memchr-obsolete.
11911         * modules/strnlen (Depends-on): Likewise.
11912         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11913
11914 2011-04-25  Jim Meyering  <meyering@redhat.com>
11915
11916         maint.mk: makefile_at_at_check extend and clean up
11917         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11918         in addition to */Makefile.am.
11919         Exempt legitimate uses of @VAR@ notation, e.g.,
11920         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11921         Remove obsolete coreutils-specific comment.
11922         Prompted by discussion here:
11923         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11924
11925 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11926
11927         strtoul: remove dependency on strtol
11928         This is so that 'configure' need not check for strtol merely because
11929         the application needs strtoul.
11930         * modules/strtoul (Files): Add lib/strtol.c.
11931         (Depends-on): Remove strtol.
11932
11933         strtoull: remove dependency on strtoul
11934         This is like the strtoll change.
11935         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11936         (Depends-on): Remove strtoul.
11937
11938         strtoll: remove dependency on strtol
11939         This is so that 'configure' need not check for strtol merely because
11940         the application needs strtoll.
11941         * modules/strtoll (Files): Add lib/strtol.c.
11942         (Depends-on): Remove strtol.
11943
11944 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11945
11946         inttypes: Move some configure check to module 'imaxdiv'.
11947         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11948         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11949         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11950
11951 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11952
11953         inttypes: Move some configure check to module 'imaxabs'.
11954         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11955         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11956         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11957
11958 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11959
11960         inttypes: Remove configure tests that are not needed since 2009-12-31.
11961         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11962         gl_cv_header_working_inttypes_h.
11963
11964 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11965
11966         * modules/strnlen (Depends-on): Remove memchr.
11967         The strnlen implementation doesn't need the memchr module's fixes; see
11968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11969
11970         strtol: remove dependency on wchar
11971         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11972         * modules/strtol (Depends-on): Remove wchar.
11973
11974 2011-04-21  Eric Blake  <eblake@redhat.com>
11975
11976         passfd: fix test regression on Linux
11977         * modules/passfd-tests (configure.ac): Correct socketpair check.
11978
11979         passfd: speed up configure and drop unused code
11980         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11981         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11982         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11983         Instead of probing at configure for unix_scm_rights_bsd44_way,
11984         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11985         check to a struct member probe.
11986         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11987         (sendfd, recvfd): Update preprocessor checks.
11988         * modules/passfd (Files): Reflect rename, and drop unused file.
11989         (Depends-on): Drop unused dependency.
11990
11991         passfd: allow compilation on mingw
11992         * modules/sys_socket (Depends-on): Add sys_uio.
11993         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11994         iovec and a minimal struct msghdr.
11995         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11996         * tests/test-sys_socket.c (main): Enhance test.
11997         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11998         guaranteed to provide what we need.
11999         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12000         * modules/passfd-tests (Depends-on): Add sys_wait.
12001         * tests/test-passfd.c (main): Skip test on mingw, for now.
12002         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12003         partial 'struct msghdr' implementation.
12004
12005         sys_uio: new module
12006         * modules/sys_uio: New module.
12007         * modules/sys_uio-tests: Likewise.
12008         * lib/sys_uio.in.h: New file.
12009         * m4/sys_uio_h.m4: Likewise.
12010         * tests/test-sys_uio.c: Likewise.
12011         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12012         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12013
12014 2011-04-20  Jim Meyering  <meyering@redhat.com>
12015
12016         useless-if-before-free: avoid false-positive
12017         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12018         disjunct so that it too requires a terminating ";".  Without that,
12019         this script would identify as useless one statement from gcc that
12020         was not:
12021           if (aligned_ptr)
12022             free (((void **) aligned_ptr) [-1]);
12023
12024 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12025
12026         doc: update users.txt.
12027         * users.txt: Add barcode.
12028
12029 2011-04-19  Bruno Haible  <bruno@clisp.org>
12030
12031         ioctl: Remove link dependency on native Windows.
12032         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12033         (gl_close_fn, gl_ioctl_fn): New types.
12034         (struct fd_hook): Renamed from struct close_hook. Change type of
12035         private_close_fn field. Add private_ioctl_fn field.
12036         (close_hook_fn): Add parameter for primary close method.
12037         (execute_close_hooks, execute_all_close_hooks): Likewise.
12038         (ioctl_hook_fn): New type.
12039         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12040         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12041         argument.
12042         (unregister_fd_hook): Renamed from unregister_close_hook.
12043         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12044         Don't include <unistd.h>.
12045         (close): Remove undef.
12046         (anchor): Update.
12047         (execute_close_hooks): Add argument for primary close method.
12048         (execute_all_close_hooks): Likewise.
12049         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12050         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12051         argument. Allow each argument to be NULL.
12052         (unregister_fd_hook): Renamed from unregister_close_hook.
12053         * lib/close.c (rpl_close): Pass 'close' function pointer to
12054         execute_all_close_hooks.
12055         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12056         (primary_ioctl): New function.
12057         (ioctl): Don't call ioctlsocket here. Instead, call
12058         execute_all_ioctl_hooks.
12059         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12060         close method.
12061         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12062         (fd_sockets_hook): Renamed from close_sockets_hook.
12063         (gl_sockets_startup, gl_sockets_cleanup): Update.
12064         * modules/fd-hook: Renamed from modules/close-hook. Update.
12065         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12066         * modules/sockets (Depends-on): Likewise.
12067         * modules/ioctl (Depends-on): Add fd-hook.
12068         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12069         GNULIB_SOCKET.
12070
12071 2011-04-19  Bruno Haible  <bruno@clisp.org>
12072
12073         Move the support of O_NONBLOCK in open() to the 'open' module.
12074         * modules/nonblocking (Depends-on): Remove 'open'.
12075         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12076         gl_cv_have_open_O_NONBLOCK.
12077         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12078         O_NONBLOCK support.
12079         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12080
12081 2011-04-17  Bruno Haible  <bruno@clisp.org>
12082
12083         pipe2: Simplify code.
12084         * lib/pipe2.c (pipe2): Reduce code duplication.
12085
12086 2011-04-17  Bruno Haible  <bruno@clisp.org>
12087
12088         nonblocking: Add comment.
12089         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12090
12091 2011-04-17  Bruno Haible  <bruno@clisp.org>
12092
12093         nonblocking: Add tests for sockets.
12094         * tests/test-nonblocking-socket.sh: New file.
12095         * tests/test-nonblocking-socket-main.c: New file.
12096         * tests/test-nonblocking-socket-child.c: New file.
12097         * tests/test-nonblocking-socket.h: New file.
12098         * tests/socket-server.h: New file.
12099         * tests/socket-client.h: New file.
12100         * modules/nonblocking-socket-tests: New file.
12101         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12102
12103 2011-04-17  Bruno Haible  <bruno@clisp.org>
12104
12105         nonblocking: Add tests for pipes.
12106         * tests/test-nonblocking-pipe.sh: New file.
12107         * tests/test-nonblocking-pipe-main.c: New file.
12108         * tests/test-nonblocking-pipe-child.c: New file.
12109         * tests/test-nonblocking-pipe.h: New file.
12110         * tests/test-nonblocking-writer.h: New file.
12111         * tests/test-nonblocking-reader.h: New file.
12112         * tests/test-nonblocking-misc.h: New file.
12113         * modules/nonblocking-pipe-tests: New file.
12114         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12115
12116 2011-04-16  Bruno Haible  <bruno@clisp.org>
12117
12118         gettext: Clarify the needed programmer actions.
12119         * modules/gettext (Notice): New field.
12120         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12121
12122 2011-04-16  Bruno Haible  <bruno@clisp.org>
12123
12124         strchrnul: Tweak last commit.
12125         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12126         bug.
12127         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12128         as in _GL_FUNCDECL_SYS.
12129         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12130         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12131
12132 2011-04-15  Eric Blake  <eblake@redhat.com>
12133
12134         strchrnul: work around cygwin bug
12135         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12136         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12137         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12138         * modules/string (Makefile.am): Substitute it.
12139         * lib/string.in.h (strchrnul): Use it.
12140
12141 2011-04-15  Bruno Haible  <bruno@clisp.org>
12142
12143         Don't require lib/stdio-write.c when only module 'stdio' is used.
12144         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12145         invocation.
12146         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12147
12148 2011-04-14  Bruno Haible  <bruno@clisp.org>
12149
12150         Support non-blocking pipe I/O in read() on native Windows.
12151         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12152         (read): New declaration.
12153         * lib/read.c: New file.
12154         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12155         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12156         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12157         vscanf): New declarations.
12158         * lib/stdio-read.c: New file.
12159         * m4/read.m4: New file.
12160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12161         REPLACE_READ.
12162         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12163         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12164         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12165         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12166         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12167         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12168         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12169         * modules/read: New file.
12170         * modules/nonblocking (Files): Add lib/stdio-read.c.
12171         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12172         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12173         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12174         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12175         * modules/pread (Depends-on): Add read.
12176         * modules/safe-read (Depends-on): Likewise.
12177         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12178         gets, scanf, vfscanf, vscanf): Verify signatures.
12179         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12180         problem with non-blocking pipes.
12181         * doc/posix-functions/fgetc.texi: Likewise.
12182         * doc/posix-functions/fgets.texi: Likewise.
12183         * doc/posix-functions/fread.texi: Likewise.
12184         * doc/posix-functions/fscanf.texi: Likewise.
12185         * doc/posix-functions/getc.texi: Likewise.
12186         * doc/posix-functions/getchar.texi: Likewise.
12187         * doc/posix-functions/gets.texi: Likewise.
12188         * doc/posix-functions/scanf.texi: Likewise.
12189         * doc/posix-functions/vfscanf.texi: Likewise.
12190         * doc/posix-functions/vscanf.texi: Likewise.
12191
12192 2011-04-14  Bruno Haible  <bruno@clisp.org>
12193
12194         Support non-blocking pipe I/O in write() on native Windows.
12195         * lib/write.c (rpl_write): Split a write request that failed merely
12196         because the byte count was larger than the pipe buffer's size.
12197         * doc/posix-functions/write.texi: Mention the problem with large byte
12198         counts.
12199
12200 2011-04-14  Bruno Haible  <bruno@clisp.org>
12201
12202         wchar: Ensure that wchar_t gets defined on uClibc.
12203         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12204         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12205
12206 2011-04-13  Bruno Haible  <bruno@clisp.org>
12207
12208         safe-write, full-read: Avoid unnecessary compilation units.
12209         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12210         (Depends-on): Remove safe-read. Add ssize_t.
12211         * modules/full-read (Files): Add lib/full-write.c.
12212         (Depends-on): Add full-write.
12213
12214 2011-04-13  Bruno Haible  <bruno@clisp.org>
12215
12216         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12217         * modules/pwrite (Depends-on): Add 'write'.
12218
12219 2011-04-13  Bruno Haible  <bruno@clisp.org>
12220
12221         Support non-blocking pipe I/O in write() on native Windows.
12222         * lib/unistd.in.h (write): Enable replacement also if
12223         GNULIB_UNISTD_H_NONBLOCKING is 1.
12224         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12225         (rpl_write): When failing to write on a non-blocking pipe, change
12226         errno from ENOSPC to EAGAIN.
12227         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12228         putchar, puts, vfprintf, vprintf): Enable replacement also if
12229         GNULIB_STDIO_H_NONBLOCKING is 1.
12230         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12231         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12232         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12233         CALL_WITH_SIGPIPE_EMULATION.
12234         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12235         * m4/nonblocking.m4: New file.
12236         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12237         for non-blocking I/O support.
12238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12239         GNULIB_UNISTD_H_NONBLOCKING.
12240         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12241         required for non-blocking I/O support.
12242         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12243         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12244         lib/stdio-write.c, m4/asm-underscore.m4.
12245         (Depends-on): Add stdio, unistd.
12246         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12247         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12248         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12249         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12250         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12251         problem with non-blocking pipes.
12252         * doc/posix-functions/fputc.texi: Likewise.
12253         * doc/posix-functions/fputs.texi: Likewise.
12254         * doc/posix-functions/fwrite.texi: Likewise.
12255         * doc/posix-functions/printf.texi: Likewise.
12256         * doc/posix-functions/putc.texi: Likewise.
12257         * doc/posix-functions/putchar.texi: Likewise.
12258         * doc/posix-functions/puts.texi: Likewise.
12259         * doc/posix-functions/vfprintf.texi: Likewise.
12260         * doc/posix-functions/vprintf.texi: Likewise.
12261         * doc/posix-functions/write.texi: Likewise.
12262
12263 2011-04-10  Jim Meyering  <meyering@redhat.com>
12264
12265         maint.mk: prohibit doubled words
12266         Detect them also when they're separated by a newline.
12267         There are 3 ways to customize it:
12268           - disable the test on a per file basis, as usual with rules using
12269             $(VC_LIST_EXCEPT)
12270           - replace the default doubled-word-selecting regexp (affects all files)
12271           - ignore a particular file-vs-doubled-word match
12272         I nearly used that last one to ignore the "is is" match in
12273         coreutils' NEWS file, since the text was "ls -is is ..."
12274         To do that, I would have added this line to cfg.mk:
12275           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12276         but it would have ignored any "is is" match in NEWS.
12277         Low probability, but still...
12278         Instead, I changed the text, slightly:
12279           -  ls -is is now consistent with ls -lis in ignoring values returned
12280           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12281         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12282         (prohibit_doubled_word_): Define.
12283         (sc_prohibit_doubled_word): New rule.
12284         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12285
12286 2011-04-10  Jim Meyering  <meyering@redhat.com>
12287
12288         maint: fix doubled-word typo in comment
12289         * m4/gethostname.m4: s/is is/it is/
12290         * m4/getdomainname.m4: Likewise.
12291
12292 2011-04-10  Jim Meyering  <meyering@redhat.com>
12293
12294         maint: remove doubled word: s/it it/it/
12295         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12296
12297 2011-04-10  Jim Meyering  <meyering@redhat.com>
12298
12299         maint.mk: remove useless semicolon and backslash
12300         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12301         semicolon and backslash.
12302
12303 2011-04-10  Bruno Haible  <bruno@clisp.org>
12304
12305         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12306         * modules/stdint-tests (Depends-on): Add wchar.
12307
12308 2011-04-10  Jim Meyering  <meyering@redhat.com>
12309
12310         maint: remove doubled words in comments, e.g., s/a a/a/
12311         * lib/strptime.c (day_of_the_week): s/the the/the/
12312         * tests/test-chown.h (test_chown): s/a a/a/
12313
12314         test-chown.h: correct a cast
12315         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12316         when the destination is a stat.st_gid.
12317
12318 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12319
12320         getaddrinfo: Fix test for sa_len member.
12321         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12322         include <sys/types.h> before <sys/socket.h>.
12323
12324 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12325
12326         maint: change "can not" to "cannot"
12327         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12328         boundaries.
12329
12330 2011-04-09  Jim Meyering  <meyering@redhat.com>
12331
12332         maint: change "a a" to "a"
12333         * tests/test-lchown.h (test_lchown): s/a a/a/
12334
12335         maint.mk: prohibit \<the the\>
12336         * top/maint.mk (sc_prohibit_the_the): New rule.
12337
12338         maint: fix "the the" in comment
12339         * lib/count-one-bits.h: s/the the/the/
12340
12341         maint: change "can not" to "cannot"
12342         But do not change the occurrences in maintain.texi or in
12343         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12344         * doc/gnulib-tool.texi: s/can not/cannot/
12345         * doc/posix-functions/accept.texi (accept): Likewise.
12346         * doc/posix-functions/socket.texi (socket): Likewise.
12347         * lib/mbrtowc.c: Likewise.
12348
12349         maint.mk: prohibit use of "can not"
12350         * top/maint.mk (sc_prohibit_can_not): New rule.
12351         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12352
12353 2011-04-09  Bruno Haible  <bruno@clisp.org>
12354
12355         careadlinkat: Guard against misuse of careadlinkatcwd.
12356         * lib/careadlinkat.c: Include <stdlib.h>.
12357         (careadlinkatcwd): Check that the fd argument is as expected.
12358
12359 2011-04-09  Bruno Haible  <bruno@clisp.org>
12360
12361         careadlinkat: Use common coding style.
12362         * lib/careadlinkat.c: Move gnulib includes after system includes.
12363
12364 2011-04-09  Bruno Haible  <bruno@clisp.org>
12365
12366         careadlinkat: Clarify specification.
12367         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12368         (careadlinkatcwd): Add comment.
12369         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12370
12371 2011-04-09  Bruno Haible  <bruno@clisp.org>
12372
12373         areadlinkat: Avoid link error on many platforms.
12374         * modules/areadlinkat (Depends-on): Add areadlink.
12375
12376 2011-04-09  Bruno Haible  <bruno@clisp.org>
12377
12378         allocator, careadlinkat: Fix double-inclusion guard.
12379         * lib/allocator.h: Fix double-inclusion guard.
12380         * lib/careadlinkat.h: Likewise.
12381
12382 2011-04-09  Bruno Haible  <bruno@clisp.org>
12383
12384         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12385         * lib/relocwrapper.c: Update dependencies hierarchy.
12386         * build-aux/install-reloc: Update list of files to be compiled.
12387         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12388         lib/allocator.[hc].
12389
12390 2011-04-08  Eric Blake  <eblake@redhat.com>
12391
12392         strftime: silence gnulib-tool warning
12393         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12394
12395 2011-04-08  Bruno Haible  <bruno@clisp.org>
12396
12397         verify: Fix syntax error with GCC 4.6 in C++ mode.
12398         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12399         (HAVE_STATIC_ASSERT): New macro.
12400         (verify_true, verify): Use 'static_assert' if it is supported and
12401         '_Static_assert' is not supported.
12402
12403 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12404
12405         allocator: New module.
12406         * modules/allocator, lib/allocator.c: New files.
12407         * lib/allocator.h (stdlib_allocator): New decl.
12408         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12409         Remove.  Do not include <stdlib.h>.
12410         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12411         * modules/careadlinkat (Files): Remove lib/allocator.h.
12412         (Depends-on): Add allocator.
12413
12414         stdlib: let modules use system malloc, realloc
12415         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12416         if !_GL_USE_STDLIB_ALLOC.
12417         (malloc, realloc): Limit this change to a smaller scope.
12418
12419         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12420         (malloc, realloc): Don't #undef; no longer needed.
12421         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12422         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12423         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12424         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12425         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12426         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12427         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12428         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12429
12430         careadlinkat: rename members to avoid problem
12431         * lib/allocator.h (struct allocator): Rename members from
12432         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12433         and realloc are #define'd.  Reported by Eric Blake in
12434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12435         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12436
12437 2011-04-08  Eric Blake  <eblake@redhat.com>
12438
12439         nonblocking: reduce dependency
12440         * tests/test-nonblocking.c: Only test sockets when in use.
12441         * modules/nonblocking-tests (Depends-on): Drop socket.
12442         (Makefile.am): Link even if sockets are not present.
12443         * modules/pipe2-tests (Makefile.am): Likewise.
12444         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12445
12446         pipe2: fix O_NONBLOCK support on mingw
12447         * modules/pipe2 (Depends-on): Add nonblocking.
12448         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12449         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12450         * tests/test-nonblocking.c (main): Likewise.
12451         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12452
12453         fcntl-h: fix O_ACCMODE on cygwin
12454         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12455         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12456
12457         pipe-filter: drop O_NONBLOCK workarounds
12458         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12459         * modules/pipe-filter-ii (Depends-on): Likewise.
12460         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12461
12462         nonblocking: provide O_NONBLOCK for mingw
12463         * modules/nonblocking (Depends-on): Add open.
12464         (configure.ac): Set new witness macro.
12465         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12466         * modules/fcntl-h (Makefile.am): Substitute it.
12467         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12468         nonblocking module is in use.
12469         * lib/nonblocking.c: Adjust portability test.
12470         * lib/open.c (open): Don't let native open see gnulib flag.
12471         * tests/test-fcntl-h.c (main): Enhance test.
12472         * tests/test-open.h (test_open): Likewise.
12473         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12474
12475         careadlinkat: fix compilation error on mingw
12476         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12477         within struct allocator.
12478
12479 2011-04-06  Eric Blake  <eblake@redhat.com>
12480
12481         binary-io: relicense under LGPLv2+
12482         * modules/binary-io (License): Relax to LGPLv2+.
12483         Requested for libvirt, and required by pipe2.
12484
12485 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12486
12487         verify: use _Static_assert if available
12488         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12489         (verify_true, verify): Use it if available.  This generates better
12490         diagnostics with GCC 4.6.0 and later.
12491
12492 2011-04-05  Bruno Haible  <bruno@clisp.org>
12493
12494         Remove leftover generated .h files after config.status changed.
12495
12496         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12497         GL_GENERATE_ALLOCA_H.
12498         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12499         GL_GENERATE_ALLOCA_H evaluates to false.
12500
12501         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12502         GL_GENERATE_ARGZ_H.
12503         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12504         evaluates to false.
12505
12506         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12507         GL_GENERATE_BYTESWAP_H.
12508         * modules/byteswap (Makefile.am): Remove byteswap.h if
12509         GL_GENERATE_BYTESWAP_H evaluates to false.
12510
12511         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12512         GL_GENERATE_ERRNO_H.
12513         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12514         evaluates to false.
12515
12516         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12517         GL_GENERATE_FLOAT_H.
12518         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12519         evaluates to false.
12520
12521         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12522         GL_GENERATE_FNMATCH_H.
12523         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12524         GL_GENERATE_FNMATCH_H evaluates to false.
12525
12526         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12527         GL_GENERATE_GLOB_H.
12528         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12529         evaluates to false.
12530
12531         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12532         automake conditional GL_GENERATE_ICONV_H.
12533         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12534         evaluates to false.
12535
12536         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12537         GL_GENERATE_NETINET_IN_H.
12538         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12539         GL_GENERATE_NETINET_IN_H evaluates to false.
12540
12541         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12542         conditional GL_GENERATE_PTHREAD_H.
12543         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12544         * modules/pthread (Makefile.am): Remove pthread.h if
12545         GL_GENERATE_PTHREAD_H evaluates to false.
12546
12547         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12548         GL_GENERATE_SCHED_H.
12549         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12550         evaluates to false.
12551
12552         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12553         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12554         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12555         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12556
12557         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12558         GL_GENERATE_STDARG_H.
12559         * modules/stdarg (Makefile.am): Remove stdarg.h if
12560         GL_GENERATE_STDARG_H evaluates to false.
12561
12562         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12563         GL_GENERATE_STDBOOL_H.
12564         * modules/stdbool (Makefile.am): Remove stdbool.h if
12565         GL_GENERATE_STDBOOL_H evaluates to false.
12566
12567         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12568         conditional GL_GENERATE_STDDEF_H.
12569         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12570         * modules/stddef (Makefile.am): Remove stddef.h if
12571         GL_GENERATE_STDDEF_H evaluates to false.
12572
12573         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12574         GL_GENERATE_STDINT_H.
12575         * modules/stdint (Makefile.am): Remove stdint.h if
12576         GL_GENERATE_STDINT_H evaluates to false.
12577
12578         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12579         GL_GENERATE_SYSEXITS_H.
12580         * modules/sysexits (Makefile.am): Remove sysexits.h if
12581         GL_GENERATE_SYSEXITS_H evaluates to false.
12582
12583         Reported by Karl Berry and Ralf Wildenhues.
12584
12585 2011-04-05  Bruno Haible  <bruno@clisp.org>
12586
12587         Ensure to rebuild generated .h files when config.status has changed.
12588         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12589         config.status.
12590         * modules/ctype (Makefile.am): Likewise.
12591         * modules/dirent (Makefile.am): Likewise.
12592         * modules/errno (Makefile.am): Likewise.
12593         * modules/fcntl-h (Makefile.am): Likewise.
12594         * modules/float (Makefile.am): Likewise.
12595         * modules/getopt-posix (Makefile.am): Likewise.
12596         * modules/glob (Makefile.am): Likewise.
12597         * modules/iconv-h (Makefile.am): Likewise.
12598         * modules/inttypes (Makefile.am): Likewise.
12599         * modules/langinfo (Makefile.am): Likewise.
12600         * modules/locale (Makefile.am): Likewise.
12601         * modules/math (Makefile.am): Likewise.
12602         * modules/netdb (Makefile.am): Likewise.
12603         * modules/netinet_in (Makefile.am): Likewise.
12604         * modules/poll-h (Makefile.am): Likewise.
12605         * modules/pthread (Makefile.am): Likewise.
12606         * modules/pty (Makefile.am): Likewise.
12607         * modules/sched (Makefile.am): Likewise.
12608         * modules/search (Makefile.am): Likewise.
12609         * modules/selinux-h (Makefile.am): Likewise.
12610         * modules/signal (Makefile.am): Likewise.
12611         * modules/spawn (Makefile.am): Likewise.
12612         * modules/stdarg (Makefile.am): Likewise.
12613         * modules/stdbool (Makefile.am): Likewise.
12614         * modules/stddef (Makefile.am): Likewise.
12615         * modules/stdint (Makefile.am): Likewise.
12616         * modules/stdio (Makefile.am): Likewise.
12617         * modules/stdlib (Makefile.am): Likewise.
12618         * modules/string (Makefile.am): Likewise.
12619         * modules/strings (Makefile.am): Likewise.
12620         * modules/sys_file (Makefile.am): Likewise.
12621         * modules/sys_ioctl (Makefile.am): Likewise.
12622         * modules/sys_select (Makefile.am): Likewise.
12623         * modules/sys_socket (Makefile.am): Likewise.
12624         * modules/sys_stat (Makefile.am): Likewise.
12625         * modules/sys_time (Makefile.am): Likewise.
12626         * modules/sys_times (Makefile.am): Likewise.
12627         * modules/sys_utsname (Makefile.am): Likewise.
12628         * modules/sys_wait (Makefile.am): Likewise.
12629         * modules/sysexits (Makefile.am): Likewise.
12630         * modules/termios (Makefile.am): Likewise.
12631         * modules/time (Makefile.am): Likewise.
12632         * modules/unistd (Makefile.am): Likewise.
12633         * modules/wchar (Makefile.am): Likewise.
12634         * modules/wctype-h (Makefile.am): Likewise.
12635         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12636
12637 2011-04-05  Bruno Haible  <bruno@clisp.org>
12638
12639         pipe2: Relicense under LGPLv2+.
12640         * modules/pipe2 (License): Change to LGPLv2+.
12641         Requested by Eric Blake, for libvirt.
12642
12643 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12644
12645         bootstrap: compute gnulib_extra_files after updating build_aux
12646         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12647         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12648
12649 2011-04-05  Eric Blake  <eblake@redhat.com>
12650
12651         bootstrap: preserve git whitelist item sorting
12652         * build-aux/bootstrap (sort_patterns): New function.
12653         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12654
12655 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12656
12657         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12658         sc_space_tab check.
12659
12660 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12661
12662         areadlink, areadlinkat: rewrite in terms of careadlinkat
12663         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12664         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12665         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12666         (malloc, realloc): Remove #undefs.
12667         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12668         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12669         readlink, ssize_t, stdint, unistd.
12670         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12671         areadlink, stdint.
12672
12673         careadlinkat: new module
12674         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12675         * modules/careadlinkat: New files, written by me with
12676         a review and feedback from Ben Pfaff in
12677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12678
12679 2011-04-01  Bruno Haible  <bruno@clisp.org>
12680
12681         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12682         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12683         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12684         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12685         Reported by Bruce Korb <bruce.korb@gmail.com>.
12686
12687 2011-04-01  Bruno Haible  <bruno@clisp.org>
12688
12689         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12690         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12691         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12692         * modules/wcpcpy (Depends-on): Add extensions.
12693         * modules/wcpncpy (Depends-on): Likewise.
12694         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12695         systems.
12696         * doc/posix-functions/wcpncpy.texi: Likewise.
12697         * doc/posix-functions/wcwidth.texi: Likewise.
12698
12699 2011-03-31  Eric Blake  <eblake@redhat.com>
12700
12701         nonblocking: fix mingw test failures
12702         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12703         non-blocking flag on regular file.
12704         (get_nonblocking_flag): Set errno on invalid fd.
12705         * tests/test-nonblocking.c (main): Avoid test failure on
12706         directories if fchdir is not active.
12707         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12708
12709 2011-03-31  Bruno Haible  <bruno@clisp.org>
12710
12711         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12712         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12713         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12714         Reported by Simon Josefsson <simon@josefsson.org>.
12715
12716 2011-03-31  Bruno Haible  <bruno@clisp.org>
12717         and Eric Blake  <eblake@redhat.com>
12718
12719         nonblocking: new module
12720         * modules/nonblocking: New module.
12721         * modules/nonblocking-tests: Likewise.
12722         * lib/nonblocking.h: New file.
12723         * lib/nonblocking.c: Likewise.
12724         * tests/test-nonblocking.c: New test.
12725         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12726
12727 2011-03-30  Bruno Haible  <bruno@clisp.org>
12728
12729         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12730         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12731         instead of 'printf' format for GCC >= 4.4.
12732         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12733         (fprintf, printf, vfprintf, vprintf): Declare with
12734         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12735         the system's vfprintf() function.
12736         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12737
12738 2011-03-30  Eric Blake  <eblake@redhat.com>
12739
12740         passfd: fix scoping bug
12741         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12742         before sendmsg/recvmsg.
12743
12744         passfd: standardize coding conventions
12745         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12746         can be learned at compile time.
12747         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12748         ifdefs.
12749         (sendfd, recvfd): Follow gnulib code conventions.
12750
12751         passfd: fix incorrect sendmsg arguments
12752         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12753         incorrect msg_controllen value.
12754         * modules/passfd-tests (Depends-on): Check for alarm.
12755         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12756         Reported by Bastien ROUCARIES.
12757
12758 2011-03-30  Bruno Haible  <bruno@clisp.org>
12759
12760         c-strcasestr: Relicense under LGPLv2+.
12761         * modules/c-strcasestr (License): Change to LGPLv2+.
12762         Requested by Eric Blake, for libvirt.
12763
12764 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12765
12766         * users.txt: Add libidn2.  Fix libtasn1 link.
12767
12768 2011-03-30  Jim Meyering  <meyering@redhat.com>
12769
12770         tests: readlink* ("",... fails with EINVAL on newer kernels
12771         readlink and readlinkat have typically failed with ENOENT for
12772         the invalid, empty file name,  "".  However, with the advent
12773         of linux-2.6.39, they fail with EINVAL.
12774         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12775         when operating on the empty file name.
12776         * tests/test-readlink.h (test_readlink): Likewise.
12777
12778 2011-03-29  Bruno Haible  <bruno@clisp.org>
12779
12780         Relicense some modules under LGPLv2+, for libidn2.
12781         * modules/array-mergesort (License): Change to LGPLv2+.
12782         * modules/c-strcaseeq (License): Likewise.
12783         * modules/striconveh (License): Likewise.
12784         * modules/striconveha (License): Likewise.
12785         * modules/uniconv/base (License): Likewise.
12786         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12787         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12788         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12789         * modules/unictype/base (License): Likewise.
12790         * modules/unictype/bidiclass-of (License): Likewise.
12791         * modules/unictype/category-M (License): Likewise.
12792         * modules/unictype/category-none (License): Likewise.
12793         * modules/unictype/category-of (License): Likewise.
12794         * modules/unictype/category-test (License): Likewise.
12795         * modules/unictype/category-test-withtable (License): Likewise.
12796         * modules/unictype/combining-class (License): Likewise.
12797         * modules/unictype/joiningtype-of (License): Likewise.
12798         * modules/unictype/scripts (License): Likewise.
12799         * modules/uninorm/base (License): Likewise.
12800         * modules/uninorm/canonical-decomposition (License): Likewise.
12801         * modules/uninorm/composition (License): Likewise.
12802         * modules/uninorm/decompose-internal (License): Likewise.
12803         * modules/uninorm/decomposition-table (License): Likewise.
12804         * modules/uninorm/nfc (License): Likewise.
12805         * modules/uninorm/nfd (License): Likewise.
12806         * modules/uninorm/u32-normalize (License): Likewise.
12807         * modules/unistr/base (License): Likewise.
12808         * modules/unistr/u32-cpy (License): Likewise.
12809         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12810         * modules/unistr/u32-to-u8 (License): Likewise.
12811         * modules/unistr/u32-uctomb (License): Likewise.
12812         * modules/unistr/u8-check (License): Likewise.
12813         * modules/unistr/u8-mblen (License): Likewise.
12814         * modules/unistr/u8-mbtouc (License): Likewise.
12815         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12816         * modules/unistr/u8-mbtoucr (License): Likewise.
12817         * modules/unistr/u8-prev (License): Likewise.
12818         * modules/unistr/u8-strlen (License): Likewise.
12819         * modules/unistr/u8-to-u32 (License): Likewise.
12820         * modules/unistr/u8-uctomb (License): Likewise.
12821         * modules/unitypes (License): Likewise.
12822         Requested by Simon Josefsson.
12823
12824 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12825
12826         lib-symbol-visibility: Add a notice.
12827         * modules/lib-symbol-visibility (Notice): New field.
12828
12829 2011-03-29  Bruno Haible  <bruno@clisp.org>
12830
12831         getaddrinfo: Doc fix.
12832         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12833         section "fixed in Gnulib".
12834
12835 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12836
12837         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12838         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12839
12840 2011-03-26  Bruno Haible  <bruno@clisp.org>
12841
12842         unictype/property-byname: Reduce the number of load-time relocations.
12843         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12844         (UC_PROPERTY_INDEX_*): New enumeration values.
12845         (uc_property_byname): Convert an index from the lookup table to an
12846         uc_property_t.
12847         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12848         values.
12849
12850 2011-03-26  Bruno Haible  <bruno@clisp.org>
12851
12852         unictype/property-byname: Allow omitted word separators and aliases.
12853         * lib/unictype/pr_byname.gperf: Add property names without word
12854         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12855         for 'space'.
12856
12857 2011-03-26  Bruno Haible  <bruno@clisp.org>
12858
12859         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12860         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12861         also hyphens to space.
12862         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12863         without spaces.
12864         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12865
12866 2011-03-26  Bruno Haible  <bruno@clisp.org>
12867
12868         unictype/joiningtype-byname: Recognize long names as well.
12869         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12870         a long name.
12871         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12872         unictype/joiningtype_byname.h.
12873         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12874         * lib/unictype/joiningtype_byname.gperf: New file.
12875         * modules/unictype/joiningtype-byname (Files): Add
12876         lib/unictype/joiningtype_byname.gperf.
12877         (Depends-on): Add gperf.
12878         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12879         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12880         long names.
12881
12882         Tests for module 'unictype/joiningtype-longname'.
12883         * modules/unictype/joiningtype-longname-tests: New file.
12884         * tests/unictype/test-joiningtype_longname.c: New file.
12885
12886         New module 'unictype/joiningtype-longname'.
12887         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12888         * lib/unictype/joiningtype_longname.c: New file.
12889         * modules/unictype/joiningtype-longname: New file.
12890         * modules/unictype/joiningtype-all (Depends-on): Add
12891         unictype/joiningtype-longname.
12892
12893 2011-03-26  Bruno Haible  <bruno@clisp.org>
12894
12895         unictype/bidiclass-byname: Recognize long names as well.
12896         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12897         name.
12898         * lib/unictype/bidi_byname.c: Include <string.h>,
12899         unictype/bidi_byname.h.
12900         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12901         * lib/unictype/bidi_byname.gperf: New file.
12902         * modules/unictype/bidiclass-byname (Files): Add
12903         lib/unictype/bidi_byname.gperf.
12904         (Depends-on): Add gperf.
12905         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12906         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12907         long names.
12908
12909         Tests for module 'unictype/bidiclass-longname'.
12910         * modules/unictype/bidiclass-longname-tests: New file.
12911         * tests/unictype/test-bidi_longname.c: New file.
12912
12913         New module 'unictype/bidiclass-longname'.
12914         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12915         * lib/unictype/bidi_longname.c: New file.
12916         * modules/unictype/bidiclass-longname: New file.
12917         * modules/unictype/bidiclass-all (Depends-on): Add
12918         unictype/bidiclass-longname.
12919
12920 2011-03-26  Bruno Haible  <bruno@clisp.org>
12921
12922         unictype/bidi*: Rename modules.
12923         * modules/unictype/bidiclass-all: Renamed from
12924         modules/unictype/bidicategory-all.
12925         * modules/unictype/bidiclass-name: Renamed from
12926         modules/unictype/bidiclass-name.
12927         (Description): Update.
12928         * modules/unictype/bidiclass-name-tests: Renamed from
12929         modules/unictype/bidicategory-name-tests.
12930         * modules/unictype/bidiclass-byname: Renamed from
12931         modules/unictype/bidicategory-byname.
12932         (Description): Update.
12933         * modules/unictype/bidiclass-byname-tests: Renamed from
12934         modules/unictype/bidicategory-byname-tests.
12935         * modules/unictype/bidiclass-of: Renamed from
12936         modules/unictype/bidicategory-of.
12937         (Description): Update.
12938         * modules/unictype/bidiclass-of-tests: Renamed from
12939         modules/unictype/bidicategory-of-tests.
12940         * modules/unictype/bidiclass-test: Renamed from
12941         modules/unictype/bidicategory-test.
12942         (Description): Update.
12943         * modules/unictype/bidiclass-test-tests: Renamed from
12944         modules/unictype/bidicategory-test-tests.
12945         * modules/unictype/bidicategory-all: New file, a simple redirection.
12946         * modules/unictype/bidicategory-name: Likewise.
12947         * modules/unictype/bidicategory-byname: Likewise.
12948         * modules/unictype/bidicategory-of: Likewise.
12949         * modules/unictype/bidicategory-test: Likewise.
12950         * modules/unictype/property-bidi-* (Dependencies): Update.
12951         * lib/unictype/bidi_*.c: Update comment.
12952
12953 2011-03-26  Bruno Haible  <bruno@clisp.org>
12954
12955         unictype/bidi*: Rename functions, part 2.
12956         * modules/unictype/bidicategory-name (configure.ac): Update required
12957         libunistring version.
12958         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12959
12960 2011-03-25  Bruno Haible  <bruno@clisp.org>
12961
12962         New module 'unictype/combining-class-all'.
12963         * modules/unictype/combining-class-all: New file.
12964
12965         Tests for module 'unictype/combining-class-byname'.
12966         * modules/unictype/combining-class-byname-tests: New file.
12967         * tests/unictype/test-combiningclass_byname.c: New file.
12968
12969         New module 'unictype/combining-class-byname'.
12970         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12971         * lib/unictype/combiningclass_byname.c: New file.
12972         * lib/unictype/combiningclass_byname.gperf: New file.
12973         * modules/unictype/combining-class-byname: New file.
12974
12975         Tests for module 'unictype/combining-class-longname'.
12976         * modules/unictype/combining-class-longname-tests: New file.
12977         * tests/unictype/test-combiningclass_longname.c: New file.
12978
12979         New module 'unictype/combining-class-longname'.
12980         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12981         * lib/unictype/combiningclass_longname.c: New file.
12982         * modules/unictype/combining-class-longname: New file.
12983
12984         Tests for module 'unictype/combining-class-name'.
12985         * modules/unictype/combining-class-name-tests: New file.
12986         * tests/unictype/test-combiningclass_name.c: New file.
12987
12988         New module 'unictype/combining-class-name'.
12989         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12990         * lib/unictype/combiningclass_name.c: New file.
12991         * modules/unictype/combining-class-name: New file.
12992
12993 2011-03-25  Bruno Haible  <bruno@clisp.org>
12994
12995         unictype/combining-class: Rename source files.
12996         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12997         of unictype/combining.h.
12998         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12999         Update.
13000         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13001         * modules/unictype/combining-class (Description): Fix.
13002         (Files, Makefile.am): Update.
13003         * tests/unictype/test-combiningclass.c: Renamed from
13004         tests/unictype/test-combining.c.
13005         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13006
13007 2011-03-25  Bruno Haible  <bruno@clisp.org>
13008
13009         unictype: Update list of canonical combining classes.
13010         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13011
13012 2011-03-25  Bruno Haible  <bruno@clisp.org>
13013
13014         unictype/category-byname: Recognize long names as well.
13015         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13016         a long name.
13017         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13018         unictype/categ_byname.h.
13019         (UC_CATEGORY_INDEX_*): New enumeration values.
13020         (uc_general_category_byname): Use uc_general_category_lookup and
13021         convert from index to value.
13022         * lib/unictype/categ_byname.gperf: New file.
13023         * modules/unictype/category-byname (Files): Add
13024         lib/unictype/categ_byname.gperf.
13025         (Depends-on): Add gperf.
13026         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13027         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13028         long names.
13029
13030         Tests for module 'unictype/category-longname'.
13031         * modules/unictype/category-longname-tests: New file.
13032         * tests/unictype/test-categ_longname.c: New file.
13033
13034         New module 'unictype/category-longname'.
13035         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13036         * lib/unictype/categ_longname.c: New file.
13037         * modules/unictype/category-longname: New file.
13038         * modules/unictype/category-all (Depends-on): Add it.
13039
13040 2011-03-25  Bruno Haible  <bruno@clisp.org>
13041
13042         Tests for module 'unictype/category-LC'.
13043         * modules/unictype/category-LC-tests: New file.
13044         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13045
13046         New module 'unictype/category-LC'.
13047         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13048         (UC_CATEGORY_LC): New declaration.
13049         (UC_CASED_LETTER): New macro.
13050         * lib/gen-uni-tables.c (is_category_LC): New function.
13051         (output_categories): Also handle category LC.
13052         (UC_CATEGORY_MASK_LC): New enumeration value.
13053         (general_category_byname): Also handle category LC.
13054         * lib/unictype/categ_LC.c: New file.
13055         * lib/unictype/categ_LC.h: New file, automatically generated.
13056         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13057         category LC.
13058         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13059         * modules/unictype/category-LC: New file.
13060         * modules/unictype/category-byname (Depends-on): Add
13061         unictype/category-LC.
13062         * modules/unictype/category-all (Depends-on): Likewise.
13063
13064 2011-03-25  Eric Blake  <eblake@redhat.com>
13065
13066         xmalloc: revert yesterday's regression
13067         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13068         realloc's underlying behavior (allowing allocation of zero-size
13069         objects, especially if malloc-gnu is also in use).
13070
13071 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13072
13073         maint.mk: add missing version to VC-tag
13074         * top/maint.mk: git tag was missing actual tag name; add it.
13075
13076         valgrind: do leak checking, and exit with code 1 on error (not 0)
13077         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13078         to VALGRIND.
13079
13080 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13081
13082         posix-modules: say what it does.
13083         * posix-modules: Add a line to the --help output saying what it does.
13084
13085 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13086
13087         xmalloc: Do not leak if underlying realloc is C99 compatible.
13088         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13089         This avoids a leak on C99-based systems.  See
13090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13091
13092 2011-03-24  Eric Blake  <eblake@redhat.com>
13093
13094         realloc: document portability problem
13095         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13096         passing 0 size to realloc.
13097
13098 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13099
13100         doc: update users.txt
13101         * users.txt: Add cvsps, tmpwatch
13102
13103 2011-03-23  Matt Rice  <ratmice@gmail.com>
13104
13105         doc: update users.txt
13106         * users.txt: Add gdb.
13107
13108 2011-03-23  Jim Meyering  <meyering@redhat.com>
13109
13110         doc: update users.txt
13111         Looking through matches up to the following URL (there are still
13112         several more pages), I found several projects that use gnulib:
13113         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13114         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13115         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13116
13117 2011-03-22  Bruno Haible  <bruno@clisp.org>
13118
13119         unictype/bidi*: Rename functions.
13120         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13121         uc_bidi_class, uc_is_bidi_class): New declarations.
13122         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13123         uc_bidi_category_byname.
13124         (uc_bidi_category_byname): New function.
13125         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13126         u_bidi_category_name.
13127         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13128         (uc_bidi_category_name): New function.
13129         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13130         uc_bidi_category.
13131         (uc_bidi_category): New function.
13132         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13133         uc_is_bidi_category. Invoke uc_bidi_class.
13134         (uc_is_bidi_category): New function.
13135         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13136         instead of uc_bidi_category_byname.
13137         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13138         instead of uc_bidi_category_name.
13139         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13140         uc_bidi_category.
13141         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13142         instead of uc_is_bidi_category.
13143
13144 2011-03-21  Bruno Haible  <bruno@clisp.org>
13145
13146         New module 'unictype/joininggroup-all'.
13147         * modules/unictype/joininggroup-all: New file.
13148
13149         Tests for module 'unictype/joininggroup-of'.
13150         * modules/unictype/joininggroup-of-tests: New file.
13151         * tests/unictype/test-joininggroup_of.c: New file.
13152         * tests/unictype/test-joininggroup_of.h: New file, automatically
13153         generated by gen-uni-tables.
13154
13155         New module 'unictype/joininggroup-of'.
13156         * modules/unictype/joininggroup-of: New file.
13157         * lib/unictype/joininggroup_of.c: New file.
13158         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13159         gen-uni-tables.
13160
13161         Tests for module 'unictype/joininggroup-byname'.
13162         * modules/unictype/joininggroup-byname-tests: New file.
13163         * tests/unictype/test-joininggroup_byname.c: New file.
13164
13165         New module 'unictype/joininggroup-byname'.
13166         * modules/unictype/joininggroup-byname: New file.
13167         * lib/unictype/joininggroup_byname.c: New file.
13168         * lib/unictype/joininggroup_byname.gperf: New file.
13169
13170         Tests for module 'unictype/joininggroup-name'.
13171         * modules/unictype/joininggroup-name-tests: New file.
13172         * tests/unictype/test-joininggroup_name.c: New file.
13173
13174         New module 'unictype/joininggroup-name'.
13175         * modules/unictype/joininggroup-name: New file.
13176         * lib/unictype/joininggroup_name.c: New file.
13177         * lib/unictype/joininggroup_name.h: New file.
13178
13179         New module 'unictype/joiningtype-all'.
13180         * modules/unictype/joiningtype-all: New file.
13181
13182         Tests for module 'unictype/joiningtype-of'.
13183         * modules/unictype/joiningtype-of-tests: New file.
13184         * tests/unictype/test-joiningtype_of.c: New file.
13185         * tests/unictype/test-joiningtype_of.h: New file, automatically
13186         generated by gen-uni-tables.
13187
13188         New module 'unictype/joiningtype-of'.
13189         * modules/unictype/joiningtype-of: New file.
13190         * lib/unictype/joiningtype_of.c: New file.
13191         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13192         gen-uni-tables.
13193
13194         Tests for module 'unictype/joiningtype-byname'.
13195         * modules/unictype/joiningtype-byname-tests: New file.
13196         * tests/unictype/test-joiningtype_byname.c: New file.
13197
13198         New module 'unictype/joiningtype-byname'.
13199         * modules/unictype/joiningtype-byname: New file.
13200         * lib/unictype/joiningtype_byname.c: New file.
13201
13202         Tests for module 'unictype/joiningtype-name'.
13203         * modules/unictype/joiningtype-name-tests: New file.
13204         * tests/unictype/test-joiningtype_name.c: New file.
13205
13206         New module 'unictype/joiningtype-name'.
13207         * modules/unictype/joiningtype-name: New file.
13208         * lib/unictype/joiningtype_name.c: New file.
13209
13210         unictype: Add support for Arabic shaping properties.
13211         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13212         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13213         declarations.
13214         (UC_JOINING_GROUP_*): New enumeration values.
13215         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13216         declarations.
13217         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13218         (unicode_joining_type): New variable.
13219         (UC_JOINING_GROUP_*): New enumeration values.
13220         (unicode_joining_group): New variable.
13221         (fill_arabicshaping, joining_type_as_c_identifier,
13222         output_joining_type_test, output_joining_type,
13223         joining_group_as_c_identifier, output_joining_group_test,
13224         output_joining_group): New functions.
13225         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13226         fill_arabicshaping and output_joining_type_test, output_joining_type,
13227         output_joining_group_test, output_joining_group.
13228         Reported by Simon Josefsson.
13229
13230 2011-03-21  Jim Meyering  <meyering@redhat.com>
13231
13232         strftime: fix a bug in yesterday's change
13233         * lib/strftime.c (add): Accommodate width's initial value of -1.
13234         Otherwise, nstrftime would copy uninitialized data into
13235         the result buffer.
13236
13237 2011-03-21  Jim Meyering  <meyering@redhat.com>
13238
13239         tests: add strftime-tests module
13240         * tests/test-strftime.c: New file.
13241         * modules/strftime-tests: New module.
13242
13243 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13244
13245         strftime: don't assume a byte count fits in 'int'
13246         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13247         found this problem by static analysis, using gcc -Wstrict-overflow
13248         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13249         on an integer overflow having undefined behavior, but it turns out
13250         that the argument is a size, which might not fit in 'int' anyway,
13251
13252 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13253
13254         stdio: don't require ignore_value around fwrite
13255
13256         This patch works around libc bug 11959
13257         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13258         Without this patch, applications must often write
13259         ignore_value (fwrite (...)) even though the ignore_value is
13260         not helpful here.  It's common to write many objects, using
13261         fwrite/printf/etc., and then use ferror to detect output error.
13262
13263         I considered making this patch optional, but decided against it,
13264         because libc is obviously being inconsistent here: there is no
13265         reason libc should insist that user code must inspect fwrite
13266         return's value without also insisting that it inspect printf's,
13267         putchar's, etc.  If user code wants to have a strict style where
13268         all these functions' values are checked (so that ferror need not
13269         be checked), we could add support for that style in a new gnulib
13270         module, but in the meantime it's better to be consistent and to
13271         support common usage.
13272
13273         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13274         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13275         that we are compiling in checking mode, and if not C++, and
13276         if not already wrapping fwrite for some other reason.
13277         (fwrite): #define to rpl_fwrite if the latter is defined.
13278
13279 2011-03-20  Bruno Haible  <bruno@clisp.org>
13280
13281         verror: Fix compilation error introduced on 2011-02-13.
13282         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13283         instead of __attribute__.
13284         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13285
13286 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13287             Bruno Haible  <bruno@clisp.org>
13288
13289         socklen: do not depend on sys_socket
13290         While trying to modify Emacs to use gnulib's socklen module,
13291         I discovered a circular dependency: socklen depends on sys_socket
13292         and vice versa.  Emacs can use socklen, but it does not need
13293         sys_socket because it has its own substitute for sys/socket.h.
13294         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13295         gl_TYPE_SOCKLEN_T.
13296         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13297         gl_PREREQ_SYS_H_SOCKET.
13298         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13299         gl_PREREQ_SYS_H_SOCKET.
13300         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13301         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13302         * modules/socklen (Depends-on): Do not depend on sys_socket.
13303         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13304
13305 2011-03-20  Jim Meyering  <meyering@redhat.com>
13306
13307         maint.mk: sort file names *after* new transformation
13308         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13309         prefix would have led to an unwarranted failure in GNU parted.
13310         Sort after that transformation.
13311
13312 2011-03-19  Jim Meyering  <meyering@redhat.com>
13313
13314         maint.mk: fix po-file syntax-check rule
13315         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13316         Patch by Bruno Haible.
13317
13318 2011-03-19  Bruno Haible  <bruno@clisp.org>
13319
13320         socklen: Update comment.
13321         * m4/socklen.m4: Update comment about platforms.
13322
13323 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13324             Bruno Haible  <bruno@clisp.org>
13325
13326         inet_ntop, inet_pton: Simplify.
13327         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13328         documented to provide socklen_t and we already depend on sys_socket.
13329         * modules/inet_pton (Depends-on): Likewise.
13330         * lib/arpa_inet.in.h: Adjust comment.
13331
13332 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13333             Bruno Haible  <bruno@clisp.org>
13334
13335         netdb: Simplify.
13336         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13337         documented to provide socklen_t and we already depend on sys_socket.
13338         * lib/netdb.in.h: Adjust comment.
13339
13340 2011-03-19  Bruno Haible  <bruno@clisp.org>
13341
13342         sys_socket, netdb: Document problem with socklen_t.
13343         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13344         platforms.
13345         * doc/posix-headers/netdb.texi: Likewise.
13346
13347 2011-03-18  Eric Blake  <eblake@redhat.com>
13348
13349         maint.mk: let po check work in VPATH build
13350         * top/maint.mk (po_file): Allow cfg.mk override.
13351         (sc_po_check): Allow VPATH use.
13352         Reported by Jiri Denemark.
13353
13354 2011-03-16  Jim Meyering  <meyering@redhat.com>
13355
13356         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13357         Before, you would have had to create one .x-sc_ file per rule in order
13358         to exempt offending files.  Now, you may instead use a Make variable --
13359         usually defined in cfg.mk -- whose name identifies the affected rule.
13360         * top/maint.mk (_sc_excl): Define.
13361         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13362         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13363
13364 2011-03-13  Bruno Haible  <bruno@clisp.org>
13365
13366         ignore-value tests: Avoid warnings.
13367         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13368         empty for gcc < 3.4.
13369
13370 2011-03-13  Bruno Haible  <bruno@clisp.org>
13371
13372         passfd: Fix link error on Solaris.
13373         * modules/passfd (Description): Correct.
13374         (Depends-on): Add socketlib.
13375         (Link): New section.
13376         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13377
13378 2011-03-13  Bruno Haible  <bruno@clisp.org>
13379
13380         passfd: Fix link error on AIX 5.2.
13381         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13382
13383 2011-03-13  Bruno Haible  <bruno@clisp.org>
13384
13385         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13386         * lib/sys_socket.in.h: Include <stddef.h>.
13387         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13388         CMSG_FIRSTHDR. Remove unused variable.
13389
13390 2011-03-13  Bruno Haible  <bruno@clisp.org>
13391
13392         passfd: Fix compilation error on OpenBSD.
13393         * lib/passfd.c: Include <sys/uio.h>.
13394
13395 2011-03-13  Bruno Haible  <bruno@clisp.org>
13396
13397         passfd test: Fix warnings.
13398         * tests/test-passfd.c: Include <sys/wait.h>.
13399         (main): Fix typo.
13400
13401 2011-03-13  Bruno Haible  <bruno@clisp.org>
13402
13403         passfd module, part 4, tweaks.
13404         * tests/test-passfd.c: Reorder includes.
13405         (main): Fix perror and printf calls.
13406
13407 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13408
13409         passfd module, part 4.
13410         * modules/passfd-tests: New file.
13411         * tests/test-passfd.c: New file.
13412
13413 2011-03-13  Jim Meyering  <meyering@redhat.com>
13414
13415         Makefile: rely on GNU make; derive syntax-check rule names
13416         Rather than requiring that each sc_ rule be listed as a dependent
13417         of "check", use features of GNU make to derive the list.
13418         * Makefile (syntax-check-rules): Define.
13419         (check): Depend on the new variable, not the hard-coded list.
13420
13421 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13422             Bruno Haible  <bruno@clisp.org>
13423
13424         passfd module, part 3.
13425         * lib/passfd.h (recvfd): Add a flags argument.
13426         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13427         (recvfd): Add a flags argument.
13428         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13429         exists.
13430         * modules/passfd (Depends-on): Add cloexec.
13431         Suggested by Eric Blake.
13432
13433 2011-03-13  Bruno Haible  <bruno@clisp.org>
13434
13435         passfd module, part 2, tweaks.
13436         * modules/passfd (Files): Reorder.
13437         (Depends-on): Remove errno.
13438         (Include): Remove <sys/socket.h>, <sys/un.h>.
13439         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13440         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13441         specification header. Include <sys/socket.h> always. Don't include
13442         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13443         (sendfd): Clarify that it sets errno when it fails.
13444         (recvfd): Fix specification.
13445
13446 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13447
13448         passfd module, part 2.
13449         * modules/passfd: New file.
13450         * lib/passfd.h: New file.
13451         * lib/passfd.c: New file.
13452
13453 2011-03-12  Bruno Haible  <bruno@clisp.org>
13454
13455         wcswidth, mbswidth: Avoid integer overflow.
13456         * lib/wcswidth.c: Include <limits.h>.
13457         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13458         * lib/mbswidth.c: Include <limits.h>.
13459         (mbsnwidth): Avoid 'int' overflow.
13460         Reported by Jim Meyering.
13461
13462 2011-03-12  Bruno Haible  <bruno@clisp.org>
13463
13464         futimens, utimensat: Avoid endless recursion on Solaris 10.
13465         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13466         Solaris.
13467         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13468         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13469
13470 2011-03-11  Jim Meyering  <meyering@redhat.com>
13471
13472         maint.mk: relax a regexp to accommodate other formatting styles
13473         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13474         between "ngettext" and the following "(".
13475
13476 2011-03-11  Pádraig Brady <P@draigBrady.com>
13477
13478         maint.mk: suppress a false positive warning
13479         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13480         diagnostics are marked with ngettext.
13481
13482 2011-03-10  Eric Blake  <eblake@redhat.com>
13483
13484         wchar: add explicit dependencies, for Tru64
13485         * modules/mbmemcasecoll (Depends-on): Add wchar.
13486         * modules/mbtowc (Depends-on): Likewise.
13487         * modules/vasnprintf (Depends-on): Likewise.
13488         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13489         * modules/wctomb (Depends-on): Likewise.
13490         Reported by Peter O'Gorman.
13491
13492 2011-03-08  Bruno Haible  <bruno@clisp.org>
13493
13494         passfd module, part 1, tweaks.
13495         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13496         Improve indentation. Improve AC_MSG_CHECKING messages.
13497         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13498         gl_SOCKET_FAMILIES.
13499
13500 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13501
13502         passfd module, part 1.
13503         * m4/afunix.m4: New file.
13504         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13505         sockets.
13506
13507 2011-03-08  Bruno Haible  <bruno@clisp.org>
13508
13509         regex-quote: New API.
13510         * lib/regex-quote.h: Include <stdbool.h>.
13511         (struct regex_quote_spec): New type.
13512         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13513         New declarations.
13514         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13515         'const struct regex_quote_spec *' argument.
13516         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13517         (pcre_special): New constant.
13518         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13519         New functions.
13520         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13521         'const struct regex_quote_spec *' argument.
13522         * modules/regex-quote (Depends-on): Add stdbool.
13523         * tests/test-regex-quote.c (check): Update for new API. Add test for
13524         anchored results.
13525         * NEWS: Mention the API change.
13526         Reported by Reuben Thomas and Eric Blake.
13527
13528 2011-03-06  Bruno Haible  <bruno@clisp.org>
13529
13530         regex-quote: Fix creation of POSIX extended regular expressions.
13531         * lib/regex-quote.c (ere_special): Add grouping and alternation
13532         operators.
13533
13534 2011-03-05  Bruno Haible  <bruno@clisp.org>
13535
13536         doc: Improve doc regarding autopoint vs. gnulib.
13537         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13538         disable autopoint while running autoreconf.
13539         Suggested by Ralf Wildenhues.
13540
13541 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13542
13543         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13544         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13545
13546 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13547
13548         parse-duration: remove xalloc.h dependency
13549         * lib/parse-duration.c (parse_period): handle NULL return from
13550         strdup instead of calling xstrdup().
13551         * modules/parse-duration: remove "xalloc" dependency
13552
13553 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13554
13555         bootstrap: honor m4_base when running aclocal
13556         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13557
13558 2011-03-02  Jim Meyering  <meyering@redhat.com>
13559
13560         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13561         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13562         on request from Matt Booth.
13563
13564 2011-03-01  Eric Blake  <eblake@redhat.com>
13565
13566         test-link: work on Hurd
13567         * tests/test-link.h (test_link): Hurd rejects linking directories
13568         with EISDIR instead of the POSIX-mandated EPERM.
13569
13570 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13571
13572         stdio: simplify by moving files to printf-posix, sigpipe
13573         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13574         since this symbol is needed only if printf is replaced.
13575         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13576         Require gl_ASM_SYMBOL_PREFIX.
13577         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13578         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13579         (Depends-on): Add 'raise'.
13580         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13581         * modules/stdio (Files): Remove lib/stdio-write.c,
13582         m4/asm-underscore.m4.
13583         (Depends-on): Remove 'raise'.
13584
13585         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13586         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13587         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13588         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13589
13590 2011-02-28  Bruno Haible  <bruno@clisp.org>
13591
13592         localcharset: Assume ANSI C behaviour of free().
13593         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13594         calling free().
13595         Suggested by Simon Josefsson <simon@josefsson.org>.
13596
13597 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13598             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13599             Bruno Haible  <bruno@clisp.org>  (tiny change)
13600
13601         On Cygwin, use /proc file system instead of win32 API.
13602         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13603         Win32 file names.
13604         (DllMain): Simplify by removing Cygwin specific code.
13605         (find_shared_library_fullname): Use Linux specific implementation also
13606         for Cygwin.
13607         (get_shared_library_fullname): Update accordingly.
13608         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13609         Win32 file names.
13610         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13611         Cygwin specific code.
13612
13613 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13614             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13615
13616         Fix OpenMP flag detection for various Fortran compilers.
13617         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13618         OpenMP-conditional compilation construct, to force compile
13619         failure with missing OpenMP flag.
13620         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13621
13622 2011-02-25  Eric Blake  <eblake@redhat.com>
13623
13624         strstr: expand test coverage
13625         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13626         compilation.
13627         * tests/test-memmem.c (main): Duplicate tests.
13628         * tests/test-strcasestr.c (main): Likewise.
13629         * tests/test-c-strcasestr.c (main): Likewise.
13630
13631 2011-02-25  Jim Meyering  <meyering@redhat.com>
13632
13633         maint.mk: detect missing-NL-at-EOF, too
13634         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13635         it also detects when a file lacks a newline at EOF.
13636         (require_exactly_one_NL_at_EOF_): Renamed from
13637         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13638         since people may well have .x-sc_... file names tied to the
13639         existing name.  Suggested by Eric Blake.
13640
13641 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13642
13643         dirname: move m4/dos.m4 functionality into lib/dosname.h
13644
13645         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13646         extracts symbols from it, puts them into config.h; but it's much
13647         easier to use the symbols directly.  filename.h already does this,
13648         but it disagrees with dos.m4 in some respects.  This patch
13649         introduces a different include file dosname.h that packages up
13650         dos.m4, and then later we can work on merging filename.h and
13651         dosname.h.  Applications that need only the easy-to-configure
13652         symbols should consider including dosname.h rather than dirname.h.
13653         * NEWS: Mention incompatible changes.
13654         * m4/dos.m4: Remove.
13655         * lib/dosname.h, modules/dosname: New files.
13656         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13657         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13658         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13659         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13660         Include dosname.h, not dirname.h.
13661         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13662         Include dosname.h, for definitions of symbols like ISSLASH
13663         that used to be in config.h.
13664         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13665         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13666         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13667         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13668         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13669         * modules/rmdir (Files): Likewise.
13670         * modules/stat (Files): Likewise.
13671         * modules/unlink (Files): Likewise.
13672         * modules/dirname-lgpl (Depends-on): Add dosname.
13673         * modules/lstat (Depends-on): Likewise.
13674         * modules/openat (Depends-on): Likewise.
13675         * modules/rmdir (Depends-on): Likewise.
13676         * modules/savewd (Depends-on): Likewise.
13677         * modules/stat (Depends-on): Likewise.
13678         * modules/unlink (Depends-on): Likewise.
13679         * modules/openat (Depends-on): Remove dirname-lgpl.
13680         * modules/savewd (Depends-on): Likewise.
13681         * tests/test-dirname.c: Do not use removed symbols like
13682         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13683         the remaining symbols, e.g., ISSLASH ('\\').
13684
13685 2011-02-25  Eric Blake  <eblake@redhat.com>
13686
13687         strstr: revert patches that introduced bug and pessimization
13688         * lib/str-two-way.h: Add another reference.
13689         (two_way_short_needle, two_way_long_needle): Revert changes from
13690         2011-02-24; they pessimize search speed.
13691         (critical_factorization): Partially revert changes from
13692         2010-06-22; they violate the requirement that the left half of the
13693         needle be smaller than the period of the needle.
13694
13695 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13696
13697         filenamecat: remove unnecessary dependency on dirname-lgpl
13698         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13699         is no direct dependency, just an indirect one via filenamecat-lgpl.
13700
13701         remove: remove unnecessary use of m4/dos.m4
13702         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13703         * modules/remove (FILES): Remove m4/dos.m4.
13704
13705         * lib/openat-proc.c: Don't include dirname.h; not needed.
13706
13707         backupfile: remove unnecessary use of m4/dos.m4
13708         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13709         of its symbols are used by the backupfile code.  backupfile.c does
13710         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13711         for the rare case of programs that want all their backup file
13712         names to live within 8+3 limits, and dos.m4 doesn't address that.
13713         * modules/backupfile (Files): Remove m4/dos.m4.
13714
13715 2011-02-24  Jim Meyering  <meyering@redhat.com>
13716
13717         strstr: fix a bug whereby strstr would mistakenly return NULL
13718         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13719         in period calculation.
13720         (two_way_long_needle): Likewise.
13721         The original problem was reported by Mike Stump in
13722         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13723         Ralf Wildenhues provided the short needle and haystack.
13724         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13725         Add a more involved test to trigger the bug in two_way_long_needle.
13726
13727 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13728
13729         gnulib-tool: remove use of bold display in help screen
13730         * gnulib-tool (func_usage): Do not use bold display anymore in the
13731         help screen.  That was just meant to be a temporary emphasis for a
13732         backward-incompatible change.
13733
13734 2011-02-23  Bruno Haible  <bruno@clisp.org>
13735
13736         Fix misindentation of preprocessor directives.
13737         * lib/argp-namefrob.h: Reindent preprocessor directives.
13738         * lib/getopt_int.h (struct _getopt_data): Likewise.
13739         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13740         * lib/vasnprintf.c (decode_long_double): Likewise.
13741         * tests/test-argmatch.c: Insert blank lines, for clarity.
13742         * tests/test-exclude.c: Likewise.
13743
13744 2011-02-22  Bruno Haible  <bruno@clisp.org>
13745
13746         ioctl: Fix for MacOS X in 64-bit mode.
13747         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13748         value.
13749         Suggested by Eric Blake.
13750         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13751
13752 2011-02-22  Jim Meyering  <meyering@redhat.com>
13753
13754         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13755         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13756         in lib/.
13757
13758 2011-02-22  Eric Blake  <eblake@redhat.com>
13759
13760         maint: avoid any CDPATH issue
13761         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13762
13763         maint: adjust cpp indentation for my modules, as well
13764         * Makefile (sc_cpp_indent_check): Add my name.
13765         * lib/fbufmode.c: Filter through cppi.
13766         * lib/fpurge.c: Likewise.
13767         * lib/freadable.c: Likewise.
13768         * lib/freading.c: Likewise.
13769         * lib/fwritable.c: Likewise.
13770         * lib/fwriting.c: Likewise.
13771         * lib/sigaction.c: Likewise.
13772
13773 2011-02-22  Jim Meyering  <meyering@redhat.com>
13774
13775         maint: adjust cpp indentation to reflect nesting depth
13776         I.e., in a block of code that begins with an unnested "#if",
13777         put one space between the "#" in column 1 and following token.
13778         For example,
13779         -#include <sys/vfs.h>
13780         +# include <sys/vfs.h>
13781         Do this only in .c files that are part of a module I maintain.
13782         * lib/linkat.c: Filter through cppi.
13783         * lib/nanosleep.c: Likewise.
13784         * lib/openat.c: Likewise.
13785         * lib/openat-die.c: Likewise.
13786         * lib/dup3.c: Likewise.
13787         * lib/fchownat.c: Likewise.
13788         * lib/flock.c: Likewise.
13789         * lib/fsync.c: Likewise.
13790         * lib/fts.c: Likewise.
13791         * lib/getpass.c: Likewise.
13792         * lib/gettimeofday.c: Likewise.
13793         * lib/userspec.c: Likewise.
13794         * Makefile (sc_cpp_indent_check): New rule, to check this.
13795
13796 2011-02-22  Bruno Haible  <bruno@clisp.org>
13797
13798         New module 'wctomb'.
13799         * lib/stdlib.in.h (wctomb): New declaration.
13800         * lib/wctomb.c: New file.
13801         * lib/wctomb-impl.h: New file.
13802         * m4/wctomb.m4: New file.
13803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13804         REPLACE_WCTOMB.
13805         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13806         REPLACE_WCTOMB.
13807         * modules/wctomb: New file.
13808         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13809         * doc/posix-functions/wctomb.texi: Mention the new module.
13810         * modules/wctob (Depends-on): Add wctomb.
13811
13812 2011-02-22  Bruno Haible  <bruno@clisp.org>
13813
13814         New module 'mbtowc'.
13815         * lib/stdlib.in.h (mbtowc): New declaration.
13816         * lib/mbtowc.c: New file.
13817         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13818         * m4/mbtowc.m4: New file.
13819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13820         REPLACE_MBTOWC.
13821         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13822         REPLACE_MBTOWC.
13823         * modules/mbtowc: New file.
13824         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13825         * doc/posix-functions/mbtowc.texi: Mention the new module.
13826         * modules/btowc (Depends-on): Add mbtowc.
13827
13828 2011-02-22  Bruno Haible  <bruno@clisp.org>
13829
13830         wcrtomb: Add more tests for native Windows platforms.
13831         * tests/test-wcrtomb-w32-1.sh: New file.
13832         * tests/test-wcrtomb-w32-2.sh: New file.
13833         * tests/test-wcrtomb-w32-3.sh: New file.
13834         * tests/test-wcrtomb-w32-4.sh: New file.
13835         * tests/test-wcrtomb-w32-5.sh: New file.
13836         * tests/test-wcrtomb-w32.c: New file.
13837         * modules/wcrtomb-tests (Files): Add them.
13838         (Makefile.am): Arrange to run these tests.
13839         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13840         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13841
13842 2011-02-20  Bruno Haible  <bruno@clisp.org>
13843
13844         wcrtomb: Enhance test.
13845         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13846
13847 2011-02-20  Bruno Haible  <bruno@clisp.org>
13848
13849         mbrtowc: Tiny optimization.
13850         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13851
13852 2011-02-20  Jim Meyering  <meyering@redhat.com>
13853
13854         test-exclude.c: remove unmatched #endif
13855         * tests/test-exclude.c: Remove stray #endif, left over from
13856         the change of a week ago.
13857
13858 2011-02-19  Jim Meyering  <meyering@redhat.com>
13859
13860         git-version-gen: skip "-dirty" check when appropriate
13861         * build-aux/git-version-gen: Don't run any git commands when the
13862         version string comes from .tarball-version.  Prior to this, we
13863         would run git update-index --refresh even from a just-unpacked
13864         tarball directory, and that could affect a .git/ directory in a
13865         parent of the build directory.  Reported by Mike Frysinger.
13866
13867 2011-02-19  Bruno Haible  <bruno@clisp.org>
13868
13869         unictype/property-byname: Reduce the size of the 'data' segment.
13870         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13871
13872 2011-02-19  Bruno Haible  <bruno@clisp.org>
13873
13874         unictype/scripts: Reduce the size of the 'data' segment.
13875         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13876         '%pic'.
13877         * lib/unictype/scripts_byname.gperf: Regenerated.
13878
13879 2011-02-19  Bruno Haible  <bruno@clisp.org>
13880
13881         stdint: Update documentation.
13882         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13883
13884 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13885
13886         stdint: omit redundant check for wchar.h
13887         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13888         always tests whether wchar.h exists, so remove the now-redundant test.
13889
13890 2011-02-18  Bruno Haible  <bruno@clisp.org>
13891
13892         stdint: Cut dependency to module 'wchar'.
13893         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13894         include the necessary prerequisites.
13895         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13896         * modules/stdint (Depends-on): Remove wchar.
13897         (Makefile.am): Substitute HAVE_WCHAR_H.
13898         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13899
13900 2011-02-18  Eric Blake  <eblake@redhat.com>
13901
13902         longlong: skip, rather than fail, on cross-compilation
13903         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13904         when cross-compiling; regression from 2011-02-16.
13905
13906 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13907
13908         * NEWS: Mention 2011-02-08 change to stdlib.
13909
13910 2011-02-17  Bruno Haible  <bruno@clisp.org>
13911
13912         getloadavg: Add comments about platforms.
13913         * m4/getloadavg.m4: Add comment.
13914         * lib/getloadavg.c: Likewise.
13915
13916 2011-02-17  Bruno Haible  <bruno@clisp.org>
13917
13918         getloadavg: Fix link error on Solaris 2.6.
13919         * modules/getloadavg (Link): New section.
13920         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13921         linking test-getloadavg.
13922         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13923         getloadavg.
13924
13925 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13926
13927         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13928         It was 'int', but this doesn't match the IRIX 6.5 manual.
13929         Suggested by Bruno Haible in
13930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13931
13932 2011-02-17  Bruno Haible  <bruno@clisp.org>
13933
13934         havelib: Fix comments.
13935         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13936         change.
13937
13938 2011-02-17  Bruno Haible  <bruno@clisp.org>
13939
13940         havelib: Update config.rpath.
13941         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13942
13943 2011-02-17  Bruno Haible  <bruno@clisp.org>
13944
13945         getloadavg test: Add some plausibility checks.
13946         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13947         is improbable.
13948
13949 2011-02-16  Eric Blake  <eblake@redhat.com>
13950
13951         maintainer-makefile: make syntax-check a no-op from tarballs
13952         * top/maint.mk (no-vc-detected): New rule.
13953         (local-checks-available): Use it to avoid hanging if someone tries
13954         'make syntax-check' from a tarball.  Also append to any non-syntax
13955         checks already defined in cfg.mk.
13956
13957 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13958
13959         longlong: tune, particularly for common case of c99
13960
13961         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13962         or running anything if c99, or if unsigned long long int does not
13963         work.  In either case, we know the answer without further tests.
13964         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13965         it at most once, and use its results for both long long int and
13966         unsigned long long int.  This is more likely to be efficient in
13967         the common case where the program wants to check for both long
13968         long int and unsigned long long int.
13969         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13970         since the answer is already known.
13971
13972 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13973
13974         getloadavg: set errno
13975         * lib/getloadavg.c: Set errno when returning -1.  If no other
13976         error number looks appropriate, set it to ENOSYS if the getloadavg
13977         looks like it can't possibly ever work, ENOTSUP otherwise.
13978         Suggested by Bruno Haible in
13979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13980
13981         getloadavg: trim unused parts and speed up 'configure'
13982         * NEWS: Document this.
13983         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13984         always compiled if getloadavg is absent.
13985         Move test code to ...
13986         * tests/test-getloadavg.c: New file, containing previous
13987         contents of test from lib/getloadavg.c.  It also contains
13988         suggestions by Bruno Haible in
13989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13990         * modules/getloadavg-tests: New file.
13991         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13992         Do tests in the same order as they're needed for getloadavg.c.
13993         Omit setgid-related tests that generate symbols KMEM_GROUP,
13994         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13995         Do only the tests that are needed to see whether the system has
13996         getloadavg, moving the other tests into ...
13997         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13998         NLIST_NAME_UNION; nobody should be using it.  Do not define
13999         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14000         relevant, as the user of this module shouldn't care how getloadavg
14001         is implemented.
14002
14003         getloadavg: omit unused var
14004         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14005
14006 2011-02-15  Jim Meyering  <meyering@redhat.com>
14007
14008         doc: update users.txt
14009         * users.txt: Update iwhd's URL.
14010
14011 2011-02-13  Bruno Haible  <bruno@clisp.org>
14012
14013         Consistent macro naming for macros that use GCC __attribute__.
14014         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14015         _ATTRIBUTE_NONNULL_.
14016         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14017         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14018         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14019         ATTRIBUTE_DEPRECATED.
14020         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14021         ATTRIBUTE_NORETURN.
14022         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14023         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14024         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14025         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14026         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14027         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14028         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14029         ATTRIBUTE_SENTINEL.
14030         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14031         ATTRIBUTE_RETURN_CHECK.
14032         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14033         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14034         ATTRIBUTE_NORETURN.
14035         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14036         Reported by Paul Eggert.
14037
14038 2011-02-13  Bruno Haible  <bruno@clisp.org>
14039
14040         Don't interfere with a program's definition of __attribute__.
14041         * lib/argp.h (__attribute__): Remove definition.
14042         (_GL_ATTRIBUTE_FORMAT): New macro.
14043         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14044         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14045         (_GL_ATTRIBUTE_FORMAT): New macro.
14046         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14047         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14048         GCC 3 or newer.
14049         * lib/error.h (__attribute__): Remove definition.
14050         (_GL_ATTRIBUTE_FORMAT): New macro.
14051         (error, error_at_line): Use it.
14052         * lib/hash.h (__attribute__): Remove definition.
14053         (ATTRIBUTE_WUR): Update definition. Define always.
14054         * lib/openat.h (__attribute__): Remove definition.
14055         (ATTRIBUTE_NORETURN): Update definition. Define always.
14056         * lib/sigpipe-die.h (__attribute__): Remove definition.
14057         (ATTRIBUTE_NORETURN): Update definition. Define always.
14058         * lib/vasnprintf.h (__attribute__): Remove definition.
14059         (_GL_ATTRIBUTE_FORMAT): New macro.
14060         (asnprintf, vasnprintf): Use it.
14061         * lib/xalloc.h (__attribute__): Remove definition.
14062         (ATTRIBUTE_NORETURN): Update definition. Define always.
14063         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14064         * lib/xmemdup0.h (__attribute__): Remove definition.
14065         (ATTRIBUTE_NORETURN): Update definition. Define always.
14066         * lib/xprintf.h (__attribute__): Remove definition.
14067         (_GL_ATTRIBUTE_FORMAT): New macro.
14068         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14069         * lib/xstrtol.h (__attribute__): Remove definition.
14070         (ATTRIBUTE_NORETURN): Update definition. Define always.
14071         * lib/xvasprintf.h (__attribute__): Remove definition.
14072         (_GL_ATTRIBUTE_FORMAT): New macro.
14073         (xasprintf, xvasprintf): Use it.
14074         * tests/test-argmatch.c (__attribute__): Remove definition.
14075         (ATTRIBUTE_NORETURN): Update definition. Define always.
14076         * tests/test-exclude.c (__attribute__): Remove definition.
14077         (ATTRIBUTE_NORETURN): Update definition. Define always.
14078         Reported by Paul Eggert.
14079
14080 2011-02-13  Bruno Haible  <bruno@clisp.org>
14081
14082         mbrtowc: Add more tests for native Windows platforms.
14083         * tests/test-mbrtowc-w32-1.sh: New file.
14084         * tests/test-mbrtowc-w32-2.sh: New file.
14085         * tests/test-mbrtowc-w32-3.sh: New file.
14086         * tests/test-mbrtowc-w32-4.sh: New file.
14087         * tests/test-mbrtowc-w32-5.sh: New file.
14088         * tests/test-mbrtowc-w32.c: New file.
14089         * modules/mbrtowc-tests (Files): Add them.
14090         (Makefile.am): Arrange to run these tests.
14091         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14092         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14093
14094 2011-02-13  Bruno Haible  <bruno@clisp.org>
14095
14096         mbrtowc: Work around native Windows bug.
14097         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14098         guess when no suitable locale for testing was found.
14099         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14100
14101 2011-02-13  Bruno Haible  <bruno@clisp.org>
14102
14103         mbsinit: Work around mingw bug.
14104         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14105         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14106         Windows.
14107         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14108
14109 2011-02-13  Bruno Haible  <bruno@clisp.org>
14110
14111         mbsinit: Don't crash for a NULL argument.
14112         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14113         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14114
14115 2011-02-13  Bruno Haible  <bruno@clisp.org>
14116
14117         Don't interfere with a program's definition of __attribute__.
14118         * lib/stdio.in.h (__attribute__): Remove definition.
14119         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14120         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14121         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14122         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14123         * lib/string.in.h (__attribute__): Remove definition.
14124         Reported by Paul Eggert.
14125
14126 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14127
14128         stdlib: don't get in the way of non-GCC __attribute__
14129         See thread starting at
14130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14131         Revert previous stdlib change, installing the following instead:
14132         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14133         to get in the way of a non-GCC compiler that supports __attribute__.
14134         (_GL_ATTRIBUTE_RETURN): New macro.
14135         (_Exit): Use it instead of __attribute__.
14136
14137 2011-02-12  Bruno Haible  <bruno@clisp.org>
14138
14139         quotearg test: Avoid test failure on mingw.
14140         * tests/test-quotearg.sh: Convert the locale identifier from native
14141         Windows syntax to Unix syntax.
14142
14143 2011-02-12  Bruno Haible  <bruno@clisp.org>
14144
14145         setlocale: Prefer gnulib's override over libintl's override.
14146         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14147         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14148         GNULIB_defined_setlocale is set.
14149
14150 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14151
14152         stdlib: support non-GCC __attribute__
14153
14154         Fix a serious and tricky problem encountered when attempting to
14155         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14156         5.5, but it crashed due to memory corruption on Solaris 10 with
14157         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14158         bits that are otherwise zero.  This tagging is optional inside
14159         Emacs but is preferred and is used when __attribute__ ((__aligned
14160         (8))) works, as it does with both recent-enough GCC and with Sun C
14161         5.11.  However, Sun C 5.11 is not GCC and does not #define
14162         __GNUC__ and __GNUC_MINOR__.
14163
14164         When I added the getloadavg module to Emacs, it brought in
14165         stdlib.in.h, which contained this fragment:
14166
14167            #ifndef __attribute__
14168            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14169            #  define __attribute__(Spec)   /* empty */
14170            # endif
14171            #endif
14172
14173         When files that include <stdlib.h> were compiled with Sun C 5.11,
14174         the above code disabled __attribute__ ((__aligned (8))), which
14175         caused variables to not be properly aligned, which eventually led
14176         to the pointer corruption mentioned above.  (This was a bit hard
14177         to diagnose, unfortunately.)
14178
14179         Several "#define __attribute__(X) /* empty */" code snippets need
14180         to be eradicated from Gnulib to work with non-GCC compilers that
14181         support __attribute__.  The Autoconf way to do this is to test for
14182         each kind of attribute that we want support for, and selectively
14183         enable that in source code.
14184
14185         Fix this problem just for stdlib.h, by adding a test for the
14186         __noreturn__ attribute, and change stdlib.in.h to use that test
14187         when needed.  This technique can be easily generalized to the
14188         other *.in.h files and attributes, and a similar technique can be
14189         used for *.h and *.c files.  This patch is enough to solve the
14190         problem for Emacs + getloadavg, and I thought I'd publish it for
14191         feedback before undertaking further, similar fixes in other
14192         modules.
14193
14194         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14195         because it's not needed for stdlib.h.  It merely substitutes the
14196         value directly into stdlib.h.  We may well need to #define it, or
14197         similar symbols, for other modules, but it's nice to also have an
14198         option to not #define it for applications like Emacs that do not
14199         need it.
14200
14201         * lib/stdlib.in.h (__attribute__): Do not #define.
14202         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14203         be defined only if the _Exit module is also used.
14204         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14205         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14206         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14207         platforms.
14208         * modules/_Exit (Files): Add m4/attribute.m4.
14209         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14210         * m4/attribute.m4: New file.
14211
14212 2011-02-12  Bruno Haible  <bruno@clisp.org>
14213
14214         wcsrtombs: Work around bug on native Windows.
14215         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14216         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14217         instead of len.
14218         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14219
14220 2011-02-12  Bruno Haible  <bruno@clisp.org>
14221
14222         mbsrtowcs: Work around bug on native Windows.
14223         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14224         against mingw bug.
14225         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14226
14227 2011-02-12  Bruno Haible  <bruno@clisp.org>
14228
14229         Avoid setlocale bugs in tests.
14230         * modules/btowc (Dependencies): Add setlocale.
14231         * modules/c-strcase (Dependencies): Likewise.
14232         * modules/mbmemcasecmp (Dependencies): Likewise.
14233         * modules/mbmemcasecoll (Dependencies): Likewise.
14234         * modules/mbrtowc (Dependencies): Likewise.
14235         * modules/mbscasecmp (Dependencies): Likewise.
14236         * modules/mbscasestr (Dependencies): Likewise.
14237         * modules/mbschr (Dependencies): Likewise.
14238         * modules/mbscspn (Dependencies): Likewise.
14239         * modules/mbsinit (Dependencies): Likewise.
14240         * modules/mbsncasecmp (Dependencies): Likewise.
14241         * modules/mbsnrtowcs (Dependencies): Likewise.
14242         * modules/mbspbrk (Dependencies): Likewise.
14243         * modules/mbspcasecmp (Dependencies): Likewise.
14244         * modules/mbsrchr (Dependencies): Likewise.
14245         * modules/mbsrtowcs (Dependencies): Likewise.
14246         * modules/mbsspn (Dependencies): Likewise.
14247         * modules/mbsstr (Dependencies): Likewise.
14248         * modules/nl_langinfo (Dependencies): Likewise.
14249         * modules/quotearg (Dependencies): Likewise.
14250         * modules/unicase/locale-language (Dependencies): Likewise.
14251         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14252         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14253         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14254         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14255         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14256         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14257         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14258         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14259         * modules/vasnprintf-posix (Dependencies): Likewise.
14260         * modules/wcrtomb (Dependencies): Likewise.
14261         * modules/wcsnrtombs (Dependencies): Likewise.
14262         * modules/wcsrtombs (Dependencies): Likewise.
14263
14264 2011-02-12  Bruno Haible  <bruno@clisp.org>
14265
14266         setlocale: Workaround native Windows bug.
14267         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14268         succeeds but sets LC_CTYPE to "C", report a failure.
14269         * tests/test-setlocale2.sh: New file.
14270         * tests/test-setlocale2.c: New file.
14271         * modules/setlocale-tests (Files): Add the new files.
14272         (Makefile.am): Enable test-setlocale2.sh test.
14273         * doc/posix-functions/setlocale.texi: Mention workaround.
14274
14275 2011-02-11  Bruno Haible  <bruno@clisp.org>
14276
14277         Tests for module 'setlocale'.
14278         * modules/setlocale-tests: New file.
14279         * tests/test-setlocale1.sh: New file.
14280         * tests/test-setlocale1.c: New file.
14281
14282         New module 'setlocale'.
14283         * lib/locale.in.h (setlocale): New declaration.
14284         * lib/setlocale.c: New file, based on
14285         gettext/gettext-runtime/intl/setlocale.c.
14286         * m4/setlocale.m4: New file.
14287         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14288         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14289         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14290         REPLACE_SETLOCALE.
14291         * modules/setlocale: New file.
14292         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14293         * doc/posix-functions/setlocale.texi: Mention the new module.
14294
14295 2011-02-11  Bruno Haible  <bruno@clisp.org>
14296
14297         Prepare for locale dependent tests on mingw.
14298         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14299         because it has the wrong locale encoding.
14300         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14301         French_France.1252 instead of "fr".
14302         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14303         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14304         because it has the wrong locale encoding.
14305         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14306         native Windows, try Turkish_Turkey.65001.
14307         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14308         Chinese_China.54936.
14309
14310         Prepare for locale dependent tests on mingw.
14311         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14312         differently.
14313         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14314         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14315         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14316         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14317
14318 2011-02-11  Eric Blake  <eblake@redhat.com>
14319
14320         strptime: avoid compiler warnings
14321         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14322         compiler warnings about dead code.
14323         Reported by Daniel P. Berrange.
14324
14325 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14326
14327         doc: update users.txt
14328         * users.txt: Add rcs.
14329
14330 2011-02-10  John W. Eaton  <jwe@gnu.org>
14331
14332         doc: update users.txt
14333         * users.txt: Add octave.
14334
14335 2011-02-10  Jim Meyering  <meyering@redhat.com>
14336
14337         doc: update users.txt
14338         * users.txt: Add iwhd.
14339
14340 2011-02-09  Bruno Haible  <bruno@clisp.org>
14341
14342         gnulib-tool: Make copyright notice adjustment more robust.
14343         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14344         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14345         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14346         License".
14347         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14348
14349 2011-02-06  Bruno Haible  <bruno@clisp.org>
14350
14351         New module 'towctrans'.
14352         * modules/towctrans: New file.
14353         * lib/wctype.in.h (towctrans): New declaration.
14354         * lib/towctrans.c: New file.
14355         * lib/towctrans-impl.h: New file.
14356         * m4/towctrans.m4: New file.
14357         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14358         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14359         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14360         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14361         * doc/posix-functions/towctrans.texi: Mention the new module.
14362
14363 2011-02-06  Bruno Haible  <bruno@clisp.org>
14364
14365         New module 'wctrans'.
14366         * modules/wctrans: New file.
14367         * lib/wctype.in.h (wctrans): New declaration.
14368         * lib/wctrans.c: New file.
14369         * lib/wctrans-impl.h: New file.
14370         * m4/wctrans.m4: New file.
14371         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14372         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14373         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14374         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14375         * doc/posix-functions/wctrans.texi: Mention the new module.
14376
14377 2011-02-06  Bruno Haible  <bruno@clisp.org>
14378
14379         New module 'iswctype'.
14380         * modules/iswctype: New file.
14381         * lib/wctype.in.h (iswctype): New declaration.
14382         * lib/iswctype.c: New file.
14383         * lib/iswctype-impl.h: New file.
14384         * m4/iswctype.m4: New file.
14385         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14386         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14387         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14388         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14389         * doc/posix-functions/iswctype.texi: Mention the new module and the
14390         HP-UX 11.00 problem.
14391
14392 2011-02-06  Bruno Haible  <bruno@clisp.org>
14393
14394         New module 'wctype'.
14395         * modules/wctype: Change to represent the wctype() substitute.
14396         * lib/wctype.in.h (wctype): New declaration.
14397         * lib/wctype.c: New file.
14398         * lib/wctype-impl.h: New file.
14399         * m4/wctype.m4: New file.
14400         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14401         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14402         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14403         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14404         * doc/posix-functions/wctype.texi: Mention the new module and the
14405         HP-UX 11.00 problem.
14406
14407 2011-02-06  Bruno Haible  <bruno@clisp.org>
14408
14409         wctype-h: Ensure wctype_t and wctrans_t are defined.
14410         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14411         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14412         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14413         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14414         HAVE_WCTRANS_T.
14415         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14416
14417 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14418
14419         flock: fix license typo
14420
14421         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14422         omitted.
14423
14424 2011-02-08  Bruno Haible  <bruno@clisp.org>
14425
14426         Split large sed scripts, for HP-UX sed.
14427         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14428         to avoid HP-UX limit of 99 commands, in the near future.
14429         * modules/stdlib (Makefile.am): Likewise.
14430         * modules/unistd (Makefile.am): Likewise.
14431         * modules/wchar (Makefile.am): Likewise.
14432         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14433         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14434         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14435
14436 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14437             Bruno Haible  <bruno@clisp.org>
14438
14439         stdlib: improve random_r modularization
14440         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14441         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14442         you also need the random_r module to get this material right.
14443         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14444         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14445         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14446
14447 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14448
14449         stdlib: don't depend on stdint
14450         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14451         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14452         be independent of whether stdint.h is needed.
14453         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14454         here, instead of ...
14455         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14456         struct random_data should be using the random_r module, not just
14457         the stdlib module (which wouldn't make sense: what package needs
14458         just struct random_data without also needing random_r?).
14459         * modules/stdlib (Depends-on): Remove stdint.
14460
14461         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14462         See the thread rooted at
14463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14464         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14465         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14466         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14467         __VMS)); previously it was always included (via fcntl--.h).
14468         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14469         hand; this is good enough for load averages.  Also, do not use
14470         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14471         flags directly if available and don't bother otherwise.  (Packages
14472         that need the extra reliability should use the modules that define
14473         these flags on older platforms that lack them.)
14474         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14475         fcntl-safer.
14476
14477 2011-02-08  Jim Meyering  <meyering@redhat.com>
14478
14479         di-set.h, ino-map.h: add multiple-inclusion guard
14480         Technically, the guard is required only for ino-map.h, due to its
14481         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14482         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14483         * lib/ino-map.h: Likewise.
14484
14485 2011-02-06  Bruno Haible  <bruno@clisp.org>
14486
14487         iswblank: Ensure declaration on glibc systems.
14488         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14489         * modules/iswblank (Dependencies): Add 'extensions'.
14490         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14491
14492 2011-02-06  Bruno Haible  <bruno@clisp.org>
14493
14494         New module 'iswblank'.
14495         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14496         * modules/iswblank: New file.
14497         * modules/wctype-h (Files): Remove lib/iswblank.c.
14498         (Makefile.am): Substitute GNULIB_ISWBLANK.
14499         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14500         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14501         (gl_WCTYPE_H_DEFAULTS): New macro.
14502         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14503         * modules/iswblank-tests: New file.
14504         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14505         * tests/test-wctype-h.c (main): Remove iswblank tests.
14506         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14507         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14508         of 'wctype-h'.
14509         * NEWS: Mention the change.
14510         * modules/mbchar (Depends-on): Add iswblank.
14511
14512 2011-02-08  Bruno Haible  <bruno@clisp.org>
14513
14514         di-set tests: Refactor.
14515         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14516         unnecessary includes.
14517         (ASSERT): Remove macro.
14518         (main): Make C90 compliant by avoiding variable declaration after
14519         statement.
14520         * modules/di-set-tests (Files): Add tests/macros.h.
14521
14522 2011-02-08  Bruno Haible  <bruno@clisp.org>
14523
14524         ino-map tests: Refactor.
14525         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14526         unnecessary includes.
14527         (ASSERT): Remove macro.
14528         (main): Make C90 compliant by avoiding variable declaration after
14529         statement.
14530         * modules/ino-map-tests (Files): Add tests/macros.h.
14531
14532 2011-02-08  Jim Meyering  <meyering@redhat.com>
14533
14534         di-set: add "const" to a cast
14535         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14536         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14537
14538 2011-02-06  Bruno Haible  <bruno@clisp.org>
14539
14540         Rename module 'wctype' to 'wctype-h'.
14541         * modules/wctype-h: Renamed from modules/wctype.
14542         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14543         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14544         (Files, Depends-on, Makefile.am): Update.
14545         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14546         (Files, Makefile.am): Update.
14547         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14548         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14549         * doc/posix-headers/wctype.texi: Update.
14550         * doc/posix-functions/iswalnum.texi: Update.
14551         * doc/posix-functions/iswalpha.texi: Update.
14552         * doc/posix-functions/iswblank.texi: Update.
14553         * doc/posix-functions/iswcntrl.texi: Update.
14554         * doc/posix-functions/iswdigit.texi: Update.
14555         * doc/posix-functions/iswgraph.texi: Update.
14556         * doc/posix-functions/iswlower.texi: Update.
14557         * doc/posix-functions/iswprint.texi: Update.
14558         * doc/posix-functions/iswpunct.texi: Update.
14559         * doc/posix-functions/iswspace.texi: Update.
14560         * doc/posix-functions/iswupper.texi: Update.
14561         * doc/posix-functions/iswxdigit.texi: Update.
14562         * doc/posix-functions/towlower.texi: Update.
14563         * doc/posix-functions/towupper.texi: Update.
14564         * NEWS: Mention the change.
14565         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14566         * modules/mbchar (Dependencies): Likewise.
14567         * modules/mbswidth (Dependencies): Likewise.
14568         * modules/quotearg (Dependencies): Likewise.
14569         * modules/regex (Dependencies): Likewise.
14570         * modules/wcscasecmp (Dependencies): Likewise.
14571         * modules/wcsncasecmp (Dependencies): Likewise.
14572         * modules/wcwidth (Dependencies): Likewise.
14573
14574 2011-02-06  Bruno Haible  <bruno@clisp.org>
14575
14576         New module 'wcswidth'.
14577         * modules/wcswidth: New file.
14578         * lib/wchar.in.h (wcswidth): New declaration.
14579         * lib/wcswidth.c: New file.
14580         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14581         * m4/wcswidth.m4: New file.
14582         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14583         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14584         REPLACE_WCSWIDTH.
14585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14586         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14587         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14588         * doc/posix-functions/wcswidth.texi: Mention the new module.
14589
14590 2011-02-06  Bruno Haible  <bruno@clisp.org>
14591
14592         New module 'wcstok'.
14593         * modules/wcstok: New file.
14594         * lib/wchar.in.h (wcstok): New declaration.
14595         * lib/wcstok.c: New file.
14596         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14597         * m4/wcstok.m4: New file.
14598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14600         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14601         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14602         * doc/posix-functions/wcstok.texi: Mention the new module.
14603
14604 2011-02-06  Bruno Haible  <bruno@clisp.org>
14605
14606         New module 'wcsstr'.
14607         * modules/wcsstr: New file.
14608         * lib/wchar.in.h (wcsstr): New declaration.
14609         * lib/wcsstr.c: New file.
14610         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14611         * m4/wcsstr.m4: New file.
14612         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14613         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14614         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14615         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14616         * doc/posix-functions/wcsstr.texi: Mention the new module.
14617
14618 2011-02-06  Bruno Haible  <bruno@clisp.org>
14619
14620         New module 'wcspbrk'.
14621         * modules/wcspbrk: New file.
14622         * lib/wchar.in.h (wcspbrk): New declaration.
14623         * lib/wcspbrk.c: New file.
14624         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14625         * m4/wcspbrk.m4: New file.
14626         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14627         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14628         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14629         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14630         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14631
14632 2011-02-06  Bruno Haible  <bruno@clisp.org>
14633
14634         New module 'wcsspn'.
14635         * modules/wcsspn: New file.
14636         * lib/wchar.in.h (wcsspn): New declaration.
14637         * lib/wcsspn.c: New file.
14638         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14639         * m4/wcsspn.m4: New file.
14640         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14641         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14642         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14643         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14644         * doc/posix-functions/wcsspn.texi: Mention the new module.
14645
14646 2011-02-06  Bruno Haible  <bruno@clisp.org>
14647
14648         New module 'wcscspn'.
14649         * modules/wcscspn: New file.
14650         * lib/wchar.in.h (wcscspn): New declaration.
14651         * lib/wcscspn.c: New file.
14652         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14653         * m4/wcscspn.m4: New file.
14654         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14655         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14656         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14657         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14658         * doc/posix-functions/wcscspn.texi: Mention the new module.
14659
14660 2011-02-06  Bruno Haible  <bruno@clisp.org>
14661
14662         New module 'wcsrchr'.
14663         * modules/wcsrchr: New file.
14664         * lib/wchar.in.h (wcsrchr): New declaration.
14665         * lib/wcsrchr.c: New file.
14666         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14667         * m4/wcsrchr.m4: New file.
14668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14670         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14671         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14672         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14673
14674 2011-02-06  Bruno Haible  <bruno@clisp.org>
14675
14676         New module 'wcschr'.
14677         * modules/wcschr: New file.
14678         * lib/wchar.in.h (wcschr): New declaration.
14679         * lib/wcschr.c: New file.
14680         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14681         * m4/wcschr.m4: New file.
14682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14684         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14685         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14686         * doc/posix-functions/wcschr.texi: Mention the new module.
14687
14688 2011-02-06  Bruno Haible  <bruno@clisp.org>
14689
14690         New module 'wcsdup'.
14691         * modules/wcsdup: New file.
14692         * lib/wchar.in.h (wcsdup): New declaration.
14693         * lib/wcsdup.c: New file.
14694         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14695         * m4/wcsdup.m4: New file.
14696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14698         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14699         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14700         * doc/posix-functions/wcsdup.texi: Mention the new module.
14701
14702 2011-02-06  Bruno Haible  <bruno@clisp.org>
14703
14704         New module 'wcsxfrm'.
14705         * modules/wcsxfrm: New file.
14706         * lib/wchar.in.h (wcsxfrm): New declaration.
14707         * lib/wcsxfrm.c: New file.
14708         * lib/wcsxfrm-impl.h: New file.
14709         * m4/wcsxfrm.m4: New file.
14710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14712         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14713         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14714         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14715
14716 2011-02-06  Bruno Haible  <bruno@clisp.org>
14717
14718         New module 'wcscoll'.
14719         * modules/wcscoll: New file.
14720         * lib/wchar.in.h (wcscoll): New declaration.
14721         * lib/wcscoll.c: New file.
14722         * lib/wcscoll-impl.h: New file.
14723         * m4/wcscoll.m4: New file.
14724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14726         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14727         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14728         * doc/posix-functions/wcscoll.texi: Mention the new module.
14729
14730 2011-02-06  Bruno Haible  <bruno@clisp.org>
14731
14732         New module 'wcsncasecmp'.
14733         * modules/wcsncasecmp: New file.
14734         * lib/wchar.in.h (wcsncasecmp): New declaration.
14735         * lib/wcsncasecmp.c: New file.
14736         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14737         * m4/wcsncasecmp.m4: New file.
14738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14740         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14741         HAVE_WCSNCASECMP.
14742         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14743         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14744
14745 2011-02-06  Bruno Haible  <bruno@clisp.org>
14746
14747         New module 'wcscasecmp'.
14748         * modules/wcscasecmp: New file.
14749         * lib/wchar.in.h (wcscasecmp): New declaration.
14750         * lib/wcscasecmp.c: New file.
14751         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14752         * m4/wcscasecmp.m4: New file.
14753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14756         HAVE_WCSCASECMP.
14757         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14758         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14759
14760 2011-02-05  Bruno Haible  <bruno@clisp.org>
14761
14762         New module 'wcsncmp'.
14763         * modules/wcsncmp: New file.
14764         * lib/wchar.in.h (wcsncmp): New declaration.
14765         * lib/wcsncmp.c: New file.
14766         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14767         * m4/wcsncmp.m4: New file.
14768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14770         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14771         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14772         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14773
14774 2011-02-05  Bruno Haible  <bruno@clisp.org>
14775
14776         New module 'wcscmp'.
14777         * modules/wcscmp: New file.
14778         * lib/wchar.in.h (wcscmp): New declaration.
14779         * lib/wcscmp.c: New file.
14780         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14781         * m4/wcscmp.m4: New file.
14782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14785         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14786         * doc/posix-functions/wcscmp.texi: Mention the new module.
14787
14788 2011-02-05  Bruno Haible  <bruno@clisp.org>
14789
14790         New module 'wcsncat'.
14791         * modules/wcsncat: New file.
14792         * lib/wchar.in.h (wcsncat): New declaration.
14793         * lib/wcsncat.c: New file.
14794         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14795         * m4/wcsncat.m4: New file.
14796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14798         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14799         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14800         * doc/posix-functions/wcsncat.texi: Mention the new module.
14801
14802 2011-02-05  Bruno Haible  <bruno@clisp.org>
14803
14804         New module 'wcscat'.
14805         * modules/wcscat: New file.
14806         * lib/wchar.in.h (wcscat): New declaration.
14807         * lib/wcscat.c: New file.
14808         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14809         * m4/wcscat.m4: New file.
14810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14812         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14813         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14814         * doc/posix-functions/wcscat.texi: Mention the new module.
14815
14816 2011-02-05  Bruno Haible  <bruno@clisp.org>
14817
14818         New module 'wcpncpy'.
14819         * modules/wcpncpy: New file.
14820         * lib/wchar.in.h (wcpncpy): New declaration.
14821         * lib/wcpncpy.c: New file.
14822         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14823         * m4/wcpncpy.m4: New file.
14824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14826         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14827         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14828         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14829
14830 2011-02-05  Bruno Haible  <bruno@clisp.org>
14831
14832         New module 'wcsncpy'.
14833         * modules/wcsncpy: New file.
14834         * lib/wchar.in.h (wcsncpy): New declaration.
14835         * lib/wcsncpy.c: New file.
14836         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14837         * m4/wcsncpy.m4: New file.
14838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14840         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14841         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14842         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14843
14844 2011-02-05  Bruno Haible  <bruno@clisp.org>
14845
14846         New module 'wcpcpy'.
14847         * modules/wcpcpy: New file.
14848         * lib/wchar.in.h (wcpcpy): New declaration.
14849         * lib/wcpcpy.c: New file.
14850         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14851         * m4/wcpcpy.m4: New file.
14852         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14853         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14854         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14855         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14856         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14857
14858 2011-02-05  Bruno Haible  <bruno@clisp.org>
14859
14860         New module 'wcscpy'.
14861         * modules/wcscpy: New file.
14862         * lib/wchar.in.h (wcscpy): New declaration.
14863         * lib/wcscpy.c: New file.
14864         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14865         * m4/wcscpy.m4: New file.
14866         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14867         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14868         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14869         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14870         * doc/posix-functions/wcscpy.texi: Mention the new module.
14871
14872 2011-02-05  Bruno Haible  <bruno@clisp.org>
14873
14874         New module 'wcsnlen'.
14875         * modules/wcsnlen: New file.
14876         * lib/wchar.in.h (wcsnlen): New declaration.
14877         * lib/wcsnlen.c: New file.
14878         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14879         * m4/wcsnlen.m4: New file.
14880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14882         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14883         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14884         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14885
14886 2011-02-05  Bruno Haible  <bruno@clisp.org>
14887
14888         New module 'wcslen'.
14889         * modules/wcslen: New file.
14890         * lib/wchar.in.h (wcslen): New declaration.
14891         * lib/wcslen.c: New file.
14892         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14893         * m4/wcslen.m4: New file.
14894         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14895         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14896         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14897         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14898         * doc/posix-functions/wcslen.texi: Mention the new module.
14899
14900 2011-02-05  Bruno Haible  <bruno@clisp.org>
14901
14902         New module 'wmemset'.
14903         * modules/wmemset: New file.
14904         * lib/wchar.in.h (wmemset): New declaration.
14905         * lib/wmemset.c: New file.
14906         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14907         * m4/wmemset.m4: New file.
14908         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14909         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14910         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14911         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14912         * doc/posix-functions/wmemset.texi: Mention the new module.
14913
14914 2011-02-05  Bruno Haible  <bruno@clisp.org>
14915
14916         New module 'wmemmove'.
14917         * modules/wmemmove: New file.
14918         * lib/wchar.in.h (wmemmove): New declaration.
14919         * lib/wmemmove.c: New file.
14920         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14921         * m4/wmemmove.m4: New file.
14922         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14923         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14924         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14925         HAVE_WMEMMOVE.
14926         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14927         * doc/posix-functions/wmemmove.texi: Mention the new module.
14928
14929 2011-02-05  Bruno Haible  <bruno@clisp.org>
14930
14931         New module 'wmemcpy'.
14932         * modules/wmemcpy: New file.
14933         * lib/wchar.in.h (wmemcpy): New declaration.
14934         * lib/wmemcpy.c: New file.
14935         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14936         * m4/wmemcpy.m4: New file.
14937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14939         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14940         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14941         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14942
14943 2011-02-05  Bruno Haible  <bruno@clisp.org>
14944
14945         New module 'wmemcmp'.
14946         * modules/wmemcmp: New file.
14947         * lib/wchar.in.h (wmemcmp): New declaration.
14948         * lib/wmemcmp.c: New file.
14949         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14950         * m4/wmemcmp.m4: New file.
14951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14953         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14954         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14955         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14956
14957 2011-02-07  Jim Meyering  <meyering@redhat.com>
14958
14959         di-set, ino-map: new modules, from coreutils
14960         * lib/di-set.c: New file.
14961         * lib/di-set.h: Likewise.
14962         * lib/ino-map.c: Likewise.
14963         * lib/ino-map.h: Likewise.
14964         * modules/di-set: Likewise.
14965         * modules/di-set-tests: Likewise.
14966         * modules/ino-map: Likewise.
14967         * modules/ino-map-tests: Likewise.
14968         * tests/test-di-set.c: Likewise.
14969         * tests/test-ino-map.c: Likewise.
14970
14971 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14972
14973         getloadavg: merge minor changes from Emacs
14974
14975         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14976         (getloadavg): Use memset, not bzero.
14977
14978         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14979         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14980         clash (bug#86).
14981
14982 2010-11-14  Bruno Haible  <bruno@clisp.org>
14983
14984         Allow multiple gnulib generated replacements to coexist.
14985         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14986         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14987         * lib/langinfo.in.h (nl_item): Likewise.
14988         * lib/math.in.h (_NaN, NAN): Likewise.
14989         * lib/netdb.in.h (struct addrinfo): Likewise.
14990         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14991         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14992         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14993         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14994         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14995         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14996         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14997         pthread_mutexattr_init, pthread_mutexattr_settype,
14998         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14999         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15000         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15001         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15002         * lib/sched.in.h (struct sched_param): Likewise.
15003         * lib/se-selinux.in.h (security_class_t, security_context_t,
15004         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15005         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15006         lsetfilecon, fsetfilecon, security_check_context,
15007         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15008         Likewise.
15009         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15010         Likewise.
15011         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15012         _gl_function_taking_int_returning_void_t, union sigval,
15013         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15014         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15015         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15016         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15017         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15018         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15019         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15020         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15021         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15022         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15023         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15024         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15025         socklen_t, rpl_fd_isset): Likewise.
15026         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15027         * lib/sys_time.in.h (struct timeval): Likewise.
15028         * lib/sys_times.in.h (struct tms): Likewise.
15029         * lib/sys_utsname.in.h (struct utsname):
15030         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15031         * lib/unistd.in.h (getpagesize): Likewise.
15032         * lib/wchar.in.h (mbstate_t): Likewise.
15033         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15034         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15035         towlower, towupper): Likewise.
15036         Reported by Sam Steingold <sds@gnu.org>.
15037
15038 2011-02-05  Eric Blake  <eblake@redhat.com>
15039
15040         unsetenv: work around Haiku issues
15041         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15042         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15043
15044 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15045
15046         libposix: avoid calling error() within libposix
15047         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15048         is defined.
15049
15050 2011-02-05  Eric Blake  <eblake@redhat.com>
15051
15052         strerror_r-posix: port to cygwin
15053         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15054         implementation.
15055         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15056         * tests/test-strerror_r.c (main): Fix test.
15057         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15058         issue.
15059
15060 2011-02-05  Bruno Haible  <bruno@clisp.org>
15061
15062         New module 'wmemchr'.
15063         * modules/wmemchr: New file.
15064         * lib/wchar.in.h (wmemchr): New declaration.
15065         * lib/wmemchr.c: New file.
15066         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15067         * m4/wmemchr.m4: New file.
15068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15070         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15071         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15072         * doc/posix-functions/wmemchr.texi: Mention the new module.
15073
15074 2011-02-04  Eric Blake  <eblake@redhat.com>
15075
15076         fdopendir: detect FreeBSD bug
15077         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15078         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15079
15080 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15081
15082         stdbool: do not define HAVE_STDBOOL_H
15083         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15084         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15085         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15086         imported from the latest Autoconf git.  It was motivated by Emacs,
15087         which uses gnulib but does not need HAVE_STDBOOL_H.
15088
15089 2011-02-04  Bruno Haible  <bruno@clisp.org>
15090
15091         wcsnrtombs: Prepare for new module wwcsnrtombs.
15092         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15093         * lib/wcsnrtombs.c: Include it.
15094         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15095
15096         wcsrtombs: Prepare for new module wwcsrtombs.
15097         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15098         * lib/wcsrtombs.c: Include it.
15099         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15100
15101         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15102         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15103         * lib/mbsnrtowcs.c: Include it.
15104         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15105
15106         mbsrtowcs: Prepare for new module mbsrtowwcs.
15107         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15108         * lib/mbsrtowcs.c: Include it.
15109         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15110
15111 2011-02-04  Bruno Haible  <bruno@clisp.org>
15112
15113         vasnprintf: Reduce use of malloc for small format strings.
15114         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15115         (arguments): Add room for the first 7 arguments.
15116         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15117         (char_directives, u8_directives, u16_directives, u32_directives): Add
15118         room for the first 7 directives.
15119         * lib/printf-parse.c: Include <string.h>.
15120         (PRINTF_PARSE): Change memory handling code so that it uses the first
15121         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15122         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15123         Reported by Pádraig Brady <P@draigbrady.com>.
15124
15125 2011-01-31  Eric Blake  <eblake@redhat.com>
15126
15127         dup2: work around Haiku bug
15128         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15129         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15130         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15131         * tests/test-dup2.c (main): Enhance test.
15132
15133 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15134
15135         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15136         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15137         declared by eglibc 2.11.2.
15138         * lib/stdio.in.h: Likewise.
15139
15140 2011-01-31  Eric Blake  <eblake@redhat.com>
15141
15142         ignore-value: add missing test dependency
15143         * tests/test-ignore-value.c: Revert previous change; stdio.h
15144         provides off_t.
15145         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15146
15147 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15148
15149         mktime: clarify long_int width checking
15150         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15151         the top level, to make it clearer that the assumption about
15152         long_int width is being checked.  See
15153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15154
15155 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15156
15157         ignore-value: Fix self-test.
15158         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15159
15160 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15161
15162         TYPE_MAXIMUM: avoid theoretically undefined behavior
15163         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15164         negative number, which the C Standard says has undefined behavior.
15165         In practice this is not a problem, but might as well do it by the book.
15166         Reported by Rich Felker and Eric Blake; see
15167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15168         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15169         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15171         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15172         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15173         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15174
15175         mktime: #undef mktime before #defining it
15176         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15177
15178         mktime: systematically normalize tm_isdst comparisons
15179         * lib/mktime.c (isdst_differ): New function.
15180         (__mktime_internal): Use it systematically for all isdst comparisons.
15181         This completes the fix for libc BZ #6723, and removes the need for
15182         normalizing tm_isdst.  See
15183         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15184         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15185
15186         mktime: fix some integer overflow issues and sidestep the rest
15187
15188         This was prompted by a bug report by Benjamin Lindner for MinGW
15189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15190         His bug is due to signed integer overflow (0 - INT_MIN), and I
15191         I scanned through mktime.c looking for other integer overflow
15192         problems, fixing all the bugs I found.
15193
15194         Although the C Standard says the resulting code is still not safe
15195         in the presence of integer overflow, in practice it should be good
15196         enough for all real-world two's-complement implementations, except
15197         for debugging environments that deliberately trap on integer
15198         overflow (e.g., gcc -ftrapv).
15199
15200         * lib/mktime.c (WRAPV): New macro.
15201         (SHR): Also check that long_int and time_t shift right in the
15202         usual way, before using the fast-but-unportable method.
15203         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15204         used.  The code already assumed two's complement, so there's
15205         no need to test for alternatives.  All uses removed.
15206         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15207         the C standard.  Problem reported by Rich Felker in
15208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15209         (twos_complement_arithmetic): Also check long_int and time_t.
15210         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15211         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15212         (__mktime_internal): Avoid integer overflow with unary subtraction
15213         in two instances where -1 - X is an adequate replacement for -X,
15214         since the calculations are approximate.
15215
15216 2011-01-29  Eric Blake  <eblake@redhat.com>
15217
15218         mktime: avoid infinite loop
15219         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15220         type; behavior is still undefined but portable to all known targets.
15221         Reported by Rich Felker.
15222
15223 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15224
15225         rename, unlink, same-inode: Relicense.
15226         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15227         * modules/unlink (License): Likewise.
15228         * modules/same-inode (License): Likewise.
15229
15230 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15231
15232         mktime: avoid problems on NetBSD 5 / i386
15233         * lib/mktime.c (long_int): New type.  This works around a problem
15234         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15235         but time_t is 64 bits, and where I expect the existing code is
15236         wrong in some cases.
15237         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15238         (ydhms_diff): Bring back the compile-time check for wide-enough
15239         year and yday.
15240
15241         mktime: fix misspelling in comment
15242         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15243         This merges all recent glibc changes of importance.
15244
15245 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15246
15247         move-if-change: cope with concurrent mv of identical file.
15248         * build-aux/move-if-change (CMPPROG): Accept environment
15249         variable as an override for `cmp'.
15250         (usage): Document CMPPROG.
15251         Adjust comparison to drop stdout.  Cope with failure of mv if
15252         the target file exists and is identical to the source, for
15253         parallel builds.
15254         Report from H.J. Lu against binutils in PR binutils/12283.
15255
15256 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15257
15258         * users.txt: Mention sharutils.
15259
15260 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15261
15262         * users.txt: Mention OATH Toolkit.
15263
15264 2011-01-27  Bruno Haible  <bruno@clisp.org>
15265
15266         Prepare for supporting FreeBSD 10.
15267         * build-aux/config.libpath: Remove handling of freebsd1*.
15268
15269 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15270
15271         Prepare for supporting FreeBSD 10.
15272         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15273         match FreeBSD 10.0.
15274
15275 2011-01-27  Bruno Haible  <bruno@clisp.org>
15276
15277         vma-iter, get-rusage-as: Add OpenBSD support.
15278         * modules/vma-iter (configure.ac): Test for mquery.
15279         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15280         * lib/vma-iter.c: Include <sys/mman.h>.
15281         (vma_iterate): Add an implementation based on mquery().
15282         * lib/resource-ext.h (get_rusage_as): Update comments.
15283         * lib/get-rusage-as.c: Likewise.
15284         * lib/get-rusage-data.c: Likewise.
15285
15286 2011-01-26  Karl Berry  <karl@gnu.org>
15287
15288         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15289         variables to make it easier to override the makeinfo program used.
15290
15291 2011-01-26  Eric Blake  <eblake@redhat.com>
15292
15293         fcntl: work around Haiku F_DUPFD bugs
15294         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15295         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15296         cloexec bit on duplication.
15297         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15298
15299 2011-01-26  Bruno Haible  <bruno@clisp.org>
15300
15301         Enable memory leak tests on AIX.
15302         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15303         * tests/test-fprintf-posix3.c (main): Likewise.
15304
15305 2011-01-26  Bruno Haible  <bruno@clisp.org>
15306
15307         Tests for module 'get-rusage-data'.
15308         * modules/get-rusage-data-tests: New file.
15309         * tests/test-get-rusage-data.c: New file.
15310
15311         New module 'get-rusage-data'.
15312         * lib/resource-ext.h (get_rusage_data): New declaration.
15313         * lib/get-rusage-data.c: New file.
15314         * modules/get-rusage-data: New file.
15315
15316 2011-01-25  Bruno Haible  <bruno@clisp.org>
15317
15318         get-rusage-as: Allow for easier testing.
15319         * lib/resource-ext.h (get_rusage_as): Add comment.
15320         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15321         (main): New function for interactive testing.
15322
15323 2011-01-25  Bruno Haible  <bruno@clisp.org>
15324
15325         vma-iter: Treat Haiku like BeOS.
15326         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15327         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15328
15329 2011-01-25  Eric Blake  <eblake@redhat.com>
15330
15331         c-stack: fix regression on cygwin when libsigsegv is present
15332         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15333
15334 2011-01-24  Bruno Haible  <bruno@clisp.org>
15335
15336         vma-iter: Avoid empty intervals.
15337         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15338         on an empty interval.
15339
15340 2011-01-24  Jim Meyering  <meyering@redhat.com>
15341
15342         u64: remove unnecessary #include
15343         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15344
15345 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15346
15347         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15348         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15349
15350 2011-01-23  Bruno Haible  <bruno@clisp.org>
15351
15352         New module 'vma-iter'.
15353         * lib/vma-iter.h: New file.
15354         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15355         * modules/vma-iter: New file.
15356         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15357         for get_rusage_as_via_iterator.
15358         (vma_iterate_callback): New function.
15359         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15360         * modules/get-rusage-as (Depends-on): Add vma-iter.
15361
15362 2011-01-23  Bruno Haible  <bruno@clisp.org>
15363
15364         uninorm: Tweak includes.
15365         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15366         Reported by Jim Meyering.
15367
15368 2011-01-23  Bruno Haible  <bruno@clisp.org>
15369
15370         get-rusage-as: Improve on NetBSD.
15371         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15372         /proc, like on FreeBSD.
15373
15374 2011-01-23  Jim Meyering  <meyering@redhat.com>
15375
15376         xreadlink.h: remove unnecessary #include
15377         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15378
15379         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15380         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15381
15382 2011-01-23  Bruno Haible  <bruno@clisp.org>
15383
15384         get-rusage-as: Fix bug.
15385         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15386         original limit when aborting the first loop.
15387
15388 2011-01-23  Bruno Haible  <bruno@clisp.org>
15389
15390         wctype: Ensure valid C syntax.
15391         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15392         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15393
15394 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15395
15396         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15397         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15398         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15399         as they are needed only for configure's test case.
15400         This removes two unnecessary symbols from config.h.
15401
15402         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15403         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15404         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15405         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15406         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15407         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15408         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15409         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15410         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15411         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15412         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15413         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15414         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15415         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15416         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15417         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15418         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15419         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15420
15421 2011-01-21  Eric Blake  <eblake@redhat.com>
15422
15423         maintainer-makefile: work with older git for submodule check
15424         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15425         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15426         Reported by Matthias Bolte.
15427
15428         bootstrap: minor portability fixes
15429         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15430         (usage): Omit leading capital and trailing . on help phrases, per
15431         GNU Coding Standards.
15432         (check_versions, top level): Prefix messages with script name.
15433
15434 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15435
15436         bootstrap: support --no-git option
15437         * build-aux/bootstrap: Add --no-git option, to be used when
15438         --gnulib-srcdir points to the exact desired checkout.
15439
15440 2011-01-21  Eric Blake  <eblake@redhat.com>
15441
15442         strerror_r-posix: work with glibc 2.13
15443         * lib/strerror_r.c (strerror_r): Fix return type.
15444
15445 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15446             Bruno Haible  <bruno@clisp.org>
15447
15448         uN_strstr: New unit tests.
15449         * modules/unistr/u8-strstr-tests: New file.
15450         * modules/unistr/u16-strstr-tests: New file.
15451         * modules/unistr/u32-strstr-tests: New file.
15452         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15453         * tests/unistr/test-u8-strstr.c: New file.
15454         * tests/unistr/test-u16-strstr.c: New file.
15455         * tests/unistr/test-u32-strstr.c: New file.
15456
15457 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15458             Bruno Haible  <bruno@clisp.org>
15459
15460         Make uN_strstr functions O(n) worst-case.
15461         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15462         16-bit and 32-bit unit cases, use the unibyte algorithm from
15463         lib/mbsstr.c.
15464         * lib/unistr/u8-strstr.c: Include <string.h>.
15465         (UNIT_IS_UINT8_T): New macro.
15466         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15467         (U_STRLEN, U_STRNLEN): New macros.
15468         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15469         (U_STRLEN, U_STRNLEN): New macros.
15470         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15471         (configure.ac): Update required libunistring version.
15472         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15473         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15474         malloca.
15475         (configure.ac): Update required libunistring version.
15476         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15477         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15478         malloca.
15479         (configure.ac): Update required libunistring version.
15480
15481 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15482             Bruno Haible  <bruno@clisp.org>
15483
15484         Prepare for faster uN_strstr functions.
15485         * lib/str-kmp.h: Support definable UNITs.
15486         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15487         needle_len argument.
15488         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15489         * lib/mbscasestr.c (mbscasestr): Likewise.
15490
15491 2011-01-21  Pádraig Brady <P@draigBrady.com>
15492
15493         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15494         * tests/test-malloca.c (main): Unset the environment variable
15495         to greatly speed up the test.
15496         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15497         * modules/malloca-tests: Depend on unsetenv.
15498
15499 2011-01-21  Pádraig Brady <P@draigBrady.com>
15500
15501         ignore-value: remove stdint dependency
15502         * lib/ignore-value.h: Remove <stdint.h>
15503         * modules/ignore-value: Remove stdint dependency.
15504
15505 2011-01-21  Jim Meyering  <meyering@redhat.com>
15506
15507         maint.mk: adjust variable name to be consistent with other gl_ vars
15508         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15509         to be lower case.
15510
15511 2011-01-20  Jim Meyering  <meyering@redhat.com>
15512
15513         maint.mk: make "check" depend on public-submodule-commit by default
15514         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15515
15516 2011-01-20  Bruno Haible  <bruno@clisp.org>
15517
15518         mbfile, mbiter: Complete change from 2008-12-21.
15519         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15520         * m4/mbiter.m4 (gl_MBITER): Likewise.
15521
15522 2011-01-20  Jim Meyering  <meyering@redhat.com>
15523
15524         init.sh: insert space between each function name and "()"
15525         * tests/init.sh: Make it a little easier to see that a function's
15526         name is "warn_", and not "warn" when looking at the first part of
15527         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15528
15529 2011-01-20  Jim Meyering  <meyering@redhat.com>
15530
15531         mountlist: clean up code formatting
15532         * lib/mountlist.c (read_file_system_list): Split a long line,
15533         correct bracing style, use NULL in place of "(struct statfs *)0",
15534         don't parenthesize return value, add spaces around "=" and after
15535         ";-in-for-stmt".
15536
15537 2011-01-14  Markus Duft <mduft@gentoo.org>
15538
15539         mountlist: add support for Interix
15540         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15541         Apply statvfs to all entries of /dev/fs.
15542         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15543         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15544
15545 2011-01-20  Jim Meyering  <meyering@redhat.com>
15546
15547         maint.mk: improve the public-submodule-commit rule
15548         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15549         to suppress printing of its commands... unless V=1.
15550         Add git submodule's --quiet option to suppress printing of e.g.,
15551         "Entering gnulib" output.
15552         "cd" into $(srcdir) before running git submodule.
15553
15554 2011-01-20  Bruno Haible  <bruno@clisp.org>
15555
15556         include_next: Fix bug introduced on 2011-01-18.
15557         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15558         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15559         ac_cv_header_... variable if the second argument is not 'check'.
15560         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15561         gl_NEXT_HEADERS_INTERNAL.
15562
15563 2011-01-20  Bruno Haible  <bruno@clisp.org>
15564
15565         Allow the user to avoid the GNULIB_TEST_* macros.
15566         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15567         Suggested by Paul Eggert.
15568
15569 2011-01-14  Jim Meyering  <meyering@redhat.com>
15570
15571         bootstrap: avoid failure when there is no .gitmodules file
15572         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15573         has been assigned to, even when its value is the empty string.
15574         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15575         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15576         Reported by John W. Eaton <jwe@gnu.org>.
15577
15578 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15579
15580         assume <ctype.h>, ..., <time.h> exist
15581         For years gnulib has been assuming the existence of the headers
15582         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15583         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15584         them, since they don't appear to be needed.
15585         * README (Portability guidelines): Document this.
15586         * lib/flock.c: Assume <fcntl.h> exists.
15587         * lib/regex_internal.h: Assume <locale.h> exists.
15588         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15589         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15590         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15591         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15592         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15593         * m4/regex.m4 (gl_REGEX): Likewise.
15594         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15595         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15596         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15597         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15598         * tests/test-argp.c: Likewise.
15599         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15600
15601         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15602         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15603         AA_APPLE_UNIVERSAL_BUILD.  See
15604         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15605         * NEWS: Document this.
15606
15607 2011-01-19  Eric Blake  <eblake@redhat.com>
15608
15609         c-stack: assume stack overflow if SA_SIGINFO unsupported
15610         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15611         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15612         sigaction will work.
15613         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15614         behavior match Linux.
15615         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15616
15617         stdbool-tests: accomodate Haiku
15618         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15619
15620         binary-io: fix O_TEXT on Haiku
15621         * modules/binary-io (Depends-on): Add fcntl-h.
15622         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15623         than blindly undefining O_TEXT.
15624         Reported by Scott McCreary.
15625
15626 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15627
15628         include_next: do not check for standard headers like stddef.h
15629
15630         I found this problem when modifying Emacs to use gnulib.
15631         I noticed that it added HAVE_STDDEF_H to config.h, even though
15632         gnulib always assumes <stddef.h> exists as per README and this
15633         symbol is unnecessary.
15634         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15635         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15636         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15637         faster for headers like stddef.h that are known to exist.
15638         (gl_CHECK_NEXT_HEADERS): Use it.
15639         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15640         rather than gl_CHECK_NEXT_HEADERS.
15641         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15642         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15643
15644 2011-01-18  Eric Blake  <eblake@redhat.com>
15645
15646         ansi-c++-opt: skip C++ dependency style if C++ is unused
15647         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15648         tests when we know C++ compilation is not desired.
15649         Reported by Scott McCreary.
15650
15651 2011-01-18  Bruno Haible  <bruno@clisp.org>
15652
15653         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15654         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15655         (main): Perform test also when getrlimit and setrlimit don't exist or
15656         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15657         limiting the address space size using setrlimit, compare the address
15658         space size before and after the the test.
15659         * tests/test-dprintf-posix2.c: Likewise.
15660         * tests/test-fprintf-posix3.sh: Update skip messages.
15661         * tests/test-dprintf-posix2.sh: Likewise.
15662         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15663         * modules/dprintf-posix-tests (Depends-on): Likewise.
15664         Reported by Bruce Korb <bkorb@gnu.org> and
15665         Gary V. Vaughan <gary@gnu.org>.
15666
15667 2011-01-18  Bruno Haible  <bruno@clisp.org>
15668
15669         get-rusage-as: Improvement for Cygwin.
15670         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15671         areas that are merely reserved.
15672
15673 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15674
15675         strftime: remove dependencies on multibyte modules
15676
15677         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15678         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15679         only if __osf__ is defined, and I suspect OSF doesn't need these
15680         other modules.  If my guess is wrong, we'll need to come up with a
15681         variant of strftime that doesn't need the multibyte modules.
15682
15683         I discovered this problem when attempting modify Emacs to use the
15684         strftime module.  With the previous gnulib, this caused Emacs to
15685         need 31 new files, ranging from lib/config.charset to
15686         m4/wint_t.m4.  This was overkill and I expect would be offputting
15687         to the Emacs maintainers.  After this change, only 6 new files are
15688         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15689         stdbool.m4, and tm_gmtoff.m4.
15690
15691         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15692         Suggested by Bruno Haible in
15693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15694         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15695         and do not check for wchar.h.
15696         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15697         (Depends-on): Remove mbrlen, mbsinit, wchar.
15698
15699 2011-01-18  Bruno Haible  <bruno@clisp.org>
15700
15701         Tests for module 'get-rusage-as'.
15702         * modules/get-rusage-as-tests: New file.
15703         * tests/test-get-rusage-as.c: New file.
15704
15705         New module 'get-rusage-as'.
15706         * modules/get-rusage-as: New file.
15707         * lib/resource-ext.h: New file.
15708         * lib/get-rusage-as.c: New file.
15709
15710 2011-01-17  Eric Blake  <eblake@redhat.com>
15711
15712         sigaction: relax license from LGPLv3+ to LGPLv2+
15713         * modules/sigaction (License): Relax to LGPLv2+.
15714
15715 2011-01-14  Bruno Haible  <bruno@clisp.org>
15716
15717         filemode: Make function declarations usable in C++ mode.
15718         * lib/filemode.h: Enclose function declarations in extern "C" block.
15719         Reported by John W. Eaton <jwe@gnu.org>.
15720
15721 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15722
15723         save-cwd: no longer include "xgetcwd.h"
15724         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15725         This avoids a compilation failure in projects that use save-cwd
15726         without also using the xgetcwd module.
15727
15728 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15729
15730         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15731         This is so that a program like Emacs, which needs only dtoastr,
15732         does not have to bother with distributing and compiling ftoastr
15733         and ldtoastr.
15734         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15735         * modules/dtoastr, modules/ldtoastr: New files.
15736         * modules/ftoastr: Now works just for 'float'.
15737         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15738         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15739         dtoastr.c, ldtoastr.c.
15740
15741 2011-01-11  Jim Meyering  <meyering@redhat.com>
15742
15743         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15744         There is no need to work around the lack of the fchdir function,
15745         since gnulib can now provide a replacement when required.
15746         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15747         * modules/save-cwd (Depends-on): Add fchdir.
15748
15749 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15750
15751         openat, save-cwd: avoid xmalloc
15752
15753         This removes a direct (but undocumented) dependency of openat on
15754         xalloc, along with an indirect dependency via save-cwd.  It also
15755         removes a dependency of save-cwd on xgetcwd, and thereby
15756         indirectly on xalloc.  This change causes the openat substitute
15757         to fall back on save_cwd when memory is tight, and for save_cwd to
15758         fail instead of dying when memory is tight, but that's good enough.
15759         Problem and initial idea for fix reported by Bastien Roucaries in
15760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15761
15762         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15763         xalloc.h (for xmalloc).
15764         (openat_proc_name): Use malloc, not xmalloc.
15765         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15766         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15767
15768         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15769         This avoids heap allocation for file names whose lengths are in
15770         the range 512..1023, with the upper bound increasing to at most
15771         4031 depending on the platform's PATH_MAX.  (We do not want
15772         pathmax.h here as it might supply a non-constant PATH_MAX.)
15773         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15774         Perhaps they should be moved to malloca.h?
15775         (OPENAT_BUFFER_SIZE): Use them.
15776
15777 2011-01-10  Bruno Haible  <bruno@clisp.org>
15778
15779         doc: Update users.txt.
15780         * users.txt: Add recutils.
15781
15782 2011-01-09  Karl Berry  <karl@gnu.org>
15783
15784         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15785
15786         * doc/configmake.texi: New file.
15787         * doc/gnulib.texi: Include it.
15788         * modules/configmake: Move documentation from here.
15789
15790 2011-01-09  Bruno Haible  <bruno@clisp.org>
15791
15792         Update to Unicode 6.0.0.
15793         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15794         (get_lbp): Update for Unicode 6.0.0.
15795         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15796         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15797         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15798         U+11001, U+11038..U+11046. Remove U+06DE.
15799         (uc_width): Fix bounds of planes.
15800         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15801         lib/uniwidth/width.c.
15802         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15803         trailing whitespace removed.
15804         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15805         without comments, but with the original copyright notice.
15806         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15807         * lib/unicase/ignorable.h: Likewise.
15808         * lib/unicase/tocasefold.h: Likewise.
15809         * lib/unicase/tolower.h: Likewise.
15810         * lib/unicase/totitle.h: Likewise.
15811         * lib/unicase/toupper.h: Likewise.
15812         * lib/unictype/bidi_of.h: Likewise.
15813         * lib/unictype/blocks.h: Likewise.
15814         * lib/unictype/categ_C.h: Likewise.
15815         * lib/unictype/categ_Cn.h: Likewise.
15816         * lib/unictype/categ_L.h: Likewise.
15817         * lib/unictype/categ_Ll.h: Likewise.
15818         * lib/unictype/categ_Lm.h: Likewise.
15819         * lib/unictype/categ_Lo.h: Likewise.
15820         * lib/unictype/categ_Lu.h: Likewise.
15821         * lib/unictype/categ_M.h: Likewise.
15822         * lib/unictype/categ_Mc.h: Likewise.
15823         * lib/unictype/categ_Me.h: Likewise.
15824         * lib/unictype/categ_Mn.h: Likewise.
15825         * lib/unictype/categ_N.h: Likewise.
15826         * lib/unictype/categ_Nd.h: Likewise.
15827         * lib/unictype/categ_No.h: Likewise.
15828         * lib/unictype/categ_P.h: Likewise.
15829         * lib/unictype/categ_Po.h: Likewise.
15830         * lib/unictype/categ_S.h: Likewise.
15831         * lib/unictype/categ_Sc.h: Likewise.
15832         * lib/unictype/categ_Sk.h: Likewise.
15833         * lib/unictype/categ_Sm.h: Likewise.
15834         * lib/unictype/categ_So.h: Likewise.
15835         * lib/unictype/categ_of.h: Likewise.
15836         * lib/unictype/combining.h: Likewise.
15837         * lib/unictype/ctype_alnum.h: Likewise.
15838         * lib/unictype/ctype_alpha.h: Likewise.
15839         * lib/unictype/ctype_graph.h: Likewise.
15840         * lib/unictype/ctype_lower.h: Likewise.
15841         * lib/unictype/ctype_print.h: Likewise.
15842         * lib/unictype/ctype_punct.h: Likewise.
15843         * lib/unictype/ctype_upper.h: Likewise.
15844         * lib/unictype/decdigit.h: Likewise.
15845         * lib/unictype/digit.h: Likewise.
15846         * lib/unictype/numeric.h: Likewise.
15847         * lib/unictype/pr_alphabetic.h: Likewise.
15848         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15849         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15850         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15851         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15852         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15853         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15854         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15855         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15856         * lib/unictype/pr_case_ignorable.h: Likewise.
15857         * lib/unictype/pr_cased.h: Likewise.
15858         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15859         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15860         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15861         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15862         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15863         * lib/unictype/pr_combining.h: Likewise.
15864         * lib/unictype/pr_composite.h: Likewise.
15865         * lib/unictype/pr_currency_symbol.h: Likewise.
15866         * lib/unictype/pr_decimal_digit.h: Likewise.
15867         * lib/unictype/pr_deprecated.h: Likewise.
15868         * lib/unictype/pr_format_control.h: Likewise.
15869         * lib/unictype/pr_grapheme_base.h: Likewise.
15870         * lib/unictype/pr_grapheme_extend.h: Likewise.
15871         * lib/unictype/pr_grapheme_link.h: Likewise.
15872         * lib/unictype/pr_id_continue.h: Likewise.
15873         * lib/unictype/pr_id_start.h: Likewise.
15874         * lib/unictype/pr_ideographic.h: Likewise.
15875         * lib/unictype/pr_lowercase.h: Likewise.
15876         * lib/unictype/pr_math.h: Likewise.
15877         * lib/unictype/pr_numeric.h: Likewise.
15878         * lib/unictype/pr_other_alphabetic.h: Likewise.
15879         * lib/unictype/pr_other_id_continue.h: Likewise.
15880         * lib/unictype/pr_other_math.h: Likewise.
15881         * lib/unictype/pr_punctuation.h: Likewise.
15882         * lib/unictype/pr_sentence_terminal.h: Likewise.
15883         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15884         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15885         * lib/unictype/pr_unified_ideograph.h: Likewise.
15886         * lib/unictype/pr_uppercase.h: Likewise.
15887         * lib/unictype/pr_xid_continue.h: Likewise.
15888         * lib/unictype/pr_xid_start.h: Likewise.
15889         * lib/unictype/scripts.h: Likewise.
15890         * lib/unictype/scripts_byname.gperf: Likewise.
15891         * lib/unictype/sy_java_ident.h: Likewise.
15892         * lib/unigbrk/gbrkprop.h: Likewise.
15893         * lib/unilbrk/lbrkprop1.h: Likewise.
15894         * lib/unilbrk/lbrkprop2.h: Likewise.
15895         * lib/uninorm/decomposition-table2.h: Likewise.
15896         * lib/uniwbrk/wbrkprop.h: Likewise.
15897         * tests/unicase/test-cased.c: Likewise.
15898         * tests/unicase/test-ignorable.c: Likewise.
15899         * tests/unicase/test-uc_tolower.c: Likewise.
15900         * tests/unicase/test-uc_totitle.c: Likewise.
15901         * tests/unicase/test-uc_toupper.c: Likewise.
15902         * tests/unictype/test-categ_C.c: Likewise.
15903         * tests/unictype/test-categ_Cn.c: Likewise.
15904         * tests/unictype/test-categ_L.c: Likewise.
15905         * tests/unictype/test-categ_Ll.c: Likewise.
15906         * tests/unictype/test-categ_Lm.c: Likewise.
15907         * tests/unictype/test-categ_Lo.c: Likewise.
15908         * tests/unictype/test-categ_Lu.c: Likewise.
15909         * tests/unictype/test-categ_M.c: Likewise.
15910         * tests/unictype/test-categ_Mc.c: Likewise.
15911         * tests/unictype/test-categ_Me.c: Likewise.
15912         * tests/unictype/test-categ_Mn.c: Likewise.
15913         * tests/unictype/test-categ_N.c: Likewise.
15914         * tests/unictype/test-categ_Nd.c: Likewise.
15915         * tests/unictype/test-categ_No.c: Likewise.
15916         * tests/unictype/test-categ_P.c: Likewise.
15917         * tests/unictype/test-categ_Po.c: Likewise.
15918         * tests/unictype/test-categ_S.c: Likewise.
15919         * tests/unictype/test-categ_Sc.c: Likewise.
15920         * tests/unictype/test-categ_Sk.c: Likewise.
15921         * tests/unictype/test-categ_Sm.c: Likewise.
15922         * tests/unictype/test-categ_So.c: Likewise.
15923         * tests/unictype/test-ctype_alnum.c: Likewise.
15924         * tests/unictype/test-ctype_alpha.c: Likewise.
15925         * tests/unictype/test-ctype_graph.c: Likewise.
15926         * tests/unictype/test-ctype_lower.c: Likewise.
15927         * tests/unictype/test-ctype_print.c: Likewise.
15928         * tests/unictype/test-ctype_punct.c: Likewise.
15929         * tests/unictype/test-ctype_upper.c: Likewise.
15930         * tests/unictype/test-decdigit.h: Likewise.
15931         * tests/unictype/test-digit.h: Likewise.
15932         * tests/unictype/test-numeric.h: Likewise.
15933         * tests/unictype/test-pr_alphabetic.c: Likewise.
15934         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15935         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15936         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15937         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15938         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15939         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15940         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15941         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15942         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15943         * tests/unictype/test-pr_cased.c: Likewise.
15944         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15945         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15946         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15947         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15948         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15949         * tests/unictype/test-pr_combining.c: Likewise.
15950         * tests/unictype/test-pr_composite.c: Likewise.
15951         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15952         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15953         * tests/unictype/test-pr_deprecated.c: Likewise.
15954         * tests/unictype/test-pr_format_control.c: Likewise.
15955         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15956         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15957         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15958         * tests/unictype/test-pr_id_continue.c: Likewise.
15959         * tests/unictype/test-pr_id_start.c: Likewise.
15960         * tests/unictype/test-pr_ideographic.c: Likewise.
15961         * tests/unictype/test-pr_lowercase.c: Likewise.
15962         * tests/unictype/test-pr_math.c: Likewise.
15963         * tests/unictype/test-pr_numeric.c: Likewise.
15964         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15965         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15966         * tests/unictype/test-pr_other_math.c: Likewise.
15967         * tests/unictype/test-pr_punctuation.c: Likewise.
15968         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15969         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15970         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15971         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15972         * tests/unictype/test-pr_uppercase.c: Likewise.
15973         * tests/unictype/test-pr_xid_continue.c: Likewise.
15974         * tests/unictype/test-pr_xid_start.c: Likewise.
15975         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15976         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15977         changes.
15978         * lib/unictype/categ_Cc.h: Likewise.
15979         * lib/unictype/categ_Cf.h: Likewise.
15980         * lib/unictype/categ_Co.h: Likewise.
15981         * lib/unictype/categ_Cs.h: Likewise.
15982         * lib/unictype/categ_Lt.h: Likewise.
15983         * lib/unictype/categ_Nl.h: Likewise.
15984         * lib/unictype/categ_Pc.h: Likewise.
15985         * lib/unictype/categ_Pd.h: Likewise.
15986         * lib/unictype/categ_Pe.h: Likewise.
15987         * lib/unictype/categ_Pf.h: Likewise.
15988         * lib/unictype/categ_Pi.h: Likewise.
15989         * lib/unictype/categ_Ps.h: Likewise.
15990         * lib/unictype/categ_Z.h: Likewise.
15991         * lib/unictype/categ_Zl.h: Likewise.
15992         * lib/unictype/categ_Zp.h: Likewise.
15993         * lib/unictype/categ_Zs.h: Likewise.
15994         * lib/unictype/ctype_blank.h: Likewise.
15995         * lib/unictype/ctype_cntrl.h: Likewise.
15996         * lib/unictype/ctype_digit.h: Likewise.
15997         * lib/unictype/ctype_space.h: Likewise.
15998         * lib/unictype/ctype_xdigit.h: Likewise.
15999         * lib/unictype/mirror.h: Likewise.
16000         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16001         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16002         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16003         * lib/unictype/pr_bidi_control.h: Likewise.
16004         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16005         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16006         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16007         * lib/unictype/pr_bidi_pdf.h: Likewise.
16008         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16009         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16010         * lib/unictype/pr_dash.h: Likewise.
16011         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16012         * lib/unictype/pr_diacritic.h: Likewise.
16013         * lib/unictype/pr_extender.h: Likewise.
16014         * lib/unictype/pr_hex_digit.h: Likewise.
16015         * lib/unictype/pr_hyphen.h: Likewise.
16016         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16017         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16018         * lib/unictype/pr_ignorable_control.h: Likewise.
16019         * lib/unictype/pr_iso_control.h: Likewise.
16020         * lib/unictype/pr_join_control.h: Likewise.
16021         * lib/unictype/pr_left_of_pair.h: Likewise.
16022         * lib/unictype/pr_line_separator.h: Likewise.
16023         * lib/unictype/pr_logical_order_exception.h: Likewise.
16024         * lib/unictype/pr_non_break.h: Likewise.
16025         * lib/unictype/pr_not_a_character.h: Likewise.
16026         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16027         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16028         * lib/unictype/pr_other_id_start.h: Likewise.
16029         * lib/unictype/pr_other_lowercase.h: Likewise.
16030         * lib/unictype/pr_other_uppercase.h: Likewise.
16031         * lib/unictype/pr_paired_punctuation.h: Likewise.
16032         * lib/unictype/pr_paragraph_separator.h: Likewise.
16033         * lib/unictype/pr_pattern_syntax.h: Likewise.
16034         * lib/unictype/pr_pattern_white_space.h: Likewise.
16035         * lib/unictype/pr_private_use.h: Likewise.
16036         * lib/unictype/pr_quotation_mark.h: Likewise.
16037         * lib/unictype/pr_radical.h: Likewise.
16038         * lib/unictype/pr_soft_dotted.h: Likewise.
16039         * lib/unictype/pr_space.h: Likewise.
16040         * lib/unictype/pr_titlecase.h: Likewise.
16041         * lib/unictype/pr_variation_selector.h: Likewise.
16042         * lib/unictype/pr_white_space.h: Likewise.
16043         * lib/unictype/pr_zero_width.h: Likewise.
16044         * lib/unictype/sy_c_ident.h: Likewise.
16045         * lib/unictype/sy_c_whitespace.h: Likewise.
16046         * lib/unictype/sy_java_whitespace.h: Likewise.
16047         * lib/uninorm/composition-table.gperf: Likewise.
16048         * lib/uninorm/decomposition-table1.h: Likewise.
16049         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16050         LB8.
16051         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16052         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16053         * modules/unictype/*: Bump version number of expected libunistring
16054         version.
16055
16056 2011-01-09  Bruno Haible  <bruno@clisp.org>
16057
16058         Update to Unicode 5.2.0.
16059         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16060         trailing whitespace removed.
16061
16062 2011-01-09  Bruno Haible  <bruno@clisp.org>
16063
16064         New Unicode character properties, from Unicode 5.2.0.
16065         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16066         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16067         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16068         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16069         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16070         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16071         uc_is_property_cased, uc_is_property_case_ignorable,
16072         uc_is_property_changes_when_lowercased,
16073         uc_is_property_changes_when_uppercased,
16074         uc_is_property_changes_when_titlecased,
16075         uc_is_property_changes_when_casefolded,
16076         uc_is_property_changes_when_casemapped): New declarations.
16077         * lib/unictype/pr_byname.gperf: Add the new properties.
16078         * modules/unictype/property-byname (Depends-on): Depend on the new
16079         properties modules.
16080         * modules/unictype/property-all (Depends-on): Likewise.
16081         * MODULES.html.sh (Unicode string functions): Add
16082         unictype/property-case-ignorable, unictype/property-cased,
16083         unictype/property-changes-when-casefolded,
16084         unictype/property-changes-when-casemapped,
16085         unictype/property-changes-when-lowercased,
16086         unictype/property-changes-when-titlecased,
16087         unictype/property-changes-when-uppercased.
16088
16089         New module 'unictype/property-changes-when-casemapped'.
16090         * modules/unictype/property-changes-when-casemapped: New file.
16091         * lib/unictype/pr_changes_when_casemapped.c: New file.
16092         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16093         generated by gen-uni-tables.
16094         * modules/unictype/property-changes-when-casemapped-tests: New file.
16095         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16096         automatically generated by gen-uni-tables.
16097
16098         New module 'unictype/property-changes-when-casefolded'.
16099         * modules/unictype/property-changes-when-casefolded: New file.
16100         * lib/unictype/pr_changes_when_casefolded.c: New file.
16101         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16102         generated by gen-uni-tables.
16103         * modules/unictype/property-changes-when-casefolded-tests: New file.
16104         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16105         automatically generated by gen-uni-tables.
16106
16107         New module 'unictype/property-changes-when-titlecased'.
16108         * modules/unictype/property-changes-when-titlecased: New file.
16109         * lib/unictype/pr_changes_when_titlecased.c: New file.
16110         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16111         generated by gen-uni-tables.
16112         * modules/unictype/property-changes-when-titlecased-tests: New file.
16113         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16114         automatically generated by gen-uni-tables.
16115
16116         New module 'unictype/property-changes-when-uppercased'.
16117         * modules/unictype/property-changes-when-uppercased: New file.
16118         * lib/unictype/pr_changes_when_uppercased.c: New file.
16119         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16120         generated by gen-uni-tables.
16121         * modules/unictype/property-changes-when-uppercased-tests: New file.
16122         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16123         automatically generated by gen-uni-tables.
16124
16125         New module 'unictype/property-changes-when-lowercased'.
16126         * modules/unictype/property-changes-when-lowercased: New file.
16127         * lib/unictype/pr_changes_when_lowercased.c: New file.
16128         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16129         generated by gen-uni-tables.
16130         * modules/unictype/property-changes-when-lowercased-tests: New file.
16131         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16132         automatically generated by gen-uni-tables.
16133
16134         New module 'unictype/property-case-ignorable'.
16135         * modules/unictype/property-case-ignorable: New file.
16136         * lib/unictype/pr_case_ignorable.c: New file.
16137         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16138         by gen-uni-tables.
16139         * modules/unictype/property-case-ignorable-tests: New file.
16140         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16141         generated by gen-uni-tables.
16142
16143         New module 'unictype/property-cased'.
16144         * modules/unictype/property-cased: New file.
16145         * lib/unictype/pr_cased.c: New file.
16146         * lib/unictype/pr_cased.h: New file, automatically generated by
16147         gen-uni-tables.
16148         * modules/unictype/property-cased-tests: New file.
16149         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16150         gen-uni-tables.
16151
16152 2011-01-09  Bruno Haible  <bruno@clisp.org>
16153
16154         Update to Unicode 5.2.0.
16155         * lib/gen-uni-tables.c (output_predicate, output_category,
16156         output_combclass, output_bidi_category, output_decimal_digit_test,
16157         output_decimal_digit, output_digit_test, output_digit,
16158         output_numeric_test, output_numeric, output_mirror, output_scripts,
16159         output_scripts_byname, output_blocks, output_ident_category): Fix
16160         comment header.
16161         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16162         get_wbp.
16163         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16164         items.
16165         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16166         Changes_When_Lowercased, Changes_When_Uppercased,
16167         Changes_When_Titlecased, Changes_When_Casefolded,
16168         Changes_When_Casemapped.
16169         (is_property_alphabetic, is_property_default_ignorable_code_point):
16170         Update for Unicode 5.2.0.
16171         (is_property_cased, is_property_case_ignorable,
16172         is_property_changes_when_lowercased,
16173         is_property_changes_when_uppercased,
16174         is_property_changes_when_titlecased,
16175         is_property_changes_when_casefolded,
16176         is_property_changes_when_casemapped): New functions.
16177         (output_properties): Output also the properties cased, case_ignorable,
16178         changes_when_lowercased, changes_when_uppercased,
16179         changes_when_titlecased, changes_when_casefolded,
16180         changes_when_casemapped.
16181         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16182         Unicode TR#11 revision 17 -> 19.
16183         (LBP_CP): New enumeration value.
16184         (LBP_*): Adjust values accordingly.
16185         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16186         TR#14 revision 22 -> 24.
16187         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16188         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16189         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16190         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16191         is_WBP_MIDLETTER.
16192         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16193         the code1 and code2 of each composition rule.
16194         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16195         * lib/unicase/ignorable.h: Likewise.
16196         * lib/unicase/tocasefold.h: Likewise.
16197         * lib/unicase/tolower.h: Likewise.
16198         * lib/unicase/totitle.h: Likewise.
16199         * lib/unicase/toupper.h: Likewise.
16200         * lib/unictype/bidi_of.h: Likewise.
16201         * lib/unictype/blocks.h: Likewise.
16202         * lib/unictype/categ_C.h: Likewise.
16203         * lib/unictype/categ_Cf.h: Likewise.
16204         * lib/unictype/categ_Cn.h: Likewise.
16205         * lib/unictype/categ_L.h: Likewise.
16206         * lib/unictype/categ_Ll.h: Likewise.
16207         * lib/unictype/categ_Lm.h: Likewise.
16208         * lib/unictype/categ_Lo.h: Likewise.
16209         * lib/unictype/categ_Lu.h: Likewise.
16210         * lib/unictype/categ_M.h: Likewise.
16211         * lib/unictype/categ_Mc.h: Likewise.
16212         * lib/unictype/categ_Mn.h: Likewise.
16213         * lib/unictype/categ_N.h: Likewise.
16214         * lib/unictype/categ_Nd.h: Likewise.
16215         * lib/unictype/categ_Nl.h: Likewise.
16216         * lib/unictype/categ_No.h: Likewise.
16217         * lib/unictype/categ_P.h: Likewise.
16218         * lib/unictype/categ_Pd.h: Likewise.
16219         * lib/unictype/categ_Po.h: Likewise.
16220         * lib/unictype/categ_S.h: Likewise.
16221         * lib/unictype/categ_Sc.h: Likewise.
16222         * lib/unictype/categ_So.h: Likewise.
16223         * lib/unictype/categ_of.h: Likewise.
16224         * lib/unictype/combining.h: Likewise.
16225         * lib/unictype/ctype_alnum.h: Likewise.
16226         * lib/unictype/ctype_alpha.h: Likewise.
16227         * lib/unictype/ctype_graph.h: Likewise.
16228         * lib/unictype/ctype_lower.h: Likewise.
16229         * lib/unictype/ctype_print.h: Likewise.
16230         * lib/unictype/ctype_punct.h: Likewise.
16231         * lib/unictype/ctype_upper.h: Likewise.
16232         * lib/unictype/decdigit.h: Likewise.
16233         * lib/unictype/digit.h: Likewise.
16234         * lib/unictype/numeric.h: Likewise.
16235         * lib/unictype/pr_alphabetic.h: Likewise.
16236         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16237         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16238         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16239         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16240         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16241         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16242         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16243         * lib/unictype/pr_combining.h: Likewise.
16244         * lib/unictype/pr_composite.h: Likewise.
16245         * lib/unictype/pr_currency_symbol.h: Likewise.
16246         * lib/unictype/pr_dash.h: Likewise.
16247         * lib/unictype/pr_decimal_digit.h: Likewise.
16248         * lib/unictype/pr_deprecated.h: Likewise.
16249         * lib/unictype/pr_diacritic.h: Likewise.
16250         * lib/unictype/pr_extender.h: Likewise.
16251         * lib/unictype/pr_grapheme_base.h: Likewise.
16252         * lib/unictype/pr_grapheme_extend.h: Likewise.
16253         * lib/unictype/pr_grapheme_link.h: Likewise.
16254         * lib/unictype/pr_id_continue.h: Likewise.
16255         * lib/unictype/pr_id_start.h: Likewise.
16256         * lib/unictype/pr_ideographic.h: Likewise.
16257         * lib/unictype/pr_ignorable_control.h: Likewise.
16258         * lib/unictype/pr_logical_order_exception.h: Likewise.
16259         * lib/unictype/pr_lowercase.h: Likewise.
16260         * lib/unictype/pr_numeric.h: Likewise.
16261         * lib/unictype/pr_other_alphabetic.h: Likewise.
16262         * lib/unictype/pr_punctuation.h: Likewise.
16263         * lib/unictype/pr_sentence_terminal.h: Likewise.
16264         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16265         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16266         * lib/unictype/pr_unified_ideograph.h: Likewise.
16267         * lib/unictype/pr_uppercase.h: Likewise.
16268         * lib/unictype/pr_xid_continue.h: Likewise.
16269         * lib/unictype/pr_xid_start.h: Likewise.
16270         * lib/unictype/pr_zero_width.h: Likewise.
16271         * lib/unictype/scripts.h: Likewise.
16272         * lib/unictype/scripts_byname.gperf: Likewise.
16273         * lib/unictype/sy_java_ident.h: Likewise.
16274         * lib/unigbrk/gbrkprop.h: Likewise.
16275         * lib/unilbrk/lbrkprop1.h: Likewise.
16276         * lib/unilbrk/lbrkprop2.h: Likewise.
16277         * lib/unilbrk/lbrktables.h: Likewise.
16278         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16279         LBP_CP. Implement rule LB30.
16280         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16281         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16282         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16283         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16284         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16285         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16286         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16287         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16288         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16289         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16290         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16291         bits instead of 16 bits in the code1 and code2 of each composition
16292         rule.
16293         (uc_composition): Update for Unicode 5.2.0.
16294         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16295         * lib/uninorm/decomposition-table2.h: Likewise.
16296         * lib/uniwbrk/wbrkprop.h: Likewise.
16297         * tests/unicase/test-cased.c: Likewise.
16298         * tests/unicase/test-ignorable.c: Likewise.
16299         * tests/unicase/test-uc_tolower.c: Likewise.
16300         * tests/unicase/test-uc_totitle.c: Likewise.
16301         * tests/unicase/test-uc_toupper.c: Likewise.
16302         * tests/unictype/test-categ_C.c: Likewise.
16303         * tests/unictype/test-categ_Cf.c: Likewise.
16304         * tests/unictype/test-categ_Cn.c: Likewise.
16305         * tests/unictype/test-categ_L.c: Likewise.
16306         * tests/unictype/test-categ_Ll.c: Likewise.
16307         * tests/unictype/test-categ_Lm.c: Likewise.
16308         * tests/unictype/test-categ_Lo.c: Likewise.
16309         * tests/unictype/test-categ_Lu.c: Likewise.
16310         * tests/unictype/test-categ_M.c: Likewise.
16311         * tests/unictype/test-categ_Mc.c: Likewise.
16312         * tests/unictype/test-categ_Mn.c: Likewise.
16313         * tests/unictype/test-categ_N.c: Likewise.
16314         * tests/unictype/test-categ_Nd.c: Likewise.
16315         * tests/unictype/test-categ_Nl.c: Likewise.
16316         * tests/unictype/test-categ_No.c: Likewise.
16317         * tests/unictype/test-categ_P.c: Likewise.
16318         * tests/unictype/test-categ_Pd.c: Likewise.
16319         * tests/unictype/test-categ_Po.c: Likewise.
16320         * tests/unictype/test-categ_S.c: Likewise.
16321         * tests/unictype/test-categ_Sc.c: Likewise.
16322         * tests/unictype/test-categ_So.c: Likewise.
16323         * tests/unictype/test-ctype_alnum.c: Likewise.
16324         * tests/unictype/test-ctype_alpha.c: Likewise.
16325         * tests/unictype/test-ctype_graph.c: Likewise.
16326         * tests/unictype/test-ctype_lower.c: Likewise.
16327         * tests/unictype/test-ctype_print.c: Likewise.
16328         * tests/unictype/test-ctype_punct.c: Likewise.
16329         * tests/unictype/test-ctype_upper.c: Likewise.
16330         * tests/unictype/test-decdigit.h: Likewise.
16331         * tests/unictype/test-digit.h: Likewise.
16332         * tests/unictype/test-numeric.h: Likewise.
16333         * tests/unictype/test-pr_alphabetic.c: Likewise.
16334         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16335         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16336         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16337         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16338         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16339         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16340         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16341         * tests/unictype/test-pr_combining.c: Likewise.
16342         * tests/unictype/test-pr_composite.c: Likewise.
16343         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16344         * tests/unictype/test-pr_dash.c: Likewise.
16345         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16346         * tests/unictype/test-pr_deprecated.c: Likewise.
16347         * tests/unictype/test-pr_diacritic.c: Likewise.
16348         * tests/unictype/test-pr_extender.c: Likewise.
16349         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16350         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16351         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16352         * tests/unictype/test-pr_id_continue.c: Likewise.
16353         * tests/unictype/test-pr_id_start.c: Likewise.
16354         * tests/unictype/test-pr_ideographic.c: Likewise.
16355         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16356         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16357         * tests/unictype/test-pr_lowercase.c: Likewise.
16358         * tests/unictype/test-pr_numeric.c: Likewise.
16359         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16360         * tests/unictype/test-pr_punctuation.c: Likewise.
16361         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16362         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16363         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16364         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16365         * tests/unictype/test-pr_uppercase.c: Likewise.
16366         * tests/unictype/test-pr_xid_continue.c: Likewise.
16367         * tests/unictype/test-pr_xid_start.c: Likewise.
16368         * tests/unictype/test-pr_zero_width.c: Likewise.
16369         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16370         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16371         changed behaviour: line breaking is now disallowed between a letter
16372         or '=' and '('.
16373         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16374         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16375         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16376         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16377         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16378         lib/uniwidth/width.c.
16379         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16380         without comments, but with the original copyright notice.
16381         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16382         changes.
16383         * lib/unictype/categ_Cc.h: Likewise.
16384         * lib/unictype/categ_Co.h: Likewise.
16385         * lib/unictype/categ_Cs.h: Likewise.
16386         * lib/unictype/categ_Lt.h: Likewise.
16387         * lib/unictype/categ_Me.h: Likewise.
16388         * lib/unictype/categ_Pc.h: Likewise.
16389         * lib/unictype/categ_Pe.h: Likewise.
16390         * lib/unictype/categ_Pf.h: Likewise.
16391         * lib/unictype/categ_Pi.h: Likewise.
16392         * lib/unictype/categ_Ps.h: Likewise.
16393         * lib/unictype/categ_Sk.h: Likewise.
16394         * lib/unictype/categ_Sm.h: Likewise.
16395         * lib/unictype/categ_Z.h: Likewise.
16396         * lib/unictype/categ_Zl.h: Likewise.
16397         * lib/unictype/categ_Zp.h: Likewise.
16398         * lib/unictype/categ_Zs.h: Likewise.
16399         * lib/unictype/ctype_blank.h: Likewise.
16400         * lib/unictype/ctype_cntrl.h: Likewise.
16401         * lib/unictype/ctype_digit.h: Likewise.
16402         * lib/unictype/ctype_space.h: Likewise.
16403         * lib/unictype/ctype_xdigit.h: Likewise.
16404         * lib/unictype/mirror.h: Likewise.
16405         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16406         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16407         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16408         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16409         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16410         * lib/unictype/pr_bidi_control.h: Likewise.
16411         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16412         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16413         * lib/unictype/pr_bidi_pdf.h: Likewise.
16414         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16415         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16416         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16417         * lib/unictype/pr_format_control.h: Likewise.
16418         * lib/unictype/pr_hex_digit.h: Likewise.
16419         * lib/unictype/pr_hyphen.h: Likewise.
16420         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16421         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16422         * lib/unictype/pr_iso_control.h: Likewise.
16423         * lib/unictype/pr_join_control.h: Likewise.
16424         * lib/unictype/pr_left_of_pair.h: Likewise.
16425         * lib/unictype/pr_line_separator.h: Likewise.
16426         * lib/unictype/pr_math.h: Likewise.
16427         * lib/unictype/pr_non_break.h: Likewise.
16428         * lib/unictype/pr_not_a_character.h: Likewise.
16429         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16430         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16431         * lib/unictype/pr_other_id_continue.h: Likewise.
16432         * lib/unictype/pr_other_id_start.h: Likewise.
16433         * lib/unictype/pr_other_lowercase.h: Likewise.
16434         * lib/unictype/pr_other_math.h: Likewise.
16435         * lib/unictype/pr_other_uppercase.h: Likewise.
16436         * lib/unictype/pr_paired_punctuation.h: Likewise.
16437         * lib/unictype/pr_paragraph_separator.h: Likewise.
16438         * lib/unictype/pr_pattern_syntax.h: Likewise.
16439         * lib/unictype/pr_pattern_white_space.h: Likewise.
16440         * lib/unictype/pr_private_use.h: Likewise.
16441         * lib/unictype/pr_quotation_mark.h: Likewise.
16442         * lib/unictype/pr_radical.h: Likewise.
16443         * lib/unictype/pr_soft_dotted.h: Likewise.
16444         * lib/unictype/pr_space.h: Likewise.
16445         * lib/unictype/pr_titlecase.h: Likewise.
16446         * lib/unictype/pr_variation_selector.h: Likewise.
16447         * lib/unictype/pr_white_space.h: Likewise.
16448         * lib/unictype/sy_c_ident.h: Likewise.
16449         * lib/unictype/sy_c_whitespace.h: Likewise.
16450         * lib/unictype/sy_java_whitespace.h: Likewise.
16451         * modules/uni*/*: Bump version number of expected libunistring version.
16452         Reported by Simon Josefsson.
16453
16454 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16455
16456         useless-if-before-free: fix typo in --help and make the internal,
16457         automatic version date update process work once again.
16458         --help output contained a NUL character instead of the
16459         backslash-zero that was intended.  Also, the "must lie within
16460         the first 8 lines" line is on line 9, and hence not getting
16461         automatically updated.
16462         * build-aux/useless-if-before-free: Fix the former by adding a
16463         backslash, and the latter by condensing the three lines of what-it-does
16464         to a single line, leaving one line of slack for the future.
16465
16466 2011-01-09  Bruno Haible  <bruno@clisp.org>
16467
16468         uniwidth/width: Fix width of U+1D173..U+1D17A.
16469         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16470         symbolic_width, output_width_property_test): New functions.
16471         (main): Invoke output_nonspacing_property, output_width_property_test.
16472         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16473         U+1D173..U+1D17A.
16474         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16475         1.
16476         * modules/uniwidth/*: Bump version number of expected libunistring
16477         version.
16478         * modules/unilbrk/*: Likewise.
16479
16480 2011-01-08  Bruno Haible  <bruno@clisp.org>
16481
16482         uninorm tests: Preserve copyright of Unicode data file.
16483         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16484         Mention modifications.
16485
16486 2011-01-08  Bruno Haible  <bruno@clisp.org>
16487
16488         gen-uni-tables: Prepare for Unicode 5.2.0.
16489         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16490         (debug_output_lbp, output_lbp): Update.
16491
16492 2011-01-08  Bruno Haible  <bruno@clisp.org>
16493
16494         unilbrk: Clarify gen-uni-tables.c code.
16495         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16496         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16497         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16498
16499 2011-01-07  Bruno Haible  <bruno@clisp.org>
16500
16501         strtod: Restore errno when successfully parsing Infinity or NaN.
16502         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16503         restore the original errno.
16504
16505 2011-01-07  Bruno Haible  <bruno@clisp.org>
16506
16507         remove test: Avoid failure on HP-UX 11.
16508         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16509
16510 2011-01-07  Bruno Haible  <bruno@clisp.org>
16511
16512         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16513         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16514         error code.
16515
16516 2011-01-07  Pádraig Brady <P@draigBrady.com>
16517
16518         ignore-value: fixup comments, and add Eric Blake
16519         as an author since he rewrote the macros.
16520         * lib/ignore-value.h (ignore_value):  State that
16521         we now support aggregates.  Also specify exactly
16522         when the GCC warn_unused_result feature was added.
16523
16524 2011-01-06  Eric Blake  <eblake@redhat.com>
16525
16526         ignore-value: support aggregate types
16527         * lib/ignore-value.h (ignore_value): Provide separate gcc
16528         definition.
16529         * modules/ignore-value-tests: New test module.
16530         * tests/test-ignore-value.c: New test.
16531
16532         maint.mk: improve sc_prohibit_strcmp regex
16533         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16534         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16535         definition of STRNEQ.
16536
16537         signal: work around Haiku issue with SIGBUS
16538         * lib/siglist.h: Add comment.
16539         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16540         strsignal's favoring of SIGSEGV.
16541         * tests/test-signal.c (main): Avoid test failure.
16542         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16543         Reported by Scott McCreary.
16544
16545         maint.mk: add pre-release check to ensure submodule commits are public
16546         * top/maint.mk (public-submodule-commit): New rule.
16547         (submodule-checks): New variable.
16548         (alpha beta stable): Depend on the variable.
16549
16550 2011-01-05  Pádraig Brady <P@draigBrady.com>
16551         and Jim Meyering  <meyering@redhat.com>
16552
16553         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16554         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16555         (ATTRIBUTE_DEPRECATED): Define.
16556         (_ignore_case): New function.
16557         (ignore_value): New macro, to replace the old function.
16558         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16559         * modules/ignore-value (Depends-on): Add stdint.
16560
16561 2011-01-04  Eric Blake  <eblake@redhat.com>
16562
16563         doc: regenerate INSTALL
16564         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16565         @firstparagraphindent support, now that autoconf dropped it.
16566         (INSTALL_PRELUDE): Reinstate old macro.
16567         * doc/install.texi: Resync from autoconf.
16568         * doc/INSTALL: Reflect recent autoconf update.
16569         * doc/INSTALL.ISO: Likewise.
16570         * doc/INSTALL.UTF-8: Likewise.
16571         Reported by Karl Berry.
16572
16573 2011-01-04  Bruce Korb  <address@hidden>
16574
16575         git-version-gen: avoid a sub-shell
16576         * build-aux/git-version-gen: Redirect stderr in `...` via
16577         "exec 2>...", rather than via an added sub-shell.
16578
16579 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16580
16581         git-version-gen: use (...) rather than sh -c '...'
16582         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16583         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16584
16585 2011-01-03  Jim Meyering  <meyering@redhat.com>
16586
16587         git-version-gen: convert leading TABs to spaces
16588         * build-aux/git-version-gen: Expand leading TABs.
16589
16590         git-version-gen: handle failed "git rev-list"
16591         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16592         from git and proceeding as if it had succeeded but printed no SHA1
16593         checksums, suppress the diagnostic and handle the failure.
16594         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16595
16596         git-version-gen: include command name in one more diagnostic
16597         * build-aux/git-version-gen: When the required .tarball-version file
16598         was missing or unreadable, you might see the diagnostic from "cat",
16599         but no trace of the name of the invoking script.  Now, you still see
16600         the diagnostic from cat, but also get one from "git-version-gen: ".
16601         Inspired by a patch from Bruce Korb.
16602
16603         update-copyright: adjust test to match changed code
16604         * tests/test-update-copyright.sh: Change test's expected output
16605         to match new actual output.
16606
16607 2011-01-02  Bruno Haible  <bruno@clisp.org>
16608
16609         getlogin_r: Avoid test failure on HP-UX 11.
16610         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16611         ERANGE when the second argument is zero.
16612         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16613         portability problem.
16614
16615 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16616
16617         * build-aux/update-copyright: doc Simon's changes
16618
16619 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16620
16621         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16622         environment variable.
16623
16624 2011-01-02  Bruno Haible  <bruno@clisp.org>
16625
16626         unigbrk: Avoid gcc warnings.
16627         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16628         unused variable.
16629         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16630         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16631         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16632         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16633         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16634         Change type of first argument to 'const char *'.
16635         (main): Remove unused variable.
16636         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16637         type of first argument to 'const char *'.
16638         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16639         Likewise.
16640         (main): Change type of variable 's'.
16641         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16642         to 'int'.
16643
16644 2011-01-02  Bruno Haible  <bruno@clisp.org>
16645
16646         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16647         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16648         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16649         bug.
16650         * lib/pwrite.c: Undo 2010-12-31 patch.
16651         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16652
16653 2011-01-02  Bruno Haible  <bruno@clisp.org>
16654
16655         pread: Fix test whether it works.
16656         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16657
16658 2011-01-02  Bruno Haible  <bruno@clisp.org>
16659
16660         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16661         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16662         ends in "6". Don't require a specific month name. Try also the locale
16663         names found on HP-UX 11 and Solaris 7.
16664
16665 2011-01-02  Bruno Haible  <bruno@clisp.org>
16666
16667         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16668         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16669         C linkage.
16670         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16671
16672 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16673
16674         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16675         for consistency, since the "cluster" term is not used elsewhere.
16676         * lib/unigbrk.in.h: Update name.
16677         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16678         * lib/unigbrk/u16-grapheme-next.c: Update name.
16679         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16680         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16681         * lib/unigbrk/u32-grapheme-next.c: Update name.
16682         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16683         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16684         * lib/unigbrk/u8-grapheme-next.c: Update name.
16685         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16686         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16687         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16688         Suggested by Bruno Haible.
16689
16690 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16691
16692         Remove module 'u8-grapheme-len' as too redundant with
16693         'u8-grapheme-next'.
16694         * modules/unigbrk/u8-grapheme-len: Delete file.
16695         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16696         * lib/unigbrk.in.h: Remove prototype for deleted function.
16697         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16698         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16699
16700         Remove module 'u16-grapheme-len' as too redundant with
16701         'u16-grapheme-next'.
16702         * modules/unigbrk/u16-grapheme-len: Delete file.
16703         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16704         * lib/unigbrk.in.h: Remove prototype for deleted function.
16705         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16706         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16707
16708         Remove module 'u32-grapheme-len' as too redundant with
16709         'u32-grapheme-next'.
16710         * modules/unigbrk/u32-grapheme-len: Delete file.
16711         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16712         * lib/unigbrk.in.h: Remove prototype for deleted function.
16713         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16714         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16715
16716         Suggested by Bruno Haible.
16717
16718 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16719
16720         * unigbrk.in.h: Fix typo: "ben" => "been".
16721         Reported by Bruno Haible.
16722
16723 2011-01-01  Jim Meyering  <meyering@redhat.com>
16724
16725         maint: update almost all copyright ranges to include 2011
16726         Run the new "make update-copyright" rule.
16727
16728 2011-01-01  Jim Meyering  <meyering@redhat.com>
16729
16730         maint: update-copyright: exempt doc/INSTALL*
16731         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16732         since they are generated.  Suggested by Bruno Haible.
16733
16734 2011-01-01  Jim Meyering  <meyering@redhat.com>
16735
16736         maint: refine the update-copyright rule
16737         * Makefile (update-copyright): Also exclude any file that includes
16738         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16739         code that merely generates the comment.
16740
16741 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16742
16743         New module 'u8-grapheme-len'.
16744         * modules/unigbrk/u8-grapheme-len: New file.
16745         * modules/unigbrk/u8-grapheme-len-tests: New file.
16746         * lib/unigbrk.in.h: Add prototype for new function.
16747         * lib/unigbrk/u8-grapheme-len.c: New file.
16748         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16749
16750         New module 'u16-grapheme-len'.
16751         * modules/unigbrk/u16-grapheme-len: New file.
16752         * modules/unigbrk/u16-grapheme-len-tests: New file.
16753         * lib/unigbrk.in.h: Add prototype for new function.
16754         * lib/unigbrk/u16-grapheme-len.c: New file.
16755         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16756
16757         New module 'u32-grapheme-len'.
16758         * modules/unigbrk/u32-grapheme-len: New file.
16759         * modules/unigbrk/u32-grapheme-len-tests: New file.
16760         * lib/unigbrk.in.h: Add prototype for new function.
16761         * lib/unigbrk/u32-grapheme-len.c: New file.
16762         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16763
16764         New module 'u8-grapheme-next'.
16765         * modules/unigbrk/u8-grapheme-next: New file.
16766         * modules/unigbrk/u8-grapheme-next-tests: New file.
16767         * lib/unigbrk.in.h: Add prototype for new function.
16768         * lib/unigbrk/u8-grapheme-next.c: New file.
16769         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16770
16771         New module 'u16-grapheme-next'.
16772         * modules/unigbrk/u16-grapheme-next: New file.
16773         * modules/unigbrk/u16-grapheme-next-tests: New file.
16774         * lib/unigbrk.in.h: Add prototype for new function.
16775         * lib/unigbrk/u16-grapheme-next.c: New file.
16776         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16777
16778         New module 'u32-grapheme-next'.
16779         * modules/unigbrk/u32-grapheme-next: New file.
16780         * modules/unigbrk/u32-grapheme-next-tests: New file.
16781         * lib/unigbrk.in.h: Add prototype for new function.
16782         * lib/unigbrk/u32-grapheme-next.c: New file.
16783         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16784
16785         New module 'u8-grapheme-prev'.
16786         * modules/unigbrk/u8-grapheme-prev: New file.
16787         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16788         * lib/unigbrk.in.h: Add prototype for new function.
16789         * lib/unigbrk/u8-grapheme-prev.c: New file.
16790         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16791
16792         New module 'u16-grapheme-prev'.
16793         * modules/unigbrk/u16-grapheme-prev: New file.
16794         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16795         * lib/unigbrk.in.h: Add prototype for new function.
16796         * lib/unigbrk/u16-grapheme-prev.c: New file.
16797         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16798
16799         New module 'u32-grapheme-prev'.
16800         * modules/unigbrk/u32-grapheme-prev: New file.
16801         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16802         * lib/unigbrk.in.h: Add prototype for new function.
16803         * lib/unigbrk/u32-grapheme-prev.c: New file.
16804         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16805
16806         New module 'u8-grapheme-breaks'.
16807         * modules/unigbrk/u8-grapheme-breaks: New file.
16808         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16809         * lib/unigbrk.in.h: Add prototype for new function.
16810         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16811         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16812
16813         New module 'u16-grapheme-breaks'.
16814         * modules/unigbrk/u16-grapheme-breaks: New file.
16815         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16816         * lib/unigbrk.in.h: Add prototype for new function.
16817         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16818         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16819
16820         New module 'u32-grapheme-breaks'.
16821         * modules/unigbrk/u32-grapheme-breaks: New file.
16822         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16823         * lib/unigbrk.in.h: Add prototype for new function.
16824         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16825         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16826
16827         New module 'ulc-grapheme-breaks'.
16828         * modules/unigbrk/ulc-grapheme-breaks: New file.
16829         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16830         * m4/locale-ar.m4: New file.
16831         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16832         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16833         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16834
16835 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16836
16837         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16838         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16839         modified how this file was generated before I initially submitted
16840         the module, but failed to regenerate it.  This meant that several
16841         of the level2 entries were wrong.
16842         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16843         Remove the division-by-2 that is folded into the table now that
16844         gbrkprop.h has been regenerated properly.  Now -1 entries are
16845         handled correctly.
16846
16847         New module 'unigbrk/uc-gbrk-prop-tests'.
16848         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16849         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16850         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16851         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16852
16853 2011-01-01  Bruno Haible  <bruno@clisp.org>
16854
16855         Avoid use of hexadecimal escapes.
16856         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16857         instead of hexadecimal escapes.
16858
16859 2011-01-01  Jim Meyering  <meyering@redhat.com>
16860
16861         maint: new rule to update copyright year ranges
16862         * Makefile (update-copyright): New rule.
16863
16864         maint: indent with TABs in Makefile
16865         * Makefile: Expand leading sequences of spaces to TABs
16866
16867         version-etc: update the copyright year it reports
16868         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16869
16870 2010-12-31  Bruno Haible  <bruno@clisp.org>
16871
16872         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16873         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16874         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16875         zero.
16876
16877 2010-12-31  Bruno Haible  <bruno@clisp.org>
16878
16879         pwrite: Work around HP-UX 11.11 bug.
16880         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16881         works and set REPLACE_PWRITE if not.
16882         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16883         function.
16884         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16885
16886 2010-12-31  Bruno Haible  <bruno@clisp.org>
16887
16888         pread: Work around HP-UX 11 bugs.
16889         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16890         and set REPLACE_PREAD if not.
16891         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16892
16893 2010-12-31  Eric Blake  <eblake@redhat.com>
16894
16895         nl_langinfo: fix YESEXPR on Irix 6.5
16896         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16897         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16898         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16899         it.
16900
16901 2010-12-31  Bruno Haible  <bruno@clisp.org>
16902
16903         iconv: Document HP-UX 11 bug.
16904         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16905
16906 2010-12-31  Bruno Haible  <bruno@clisp.org>
16907
16908         ldexpl: Fix link error on HP-UX 11.
16909         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16910         LDEXPL_LIBM, using $ISNANL_LIBM.
16911
16912 2010-12-31  Eric Blake  <eblake@redhat.com>
16913
16914         ftello: avoid compilation failure with SunStudio c89
16915         * lib/ftello.c (ftello): Use lseek, not llseek.
16916
16917         tests: avoid failing coreutils tests on cygwin
16918         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16919         (create_exe_shims_): Return 0 when skipping.
16920
16921 2010-12-31  Bruno Haible  <bruno@clisp.org>
16922
16923         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16924         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16925
16926 2010-12-31  Bruno Haible  <bruno@clisp.org>
16927
16928         waitpid: Fix link error in C++ mode.
16929         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16930
16931 2010-12-31  Bruno Haible  <bruno@clisp.org>
16932
16933         isnan: Use GCC built-ins when possible.
16934         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16935         __builtin_isnan.
16936         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16937         (isnan): Define using GCC built-ins for GCC >= 4.0.
16938
16939 2010-12-31  Bruno Haible  <bruno@clisp.org>
16940
16941         isnand: Fix mistake.
16942         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16943         __builtin_isnand.
16944
16945 2010-12-31  Bruno Haible  <bruno@clisp.org>
16946
16947         open: Avoid C++ error on HP-UX 11.
16948         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16949
16950 2010-12-31  Bruno Haible  <bruno@clisp.org>
16951
16952         time_r: Add missing declarations on HP-UX 11.
16953         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16954         instead of HAVE_LOCALTIME_R.
16955         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16956         HAVE_LOCALTIME_R always.
16957         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16958         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16959         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16960         HAVE_LOCALTIME_R.
16961         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16962         * doc/posix-functions/localtime_r.texi: Likewise.
16963
16964 2010-12-29  Eric Blake  <eblake@redhat.com>
16965
16966         mountlist: tweak previous commit
16967         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16968         Reported by Paul Eggert.
16969
16970         mountlist: fix local drive detection on cygwin
16971         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16972         that works for cygwin.
16973
16974 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16975
16976         ftoastr, snprintf: ftoastr + snprintf module
16977         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16978         since the snprintf module now should be good enough here.
16979         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16980         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16981         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16982         GNULIB_SNPRINTF only for the test directory, and the latter
16983         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16984         seems to suffice by itself.
16985
16986 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16987
16988         alloca: one step towards thread-safety
16989         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16990         need for a static variable.  All callers changed.  This does not
16991         make the alloca replacement thread-safe, but it's one step.
16992
16993         tests: minor indenting change
16994         * tests/init.sh: Sync from coreutils housekeeping patch
16995         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16996         to keep lines within 80 columns.
16997
16998 2010-12-28  Jim Meyering  <meyering@redhat.com>
16999
17000         regex: don't infloop on persistent failing calloc
17001         * lib/regexec.c (build_trtable): Return failure indication upon
17002         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17003         In glibc, this was fixed for version 2.13:
17004         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17005
17006 2010-12-28  Bruno Haible  <bruno@clisp.org>
17007             Paul Eggert <eggert@cs.ucla.edu>
17008
17009         linkat: Make implementation robust against system behaviour variations.
17010         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17011         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17012         way, and to -2 if it needs a generic runtime test.
17013         * lib/linkat.c (solaris_optimized_link_immediate,
17014         solaris_optimized_link_follow): New functions.
17015         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17016         (check_same_link): Use it.
17017
17018 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17019
17020         New module 'unigbrk/base'.
17021         * modules/unigbrk/base: New file.
17022         * lib/unigbrk.in.h: New file.
17023
17024         New module 'unigbrk/uc-gbrk-prop'.
17025         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17026         * modules/unigbrk/uc-gbrk-prop: New file.
17027         * lib/unigbrk/gbrkprop.h: New file.
17028         * lib/unigbrk/uc-gbrk-prop.c: New file.
17029
17030         New module 'unigbrk/uc-is-grapheme-break'.
17031         * modules/unigbrk/uc-is-grapheme-break: New file.
17032         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17033         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17034         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17035         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17036         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17037
17038         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17039
17040 2010-12-27  Bruno Haible  <bruno@clisp.org>
17041
17042         linkat test: Avoid failure on Solaris 11 2010-11.
17043         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17044
17045 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17046
17047         utimens: work around glibc rounding bug on more platforms
17048         * lib/utimens.c (fdutimens): Work around rounding bug even if
17049         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17050         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17051
17052 2010-12-27  Bruno Haible  <bruno@clisp.org>
17053
17054         select tests: Improve comments.
17055         * tests/test-select.c (do_select): Add comments.
17056
17057 2010-12-27  Bruno Haible  <bruno@clisp.org>
17058
17059         select tests: Safer way of handling timeout.
17060         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17061         at every invocation.
17062
17063 2010-12-27  Bruno Haible  <bruno@clisp.org>
17064
17065         select tests: Use 'bool' where appropriate.
17066         * tests/test-select.c (connect_to_socket): Change argument type to
17067         'bool'.
17068
17069 2010-12-27  Bruno Haible  <bruno@clisp.org>
17070
17071         select tests: Use existing modules.
17072         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17073         (configure.ac): Don't test for unistd.h.
17074         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17075         declared in <unistd.h>.
17076
17077 2010-12-27  Bruno Haible  <bruno@clisp.org>
17078
17079         mbrtowc: Work around a Solaris 7 bug.
17080         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17081         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17082         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17083         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17084         MBRTOWC_NULL_ARG1_BUG.
17085         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17086         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17087         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17088         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17089
17090 2010-12-27  Jim Meyering  <meyering@redhat.com>
17091
17092         read-file.c: tweak syntax
17093         * lib/read-file.c (fread_file): Remove space after "*" in function
17094         definitions.
17095
17096 2010-12-27  Bruno Haible  <bruno@clisp.org>
17097
17098         times test: Avoid gcc warnings on OSF/1.
17099         * tests/test-times.c (main): Cast printf arguments from clock_t to
17100         'long int'.
17101
17102 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17103
17104         utimens: work around glibc rounding bug on older Linux kernels
17105         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17106         on Linux with a glibc whose utimes might not work, then work
17107         around a longstanding glibc bug involving rounding rather than
17108         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17109         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17110
17111 2010-12-26  Bruno Haible  <bruno@clisp.org>
17112
17113         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17114         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17115         _GL_CXXALIAS_SYS.
17116         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17117
17118 2010-12-26  Bruno Haible  <bruno@clisp.org>
17119
17120         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17121         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17122         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17123         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17124         looking for the declaration.
17125         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17126         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17127         problem.
17128         * doc/posix-functions/inet_pton.texi: Likewise.
17129
17130 2010-12-26  Bruno Haible  <bruno@clisp.org>
17131
17132         arpa_inet: Use the common idioms with C++ support.
17133         * lib/arpa_inet.in.h: Include c++defs.h.
17134         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17135         support.
17136         * modules/arpa_inet (Depends-on): Add c++defs.
17137         (Makefile.am): Substitute the contents of c++defs.h.
17138         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17139         * modules/arpa_inet-c++-tests: New file.
17140         * tests/test-arpa_inet-c++.cc: New file.
17141
17142 2010-12-25  Bruno Haible  <bruno@clisp.org>
17143
17144         Fix more C++ link errors on Solaris 8.
17145         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17146         $(LIB_EACCESS).
17147         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17148         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17149         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17150         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17151         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17152
17153 2010-12-25  Bruno Haible  <bruno@clisp.org>
17154
17155         printf-posix: Fix link error when a non-GCC compiler is used.
17156         * lib/stdio.in.h (printf): When not using GCC, override printf
17157         correctly.
17158         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17159
17160 2010-12-25  Bruno Haible  <bruno@clisp.org>
17161
17162         strerror_r-posix: Update doc.
17163         * doc/posix-functions/strerror_r.texi: Update doc about the return
17164         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17165
17166 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17167
17168         utimens: simplify the logic of the previous change
17169         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17170         This should not affect whether the test succeeds or fails.
17171
17172         utimens: configure better on hosts with NFS clock skew
17173         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17174         uses the clock of the local host.  It might use the clock of the
17175         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17176         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17177
17178 2010-12-25  Bruno Haible  <bruno@clisp.org>
17179
17180         ptsname test: Avoid failure on Solaris.
17181         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17182         open a pseudo-terminal; don't use BSD-style ptys.
17183         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17184
17185 2010-12-25  Bruno Haible  <bruno@clisp.org>
17186
17187         ptsname: Avoid ERANGE failure on some systems.
17188         * lib/ptsname.c (buffer): Increase size.
17189
17190 2010-12-25  Bruno Haible  <bruno@clisp.org>
17191
17192         rename, renameat: Avoid test failures at NFS mounted locations.
17193         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17194         so that subsequent mkdir calls succeed.
17195
17196 2010-12-25  Bruno Haible  <bruno@clisp.org>
17197
17198         iswblank: Fix C++ link error on Solaris 8.
17199         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17200         _GL_FUNCDECL_SYS.
17201
17202 2010-12-25  Bruno Haible  <bruno@clisp.org>
17203
17204         unistd: Fix C++ link error on Solaris 8.
17205         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17206
17207 2010-12-25  Bruno Haible  <bruno@clisp.org>
17208
17209         readlink doc: Mention an old glibc bug.
17210         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17211
17212 2010-12-25  Bruno Haible  <bruno@clisp.org>
17213
17214         fcntl-h: Fix for use of C++ on glibc systems.
17215         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17216         also on glibc systems in C++ mode.
17217         Reported by Gary V. Vaughan <gary@gnu.org>.
17218
17219 2010-12-25  Bruno Haible  <bruno@clisp.org>
17220
17221         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17222         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17223
17224 2010-12-25  Bruno Haible  <bruno@clisp.org>
17225
17226         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17227         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17228         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17229         test whether truncl works according to ISO C 99 with IEC 60559.
17230         * m4/truncl-ieee.m4: New file.
17231         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17232         m4/signbit.m4.
17233         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17234
17235 2010-12-25  Bruno Haible  <bruno@clisp.org>
17236
17237         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17238         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17239         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17240         test whether ceill works according to ISO C 99 with IEC 60559.
17241         * m4/ceill-ieee.m4: New file.
17242         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17243         m4/signbit.m4.
17244         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17245
17246 2010-12-25  Bruno Haible  <bruno@clisp.org>
17247
17248         Ensure all prerequisites of <wchar.h> are included.
17249         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17250         before <wchar.h>.
17251         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17252         gl_MBRLEN_NUL_RETVAL): Likewise.
17253         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17254         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17255         AC_FUNC_MBRTOWC): Likewise.
17256         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17257         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17258         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17259         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17260         Likewise.
17261         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17262         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17263         (gl_WCHAR_H): Improve comments.
17264         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17265
17266 2010-12-25  Bruno Haible  <bruno@clisp.org>
17267
17268         strtok_r: Fix C syntax error in autoconf macro.
17269         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17270         characters in test program.
17271
17272 2010-12-24  Bruno Haible  <bruno@clisp.org>
17273
17274         ceil, trunc, round: Fix gcc warnings.
17275         * lib/ceil.c (MIN): Undefine before redefining.
17276         * lib/trunc.c (MIN): Likewise.
17277         * lib/round.c (MIN): Likewise.
17278         Include <math.h> first.
17279
17280 2010-12-24  Bruno Haible  <bruno@clisp.org>
17281
17282         select tests: Avoid failures on OSF/1 5.1.
17283         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17284         failure of closing the last socket; it may fail with ECONNRESET.
17285
17286 2010-12-24  Eric Blake  <eblake@redhat.com>
17287
17288         stdint: avoid HP-UX 10.20 preprocessor bug
17289         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17290         than #if.
17291         * tests/test-floor2.c (main): Likewise.
17292         Reported by Peter O'Gorman.
17293
17294         pipe: make obsoletion transition easier
17295         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17296         * modules/pipe (Files): Include revived file.
17297         (Include): Drop reference, to mirror getdate's behavior.
17298
17299 2010-12-24  Bruno Haible  <bruno@clisp.org>
17300
17301         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17302         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17303         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17304         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17305
17306 2010-12-24  Bruno Haible  <bruno@clisp.org>
17307
17308         gethostname: Ensure declaration on NonStop Kernel.
17309         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17310         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17311
17312 2010-12-24  Bruno Haible  <bruno@clisp.org>
17313
17314         sys_select: Ensure all necessary types on NonStop Kernel.
17315         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17316         include <sys/time.h>.
17317         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17318         NonStop Kernel.
17319         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17320
17321 2010-12-24  Bruno Haible  <bruno@clisp.org>
17322
17323         sys_select: Remove unneeded include.
17324         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17325         have <sys/select.h>.
17326
17327 2010-12-24  Bruno Haible  <bruno@clisp.org>
17328
17329         gethostname: Provide a fallback for HOST_NAME_MAX.
17330         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17331         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17332         instead.
17333         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17334
17335 2010-12-24  Bruno Haible  <bruno@clisp.org>
17336
17337         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17338         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17339         (SA_RESTART): Likewise.
17340         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17341
17342 2010-12-24  Bruno Haible  <bruno@clisp.org>
17343
17344         signal: Define NSIG.
17345         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17346         * tests/test-signal.c (nsig): New variable.
17347         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17348
17349 2010-12-24  Bruno Haible  <bruno@clisp.org>
17350
17351         rename, renameat: Avoid test failures on OSF/1 5.1.
17352         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17353         alternative error codes.
17354         * tests/test-renameat.c (main): Likewise.
17355
17356 2010-12-24  Bruno Haible  <bruno@clisp.org>
17357
17358         *printf: Detect large precisions bug on Solaris 10/SPARC.
17359         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17360         by Paul Eggert.
17361         * tests/test-snprintf-posix.h (test_function): Add this test code here
17362         too.
17363         * tests/test-sprintf-posix.h (test_function): Likewise.
17364         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17365         * tests/test-vasprintf-posix.c (test_function): Likewise.
17366         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17367         around by gnulib.
17368         * doc/posix-functions/printf.texi: Likewise.
17369         * doc/posix-functions/snprintf.texi: Likewise.
17370         * doc/posix-functions/sprintf.texi: Likewise.
17371         * doc/posix-functions/vfprintf.texi: Likewise.
17372         * doc/posix-functions/vprintf.texi: Likewise.
17373         * doc/posix-functions/vsnprintf.texi: Likewise.
17374         * doc/posix-functions/vsprintf.texi: Likewise.
17375         * doc/posix-functions/dprintf.texi: Undo last commit.
17376         * doc/posix-functions/vdprintf.texi: Likewise.
17377
17378 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17379
17380         tests: port test-fdutimensat.c to Solaris 8
17381         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17382         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17383         On Solaris 8, it fails with errno == ENOSYS, because there is no
17384         futimens (so it can't use the fd), and there is no lutimens (so it
17385         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17386
17387         vsnprintf: make more consistent with snprintf; doc fixes
17388
17389         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17390         the byte count return problem was promoted from the snprintf-posix
17391         to the snprintf module.
17392         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17393         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17394         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17395         * tests/test-snprintf.c (main): Check the byte count returned.
17396         * tests/test-vsnprintf.c (main): Likewise.
17397
17398 2010-12-23  Eric Blake  <eblake@redhat.com>
17399
17400         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17401         * modules/sigpipe (License): Relax license.
17402
17403 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17404
17405         doc: document Solaris printf bug with large float precisions
17406         * doc/posix-functions/dprintf.texi (dprintf):
17407         * doc/posix-functions/fprintf.texi (fprintf):
17408         * doc/posix-functions/printf.texi (printf):
17409         * doc/posix-functions/snprintf.texi (snprintf):
17410         * doc/posix-functions/sprintf.texi (sprintf):
17411         * doc/posix-functions/vdprintf.texi (vdprintf):
17412         * doc/posix-functions/vfprintf.texi (vfprintf):
17413         * doc/posix-functions/vprintf.texi (vprintf):
17414         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17415         * doc/posix-functions/vsprintf.texi (vsprintf):
17416         Mention that these functions mishandle large floating point
17417         precisions on Solaris 10.  The same bug is also present in Solaris
17418         8, and I assume earlier.  This causes "cd gnulib-tests; make
17419         check" to fail on Solaris 8 (and I assume, later) when building
17420         the latest coreutils, in test-vasprintf-posix's call to
17421         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17422         the wide flavors (e.g., wprintf) so this patch just updates the
17423         documentation for the narrow ones.
17424
17425         test-posixtm.c: add two tests
17426         * tests/test-posixtm.c: Add two tests, to highlight the
17427         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17428         around this bug; this is merely to document it.
17429
17430 2010-12-22  Bruno Haible  <bruno@clisp.org>
17431
17432         getlogin_r: Work around portability problem on OSF/1.
17433         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17434         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17435         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17436         test for a truncated result.
17437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17438         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17439         * modules/getlogin_r (Depends-on): Add memchr.
17440         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17441
17442 2010-12-22  Bruno Haible  <bruno@clisp.org>
17443
17444         ptsname: Avoid test failure on OSF/1 5.1.
17445         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17446         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17447         (same_slave): New function.
17448         (main): Use it to compare ptsname's result with the expected file name.
17449
17450 2010-12-22  Bruno Haible  <bruno@clisp.org>
17451
17452         Port extended stdio modules to HP NonStop Kernel.
17453         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17454         macros.
17455         * lib/fbufmode.c: Update comments.
17456         * lib/fflush.c: Likewise.
17457         * lib/fpurge.c: Likewise.
17458         * lib/freadable.c: Likewise.
17459         * lib/freadahead.c: Likewise.
17460         * lib/freading.c: Likewise.
17461         * lib/freadptr.c: Likewise.
17462         * lib/freadseek.c: Likewise.
17463         * lib/fseeko.c: Likewise.
17464         * lib/fseterr.c: Likewise.
17465         * lib/fwritable.c: Likewise.
17466         * lib/fwriting.c: Likewise.
17467         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17468
17469 2010-12-22  Bruno Haible  <bruno@clisp.org>
17470
17471         ttyname_r: Work around bug on OSF/1 5.1.
17472         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17473         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17474         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17475         present.
17476         * lib/ttyname_r.c (ttyname_r): Update comments.
17477
17478 2010-12-22  Bruno Haible  <bruno@clisp.org>
17479
17480         round: Implement result sign according to IEEE 754.
17481         * lib/round.c (MIN, MINUS_ZERO): New macros.
17482         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17483         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17484         * tests/test-round-ieee.c (main): Likewise.
17485         * tests/test-roundl-ieee.c (main): Likewise.
17486
17487         trunc: Implement result sign according to IEEE 754.
17488         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17489         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17490         * tests/test-trunc2.c: Include minus-zero.h.
17491         (MINUS_ZERO): New macro.
17492         (trunc_reference): Keep in sync with lib/trunc.c.
17493         * tests/test-truncf2.c: Include minus-zero.h.
17494         (MINUS_ZERO): New macro.
17495         (truncf_reference): Keep in sync with lib/trunc.c.
17496         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17497         * tests/test-trunc-ieee.c (main): Likewise.
17498         * tests/test-truncl-ieee.c (main): Likewise.
17499
17500         ceil: Implement result sign according to IEEE 754.
17501         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17502         (FUNC): Return -0.0 for -1 < x < 0.
17503         * tests/test-ceil2.c: Include minus-zero.h.
17504         (MINUS_ZERO): New macro.
17505         (ceil_reference): Keep in sync with lib/ceil.c.
17506         * tests/test-ceilf2.c: Include minus-zero.h.
17507         (MINUS_ZERO): New macro.
17508         (ceilf_reference): Keep in sync with lib/ceil.c.
17509         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17510         * tests/test-ceil-ieee.c (main): Likewise.
17511         * tests/test-ceill-ieee.c (main): Likewise.
17512
17513         floor: Implement result sign according to IEEE 754.
17514         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17515         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17516         * tests/test-floorf2.c (floorf_reference): Likewise.
17517         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17518         * tests/test-floor-ieee.c (main): Likewise.
17519         * tests/test-floorl-ieee.c (main): Likewise.
17520
17521 2010-12-22  Bruno Haible  <bruno@clisp.org>
17522
17523         getaddrinfo: Update doc.
17524         * doc/posix-functions/gai_strerror.texi: Return type is also different
17525         on AIX and HP-UX.
17526
17527 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17528
17529         getaddrinfo, inet_ntop: Update doc for Solaris.
17530         * doc/posix-functions/gai_strerror.texi: Return type is also an
17531         issue on Solaris 9 and earlier.
17532         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17533         on Solaris 10 and earlier.
17534
17535 2010-12-21  Bruno Haible  <bruno@clisp.org>
17536
17537         New module 'roundl-ieee'.
17538         * modules/roundl-ieee: New file.
17539         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17540         test whether roundl works according to ISO C 99 with IEC 60559.
17541         * m4/roundl-ieee.m4: New file.
17542         * modules/roundl-ieee-tests: New file.
17543         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17544         * tests/test-roundl.c (main): Remove signbit tests.
17545         * modules/roundl-tests (Depends-on): Remove signbit.
17546         * doc/posix-functions/roundl.texi: Mention the new module.
17547
17548 2010-12-21  Bruno Haible  <bruno@clisp.org>
17549
17550         New module 'truncl-ieee'.
17551         * modules/truncl-ieee: New file.
17552         * modules/truncl-ieee-tests: New file.
17553         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17554         * tests/test-truncl.c (main): Remove signbit tests.
17555         * modules/truncl-tests (Depends-on): Remove signbit.
17556         * doc/posix-functions/truncl.texi: Mention the new module.
17557
17558 2010-12-21  Bruno Haible  <bruno@clisp.org>
17559
17560         New module 'ceill-ieee'.
17561         * modules/ceill-ieee: New file.
17562         * modules/ceill-ieee-tests: New file.
17563         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17564         * tests/test-ceill.c (main): Remove signbit tests.
17565         * modules/ceill-tests (Depends-on): Remove signbit.
17566         * doc/posix-functions/ceill.texi: Mention the new module.
17567
17568 2010-12-21  Bruno Haible  <bruno@clisp.org>
17569
17570         New module 'floorl-ieee'.
17571         * modules/floorl-ieee: New file.
17572         * modules/floorl-ieee-tests: New file.
17573         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17574         * tests/test-floorl.c (main): Remove signbit tests.
17575         * modules/floorl-tests (Depends-on): Remove signbit.
17576         * doc/posix-functions/floorl.texi: Mention the new module.
17577
17578 2010-12-21  Bruno Haible  <bruno@clisp.org>
17579
17580         New module 'round-ieee'.
17581         * modules/round-ieee: New file.
17582         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17583         whether round works according to ISO C 99 with IEC 60559.
17584         * m4/round-ieee.m4: New file.
17585         * modules/round-ieee-tests: New file.
17586         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17587         * tests/test-round1.c (main): Remove signbit tests.
17588         * modules/round-tests (Depends-on): Remove 'signbit'.
17589         * doc/posix-functions/round.texi: Mention the new module.
17590
17591 2010-12-21  Bruno Haible  <bruno@clisp.org>
17592
17593         New module 'trunc-ieee'.
17594         * modules/trunc-ieee: New file.
17595         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17596         whether trunc works according to ISO C 99 with IEC 60559.
17597         * m4/trunc-ieee.m4: New file.
17598         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17600         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17601         * modules/trunc-ieee-tests: New file.
17602         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17603         * tests/test-trunc1.c (main): Remove signbit tests.
17604         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17605         * doc/posix-functions/trunc.texi: Mention the new module.
17606
17607 2010-12-21  Bruno Haible  <bruno@clisp.org>
17608
17609         New module 'ceil-ieee'.
17610         * modules/ceil-ieee: New file.
17611         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17612         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17613         ISO C 99 with IEC 60559.
17614         * m4/ceil-ieee.m4: New file.
17615         * modules/ceil (Files): Add lib/ceil.c.
17616         (Depends-on): Add 'float'.
17617         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17618         * lib/math.in.h (ceil): New declaration.
17619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17620         REPLACE_CEIL.
17621         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17622         * modules/ceil-ieee-tests: New file.
17623         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17624         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17625         * doc/posix-functions/ceil.texi: Mention the new module.
17626
17627 2010-12-21  Bruno Haible  <bruno@clisp.org>
17628
17629         New module 'floor-ieee'.
17630         * modules/floor-ieee: New file.
17631         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17632         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17633         ISO C 99 with IEC 60559.
17634         * m4/floor-ieee.m4: New file.
17635         * modules/floor (Files): Add lib/floor.c.
17636         (Depends-on): Add 'float'.
17637         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17638         * lib/math.in.h (floor): New declaration.
17639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17640         REPLACE_FLOOR.
17641         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17642         * modules/floor-ieee-tests: New file.
17643         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17644         * tests/test-math-c++.cc: Check the signature of 'floor'.
17645         * doc/posix-functions/floor.texi: Mention the new module.
17646
17647 2010-12-21  Bruno Haible  <bruno@clisp.org>
17648
17649         New module 'roundf-ieee'.
17650         * modules/roundf-ieee: New file.
17651         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17652         test whether roundf works according to ISO C 99 with IEC 60559.
17653         * m4/roundf-ieee.m4: New file.
17654         * modules/roundf-ieee-tests: New file.
17655         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17656         * tests/test-roundf1.c (main): Remove signbit tests.
17657         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17658         * doc/posix-functions/roundf.texi: Mention the new module.
17659
17660 2010-12-21  Bruno Haible  <bruno@clisp.org>
17661
17662         New module 'truncf-ieee'.
17663         * modules/truncf-ieee: New file.
17664         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17665         test whether truncf works according to ISO C 99 with IEC 60559.
17666         * m4/truncf-ieee.m4: New file.
17667         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17669         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17670         * modules/truncf-ieee-tests: New file.
17671         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17672         * tests/test-truncf1.c (main): Remove signbit tests.
17673         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17674         * doc/posix-functions/truncf.texi: Mention the new module.
17675
17676 2010-12-21  Bruno Haible  <bruno@clisp.org>
17677
17678         New module 'ceilf-ieee'.
17679         * modules/ceilf-ieee: New file.
17680         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17681         test whether ceilf works according to ISO C 99 with IEC 60559.
17682         * m4/ceilf-ieee.m4: New file.
17683         * modules/ceilf-ieee-tests: New file.
17684         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17685         * tests/test-ceilf1.c (main): Remove signbit tests.
17686         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17687         * doc/posix-functions/ceilf.texi: Mention the new module.
17688
17689 2010-12-21  Bruno Haible  <bruno@clisp.org>
17690
17691         New module 'floorf-ieee'.
17692         * modules/floorf-ieee: New file.
17693         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17694         test whether floorf works according to ISO C 99 with IEC 60559.
17695         * m4/floorf-ieee.m4: New file.
17696         * modules/floorf-ieee-tests: New file.
17697         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17698         * tests/test-floorf1.c (main): Remove signbit tests.
17699         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17700         * doc/posix-functions/floorf.texi: Mention the new module.
17701
17702 2010-12-21  Bruno Haible  <bruno@clisp.org>
17703
17704         Support for minus zero in autoconf macros.
17705         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17706         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17707         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17708         * tests/minus-zero.h: Update comments.
17709
17710 2010-12-21  Bruno Haible  <bruno@clisp.org>
17711
17712         Tests for module 'ceil'.
17713         * modules/ceil-tests: New file.
17714         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17715         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17716
17717 2010-12-21  Bruno Haible  <bruno@clisp.org>
17718
17719         Tests for module 'floor'.
17720         * modules/floor-tests: New file.
17721         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17722         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17723
17724 2010-12-21  Bruno Haible  <bruno@clisp.org>
17725
17726         math: Fix indentation.
17727         * lib/math.in.h (floorf): Fix indentation.
17728
17729 2010-12-21  Bruno Haible  <bruno@clisp.org>
17730
17731         Fix cross-compilation guesses on Solaris.
17732         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17733         not match "solaris2.10".
17734         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17735         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17736         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17737
17738 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17739
17740         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17741         This fixes a problem observed with the latest coreutils snapshot
17742         that caused a test to fail on Solaris 8.  src/csplit.c's call
17743         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17744         earlier, instead of returning the number of bytes that would have
17745         been generated; this causes csplit to incorrectly report memory
17746         exhaustion.
17747         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17748         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17749         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17750         comments to match.
17751         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17752         Fix typo in matching older versions of Solaris: "solaris2.10"
17753         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17754         only for guessing while cross-compiling.
17755         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17756
17757 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17758
17759         ftoastr: fix comment again
17760         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17761         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17762         Also, simplify example a bit by using flags = 0.
17763
17764 2010-12-20  Bruno Haible  <bruno@clisp.org>
17765
17766         round*, trunc*: Update documentation regarding glibc.
17767         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17768         * doc/posix-functions/round.texi: Likewise.
17769         * doc/posix-functions/roundl.texi: Likewise.
17770         * doc/posix-functions/truncf.texi: Likewise.
17771         * doc/posix-functions/trunc.texi: Likewise.
17772         * doc/posix-functions/truncl.texi: Likewise.
17773
17774 2010-12-20  Bruno Haible  <bruno@clisp.org>
17775
17776         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17777         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17778         * doc/posix-functions/round.texi: Likewise.
17779         * doc/posix-functions/roundl.texi: Likewise.
17780
17781 2010-12-20  Bruno Haible  <bruno@clisp.org>
17782
17783         ttyname_r: Add missing declaration on HP-UX 11.
17784         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17785         HAVE_TTYNAME_R.
17786         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17787         declared. Set HAVE_TTYNAME_R always.
17788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17789         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17790         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17791         HAVE_TTYNAME_R.
17792         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17793
17794 2010-12-20  Bruno Haible  <bruno@clisp.org>
17795
17796         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17797         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17798         * doc/posix-functions/getlogin_r.texi: Likewise.
17799         * tests/test-getlogin.c: Include <errno.h>.
17800         (main): Avoid test failure on HP-UX 11.11.
17801         * tests/test-getlogin_r.c (main): Likewise.
17802
17803 2010-12-20  Bruno Haible  <bruno@clisp.org>
17804
17805         getlogin_r: Add missing declaration on HP-UX 11.
17806         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17807         declared also when it exists as a function.
17808         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17809
17810 2010-12-20  Bruno Haible  <bruno@clisp.org>
17811
17812         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17813         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17814         through wcrtomb.
17815
17816 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17817
17818         ftoastr: fix comment
17819         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17820         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17821
17822 2010-12-19  Bruno Haible  <bruno@clisp.org>
17823
17824         isnan: Ensure it is a macro.
17825         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17826         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17827         Solaris.
17828
17829 2010-12-19  Bruno Haible  <bruno@clisp.org>
17830
17831         ldexpl test: Fix link error on OSF/1 5.1.
17832         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17833
17834 2010-12-19  Bruno Haible  <bruno@clisp.org>
17835
17836         wctype: Make it work in C++ mode on OSF/1 5.1.
17837         * lib/wctype.in.h (iswblank): Declare but not define here.
17838         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17839         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17840         * modules/wctype (Files): Add lib/iswblank.c.
17841
17842 2010-12-19  Bruno Haible  <bruno@clisp.org>
17843
17844         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17845         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17846         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17847
17848 2010-12-19  Bruno Haible  <bruno@clisp.org>
17849
17850         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17851         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17852         _POSIX_PII_SOCKET.
17853         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17854         * doc/posix-functions/recvfrom.texi: Likewise.
17855         * doc/posix-functions/send.texi: Likewise.
17856         * doc/posix-functions/sendto.texi: Likewise.
17857
17858 2010-12-19  Bruno Haible  <bruno@clisp.org>
17859
17860         tcgetsid: Add missing declaration on OSF/1 5.1.
17861         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17862         HAVE_TCGETSID.
17863         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17864         Don't set HAVE_TCGETSID.
17865         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17866         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17867         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17868         HAVE_TCGETSID.
17869         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17870
17871 2010-12-19  Bruno Haible  <bruno@clisp.org>
17872
17873         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17874         * lib/stdio.in.h: During the include_next statement, let recursive
17875         includes of this file include only the system header file.
17876
17877 2010-12-19  Bruno Haible  <bruno@clisp.org>
17878
17879         iconv_open: Fix regression from 2010-12-04.
17880         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17881         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17882
17883 2010-12-19  Bruno Haible  <bruno@clisp.org>
17884
17885         stdbool test: Avoid a gcc warning.
17886         * tests/test-stdbool.c (main): Fail if e1 is false.
17887         Reported by Jim Meyering.
17888
17889 2010-12-19  Jim Meyering  <meyering@redhat.com>
17890
17891         setenv: restore to working order
17892         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17893         mistakenly removed.
17894         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17895         HAVE_SETENV.
17896         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17897         HAVE_SETENV.
17898
17899 2010-12-19  Bruno Haible  <bruno@clisp.org>
17900
17901         Document some different function declarations on OSF/1 5.1.
17902         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17903         * doc/posix-functions/inet_ntop.texi: Likewise.
17904         * doc/posix-functions/gethostname.texi: Likewise.
17905         * lib/unistd.in.h (gethostname): Update comment.
17906
17907 2010-12-19  Bruno Haible  <bruno@clisp.org>
17908
17909         doc: Mention vasprintf-posix module.
17910         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17911         the 'vasprintf-posix' module.
17912         * doc/glibc-functions/vasprintf.texi: Likewise.
17913
17914 2010-12-19  Bruno Haible  <bruno@clisp.org>
17915
17916         unsetenv: Add missing declaration on OSF/1 5.1.
17917         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17918         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17919         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17920         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17921         not HAVE_UNSETENV.
17922         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17923         HAVE_UNSETENV.
17924         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17925
17926 2010-12-19  Bruno Haible  <bruno@clisp.org>
17927
17928         setenv: Add missing declaration on OSF/1 5.1.
17929         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17930         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17931         declared. Don't set HAVE_SETENV.
17932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17933         not HAVE_SETENV.
17934         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17935         HAVE_SETENV.
17936         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17937
17938 2010-12-19  Bruno Haible  <bruno@clisp.org>
17939
17940         nl_langinfo tests: Avoid gcc warning.
17941         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17942
17943 2010-12-19  Bruno Haible  <bruno@clisp.org>
17944
17945         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17946         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17947         _GL_CXXALIAS_SYS.
17948
17949 2010-12-19  Bruno Haible  <bruno@clisp.org>
17950
17951         stdbool: Relax test.
17952         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17953         address to 'bool' work in static initializer, for compilers other than
17954         GCC.
17955
17956 2010-12-19  Bruno Haible  <bruno@clisp.org>
17957
17958         ftello: Add missing declaration on OSF/1 5.1.
17959         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17960         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17962         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17963         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17964
17965 2010-12-19  Bruno Haible  <bruno@clisp.org>
17966
17967         fseeko: Add missing declaration on OSF/1 5.1.
17968         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17969         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17971         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17972         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17973
17974 2010-12-19  Bruno Haible  <bruno@clisp.org>
17975
17976         fchdir: Add missing declaration on OSF/1 5.1.
17977         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17980         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17981         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17982
17983 2010-12-19  Bruno Haible  <bruno@clisp.org>
17984
17985         relocatable-prog-wrapper: Separate from relocatable-prog.
17986         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17987         uninstall-relocwrapper rule here.
17988         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17989         Reported by Ian Beckwith <ianb@erislabs.net>.
17990
17991 2010-12-19  Bruno Haible  <bruno@clisp.org>
17992
17993         unistr/u8-mbsnlen: Add missing dependency.
17994         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17995         Reported by Ian Beckwith <ianb@erislabs.net>.
17996
17997 2010-12-19  Bruno Haible  <bruno@clisp.org>
17998
17999         iconv: Make it possible again to use this module without 'iconv-h'.
18000         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18001         if it is not defined.
18002         Reported by Ian Beckwith <ianb@erislabs.net>.
18003
18004 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18005
18006         acl: port to Solaris 8 when copying from tmpfs to ufs
18007         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18008         error number.  Problem observed on Solaris 8 with latest
18009         coreutils, with "mv A B", where A is on a tmpfs file system and B
18010         is on a ufs file system.  This caused coreutils' mv/part-symlink
18011         test to fail.
18012
18013         tests: set fail=0 at start
18014         * tests/init.sh (setup_): Move fail=0 initialization here ...
18015         (mktempd_): ... from here, so that tests can rely on fail being
18016         set to 0 initially.  This fixes a problem in coreutils; see:
18017         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18018
18019 2010-12-18  Bruno Haible  <bruno@clisp.org>
18020
18021         memmem-simple: Stylistic changes.
18022         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18023         Fix preprocessor directive indentation.
18024
18025 2010-12-15  Pádraig Brady <P@draigBrady.com>
18026
18027         memmem, memmem-simple: reorganize and expand empty needle check
18028         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18029         functional checks to memmem-simple so that one has a fully functional
18030         memmem by using just this module.
18031         Restrict the performance only check to the memmem module.
18032         Also expand the empty needle check to ensure the correct
18033         pointer is returned, not just a non NULL pointer.
18034         * doc/glibc-functions/memmem.texi: Rearrange the portability
18035         documentation to correlate with the rearranged checks.
18036         Clarify exactly how the memmem and memmem-simple modules
18037         relate to each other.
18038
18039 2010-12-15  Pádraig Brady <P@draigBrady.com>
18040             Bruno Haible  <bruno@clisp.org>
18041
18042         Improve cross-compilation guesses for uClibc.
18043         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18044         that uClibc does not have the glibc bug.
18045         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18046         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18047
18048 2010-12-14  Eric Blake  <eblake@redhat.com>
18049
18050         configmake: provide fallbacks for oldest supported autotools
18051         * m4/configmake.m4: New file.
18052         * modules/configmake (Files): Ship it.
18053         (configure.ac): Use it to guarantee fallbacks.
18054
18055 2010-12-13  Pádraig Brady <P@draigBrady.com>
18056
18057         read-file: Improve handling of large files
18058         * lib/read-file.c (fread_file): Minimize realloc()s
18059         for regular files, and better manage sizes around SIZE_MAX.
18060
18061 2010-12-13  Eric Blake  <eblake@redhat.com>
18062
18063         cloexec, fcntl: relax license
18064         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18065         consent from all contributors.
18066         * modules/fcntl (License): Likewise.
18067
18068 2010-12-10  Bruno Haible  <bruno@clisp.org>
18069
18070         Tests for module 'pipe-posix'.
18071         * modules/pipe-posix-tests: New file.
18072         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18073
18074 2010-12-10  Bruno Haible  <bruno@clisp.org>
18075
18076         pipe-posix: Make it work in C++ mode.
18077         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18078         (pipe): Use common idiom, not a macro definition.
18079         * lib/pipe.c: New file.
18080         * m4/pipe.m4: New file.
18081         * modules/pipe-posix (Description): Enhance.
18082         (Files): Add lib/pipe.c, m4/pipe.m4.
18083         (configure.ac): Invoke gl_FUNC_PIPE.
18084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18085         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18086         * tests/test-unistd-c++.cc: Check the signature of pipe.
18087
18088 2010-12-10  Bruno Haible  <bruno@clisp.org>
18089
18090         Rename module 'pipe' to 'spawn-pipe'.
18091         * modules/spawn-pipe: New file, renamed from modules/pipe.
18092         (Files, configure.ac, Makefile.am): Update.
18093         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18094         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18095         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18096         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18097         "spawn-pipe.h" instead of "pipe.h".
18098         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18099         to gl_SPAWN_PIPE.
18100         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18101         (Files, Makefile.am): Update.
18102         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18103         Update.
18104         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18105         Include "spawn-pipe.h" instead of "pipe.h".
18106         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18107         * lib/javacomp.c: Likewise.
18108         * lib/javaversion.c: Likewise.
18109         * lib/pipe-filter-gi.c: Likewise.
18110         * lib/pipe-filter-ii.c: Likewise.
18111         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18112         * modules/javacomp (Depends-on): Likewise.
18113         * modules/javaversion (Depends-on): Likewise.
18114         * modules/pipe-filter-gi (Depends-on): Likewise.
18115         * modules/pipe-filter-ii (Depends-on): Likewise.
18116         * MODULES.html.sh (Executing programs): Update.
18117         * NEWS: Mention the change.
18118
18119 2010-12-10  Eric Blake  <eblake@redhat.com>
18120
18121         pipe-posix: new module
18122         * modules/pipe-posix: New file.
18123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18124         (gl_UNISTD_H): Check for declaration.
18125         * modules/unistd (Makefile.am): Substitute it.
18126         * lib/unistd.in.h (pipe): Provide it for mingw.
18127         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18128         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18129
18130 2010-12-07  Bruno Haible  <bruno@clisp.org>
18131
18132         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18133         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18134         u8_strcmp_gnu.
18135         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18136
18137 2010-12-06  Bruno Haible  <bruno@clisp.org>
18138
18139         Update internal documentation.
18140         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18141
18142 2010-12-04  Bruno Haible  <bruno@clisp.org>
18143
18144         Put more information about failed tests into the test return codes.
18145         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18146         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18147         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18148         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18149         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18150         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18151         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18152         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18153         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18154         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18155         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18156         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18157         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18158         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18159         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18160         returns a bit mask.
18161         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18162         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18163         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18164         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18165         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18166         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18167         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18169         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18170         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18171         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18172         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18173         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18174         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18175         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18176         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18177         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18178         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18179         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18180         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18181         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18182         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18183         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18184         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18185         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18186         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18187         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18188         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18189         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18190         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18191         gl_PRINTF_PRECISION): Likewise.
18192         * m4/regex.m4 (gl_REGEX): Likewise.
18193         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18194         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18195         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18196         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18197         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18198         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18199         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18200         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18201         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18202         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18203         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18204         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18205         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18206         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18207         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18208         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18209         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18210         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18211         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18212         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18213         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18214         enumerated value.
18215         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18216
18217 2010-12-04  Bruno Haible  <bruno@clisp.org>
18218
18219         Update for Solaris 11 2010-11.
18220         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18221         Express, released in November 2010.
18222
18223 2010-12-04  Bruno Haible  <bruno@clisp.org>
18224
18225         nproc: Relax license.
18226         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18227         and Paul Eggert.
18228         Requested by Ludovic Courtès <ludo@gnu.org>.
18229
18230 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18231
18232         utimecmp: fine-grained src to nearby coarse-grained dest
18233
18234         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18235         and the source is on a file system with higher-resolution time
18236         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18237         not work, and the time stamps are close together, the algorithm to
18238         determine the exact resolution from the read-back mtime was buggy:
18239         it had a "!=" where it should have had an "==".  This bug has been
18240         in the code ever since it was introduced to gnulib.
18241         Problem reported by Dan Jacobson in
18242         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18243
18244 2010-11-30  Bruno Haible  <bruno@clisp.org>
18245
18246         strerror_r-posix: Fix autoconf test.
18247         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18248
18249 2010-11-28  Bruno Haible  <bruno@clisp.org>
18250             Paul Eggert  <eggert@cs.ucla.edu>
18251
18252         Tests for module 'getdomainname'.
18253         * modules/getdomainname-tests: New file.
18254         * tests/test-getdomainname.c: New file, based on
18255         tests/test-gethostname.c.
18256
18257 2010-11-28  Bruno Haible  <bruno@clisp.org>
18258             Paul Eggert  <eggert@cs.ucla.edu>
18259
18260         getdomainname: Use the system function when possible.
18261         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18262         (getdomainname): Replace if needed. Provide the declaration if it is
18263         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18264         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18265         (getdomainname): When the system has getdomainname, call the system
18266         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18267         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18268         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18269         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18270         the function if its second argument is of type 'int' or if it is found
18271         in libnsl.
18272         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18273         <sys/systeminfo.h> and sysinfo().
18274         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18276         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18277         HAVE_GETDOMAINNAME.
18278         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18279         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18280         * doc/glibc-functions/getdomainname.texi: Document the problems with
18281         the getdomainname declaration.
18282
18283 2010-11-28  Bruno Haible  <bruno@clisp.org>
18284
18285         sys_socket: Ensure ss_family field on AIX.
18286         * lib/sys_socket.in.h (ss_family): New macro definition.
18287         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18288         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18289         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18290         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18291         * modules/sys_socket (Makefile.am): Substitute
18292         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18293         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18294
18295 2010-11-27  Bruno Haible  <bruno@clisp.org>
18296
18297         readline: Improve configure output.
18298         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18299         "checking for readline..." result understandable.
18300
18301 2010-11-27  Bruno Haible  <bruno@clisp.org>
18302
18303         *printf-posix: Detect a bug on Solaris 10/x86.
18304         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18305         for floating-point output.
18306         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18307         directive.
18308         * tests/test-snprintf-posix.h (test_function): Likewise.
18309         * tests/test-sprintf-posix.h (test_function): Likewise.
18310         * tests/test-vasprintf-posix.c (test_function): Likewise.
18311         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18312         * doc/posix-functions/printf.texi: Likewise.
18313         * doc/posix-functions/snprintf.texi: Likewise.
18314         * doc/posix-functions/sprintf.texi: Likewise.
18315         * doc/posix-functions/vfprintf.texi: Likewise.
18316         * doc/posix-functions/vprintf.texi: Likewise.
18317         * doc/posix-functions/vsnprintf.texi: Likewise.
18318         * doc/posix-functions/vsprintf.texi: Likewise.
18319         * doc/glibc-functions/obstack_printf.texi: Likewise.
18320         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18321
18322 2010-11-27  Bruno Haible  <bruno@clisp.org>
18323
18324         Fix link error when module libunistring-optional is in use.
18325         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18326         * modules/striconveha-tests (Makefile.am): Likewise.
18327
18328 2010-11-27  Bruno Haible  <bruno@clisp.org>
18329
18330         regex: Mention link dependencies.
18331         * modules/regex (Link): New section.
18332         * modules/rpmatch (Link): Likewise.
18333         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18334
18335 2010-11-27  Bruno Haible  <bruno@clisp.org>
18336
18337         ftoastr: Fix compilation error on Solaris.
18338         * lib/ftoastr.c: Include <config.h>.
18339
18340 2010-11-27  Bruno Haible  <bruno@clisp.org>
18341
18342         getloadavg: Update documentation.
18343         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18344
18345 2010-11-27  Bruno Haible  <bruno@clisp.org>
18346
18347         sys_socket: Fix test whether the functions are declared.
18348         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18349         not <sys/select.h>.
18350
18351 2010-11-27  Bruno Haible  <bruno@clisp.org>
18352
18353         getpass: Make sure to get system declaration on some platforms.
18354         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18355         gl_USE_SYSTEM_EXTENSIONS.
18356         * modules/getpass (Depends-on): Add extensions.
18357
18358 2010-11-26  Bruno Haible  <bruno@clisp.org>
18359
18360         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18361         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18362         'iconv' module is present.
18363         (ICONV_CONST): New macro.
18364         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18365         ICONV_CONST.
18366         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18367         set ICONV_CONST.
18368         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18369         here.
18370         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18371         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18372         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18373         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18374         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18375         present.
18376
18377 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18378
18379         ftoastr: comment fix
18380         * lib/ftoastr.c: "little" -> "little or no" in comment
18381
18382 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18383
18384         stdint: port to GCC 4.3 + OSX + Octave
18385         On this platform, stdint.h is buggy and defines int64_t to long
18386         long int.  The replacement defined it to long int, causing
18387         problems with C++ style name mangling.  Instead, trust the system
18388         definition if INT64_MAX is defined, and likewise for the unsigned
18389         variant.   Problem reported by Jarno Rajahalme in
18390         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18391         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18392         and don't mess with int64_t and INT64_MAX in this case.
18393         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18394
18395 2010-11-24  Bruno Haible  <bruno@clisp.org>
18396
18397         doc: Corrections regarding MacOS X 10.4 and 10.5.
18398         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18399         MacOS X.
18400         Reported by Simon Josefsson.
18401
18402 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18403
18404         Uninstall ".bin" files installed by relocwrapper.
18405         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18406         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18407         unless it is already there.
18408
18409 2010-11-21  Bruno Haible  <bruno@clisp.org>
18410
18411         Update for NetBSD 5.0.
18412         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18413         NetBSD; the test fails on NetBSD 5.0.
18414         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18415         about NetBSD.
18416
18417 2010-11-21  Bruno Haible  <bruno@clisp.org>
18418
18419         Update for HP-UX 11.23 and HP-UX 11.31.
18420         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18421         HP-UX.
18422
18423 2010-11-21  Bruno Haible  <bruno@clisp.org>
18424
18425         Update for MacOS X 10.5.
18426         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18427         MacOS X; the test fails on MacOS X 10.5.8.
18428         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18429         about MacOS X.
18430
18431 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18432
18433         bootstrap: add bootstrap_sync option.
18434         See discussion at
18435         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18436         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18437         * build-aux/bootstrap: Accept --bootstrap-sync to update
18438         bootstrap if it is not identical to the local gnulib's
18439         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18440         enable this by default.  Accept --no-bootstrap-sync to disable
18441         it.
18442
18443 2010-11-20  Bruno Haible  <bruno@clisp.org>
18444
18445         Ensure that <features.h> is included before __GLIBC__ is tested.
18446         * lib/printf-parse.h: Include <features.h>.
18447         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18448         Reported by Mike Frysinger <vapier@gentoo.org>.
18449
18450         Ensure that <features.h> is included before __GLIBC__ is tested.
18451         * lib/wchar.in.h: Include <features.h>.
18452         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18453         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18454         Reported by Mike Frysinger <vapier@gentoo.org>.
18455
18456         Ensure that <features.h> is included before __GLIBC__ is tested.
18457         * lib/arpa_inet.in.h: Include <features.h>.
18458         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18459         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18460         Reported by Mike Frysinger <vapier@gentoo.org>.
18461
18462         Ensure that <features.h> is included before __GLIBC__ is tested.
18463         * build-aux/link-warning.h: Include <features.h>.
18464         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18465         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18466         Reported by Mike Frysinger <vapier@gentoo.org>.
18467
18468         Ensure that <features.h> is included before __GLIBC__ is tested.
18469         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18470         Reported by Mike Frysinger <vapier@gentoo.org>.
18471
18472 2010-11-20  Bruno Haible  <bruno@clisp.org>
18473
18474         memmem: Fix autoconf test.
18475         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18476
18477 2010-11-20  Bruno Haible  <bruno@clisp.org>
18478
18479         Port to uClibc.
18480         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18481         * lib/fcntl.in.h: Likewise.
18482         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18483         * lib/mbrtowc.c (mbrtowc): Likewise.
18484         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18485         * lib/strerror_r.c: Likewise.
18486         * lib/unistr/u8-strnlen.c: Likewise.
18487         * lib/vasnprintf.c (decimal_point_char): Likewise.
18488         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18489         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18490         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18491         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18492         * tests/test-sigaction.c (handler, main): Likewise.
18493         * lib/freading.h: Treat uClibc like a non-glibc platform.
18494         * lib/freading.c: Likewise.
18495         * lib/gettext.h: Likewise.
18496         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18497         Likewise.
18498         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18499         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18500         * lib/propername.c (proper_name_utf8): Likewise.
18501         * lib/spawn.in.h: Likewise.
18502         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18503         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18504         mem_cd_iconveh_internal): Likewise.
18505         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18506         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18507         strstr, strcasestr): Likewise.
18508         * lib/unicodeio.c (unicode_to_mb): Likewise.
18509         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18510         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18511         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18512         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18513         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18514         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18515         * lib/unistr/u8-stpncpy.c: Likewise.
18516         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18517         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18518         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18519         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18520         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18521         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18522         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18523         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18524         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18525         Likewise.
18526         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18527         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18528         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18529         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18530         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18531         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18532         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18533         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18534         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18535         * tests/test-striconveha.c (main): Likewise.
18536         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18537         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18538         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18539         * doc/posix-functions/getline.texi: Likewise.
18540         Reported by Mike Frysinger <vapier@gentoo.org>.
18541
18542 2010-11-20  Bruno Haible  <bruno@clisp.org>
18543
18544         nproc: Fix condition.
18545         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18546         HAVE_PTHREAD_AFFINITY_NP.
18547
18548 2010-11-20  Bruno Haible  <bruno@clisp.org>
18549
18550         Fix a comment.
18551         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18552
18553 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18554
18555         ftoastr: don't assume snprintf
18556         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18557         Implement a subset of snprintf here, by using sprintf safely.
18558         * modules/ftoastr (Depends-on): Remove snprintf.
18559
18560 2010-11-19  Jim Meyering  <meyering@redhat.com>
18561
18562         test-rename.h: fix compilation failure
18563         * tests/test-rename.h (test_rename): Add omitted "}".
18564
18565 2010-11-17  Jim Meyering  <meyering@redhat.com>
18566
18567         maint.mk: add a URL discussing the no-@acronym policy
18568         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18569
18570 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18571
18572         ftoastr: depend on snprintf, improve comments
18573         * lib/ftoastr.c: Also mention Loitsch's draft.
18574         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18575         needed in the current implementation, but it might simplify
18576         speeding up the code later.
18577         * modules/ftoastr: Depend on snprintf; this improves portability.
18578         Suggested by Bruno Haible in the same email.
18579
18580         ftoastr: port to hosts lacking strtof and strtold
18581         Problem reported by Bruno Haible in
18582         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18583         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18584         environment and strtold (and presumably strtof) are not available.
18585         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18586         (configure.ac): Require gl_C99_STRTOLD.
18587
18588 2010-11-18  Bruno Haible  <bruno@clisp.org>
18589
18590         c-strtold: Avoid link error on AIX 7.
18591         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18592         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18593         (gl_C_STRTOLD): Test whether strtold_l exists.
18594         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18595
18596 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18597
18598         intprops: new macro INT_BITS_STRLEN_BOUND
18599         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18600         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18601         not exposed.  Also, it uses a slightly tighter bound than before;
18602         though this makes no practical difference, we might as well be as
18603         tight as we easily can.
18604
18605         ftoastr: new module, for lossless conversion of floats to short strings
18606         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18607         * modules/ftoastr: New files.
18608
18609 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18610
18611         bootstrap: port to Solaris sed
18612         * build-aux/bootstrap (get_version): Port to Solaris sed.
18613         See Ralf Wildenhues's note in
18614         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18615
18616 2010-11-14  Jim Meyering  <meyering@redhat.com>
18617
18618         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18619         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18620         and move definition closer to sole use.
18621
18622 2010-11-13  Jim Meyering  <meyering@redhat.com>
18623
18624         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18625         Now we require at least autoconf-2.59, which means the work-around
18626         is no longer needed.
18627         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18628         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18629         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18630         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18631         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18632
18633 2010-11-13  Bruno Haible  <bruno@clisp.org>
18634
18635         rename, renameat: Avoid test failures at NFS mounted locations.
18636         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18637         functions.
18638         (test_rename): Use assert_nonexistent.
18639         * tests/test-rename.c: Include <dirent.h>.
18640         * tests/test-renameat.c: Likewise.
18641         Reported by Gary V. Vaughan <gary@gnu.org>.
18642
18643         rename, renameat: Document Linux bug with NFS
18644         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18645         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18646         * doc/posix-functions/renameat.texi: Likewise.
18647         Suggested by Eric Blake.
18648
18649 2010-11-13  Bruno Haible  <bruno@clisp.org>
18650
18651         rename test: Add comments.
18652         * tests/test-rename.h (test_rename): Add structure and comments.
18653
18654 2010-11-13  Eric Blake  <eblake@redhat.com>
18655
18656         maintainer-makefile: cover a few more files
18657         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18658         scripts generated within C files, for libvirt.
18659
18660 2010-11-13  Bruno Haible  <bruno@clisp.org>
18661
18662         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18663         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18664         character, return the number of bytes that belong together, not always
18665         1.
18666         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18667         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18668         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18669         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18670         number of bytes of an invalid character.
18671         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18672         (main): Invoke it.
18673         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18674         results.
18675         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18676         malformed byte sequences.
18677         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18678         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18679         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18680         Reported by Ben Pfaff and Paolo Bonzini.
18681
18682 2010-11-13  Bruno Haible  <bruno@clisp.org>
18683
18684         openat: Work around glibc bug with fchownat() and empty file names.
18685         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18686         (gl_FUNC_FCHOWNAT): Invoke it.
18687         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18688         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18689         Reported by Gary V. Vaughan <gary@gnu.org>.
18690
18691 2010-11-13  Bruno Haible  <bruno@clisp.org>
18692
18693         openat: Ensure autoconf macro ordering.
18694         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18695         gl_USE_SYSTEM_EXTENSIONS.
18696         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18697
18698 2010-11-13  Bruno Haible  <bruno@clisp.org>
18699
18700         Update comments.
18701         * lib/unistr/u8-check.c: Update file name in comments.
18702         * lib/unistr/u8-mblen.c: Likewise.
18703         * lib/unistr/u8-prev.c: Likewise.
18704         * lib/unistr/u8-strmblen.c: Likewise.
18705         * lib/unistr/u8-strmbtouc.c: Likewise.
18706
18707 2010-11-13  Jim Meyering  <meyering@redhat.com>
18708
18709         tests: avoid test failure on Solaris 10 due to lack of PATH export
18710         * tests/test-update-copyright.sh: Don't forget to export PATH.
18711
18712         init.sh: ensure that IFS is defined, just in case...
18713         * tests/init.sh (setup_): Ensure that IFS is defined,
18714         so that saving and restoring it works as expected.  This
18715         appears to be useful at least for an old version of dash
18716         from a long time ago (RH 6).  See here for details:
18717         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18718
18719         maint.mk: tighten "test a == b" check
18720         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18721         test to files that contain something like #!/bin/sh.
18722         Without this, coreutils would get two false positives in
18723         the comments of C source files.
18724
18725 2010-11-12  Eric Blake  <eblake@redhat.com>
18726
18727         bootstrap: fix typo in previous attempt
18728         * build-aux/bootstrap (buildreq): Correct the grouping.
18729         Reported by Paul Eggert.
18730
18731         maintainer-makefile: prohibit test x == x
18732         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18733         Based on a report by Matthias Bolte.
18734
18735         bootstrap: allow FreeBSD gzip
18736         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18737         which has no '.' and goes to stderr.
18738         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18739         Reported by Matthias Bolte.
18740
18741         maintainer-makefile: check for i18n setup
18742         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18743         will likely work.
18744
18745 2010-11-12  Bruno Haible  <bruno@clisp.org>
18746
18747         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18748         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18749         * lib/nanosleep.c (nanosleep): Likewise.
18750
18751 2010-11-11  Bruno Haible  <bruno@clisp.org>
18752
18753         fcntl-h: Fix for use of C++ on glibc systems.
18754         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18755         also on glibc systems in C++ mode.
18756         Reported by Gary V. Vaughan <gary@gnu.org>.
18757
18758 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18759
18760         mknod: avoid false failure with dash
18761         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18762
18763 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18764
18765         unlink: Fix "is it should" typo in diagnostic.
18766         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18767         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18768
18769 2010-11-11  Bruno Haible  <bruno@clisp.org>
18770
18771         Tests for module 'strerror_r-posix'.
18772         * modules/strerror_r-posix-tests: New file.
18773         * tests/test-strerror_r.c: New file.
18774         * tests/test-string-c++.cc: Check the signature of strerror_r.
18775
18776         New module 'strerror_r-posix'.
18777         * lib/string.in.h (strerror_r): New declaration.
18778         * lib/strerror_r.c: New file.
18779         * m4/strerror_r.m4: New file.
18780         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18781         of strerror_r.
18782         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18783         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18784         * modules/strerror_r-posix: New file.
18785         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18786         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18787         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18788         portability problems.
18789
18790 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18791
18792         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18793         line is also considered for output. Quoted function name in shell
18794         command, so temporary files for functions like MyClass::operator()
18795         are removed correctly without errors.
18796
18797 2010-11-09  Bruno Haible  <bruno@clisp.org>
18798
18799         * doc/posix-functions/strerror.texi: List more failing platforms.
18800
18801         * doc/posix-functions/strerror.texi: Add a comment.
18802
18803 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18804
18805         fdopendir: fix bug on MacOS X when low on file descriptors
18806
18807         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18808         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18809         All callers changed.
18810         (fdopendir): Invoke save_cwd at the top level, not after using
18811         multiple dup() calls to use up file descriptors.  Then retry
18812         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18813         less than the maximum number of open file descriptors, because
18814         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18815         on Mac OS X 10.6.4 for tar 1.24
18816         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18817         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18818         and for tar 1.25
18819         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18820
18821 2010-11-07  Bruno Haible  <bruno@clisp.org>
18822
18823         vasnprintf: Support I flag on glibc systems.
18824         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18825         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18826         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18827         snprintf function.
18828         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18829         glibc systems.
18830         * tests/test-vasnprintf-posix3.c: New file.
18831         * modules/vasnprintf-posix-tests (Files): Add it.
18832         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18833
18834 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18835
18836         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18837         * MODULES.html.sh: For compiler warnings, use name
18838         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18839
18840 2010-11-05  Eric Blake  <eblake@redhat.com>
18841
18842         ceil, floor: avoid spurious failure with icc
18843         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18844         [denormals-as-zero] when optimizing without -mieee-fp option.
18845         * tests/test-floorf2.c (floorf_reference): Likewise.
18846         * tests/test-ceilf1.c (dummy): New function.
18847         (main): Use it to outsmart icc's optimization.
18848         * tests/test-floorf1.c (dummy, main): Likewise.
18849
18850         tests: require working signbit
18851         * modules/ceilf-tests (Depends-on): Add signbit.
18852         * modules/ceill-tests (Depends-on): Likewise.
18853         * modules/floorf-tests (Depends-on): Likewise.
18854         * modules/floorl-tests (Depends-on): Likewise.
18855         * modules/round-tests (Depends-on): Likewise.
18856         * modules/roundf-tests (Depends-on): Likewise.
18857         * modules/roundl-tests (Depends-on): Likewise.
18858         * modules/trunc-tests (Depends-on): Likewise.
18859         * modules/truncf-tests (Depends-on): Likewise.
18860         * modules/truncl-tests (Depends-on): Likewise.
18861
18862         strtod: work around icc bug
18863         * lib/strtod.c (minus_zero): Define to working value.
18864         (strtod): Use it to avoid icc bug.
18865
18866         copysign: enhance tests
18867         * modules/copysign-tests (Files): Add minus-zero.h.
18868         * tests/test-copysign.c (main): Also test zeros.
18869
18870 2010-11-04  Eric Blake  <eblake@redhat.com>
18871
18872         ceil, floor, round, trunc: enhance tests of -0
18873         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18874         * tests/test-ceill.c (main): Likewise.
18875         * tests/test-floorf1.c (main): Likewise.
18876         * tests/test-floorl.c (main): Likewise.
18877         * tests/test-round1.c (main): Likewise.
18878         * tests/test-roundf1.c (main): Likewise.
18879         * tests/test-roundl.c (main): Likewise.
18880         * tests/test-trunc1.c (main): Likewise.
18881         * tests/test-truncf1.c (main): Likewise.
18882         * tests/test-truncl.c (main): Likewise.
18883
18884 2010-11-04  Eric Blake  <eblake@redhat.com>
18885
18886         frexp, tests: work around ICC bug with -zero
18887         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18888         works with more compilers.
18889         * tests/minus-zero.h: New file.
18890         * modules/ceilf-tests (Files): Include it.
18891         * modules/ceill-tests (Files): Likewise.
18892         * modules/floorf-tests (Files): Likewise.
18893         * modules/floorl-tests (Files): Likewise.
18894         * modules/frexp-nolibm-tests (Files): Likewise.
18895         * modules/frexp-tests (Files): Likewise.
18896         * modules/frexpl-nolibm-tests (Files): Likewise.
18897         * modules/frexpl-tests (Files): Likewise.
18898         * modules/isnan-tests (Files): Likewise.
18899         * modules/isnand-nolibm-tests (Files): Likewise.
18900         * modules/isnand-tests (Files): Likewise.
18901         * modules/isnanf-nolibm-tests (Files): Likewise.
18902         * modules/isnanf-tests (Files): Likewise.
18903         * modules/isnanl-nolibm-tests (Files): Likewise.
18904         * modules/isnanl-tests (Files): Likewise.
18905         * modules/round-tests (Files): Likewise.
18906         * modules/roundf-tests (Files): Likewise.
18907         * modules/roundl-tests (Files): Likewise.
18908         * modules/ldexpl-tests (Files): Likewise.
18909         * modules/signbit-tests (Files): Likewise.
18910         * modules/snprintf-posix-tests (Files): Likewise.
18911         * modules/sprintf-posix-tests (Files): Likewise.
18912         * modules/strtod-tests (Files): Likewise.
18913         * modules/trunc-tests (Files): Likewise.
18914         * modules/truncf-tests (Files): Likewise.
18915         * modules/truncl-tests (Files): Likewise.
18916         * modules/vsnprintf-posix-tests (Files): Likewise.
18917         * modules/vsprintf-posix-tests (Files): Likewise.
18918         * modules/vasnprintf-posix-tests (Files): Likewise.
18919         * modules/vasprintf-posix-tests (Files): Likewise.
18920         * tests/test-ceilf1.c (main): Use it.
18921         * tests/test-ceill.c (main): Likewise.
18922         * tests/test-floorf1.c (main): Likewise.
18923         * tests/test-floorl.c (main): Likewise.
18924         * tests/test-frexp.c (main): Likewise.
18925         * tests/test-frexpl.c (main): Likewise.
18926         * tests/test-isnan.c (main): Likewise.
18927         * tests/test-isnand.h (main): Likewise.
18928         * tests/test-isnanf.h (main): Likewise.
18929         * tests/test-isnanl.h (main): Likewise.
18930         * tests/test-ldexpl.c (main): Likewise.
18931         * tests/test-round.c (main): Likewise.
18932         * tests/test-roundf.c (main): Likewise.
18933         * tests/test-roundl.c (main): Likewise.
18934         * tests/test-signbit.c (test_signbitf, test_signbitd)
18935         (test_signbitl): Likewise.
18936         * tests/test-snprintf-posix.h (test_function): Likewise.
18937         * tests/test-sprintf-posix.h (test_function): Likewise.
18938         * tests/test-strtod.c (main): Likewise.
18939         * tests/test-trunc1.c (main): Likewise.
18940         * tests/test-truncf1.c (main): Likewise.
18941         * tests/test-truncl.c (main): Likewise.
18942
18943         isnanl: work around icc bug
18944         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18945
18946 2010-11-03  Eric Blake  <eblake@redhat.com>
18947
18948         tests: fix compiler warnings
18949         * tests/test-getopt.h (test_getopt): Fix condition.
18950         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18951         * tests/test-pipe2.c (main): Likewise.
18952         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18953
18954         utimens: fix broken m4 test
18955         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18956
18957 2010-10-28  Bruno Haible  <bruno@clisp.org>
18958
18959         posix_spawn*, getdtablesize: Relax license.
18960         * modules/posix_spawn (License): Change to LGPLv2+.
18961         * modules/posix_spawnp (License): Likewise.
18962         * modules/posix_spawn-internal (License): Likewise.
18963         * modules/posix_spawnattr_init (License): Likewise.
18964         * modules/posix_spawnattr_getflags (License): Likewise.
18965         * modules/posix_spawnattr_setflags (License): Likewise.
18966         * modules/posix_spawnattr_getpgroup (License): Likewise.
18967         * modules/posix_spawnattr_setpgroup (License): Likewise.
18968         * modules/posix_spawnattr_getschedparam (License): Likewise.
18969         * modules/posix_spawnattr_setschedparam (License): Likewise.
18970         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18971         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18972         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18973         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18974         * modules/posix_spawnattr_getsigmask (License): Likewise.
18975         * modules/posix_spawnattr_setsigmask (License): Likewise.
18976         * modules/posix_spawnattr_destroy (License): Likewise.
18977         * modules/posix_spawn_file_actions_init (License): Likewise.
18978         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18979         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18980         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18981         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18982         * modules/getdtablesize (License): Likewise.
18983         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18984
18985 2010-10-26  Bruno Haible  <bruno@clisp.org>
18986
18987         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18988         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18989         Cygwin and mingw.
18990         Suggested by Eric Blake.
18991
18992 2010-10-26  Bruno Haible  <bruno@clisp.org>
18993
18994         stdio: Work around compilation error due to renameat() on Solaris 10.
18995         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18996         * lib/renameat.c: Don't include <unistd.h> here.
18997         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18998         Reported by Paul Eggert and Eric Blake.
18999
19000 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19001
19002         renameat: port to Solaris 10, which declares renameat in unistd.h
19003
19004         * lib/renameat.c: Include unistd.h before stdio.h, because
19005         Solaris 10 declares renameat in unistd.h.  Problem encountered
19006         when building GNU tar 1.24 on Solaris 10.
19007
19008 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19009
19010         fdopendir: fix C89 compilation
19011         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19012         compilers.
19013
19014 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19015
19016         inttostr: simplify by removing unnecessary redundancy
19017         * lib/anytostr.c: Don't include verify.h.
19018         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19019         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19020         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19021         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19022         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19023         Likewise.
19024         * modules/inttostr (Depends-on): Remove 'verify'.
19025
19026 2010-10-23  Bruno Haible  <bruno@clisp.org>
19027
19028         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19029         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19030         Reported by Eric Blake.
19031
19032 2010-10-23  Bruno Haible  <bruno@clisp.org>
19033
19034         Tests: Fix LOCALE_JA on MirBSD 10.
19035         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19036         to an UTF-8 locale.
19037         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19038         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19039         Reported by Eric Blake.
19040
19041 2010-10-21  Bruno Haible  <bruno@clisp.org>
19042
19043         nl_langinfo test: Avoid test failure on NetBSD 5.
19044         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19045         Reported by Eric Blake.
19046
19047 2010-10-21  Eric Blake  <eblake@redhat.com>
19048
19049         c-stack: work around libsigsegv 2.8 bug
19050         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19051         overflow on at least PowerPC64.
19052
19053 2010-10-17  Bruno Haible  <bruno@clisp.org>
19054
19055         userspec: Drop redundant file.
19056         * modules/userspec (Files): Remove lib/inttostr.h.
19057
19058 2010-10-17  Bruno Haible  <bruno@clisp.org>
19059
19060         nl_langinfo tests: Silence some warnings.
19061         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19062         Reported by Jim Meyering.
19063
19064 2010-10-17  Bruno Haible  <bruno@clisp.org>
19065
19066         Make use of GCC's attribute __alloc_size__.
19067         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19068         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19069         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19070         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19071         __alloc_size__.
19072         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19073         Suggested by Jim Meyering.
19074
19075 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19076
19077         bootstrap: anchor .gitignore entries.
19078         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19079         with...
19080         (insert_vc_ignore): ... this new function, which prepends `/' to
19081         all .gitignore entries before passing them to
19082         insert_sorted_if_absent.
19083
19084 2010-10-16  Bruno Haible  <bruno@clisp.org>
19085
19086         nextafter: Fix configure check.
19087         * modules/nextafter (configure.ac): Correct expected prototype.
19088
19089 2010-10-16  Bruno Haible  <bruno@clisp.org>
19090
19091         termios: Update documentation.
19092         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19093
19094 2010-10-16  Bruno Haible  <bruno@clisp.org>
19095
19096         tests: Make them compile with TinyCC.
19097         * tests/test-strstr.c (main): Remove parentheses around array
19098         initializer.
19099
19100 2010-10-15  Eric Blake  <eblake@redhat.com>
19101
19102         ignore-value: make header idempotent
19103         * lib/ignore-value.h: Add double-inclusion guards.
19104         Reported by Stefan Berger.
19105
19106 2010-10-15  Jim Meyering  <meyering@redhat.com>
19107
19108         GNUmakefile: handle "stable" target, not "major"
19109         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19110         lists in maint.mk and announce-gen.  Without this, "make stable"
19111         would fail to ensure that $(VERSION) is up to date.
19112
19113 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19114
19115         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19116         & co.
19117
19118 2010-10-14  Bruno Haible  <bruno@clisp.org>
19119
19120         vasnprintf: Don't set errno to 0.
19121         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19122         block that sets it to 0.
19123         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19124
19125 2010-10-14  Bruno Haible  <bruno@clisp.org>
19126
19127         socketlib: Fix.
19128         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19129         gl_PREREQ_SYS_H_WINSOCK2.
19130         Reported by Ian Beckwith <ianb@erislabs.net>.
19131
19132 2010-10-13  Jim Meyering  <meyering@redhat.com>
19133
19134         test-select-stdin.c: avoid warn_unused_result warnings
19135         * tests/test-select-stdin.c: Include "macros.h".
19136         ASSERT that read and fflush succeed.
19137
19138 2010-10-13  Jim Meyering  <meyering@redhat.com>
19139
19140         git-version-gen: do require git-VC'd files in cwd
19141         * build-aux/git-version-gen: Reject a git version string
19142         if there are no commits associated with the current directory.
19143         This avoids an unlikely false-positive (unrelated dir whose parent
19144         repository also contains a tag matching v*), as pointed out
19145         by Giuseppe Scrivano in
19146         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19147
19148 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19149
19150         argv-iter: omit nonconforming declaration
19151         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19152         enum arg_iter_err declaration, which doesn't conform to C99.
19153         Solaris 10 cc warns about this.
19154
19155 2010-10-13  Eric Blake  <eblake@redhat.com>
19156
19157         termios: fix compilation on mingw
19158         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19159         (gl_TERMIOS_H): Adjust it on mingw.
19160         * modules/termios (Makefile.am): Substitute new key.
19161         * lib/termios.in.h (includes): Make include_next conditional.
19162         * doc/posix-headers/termios.texi (termios.h): Update
19163         documentation.
19164         Reported by Daniel P. Berrange.
19165
19166 2010-10-13  Jim Meyering  <meyering@redhat.com>
19167
19168         git-version-gen: don't require that .git/ be in the current dir
19169         * build-aux/git-version-gen: Adjust this script so that it works
19170         when run from any working directory beneath the top-level .git/-
19171         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19172         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19173
19174         test-select: avoid warn_unused_result warnings
19175         * tests/test-select.c: Include "macros.h".
19176         ASSERT that each call to read, write, and pipe succeeds.
19177         While not technically required, also check each "close".
19178         * modules/select-tests (Files): Add tests/macros.h.
19179
19180         test-symlinkat: remove declaration of unused local
19181         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19182
19183         test-inttostr: avoid shadowing warnings
19184         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19185         and use malloc rather than the stack for the same reason as
19186         mentioned in the comment justifying the other allocation.
19187
19188 2010-10-11  Bruno Haible  <bruno@clisp.org>
19189
19190         stdlib: Allow multiple gnulib generated replacements to coexist.
19191         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19192         Reported by Sam Steingold <sds@gnu.org>.
19193
19194 2010-10-11  Jim Meyering  <meyering@redhat.com>
19195
19196         fix a documentation typo
19197         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19198
19199 2010-10-11  Eric Blake  <eblake@redhat.com>
19200
19201         futimens: work around Solaris 11 bug
19202         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19203         * tests/test-futimens.h (test_futimens): Enhance, rather than
19204         weaken test.
19205         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19206
19207 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19208
19209         Indentation.
19210         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19211         higher-level operators more to the left.
19212
19213 2010-10-11  Jim Meyering  <meyering@redhat.com>
19214
19215         test-futimens: avoid unwarranted test failure on Solaris 5.11
19216         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19217         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19218         because it tries to dereference the NULL name argument.
19219
19220 2010-10-11  Bruno Haible  <bruno@clisp.org>
19221
19222         Indentation.
19223         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19224         indentation.
19225
19226 2010-10-11  Jim Meyering  <meyering@redhat.com>
19227
19228         spawn.in.h: make indentation consistent with parentheses
19229         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19230         Make indentation consistent with parentheses.
19231
19232 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19233
19234         Fix mismatched parens in previous commit
19235         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19236         parens.
19237
19238 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19239
19240         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19241
19242         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19243         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19244         * lib/malloca.c: Include "verify.h".
19245         (verify1): Remove, replacing with a verify call.
19246         * lib/relocwrapper.c (verify1): Likewise.
19247         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19248         Likewise.
19249         * modules/malloca (Depends-on): Add 'verify'.
19250         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19251         * modules/vasnprintf (Depends-on): Add 'verify'.
19252         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19253         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19254         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19255         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19256         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19257         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19258         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19259
19260         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19261
19262         Formerly the style was sometimes 2*X - 1, because the C standard
19263         was wrongly thought to disallow ?: in integral constant expressions.
19264         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19265         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19266         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19267         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19268         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19269         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19270         verify that time_t cannot be floating.
19271
19272 2010-10-08  Eric Blake  <eblake@redhat.com>
19273
19274         time: enforce recent POSIX ruling that time_t is integral
19275         * lib/time.in.h (__time_t_must_be_integral): Detect any
19276         problematic systems, allowing the rest of gnulib to assume POSIX.
19277
19278 2010-10-08  Jim Meyering  <meyering@redhat.com>
19279
19280         fdopendir: fix a bug on systems lacking openat and /proc support
19281         OpenBSD 4.7 is one such system.  The most noticeable effect was
19282         failure of any application making nontrivial use of fts: rm, du,
19283         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19284           ./rm: traversal failed: `a': Bad file descriptor
19285         Debugging that, you see that even though FD 6 was closed just
19286         prior to the opendir call in fd_clone_opendir, its resulting
19287         dir->dd_fd was 8, rather than the expected value of 6:
19288
19289         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19290         93                close (fd);
19291         (gdb) n
19292         94                dir = fd_clone_opendir (dupfd);
19293         (gdb) n
19294         95                saved_errno = errno;
19295         (gdb) p dir->dd_fd
19296         $11 = 8
19297
19298         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19299         The problem is that on OpenBSD, fd_clone_opendir has to resort
19300         to using the old-style save/restore CWD mechanism, due to its
19301         lack of openat/proc support, and *that* would steal the FD (6)
19302         that opendir was supposed to use.
19303
19304         The fix is to squirrel away the desired FD so that save_cwd uses a
19305         different one, and then free the dest FD right before calling opendir.
19306         That guarantees opendir will use the required file descriptor.
19307
19308         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19309
19310 2010-10-08  Bruno Haible  <bruno@clisp.org>
19311
19312         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19313         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19314
19315 2010-10-08  Bruno Haible  <bruno@clisp.org>
19316
19317         nanosleep: Make replacement POSIX compliant.
19318         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19319         is out of range.
19320         Reported by Jim Meyering.
19321
19322 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19323
19324         bootstrap: add hook for altering gnulib.mk, for Bison
19325         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19326         the Bison bootstrapping process can rewrite file names and variables
19327         in this file before later parts of 'bootstrap' use the file.
19328         Bison wants to include lib/gnulib.mk from the top-level makefile,
19329         so it needs the file names in this file to be relative to the top
19330         level, not relative to lib; plus it needs variable names to be
19331         rewritten.
19332         (slurp): Use the new function.
19333
19334         bootstrap: reformat for readability
19335         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19336
19337 2010-10-08  Eric Blake  <eblake@redhat.com>
19338
19339         docs: update cygwin progress
19340         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19341         1.7.7.
19342         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19343         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19344         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19345         * doc/posix-functions/carg.texi (carg): Likewise.
19346         * doc/posix-functions/cargf.texi (cargf): Likewise.
19347         * doc/posix-functions/casin.texi (casin): Likewise.
19348         * doc/posix-functions/casinf.texi (casinf): Likewise.
19349         * doc/posix-functions/casinh.texi (casinh): Likewise.
19350         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19351         * doc/posix-functions/catan.texi (catan): Likewise.
19352         * doc/posix-functions/catanf.texi (catanf): Likewise.
19353         * doc/posix-functions/catanh.texi (catanh): Likewise.
19354         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19355         * doc/posix-functions/ccos.texi (ccos): Likewise.
19356         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19357         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19358         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19359         * doc/posix-functions/cexp.texi (cexp): Likewise.
19360         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19361         * doc/posix-functions/cimag.texi (cimag): Likewise.
19362         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19363         * doc/posix-functions/clog.texi (clog): Likewise.
19364         * doc/posix-functions/clogf.texi (clogf): Likewise.
19365         * doc/posix-functions/conj.texi (conj): Likewise.
19366         * doc/posix-functions/conjf.texi (conjf): Likewise.
19367         * doc/posix-functions/cpow.texi (cpow): Likewise.
19368         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19369         * doc/posix-functions/cproj.texi (cproj): Likewise.
19370         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19371         * doc/posix-functions/creal.texi (creal): Likewise.
19372         * doc/posix-functions/crealf.texi (crealf): Likewise.
19373         * doc/posix-functions/csin.texi (csin): Likewise.
19374         * doc/posix-functions/csinf.texi (csinf): Likewise.
19375         * doc/posix-functions/csinh.texi (csinh): Likewise.
19376         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19377         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19378         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19379         * doc/posix-functions/ctan.texi (ctan): Likewise.
19380         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19381         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19382         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19383         * doc/posix-headers/complex.texi (complex.h): Likewise.
19384
19385 2010-10-07  Jim Meyering  <meyering@redhat.com>
19386
19387         parse-datetime: avoid compilation failure on OpenBSD 4.7
19388         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19389         This works around a compilation failure on OpenBSD 4.7:
19390         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19391
19392 2010-10-07  Eric Blake  <eblake@redhat.com>
19393
19394         docs: update cygwin progress
19395         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19396         1.7.6.
19397         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19398         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19399         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19400         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19401         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19402         Likewise.
19403         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19404         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19405         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19406         Likewise.
19407         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19408         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19409         Likewise.
19410         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19411         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19412         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19413         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19414         Likewise.
19415         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19416         Likewise.
19417         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19418
19419         docs: update parse-datetime history
19420         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19421         documentation of this function's history and alternatives.
19422
19423         cygwin: use more robust version check
19424         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19425         exclude an eventual cygwin 1.9.1.
19426         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19427         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19428         (gl_FUNC_STRCASESTR): Likewise.
19429         Reported by Bruno Haible.
19430
19431 2010-10-06  Bruno Haible  <bruno@clisp.org>
19432
19433         string, sys_select: Avoid #including large headers unless necessary.
19434         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19435         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19436         OSF/1, BeOS, Haiku.
19437         Reported by Jim Meyering.
19438
19439 2010-10-05  Eric Blake  <eblake@redhat.com>
19440
19441         memmem, strstr, strcasestr: fix bug with long periodic needle
19442         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19443         periodic needle having false positive.
19444         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19445         and cygwin 1.7.7.
19446         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19447         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19448         (gl_FUNC_STRCASESTR): Likewise.
19449         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19450         * tests/test-memmem.c (main): Expose the bug.
19451         * tests/test-strcasestr.c (main): Likewise.
19452         * tests/test-strstr.c (main): Likewise.
19453         * tests/test-c-strcasestr.c (main): Likewise.
19454         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19455         * doc/posix-functions/strstr.texi (strstr): Likewise.
19456         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19457         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19458
19459 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19460
19461         parse-datetime: do some more renaming
19462         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19463         parse_datetime, not get_date.  Mention the renaming.
19464         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19465         in comments.
19466         * m4/bison.m4: Likewise.
19467
19468 2010-10-05  Eric Blake  <eblake@redhat.com>
19469
19470         parse-datetime: better name than get_date
19471         * NEWS: Reword the deprecation notice.
19472         * modules/get_date: Rename to modules/parse-datetime.
19473         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19474         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19475         * lib/get_date.y: Rename to lib/parse-datetime.y.
19476         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19477         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19478         * doc/getdate.texi: Provide fallback wrapper.
19479         * lib/getdate.h: Move guts, and wrap...
19480         * lib/parse-datetime.h: ...new file.
19481         * lib/parse-datetime.y (get_date): Rename...
19482         (parse_datetime): ...to this.
19483         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19484         (gl_PARSE_DATETIME): ...to this.
19485         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19486         documentation.
19487         * modules/getdate (Files): Provide fallback docs and header.
19488         (Notice, Depends-on): Update references.
19489         * tests/test-parse-datetime.c: Likewise.
19490         * DEPENDENCIES: Likewise.
19491         * MODULES.html.sh (Date and time <time.h>): Likewise.
19492         * doc/parse-datetime.texi (Date input formats)
19493         (Authors of parse_datetime): Likewise.
19494         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19495         (Include): Likewise.
19496         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19497         * gnulib-tool: Likewise.
19498         * m4/bison.m4 (gl_BISON): Likewise.
19499         Suggested by Bruno Haible.
19500
19501 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19502
19503         more ports to Solaris tr, which needs [] around ranges
19504         * gnulib-tool: Solaris tr needs [] around ranges.
19505         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19506         * tests/test-pipe-filter-gi1.c (main): Likewise.
19507         * tests/test-pipe-filter-ii1.c (main): Likewise.
19508
19509 2010-10-05  Eric Blake  <eblake@redhat.com>
19510
19511         bootstrap: fix Solaris regression
19512         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19513         around ranges.
19514         Reported by Pádraig Brady.
19515
19516         bootstrap: work with pkg-config
19517         * build-aux/bootstrap (check_versions): Also transliterate - in
19518         prerequisite name.
19519         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19520         prerequisites that were already found, to avoid confusion.
19521         Reported by Justin Clift.
19522
19523         faccessat: remove unused wrappers
19524         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19525         presence of these wrappers dragged in -lgen on Solaris.
19526         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19527
19528 2010-10-05  Jim Meyering  <meyering@redhat.com>
19529
19530         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19531         * Makefile (sc_pragma_columns): New syntax-check rule.
19532
19533 2010-10-04  Bruno Haible  <bruno@clisp.org>
19534
19535         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19536         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19537         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19538         Reported by Bruce Korb and Eric Blake.
19539
19540 2010-10-04  Bruno Haible  <bruno@clisp.org>
19541
19542         threadlib: Make option --with-libpth-prefix work.
19543         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19544         use $LIBPTH, not just -lpth.
19545
19546 2010-10-04  Bruno Haible  <bruno@clisp.org>
19547
19548         Avoid line length limitation from HP NonStop system header files.
19549         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19550         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19551         * lib/ctype.in.h: Likewise.
19552         * lib/dirent.in.h: Likewise.
19553         * lib/errno.in.h: Likewise.
19554         * lib/fcntl.in.h: Likewise.
19555         * lib/float.in.h: Likewise.
19556         * lib/getopt.in.h: Likewise.
19557         * lib/iconv.in.h: Likewise.
19558         * lib/inttypes.in.h: Likewise.
19559         * lib/langinfo.in.h: Likewise.
19560         * lib/locale.in.h: Likewise.
19561         * lib/math.in.h: Likewise.
19562         * lib/netdb.in.h: Likewise.
19563         * lib/netinet_in.in.h: Likewise.
19564         * lib/poll.in.h: Likewise.
19565         * lib/pthread.in.h: Likewise.
19566         * lib/pty.in.h: Likewise.
19567         * lib/sched.in.h: Likewise.
19568         * lib/se-selinux.in.h: Likewise.
19569         * lib/search.in.h: Likewise.
19570         * lib/signal.in.h: Likewise.
19571         * lib/spawn.in.h: Likewise.
19572         * lib/stdarg.in.h: Likewise.
19573         * lib/stddef.in.h: Likewise.
19574         * lib/stdint.in.h: Likewise.
19575         * lib/stdio.in.h: Likewise.
19576         * lib/stdlib.in.h: Likewise.
19577         * lib/string.in.h: Likewise.
19578         * lib/strings.in.h: Likewise.
19579         * lib/sys_file.in.h: Likewise.
19580         * lib/sys_ioctl.in.h: Likewise.
19581         * lib/sys_select.in.h: Likewise.
19582         * lib/sys_socket.in.h: Likewise.
19583         * lib/sys_stat.in.h: Likewise.
19584         * lib/sys_time.in.h: Likewise.
19585         * lib/sys_times.in.h: Likewise.
19586         * lib/sys_utsname.in.h: Likewise.
19587         * lib/sys_wait.in.h: Likewise.
19588         * lib/sysexits.in.h: Likewise.
19589         * lib/termios.in.h: Likewise.
19590         * lib/time.in.h: Likewise.
19591         * lib/unistd.in.h: Likewise.
19592         * lib/wchar.in.h: Likewise.
19593         * lib/wctype.in.h: Likewise.
19594         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19595         * modules/ctype (Makefile.am): Likewise.
19596         * modules/dirent (Makefile.am): Likewise.
19597         * modules/errno (Makefile.am): Likewise.
19598         * modules/fcntl-h (Makefile.am): Likewise.
19599         * modules/float (Makefile.am): Likewise.
19600         * modules/getopt-posix (Makefile.am): Likewise.
19601         * modules/iconv-h (Makefile.am): Likewise.
19602         * modules/inttypes (Makefile.am): Likewise.
19603         * modules/langinfo (Makefile.am): Likewise.
19604         * modules/locale (Makefile.am): Likewise.
19605         * modules/math (Makefile.am): Likewise.
19606         * modules/netdb (Makefile.am): Likewise.
19607         * modules/netinet_in (Makefile.am): Likewise.
19608         * modules/poll-h (Makefile.am): Likewise.
19609         * modules/pthread (Makefile.am): Likewise.
19610         * modules/pty (Makefile.am): Likewise.
19611         * modules/sched (Makefile.am): Likewise.
19612         * modules/search (Makefile.am): Likewise.
19613         * modules/selinux-h (Makefile.am): Likewise.
19614         * modules/signal (Makefile.am): Likewise.
19615         * modules/spawn (Makefile.am): Likewise.
19616         * modules/stdarg (Makefile.am): Likewise.
19617         * modules/stddef (Makefile.am): Likewise.
19618         * modules/stdint (Makefile.am): Likewise.
19619         * modules/stdio (Makefile.am): Likewise.
19620         * modules/stdlib (Makefile.am): Likewise.
19621         * modules/string (Makefile.am): Likewise.
19622         * modules/strings (Makefile.am): Likewise.
19623         * modules/sys_file (Makefile.am): Likewise.
19624         * modules/sys_ioctl (Makefile.am): Likewise.
19625         * modules/sys_select (Makefile.am): Likewise.
19626         * modules/sys_socket (Makefile.am): Likewise.
19627         * modules/sys_stat (Makefile.am): Likewise.
19628         * modules/sys_time (Makefile.am): Likewise.
19629         * modules/sys_times (Makefile.am): Likewise.
19630         * modules/sys_utsname (Makefile.am): Likewise.
19631         * modules/sys_wait (Makefile.am): Likewise.
19632         * modules/sysexits (Makefile.am): Likewise.
19633         * modules/termios (Makefile.am): Likewise.
19634         * modules/time (Makefile.am): Likewise.
19635         * modules/unistd (Makefile.am): Likewise.
19636         * modules/wchar (Makefile.am): Likewise.
19637         * modules/wctype (Makefile.am): Likewise.
19638
19639 2010-10-04  Bruno Haible  <bruno@clisp.org>
19640
19641         read-file tests: Avoid a test failure on NonStop Kernel.
19642         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19643         a regular file.
19644         Reported by Joachim Schmitz <schmitz@hp.com>.
19645
19646 2010-10-03  Bruno Haible  <bruno@clisp.org>
19647
19648         gnulib-tool: Fixes for --create-testdir with --libtool.
19649         * gnulib-tool (func_get_automake_snippet): Don't augment
19650         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19651         an executable.
19652         (func_create_testdir): Handle module 'alloca' like func_import.
19653         Reported by Bruce Korb <bruce.korb@gmail.com>.
19654
19655 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19656
19657         Avoid some lines longer than 80 characters.
19658         * lib/stdint.in.h: Break long comment lines.
19659         * lib/math.in.h: Likewise.
19660         (_GL_NUM_UINT_WORDS): New macro, for readability.
19661         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19662         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19663         * lib/stdlib.in.h: Likewise.
19664         * lib/spawn.in.h: Likewise.
19665         * lib/sys_socket.in.h: Update an URL.
19666         * lib/sys_stat.in.h: Break long line.
19667
19668 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19669
19670         Improve pmccabe2html.
19671         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19672         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19673         when the sources change. Remove the line in the HTML about "Used
19674         ranges" (which implied that there might be other unused ranges),
19675         rename "Resume" to "Summary" (easier to understand for more users).
19676         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19677         styles, and some unnecessary blank lines.
19678
19679 2010-10-03  Bruno Haible  <bruno@clisp.org>
19680             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19681
19682         acl: Add support for ACLs on NonStop Kernel.
19683         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19684         Check whether the function aclsort() exists.
19685         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19686         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19687         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19688         (acl_nontrivial [HAVE_ACLSORT]: New function.
19689         (file_has_acl): Implement for NonStop Kernel.
19690         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19691         (qset_acl): Implement for NonStop Kernel.
19692         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19693         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19694         (main): Implement for NonStop Kernel.
19695         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19696         Kernel. Handle this flavor.
19697         * tests/test-set-mode-acl.sh: Likewise.
19698         * tests/test-copy-acl.sh: Likewise.
19699         * tests/test-copy-file.sh: Likewise.
19700
19701 2010-10-03  Bruno Haible  <bruno@clisp.org>
19702
19703         Info about ACLs on NonStop Kernel.
19704         * doc/acl-resources.txt: Add info about NonStop Kernel.
19705         References by Joachim Schmitz <schmitz@hp.com>.
19706
19707 2010-10-02  Bruno Haible  <bruno@clisp.org>
19708
19709         Define missing EDQUOT on NonStop Kernel.
19710         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19711         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19712         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19713         missing.
19714         * doc/posix-headers/errno.texi: Mention the NSK bug.
19715         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19716         Reported by Joachim Schmitz <schmitz@hp.com>.
19717
19718 2010-10-02  Bruno Haible  <bruno@clisp.org>
19719
19720         Update doc for POSIX:2008.
19721         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19722         Update URL of POSIX specification.
19723
19724 2010-10-02  Bruno Haible  <bruno@clisp.org>
19725
19726         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19727         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19728         from gnulib, not from Automake.
19729
19730 2010-10-02  Bruno Haible  <bruno@clisp.org>
19731
19732         New module 'system-posix'.
19733         * modules/system-posix: New file.
19734         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19735         module is present.
19736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19737         GNULIB_SYSTEM_POSIX.
19738         * modules/stdlib (Depends-on): Remove sys_wait.
19739         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19740         * doc/posix-functions/system.texi: Mention the new module.
19741         * doc/posix-headers/stdlib.texi: Likewise.
19742         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19743         define test_sys_wait_macros to a no-op.
19744         Reported by Sam Steingold <sds@gnu.org>.
19745
19746 2010-09-30  Bruno Haible  <bruno@clisp.org>
19747
19748         More renaming from 'getdate' to 'get_date'.
19749         * doc/get_date.texi: Renamed from doc/getdate.texi.
19750         * modules/get_date (Files): Update.
19751         * MODULES.html.sh (Date and time <time.h>): Update.
19752         * DEPENDENCIES: Update.
19753         * gnulib-tool: Update comment.
19754         * m4/bison.m4 (gl_BISON): Likewise.
19755         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19756
19757 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19758
19759         bootstrap: support ACLOCAL_FLAGS during aclocal
19760         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19761         can add additional -I dir for third-party .m4 files.
19762
19763 2010-09-30  Eric Blake  <eblake@redhat.com>
19764
19765         bootstrap: use glibtoolize on MacOS
19766         * build-aux/bootstrap (check_versions): Convert libtool into
19767         libtoolize.
19768         (tool search): Move libtool check earlier, and look for
19769         glibtoolize for MacOS.
19770         (gnulib_tool_options): Auto-add --libtool when appropriate.
19771         Reported by Justin Clift.
19772
19773         poll: fix typo that broke test on MacOS
19774         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19775         Reported by Justin Clift.
19776
19777         getdate: rename to get_date
19778         Note: getdate.h is not renamed, to minimize client impact.
19779         * modules/getdate: Mark obsolete.  Move old contents...
19780         * modules/get_date: ...to new module name.
19781         * modules/getdate-tests: Move...
19782         * modules/get_date-tests: ...here.
19783         * m4/getdate.m4: Move...
19784         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19785         * lib/getdate.y: Move...
19786         * lib/get_date.y: ...here.
19787         * tests/test-getdate.c: Move...
19788         * tests/test-get_date.c: ...here.
19789         * doc/posix-functions/getdate.texi (getdate): Update name.
19790         * NEWS: Mention the change.
19791
19792 2010-09-29  Bruno Haible  <bruno@clisp.org>
19793
19794         Separate the module 'waitpid' from the module 'sys_wait'.
19795         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19796         present.
19797         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19798         gl_MODULE_INDICATOR_FOR_TESTS.
19799         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19800         * modules/sys_wait (Depends-on): Remove waitpid.
19801         (Makefile.am): Substitute GNULIB_WAITPID.
19802         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19803         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19804         signature only if the 'waitpid' module is present.
19805         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19806         * NEWS: Mention the change.
19807         * modules/grantpt (Depends-on): Add waitpid.
19808         * modules/wait-process (Depends-on): Likewise.
19809
19810 2010-09-29  Bruno Haible  <bruno@clisp.org>
19811
19812         More tests for module 'sys_wait'.
19813         * modules/sys_wait-c++-tests: New file.
19814         * tests/test-sys_wait-c++.cc: New file.
19815         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19816         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19817
19818 2010-09-29  Bruno Haible  <bruno@clisp.org>
19819
19820         New module 'waitpid'.
19821         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19822         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19823         Don't include <process.h>.
19824         (waitpid): Declare only, using modern idiom.
19825         * m4/waitpid.m4: New file.
19826         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19827         * modules/waitpid: New file.
19828         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19829         (Makefile.am): Update.
19830         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19831
19832 2010-09-28  Bruno Haible  <bruno@clisp.org>
19833
19834         poll: Assume ANSI C.
19835         * lib/poll.c (poll): Use an ANSI C declaration.
19836
19837 2010-09-28  Bruno Haible  <bruno@clisp.org>
19838
19839         poll-h: Create poll.h on all platforms.
19840         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19841         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19842         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19843         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19844         (gl_REPLACE_POLL_H): Don't set POLL_H.
19845         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19846         * modules/poll-h (Depends-on): Add include_next.
19847         (Makefile.am): Create poll.h unconditionally. Substitute also
19848         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19849
19850 2010-09-28  Bruno Haible  <bruno@clisp.org>
19851
19852         Tests for module 'poll-h'.
19853         * modules/poll-h-c++-tests: New file.
19854         * tests/test-poll-h-c++.cc: New file.
19855
19856         Tests for module 'poll-h'.
19857         * modules/poll-h-tests: New file.
19858         * tests/test-poll-h.c: New file.
19859
19860 2010-09-28  Bruno Haible  <bruno@clisp.org>
19861
19862         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19863         * modules/poll-h (Depends-on): Add 'extensions'.
19864
19865 2010-09-28  Bruno Haible  <bruno@clisp.org>
19866
19867         New module 'poll-h'.
19868         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19869         (poll): Use modern idiom.
19870         * modules/poll-h: New file.
19871         * modules/poll (Files): Remove lib/poll.in.h.
19872         (Depends-on): Add poll-h.
19873         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19874         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19875         * m4/poll_h.m4: New file.
19876         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19877         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19878         and invoke gl_REPLACE_POLL_H.
19879         * lib/poll.c: Use common idiom.
19880         * tests/test-poll.c: Likewise.
19881         * doc/posix-headers/poll.texi: Mention the poll-h module.
19882         Suggested by Eric Blake.
19883
19884 2010-09-26  Bruno Haible  <bruno@clisp.org>
19885
19886         sys_wait: Implement WSTOPSIG.
19887         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19888         Reported by Simon Josefsson.
19889
19890 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19891
19892         stdlib, sys_wait: Avoid compilation error on mingw.
19893         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19894
19895 2010-09-26  Bruno Haible  <bruno@clisp.org>
19896
19897         stdlib tests: Avoid code duplication.
19898         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19899         * modules/sys_wait-tests (Files): Likewise.
19900         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19901         * tests/test-stdlib.c: Include test-sys_wait.h.
19902         (main): Invoke test_sys_wait_macros.
19903         * tests/test-sys_wait.c: Include test-sys_wait.h.
19904         (main): Invoke test_sys_wait_macros.
19905
19906 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19907
19908         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19909         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19910         sure Windows sockets are working before calling getaddrinfo.
19911         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19912         * doc/gnulib.texi (Windows sockets): Fix typo.
19913
19914 2010-09-25  Bruno Haible  <bruno@clisp.org>
19915
19916         Tests for module 'regex-quote'.
19917         * modules/regex-quote-tests: New file.
19918         * tests/test-regex-quote.c: New file.
19919
19920         New module 'regex-quote'.
19921         * lib/regex-quote.h: New file.
19922         * lib/regex-quote.c: New file.
19923         * modules/regex-quote: New file.
19924         Suggested by Reuben Thomas <rrt@sc3d.org>.
19925
19926 2010-09-24  Bruno Haible  <bruno@clisp.org>
19927
19928         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19929         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19930
19931 2010-09-23  Bruno Haible  <bruno@clisp.org>
19932
19933         setenv: Relax license.
19934         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19935         Blake.
19936         Requested by Eric Blake.
19937
19938 2010-09-22  Bruno Haible  <bruno@clisp.org>
19939
19940         termios: Relax license.
19941         * modules/termios (License): Change to LGPLv2+.
19942         Requested by Eric Blake.
19943
19944 2010-09-22  Bruno Haible  <bruno@clisp.org>
19945
19946         threadlib: Allow the package to change the default to 'no'.
19947         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19948         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19949         Reported by Paul Eggert.
19950
19951 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19952             Bruno Haible  <bruno@clisp.org>
19953
19954         Fix endless loop in mbmemcasecoll.
19955         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19956         byte.
19957         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19958
19959 2010-09-22  Bruno Haible  <bruno@clisp.org>
19960
19961         Tests for module 'memcoll'.
19962         * modules/memcoll-tests: New file.
19963         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19964
19965         memcoll, xmemcoll: Clarify size vs. length.
19966         * modules/memcoll.c (memcoll0): Clarify specification.
19967         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19968         passed to collate_error.
19969
19970 2010-09-22  Bruno Haible  <bruno@clisp.org>
19971
19972         Tests for module 'memcasecmp'.
19973         * modules/memcasecmp-tests: New file.
19974         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19975
19976 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19977
19978         * lib/pthread.in.h: Add split double-inclusion guard, and include
19979         system <pthread.h> if there is one.  Use @@-style as in other
19980         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19981         pthread.h doesn't.
19982         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19983         (pthread_mutexattr_settype, pthread_mutex_trylock):
19984         New static inline functions, if there's no system <pthread.h>.
19985         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19986         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19987         Approximate with mutexes if the system lacks spinlocks, as in
19988         MacOS.
19989         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19990         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19991         @@-style.  Check for spinlocks separately.
19992         (gl_PTHREAD_DEFAULTS): New macro.
19993         * modules/pthread: Redo to use a more typical style for in.h files.
19994
19995 2010-09-21  Eric Blake  <eblake@redhat.com>
19996
19997         net_if: enhance tests
19998         * tests/test-net_if.c (main): Move signature checks earlier.
19999         Print failures to stderr.
20000         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20001         Document the bug that we do not yet fix.
20002
20003 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20004
20005         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20006         about gnulib, not GSS.
20007
20008 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20009
20010         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20011         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20012         for Emacs.
20013         * build-aux/pmccabe2html: Make Makefile.am example code more
20014         cut-and-paste friendly.
20015
20016 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20017
20018         * tests/test-net_if.c: New file.
20019         * modules/net_if-tests: New file.
20020
20021 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20022
20023         pthread: add pthread_spin_destroy
20024         * lib/pthread.in.h (pthread_spin_destroy): New function.
20025
20026 2010-09-19  Bruno Haible  <bruno@clisp.org>
20027
20028         gnulib-tool: Fix --help output.
20029         * gnulib-tool (func_usage): Fix help message.
20030         Reported by Reuben Thomas <rrt@sc3d.org>.
20031
20032 2010-09-18  Jim Meyering  <meyering@redhat.com>
20033
20034         maint.mk: avoid unexpanded \n in two diagnostics
20035         * top/maint.mk (sc_prohibit_always_true_header_tests):
20036         Don't use a literal \n in a halt=... assignment.  It would not be
20037         expanded, and the two \n bytes would appear in the diagnostic output
20038         rather than the desired newline.  Use halt=$$(printf ... instead.
20039         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20040
20041 2010-09-18  Bruno Haible  <bruno@clisp.org>
20042
20043         netinet_in: Doc tweak.
20044         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20045         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20046
20047 2010-09-18  Jim Meyering  <meyering@redhat.com>
20048
20049         init.sh: correct an outdated comment
20050         * tests/init.sh (create_exe_shims_):  s/function/alias/
20051
20052         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20053         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20054         a file named "*.exe" is removed between the glob expansion and the
20055         processing of that oddly named file.
20056
20057 2010-09-17  Eric Blake  <eblake@redhat.com>
20058
20059         mirbsd: add some more support
20060         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20061         in BSD family.
20062         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20063         devices as OpenBSD.
20064         * m4/host-os.m4 (mirbsd): Add MirBSD.
20065
20066         tests: fix unportable assumption on sys/wait.h
20067         * tests/test-sys_wait.c (main): Relax test.
20068         * tests/test-stdlib.c (main): Likewise.
20069
20070         init.sh: accomodate directory with no .exes
20071         * tests/init.sh: Accomodate directory containing only scripts.
20072
20073         tests: avoid compiler warning
20074         * tests/test-stdlib.c (main): Use the variable.
20075
20076         fdutimens, fdutimensat: update signature, again
20077         * lib/utimens.h (gl_futimens): Delete, and move signature...
20078         (fdutimens): ...here.
20079         (fdutimensat): Rearrange signature.
20080         (lutimensat): Rename variable for clarity.
20081         * lib/fdutimensat.c (fdutimensat): Update signature.
20082         * lib/utimens.c (fdutimens): Likewise.
20083         (gl_futimens): Delete.
20084         (utimens, lutimens): Update callers.
20085         * lib/futimens.c (futimens): Likewise.
20086         * tests/test-fdutimensat.c: Likewise.
20087         * tests/test-utimens.c: Likewise.
20088         * tests/test-futimens.h: Update comment.
20089         * NEWS: Mention this.
20090         Suggested by Paul Eggert.
20091
20092 2010-09-17  Bruno Haible  <bruno@clisp.org>
20093
20094         Take over the maintenance of some older macros from Autoconf.
20095         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20096         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20097         GNU Autoconf.
20098         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20099         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20100
20101 2010-09-17  Eric Blake  <eblake@redhat.com>
20102
20103         fdutimensat: drop atflag validation
20104         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20105         with valid fd, to close a race scenario where futimens is
20106         unsupported and FILE was replaced by a symlink.
20107         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20108         accordingly.
20109         Suggested by Paul Eggert.
20110
20111 2010-09-16  Bruno Haible  <bruno@clisp.org>
20112
20113         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20114         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20115
20116 2010-09-16  Bruno Haible  <bruno@clisp.org>
20117
20118         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20119         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20120         login_tty exists.
20121         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20122
20123 2010-09-16  Bruno Haible  <bruno@clisp.org>
20124
20125         login_tty: Make the replacement code work on BSD systems.
20126         * lib/login_tty.c: Include <sys/ioctl.h>.
20127         (login_tty): Use ioctl TIOCSCTTY when available.
20128         * modules/login_tty (Depends-on): Add sys_ioctl.
20129         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20130
20131 2010-09-16  Bruno Haible  <bruno@clisp.org>
20132
20133         login_tty: Stricter unit test.
20134         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20135         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20136         and tcgetsid() after login_tty.
20137         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20138
20139 2010-09-16  Bruno Haible  <bruno@clisp.org>
20140
20141         New module 'tcgetsid'.
20142         * lib/tcgetsid.c: New file.
20143         * m4/tcgetsid.m4: New file.
20144         * modules/tcgetsid: New file.
20145         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20146         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20147         GNULIB_TCGETSID, HAVE_TCGETSID.
20148         * lib/termios.in.h: Include <sys/types.h>.
20149         (tcgetsid): New declaration.
20150         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20151         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20152         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20153         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20154
20155 2010-09-16  Bruno Haible  <bruno@clisp.org>
20156
20157         Tests for module 'termios'.
20158         * modules/termios-c++-tests: New file.
20159         * modules/termios-tests: New file.
20160         * tests/test-termios-c++.cc: New file.
20161         * tests/test-termios.c: New file.
20162
20163         New module 'termios'.
20164         * modules/termios: New file.
20165         * lib/termios.in.h: New file.
20166         * m4/termios_h.m4: New file.
20167         * doc/posix-headers/termios.texi: Mention the new module.
20168
20169 2010-09-16  Eric Blake  <eblake@redhat.com>
20170
20171         fdutimensat: add an atflag parameter
20172         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20173         * lib/utimens.h (fdutimensat): Update prototype.
20174         * tests/test-fdutimensat.c: Adjust test to match.
20175         * NEWS: Document the change.
20176         Suggested by Paul Eggert.
20177
20178 2010-09-16  Bruno Haible  <bruno@clisp.org>
20179
20180         Fix typos in comments.
20181         * lib/striconveh.h: Fix typo in comment.
20182         * lib/login_tty.c (login_tty): Likewise.
20183
20184 2010-09-15  Bruno Haible  <bruno@clisp.org>
20185
20186         stdlib: clarify MirBSD WEXITSTATUS bug
20187         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20188         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20189
20190 2010-09-15  Eric Blake  <eblake@redhat.com>
20191
20192         stdlib: work around MirBSD WEXITSTATUS bug
20193         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20194         * modules/stdlib (Depends-on): Add sys_wait.
20195         * tests/test-sys_wait.c (main): Enhance test.
20196         * tests/test-stdlib.c (main): Likewise.
20197         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20198
20199         docs: mention MacOS issue with WEXITSTATUS(constant)
20200         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20201         issue.
20202         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20203
20204         strnlen: add tests
20205         * modules/strnlen-tests: New file.
20206         * tests/test-strnlen.c: Likewise.
20207
20208 2010-09-14  Bruno Haible  <bruno@clisp.org>
20209
20210         unistr/base: Avoid link errors when module 'libunistring' is also used.
20211         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20212         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20213         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20214         Declare also when HAVE_LIBUNISTRING is set.
20215         Reported by Pádraig Brady <P@draigbrady.com>.
20216
20217 2010-09-14  Eric Blake  <eblake@redhat.com>
20218
20219         test-rawmemchr: make more robust
20220         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20221         (Depends-on, configure.ac): Add needed prerequisites to use it.
20222         * modules/memchr-tests (Files, Depends-on, configure.ac):
20223         Likewise, to avoid implicit reliance on memchr module prereqs.
20224         * tests/test-memchr.c (main): Ensure proper masking.
20225         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20226         reads.
20227
20228         memchr: detect glibc Alpha bug
20229         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20230         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20231         Alpha.
20232         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20233         * tests/test-memchr.c (main): Enhance test.
20234         Reported by Nelson H. F. Beebe.
20235
20236 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20237
20238         fts, getcwd, glob: audit for dirfd returning -1
20239         * lib/fts.c (opendir): Remove #define; no longer used.
20240         (opendirat): New arg PDIR_FD.  All callers changed.
20241         (fts_build, _opendir2): Use new opendirat to avoid the need for
20242         dirfd, or for checking whether dirfd returns a negative value.
20243         Don't use opendir; always use openat followed by fdopendir.
20244         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20245         it.
20246         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20247         returns -1 here.
20248         * modules/fts (Depends-on): Remove dirfd.
20249         * modules/getcwd (Depends-on): Likewise.
20250
20251 2010-09-13  Eric Blake  <eblake@redhat.com>
20252
20253         float: fix broken MirBSD header
20254         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20255         * doc/posix-headers/float.texi (float.h): Document it.
20256
20257 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20258
20259         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20260         * lib/fts.c (opendirat): New arg extra_flags.
20261         (__opendir2): Use it to avoid following symlinks when opening
20262         a directory, if symlinks are not supposed to be followed.  See
20263         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20264
20265         fdopendir: preserve argument fd before returning
20266         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20267         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20268         (fdopendir): Use them, arranging for FD to be open to the same
20269         directory that it was when it started.  (It might be temporarily
20270         closed while fdopendir is running, so this not thread- or
20271         signal-safe.)  Be careful to do the right thing even when file
20272         descriptors are scarce and dup fails with errno == EMFILE.  See
20273         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20274
20275 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20276
20277         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20278         * NEWS: Document change.
20279         * m4/regex.m4: Disable test for regoff_t size.
20280
20281 2010-09-13  Jim Meyering  <meyering@redhat.com>
20282
20283         fts: don't operate on an invalid file descriptor after failed dup
20284         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20285         negative file descriptor.
20286
20287 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20288
20289         savedir: add streamsavedir, deprecate fdsavedir
20290         * NEWS: Mention deprecation of fdsavedir.
20291         * lib/savedir.c (streamsavedir): New extern function, whose name
20292         ends in "savedir" to be consistent with the others.  This differs
20293         from savedirstream in that it doesn't close its argument.  The
20294         next version of GNU tar will use this instead of fdsavedir, to
20295         avoid some race conditions and conserve file descriptors.
20296         (savedirstream): Reimplement as a wrapper around streamsavedir.
20297         (fdsavedir): Add a comment deprecating this function.  As far as
20298         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20299         * lib/savedir.h (streamsavedir): New decl.
20300         (fdsavedir): Add a comment deprecating this.
20301
20302 2010-09-10  Bruno Haible  <bruno@clisp.org>
20303
20304         langinfo: Fix last commit.
20305         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20306         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20308
20309 2010-09-10  Bruno Haible  <bruno@clisp.org>
20310
20311         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20312         * lib/progreloc.c (O_EXEC): Define fallback.
20313
20314 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20315
20316         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20317         * NEWS: Document recent changes to fcntl-h.
20318         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20319         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20320         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20321         Similarly for O_SEARCH; this last was already true, but not documented.
20322         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20323         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20324         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20325         Likewise.
20326         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20327         is zero, not whether it is defined.
20328         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20329         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20330         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20331
20332 2010-09-10  Bruno Haible  <bruno@clisp.org>
20333
20334         langinfo, nl_langinfo: Fix for IRIX 5.3.
20335         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20336         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20337         HAVE_LANGINFO_YESEXPR.
20338         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20339         HAVE_LANGINFO_YESEXPR.
20340         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20341         HAVE_LANGINFO_T_FMT_AMPM is 0.
20342         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20343         HAVE_LANGINFO_YESEXPR is 0.
20344         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20345         NOEXPR.
20346         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20347         * doc/posix-functions/nl_langinfo.texi: Likewise.
20348         Reported by Eric Blake.
20349
20350 2010-09-10  Bruno Haible  <bruno@clisp.org>
20351
20352         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20353         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20354         on FreeBSD 8.0 and OpenBSD 4.6.
20355         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20356         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20357         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20358         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20359         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20360         ac_includes_default.
20361         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20362
20363 2010-09-09  Eric Blake  <eblake@redhat.com>
20364
20365         strsignal: work around NetBSD bug
20366         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20367         * lib/string.in.h (includes): Likewise.
20368         * doc/posix-functions/strsignal.texi (strsignal): Document the
20369         bug.
20370         Reported by Nelson H. F. Beebe.
20371
20372         gnulib-tool: work with NetBSD /bin/sh
20373         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20374         (func_get_description, func_get_comment, func_get_status)
20375         (func_get_notice, func_get_applicability, func_get_filelist)
20376         (func_get_dependencies, func_get_autoconf_early_snippet)
20377         (func_get_autoconf_snippet, func_get_automake_snippet)
20378         (func_get_include_directive, func_get_link_directive)
20379         (func_get_license, func_get_maintainer, func_import): Avoid
20380         shell syntax errors from parsing syntax extensions.
20381
20382 2010-09-09  Bruno Haible  <bruno@clisp.org>
20383
20384         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20385         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20386         a reliable way to determine whether the 'alias' command works.
20387
20388 2010-09-08  Jim Meyering  <meyering@redhat.com>
20389
20390         init.sh: penalize a set-x-impaired shell; don't disqualify it
20391         * tests/init.sh: Too many shells corrupt application stderr when
20392         you set -x, so we can't afford to disqualify them, since at least
20393         on Irix-6.5, that would disqualify all bourne shells.
20394         Instead, use a two-pass approach.
20395         On the first pass, try to find a shell that meets the stricter
20396         condition that set -x does not corrupt stderr.
20397         If no shell meets the stricter condition, retest each candidate
20398         shell, but without that extra condition.  Finally, when
20399         VERBOSE=yes is requested and set -x might cause trouble, simply
20400         issue a warning and refrain from enabling debug output.
20401
20402 2010-09-08  Eric Blake  <eblake@redhat.com>
20403
20404         unsetenv: fix OpenBSD bug
20405         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20406         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20407         documentation.
20408         Reported by Jim Meyering.
20409
20410         strtod: work around IRIX 6.5 bug
20411         * lib/strtod.c (strtod): Reparse number on shorter string if
20412         exponent parse was invalid.
20413         * tests/test-strtod.c (main): Add check for "0x1p 2".
20414         Reported by Tom G. Christensen.
20415
20416         getopt: optimize previous patch
20417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20418         empty variable.  Speed up awk script.
20419         Reported by Paolo Bonzini.
20420
20421 2010-09-08  Jim Meyering  <meyering@redhat.com>
20422
20423         test.sh: disqualify shells for which set -x corrupts stderr
20424         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20425         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20426         appear in stderr output.  For example, this command:
20427             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20428         prints "P=1" on those two systems:
20429
20430 2010-09-08  Bruno Haible  <bruno@clisp.org>
20431
20432         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20433         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20434         commands, because some shells ignore redirections when there is an
20435         error in the command lookup.
20436         Reported by Eric Blake.
20437
20438 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20439
20440         * lib/regex.h: Fix a mention of `regex_compile' (should be
20441         `re_compile_pattern').
20442         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20443         (re_set_registers): Correct name of parameter in comment.
20444
20445         * doc/regex.texi: Add documentation for missing syntax flags.
20446         Remove commented-out documentation of defunct syntax option
20447         RE_NO_EMPTY_ALTS.
20448         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20449         Add documentation of re_set_registers.
20450         Document trick to re-use a pattern buffer by setting fastmap manually.
20451         Update documentation of struct re_pattern_buffer per public members.
20452         Uncomment documentation of equivalence class operators and
20453         collating symbol operators, since they are now implemented,
20454         Explain leftmost-longest matching in relation to alternatives.
20455         Tidy documentation of substring matching.
20456         Remove POSIX documentation, which is done better in
20457         glibc, and refer the reader there. Keep BSD API documentation, as
20458         that is not readily available elsewhere.
20459
20460 2010-09-07  Eric Blake  <eblake@redhat.com>
20461
20462         getopt: handle POSIXLY_CORRECT set but not exported
20463         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20464         export state of POSIXLY_CORRECT, due to bash set -o posix.
20465         Reported by Dustin J. Mitchell.
20466
20467 2010-09-05  Bruno Haible  <bruno@clisp.org>
20468
20469         gnulib-tool: Highlight the changed options.
20470         * gnulib-tool (func_usage): Display the --import, --add-import,
20471         --remove-import explanations in bold font.
20472
20473 2010-09-06  Karl Berry  <karl@gnu.org>
20474
20475         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20476
20477 2010-09-05  Bruno Haible  <bruno@clisp.org>
20478
20479         uniwidth/width: Update comment.
20480         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20481         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20482
20483 2010-09-05  Bruno Haible  <bruno@clisp.org>
20484
20485         isinf, isnan: Relax license.
20486         * modules/isinf (License): Change from GPL to LGPL, with consent from
20487         Ben Pfaff.
20488         * modules/isnan (License): Likewise.
20489         Requested by Ludovic Courtès.
20490
20491 2010-09-04  Bruno Haible  <bruno@clisp.org>
20492
20493         gnulib-tool: Help migration from --import to --add-import or --update.
20494         * gnulib-tool: Emit a verbose error message when --import is used
20495         without any module name.
20496
20497 2010-09-04  Bruno Haible  <bruno@clisp.org>
20498
20499         Update doc about gnulib-tool.
20500         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20501         'gnulib-tool --update' in more detail.
20502         Reported by Eric Blake.
20503
20504 2010-09-04  Bruno Haible  <bruno@clisp.org>
20505
20506         gnulib-tool: Change --import. New options --add/remove-import.
20507         * gnulib-tool: New options --add-import, --remove-import.
20508         (func_usage): Document them.
20509         (have_associative): Define always.
20510         (func_import): In import mode, don't merge the specified settings with
20511         the cached settings. Implement remove-import mode.
20512         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20513         Explain when to use them versus --import.
20514         (Simple update): Use --add-import instead of --import.
20515         * NEWS: Mention the change.
20516
20517 2010-09-04  Bruno Haible  <bruno@clisp.org>
20518
20519         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20520         separate gnulib.mk.
20521
20522 2010-09-04  Bruno Haible  <bruno@clisp.org>
20523
20524         gnulib-tool: Don't talk about CVS any more.
20525         * gnulib-tool (func_usage, func_import): Write "version control"
20526         instead of CVS.
20527
20528 2010-09-04  Jim Meyering  <meyering@redhat.com>
20529
20530         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20531         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20532         false positives (whose names may be ill-chosen) when searching
20533         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20534         would cause a false-positive.
20535
20536         avoid coreutils "make distcheck" failure
20537         Coreutils tests with an absolute build directory name that contains
20538         a space.  Not quoting this directory name caused a failure.
20539         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20540         * tests/test-vc-list-files-cvs.sh: Likewise.
20541
20542 2010-09-04  Bruno Haible  <bruno@clisp.org>
20543
20544         gnulib-tool: Avoid error when run in a package without Makefile.am.
20545         * gnulib-tool: When collecting the m4dirs in a package that does not
20546         have a Makefile.am, eliminate those directories that contain no
20547         gnulib-cache.m4. Fix expression that counts these directories.
20548
20549 2010-09-04  Bruno Haible  <bruno@clisp.org>
20550
20551         update-copyright test: Improve output when perl is missing or too old.
20552         * tests/test-update-copyright.sh: Move test of Perl version down after
20553         the test whether Perl exists. Provide an explanation relating Perl's
20554         error message to Automake's SKIP: message.
20555
20556 2010-09-04  Bruno Haible  <bruno@clisp.org>
20557
20558         Don't augment PATH in TESTS_ENVIRONMENT.
20559         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20560         set abs_aux_dir instead of augmenting PATH.
20561         * modules/vc-list-files-tests (Makefile.am): Likewise.
20562         * tests/test-update-copyright.sh: Augment PATH here.
20563         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20564         path_prepend_.
20565         * tests/test-vc-list-files-git.sh: Likewise.
20566
20567 2010-09-04  Jim Meyering  <meyering@redhat.com>
20568
20569         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20570         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20571
20572 2010-09-04  Bruno Haible  <bruno@clisp.org>
20573
20574         strdup: Fix compilation error in C++ mode.
20575         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20576         the macro.
20577
20578 2010-09-04  Bruno Haible  <bruno@clisp.org>
20579
20580         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20581         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20582         macro into a function.
20583         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20584
20585 2010-09-04  Bruno Haible  <bruno@clisp.org>
20586
20587         Set PATH_SEPARATOR the same way autoconf does.
20588         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20589         the value of PATH_SEPARATOR the same way autoconf-generated configure
20590         scripts do.
20591         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20592         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20593
20594 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20595
20596         Set PATH_SEPARATOR the same way autoconf does.
20597         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20598         the same way autoconf-generated configure scripts do.
20599         * posix-modules: Likewise.
20600
20601 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20602
20603         hash: fix safe_hasher const typo
20604         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20605         const; otherwise, there is a type error later.
20606
20607 2010-09-02  Jim Meyering  <meyering@redhat.com>
20608
20609         test-update-copyright.sh: require perl 5.8.0
20610         * tests/test-update-copyright.sh: Require 5.8.0,
20611         which Tom G. Christensen has confirmed is adequate,
20612         while 5.6.1 is not.
20613
20614 2010-09-02  Eric Blake  <eblake@redhat.com>
20615
20616         tests: init.sh improvements for re-exec'ing with zsh
20617         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20618         -vx through shell re-exec.
20619         Reported by Tom G. Christensen.
20620
20621         wctype: fix typo in previous commit
20622         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20623         Reported by Ludovic Courtès.
20624
20625 2010-09-02  Jim Meyering  <meyering@redhat.com>
20626
20627         test-update-copyright.sh: skip test if Perl is too old
20628         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20629         Reported by Tom G. Christensen.
20630
20631 2010-09-02  Bruno Haible  <bruno@clisp.org>
20632
20633         wctype: Avoid compilation error on IRIX 6.5.30.
20634         * lib/wctype.in.h (iswblank): Declare with a replacement if
20635         REPLACE_ISWBLANK is set.
20636         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20637         declared. Set REPLACE_ISWBLANK.
20638         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20639         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20640         * doc/posix-headers/wctype.texi: Likewise.
20641         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20642
20643 2010-09-01  Bruno Haible  <bruno@clisp.org>
20644
20645         New module 'socketlib'.
20646         * modules/socketlib: New file.
20647         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20648         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20649         * modules/sockets (Depends-on): Add socketlib.
20650         Suggested by Sam Steingold <sds@gnu.org>.
20651
20652 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20653
20654         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20655
20656         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20657         when one needs search access to a directory but not read access.
20658         On systems where it is available, it works in some cases where
20659         O_RDONLY does not, namely on directories that are searchable but
20660         not readable, and which need only to be searchable.  If O_SEARCH
20661         is not available, fall back to the traditional method of using
20662         O_RDONLY.
20663
20664         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20665         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20666         when opening a directory that needs only to be searchable.
20667         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20668         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20669         * lib/openat-proc.c (openat_proc_name): Likewise.
20670         * lib/openat.c (openat_needs_fchdir): Likewise.
20671         * lib/save-cwd.c (save_cwd): Likewise.
20672         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20673
20674 2010-08-28  Bruno Haible  <bruno@clisp.org>
20675
20676         New module 'host-cpu-c-abi'.
20677         * modules/host-cpu-c-abi: New file.
20678         * m4/host-cpu-c-abi.m4: New file, based on part of
20679         clisp/src/m4/general.m4.
20680         Requested by Sam Steingold <sds@gnu.org>.
20681
20682 2010-08-31  Eric Blake  <eblake@redhat.com>
20683         and Jim Meyering  <meyering@redhat.com>
20684
20685         hash: factor, and guard against misbehaving hasher function
20686         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20687         of table->hasher's return value.  Also protect against a hash value
20688         so large that adding it to table->bucket results in a NULL pointer.
20689         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20690         Use it in place of open-coded check-and-abort.
20691
20692 2010-08-30  Bruno Haible  <bruno@clisp.org>
20693
20694         hash: silence spurious clang warning
20695         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20696         Reported by Eric Blake.
20697
20698 2010-08-30  Eric Blake  <eblake@redhat.com>
20699
20700         strstr, memmem, strcasestr: avoid leaked shell message
20701         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20702         FreeBSD.
20703         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20704         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20705
20706         tests: silence clang warning
20707         * tests/test-malloca.c (do_allocation): Avoid dead store.
20708
20709 2010-08-29  Bruno Haible  <bruno@clisp.org>
20710
20711         gettext: Fix recent mistake.
20712         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20713
20714 2010-08-29  Bruno Haible  <bruno@clisp.org>
20715
20716         selinux-h: Offer a --without-selinux option.
20717         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20718         --without-selinux was specified, skip all tests and define
20719         HAVE_SELINUX_SELINUX_H to 0.
20720         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20721         set LIB_SELINUX to empty.
20722         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20723         gl_LIBSELINUX. If --without-selinux was specified, replace
20724         selinux/context.h.
20725         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20726
20727 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20728             Bruno Haible  <bruno@clisp.org>
20729
20730         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20731         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20732         of HAVE_REALLOC.
20733         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20734         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20735         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20736         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20737
20738 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20739             Bruno Haible  <bruno@clisp.org>
20740
20741         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20742         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20743         HAVE_CALLOC.
20744         * lib/xmalloc.c: Update accordingly.
20745         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20746         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20747         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20748
20749 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20750             Bruno Haible  <bruno@clisp.org>
20751
20752         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20753         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20754         HAVE_MALLOC.
20755         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20756         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20757         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20758
20759 2010-08-29  Bruno Haible  <bruno@clisp.org>
20760
20761         Update modules list.
20762         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20763         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20764         (String handling <string.h>): Add astrxfrm.
20765         (File system functions): Add readlinkat.
20766
20767 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20768
20769         Tests for module 'realloc-gnu'.
20770         * modules/realloc-gnu-tests: New file.
20771         * tests/test-realloc-gnu.c: New file.
20772
20773         Tests for module 'calloc-gnu'.
20774         * modules/calloc-gnu-tests: New file.
20775         * tests/test-calloc-gnu.c: New file.
20776
20777         Tests for module 'malloc-gnu'.
20778         * modules/malloc-gnu-tests: New file.
20779         * tests/test-malloc-gnu.c: New file.
20780
20781 2010-08-28  Bruno Haible  <bruno@clisp.org>
20782
20783         Rename module 'realloc' -> 'realloc-gnu'.
20784         * modules/realloc-gnu: New file, copied from modules/realloc.
20785         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20786         obsolete.
20787         * modules/mgetgroups (Depends-on): Update.
20788         * doc/posix-functions/realloc.texi: Update.
20789         * NEWS: Mention the change.
20790
20791         Rename module 'calloc' -> 'calloc-gnu'.
20792         * modules/calloc-gnu: New file, copied from modules/calloc.
20793         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20794         obsolete.
20795         * doc/posix-functions/calloc.texi: Update.
20796         * NEWS: Mention the change.
20797
20798         Rename module 'malloc' -> 'malloc-gnu'.
20799         * modules/malloc-gnu: New file, copied from modules/malloc.
20800         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20801         obsolete.
20802         * modules/argp (Depends-on): Update.
20803         * modules/regex (Depends-on): Update.
20804         * doc/posix-functions/malloc.texi: Update.
20805         * NEWS: Mention the change.
20806
20807 2010-08-28  Eric Blake  <eblake@redhat.com>
20808
20809         pread, pwrite: add missing dependency
20810         * modules/pread (Depends-on): Add extensions.
20811         * modules/pwrite (Depends-on): Likewise.
20812
20813 2010-08-28  Bruno Haible  <bruno@clisp.org>
20814
20815         unistr/u*-strchr: Fix tests dependencies.
20816         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20817         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20818         Reported by Ian Beckwith <ianb@erislabs.net>.
20819
20820 2010-08-28  Bruno Haible  <bruno@clisp.org>
20821
20822         read-file: Don't occupy too much unused memory.
20823         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20824
20825 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20826             Eric Blake  <eblake@redhat.com>
20827             Bruno Haible  <bruno@clisp.org>
20828
20829         read-file: Avoid memory reallocations with regular files.
20830         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20831         (fread_file): With regular files, use the remaining length as the
20832         initial buffer size.  Check against overflow.
20833         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20834         sys_stat.
20835
20836 2010-08-28  Bruno Haible  <bruno@clisp.org>
20837
20838         ftello: Relax license.
20839         * modules/ftello (License): Relax to LGPLv2+.
20840         Reported by Eric Blake.
20841
20842 2010-08-28  Bruno Haible  <bruno@clisp.org>
20843
20844         Avoid relocwrapper link errors due to gnulib replacement functions.
20845         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20846         function.
20847         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20848
20849 2010-08-28  Bruno Haible  <bruno@clisp.org>
20850
20851         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20852         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20853         defined.
20854         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20855         Suggested by Eric Blake.
20856
20857 2010-08-28  Bruno Haible  <bruno@clisp.org>
20858
20859         sys_socket, netdb: Ensure socklen_t gets defined.
20860         * modules/sys_socket (Depends-on): Add socklen.
20861         * modules/netdb (Depends-on): Likewise.
20862         * modules/getaddrinfo (Depends-on): Remove socklen.
20863         * modules/getsockopt (Depends-on): Likewise.
20864         * modules/setsockopt (Depends-on): Likewise.
20865         * tests/test-sys_socket.c: Check that socklen_t is defined.
20866         * tests/test-netdb.c: Likewise.
20867         * m4/socklen.m4: Update comments.
20868         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20869
20870 2010-08-27  Eric Blake  <eblake@redhat.com>
20871
20872         login_tty: add missing dependency
20873         * modules/login_tty (Depends-on): Add pty.
20874
20875 2010-08-26  Eric Blake  <eblake@redhat.com>
20876
20877         lib-symbol-versions: fix m4 quoting
20878         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20879         format for AC_LINK_IFELSE.
20880
20881         glob: fix compile test
20882         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20883
20884         btowc: fix missing file
20885         * modules/btowc (Files): Also ship locale-fr.m4.
20886
20887         lseek: fix link test
20888         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20889         AC_LINK_IFELSE.
20890
20891         include_next: silence autoconf 2.68 warning
20892         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20893         AC_COMPILE_IFELSE as special.
20894         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20895         autoconf < 2.68.
20896
20897         acl: fix compilation test
20898         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20899         AC_COMPILE_IFELSE.
20900
20901 2010-08-26  Bruno Haible  <bruno@clisp.org>
20902
20903         Modernize AC_TRY_RUN invocations.
20904         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20905         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20906         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20907         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20908         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20909         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20910         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20911         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20912         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20913         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20914         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20915         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20916         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20917         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20918         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20919         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20920         gl_MBRLEN_NUL_RETVAL): Likewise.
20921         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20922         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20923         Likewise.
20924         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20925         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20926         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20927         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20928         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20929         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20930         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20931         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20932         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20933         Likewise.
20934         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20935         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20936         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20937         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20938         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20939         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20940         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20941         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20942         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20944
20945 2010-08-26  Bruno Haible  <bruno@clisp.org>
20946
20947         Modernize AC_TRY_LINK invocations.
20948         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20949         AC_TRY_LINK.
20950         * m4/argp.m4 (gl_ARGP): Likewise.
20951         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20952         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20953         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20954         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20955         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20956         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20957         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20958         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20959         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20960         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20961         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20962         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20963         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20964         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20965         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20966         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20967         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20968         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20969         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20970         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20971         Likewise.
20972         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20973         Likewise.
20974         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20975         Likewise.
20976         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20977         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20978         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20979         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20980         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20981         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20982         * m4/servent.m4 (gl_SERVENT): Likewise.
20983         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20984         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20985         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20986         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20987         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20988         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20989         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20990         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20991         * modules/tsearch-tests (configure.ac): Likewise.
20992
20993 2010-08-26  Bruno Haible  <bruno@clisp.org>
20994
20995         Modernize AC_TRY_COMPILE invocations.
20996         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20997         AC_TRY_COMPILE.
20998         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20999         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21000         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21001         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21002         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21003         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21004         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21005         * m4/lock.m4 (gl_LOCK): Likewise.
21006         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21007         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21008         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21009         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21010         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21011         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21012         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21013         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21014         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21015         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21016         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21017         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21018         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21019         extraneous semicolon.
21020
21021 2010-08-26  Jim Meyering  <meyering@redhat.com>
21022
21023         stat-time: relax license LGPL
21024         * modules/stat-time (License): Change from GPL to LGPL,
21025         with consent from all contributors, for use in libguile.
21026         Requested by Ludovic Courtès.
21027
21028 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21029
21030         poll: return immediately on POLLHUP.
21031         * lib/poll.c (poll): Always set timeout before wait_timeout is
21032         computed.
21033
21034 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21035
21036         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21037         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21038         rmdir ("dir/.//"), unlinkat.
21039
21040 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21041
21042         stdbool: avoid spurious failure with modern xlc
21043         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21044
21045 2010-08-24  Bruno Haible  <bruno@clisp.org>
21046
21047         getloadavg: simplify code
21048         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21049         gl_have_func. Update comments.
21050
21051 2010-08-24  Eric Blake  <eblake@redhat.com>
21052
21053         getloadavg: don't define SVR4 on cygwin
21054         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21055         only define SVR4 when -lkvm is required.
21056         Reported by Yaakov Selkowitz.
21057
21058 2010-08-24  Bruno Haible  <bruno@clisp.org>
21059
21060         priv-set: fix comment
21061         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21062
21063 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21064
21065         priv-set: fix comments
21066         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21067         to match code, as suggested by David Bartley in:
21068         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21069
21070 2010-08-23  Eric Blake  <eblake@redhat.com>
21071
21072         stdbool: avoid rejecting clang
21073         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21074         * tests/test-stdbool.c: Enable more tests if using the system
21075         <stdbool.h> instead of the gnulib replacement.
21076         (main): Move xlc bug test to a runtime test for all compilers.
21077         Reported by Anders Kaseorg.
21078
21079         argz: fix shell quoting issue
21080         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21081         Reported by Charles Wilson.
21082
21083 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21084             Erik Faye-Lund <kusmabite@gmail.com>
21085
21086         poll, select: handle ERROR_BROKEN_PIPE.
21087         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21088         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21089         * lib/select.c (win32_compute_revents): Do not mark a pipe
21090         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21091
21092 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21093
21094         fts: allow compilation with C++
21095         * lib/fts_.h: Specify extern "C" linkage with C++.
21096
21097 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21098
21099         Fix gnulib-tool sed script de-commentation for AIX sed.
21100         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21101         sed.
21102
21103 2010-08-17  Eric Blake  <eblake@redhat.com>
21104
21105         test-stddef: test for (some) offsetof bugs
21106         * tests/test-stddef.c: Enhance test to ensure correct type of
21107         offsetof.
21108         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21109         that we are not fixing at this time.
21110
21111 2010-08-15  Bruno Haible  <bruno@clisp.org>
21112
21113         stpncpy: Allow stpncpy to be defined as a macro.
21114         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21115         if it's already correctly declared.
21116         * lib/string.in.h (stpncpy): Undefine before redefining.
21117         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21118
21119 2010-08-14  Bruno Haible  <bruno@clisp.org>
21120
21121         Rename module 'memxfrm' to 'amemxfrm'.
21122         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21123         (amemxfrm): Renamed from memxfrm.
21124         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21125         (amemxfrm): Renamed from memxfrm.
21126         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21127         * NEWS: Mention the change.
21128         * MODULES.html.sh (String handling <string.h>): Update.
21129         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21130         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21131         * lib/unicase/u16-casexfrm.c: Likewise.
21132         * lib/unicase/u32-casexfrm.c: Likewise.
21133         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21134         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21135         * lib/uninorm/u16-normxfrm.c: Likewise.
21136         * lib/uninorm/u32-normxfrm.c: Likewise.
21137         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21138         memxfrm.
21139         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21140         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21141         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21142         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21143         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21144         Suggested by Paul Eggert.
21145
21146 2010-08-14  Bruno Haible  <bruno@clisp.org>
21147
21148         Tests for module 'astrxfrm'.
21149         * modules/astrxfrm-tests: New file.
21150         * tests/test-astrxfrm.c: New file.
21151
21152         New module 'astrxfrm'.
21153         * lib/astrxfrm.h: New file.
21154         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21155         * modules/astrxfrm: New file.
21156
21157 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21158
21159         regex: Tweak doc.
21160         * doc/regex.texi (Overview): Don't mention regex.c.
21161         (GNU Regular Expression Compiling): Likewise.
21162         (Match-end-of-line Operator): Mention 'not_eol'.
21163
21164 2010-08-14  Brian Gough  <bjg@gnu.org>
21165             Bruno Haible  <bruno@clisp.org>
21166
21167         git-merge-changelog: add doc relating to use with bzr and hg.
21168         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21169
21170 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21171
21172         pthread: fix pthread.h creation for srcdir != builddir
21173         * modules/pthread (Makefile.am): Fix the rule to work also in a
21174         non-srcdir build.
21175
21176 2010-08-13  Karl Berry  <karl@gnu.org>
21177
21178         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21179         * doc/posix-*/*: force line break before @url of POSIX
21180         specifications.
21181         Suggested by Werner Lemberg.
21182
21183 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21184
21185         strtod: fix const diagnostic
21186         * lib/strtod.c (strtod): Don't assign const char * to char *,
21187         as this elicits a warning from GCC when warnings are enabled.
21188
21189 2010-08-10  Pádraig Brady <P@draigbrady.com>
21190         and Eric Blake  <eblake@redhat.com>
21191
21192         copy-acl: ignore ENOTSUP on HP-UX
21193         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21194         so that it is available for HP-UX.
21195         * lib/copy-acl.c (qcopy_acl): Use it.
21196         Reported by Patrick M. Callahan.
21197
21198 2010-08-10  Eric Blake  <eblake@redhat.com>
21199
21200         open, chown: relax license
21201         * modules/open (License): Change to LGPLv2+, with consent by all
21202         authors, for use in augeas.
21203         * modules/chown (License): Likewise.
21204         * modules/lchown (Likewise): Likewise.
21205         Requested by Adam Stokes.
21206
21207 2010-08-09  Karl Berry  <karl@gnu.org>
21208
21209         * build-aux/ar-lib: new file, import from Automake.
21210         * config/srclist.txt: autocheck for updates.
21211
21212 2010-08-09  Eric Blake  <eblake@redhat.com>
21213
21214         readlinkat: adjust client modules
21215         * modules/areadlinkat (Depends-on): Use readlinkat, not
21216         symlinkat.
21217         * modules/areadlinkat-with-size (Depends-on): Likewise.
21218
21219         mknod: be more vocal about danger of running tests as root
21220         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21221         root, since that is just asking for problems.
21222         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21223
21224         readlinkat: split into its own module
21225         * modules/symlinkat: Split readlinkat...
21226         * modules/readlinkat: ...into separate module.
21227         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21228         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21229         * lib/symlinkat.c (readlinkat): Move...
21230         * lib/readlinkat.c: ...into new file.
21231         * modules/symlinkat-tests: Split readlinkat test...
21232         * modules/readlinkat-tests: ...into separate module.
21233         * tests/test-symlinkat.c: Split...
21234         * tests/test-readlinkat.c: ...into new file.
21235         * NEWS: Document the split.
21236         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21237         * lib/unistd.in.h (readlinkat): Likewise.
21238         Suggested by Bruno Haible.
21239
21240 2010-08-08  Bruno Haible  <bruno@clisp.org>
21241
21242         memxfrm: Speed up.
21243         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21244         that usually only one call to strxfrm is necessary for each string
21245         part.
21246         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21247
21248 2010-08-07  Karl Berry  <karl@gnu.org>
21249
21250         * doc/posix-headers/limits.texi,
21251         * doc/posix-functions/malloc.texi,
21252         * doc/posix-functions/strsignal.texi: missing @item.
21253         * doc/ld-version-script.texi: spurious leading i.
21254         * doc/regex.texi (Interval Operators): no commas inside @var.
21255
21256 2010-08-01  Bruno Haible  <bruno@clisp.org>
21257
21258         Integrate the regex documentation.
21259         * doc/gnulib.texi: Define 'cn' index.
21260         (Regular expressions): New a chapter that includes regex.texi and
21261         regexprops-generic.texi.
21262         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21263         syntax.
21264
21265         Whitespace cleanup.
21266         * doc/regex.texi: Remove trailing spaces.
21267
21268         Add regex documentation.
21269         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21270         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21271         Written by Kathy A. Hargreaves and Karl Berry.
21272
21273 2010-08-01  Bruno Haible  <bruno@clisp.org>
21274
21275         link: Update documentation.
21276         * doc/posix-functions/link.texi: Update regarding Solaris.
21277
21278 2010-07-31  Bruno Haible  <bruno@clisp.org>
21279
21280         Update modules list.
21281         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21282         (String handling <string.h>): Add memcmp2, memxfrm.
21283         (Container data structures): Add xlist, xsublist, xoset.
21284         (Core language properties): Add alignof, unused-parameter.
21285         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21286         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21287         (Unibyte characters <ctype.h>): New section.
21288         (String handling <string.h>): New section.
21289         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21290         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21291         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21292         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21293         tan, tanh, tanl, y0, y1, yn.
21294         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21295         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21296         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21297         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21298         unlockpt, vdprintf, vdprintf-posix.
21299         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21300         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21301         xconcat-filename.
21302         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21303         getdtablesize, pipe2, pipe2-safer.
21304         (Security): New section.
21305         (Networking functions): Add accept4.
21306         (Signal handling): Add sigpipe.
21307         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21308         mbmemcasecoll.
21309         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21310         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21311         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21312         pipe-filter-ii.
21313         (Misc): Add argp-version-etc, login_tty, parse-duration.
21314
21315 2010-07-31  Bruno Haible  <bruno@clisp.org>
21316
21317         Improve doc in MODULES.html.
21318         * modules/linkat (Description): Add the word "function".
21319         * modules/mkfifo (Description): Likewise.
21320         * modules/mknod (Description): Likewise.
21321         * modules/remove (Description): Likewise.
21322         * modules/renameat (Description): Likewise.
21323         * modules/stat (Description): Likewise.
21324         * modules/symlink (Description): Likewise.
21325         * modules/unlink (Description): Likewise.
21326
21327 2010-07-31  Bruno Haible  <bruno@clisp.org>
21328
21329         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21330         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21331         option --enable/disable-c++ instead of --enable/disable-cxx.
21332         * NEWS: Mention the change.
21333
21334 2010-07-31  Bruno Haible  <bruno@clisp.org>
21335
21336         readlink, areadlink: Relax test a bit.
21337         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21338         alternative to ENOTDIR.
21339         * tests/test-areadlink.h (test_areadlink): Likewise.
21340         Reported by Rainer Tammer.
21341
21342 2010-07-31  Bruno Haible  <bruno@clisp.org>
21343
21344         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21345         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21346         character, perform the search using U_STRCHR.
21347         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21348         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21349         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21350         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21351         Suggested by Paolo Bonzini.
21352
21353 2010-07-31  Bruno Haible  <bruno@clisp.org>
21354
21355         unistr/u*-strstr: Fix dependencies.
21356         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21357         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21358         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21359
21360 2010-07-31  Bruno Haible  <bruno@clisp.org>
21361
21362         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21363         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21364         the beginning of the loop.
21365         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21366         cases in 'switch' statement.
21367
21368         unistr/u8-strchr: Fix several bugs.
21369         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21370         the string. When not found, return NULL, not a pointer near the end.
21371
21372         More tests for unistr/u8-strchr.
21373         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21374         that the function does not read past the first occurrence of the byte
21375         being searched.
21376         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21377         * tests/unistr/test-u16-strchr.c (main): New function.
21378         * tests/unistr/test-u32-strchr.c (main): New function.
21379
21380 2010-07-31  Bruno Haible  <bruno@clisp.org>
21381
21382         posix-modules: Ignore backup files of documentation files.
21383         * posix-modules: grep only through files named *.texi.
21384
21385 2010-07-31  Bruno Haible  <bruno@clisp.org>
21386
21387         symlinkat: Fix documentation.
21388         * doc/posix-functions/readlinkat.texi: Fix module name.
21389
21390 2010-07-31  Bruno Haible  <bruno@clisp.org>
21391
21392         fchownat: Replace also when chown has the trailing slash bug.
21393         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21394         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21395         introduced on 2010-04-10.
21396         Reported by Rainer Tammer.
21397
21398 2010-07-31  Bruno Haible  <bruno@clisp.org>
21399
21400         linkat: Work around AIX 7.1 bug.
21401         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21402         whether linkat handles trailing slash correctly. If not, replace linkat
21403         and define LINKAT_TRAILING_SLASH_BUG.
21404         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21405         check whether (fd1,file1) points to a directory if file1 or file2 ends
21406         in a slash. Code taken from lib/link.c.
21407         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21408         Reported by Rainer Tammer.
21409
21410 2010-07-31  Bruno Haible  <bruno@clisp.org>
21411
21412         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21413         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21414         This disables an xlc optimization that was causing wrong test results.
21415         Reported by Rainer Tammer.
21416
21417 2010-07-31  Bruno Haible  <bruno@clisp.org>
21418
21419         iconv: Work around AIX 6.1..7.1 bug.
21420         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21421         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21422         cross-compiling, guess no on all versions of AIX.
21423         Reported by Rainer Tammer.
21424
21425 2010-07-31  Bruno Haible  <bruno@clisp.org>
21426
21427         readlink: Relax test a bit.
21428         * tests/test-readlink.h (test_readlink): Allow different errno value
21429         when readlink is called with a file name that ends in / and refers to
21430         a file.
21431         Suggested by Eric Blake.
21432         Reported by Rainer Tammer.
21433
21434 2010-07-31  Bruno Haible  <bruno@clisp.org>
21435
21436         copysign: Does not require -lm on glibc systems.
21437         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21438         gl_COMMON_DOUBLE_MATHFUNC.
21439         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21440
21441 2010-07-31  Bruno Haible  <bruno@clisp.org>
21442
21443         duplocale: Work around AIX 7.1 bug.
21444         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21445         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21446         * lib/duplocale.c (rpl_duplocale): Update comment.
21447         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21448         Reported by Rainer Tammer.
21449
21450 2010-07-30  Bruno Haible  <bruno@clisp.org>
21451
21452         dirfd: Avoid link error on AIX 7.1.
21453         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21454         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21455         exist, set REPLACE_DIRFD.
21456         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21457         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21458         * doc/posix-functions/dirfd.texi: Update.
21459         Reported by Rainer Tammer.
21460
21461 2010-07-30  Eric Blake  <eblake@redhat.com>
21462
21463         strtod: next round of AIX fixes
21464         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21465         exponent.
21466         * tests/test-strtod.c (main): Enhance tests.
21467         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21468         Reported by Rainer Tammer.
21469
21470         futimens: fix configure check
21471         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21472         Reported by Bruno Haible.
21473
21474 2010-07-30  Bruno Haible  <bruno@clisp.org>
21475
21476         getline: Update regarding AIX.
21477         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21478         Reported by Rainer Tammer.
21479
21480 2010-07-30  Bruno Haible  <bruno@clisp.org>
21481
21482         wcwidth: Drop replacement on AIX 7.
21483         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21484         AIX 7.
21485         Reported by Rainer Tammer.
21486
21487 2010-07-30  Bruno Haible  <bruno@clisp.org>
21488
21489         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21490         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21491         a 'char *'.
21492         Reported by Rainer Tammer.
21493
21494 2010-07-30  Bruno Haible  <bruno@clisp.org>
21495
21496         unlink: Update regarding AIX.
21497         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21498         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21499         Reported by Rainer Tammer.
21500
21501 2010-07-30  Bruno Haible  <bruno@clisp.org>
21502
21503         symlink: Update regarding AIX.
21504         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21505         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21506         Reported by Rainer Tammer.
21507
21508 2010-07-30  Bruno Haible  <bruno@clisp.org>
21509
21510         strndup: Update regarding AIX.
21511         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21512         AIX 7.
21513         Reported by Rainer Tammer.
21514
21515 2010-07-30  Bruno Haible  <bruno@clisp.org>
21516
21517         stat: Update regarding AIX.
21518         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21519         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21520         Reported by Rainer Tammer.
21521
21522 2010-07-30  Bruno Haible  <bruno@clisp.org>
21523
21524         truncl: Fix autoconf test.
21525         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21526         whether truncl works.
21527         Reported by Rainer Tammer.
21528
21529 2010-07-30  Bruno Haible  <bruno@clisp.org>
21530
21531         round: Update regarding AIX.
21532         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21533         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21534         Reported by Rainer Tammer.
21535
21536 2010-07-30  Bruno Haible  <bruno@clisp.org>
21537
21538         rename: Update regarding AIX.
21539         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21540         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21541         Reported by Rainer Tammer.
21542
21543 2010-07-30  Bruno Haible  <bruno@clisp.org>
21544
21545         printf.m4: Update regarding AIX.
21546         * m4/printf.m4: Update comments regarding AIX.
21547         Reported by Rainer Tammer.
21548
21549 2010-07-30  Bruno Haible  <bruno@clisp.org>
21550
21551         iconv: Update regarding AIX.
21552         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21553         AIX 7.
21554         Reported by Rainer Tammer.
21555
21556 2010-07-30  Bruno Haible  <bruno@clisp.org>
21557
21558         getopt: Update regarding AIX.
21559         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21560         no on AIX.
21561         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21562         Reported by Rainer Tammer.
21563
21564 2010-07-30  Bruno Haible  <bruno@clisp.org>
21565
21566         ldexpl; Update regarding AIX.
21567         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21568         on AIX 7.
21569         Reported by Rainer Tammer.
21570
21571 2010-07-30  Bruno Haible  <bruno@clisp.org>
21572
21573         frexpl: Update regarding AIX.
21574         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21575         on AIX 7.
21576         Reported by Rainer Tammer.
21577
21578 2010-07-30  Bruno Haible  <bruno@clisp.org>
21579
21580         open, fopen: Update regarding AIX.
21581         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21582         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21583         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21584         * doc/posix-functions/fopen.texi: Likewise.
21585         Reported by Rainer Tammer.
21586
21587 2010-07-30  Bruno Haible  <bruno@clisp.org>
21588
21589         chown: Update doc regarding AIX.
21590         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21591         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21592         Reported by Rainer Tammer.
21593
21594 2010-07-30  Eric Blake  <eblake@redhat.com>
21595
21596         strtod: fix bug in replacement function on AIX
21597         * lib/strtod.c (strtod): Special case broken "0x" parse in
21598         underlying strtod.
21599         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21600         * doc/posix-functions/strtod.texi (strtod): Likewise.
21601         Reported by Rainer Tammer.
21602
21603 2010-07-30  Bruno Haible  <bruno@clisp.org>
21604
21605         mbrlen: Fix cross-compilation guess for AIX.
21606         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21607         guess. Leftover from 2008-12-22.
21608
21609 2010-07-30  Bruno Haible  <bruno@clisp.org>
21610
21611         mbrtowc: Fix cross-compilation guess for AIX.
21612         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21613         guess. Leftover from 2008-12-21.
21614
21615 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21616
21617         init.sh: work around trap limitation of some shells
21618         * tests/init.sh (setup_): Move exit trap outside of shell function.
21619
21620 2010-07-29  Eric Blake  <eblake@redhat.com>
21621
21622         strtod: aid debugging
21623         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21624         understanding why strtod is rejected.
21625
21626 2010-07-28  Bruno Haible  <bruno@clisp.org>
21627
21628         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21629         * lib/unistr/u8-chr.c: Include <string.h>.
21630         * tests/unistr/test-u8-chr.c: Likewise.
21631         * tests/unistr/test-u16-chr.c: Likewise.
21632         * tests/unistr/test-u32-chr.c: Likewise.
21633         * tests/unistr/test-u8-strchr.c: Likewise.
21634         * tests/unistr/test-u16-strchr.c: Likewise.
21635         * tests/unistr/test-u32-strchr.c: Likewise.
21636         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21637         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21638         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21639         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21640
21641 2010-07-28  Bruno Haible  <bruno@clisp.org>
21642
21643         Use spaces for indentation, not tabs.
21644         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21645
21646 2010-07-27  Bruno Haible  <bruno@clisp.org>
21647
21648         mbspcasecmp: Fix function specification.
21649         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21650         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21651         Reported by Eric Blake <eblake@redhat.com>.
21652
21653 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21654
21655         timespec: use cast and not conditional, as truncation isn't possible
21656         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21657         instead of a conditional.  Comment about the situation in more detail.
21658         This undoes most of the 2009-10-29 patch.
21659
21660 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21661
21662         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21663         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21664         * lib/unistr/u8-strchr.c: Likewise.
21665         * modules/unistr/u8-chr: Depend on memchr.
21666
21667         unistr/u*-strchr: add tests
21668         * modules/unistr/u8-strchr-tests: New file.
21669         * modules/unistr/u16-strchr-tests: New file.
21670         * modules/unistr/u32-strchr-tests: New file.
21671         * tests/unistr/test-strchr.h: New file.
21672         * tests/unistr/test-u8-strchr.c: New file.
21673         * tests/unistr/test-u16-strchr.c: New file.
21674         * tests/unistr/test-u32-strchr.c: New file.
21675
21676         unistr/u*-chr: test multibyte sequences more
21677         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21678         test vector.
21679         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21680         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21681         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21682
21683         unistr/u*-chr: test multibyte sequences
21684         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21685
21686         unistr/u*-chr: prepare for multibyte tests
21687         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21688         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21689         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21690         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21691         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21692         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21693
21694 2010-07-18  Bruno Haible  <bruno@clisp.org>
21695
21696         unistr/u8-strchr: Optimize non-ASCII argument case.
21697         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21698         because the first byte often matches anyway.
21699         Reported by Pádraig Brady <P@draigbrady.com>.
21700
21701 2010-07-15  Karl Berry  <karl@gnu.org>
21702
21703         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21704
21705 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21706
21707         getcwd: on Solaris, work better if ancestors are inaccessible
21708         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21709         buffer and size, try again with a large buffer.  This works better
21710         on Solaris, since its getcwd succeeds even if the path to the root
21711         is inaccessible, and this is helpful in common cases such as .zfs
21712         hidden directories.  Problem reported by J Chapman Flack in
21713         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21714         Use system getcwd if it's declared, not merely if it's partly
21715         working; use the partly-working test only to avoid needless effort
21716         if the system getcwd fails.
21717         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21718         comment that was already obsolete and is now even more obsolete.
21719         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21720         now might call strdup.
21721
21722 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21723
21724         pthread: Add enough so that coreutils/src/sort.c compiles.
21725         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21726         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21727         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21728         Include <sys/types.h>, in case it defines pthread_t.
21729         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21730         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21731         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21732         (pthread_rwlockattr_t, pthread_spinlock_t):
21733         New typedefs, if HAVE_PTHREAD_T is not defined.
21734         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21735         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21736         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21737         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21738         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21739         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21740         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21741         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21742         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21743         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21744         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21745         New macros.
21746         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21747         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21748         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21749         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21750         (pthread_spin_unlock): New dummy functions.
21751         (pthread_create): Return EAGAIN; don't set errno.
21752         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21753         require AC_C_INLINE.
21754         * modules/pthread (Depends-on): Add sched, time.
21755         (pthread.h): Use AM_V_GEN.
21756
21757 2010-07-13  Bruno Haible  <bruno@clisp.org>
21758
21759         striconveh: Don't malloc memory if the result buffer is sufficient.
21760         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21761         buffer if its size is sufficient.
21762         Reported by Ludovic Courtès <ludo@gnu.org>.
21763
21764 2010-07-13  Bruno Haible  <bruno@clisp.org>
21765
21766         strtod: Add safety check.
21767         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21768
21769 2010-07-12  Bruno Haible  <bruno@clisp.org>
21770
21771         Unify tests that set gl_cv_func_ldexpl_no_libm.
21772         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21773         gl_FUNC_LDEXPL.
21774         (gl_FUNC_LDEXPL): Invoke it.
21775         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21776
21777 2010-07-12  Bruno Haible  <bruno@clisp.org>
21778
21779         Unify tests that set gl_cv_func_ldexp_no_libm.
21780         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21781         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21782         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21783         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21784         * modules/strtod (Files): Add m4/ldexp.m4.
21785
21786 2010-07-12  Bruno Haible  <bruno@clisp.org>
21787
21788         Unify tests that set gl_cv_func_frexpl_no_libm.
21789         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21790         gl_FUNC_FREXPL_NO_LIBM.
21791         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21792         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21793
21794 2010-07-12  Bruno Haible  <bruno@clisp.org>
21795
21796         Unify tests that set gl_cv_func_frexp_no_libm.
21797         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21798         gl_FUNC_FREXP_NO_LIBM.
21799         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21800         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21801
21802 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21803
21804         memcoll: clarify sizes versus lengths, document better, and tweak perf
21805         * lib/memcoll.c (strcoll_loop, memcoll0):
21806         Improve quality of descriptive comments.  Name variables
21807         consistently as to whether they are lengths (which do not include
21808         terminating null) versus sizes (which do).
21809         * lib/xmemcoll.c (xmemcoll0): Likewise.
21810         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21811         returned when s1size == 0; this is easier to compile and saves
21812         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21813
21814 2010-07-12  Bruno Haible  <bruno@clisp.org>
21815
21816         Tests for module '_Exit'.
21817         * modules/_Exit-tests: New file.
21818         * tests/test-_Exit.sh: New file.
21819         * tests/test-_Exit.c: New file.
21820
21821         New module '_Exit'.
21822         * lib/stdlib.in.h (__attribute__): New macro.
21823         (_Exit): New declaration.
21824         * lib/_Exit.c: New file.
21825         * m4/_Exit.m4: New file.
21826         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21827         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21828         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21829         * modules/_Exit: New file.
21830         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21831         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21832
21833 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21834
21835         strtod: make it more-accurate typically, and don't require libm
21836         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21837         Include limits.h.  Don't include string.h.
21838         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21839         (locale_isspace): New function, so that no casts are needed to
21840         check whether *s is a space.
21841         (ldexp): Provide an unused dummy if not available.
21842         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21843         (strtod): Use them.  This implementation prefers to use the
21844         underlying strtod if available, falling back on our own code
21845         only to fix known bugs.  This is more likely to produce an
21846         accurate result.  Also, it avoids the use of libm functions.
21847         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21848         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21849         was absent, but it caused a test failure with coreutils.
21850         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21851         with libm.
21852         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21853         * modules/strtod-tests (Makefile.am): Likewise.
21854
21855 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21856             Bruno Haible  <bruno@clisp.org>
21857
21858         unistr/u8-strchr: Optimize ASCII argument case.
21859         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21860
21861 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21862
21863         (x)memcoll: minor tweaks
21864         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21865         is after the type that it qualifies.
21866         (memcoll0): Likewise.
21867         * lib/memcoll.h (memcoll0): Likewise.
21868         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21869         * lib/xmemcoll.h (xmemcoll0): Likewise.
21870         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21871         differs from memcoll in that the NUL byte is part of the argument.
21872         Omit the abort-checks, as performance is a real issue here.  Plus,
21873         the checks were wrong anyway (an off-by-one error).  Omit local
21874         variable 'diff', as it's a bit clearer that way.
21875         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21876         no longer needed.
21877
21878 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21879
21880         (x)memcoll: speedup when input is known to be NUL delimited
21881         * lib/memcoll.c: Include stdlib.
21882         (memcoll0): New function.
21883         (strcoll_loop): New function, refactored for use in both memcoll
21884         and memcoll0.
21885         * lib/memcoll.h (memcoll0): Add prototype.
21886         * lib/xmemcoll.c (xmemcoll0): New function.
21887         (collate_error): New function, refactored for use in both xmemcoll
21888         and xmemcoll0.
21889         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21890         * m4/memcoll.m4: add inline invocation.
21891
21892 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21893
21894         * build-aux/bootstrap: Remove any local translations
21895         from the translation project synchronization directory,
21896         so that local only translations are not distributed.
21897
21898 2010-07-04  Bruno Haible  <bruno@clisp.org>
21899
21900         fsusage: Clarify which code applies to which platforms.
21901         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21902         platform.
21903         * lib/fsusage.c (get_fs_usage): Likewise.
21904
21905 2010-07-04  Bruno Haible  <bruno@clisp.org>
21906
21907         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21908         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21909         Reported by Martin Lambers <marlam@marlam.de>.
21910
21911 2010-07-04  Jim Meyering  <meyering@redhat.com>
21912
21913         hash: once again explicitly disallow insertion of NULL
21914         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21915         inserting a NULL pointer cannot work with these functions.
21916         Add a comment with details.
21917         This reverts part of the 2010-07-01 commit, 5bef1a35
21918         "hash: extend module to deal with non-pointer keys".
21919
21920 2010-07-01  Bruno Haible  <bruno@clisp.org>
21921
21922         stdbool: Update doc.
21923         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21924         Info from Christian Weisgerber <naddy@mips.inka.de>.
21925
21926 2010-07-01  Jim Meyering  <meyering@redhat.com>
21927
21928         hash: extend module to deal with non-pointer keys
21929         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21930         but that allows insertion of non-pointer entries.
21931         Do not disallow an ENTRY value of NULL.
21932         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21933         * lib/hash.h (hash_insert0): Declare.
21934
21935 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21936
21937         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21938         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21939         not present (i.e. with autoconf 2.59 and when using gettextize, not
21940         gnulib), require AC_GNU_SOURCE instead.
21941
21942 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21943
21944         idpriv-drop: Fix tests.
21945         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21946         not to the test-idpriv-droptemp program.
21947
21948 2010-06-29  Bruno Haible  <bruno@clisp.org>
21949
21950         string: Fix syntax error with g++ 2.96.
21951         * lib/string.in.h (__pure__): Remove definition.
21952         (_GL_ATTRIBUTE_PURE): New macro.
21953         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21954         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21955         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21956
21957 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21958
21959         unitypes: Fix bug introduced on 2010-05-18.
21960         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21961
21962 2010-06-22  Eric Blake  <eblake@redhat.com>
21963
21964         memmem: slight optimization
21965         * lib/str-two-way.h (critical_factorization): Update comments.
21966         Reduce work during factorization phase.
21967         Reported by Carlos Bueno <carlos@bueno.org>.
21968
21969 2010-06-21  Bruno Haible  <bruno@clisp.org>
21970
21971         Fix HAVE_CALLOC_POSIX misnomer.
21972         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21973         !HAVE_CALLOC_POSIX.
21974         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21975         HAVE_CALLOC_POSIX.
21976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21977         instead of HAVE_CALLOC_POSIX.
21978         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21979         HAVE_CALLOC_POSIX.
21980
21981         Use modern idiom for calloc() replacement.
21982         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21983         AC_FUNC_CALLOC.
21984         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21985         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21986         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21987         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21988         (gl_REPLACE_CALLOC): New macro.
21989
21990 2010-06-21  Bruno Haible  <bruno@clisp.org>
21991
21992         Fix HAVE_REALLOC_POSIX misnomer.
21993         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21994         !HAVE_REALLOC_POSIX.
21995         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21996         HAVE_REALLOC_POSIX.
21997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21998         instead of HAVE_REALLOC_POSIX.
21999         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22000         HAVE_REALLOC_POSIX.
22001
22002         Use modern idiom for realloc() replacement.
22003         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22004         AC_FUNC_REALLOC.
22005         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22006         Autoconf's AC_FUNC_REALLOC.
22007         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22008         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22009         (gl_REPLACE_REALLOC): New macro.
22010         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22011
22012 2010-06-21  Bruno Haible  <bruno@clisp.org>
22013
22014         Fix HAVE_MALLOC_POSIX misnomer.
22015         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22016         !HAVE_MALLOC_POSIX.
22017         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22018         HAVE_MALLOC_POSIX.
22019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22020         instead of HAVE_MALLOC_POSIX.
22021         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22022         HAVE_MALLOC_POSIX.
22023
22024         Use modern idiom for malloc() replacement.
22025         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22026         AC_FUNC_MALLOC.
22027         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22028         Autoconf's AC_FUNC_MALLOC.
22029         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22030         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22031         (gl_REPLACE_MALLOC): New macro.
22032         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22033
22034 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22035
22036         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22037         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22038         This macro takes 3 arguments, not 4.
22039
22040 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22041
22042         ipv6: fix detection under mingw
22043         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22044         in6_addr.
22045
22046 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22047
22048         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22049         that strtod() works when cross-compiling to a glibc version known
22050         to work.
22051
22052 2010-06-15  Bruno Haible  <bruno@clisp.org>
22053
22054         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22055
22056 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22057
22058         select: Correct timeout.
22059         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22060
22061 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22062
22063         git-version-gen: init shell var to avoid env var influence
22064         * build-aux/git-version-gen (v): Init shell var to empty.
22065
22066 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22067
22068         priv-set: Don't assume that priv.h exists merely because getppriv does.
22069         See Jan Andersen's bug report about AIX 5L in
22070         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22071         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22072         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22073         * lib/priv-set.h: Likewise.
22074         * tests/test-priv-set.c: Likewise.
22075
22076 2010-06-13  Bruno Haible  <bruno@clisp.org>
22077
22078         relocatable: Make it easier to test whether to install wrappers.
22079         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22080         RELOCATABLE_VIA_WRAPPER.
22081
22082 2010-06-13  Bruno Haible  <bruno@clisp.org>
22083
22084         gnulib-tool: Display specified modules and dependencies differently.
22085         * gnulib-tool (func_show_module_list): New function.
22086         (func_import, func_create_testdir): Invoke it.
22087         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22088
22089 2010-06-13  Bruno Haible  <bruno@clisp.org>
22090
22091         gnulib-tool: Align code of func_import and func_create_testdir.
22092         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22093         specified_modules.
22094
22095 2010-06-12  Jim Meyering  <meyering@redhat.com>
22096
22097         test-inttostr: avoid spurious failure on Solaris 9
22098         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22099         to accept "%ju".  Reported by Bruno Haible.
22100
22101 2010-06-11  Jim Meyering  <meyering@redhat.com>
22102
22103         test-sys_socket: mark variables as used more readably
22104         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22105         as "used" explicitly via (void) statement casts.  This is more
22106         readable than using them in an artificial return expression.
22107         Suggestion from Bruno Haible.
22108
22109 2010-06-11  Bruno Haible  <bruno@clisp.org>
22110
22111         Avoid some more warnings from "gcc -Wwrite-strings".
22112         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22113         to 'const char *'.
22114         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22115         * tests/test-c-strcasestr.c (main): Likewise.
22116         * tests/test-mbscasestr1.c (main): Likewise.
22117         * tests/test-mbscasestr2.c (main): Likewise.
22118         * tests/test-memmem.c (main): Likewise.
22119         * tests/test-strstr.c (main): Likewise.
22120         * tests/test-strcasestr.c (main): Likewise.
22121
22122 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22123
22124         init.sh: change framework_failure_ to fail with status 99, not 1
22125         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22126         automake's parallel-tests rule that this is an unexpected failure,
22127         even if the test is listed in XFAIL_TESTS.
22128
22129 2010-06-11  Jim Meyering  <meyering@redhat.com>
22130
22131         test-inttostr: avoid warnings about 4-6KB literal strings
22132         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22133         Include "macros.h", for its definition of ASSERT.
22134         (CK): s/assert/ASSERT/
22135         * modules/inttostr-tests (Files): Add macros.h.
22136
22137         init.sh: don't use $ME_ or skip_ before they are defined
22138         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22139         their first uses.  Also hoist their companions: warn_, fail_,
22140         framework_failure_, $stderr_fileno.  Prompted by a patch from
22141         Stefano Lattarini.
22142
22143         test-sys_socket: avoid set-but-not-used warnings from gcc
22144         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22145         avoid warning about set-but-not-used variables.
22146
22147         test-xvasprintf: avoid 'const' discard warnings
22148         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22149         "const" when assigning from literal strings.
22150         (test_xasprintf): Add "void" in function argument list to placate
22151         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22152
22153         tests: avoid compilation warnings in argmatch and exclude tests...
22154         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22155         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22156         Since it always exits, declare with the "noreturn" attribute.
22157         * tests/test-argmatch.c: Likewise.
22158
22159         tests: avoid 'const' discard warnings in mbsstr tests
22160         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22161         * tests/test-mbsstr2.c (main): Likewise.
22162
22163         test-verify: avoid warning from gcc's -Wmissing-declarations
22164         * tests/test-verify.c (function): Declare to be static.
22165
22166         test-inttostr.c: include <string.h> for use of strcmp
22167         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22168
22169         test-linkat: avoid failed assertion on "other" architectures
22170         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22171         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22172         sparc: https://bugs.launchpad.net/bugs/591968
22173
22174 2010-06-11  Jim Meyering  <meyering@redhat.com>
22175
22176         printf.m4: avoid autoconf's "Expanded Before Required" warning
22177         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22178         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22179         autoconf warning.
22180
22181 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22182
22183         Replacement header templates are now named with ".in", not "_".
22184         * doc/gnulib-intro.texi: Correct.
22185
22186 2010-06-10  Jim Meyering  <meyering@redhat.com>
22187
22188         inttostr-tests: depend on snprintf, not snprintf-posix
22189         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22190         snprintf-posix, to avoid this aclocal failure:
22191           missing file gnulib-tests/vasnprintf.c
22192           configure.ac:45: error: expected source file, required through \
22193           AC_LIBSOURCES, not found
22194
22195 2010-06-10  Jim Meyering  <meyering@redhat.com>
22196
22197         inttostr: add a new function, inttostr, and tests
22198         The namesake function was not available.  The existence of the
22199         template file, inttostr.c makes its addition nontrivial.
22200         * lib/anytostr.c: Rename from inttostr.c.
22201         (anytostr): Rename from inttostr.
22202         * lib/inttostr.c: New file.
22203         * modules/inttostr (Files): Add anytostr.c.
22204         (Makefile.am): Set lib_SOURCES instead of ...
22205         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22206         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22207         * lib/offtostr.c: Likewise.
22208         * lib/uinttostr.c: Likewise.
22209         * lib/umaxtostr.c: Likewise.
22210         * modules/inttostr-tests: New file.
22211         * tests/test-inttostr.c: New file.  Test these functions.
22212
22213 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22214             Bruno Haible  <bruno@clisp.org>
22215
22216         Add "Extending Gnulib" chapter to manual.
22217         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22218         chapter.
22219         (Extending Gnulib): New chapter.
22220         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22221         chapter.
22222
22223 2010-06-09  Bruno Haible  <bruno@clisp.org>
22224
22225         Avoid relocwrapper link errors due to gnulib replacement functions.
22226         * lib/areadlink.c: Use the system's malloc, realloc functions.
22227         (areadlink): Set errno to ENOMEM explicitly.
22228         * modules/areadlink (Depends-on): Remove malloc-posix.
22229         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22230
22231 2010-06-09  Bruno Haible  <bruno@clisp.org>
22232
22233         Avoid relocwrapper link errors due to gnulib replacement functions.
22234         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22235         * lib/malloca.c: Likewise.
22236         * lib/relocatable.c: Likewise.
22237         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22238         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22239         * lib/setenv.c: Use the system's malloc, realloc functions.
22240         * lib/strerror.c: Use the system's sprintf function.
22241         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22242
22243 2010-06-04  Bruno Haible  <bruno@clisp.org>
22244
22245         Prefer documented low-level autoconf macro names.
22246         * m4/lib-link.m4: Use m4_translit instead of translit.
22247         * m4/environ.m4: Likewise.
22248         * m4/mathfunc.m4: Likewise.
22249         * m4/onceonly.m4: Likewise.
22250         * m4/stdint.m4: Likewise.
22251         Suggested by Eric Blake.
22252
22253 2010-06-04  Martin Lambers  <marlam@marlam.de>
22254             Bruno Haible  <bruno@clisp.org>
22255
22256         havelib: Allow library names with '+' characters.
22257         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22258         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22259
22260 2010-06-09  Bruno Haible  <bruno@clisp.org>
22261
22262         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22263         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22264         realloc failed.
22265
22266 2010-06-08  Peter Simons  <simons@cryp.to>
22267
22268         maint.mk: make the news-check rule more configurable
22269         * top/maint.mk (news-check-lines-spec): New variable.
22270         (news-check): Use "sed -n 1,10p" in place of "head".
22271
22272 2010-06-07  Jim Meyering  <meyering@redhat.com>
22273
22274         do-release-commit-and-tag: fix typo in --help
22275         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22276
22277         regex: avoid new dead-code warning with gcc-4.6.0
22278         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22279         if-block containing a while-loop.  It's been unused for at least
22280         5 years.
22281
22282 2010-06-05  Bruno Haible  <bruno@clisp.org>
22283
22284         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22285         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22286
22287 2010-06-04  Bruno Haible  <bruno@clisp.org>
22288
22289         Update to GNU gettext 0.18.1.
22290         * modules/gettext (configure.ac): Require gettext infrastructure from
22291         version 0.18.1.
22292
22293 2010-06-03  Bruno Haible  <bruno@clisp.org>
22294
22295         Don't use AC_LIBOBJ with file names in subdirectories.
22296         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22297         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22298         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22299         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22300         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22301         gl_LIBUNISTRING_LIBSOURCE.
22302         (Makefile.am): Augment lib_SOURCES here, conditionally.
22303         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22304
22305 2010-06-03  Bruno Haible  <bruno@clisp.org>
22306
22307         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22308         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22309         expansion does not end with a newline.
22310         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22311         unnecessary newline.
22312
22313 2010-06-03  Bruno Haible  <bruno@clisp.org>
22314
22315         Reduce dependencies.
22316         * tests/test-quotearg.h: New file, extracted from
22317         tests/test-quotearg.c.
22318         * tests/test-quotearg-simple.c: New file, extracted from
22319         tests/test-quotearg.c.
22320         * tests/test-quotearg.c: Don't include <ctype.h>.
22321         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22322         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22323         use_quote_double_quotes, use_quotearg_colon): Moved to
22324         tests/test-quotearg.h.
22325         (results_g, flag_results, custom_quotes, custom_results): Moved
22326         to tests/test-quotearg-simple.c.
22327         (main): Moved the part that does not depend on gettext to
22328         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22329         performed.
22330         * modules/quotearg-simple: New file.
22331         * modules/quotearg-simple-tests: New file.
22332         * modules/quotearg (Depends-on): Add quotearg-simple.
22333         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22334         (Files): Add tests/test-quotearg.h.
22335         Reported by Paolo Bonzini.
22336
22337 2010-06-03  Bruno Haible  <bruno@clisp.org>
22338
22339         Reduce dependencies.
22340         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22341
22342 2010-06-03  Bruno Haible  <bruno@clisp.org>
22343
22344         time: Undefine more broken macros.
22345         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22346         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22347         Reported by Eric Blake.
22348
22349 2010-06-03  Bruno Haible  <bruno@clisp.org>
22350
22351         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22352         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22353         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22354         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22355         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22356         Reported by Ludovic Courtès <ludo@gnu.org>.
22357
22358 2010-06-02  Eric Blake  <eblake@redhat.com>
22359
22360         time: work with mingw + pthreads-win32 library
22361         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22362         if timespec is defined only in pthread.h.
22363         * modules/time (Makefile.am): Substitute it.
22364         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22365         <pthread.h>, when needed.
22366         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22367         from the library.
22368
22369 2010-05-31  Bruno Haible  <bruno@clisp.org>
22370
22371         Avoid expanding two macros in the wrong order.
22372         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22373         gl_LIBUNISTRING if it is defined.
22374         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22375         autoconf >= 2.64.
22376         Reported by Ludovic Courtès <ludo@gnu.org>.
22377
22378 2010-05-27  Jim Meyering  <meyering@redhat.com>
22379
22380         maint.mk: also prohibit "#undef" of always-defined symbols
22381         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22382         Allow more than one space before the symbol name.
22383         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22384         the regexp uses alternation.
22385
22386 2010-05-26  Eric Blake  <eblake@redhat.com>
22387
22388         maint.mk: avoid echo -e
22389         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22390         Convert all uses of echo -* to printf.
22391         Reported by Matthias Bolte.
22392
22393 2010-05-25  Bruno Haible  <bruno@clisp.org>
22394
22395         Update to GNU gettext 0.18, part 2.
22396         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22397         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22398
22399 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22400
22401         Add missing include in test-pwrite.c.
22402         * tests/test-pwrite.c: Include string.h, for strcmp.
22403
22404 2010-05-24  Bruno Haible  <bruno@clisp.org>
22405
22406         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22407
22408 2010-05-24  Bruno Haible  <bruno@clisp.org>
22409
22410         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22411         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22412         iconveh_error argument.
22413         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22414         U_STRCONV_TO_LOCALE.
22415         * lib/unistr/u16-strcoll.c: Likewise.
22416         * lib/unistr/u32-strcoll.c: Likewise.
22417         * modules/unistr/u8-strcoll (Depends-on): Add
22418         uniconv/u8-strconv-to-enc, localcharset. Remove
22419         uniconv/u8-strconv-to-locale.
22420         (configure.ac): Bump version number.
22421         * modules/unistr/u16-strcoll (Depends-on): Add
22422         uniconv/u16-strconv-to-enc, localcharset. Remove
22423         uniconv/u16-strconv-to-locale.
22424         (configure.ac): Bump version number.
22425         * modules/unistr/u32-strcoll (Depends-on): Add
22426         uniconv/u32-strconv-to-enc, localcharset. Remove
22427         uniconv/u32-strconv-to-locale.
22428         (configure.ac): Bump version number.
22429
22430 2010-05-24  Bruno Haible  <bruno@clisp.org>
22431
22432         Avoid a test failure on NetBSD 5.0.
22433         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22434         an iconv() bug.
22435
22436 2010-05-24  Bruno Haible  <bruno@clisp.org>
22437
22438         Adjust #include directive style.
22439         * modules/regex (Includes): Recommend to write <regex.h>.
22440
22441 2010-05-24  Bruno Haible  <bruno@clisp.org>
22442
22443         regex: Don't require alloca.
22444         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22445         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22446         only inside if (0).
22447
22448 2010-05-23  Jim Meyering  <meyering@redhat.com>
22449
22450         test-renameat.c: include <sys/stat.h>
22451         * tests/test-renameat.c: Include <sys/stat.h>; required for
22452         definition of S_IS* macros.
22453
22454 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22455
22456         Update maintainer documentation for 'relocatable-prog' module.
22457         * doc/relocatable-maint.texi: Update.
22458         Comments by Bruno Haible.
22459
22460 2010-05-23  Bruno Haible  <bruno@clisp.org>
22461
22462         git-merge-changelog: Enable --split-merged-entry by default.
22463         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22464         (usage): Don't mention this option any more.
22465         Reported by Ralf Wildenhues.
22466
22467 2010-05-23  Jim Meyering  <meyering@redhat.com>
22468
22469         test-pwrite: do not leave behind a test file named "out"
22470         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22471         The trivial-looking use of init.sh is really necessary.
22472         It ensures that the temporary file, "out", is created in
22473         a temporary directory, and removed upon termination.
22474         * tests/test-pwrite.sh: Re-add file.
22475         * modules/pwrite-tests: Reference it.
22476
22477 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22478
22479         Fix output redirection buglet in init.sh.
22480         * tests/init.sh: Fix redirection of stderr.
22481
22482 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22483
22484         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22485
22486 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22487
22488         * modules/valgrind-tests: New file.
22489         * m4/valgrind-tests.m4: New file.
22490         * doc/valgrind-tests.texi: New file.
22491         * doc/gnulib.texi (Running self-tests under valgrind): New
22492         section.
22493
22494 2010-05-19  Bruno Haible  <bruno@clisp.org>
22495
22496         Clean up dead code in recent commit.
22497         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22498         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22499         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22500         Suggested by Paolo Bonzini.
22501
22502 2010-05-19  Bruno Haible  <bruno@clisp.org>
22503
22504         Avoid valgrind error reports from libunistring.
22505         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22506         * modules/libunistring (Files): Add it.
22507         * modules/libunistring-optional (Files): Likewise.
22508
22509 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22510             Bruno Haible  <bruno@clisp.org>
22511
22512         New module 'libunistring-optional'.
22513         * modules/libunistring-optional: New file.
22514         * m4/libunistring-base.m4: New file.
22515         * m4/libunistring-optional.m4: New file.
22516         * lib/unicase.in.h: Renamed from lib/unicase.h.
22517         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22518         * lib/unictype.in.h: Renamed from lib/unictype.h.
22519         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22520         * lib/uniname.in.h: Renamed from lib/uniname.h.
22521         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22522         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22523         * lib/unistr.in.h: Renamed from lib/unistr.h.
22524         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22525         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22526         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22527         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22528         gl_LIBUNISTRING. If the library was found, determine the installed
22529         version and set LIBUNISTRING_VERSION.
22530         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22531         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22532         handle a configuration option --with-included-libunistring.
22533         * modules/libunistring (Files): Add m4/absolute-header.m4.
22534         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22535         Add m4/libunistring-base.m4.
22536         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22537         (Makefile.am): Build unicase.h from unicase.in.h.
22538         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22539         Add m4/libunistring-base.m4.
22540         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22541         (Makefile.am): Build uniconv.h from uniconv.in.h.
22542         * modules/unictype/base (Files): Use unictype.in.h instead of
22543         unictype.h. Add m4/libunistring-base.m4.
22544         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22545         (Makefile.am): Build unictype.h from unictype.in.h.
22546         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22547         Add m4/libunistring-base.m4.
22548         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22549         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22550         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22551         Add m4/libunistring-base.m4.
22552         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22553         (Makefile.am): Build uniname.h from uniname.in.h.
22554         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22555         Add m4/libunistring-base.m4.
22556         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22557         (Makefile.am): Build uninorm.h from uninorm.in.h.
22558         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22559         unistdio.h. Add m4/libunistring-base.m4.
22560         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22561         (Makefile.am): Build unistdio.h from unistdio.in.h.
22562         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22563         Add m4/libunistring-base.m4.
22564         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22565         (Makefile.am): Build unistr.h from unistr.in.h.
22566         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22567         Add m4/libunistring-base.m4.
22568         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22569         (Makefile.am): Build unitypes.h from unitypes.in.h.
22570         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22571         Add m4/libunistring-base.m4.
22572         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22573         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22574         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22575         uniwidth.h. Add m4/libunistring-base.m4.
22576         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22577         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22578         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22579         instead of augmenting lib_SOURCES.
22580         * modules/unicase/empty-suffix-context: Likewise.
22581         * modules/unicase/locale-language: Likewise.
22582         * modules/unicase/tolower: Likewise.
22583         * modules/unicase/totitle: Likewise.
22584         * modules/unicase/toupper: Likewise.
22585         * modules/unicase/u8-casecmp: Likewise.
22586         * modules/unicase/u8-casecoll: Likewise.
22587         * modules/unicase/u8-casefold: Likewise.
22588         * modules/unicase/u8-casexfrm: Likewise.
22589         * modules/unicase/u8-ct-casefold: Likewise.
22590         * modules/unicase/u8-ct-tolower: Likewise.
22591         * modules/unicase/u8-ct-totitle: Likewise.
22592         * modules/unicase/u8-ct-toupper: Likewise.
22593         * modules/unicase/u8-is-cased: Likewise.
22594         * modules/unicase/u8-is-casefolded: Likewise.
22595         * modules/unicase/u8-is-lowercase: Likewise.
22596         * modules/unicase/u8-is-titlecase: Likewise.
22597         * modules/unicase/u8-is-uppercase: Likewise.
22598         * modules/unicase/u8-prefix-context: Likewise.
22599         * modules/unicase/u8-suffix-context: Likewise.
22600         * modules/unicase/u8-tolower: Likewise.
22601         * modules/unicase/u8-totitle: Likewise.
22602         * modules/unicase/u8-toupper: Likewise.
22603         * modules/unicase/u16-casecmp: Likewise.
22604         * modules/unicase/u16-casecoll: Likewise.
22605         * modules/unicase/u16-casefold: Likewise.
22606         * modules/unicase/u16-casexfrm: Likewise.
22607         * modules/unicase/u16-ct-casefold: Likewise.
22608         * modules/unicase/u16-ct-tolower: Likewise.
22609         * modules/unicase/u16-ct-totitle: Likewise.
22610         * modules/unicase/u16-ct-toupper: Likewise.
22611         * modules/unicase/u16-is-cased: Likewise.
22612         * modules/unicase/u16-is-casefolded: Likewise.
22613         * modules/unicase/u16-is-lowercase: Likewise.
22614         * modules/unicase/u16-is-titlecase: Likewise.
22615         * modules/unicase/u16-is-uppercase: Likewise.
22616         * modules/unicase/u16-prefix-context: Likewise.
22617         * modules/unicase/u16-suffix-context: Likewise.
22618         * modules/unicase/u16-tolower: Likewise.
22619         * modules/unicase/u16-totitle: Likewise.
22620         * modules/unicase/u16-toupper: Likewise.
22621         * modules/unicase/u32-casecmp: Likewise.
22622         * modules/unicase/u32-casecoll: Likewise.
22623         * modules/unicase/u32-casefold: Likewise.
22624         * modules/unicase/u32-casexfrm: Likewise.
22625         * modules/unicase/u32-ct-casefold: Likewise.
22626         * modules/unicase/u32-ct-tolower: Likewise.
22627         * modules/unicase/u32-ct-totitle: Likewise.
22628         * modules/unicase/u32-ct-toupper: Likewise.
22629         * modules/unicase/u32-is-cased: Likewise.
22630         * modules/unicase/u32-is-casefolded: Likewise.
22631         * modules/unicase/u32-is-lowercase: Likewise.
22632         * modules/unicase/u32-is-titlecase: Likewise.
22633         * modules/unicase/u32-is-uppercase: Likewise.
22634         * modules/unicase/u32-prefix-context: Likewise.
22635         * modules/unicase/u32-suffix-context: Likewise.
22636         * modules/unicase/u32-tolower: Likewise.
22637         * modules/unicase/u32-totitle: Likewise.
22638         * modules/unicase/u32-toupper: Likewise.
22639         * modules/unicase/ulc-casecmp: Likewise.
22640         * modules/unicase/ulc-casecoll: Likewise.
22641         * modules/unicase/ulc-casexfrm: Likewise.
22642         * modules/uniconv/u8-conv-from-enc: Likewise.
22643         * modules/uniconv/u8-conv-to-enc: Likewise.
22644         * modules/uniconv/u8-strconv-from-enc: Likewise.
22645         * modules/uniconv/u8-strconv-from-locale: Likewise.
22646         * modules/uniconv/u8-strconv-to-enc: Likewise.
22647         * modules/uniconv/u8-strconv-to-locale: Likewise.
22648         * modules/uniconv/u16-conv-from-enc: Likewise.
22649         * modules/uniconv/u16-conv-to-enc: Likewise.
22650         * modules/uniconv/u16-strconv-from-enc: Likewise.
22651         * modules/uniconv/u16-strconv-from-locale: Likewise.
22652         * modules/uniconv/u16-strconv-to-enc: Likewise.
22653         * modules/uniconv/u16-strconv-to-locale: Likewise.
22654         * modules/uniconv/u32-conv-from-enc: Likewise.
22655         * modules/uniconv/u32-conv-to-enc: Likewise.
22656         * modules/uniconv/u32-strconv-from-enc: Likewise.
22657         * modules/uniconv/u32-strconv-from-locale: Likewise.
22658         * modules/uniconv/u32-strconv-to-enc: Likewise.
22659         * modules/uniconv/u32-strconv-to-locale: Likewise.
22660         * modules/unictype/bidicategory-byname: Likewise.
22661         * modules/unictype/bidicategory-name: Likewise.
22662         * modules/unictype/bidicategory-of: Likewise.
22663         * modules/unictype/bidicategory-test: Likewise.
22664         * modules/unictype/block-list: Likewise.
22665         * modules/unictype/block-test: Likewise.
22666         * modules/unictype/category-C: Likewise.
22667         * modules/unictype/category-Cc: Likewise.
22668         * modules/unictype/category-Cf: Likewise.
22669         * modules/unictype/category-Cn: Likewise.
22670         * modules/unictype/category-Co: Likewise.
22671         * modules/unictype/category-Cs: Likewise.
22672         * modules/unictype/category-L: Likewise.
22673         * modules/unictype/category-Ll: Likewise.
22674         * modules/unictype/category-Lm: Likewise.
22675         * modules/unictype/category-Lo: Likewise.
22676         * modules/unictype/category-Lt: Likewise.
22677         * modules/unictype/category-Lu: Likewise.
22678         * modules/unictype/category-M: Likewise.
22679         * modules/unictype/category-Mc: Likewise.
22680         * modules/unictype/category-Me: Likewise.
22681         * modules/unictype/category-Mn: Likewise.
22682         * modules/unictype/category-N: Likewise.
22683         * modules/unictype/category-Nd: Likewise.
22684         * modules/unictype/category-Nl: Likewise.
22685         * modules/unictype/category-No: Likewise.
22686         * modules/unictype/category-P: Likewise.
22687         * modules/unictype/category-Pc: Likewise.
22688         * modules/unictype/category-Pd: Likewise.
22689         * modules/unictype/category-Pe: Likewise.
22690         * modules/unictype/category-Pf: Likewise.
22691         * modules/unictype/category-Pi: Likewise.
22692         * modules/unictype/category-Po: Likewise.
22693         * modules/unictype/category-Ps: Likewise.
22694         * modules/unictype/category-S: Likewise.
22695         * modules/unictype/category-Sc: Likewise.
22696         * modules/unictype/category-Sk: Likewise.
22697         * modules/unictype/category-Sm: Likewise.
22698         * modules/unictype/category-So: Likewise.
22699         * modules/unictype/category-Z: Likewise.
22700         * modules/unictype/category-Zl: Likewise.
22701         * modules/unictype/category-Zp: Likewise.
22702         * modules/unictype/category-Zs: Likewise.
22703         * modules/unictype/category-and: Likewise.
22704         * modules/unictype/category-and-not: Likewise.
22705         * modules/unictype/category-byname: Likewise.
22706         * modules/unictype/category-name: Likewise.
22707         * modules/unictype/category-none: Likewise.
22708         * modules/unictype/category-of: Likewise.
22709         * modules/unictype/category-or: Likewise.
22710         * modules/unictype/category-test: Likewise.
22711         * modules/unictype/combining-class: Likewise.
22712         * modules/unictype/ctype-alnum: Likewise.
22713         * modules/unictype/ctype-alpha: Likewise.
22714         * modules/unictype/ctype-blank: Likewise.
22715         * modules/unictype/ctype-cntrl: Likewise.
22716         * modules/unictype/ctype-digit: Likewise.
22717         * modules/unictype/ctype-graph: Likewise.
22718         * modules/unictype/ctype-lower: Likewise.
22719         * modules/unictype/ctype-print: Likewise.
22720         * modules/unictype/ctype-punct: Likewise.
22721         * modules/unictype/ctype-space: Likewise.
22722         * modules/unictype/ctype-upper: Likewise.
22723         * modules/unictype/ctype-xdigit: Likewise.
22724         * modules/unictype/decimal-digit: Likewise.
22725         * modules/unictype/digit: Likewise.
22726         * modules/unictype/mirror: Likewise.
22727         * modules/unictype/numeric: Likewise.
22728         * modules/unictype/property-alphabetic: Likewise.
22729         * modules/unictype/property-ascii-hex-digit: Likewise.
22730         * modules/unictype/property-bidi-arabic-digit: Likewise.
22731         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22732         * modules/unictype/property-bidi-block-separator: Likewise.
22733         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22734         * modules/unictype/property-bidi-common-separator: Likewise.
22735         * modules/unictype/property-bidi-control: Likewise.
22736         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22737         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22738         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22739         * modules/unictype/property-bidi-european-digit: Likewise.
22740         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22741         * modules/unictype/property-bidi-left-to-right: Likewise.
22742         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22743         * modules/unictype/property-bidi-other-neutral: Likewise.
22744         * modules/unictype/property-bidi-pdf: Likewise.
22745         * modules/unictype/property-bidi-segment-separator: Likewise.
22746         * modules/unictype/property-bidi-whitespace: Likewise.
22747         * modules/unictype/property-byname: Likewise.
22748         * modules/unictype/property-combining: Likewise.
22749         * modules/unictype/property-composite: Likewise.
22750         * modules/unictype/property-currency-symbol: Likewise.
22751         * modules/unictype/property-dash: Likewise.
22752         * modules/unictype/property-decimal-digit: Likewise.
22753         * modules/unictype/property-default-ignorable-code-point: Likewise.
22754         * modules/unictype/property-deprecated: Likewise.
22755         * modules/unictype/property-diacritic: Likewise.
22756         * modules/unictype/property-extender: Likewise.
22757         * modules/unictype/property-format-control: Likewise.
22758         * modules/unictype/property-grapheme-base: Likewise.
22759         * modules/unictype/property-grapheme-extend: Likewise.
22760         * modules/unictype/property-grapheme-link: Likewise.
22761         * modules/unictype/property-hex-digit: Likewise.
22762         * modules/unictype/property-hyphen: Likewise.
22763         * modules/unictype/property-id-continue: Likewise.
22764         * modules/unictype/property-id-start: Likewise.
22765         * modules/unictype/property-ideographic: Likewise.
22766         * modules/unictype/property-ids-binary-operator: Likewise.
22767         * modules/unictype/property-ids-trinary-operator: Likewise.
22768         * modules/unictype/property-ignorable-control: Likewise.
22769         * modules/unictype/property-iso-control: Likewise.
22770         * modules/unictype/property-join-control: Likewise.
22771         * modules/unictype/property-left-of-pair: Likewise.
22772         * modules/unictype/property-line-separator: Likewise.
22773         * modules/unictype/property-logical-order-exception: Likewise.
22774         * modules/unictype/property-lowercase: Likewise.
22775         * modules/unictype/property-math: Likewise.
22776         * modules/unictype/property-non-break: Likewise.
22777         * modules/unictype/property-not-a-character: Likewise.
22778         * modules/unictype/property-numeric: Likewise.
22779         * modules/unictype/property-other-alphabetic: Likewise.
22780         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22781         * modules/unictype/property-other-grapheme-extend: Likewise.
22782         * modules/unictype/property-other-id-continue: Likewise.
22783         * modules/unictype/property-other-id-start: Likewise.
22784         * modules/unictype/property-other-lowercase: Likewise.
22785         * modules/unictype/property-other-math: Likewise.
22786         * modules/unictype/property-other-uppercase: Likewise.
22787         * modules/unictype/property-paired-punctuation: Likewise.
22788         * modules/unictype/property-paragraph-separator: Likewise.
22789         * modules/unictype/property-pattern-syntax: Likewise.
22790         * modules/unictype/property-pattern-white-space: Likewise.
22791         * modules/unictype/property-private-use: Likewise.
22792         * modules/unictype/property-punctuation: Likewise.
22793         * modules/unictype/property-quotation-mark: Likewise.
22794         * modules/unictype/property-radical: Likewise.
22795         * modules/unictype/property-sentence-terminal: Likewise.
22796         * modules/unictype/property-soft-dotted: Likewise.
22797         * modules/unictype/property-space: Likewise.
22798         * modules/unictype/property-terminal-punctuation: Likewise.
22799         * modules/unictype/property-test: Likewise.
22800         * modules/unictype/property-titlecase: Likewise.
22801         * modules/unictype/property-unassigned-code-value: Likewise.
22802         * modules/unictype/property-unified-ideograph: Likewise.
22803         * modules/unictype/property-uppercase: Likewise.
22804         * modules/unictype/property-variation-selector: Likewise.
22805         * modules/unictype/property-white-space: Likewise.
22806         * modules/unictype/property-xid-continue: Likewise.
22807         * modules/unictype/property-xid-start: Likewise.
22808         * modules/unictype/property-zero-width: Likewise.
22809         * modules/unictype/scripts: Likewise.
22810         * modules/unictype/syntax-c-ident: Likewise.
22811         * modules/unictype/syntax-c-whitespace: Likewise.
22812         * modules/unictype/syntax-java-ident: Likewise.
22813         * modules/unictype/syntax-java-whitespace: Likewise.
22814         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22815         * modules/unilbrk/u8-width-linebreaks: Likewise.
22816         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22817         * modules/unilbrk/u16-width-linebreaks: Likewise.
22818         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22819         * modules/unilbrk/u32-width-linebreaks: Likewise.
22820         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22821         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22822         * modules/uniname/uniname: Likewise.
22823         * modules/uninorm/canonical-decomposition: Likewise.
22824         * modules/uninorm/composition: Likewise.
22825         * modules/uninorm/decomposing-form: Likewise.
22826         * modules/uninorm/decomposition: Likewise.
22827         * modules/uninorm/filter: Likewise.
22828         * modules/uninorm/nfc: Likewise.
22829         * modules/uninorm/nfd: Likewise.
22830         * modules/uninorm/nfkc: Likewise.
22831         * modules/uninorm/nfkd: Likewise.
22832         * modules/uninorm/u8-normalize: Likewise.
22833         * modules/uninorm/u8-normcmp: Likewise.
22834         * modules/uninorm/u8-normcoll: Likewise.
22835         * modules/uninorm/u8-normxfrm: Likewise.
22836         * modules/uninorm/u16-normalize: Likewise.
22837         * modules/uninorm/u16-normcmp: Likewise.
22838         * modules/uninorm/u16-normcoll: Likewise.
22839         * modules/uninorm/u16-normxfrm: Likewise.
22840         * modules/uninorm/u32-normalize: Likewise.
22841         * modules/uninorm/u32-normcmp: Likewise.
22842         * modules/uninorm/u32-normcoll: Likewise.
22843         * modules/uninorm/u32-normxfrm: Likewise.
22844         * modules/unistdio/u8-asnprintf: Likewise.
22845         * modules/unistdio/u8-asprintf: Likewise.
22846         * modules/unistdio/u8-snprintf: Likewise.
22847         * modules/unistdio/u8-sprintf: Likewise.
22848         * modules/unistdio/u8-u8-asnprintf: Likewise.
22849         * modules/unistdio/u8-u8-asprintf: Likewise.
22850         * modules/unistdio/u8-u8-snprintf: Likewise.
22851         * modules/unistdio/u8-u8-sprintf: Likewise.
22852         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22853         * modules/unistdio/u8-u8-vasprintf: Likewise.
22854         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22855         * modules/unistdio/u8-u8-vsprintf: Likewise.
22856         * modules/unistdio/u8-vasnprintf: Likewise.
22857         * modules/unistdio/u8-vasprintf: Likewise.
22858         * modules/unistdio/u8-vsnprintf: Likewise.
22859         * modules/unistdio/u8-vsprintf: Likewise.
22860         * modules/unistdio/u16-asnprintf: Likewise.
22861         * modules/unistdio/u16-asprintf: Likewise.
22862         * modules/unistdio/u16-snprintf: Likewise.
22863         * modules/unistdio/u16-sprintf: Likewise.
22864         * modules/unistdio/u16-u16-asnprintf: Likewise.
22865         * modules/unistdio/u16-u16-asprintf: Likewise.
22866         * modules/unistdio/u16-u16-snprintf: Likewise.
22867         * modules/unistdio/u16-u16-sprintf: Likewise.
22868         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22869         * modules/unistdio/u16-u16-vasprintf: Likewise.
22870         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22871         * modules/unistdio/u16-u16-vsprintf: Likewise.
22872         * modules/unistdio/u16-vasnprintf: Likewise.
22873         * modules/unistdio/u16-vasprintf: Likewise.
22874         * modules/unistdio/u16-vsnprintf: Likewise.
22875         * modules/unistdio/u16-vsprintf: Likewise.
22876         * modules/unistdio/u32-asnprintf: Likewise.
22877         * modules/unistdio/u32-asprintf: Likewise.
22878         * modules/unistdio/u32-snprintf: Likewise.
22879         * modules/unistdio/u32-sprintf: Likewise.
22880         * modules/unistdio/u32-u32-asnprintf: Likewise.
22881         * modules/unistdio/u32-u32-asprintf: Likewise.
22882         * modules/unistdio/u32-u32-snprintf: Likewise.
22883         * modules/unistdio/u32-u32-sprintf: Likewise.
22884         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22885         * modules/unistdio/u32-u32-vasprintf: Likewise.
22886         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22887         * modules/unistdio/u32-u32-vsprintf: Likewise.
22888         * modules/unistdio/u32-vasnprintf: Likewise.
22889         * modules/unistdio/u32-vasprintf: Likewise.
22890         * modules/unistdio/u32-vsnprintf: Likewise.
22891         * modules/unistdio/u32-vsprintf: Likewise.
22892         * modules/unistdio/ulc-asnprintf: Likewise.
22893         * modules/unistdio/ulc-asprintf: Likewise.
22894         * modules/unistdio/ulc-fprintf: Likewise.
22895         * modules/unistdio/ulc-snprintf: Likewise.
22896         * modules/unistdio/ulc-sprintf: Likewise.
22897         * modules/unistdio/ulc-vasnprintf: Likewise.
22898         * modules/unistdio/ulc-vasprintf: Likewise.
22899         * modules/unistdio/ulc-vfprintf: Likewise.
22900         * modules/unistdio/ulc-vsnprintf: Likewise.
22901         * modules/unistdio/ulc-vsprintf: Likewise.
22902         * modules/unistr/u8-check: Likewise.
22903         * modules/unistr/u8-chr: Likewise.
22904         * modules/unistr/u8-cmp: Likewise.
22905         * modules/unistr/u8-cmp2: Likewise.
22906         * modules/unistr/u8-cpy: Likewise.
22907         * modules/unistr/u8-cpy-alloc: Likewise.
22908         * modules/unistr/u8-endswith: Likewise.
22909         * modules/unistr/u8-mblen: Likewise.
22910         * modules/unistr/u8-mbsnlen: Likewise.
22911         * modules/unistr/u8-mbtouc: Likewise.
22912         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22913         * modules/unistr/u8-mbtoucr: Likewise.
22914         * modules/unistr/u8-move: Likewise.
22915         * modules/unistr/u8-next: Likewise.
22916         * modules/unistr/u8-prev: Likewise.
22917         * modules/unistr/u8-set: Likewise.
22918         * modules/unistr/u8-startswith: Likewise.
22919         * modules/unistr/u8-stpcpy: Likewise.
22920         * modules/unistr/u8-stpncpy: Likewise.
22921         * modules/unistr/u8-strcat: Likewise.
22922         * modules/unistr/u8-strchr: Likewise.
22923         * modules/unistr/u8-strcmp: Likewise.
22924         * modules/unistr/u8-strcoll: Likewise.
22925         * modules/unistr/u8-strcpy: Likewise.
22926         * modules/unistr/u8-strcspn: Likewise.
22927         * modules/unistr/u8-strdup: Likewise.
22928         * modules/unistr/u8-strlen: Likewise.
22929         * modules/unistr/u8-strmblen: Likewise.
22930         * modules/unistr/u8-strmbtouc: Likewise.
22931         * modules/unistr/u8-strncat: Likewise.
22932         * modules/unistr/u8-strncmp: Likewise.
22933         * modules/unistr/u8-strncpy: Likewise.
22934         * modules/unistr/u8-strnlen: Likewise.
22935         * modules/unistr/u8-strpbrk: Likewise.
22936         * modules/unistr/u8-strrchr: Likewise.
22937         * modules/unistr/u8-strspn: Likewise.
22938         * modules/unistr/u8-strstr: Likewise.
22939         * modules/unistr/u8-strtok: Likewise.
22940         * modules/unistr/u8-to-u16: Likewise.
22941         * modules/unistr/u8-to-u32: Likewise.
22942         * modules/unistr/u8-uctomb: Likewise.
22943         * modules/unistr/u16-check: Likewise.
22944         * modules/unistr/u16-chr: Likewise.
22945         * modules/unistr/u16-cmp: Likewise.
22946         * modules/unistr/u16-cmp2: Likewise.
22947         * modules/unistr/u16-cpy: Likewise.
22948         * modules/unistr/u16-cpy-alloc: Likewise.
22949         * modules/unistr/u16-endswith: Likewise.
22950         * modules/unistr/u16-mblen: Likewise.
22951         * modules/unistr/u16-mbsnlen: Likewise.
22952         * modules/unistr/u16-mbtouc: Likewise.
22953         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22954         * modules/unistr/u16-mbtoucr: Likewise.
22955         * modules/unistr/u16-move: Likewise.
22956         * modules/unistr/u16-next: Likewise.
22957         * modules/unistr/u16-prev: Likewise.
22958         * modules/unistr/u16-set: Likewise.
22959         * modules/unistr/u16-startswith: Likewise.
22960         * modules/unistr/u16-stpcpy: Likewise.
22961         * modules/unistr/u16-stpncpy: Likewise.
22962         * modules/unistr/u16-strcat: Likewise.
22963         * modules/unistr/u16-strchr: Likewise.
22964         * modules/unistr/u16-strcmp: Likewise.
22965         * modules/unistr/u16-strcoll: Likewise.
22966         * modules/unistr/u16-strcpy: Likewise.
22967         * modules/unistr/u16-strcspn: Likewise.
22968         * modules/unistr/u16-strdup: Likewise.
22969         * modules/unistr/u16-strlen: Likewise.
22970         * modules/unistr/u16-strmblen: Likewise.
22971         * modules/unistr/u16-strmbtouc: Likewise.
22972         * modules/unistr/u16-strncat: Likewise.
22973         * modules/unistr/u16-strncmp: Likewise.
22974         * modules/unistr/u16-strncpy: Likewise.
22975         * modules/unistr/u16-strnlen: Likewise.
22976         * modules/unistr/u16-strpbrk: Likewise.
22977         * modules/unistr/u16-strrchr: Likewise.
22978         * modules/unistr/u16-strspn: Likewise.
22979         * modules/unistr/u16-strstr: Likewise.
22980         * modules/unistr/u16-strtok: Likewise.
22981         * modules/unistr/u16-to-u32: Likewise.
22982         * modules/unistr/u16-to-u8: Likewise.
22983         * modules/unistr/u16-uctomb: Likewise.
22984         * modules/unistr/u32-check: Likewise.
22985         * modules/unistr/u32-chr: Likewise.
22986         * modules/unistr/u32-cmp: Likewise.
22987         * modules/unistr/u32-cmp2: Likewise.
22988         * modules/unistr/u32-cpy: Likewise.
22989         * modules/unistr/u32-cpy-alloc: Likewise.
22990         * modules/unistr/u32-endswith: Likewise.
22991         * modules/unistr/u32-mblen: Likewise.
22992         * modules/unistr/u32-mbsnlen: Likewise.
22993         * modules/unistr/u32-mbtouc: Likewise.
22994         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22995         * modules/unistr/u32-mbtoucr: Likewise.
22996         * modules/unistr/u32-move: Likewise.
22997         * modules/unistr/u32-next: Likewise.
22998         * modules/unistr/u32-prev: Likewise.
22999         * modules/unistr/u32-set: Likewise.
23000         * modules/unistr/u32-startswith: Likewise.
23001         * modules/unistr/u32-stpcpy: Likewise.
23002         * modules/unistr/u32-stpncpy: Likewise.
23003         * modules/unistr/u32-strcat: Likewise.
23004         * modules/unistr/u32-strchr: Likewise.
23005         * modules/unistr/u32-strcmp: Likewise.
23006         * modules/unistr/u32-strcoll: Likewise.
23007         * modules/unistr/u32-strcpy: Likewise.
23008         * modules/unistr/u32-strcspn: Likewise.
23009         * modules/unistr/u32-strdup: Likewise.
23010         * modules/unistr/u32-strlen: Likewise.
23011         * modules/unistr/u32-strmblen: Likewise.
23012         * modules/unistr/u32-strmbtouc: Likewise.
23013         * modules/unistr/u32-strncat: Likewise.
23014         * modules/unistr/u32-strncmp: Likewise.
23015         * modules/unistr/u32-strncpy: Likewise.
23016         * modules/unistr/u32-strnlen: Likewise.
23017         * modules/unistr/u32-strpbrk: Likewise.
23018         * modules/unistr/u32-strrchr: Likewise.
23019         * modules/unistr/u32-strspn: Likewise.
23020         * modules/unistr/u32-strstr: Likewise.
23021         * modules/unistr/u32-strtok: Likewise.
23022         * modules/unistr/u32-to-u16: Likewise.
23023         * modules/unistr/u32-to-u8: Likewise.
23024         * modules/unistr/u32-uctomb: Likewise.
23025         * modules/uniwbrk/u8-wordbreaks: Likewise.
23026         * modules/uniwbrk/u16-wordbreaks: Likewise.
23027         * modules/uniwbrk/u32-wordbreaks: Likewise.
23028         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23029         * modules/uniwbrk/wordbreak-property: Likewise.
23030         * modules/uniwidth/u8-strwidth: Likewise.
23031         * modules/uniwidth/u8-width: Likewise.
23032         * modules/uniwidth/u16-strwidth: Likewise.
23033         * modules/uniwidth/u16-width: Likewise.
23034         * modules/uniwidth/u32-strwidth: Likewise.
23035         * modules/uniwidth/u32-width: Likewise.
23036         * modules/uniwidth/width: Likewise.
23037         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23038         with $(LIBUNISTRING).
23039         * modules/unicase/ignorable-tests: Likewise.
23040         * modules/unicase/locale-language-tests: Likewise.
23041         * modules/unicase/tolower-tests: Likewise.
23042         * modules/unicase/totitle-tests: Likewise.
23043         * modules/unicase/toupper-tests: Likewise.
23044         * modules/unicase/u8-casecmp-tests: Likewise.
23045         * modules/unicase/u8-casecoll-tests: Likewise.
23046         * modules/unicase/u8-casefold-tests: Likewise.
23047         * modules/unicase/u8-is-cased-tests: Likewise.
23048         * modules/unicase/u8-is-casefolded-tests: Likewise.
23049         * modules/unicase/u8-is-lowercase-tests: Likewise.
23050         * modules/unicase/u8-is-titlecase-tests: Likewise.
23051         * modules/unicase/u8-is-uppercase-tests: Likewise.
23052         * modules/unicase/u8-tolower-tests: Likewise.
23053         * modules/unicase/u8-totitle-tests: Likewise.
23054         * modules/unicase/u8-toupper-tests: Likewise.
23055         * modules/unicase/u16-casecmp-tests: Likewise.
23056         * modules/unicase/u16-casecoll-tests: Likewise.
23057         * modules/unicase/u16-casefold-tests: Likewise.
23058         * modules/unicase/u16-is-cased-tests: Likewise.
23059         * modules/unicase/u16-is-casefolded-tests: Likewise.
23060         * modules/unicase/u16-is-lowercase-tests: Likewise.
23061         * modules/unicase/u16-is-titlecase-tests: Likewise.
23062         * modules/unicase/u16-is-uppercase-tests: Likewise.
23063         * modules/unicase/u16-tolower-tests: Likewise.
23064         * modules/unicase/u16-totitle-tests: Likewise.
23065         * modules/unicase/u16-toupper-tests: Likewise.
23066         * modules/unicase/u32-casecmp-tests: Likewise.
23067         * modules/unicase/u32-casecoll-tests: Likewise.
23068         * modules/unicase/u32-casefold-tests: Likewise.
23069         * modules/unicase/u32-is-cased-tests: Likewise.
23070         * modules/unicase/u32-is-casefolded-tests: Likewise.
23071         * modules/unicase/u32-is-lowercase-tests: Likewise.
23072         * modules/unicase/u32-is-titlecase-tests: Likewise.
23073         * modules/unicase/u32-is-uppercase-tests: Likewise.
23074         * modules/unicase/u32-tolower-tests: Likewise.
23075         * modules/unicase/u32-totitle-tests: Likewise.
23076         * modules/unicase/u32-toupper-tests: Likewise.
23077         * modules/unicase/ulc-casecmp-tests: Likewise.
23078         * modules/unicase/ulc-casecoll-tests: Likewise.
23079         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23080         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23081         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23082         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23083         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23084         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23085         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23086         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23087         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23088         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23089         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23090         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23091         * modules/unictype/bidicategory-byname-tests: Likewise.
23092         * modules/unictype/bidicategory-name-tests: Likewise.
23093         * modules/unictype/bidicategory-of-tests: Likewise.
23094         * modules/unictype/bidicategory-test-tests: Likewise.
23095         * modules/unictype/block-list-tests: Likewise.
23096         * modules/unictype/block-of-tests: Likewise.
23097         * modules/unictype/block-test-tests: Likewise.
23098         * modules/unictype/category-C-tests: Likewise.
23099         * modules/unictype/category-Cc-tests: Likewise.
23100         * modules/unictype/category-Cf-tests: Likewise.
23101         * modules/unictype/category-Cn-tests: Likewise.
23102         * modules/unictype/category-Co-tests: Likewise.
23103         * modules/unictype/category-Cs-tests: Likewise.
23104         * modules/unictype/category-L-tests: Likewise.
23105         * modules/unictype/category-Ll-tests: Likewise.
23106         * modules/unictype/category-Lm-tests: Likewise.
23107         * modules/unictype/category-Lo-tests: Likewise.
23108         * modules/unictype/category-Lt-tests: Likewise.
23109         * modules/unictype/category-Lu-tests: Likewise.
23110         * modules/unictype/category-M-tests: Likewise.
23111         * modules/unictype/category-Mc-tests: Likewise.
23112         * modules/unictype/category-Me-tests: Likewise.
23113         * modules/unictype/category-Mn-tests: Likewise.
23114         * modules/unictype/category-N-tests: Likewise.
23115         * modules/unictype/category-Nd-tests: Likewise.
23116         * modules/unictype/category-Nl-tests: Likewise.
23117         * modules/unictype/category-No-tests: Likewise.
23118         * modules/unictype/category-P-tests: Likewise.
23119         * modules/unictype/category-Pc-tests: Likewise.
23120         * modules/unictype/category-Pd-tests: Likewise.
23121         * modules/unictype/category-Pe-tests: Likewise.
23122         * modules/unictype/category-Pf-tests: Likewise.
23123         * modules/unictype/category-Pi-tests: Likewise.
23124         * modules/unictype/category-Po-tests: Likewise.
23125         * modules/unictype/category-Ps-tests: Likewise.
23126         * modules/unictype/category-S-tests: Likewise.
23127         * modules/unictype/category-Sc-tests: Likewise.
23128         * modules/unictype/category-Sk-tests: Likewise.
23129         * modules/unictype/category-Sm-tests: Likewise.
23130         * modules/unictype/category-So-tests: Likewise.
23131         * modules/unictype/category-Z-tests: Likewise.
23132         * modules/unictype/category-Zl-tests: Likewise.
23133         * modules/unictype/category-Zp-tests: Likewise.
23134         * modules/unictype/category-Zs-tests: Likewise.
23135         * modules/unictype/category-and-not-tests: Likewise.
23136         * modules/unictype/category-and-tests: Likewise.
23137         * modules/unictype/category-byname-tests: Likewise.
23138         * modules/unictype/category-name-tests: Likewise.
23139         * modules/unictype/category-none-tests: Likewise.
23140         * modules/unictype/category-of-tests: Likewise.
23141         * modules/unictype/category-or-tests: Likewise.
23142         * modules/unictype/category-test-withtable-tests: Likewise.
23143         * modules/unictype/combining-class-tests: Likewise.
23144         * modules/unictype/ctype-alnum-tests: Likewise.
23145         * modules/unictype/ctype-alpha-tests: Likewise.
23146         * modules/unictype/ctype-blank-tests: Likewise.
23147         * modules/unictype/ctype-cntrl-tests: Likewise.
23148         * modules/unictype/ctype-digit-tests: Likewise.
23149         * modules/unictype/ctype-graph-tests: Likewise.
23150         * modules/unictype/ctype-lower-tests: Likewise.
23151         * modules/unictype/ctype-print-tests: Likewise.
23152         * modules/unictype/ctype-punct-tests: Likewise.
23153         * modules/unictype/ctype-space-tests: Likewise.
23154         * modules/unictype/ctype-upper-tests: Likewise.
23155         * modules/unictype/ctype-xdigit-tests: Likewise.
23156         * modules/unictype/decimal-digit-tests: Likewise.
23157         * modules/unictype/digit-tests: Likewise.
23158         * modules/unictype/mirror-tests: Likewise.
23159         * modules/unictype/numeric-tests: Likewise.
23160         * modules/unictype/property-alphabetic-tests: Likewise.
23161         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23162         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23163         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23164         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23165         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23166         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23167         * modules/unictype/property-bidi-control-tests: Likewise.
23168         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23169         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23170         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23171         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23172         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23173         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23174         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23175         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23176         * modules/unictype/property-bidi-pdf-tests: Likewise.
23177         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23178         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23179         * modules/unictype/property-byname-tests: Likewise.
23180         * modules/unictype/property-combining-tests: Likewise.
23181         * modules/unictype/property-composite-tests: Likewise.
23182         * modules/unictype/property-currency-symbol-tests: Likewise.
23183         * modules/unictype/property-dash-tests: Likewise.
23184         * modules/unictype/property-decimal-digit-tests: Likewise.
23185         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23186         * modules/unictype/property-deprecated-tests: Likewise.
23187         * modules/unictype/property-diacritic-tests: Likewise.
23188         * modules/unictype/property-extender-tests: Likewise.
23189         * modules/unictype/property-format-control-tests: Likewise.
23190         * modules/unictype/property-grapheme-base-tests: Likewise.
23191         * modules/unictype/property-grapheme-extend-tests: Likewise.
23192         * modules/unictype/property-grapheme-link-tests: Likewise.
23193         * modules/unictype/property-hex-digit-tests: Likewise.
23194         * modules/unictype/property-hyphen-tests: Likewise.
23195         * modules/unictype/property-id-continue-tests: Likewise.
23196         * modules/unictype/property-id-start-tests: Likewise.
23197         * modules/unictype/property-ideographic-tests: Likewise.
23198         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23199         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23200         * modules/unictype/property-ignorable-control-tests: Likewise.
23201         * modules/unictype/property-iso-control-tests: Likewise.
23202         * modules/unictype/property-join-control-tests: Likewise.
23203         * modules/unictype/property-left-of-pair-tests: Likewise.
23204         * modules/unictype/property-line-separator-tests: Likewise.
23205         * modules/unictype/property-logical-order-exception-tests: Likewise.
23206         * modules/unictype/property-lowercase-tests: Likewise.
23207         * modules/unictype/property-math-tests: Likewise.
23208         * modules/unictype/property-non-break-tests: Likewise.
23209         * modules/unictype/property-not-a-character-tests: Likewise.
23210         * modules/unictype/property-numeric-tests: Likewise.
23211         * modules/unictype/property-other-alphabetic-tests: Likewise.
23212         * modules/unictype/property-other-default-ignorable-code-point-tests:
23213         Likewise.
23214         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23215         * modules/unictype/property-other-id-continue-tests: Likewise.
23216         * modules/unictype/property-other-id-start-tests: Likewise.
23217         * modules/unictype/property-other-lowercase-tests: Likewise.
23218         * modules/unictype/property-other-math-tests: Likewise.
23219         * modules/unictype/property-other-uppercase-tests: Likewise.
23220         * modules/unictype/property-paired-punctuation-tests: Likewise.
23221         * modules/unictype/property-paragraph-separator-tests: Likewise.
23222         * modules/unictype/property-pattern-syntax-tests: Likewise.
23223         * modules/unictype/property-pattern-white-space-tests: Likewise.
23224         * modules/unictype/property-private-use-tests: Likewise.
23225         * modules/unictype/property-punctuation-tests: Likewise.
23226         * modules/unictype/property-quotation-mark-tests: Likewise.
23227         * modules/unictype/property-radical-tests: Likewise.
23228         * modules/unictype/property-sentence-terminal-tests: Likewise.
23229         * modules/unictype/property-soft-dotted-tests: Likewise.
23230         * modules/unictype/property-space-tests: Likewise.
23231         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23232         * modules/unictype/property-test-tests: Likewise.
23233         * modules/unictype/property-titlecase-tests: Likewise.
23234         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23235         * modules/unictype/property-unified-ideograph-tests: Likewise.
23236         * modules/unictype/property-uppercase-tests: Likewise.
23237         * modules/unictype/property-variation-selector-tests: Likewise.
23238         * modules/unictype/property-white-space-tests: Likewise.
23239         * modules/unictype/property-xid-continue-tests: Likewise.
23240         * modules/unictype/property-xid-start-tests: Likewise.
23241         * modules/unictype/property-zero-width-tests: Likewise.
23242         * modules/unictype/scripts-tests: Likewise.
23243         * modules/unictype/syntax-c-ident-tests: Likewise.
23244         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23245         * modules/unictype/syntax-java-ident-tests: Likewise.
23246         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23247         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23248         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23249         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23250         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23251         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23252         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23253         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23254         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23255         * modules/uniname/uniname-tests: Likewise.
23256         * modules/uninorm/canonical-decomposition-tests: Likewise.
23257         * modules/uninorm/compat-decomposition-tests: Likewise.
23258         * modules/uninorm/composition-tests: Likewise.
23259         * modules/uninorm/decomposing-form-tests: Likewise.
23260         * modules/uninorm/decomposition-tests: Likewise.
23261         * modules/uninorm/filter-tests: Likewise.
23262         * modules/uninorm/nfc-tests: Likewise.
23263         * modules/uninorm/nfd-tests: Likewise.
23264         * modules/uninorm/nfkc-tests: Likewise.
23265         * modules/uninorm/nfkd-tests: Likewise.
23266         * modules/uninorm/u8-normcmp-tests: Likewise.
23267         * modules/uninorm/u8-normcoll-tests: Likewise.
23268         * modules/uninorm/u16-normcmp-tests: Likewise.
23269         * modules/uninorm/u16-normcoll-tests: Likewise.
23270         * modules/uninorm/u32-normcmp-tests: Likewise.
23271         * modules/uninorm/u32-normcoll-tests: Likewise.
23272         * modules/unistdio/u8-asnprintf-tests: Likewise.
23273         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23274         * modules/unistdio/u8-vasprintf-tests: Likewise.
23275         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23276         * modules/unistdio/u8-vsprintf-tests: Likewise.
23277         * modules/unistdio/u16-asnprintf-tests: Likewise.
23278         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23279         * modules/unistdio/u16-vasprintf-tests: Likewise.
23280         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23281         * modules/unistdio/u16-vsprintf-tests: Likewise.
23282         * modules/unistdio/u32-asnprintf-tests: Likewise.
23283         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23284         * modules/unistdio/u32-vasprintf-tests: Likewise.
23285         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23286         * modules/unistdio/u32-vsprintf-tests: Likewise.
23287         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23288         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23289         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23290         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23291         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23292         * modules/unistr/u8-check-tests: Likewise.
23293         * modules/unistr/u8-chr-tests: Likewise.
23294         * modules/unistr/u8-cmp-tests: Likewise.
23295         * modules/unistr/u8-cmp2-tests: Likewise.
23296         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23297         * modules/unistr/u8-cpy-tests: Likewise.
23298         * modules/unistr/u8-mblen-tests: Likewise.
23299         * modules/unistr/u8-mbsnlen-tests: Likewise.
23300         * modules/unistr/u8-mbtouc-tests: Likewise.
23301         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23302         * modules/unistr/u8-mbtoucr-tests: Likewise.
23303         * modules/unistr/u8-move-tests: Likewise.
23304         * modules/unistr/u8-next-tests: Likewise.
23305         * modules/unistr/u8-prev-tests: Likewise.
23306         * modules/unistr/u8-set-tests: Likewise.
23307         * modules/unistr/u8-stpcpy-tests: Likewise.
23308         * modules/unistr/u8-stpncpy-tests: Likewise.
23309         * modules/unistr/u8-strcat-tests: Likewise.
23310         * modules/unistr/u8-strcmp-tests: Likewise.
23311         * modules/unistr/u8-strcoll-tests: Likewise.
23312         * modules/unistr/u8-strcpy-tests: Likewise.
23313         * modules/unistr/u8-strdup-tests: Likewise.
23314         * modules/unistr/u8-strlen-tests: Likewise.
23315         * modules/unistr/u8-strmblen-tests: Likewise.
23316         * modules/unistr/u8-strmbtouc-tests: Likewise.
23317         * modules/unistr/u8-strncat-tests: Likewise.
23318         * modules/unistr/u8-strncmp-tests: Likewise.
23319         * modules/unistr/u8-strncpy-tests: Likewise.
23320         * modules/unistr/u8-strnlen-tests: Likewise.
23321         * modules/unistr/u8-to-u16-tests: Likewise.
23322         * modules/unistr/u8-to-u32-tests: Likewise.
23323         * modules/unistr/u8-uctomb-tests: Likewise.
23324         * modules/unistr/u16-check-tests: Likewise.
23325         * modules/unistr/u16-chr-tests: Likewise.
23326         * modules/unistr/u16-cmp-tests: Likewise.
23327         * modules/unistr/u16-cmp2-tests: Likewise.
23328         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23329         * modules/unistr/u16-cpy-tests: Likewise.
23330         * modules/unistr/u16-mblen-tests: Likewise.
23331         * modules/unistr/u16-mbsnlen-tests: Likewise.
23332         * modules/unistr/u16-mbtouc-tests: Likewise.
23333         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23334         * modules/unistr/u16-mbtoucr-tests: Likewise.
23335         * modules/unistr/u16-move-tests: Likewise.
23336         * modules/unistr/u16-next-tests: Likewise.
23337         * modules/unistr/u16-prev-tests: Likewise.
23338         * modules/unistr/u16-set-tests: Likewise.
23339         * modules/unistr/u16-stpcpy-tests: Likewise.
23340         * modules/unistr/u16-stpncpy-tests: Likewise.
23341         * modules/unistr/u16-strcat-tests: Likewise.
23342         * modules/unistr/u16-strcmp-tests: Likewise.
23343         * modules/unistr/u16-strcoll-tests: Likewise.
23344         * modules/unistr/u16-strcpy-tests: Likewise.
23345         * modules/unistr/u16-strdup-tests: Likewise.
23346         * modules/unistr/u16-strlen-tests: Likewise.
23347         * modules/unistr/u16-strmblen-tests: Likewise.
23348         * modules/unistr/u16-strmbtouc-tests: Likewise.
23349         * modules/unistr/u16-strncat-tests: Likewise.
23350         * modules/unistr/u16-strncmp-tests: Likewise.
23351         * modules/unistr/u16-strncpy-tests: Likewise.
23352         * modules/unistr/u16-strnlen-tests: Likewise.
23353         * modules/unistr/u16-to-u32-tests: Likewise.
23354         * modules/unistr/u16-to-u8-tests: Likewise.
23355         * modules/unistr/u16-uctomb-tests: Likewise.
23356         * modules/unistr/u32-check-tests: Likewise.
23357         * modules/unistr/u32-chr-tests: Likewise.
23358         * modules/unistr/u32-cmp-tests: Likewise.
23359         * modules/unistr/u32-cmp2-tests: Likewise.
23360         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23361         * modules/unistr/u32-cpy-tests: Likewise.
23362         * modules/unistr/u32-mblen-tests: Likewise.
23363         * modules/unistr/u32-mbsnlen-tests: Likewise.
23364         * modules/unistr/u32-mbtouc-tests: Likewise.
23365         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23366         * modules/unistr/u32-mbtoucr-tests: Likewise.
23367         * modules/unistr/u32-move-tests: Likewise.
23368         * modules/unistr/u32-next-tests: Likewise.
23369         * modules/unistr/u32-prev-tests: Likewise.
23370         * modules/unistr/u32-set-tests: Likewise.
23371         * modules/unistr/u32-stpcpy-tests: Likewise.
23372         * modules/unistr/u32-stpncpy-tests: Likewise.
23373         * modules/unistr/u32-strcat-tests: Likewise.
23374         * modules/unistr/u32-strcmp-tests: Likewise.
23375         * modules/unistr/u32-strcoll-tests: Likewise.
23376         * modules/unistr/u32-strcpy-tests: Likewise.
23377         * modules/unistr/u32-strdup-tests: Likewise.
23378         * modules/unistr/u32-strlen-tests: Likewise.
23379         * modules/unistr/u32-strmblen-tests: Likewise.
23380         * modules/unistr/u32-strmbtouc-tests: Likewise.
23381         * modules/unistr/u32-strncat-tests: Likewise.
23382         * modules/unistr/u32-strncmp-tests: Likewise.
23383         * modules/unistr/u32-strncpy-tests: Likewise.
23384         * modules/unistr/u32-strnlen-tests: Likewise.
23385         * modules/unistr/u32-to-u16-tests: Likewise.
23386         * modules/unistr/u32-to-u8-tests: Likewise.
23387         * modules/unistr/u32-uctomb-tests: Likewise.
23388         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23389         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23390         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23391         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23392         * modules/uniwidth/u8-strwidth-tests: Likewise.
23393         * modules/uniwidth/u8-width-tests: Likewise.
23394         * modules/uniwidth/u16-strwidth-tests: Likewise.
23395         * modules/uniwidth/u16-width-tests: Likewise.
23396         * modules/uniwidth/u32-strwidth-tests: Likewise.
23397         * modules/uniwidth/u32-width-tests: Likewise.
23398         * modules/uniwidth/width-tests: Likewise.
23399
23400 2010-05-18  Richard Jones  <rjones@redhat.com>
23401
23402         doc: users.txt: list hivex
23403         * users.txt: Add hivex.
23404
23405 2010-05-18  Richard Jones  <rjones@redhat.com>
23406
23407         doc: users.txt: list febootstrap
23408         * users.txt: Add febootstrap.
23409
23410 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23411
23412         bootstrap: fix an error when gnulib is not used as a git submodule
23413         * build-aux/bootstrap (gnulib_path): If its length is zero then
23414         assign "gnulib" to it.
23415         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23416
23417 2010-05-16  Bruno Haible  <bruno@clisp.org>
23418
23419         Avoid autoconf warnings about AM_ICONV.
23420         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23421         2.64.
23422
23423 2010-05-16  Bruno Haible  <bruno@clisp.org>
23424
23425         absolute-header: Make the macro usable in more situations.
23426         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23427         from gl_ABSOLUTE_HEADER.
23428         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23429
23430 2010-05-16  James Youngman  <jay@gnu.org>
23431
23432         doc: update users.txt
23433         * users.txt: Add CSSC.
23434
23435 2010-05-16  Jim Meyering  <meyering@redhat.com>
23436
23437         init.sh: fix an error in the previous change; add more comments
23438         * tests/init.sh: Compare exit code in loop against 9, not 2.
23439         Patch by Bruno Haible.
23440         Make the two tests more similar by adding an empty "then" clause.
23441         Add comments.
23442
23443         init.sh: avoid unnecessary shell re-exec
23444         * tests/init.sh: Improve the re-exec-required check to first test the
23445         current shell.  If it passes the test, do not search for a shell that
23446         does pass, and do not re-exec.  This test is particularly contorted to
23447         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23448         of $(...) evokes a syntax error and causes immediate shell exit with
23449         status 2.  Bruno Haible reported that the re-exec made it impossible
23450         to single-step through any init.sh-using script.
23451
23452 2010-05-16  Bruno Haible  <bruno@clisp.org>
23453
23454         Fix collision between gnulib's and libintl's printf replacements.
23455         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23456         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23457         (printf): When using GNU C, map the __printf__ function to rpl_printf
23458         via __asm__. When not using GNU C, define rpl_printf instead of
23459         __printf__.
23460         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23461         commit.
23462         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23463         commit.
23464         * m4/asm-underscore.m4: New file.
23465         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23466         * modules/stdio (Files): Add m4/asm-underscore.m4.
23467         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23468         Reported by Ben Pfaff.
23469
23470 2010-05-16  Bruno Haible  <bruno@clisp.org>
23471
23472         verify: Avoid skipping the test on openSUSE 11.0.
23473         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23474
23475 2010-05-13  Bruno Haible  <bruno@clisp.org>
23476
23477         Avoid useless warnings from G++.
23478         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23479         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23480         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23481
23482 2010-05-11  Jim Meyering  <meyering@redhat.com>
23483
23484         maint.mk: tweak preceding change
23485         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23486         regexps tighter by anchoring at EOL, and make the new group "shy"
23487         for slightly decreased overhead.
23488
23489 2010-05-11  Eric Blake  <eblake@redhat.com>
23490
23491         maint.mk: gnulib doesn't guarantee NSIG
23492         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23493
23494 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23495
23496         test-pwrite.c: Remove unused variable declaration.
23497         * tests/test-pwrite.c (main): Remove read_buf declaration.
23498
23499         Remove useless test-pwrite.sh file.
23500         * tests/test-pwrite.sh: Delete file.
23501         * modules/pwrite-tests: Remove references.
23502         Reported by Bruno Haible.
23503
23504 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23505
23506         init.sh: fix a typo
23507         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23508
23509 2010-05-10  Jim Meyering  <meyering@redhat.com>
23510
23511         maint.mk: avoid using a temporary file in the always-defined-macros check
23512         * top/maint.mk (.re-defmac): Remove rule.
23513         (gl_trap_): Remove definition.
23514         (sc_prohibit_always-defined_macros): Rewrite not to create and
23515         depend on a temporary file.  Instead, depend on GNU grep's ability
23516         to read a list of regular expressions from stdin when given "-f -".
23517
23518 2010-05-09  Bruno Haible  <bruno@clisp.org>
23519
23520         Update to GNU gettext 0.18, part 1.
23521         * m4/gettext.m4: Update to GNU gettext 0.18.
23522         * m4/intl.m4: Likewise.
23523         * m4/po.m4: Likewise.
23524         * modules/gettext (Files): Add m4/fcntl-o.m4.
23525         (configure.ac): Require gettext infrastructure from version 0.18.
23526
23527 2010-05-09  Jim Meyering  <meyering@redhat.com>
23528
23529         init.sh: enable MALLOC_PERTURB_
23530         * tests/init.sh: Enable glibc's malloc-perturbing option.
23531
23532         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23533         With my recent change in init.sh from the two-line form:
23534             -#   : ${srcdir=.}
23535             -#   . "$srcdir/init.sh"; path_prepend_ .
23536             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23537         I noticed that using the one-line form would cause this test
23538         to fail with a false-positive, or to stop working altogether,
23539         depending on whether help-version changed or all the tests did.
23540         * top/maint.mk (_hv_regex): Remove this definition.
23541         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23542         (_hv_regex_strong): Use a stronger regex to check for conformance.
23543         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23544         Give a separate diagnostic for lack of conforming use.
23545
23546         maint.mk: prohibit definition of symbols defined by gnulib
23547         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23548         definition of symbols defined by gnulib.
23549
23550 2010-05-09  Bruno Haible  <bruno@clisp.org>
23551
23552         acl: Avoid test failure on Cygwin-hosted mingw.
23553         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23554
23555 2010-05-09  Bruno Haible  <bruno@clisp.org>
23556
23557         error: Use system's fcntl function.
23558         * lib/error.c (fcntl): Undefine.
23559
23560 2010-05-09  Jim Meyering  <meyering@redhat.com>
23561
23562         verify: adjust formatting to be more consistent
23563         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23564         argument-list '('s, and after one comma.
23565
23566 2010-05-09  Bruno Haible  <bruno@clisp.org>
23567
23568         error: More reliable output on mingw.
23569         * lib/error.c: Include <windows.h>.
23570         (is_open): New function.
23571         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23572         defined.
23573
23574 2010-05-09  Bruno Haible  <bruno@clisp.org>
23575
23576         vasnprintf: Fix syntax errors in libintl build on mingw.
23577         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23578         pad_ourselves and prec_ourselves after use.
23579
23580 2010-05-08  Bruno Haible  <bruno@clisp.org>
23581
23582         * lib/config.charset: Update comments for Cygwin 1.7.
23583         * lib/localcharset.c: Likewise.
23584
23585 2010-05-07  Jim Meyering  <meyering@redhat.com>
23586
23587         init.sh: improve comments
23588         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23589         . "${srcdir=.}/init.sh"; path_prepend_ .
23590         Add a note about path_prepend_ and the alternative of using
23591         TESTS_ENVIRONMENT.
23592
23593 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23594
23595         exclude: Unescape hashed patterns in wildcard mode.
23596         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23597         to the hash list.
23598         * tests/test-exclude8.sh: New test case.
23599         * modules/exclude-tests: Add new test.
23600
23601 2010-05-05  Eric Blake  <eblake@redhat.com>
23602
23603         verify: automate tests
23604         * modules/verify-tests: New module.
23605         * tests/test-verify.sh: New file.
23606         * tests/test-verify.c: Guard each negative test with a unique id.
23607         Also avoid warning about unused left hand of comma expressions.
23608
23609 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23610
23611         Further improvements to verify.h, suggested by Eric Blake.
23612         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23613         the GL_* versions, to avoid collision with OpenGL.
23614         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23615         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23616         than testing merely whether it's defined.
23617
23618         Modify verify.h to pacify gcc -Wredundant_decls.
23619         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23620         These use the prefix "GL_" since they're likely to be useful elsewhere.
23621         We may need to break them out into a different .h file.
23622         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23623         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23624         of verify_function__.
23625
23626 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23627
23628         Tests for module pwrite.
23629         * modules/pwrite-tests: New file.
23630         * tests/test-pwrite.sh: New file.
23631         * tests/test-pwrite.c: New file.
23632
23633         New module pwrite.
23634         * lib/unistd.in.h (pwrite): New declaration.
23635         * lib/pwrite.c: New file, from glibc with modifications.
23636         * m4/pwrite.m4: New file.
23637         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23638         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23639         REPLACE_PWRITE.
23640         * modules/pwrite: New file.
23641         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23642         REPLACE_PWRITE.
23643         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23644         * doc/posix-functions/pwrite.texi: Mention the new module.
23645
23646 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23647
23648         pread: Update documentation.
23649         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23650
23651 2010-05-04  Eric Blake  <eblake@redhat.com>
23652
23653         docs: update cygwin progress
23654         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23655         this bug.
23656         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23657         Added in cygwin 1.7.2.
23658         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23659         Likewise.
23660         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23661         Likewise.
23662         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23663         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23664         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23665         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23666         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23667         Mention nproc module.
23668         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23669         bug in cygwin 1.7.5 addition.
23670         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23671         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23672         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23673         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23674         1.7.5.
23675         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23676         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23677         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23678         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23679         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23680         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23681         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23682         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23683         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23684         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23685         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23686         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23687         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23688         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23689         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23690         Likewise.
23691         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23692         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23693         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23694         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23695         Likewise.
23696         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23697         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23698         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23699         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23700         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23701         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23702         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23703         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23704         Likewise.
23705         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23706         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23707         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23708         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23709         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23710         Likewise.
23711         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23712         Likewise.
23713         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23714         Likewise.
23715         * doc/glibc-functions/xdrrec_endofrecord.texi
23716         (xdrrec_endofrecord): Likewise.
23717         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23718         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23719         Likewise.
23720         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23721         Likewise.
23722
23723 2010-05-04  Jim Meyering  <meyering@redhat.com>
23724
23725         gendocs.sh: make its "-s FILE" option more useful
23726         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23727         $PACKAGE to reflect the probably-different basename of "FILE".
23728
23729 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23730
23731         bootstrap: don't ignore download_po_files failure
23732         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23733         failure.
23734
23735 2010-05-03  Jim Meyering  <meyering@redhat.com>
23736
23737         maint.mk: allow to pass options to gendocs.sh
23738         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23739         (gendocs_options_): New overridable variable.
23740
23741         gnu-web-doc-update: don't ignore configure or build failure
23742         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23743
23744         announce-gen: backslash-escape '@'s in --help output
23745         * build-aux/announce-gen: Fix syntax errors.
23746
23747         maint.mk, announce-gen: allow project-specific announcement mail headers
23748         * top/maint.mk (translation_project_): Define default.
23749         (announcement_Cc_, announcement_mail_headers_): Likewise.
23750         (announcement): Invoke announce-gen with new --mail-headers option.
23751         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23752
23753         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23754         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23755         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23756         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23757         line in the "err2" output file when running "make check" in verbose
23758         mode (i.e., with set -x enabled).
23759
23760 2010-05-03  Bruno Haible  <bruno@clisp.org>
23761
23762         wctob: Fix for weird platforms.
23763         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23764         argument value.
23765
23766 2010-05-03  Jim Meyering  <meyering@redhat.com>
23767
23768         maint.mk: prohibit unwarranted use of <strings.h>
23769         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23770         strings.h in a file that does not also use strcasecmp, strncasecmp,
23771         ffs or ffsll.
23772
23773         maint.mk: remove obsolete comments
23774         * top/maint.mk: Remove stale, commented-out rules.
23775
23776 2010-05-02  Bruno Haible  <bruno@clisp.org>
23777
23778         wcwidth: Declare also when it's aliased.
23779         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23780         macro.
23781
23782 2010-05-02  Bruno Haible  <bruno@clisp.org>
23783
23784         Fix regression from 2010-04-25.
23785         * gnulib-tool (func_modules_transitive_closure): Check the status of
23786         all modules, not only of the tests that are of the form foo-tests where
23787         foo is a module.
23788
23789 2010-05-02  Bruno Haible  <bruno@clisp.org>
23790
23791         wctob: Work around nasty Cygwin 1.7.2 bug.
23792         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23793         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23794
23795 2010-05-01  Bruno Haible  <bruno@clisp.org>
23796
23797         fpurge: Sharper test.
23798         * tests/test-fpurge.c (main): Add one more ftell check.
23799         * modules/fpurge-tests (Depends-on): Add ftell.
23800         Suggested by Eric Blake.
23801
23802 2010-05-01  Bruno Haible  <bruno@clisp.org>
23803
23804         ftello: Another test.
23805         * tests/test-ftello3.c: New file.
23806         * modules/ftello-tests (Files): Add it.
23807         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23808         MOSTLYCLEANFILES.
23809
23810         ftell: Another test.
23811         * tests/test-ftell3.c: New file.
23812         * modules/ftell-tests (Files): Add it.
23813         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23814         MOSTLYCLEANFILES.
23815
23816 2010-05-01  Bruno Haible  <bruno@clisp.org>
23817
23818         ftell, ftello: Work around Solaris bug.
23819         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23820         * lib/ftello.c: Include stdio-impl.h.
23821         (ftello): On Solaris, when _IOWRT is set, compute the result without
23822         looking at _IOREAD.
23823         * modules/ftello (Files): Add lib/stdio-impl.h.
23824         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23825         * doc/posix-functions/ftello.texi: Likewise.
23826         Reported by Eric Blake.
23827
23828 2010-05-01  Bruno Haible  <bruno@clisp.org>
23829
23830         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23831         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23832         the _IOWRT flag is also set.
23833
23834 2010-05-01  Bruno Haible  <bruno@clisp.org>
23835
23836         Fix doc about a HP-UX stdio bug.
23837         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23838         * doc/posix-functions/ftello.texi: Likewise.
23839
23840 2010-05-01  Bruno Haible  <bruno@clisp.org>
23841
23842         lseek test: Fix failure on Solaris.
23843         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23844         output.
23845
23846 2010-04-30  Jim Meyering  <meyering@redhat.com>
23847
23848         bootstrap: don't ignore failure to generate po*/Makevars
23849         * build-aux/bootstrap (with_gettext): Don't ignore failure
23850         to create po/Makevars or runtime-po/Makevars.
23851
23852 2010-04-29  Eric Blake  <eblake@redhat.com>
23853
23854         headers: relax license to LGPLv2+
23855         * modules/fcntl-h (License): Relax license.
23856         * modules/getopt-posix (License): Likewise.
23857         * modules/locale (License): Likewise.
23858         * modules/math (License): Likewise.
23859         * modules/pty (License): Likewise.
23860         * modules/sched (License): Likewise.
23861         * modules/search (License): Likewise.
23862         * modules/spawn (License): Likewise.
23863         * modules/stdarg (License): Likewise.
23864         * modules/sysexits (License): Likewise.
23865
23866 2010-04-29  Jim Meyering  <meyering@redhat.com>
23867
23868         inttypes: relax license to LGPLv2+
23869         * modules/inttypes (License): Relax license.
23870
23871 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23872
23873         * top/maint.mk (indent): Run twice to produce idempotent results.
23874
23875 2010-04-28  Bruno Haible  <bruno@clisp.org>
23876
23877         getdate: Generate getdate.c in the source directory.
23878         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23879         MOSTLYCLEANFILES.
23880         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23881
23882 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23883
23884         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23885         is not declared as a const *; avoid warnings in that case.
23886
23887 2010-04-28  Eric Blake  <eblake@redhat.com>
23888
23889         canonicalize-lgpl: avoid compiler warning
23890         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23891         declaration' / 'extraneous semicolon' warning with some compilers.
23892         Reported by Andreas Gruenbacher.
23893
23894 2010-04-28  Jim Meyering  <meyering@redhat.com>
23895
23896         init.sh: ensure a more reliable exit status when exiting via trap
23897         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23898         Inspired by patches from Dmitry V. Levin.
23899         Also trap on signal 3 (SIGQUIT).
23900
23901 2010-04-27  Bruno Haible  <bruno@clisp.org>
23902
23903         Update doc about utimes().
23904         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23905         'utimens' module.
23906         Reported by Andreas Gruenbacher <agruen@suse.de>.
23907
23908 2010-04-27  Eric Blake  <eblake@redhat.com>
23909
23910         full-read, full-write: relax license
23911         * modules/full-read (License): Drop to LGPLv2+.
23912         * modules/full-write (License): Likewise.
23913         * modules/safe-read (License): Likewise.
23914         * modules/safe-write (License): Likewise.
23915
23916         pthread: mention library for linking
23917         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23918
23919 2010-04-27  Jim Meyering  <meyering@redhat.com>
23920
23921         maint.mk: fix a bug introduced in last change
23922         * top/maint.mk (gl_assured_headers_): Now that all names are on
23923         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23924         is not anchored to end of word, it should be adequate.
23925
23926         maint.mk: avoid side-effect in latest syntax-check
23927         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23928         to run commands via $(shell...), and hence to incur cost only when
23929         the new rule is actually run.
23930
23931         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23932         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23933         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23934         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23935         (gl_assured_headers_, az_, AZ_): Define.
23936         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23937
23938 2010-04-26  Jim Meyering  <jim@meyering.net>
23939             Bruno Haible  <bruno@clisp.org>
23940
23941         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23942         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23943         Prompted by an exchange with Gilles Espinasse.
23944
23945 2010-04-26  Jim Meyering  <meyering@redhat.com>
23946
23947         git-version-gen: aesthetic tweak
23948         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23949         so that the command remains on a single line.
23950
23951 2010-04-26  Eric Blake  <eblake@redhat.com>
23952
23953         git-version-gen: allow use on EBCDIC hosts
23954         * build-aux/git-version-gen (dirty): Use literal rather than tying
23955         ourselves to ascii.
23956         Reported by Steve Goetze.
23957
23958 2010-04-25  Bruno Haible  <bruno@clisp.org>
23959
23960         netdb: Add support for GNULIB_POSIXCHECK.
23961         * lib/netdb.in.h: Include warn-on-use.h.
23962         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23963         functions are used when GNULIB_POSIXCHECK is defined and the
23964         getaddrinfo module is not in use.
23965         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23966         freeaddrinfo, gai_strerror, getnameinfo are declared.
23967         * modules/netdb (Depends-on): Add warn-on-use.
23968         (Makefile.am): Include warn-on-use.h in netdb.h.
23969
23970 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23971
23972         build: avoid "make check" failure without .git/ directory
23973         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23974         there is no .git/ directory.
23975
23976 2010-04-25  Bruno Haible  <bruno@clisp.org>
23977
23978         ptsname: Fix misuse of ttyname_r.
23979         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23980         of errno.
23981
23982 2010-04-25  Bruno Haible  <bruno@clisp.org>
23983
23984         ttyname_r: Make it work on Solaris 10.
23985         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23986         if the system function has the POSIX declaration. Test whether the
23987         function fails if the buffer is less than 128 bytes large.
23988         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23989         system's ttyname_r function. Provide a reasonably large buffer.
23990         * modules/ttyname_r (Depends-on): Add extensions.
23991         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23992
23993 2010-04-25  Bruno Haible  <bruno@clisp.org>
23994
23995         Use the 'extensions' module for some more functions on Solaris.
23996         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23997         module.
23998         * doc/posix-functions/ctime_r.texi: Likewise.
23999         * doc/posix-functions/getgrgid_r.texi: Likewise.
24000         * doc/posix-functions/getgrnam_r.texi: Likewise.
24001         * doc/posix-functions/getpwnam_r.texi: Likewise.
24002         * doc/posix-functions/getpwuid_r.texi: Likewise.
24003         * doc/posix-functions/readdir_r.texi: Likewise.
24004         * doc/posix-functions/sigwait.texi: Likewise.
24005         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24006         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24007
24008 2010-04-25  Bruno Haible  <bruno@clisp.org>
24009
24010         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24011         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24012         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24013         * lib/ttyname_r.c: Include <limits.h>.
24014         (ttyname_r): Define using the system's ttyname_r function, if it exists
24015         and not on Solaris.
24016         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24017         set.
24018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24019         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24020         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24021         Reported by Simon Josefsson.
24022
24023 2010-04-25  Bruno Haible  <bruno@clisp.org>
24024
24025         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24026         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24027         * doc/posix-functions/ctime_r.texi: Likewise.
24028         * doc/posix-functions/getgrgid_r.texi: Likewise.
24029         * doc/posix-functions/getgrnam_r.texi: Likewise.
24030         * doc/posix-functions/getlogin_r.texi: Likewise.
24031         * doc/posix-functions/getpwnam_r.texi: Likewise.
24032         * doc/posix-functions/getpwuid_r.texi: Likewise.
24033         * doc/posix-functions/readdir_r.texi: Likewise.
24034         * doc/posix-functions/sigwait.texi: Likewise.
24035         * doc/posix-functions/ttyname_r.texi: Likewise.
24036         Reported by Simon Josefsson.
24037
24038 2010-04-25  Bruno Haible  <bruno@clisp.org>
24039
24040         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24041         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24042         also to --create-testdir.
24043         (func_acceptable): Don't consider the status of *-tests modules here.
24044         (func_modules_transitive_closure): Consider it here, before including a
24045         test module.
24046         (func_import, func_create_testdir): Set inc_all_direct_tests,
24047         inc_all_indirect_tests.
24048         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24049         --create-testdir and --create-megatestdir.
24050
24051 2010-04-25  Bruno Haible  <bruno@clisp.org>
24052
24053         gnulib-tool: Add --without-*-tests options.
24054         * gnulib-tool (func_usage): Document the --without-*-tests options.
24055         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24056         excl_unportable_tests): New variables.
24057         Fail if they are specified with --import or --update.
24058         (func_acceptable): Respect the excl_*_tests variables.
24059         (func_import): Set the excl_*_tests variables to empty.
24060
24061 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24062             Bruno Haible  <bruno@clisp.org>
24063
24064         Work around a MacOS X 10.4 bug with openpty.
24065         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24066         * tests/test-openpty.c (main): Close the master side explicitly.
24067
24068 2010-04-25  Bruno Haible  <bruno@clisp.org>
24069
24070         strnlen: Fix a C++ test error on MacOS X and Solaris.
24071         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24072         the function is not declared.
24073         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24074         Simon Josefsson.
24075
24076 2010-04-24  Bruno Haible  <bruno@clisp.org>
24077
24078         Avoid a gcc warning.
24079         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24080         of correct type for %08lx directive.
24081         Reported by Eric Blake.
24082
24083 2010-04-24  Bruno Haible  <bruno@clisp.org>
24084
24085         vasnprintf: Correct errno value in case of out-of-memory.
24086         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24087         or sprintf. Use the errno value from SNPRINTF or sprintf.
24088         Reported by Ian Beckwith <ianb@erislabs.net>.
24089
24090 2010-04-24  Bruno Haible  <bruno@clisp.org>
24091
24092         ansi-c++-opt: Find correct compiler when cross-compiling.
24093         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24094         AC_CHECK_PROGS.
24095         Reported by Simon Josefsson.
24096
24097 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24098
24099         vc-list-files: Add support for subversion
24100         * build-aux/vc-list-files: Use "svn list" to generate the list of
24101         files controlled by subversion.
24102
24103 2010-04-23  Jim Meyering  <meyering@redhat.com>
24104
24105         vc-list-files tests: convert to use init.sh
24106         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24107         path_prepend_.
24108         Use Exit, not exit.
24109         Use skip_ rather than open coding it.
24110         Remove trap set-up and compare definitions.
24111         * tests/test-vc-list-files-git.sh: Likewise.
24112         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24113
24114 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24115
24116         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24117         backup files.
24118
24119 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24120
24121         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24122
24123 2010-04-20  Eric Blake  <eblake@redhat.com>
24124
24125         tests: be robust to ignored SIGPIPE
24126         * tests/test-select-in.sh: Consume all output.
24127         * tests/test-lseek.sh: Check correct exit status, while avoiding
24128         EPIPE.
24129
24130 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24131             Bruno Haible  <bruno@clisp.org>
24132
24133         visibility: Don't use -fvisibility if it leads to a warning.
24134         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24135         yes, don't pretend that visibility works if it leads to a warning.
24136         Reported by Mike Gran <spk121@yahoo.com>.
24137
24138 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24139
24140         * build-aux/bootstrap: Use "git -h" for testing for supported options
24141         instead of "git --help".  The short-form option only shows a summary,
24142         and doesn't layout the full man page.  Grep for the full option name
24143         in the summary, too.
24144
24145 2010-04-19  Bruno Haible  <bruno@clisp.org>
24146
24147         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24148         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24149         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24150         mention of RELOCATABLE_STRIP.
24151         Reported by Sylvain Beucler <beuc@beuc.net>.
24152
24153 2010-04-19  Bruno Haible  <bruno@clisp.org>
24154
24155         * lib/diffseq.h: Fix typo in comment.
24156         Reported by Eric Blake.
24157
24158 2010-04-19  Bruno Haible  <bruno@clisp.org>
24159
24160         ioctl: Move autoconf macro to a .m4 file.
24161         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24162         * modules/ioctl (Files): Add it.
24163         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24164         Reported by Ian Beckwith <ianb@erislabs.net>.
24165
24166 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24167             Bruno Haible  <bruno@clisp.org>
24168
24169         diffseq: Accommodate use-case with abstract arrays.
24170         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24171         is not defined.
24172         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24173         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24174
24175 2010-04-18  Bruno Haible  <bruno@clisp.org>
24176
24177         * doc/posix-headers/stdbool.texi: More precise wording.
24178
24179 2010-04-17  Jim Meyering  <meyering@redhat.com>
24180
24181         maint.mk: use gnu-style indentation in an embedded perl script
24182         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24183         Rename variable: s/two/last_two_bytes/
24184
24185 2010-04-16  Eric Blake  <eblake@redhat.com>
24186
24187         test-stdbool: skip test that fails with Solaris CC
24188         * tests/test-stdbool.c (f): Skip test that causes compilation
24189         error under buggy C++ compiler.
24190         * lib/stdbool.in.h: Document the limitation.
24191         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24192
24193         setenv: allow compilation with C++
24194         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24195         register keyword.
24196
24197         stdint: allow test to pass with C++
24198         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24199
24200         getopt: allow compilation with C++
24201         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24202         struct.
24203         * lib/getopt.c (_getopt_internal_r): Use correct type.
24204         Reported by Dagobert Michelson, via Joel E. Denny.
24205
24206 2010-04-16  Bruno Haible  <bruno@clisp.org>
24207
24208         Override netdb.h always.
24209         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24210         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24211         Reported by Ludovic Courtès <ludo@gnu.org>.
24212
24213 2010-04-15  Bruno Haible  <bruno@clisp.org>
24214
24215         openpty: Fix mistake from 2010-03-21.
24216         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24217         Reported by Simon Josefsson.
24218
24219 2010-04-15  Eric Blake  <eblake@redhat.com>
24220
24221         test-forkpty: fix expected signature
24222         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24223         Reported by Simon Josefsson.
24224
24225 2010-04-15  Jim Meyering  <meyering@redhat.com>
24226
24227         maint.mk: texinfo_suffix_re_: correct the default regexp
24228         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24229
24230         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24231         make it configurable via texinfo_suffix_re_.
24232
24233 2010-04-14  Eric Blake  <eblake@redhat.com>
24234
24235         strtok_r: relax license to LGPLv2+
24236         * modules/strtok_r (License): Relax license.
24237         Reported by Matthias Bolte.
24238
24239 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24240
24241         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24242         version 1.4.4 by default instead of requiring the libgcrypt
24243         version used during build.  This makes it possible to use the
24244         application with older but still binary compatible libgcrypt
24245         versions.
24246
24247 2010-04-13  Eric Blake  <eblake@redhat.com>
24248
24249         getopt-gnu: match recent glibc fixes and posix ruling
24250         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24251         '+' handling, when requesting extensions.
24252         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24253         'W;' handling.
24254         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24255         * doc/posix-functions/getopt.texi (getopt): Document this.
24256         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24257         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24258         Likewise.
24259
24260         getopt: merge bug fixes from glibc
24261         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24262         diagnostics.  Honor '+:' correctly.  Reject ';'.
24263
24264         getopt-posix: detect MacOS bug
24265         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24266         optind when missing a required argument.
24267         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24268         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24269         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24270         Likewise.
24271
24272         getopt-posix: avoid spurious failure on Solaris
24273         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24274         an indicator that setting optind=1 is sufficient for reset.
24275
24276         getopt-posix: avoid spurious failure on FreeBSD
24277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24278         in POSIX mode, since the m4 test uses it.
24279
24280         gnulib-tool: silence warning on BSD sh
24281         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24282
24283 2010-04-13  Jim Meyering  <meyering@redhat.com>
24284
24285         doc: users.txt: GNU patch now uses gnulib
24286         * users.txt: Add patch.
24287
24288 2010-04-12  Jim Meyering  <meyering@redhat.com>
24289
24290         maint.mk: generate more concise timing data for syntax-check rules
24291         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24292         " done" from each line that reports a syntax-check test duration.
24293
24294 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24295
24296         git-version-gen: use "git update-index..." rather than "git status"
24297         * build-aux/git-version-gen: Use git update-index --refresh, not
24298         "git status".  With some versions of git, "git status" would fail
24299         to update the index and result in an unwarranted "-dirty" suffix.
24300
24301 2010-04-11  Jim Meyering  <meyering@redhat.com>
24302
24303         openat: correct formatting (no semantic change)
24304         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24305         Suggested by Bruno Haible.
24306
24307 2010-04-11  Bruno Haible  <bruno@clisp.org>
24308
24309         Stricter declaration checking in testdirs.
24310         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24311         If for_tests is true, augment AM_CPPFLAGS to define
24312         GNULIB_STRICT_CHECKING.
24313         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24314         GNULIB_STRICT_CHECKING is defined, verify that the function is
24315         declared.
24316
24317 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24318             Bruno Haible  <bruno@clisp.org>
24319
24320         libunistring: Improve configure output.
24321         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24322         Don't say "consider installing GNU libunistring" when checking again
24323         with libiconv.
24324
24325 2010-04-11  Bruno Haible  <bruno@clisp.org>
24326
24327         libunistring: Correct value of $LTLIBUNISTRING.
24328         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24329         correct the value of $LTLIBUNISTRING.
24330
24331 2010-04-11  Bruno Haible  <bruno@clisp.org>
24332
24333         havelib: Add static libraries to LIBS in the right order.
24334         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24335         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24336
24337 2010-04-11  Bruno Haible  <bruno@clisp.org>
24338
24339         libunistring: Detect libunistring also when it depends on libiconv.
24340         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24341         the second AC_LIB_HAVE_LINKFLAGS invocation.
24342
24343 2010-04-11  James Youngman  <jay@gnu.org>
24344
24345         close-stream: declare local scalars to be "const"
24346         * lib/close-stream.c (close_stream): Make boolean variables const
24347         to document the fact that we set but do not change them.
24348
24349 2010-04-11  Bruno Haible  <bruno@clisp.org>
24350
24351         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24352
24353 2010-04-11  Jim Meyering  <meyering@redhat.com>
24354
24355         maint.mk: don't include dist-check.mk
24356         * top/maint.mk: Remove bogus include directive.
24357
24358         maint.mk: improve empty-line-at-EOF check
24359         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24360         solution, rather than tail+Perl-based one.  The latter would read
24361         a few kilobytes from the end of each file, and did not handle empty
24362         files properly.
24363
24364         maint.mk: print the elapsed time for each syntax-check rule
24365         * top/maint.mk (sc_m_rules_): Save start time in a file.
24366         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24367         (local-check): Interpose the .z rules
24368
24369 2010-04-11  Jim Meyering  <meyering@redhat.com>
24370
24371         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24372         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24373         empty file with one that ends in an empty line.
24374
24375 2010-04-10  Bruno Haible  <bruno@clisp.org>
24376
24377         mkdir: Make it work on mingw64.
24378         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24379         * lib/mkdir.c: Update comment.
24380         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24381
24382 2010-04-10  Bruno Haible  <bruno@clisp.org>
24383
24384         Don't override improved macro from newer autoconf.
24385         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24386         autoconf >= 2.62.
24387         Reported by Joel E. Denny <jdenny@clemson.edu>.
24388
24389 2010-04-10  Jim Meyering  <meyering@redhat.com>
24390
24391         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24392         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24393
24394         maint.mk: correct a diagnostic
24395         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24396         in diagnostic; now use $prohibit.
24397
24398 2010-04-10  Bruno Haible  <address@hidden>
24399
24400         fchownat: Fix a C++ test error on Solaris 8.
24401         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24402         the function does not exist.
24403
24404 2010-04-10  Bruno Haible  <bruno@clisp.org>
24405
24406         vasnprintf: Add more tests.
24407         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24408         (test_function): Test converting an invalid wide string.
24409
24410         vasnprintf: Correct handling of unconvertible wide string arguments.
24411         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24412         VASNPRINTF.
24413         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24414         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24415         smaller than the expected maximum need for the directive. Set errno to
24416         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24417         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24418         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24419         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24420         * modules/vasnprintf (Files): Add m4/printf.m4.
24421         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24422
24423 2010-04-10  Bruno Haible  <bruno@clisp.org>
24424
24425         vasnprintf: Fix crash in %ls directive.
24426         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24427         string is passed as argument to %ls, with no precision and no width.
24428         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24429
24430 2010-04-10  Bruno Haible  <bruno@clisp.org>
24431
24432         vasnprintf: Fix multiple test failures on mingw.
24433         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24434         _snprintf, or snwprintf, not _snwprintf.
24435
24436 2010-04-10  Bruno Haible  <bruno@clisp.org>
24437
24438         write: Fix a C++ test error on mingw.
24439         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24440
24441 2010-04-10  Bruno Haible  <bruno@clisp.org>
24442
24443         vasnprintf test: Reduce code duplication.
24444         * tests/test-vasnprintf.c (test_function): New function, extracted from
24445         test_vasnprintf.
24446         (test_vasnprintf, test_asnprintf): Invoke it.
24447
24448 2010-04-10  Bruno Haible  <bruno@clisp.org>
24449
24450         strnlen: Fix warning in C++ mode on MacOS X.
24451         * lib/string.in.h (strnlen): Use the modern idiom.
24452         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24453         defining strnlen as a macro already in <config.h>.
24454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24455         REPLACE_STRNLEN.
24456         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24457         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24458
24459 2010-04-08  James Youngman  <jay@gnu.org>
24460
24461         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24462         the example.
24463
24464 2010-04-09  Jim Meyering  <meyering@redhat.com>
24465
24466         maint.mk: print better diagnostic when there is no $(_hv_file)
24467         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24468         announce that when $(_hv_file) (aka help-version) does not exist.
24469
24470         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24471         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24472         not try to interpret its random input bytes.  Jarno Rajahalme reported
24473         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24474         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24475         (mktempd_): Likewise, just in case.
24476
24477         ftruncate: add two years to projected module removal date: 2012
24478         * m4/ftruncate.m4: Adjust comments.
24479
24480         ftruncate: mark module as obsolete; even MinGW provides it, now
24481         * modules/ftruncate (Status): Obsolete.
24482         (Notice): Say that.
24483         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24484         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24485
24486 2010-04-08  Bruno Haible  <bruno@clisp.org>
24487
24488         Fix side effects from tests-related modules.
24489         * modules/dprintf-posix (Comment): New section.
24490         * modules/fprintf-posix (Comment): Likewise.
24491         * modules/obstack-printf-posix (Comment): Likewise.
24492         * modules/printf-posix (Comment): Likewise.
24493         * modules/snprintf-posix (Comment): Likewise.
24494         * modules/sprintf-posix (Comment): Likewise.
24495         * modules/vasnprintf-posix (Comment): Likewise.
24496         * modules/vasprintf-posix (Comment): Likewise.
24497         * modules/vdprintf-posix (Comment): Likewise.
24498         * modules/vfprintf-posix (Comment): Likewise.
24499         * modules/vprintf-posix (Comment): Likewise.
24500         * modules/vsnprintf-posix (Comment): Likewise.
24501         * modules/vsprintf-posix (Comment): Likewise.
24502         * modules/xprintf-posix (Comment): Likewise.
24503         * modules/xvasprintf-posix (Comment): Likewise.
24504         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24505         * modules/floorf-tests (Depends-on): Likewise.
24506         * modules/round-tests (Depends-on): Likewise.
24507         * modules/roundf-tests (Depends-on): Likewise.
24508         * modules/trunc-tests (Depends-on): Likewise.
24509         * modules/truncf-tests (Depends-on): Likewise.
24510         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24511         'fprintf-posix' module is not present.
24512         * tests/test-floorf2.c (check): Likewise.
24513         * tests/test-trunc2.c (check): Likewise.
24514         * tests/test-truncf2.c (check): Likewise.
24515         * tests/test-round2.c (equal): Likewise.
24516         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24517
24518 2010-04-07  Karl Berry  <karl@gnu.org>
24519
24520         * config/srclist.txt,
24521         * config/srclistvars.sh,
24522         * config/srclist-update: doc fixes.
24523
24524 2010-04-07  Jim Meyering  <meyering@redhat.com>
24525
24526         maint.mk: add a PATH crosschecking syntax-check rule
24527         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24528         Useful if you use a test like the one in help-version (coreutils,
24529         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24530         printed by prog --version.
24531
24532 2010-04-06  Bruno Haible  <bruno@clisp.org>
24533
24534         Fix link error on mingw.
24535         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24536         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24537
24538 2010-04-06  Bruno Haible  <bruno@clisp.org>
24539
24540         Assume rmdir exists.
24541         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24542
24543 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24544
24545         doc: update users.txt
24546         * users.txt: Add gcal.
24547
24548 2010-04-06  Jim Meyering  <meyering@redhat.com>
24549
24550         init.sh: simply unset TMPDIR rather than risking env -i
24551         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24552         although it probably works fine on all Unix-based systems, some
24553         systems (Cygwin?) cannot tolerate a totally cleared environment.
24554         Suggestion from Eric Blake.
24555
24556 2010-04-06  Jim Meyering  <meyering@redhat.com>
24557
24558         init.sh: portability fix: use env's POSIX-specified -i option not -u
24559         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24560         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24561
24562 2010-04-05  Bruno Haible  <bruno@clisp.org>
24563
24564         btowc: Work around Cygwin 1.7.2 bug.
24565         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24566         does not map NUL to 0.
24567         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24568
24569 2010-04-05  Bruno Haible  <bruno@clisp.org>
24570
24571         Make the multithread modules work on Cygwin 1.7.2.
24572         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24573         imported symbols can be declared weak, so that it returns "no" on
24574         Cygwin 1.7.2.
24575
24576 2010-04-05  Bruno Haible  <bruno@clisp.org>
24577
24578         Use the module 'strncat'.
24579         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24580
24581         Tests for module 'strncat'.
24582         * modules/strncat-tests: New file.
24583         * tests/test-strncat.c: New file.
24584
24585         New module 'strncat'.
24586         * lib/string.in.h (strncat): New declaration.
24587         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24588         * m4/strncat.m4: New file, based on m4/memchr.m4.
24589         * modules/strncat: New file.
24590         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24591         is declared.
24592         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24593         REPLACE_STRNCAT.
24594         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24595         REPLACE_STRNCAT.
24596         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24597         module.
24598         * tests/test-string-c++.cc: Check signature of strncat.
24599
24600 2010-04-05  Jim Meyering  <meyering@redhat.com>
24601
24602         xstrtoumax-tests: convert to use init.sh
24603         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24604         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24605         Use Exit, not exit.
24606         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24607
24608         xstrtoimax-tests: convert to use init.sh
24609         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24610         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24611         Use Exit, not exit.
24612         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24613
24614 2010-04-05  Bruno Haible  <bruno@clisp.org>
24615
24616         sys_socket: Avoid #define replacements in C++ mode.
24617         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24618         warning to the function if possible, rather than #defining the symbol
24619         to a dysfunctional alias.
24620
24621 2010-04-05  Bruno Haible  <bruno@clisp.org>
24622
24623         fseeko: Fix C++ test error on mingw.
24624         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24625         gl_FUNC_FSEEKO.
24626         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24627         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24628         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24629         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24630
24631 2010-04-05  Bruno Haible  <bruno@clisp.org>
24632
24633         duplocale: Improve test output.
24634         * tests/test-duplocale.c (main): Print reason for skipped test.
24635
24636 2010-04-05  Bruno Haible  <bruno@clisp.org>
24637
24638         Assume rmdir exists.
24639         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24640         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24641
24642 2010-04-05  Bruno Haible  <bruno@clisp.org>
24643
24644         Fix link error on Solaris 8 with cc.
24645         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24646
24647 2010-04-05  Bruno Haible  <bruno@clisp.org>
24648
24649         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24650         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24651
24652 2010-04-05  Bruno Haible  <bruno@clisp.org>
24653
24654         vasprintf: Update documentation.
24655         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24656
24657 2010-04-05  Bruno Haible  <bruno@clisp.org>
24658
24659         ptsname: Improve test.
24660         * tests/test-ptsname.c (main): Also try the various master names of BSD
24661         systems.
24662
24663 2010-04-05  Bruno Haible  <bruno@clisp.org>
24664
24665         memchr: Avoid a possible C++ test error.
24666         * lib/string.in.h (memchr): Provide declaration if function is missing.
24667         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24668         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24670         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24671
24672 2010-04-05  Bruno Haible  <bruno@clisp.org>
24673
24674         strtok_r: Improve idiom.
24675         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24676         AC_LIBOBJ is used.
24677
24678 2010-04-05  Bruno Haible  <bruno@clisp.org>
24679
24680         strdup: Improve idiom.
24681         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24682         AC_LIBOBJ is used.
24683         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24684         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24685         when AC_LIBOBJ is used.
24686
24687 2010-04-05  Bruno Haible  <bruno@clisp.org>
24688
24689         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24690         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24691         don't set REPLACE_MBSINIT to 1.
24692         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24693         don't set REPLACE_MBRTOWC to 1.
24694         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24695         exist, don't set REPLACE_MBSRTOWCS to 1.
24696         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24697         exist, don't set REPLACE_MBSNRTOWCS to 1.
24698         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24699         don't set REPLACE_WCRTOMB to 1.
24700         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24701         exist, don't set REPLACE_WCSRTOMBS to 1.
24702         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24703         exist, don't set REPLACE_WCSNRTOMBS to 1.
24704
24705 2010-04-05  Bruno Haible  <bruno@clisp.org>
24706
24707         ldexpl: Improve idiom.
24708         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24709         make sure to set HAVE_DECL_LDEXPL to 0.
24710
24711 2010-04-05  Jim Meyering  <meyering@redhat.com>
24712
24713         xstrtol-tests: convert to use init.sh
24714         * modules/xstrtol-tests (Files): Add tests/init.sh.
24715         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24716         Use Exit, not exit.
24717         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24718
24719         atexit-tests: convert to use init.sh
24720         * modules/atexit-tests (Files): Add tests/init.sh.
24721         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24722         Use Exit, not exit.
24723         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24724
24725         init.sh: fix typo
24726         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24727
24728         init.sh: make it easier for a test script to write to the tty, ...
24729         when using automake's parallel-tests mode.
24730         * tests/init.sh (stderr_fileno_): Define overridable variable.
24731         (warn_): New function, to use it.
24732         (fail_, skip_, framework_failure_): Use warn_.
24733
24734 2010-04-04  Bruno Haible  <bruno@clisp.org>
24735
24736         btowc: Avoid warning.
24737         * lib/btowc.c: Include <stdlib.h>.
24738         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24739
24740 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24741             Bruno Haible  <bruno@clisp.org>
24742
24743         wchar: Port to NetBSD 1.5.
24744         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24745         * lib/wctype.in.h (WEOF): Likewise.
24746
24747 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24748             Bruno Haible  <bruno@clisp.org>
24749
24750         Port extended stdio to NetBSD 1.5.
24751         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24752         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24753         older.
24754
24755 2010-04-04  Bruno Haible  <bruno@clisp.org>
24756
24757         string: Remove unused substitution.
24758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24759         HAVE_DECL_STRERROR.
24760         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24761
24762 2010-04-04  Bruno Haible  <bruno@clisp.org>
24763
24764         strtod: Avoid a possible C++ test error.
24765         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24766         set REPLACE_STRTOD.
24767
24768 2010-04-04  Bruno Haible  <bruno@clisp.org>
24769
24770         strerror: Update documentation.
24771         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24772
24773 2010-04-04  Bruno Haible  <bruno@clisp.org>
24774
24775         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24776         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24777         _GL_CXXALIAS_SYS_CAST.
24778
24779 2010-04-04  Bruno Haible  <bruno@clisp.org>
24780
24781         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24782         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24783         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24784         REPLACE_FREXPL to 1.
24785         * doc/posix-functions/frexpl.texi: Update documentation.
24786
24787 2010-04-04  Bruno Haible  <bruno@clisp.org>
24788
24789         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24790         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24791
24792 2010-04-04  Bruno Haible  <bruno@clisp.org>
24793
24794         Implement nanosleep for native Windows.
24795         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24796
24797 2010-04-04  Bruno Haible  <bruno@clisp.org>
24798
24799         math: Fix some C++ test errors on Solaris 8.
24800         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24801
24802 2010-04-04  Bruno Haible  <bruno@clisp.org>
24803
24804         math: Fix some C++ test errors on Cygwin.
24805         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24806         truncl): Provide declaration if the system does not have it.
24807         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24808         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24809         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24810         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24811         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24812         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24813         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24814         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24815         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24816         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24817         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24818         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24819         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24820         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24821         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24822         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24823         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24824         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24825         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24826         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24827         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24828         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24829
24830 2010-04-04  Bruno Haible  <bruno@clisp.org>
24831
24832         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24833         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24834         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24835         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24836         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24837         * m4/isinf.m4 (gl_ISINF): Likewise.
24838         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24839
24840 2010-04-04  Bruno Haible  <bruno@clisp.org>
24841
24842         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24843         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24844
24845 2010-04-04  Bruno Haible  <bruno@clisp.org>
24846
24847         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24848         * modules/tmpfile (configure.ac): Update.
24849
24850         tmpfile: Fix C++ test error on mingw.
24851         * lib/stdio.in.h (tmpfile): New declaration.
24852         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24853         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24854         * modules/tmpfile (Depends-on): Add stdio.
24855         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24856         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24857         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24858         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24859         REPLACE_TMPFILE.
24860         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24861
24862 2010-04-04  Bruno Haible  <bruno@clisp.org>
24863
24864         ioctl: Fix C++ test error on mingw.
24865         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24866         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24867         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24868
24869 2010-04-03  Bruno Haible  <bruno@clisp.org>
24870
24871         wcwidth: Fix C++ test error on mingw.
24872         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24873         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24874         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24875
24876 2010-04-03  Bruno Haible  <bruno@clisp.org>
24877
24878         nanosleep: Fix C++ test error on mingw.
24879         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24880         * lib/time.in.h (nanosleep): Use modern idiom.
24881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24882         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24883         REPLACE_NANOSLEEP to 1.
24884         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24885         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24886
24887 2010-04-03  Bruno Haible  <bruno@clisp.org>
24888
24889         strptime: Fix C++ test error on mingw.
24890         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24891         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24892         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24893         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24894         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24895         not REPLACE_STRPTIME.
24896         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24897         REPLACE_STRPTIME.
24898
24899 2010-04-03  Bruno Haible  <bruno@clisp.org>
24900
24901         timegm: Fix C++ test error on mingw.
24902         * lib/time.in.h (timegm): Use modern idiom.
24903         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24904         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24905         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24906         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24907
24908 2010-04-03  Bruno Haible  <bruno@clisp.org>
24909
24910         timegm: Assume declaration if function exists.
24911         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24912         if it exists. Don't clobber ac_cv_func_timegm.
24913
24914 2010-04-03  Bruno Haible  <bruno@clisp.org>
24915
24916         time_r: Fix C++ test error on mingw.
24917         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24918         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24919         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24920         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24921         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24922
24923 2010-04-03  Bruno Haible  <bruno@clisp.org>
24924
24925         time_r: Minor updates.
24926         * modules/time_r (Description): Mention the provided functions.
24927         * lib/time_r.c: Don't include <string.h>.
24928         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24929         * doc/posix-functions/localtime_r.texi: Likewise.
24930
24931 2010-04-03  Bruno Haible  <bruno@clisp.org>
24932
24933         time: Fix regression introduced on 2010-03-08.
24934         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24935         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24936
24937 2010-04-03  Jim Meyering  <meyering@redhat.com>
24938
24939         maint.mk: don't silently disable project-specific syntax-check rules
24940         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24941         that they need to convert their project-specific syntax-check rules
24942         to use the new _sc_search_regexp.
24943
24944 2010-04-03  Bruno Haible  <bruno@clisp.org>
24945
24946         fchdir: Fix regression introduced on 2010-03-08.
24947         * lib/unistd.in.h (fchdir): Fix declaration.
24948         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24950         REPLACE_FCHDIR.
24951         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24952         REPLACE_FCHDIR.
24953
24954 2010-04-03  Bruno Haible  <bruno@clisp.org>
24955
24956         getpagesize: Fix C++ test error on mingw.
24957         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24958         system does not declare the function.
24959         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24960         declared.
24961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24962         HAVE_DECL_GETPAGESIZE.
24963         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24964
24965 2010-04-03  Bruno Haible  <bruno@clisp.org>
24966
24967         stdio: Make C++ tests work on mingw.
24968         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24969         does not declare the function.
24970
24971 2010-04-03  Bruno Haible  <bruno@clisp.org>
24972
24973         ftello: Fix C++ test error on mingw.
24974         * lib/stdio.in.h (ftello): Use modern idiom.
24975         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24976         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24977         is missing and that it needs to be replaced.
24978         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24980         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24981
24982 2010-04-03  Bruno Haible  <bruno@clisp.org>
24983
24984         fseeko: Fix C++ test error on mingw.
24985         * lib/stdio.in.h (fseeko): Use modern idiom.
24986         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24987         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24988         is missing and that it needs to be replaced.
24989         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24991         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24992
24993 2010-04-03  Bruno Haible  <bruno@clisp.org>
24994
24995         mkstemp: Fix C++ test error on mingw.
24996         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24997         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24998         function is missing and that it needs to be replaced.
24999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25000         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25001
25002 2010-04-03  Bruno Haible  <bruno@clisp.org>
25003
25004         stpncpy: Fix C++ test error on mingw.
25005         * lib/string.in.h (stpncpy): Use modern idiom.
25006         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25007         function is missing and that it needs to be replaced.
25008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25009         REPLACE_STPNCPY.
25010         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25011
25012 2010-04-03  Bruno Haible  <bruno@clisp.org>
25013
25014         sys_stat: Fix C++ test error on mingw.
25015         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25016         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25017
25018 2010-04-03  Bruno Haible  <bruno@clisp.org>
25019
25020         pty: Update doc.
25021         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25022
25023 2010-04-03  Bruno Haible  <bruno@clisp.org>
25024
25025         unistd: Fix C++ test error on mingw.
25026         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25027
25028 2010-04-03  Bruno Haible  <bruno@clisp.org>
25029
25030         Update doc regarding mingw.
25031         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25032         * doc/glibc-functions/login_tty.texi: Likewise.
25033         * doc/glibc-functions/forkpty.texi: Likewise.
25034
25035 2010-04-03  Bruno Haible  <bruno@clisp.org>
25036
25037         stdlib: Avoid compilation failure of c-strtold on mingw.
25038         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25039
25040 2010-04-03  Bruno Haible  <bruno@clisp.org>
25041
25042         locale: Make C++ tests work on Cygwin and mingw.
25043         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25044         cannot provide the function.
25045         Reported by Simon Josefsson.
25046
25047 2010-04-03  Bruno Haible  <bruno@clisp.org>
25048
25049         localename: Port to MacOS X 10.6.
25050         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25051         memory layout of the locales in MacOS X 10.6 as well.
25052         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25053
25054 2010-04-02  Bruno Haible  <bruno@clisp.org>
25055
25056         gnulib-tool: Ensure that long-running tests are executed last.
25057         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25058         running tests after the one for the other tests.
25059
25060 2010-04-02  Bruno Haible  <bruno@clisp.org>
25061
25062         gnulib-tool: Ensure the tests in the main directory are executed first.
25063         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25064         start with the current directory.
25065
25066 2010-04-02  Bruno Haible  <bruno@clisp.org>
25067
25068         Tests for module 'havelib', moved here from GNU gettext.
25069         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25070         modifications.
25071         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25072         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25073         with modifications.
25074         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25075         modifications.
25076         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25077         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25078         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25079         with modifications.
25080         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25081         with modifications.
25082         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25083         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25084         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25085         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25086         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25087         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25088         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25089         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25090         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25091         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25092         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25093         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25094         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25095         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25096         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25097         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25098         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25099         with modifications.
25100         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25101         with modifications.
25102         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25103         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25104         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25105         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25106         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25107         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25108         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25109         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25110         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25111         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25112         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25113         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25114         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25115         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25116         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25117         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25118         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25119         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25120         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25121         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25122         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25123         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25124         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25125         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25126         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25127         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25128         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25129         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25130         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25131         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25132         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25133         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25134         * tests/havelib/rpathx/rpathx.c: New file, from
25135         gettext/autoconf-lib-link.
25136         * tests/havelib/rpathx/Makefile.am: New file, from
25137         gettext/autoconf-lib-link.
25138         * tests/havelib/rpathx/configure.ac: New file, from
25139         gettext/autoconf-lib-link with modifications.
25140         * tests/havelib/rpathy/rpathy.c: New file, from
25141         gettext/autoconf-lib-link.
25142         * tests/havelib/rpathy/Makefile.am: New file, from
25143         gettext/autoconf-lib-link.
25144         * tests/havelib/rpathy/configure.ac: New file, from
25145         gettext/autoconf-lib-link with modifications.
25146         * tests/havelib/rpathz/rpathz.c: New file, from
25147         gettext/autoconf-lib-link.
25148         * tests/havelib/rpathz/Makefile.am: New file, from
25149         gettext/autoconf-lib-link.
25150         * tests/havelib/rpathz/configure.ac: New file, from
25151         gettext/autoconf-lib-link with modifications.
25152         * tests/havelib/rpathlx/usex.c: New file, from
25153         gettext/autoconf-lib-link.
25154         * tests/havelib/rpathlx/Makefile.am: New file, from
25155         gettext/autoconf-lib-link.
25156         * tests/havelib/rpathlx/configure.ac: New file, from
25157         gettext/autoconf-lib-link with modifications.
25158         * tests/havelib/rpathly/usey.c: New file, from
25159         gettext/autoconf-lib-link.
25160         * tests/havelib/rpathly/Makefile.am: New file, from
25161         gettext/autoconf-lib-link.
25162         * tests/havelib/rpathly/configure.ac: New file, from
25163         gettext/autoconf-lib-link with modifications.
25164         * tests/havelib/rpathlz/usez.c: New file, from
25165         gettext/autoconf-lib-link.
25166         * tests/havelib/rpathlz/Makefile.am: New file, from
25167         gettext/autoconf-lib-link.
25168         * tests/havelib/rpathlz/configure.ac: New file, from
25169         gettext/autoconf-lib-link with modifications.
25170         * tests/havelib/rpathlyx/usey.c: New file, from
25171         gettext/autoconf-lib-link.
25172         * tests/havelib/rpathlyx/Makefile.am: New file, from
25173         gettext/autoconf-lib-link.
25174         * tests/havelib/rpathlyx/configure.ac: New file, from
25175         gettext/autoconf-lib-link with modifications.
25176         * tests/havelib/rpathlzyx/usez.c: New file, from
25177         gettext/autoconf-lib-link.
25178         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25179         gettext/autoconf-lib-link.
25180         * tests/havelib/rpathlzyx/configure.ac: New file, from
25181         gettext/autoconf-lib-link with modifications.
25182         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25183         with modifications.
25184
25185 2010-04-02  Bruno Haible  <bruno@clisp.org>
25186
25187         gnulib-tool: Create distributed built sources also for the tests.
25188         * gnulib-tool (func_create_testdir): Also generate distributed built
25189         sources in the tests directory.
25190
25191 2010-04-02  Bruno Haible  <bruno@clisp.org>
25192
25193         gnulib-tool: Obey user's environment variables.
25194         * gnulib-tool (func_create_testdir): When creating built sources,
25195         respect the environment variables for autoconf, automake, etc. given by
25196         the user.
25197
25198 2010-04-02  Bruno Haible  <bruno@clisp.org>
25199
25200         gnulib-tool: Provide the value of --m4-base to modules.
25201         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25202         of gl_m4_base.
25203
25204 2010-04-02  Eric Blake  <eblake@redhat.com>
25205
25206         maint.mk: fix some fallout
25207         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25208         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25209
25210 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25211
25212         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25213         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25214         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25215         (sc_cast_of_x_alloc_return_value): Likewise.
25216         (sc_cast_of_alloca_return_value): Likewise.
25217         (sc_space_tab): Likewise.
25218         (sc_prohibit_atoi_atof): Likewise.
25219         (sc_prohibit_magic_number_exit): Likewise.
25220         (sc_error_exit_success): Likewise.
25221         (sc_file_system): Likewise.
25222         (sc_prohibit_have_config_h): Likewise.
25223         (sc_require_config_h): Likewise.
25224         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25225         (sc_obsolete_symbols): Likewise.
25226         (sc_changelog): Likewise.
25227         (sc_program_name): Likewise.
25228         (sc_the_the): Likewise.
25229         (sc_trailing_blank): Likewise.
25230         (sc_two_space_separator_in_usage): Likewise.
25231         (sc_useless_cpp_parens): Likewise.
25232         (sc_GPL_version): Likewise.
25233         (sc_GFDL_version): Likewise.
25234         (sc_texinfo_acronym): Likewise.
25235         (sc_prohibit_cvs_keyword): Likewise.
25236         (sc_prohibit_stat_st_blocks): Likewise.
25237         (sc_prohibit_S_IS_definition): Likewise.
25238         (sc_redundant_const): Likewise.
25239         (sc_makefile_TAB_only_indentation): Likewise.
25240         (sc_m4_quote_check): Likewise.
25241         (sc_makefile_path_separator_check): Likewise.
25242         (sc_copyright_check): Likewise.
25243         (sc_Wundef_boolean): Likewise.
25244         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25245
25246         maint.mk: match 0 or more whitespace-before-function-call '('
25247         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25248         that have zero or two-and-more spaces between the function name
25249         and the open parenthesis.
25250         (sc_error_message_warn_fatal): Likewise.
25251         (sc_error_message_uppercase): Likewise.
25252         (sc_error_message_period): Likewise.
25253
25254 2010-03-31  Eric Blake  <eblake@redhat.com>
25255
25256         maint.mk: check for [ as well as test
25257         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25258         Based on a libvirt report by Matthias Bolte.
25259
25260         gnumakefile: don't squelch _version output
25261         * top/GNUmakefile (_version): Create one-shot dependency rather
25262         than using $(shell) when version must be regenerated.
25263         (_autoreconf): Run verbosely, by default.
25264
25265         sys_time: avoid compiler warnings
25266         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25267         unconditional, fixing regression from 2010-03-29.
25268         Reported by Simon Josefsson.
25269
25270 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25271
25272         maint.mk: s/_header_without_use/_sc_header_without_use/
25273         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25274         (sc_prohibit_assert_without_use): Use the new name.
25275         (sc_prohibit_close_stream_without_use): Likewise.
25276         (sc_prohibit_getopt_without_use): Likewise.
25277         (sc_prohibit_quotearg_without_use): Likewise.
25278         (sc_prohibit_quote_without_use): Likewise.
25279         (sc_prohibit_long_options_without_use): Likewise.
25280         (sc_prohibit_inttostr_without_use): Likewise.
25281         (sc_prohibit_ignore_value_without_use): Likewise.
25282         (sc_prohibit_error_without_use): Likewise.
25283         (sc_prohibit_xalloc_without_use): Likewise.
25284         (sc_prohibit_hash_without_use): Likewise.
25285         (sc_prohibit_hash_pjw_without_use): Likewise.
25286         (sc_prohibit_safe_read_without_use): Likewise.
25287         (sc_prohibit_argmatch_without_use): Likewise.
25288         (sc_prohibit_canonicalize_without_use): Likewise.
25289         (sc_prohibit_root_dev_ino_without_use): Likewise.
25290         (sc_prohibit_openat_without_use): Likewise.
25291         (sc_prohibit_c_ctype_without_use): Likewise.
25292         (sc_prohibit_signal_without_use): Likewise.
25293         (sc_prohibit_intprops_without_use): Likewise.
25294
25295 2010-03-30  Eric Blake  <eblake@redhat.com>
25296
25297         maint: improve module indicators
25298         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25299         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25300         columns, and avoid extra macro expansion.
25301
25302         fdopendir: work around FreeBSD bug
25303         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25304         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25305         * modules/dirent (Makefile.am): Substitute it.
25306         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25307         declaration.
25308         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25309         fix.
25310         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25311
25312 2010-03-29  Bruno Haible  <bruno@clisp.org>
25313
25314         Emit #pragma system_header after the inclusion guard, not before.
25315         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25316         guard that spans the entire file, not before. This enables an
25317         optimization in GCC's preprocessor.
25318         * lib/ctype.in.h: Likewise.
25319         * lib/dirent.in.h: Likewise.
25320         * lib/errno.in.h: Likewise.
25321         * lib/float.in.h: Likewise.
25322         * lib/getopt.in.h: Likewise.
25323         * lib/iconv.in.h: Likewise.
25324         * lib/langinfo.in.h: Likewise.
25325         * lib/locale.in.h: Likewise.
25326         * lib/math.in.h: Likewise.
25327         * lib/netdb.in.h: Likewise.
25328         * lib/netinet_in.in.h: Likewise.
25329         * lib/pty.in.h: Likewise.
25330         * lib/sched.in.h: Likewise.
25331         * lib/se-selinux.in.h: Likewise.
25332         * lib/search.in.h: Likewise.
25333         * lib/spawn.in.h: Likewise.
25334         * lib/stdarg.in.h: Likewise.
25335         * lib/stdint.in.h: Likewise.
25336         * lib/string.in.h: Likewise.
25337         * lib/strings.in.h: Likewise.
25338         * lib/sys_file.in.h: Likewise.
25339         * lib/sys_ioctl.in.h: Likewise.
25340         * lib/sys_time.in.h: Likewise.
25341         * lib/sys_times.in.h: Likewise.
25342         * lib/sys_utsname.in.h: Likewise.
25343         * lib/sys_wait.in.h: Likewise.
25344         * lib/sysexits.in.h: Likewise.
25345         * lib/wctype.in.h: Likewise.
25346
25347 2010-03-28  James Youngman  <jay@gnu.org>
25348
25349         save-cwd: don't leak a file descriptor when the caller execs.
25350         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25351         saved file descriptor.
25352         * modules/save-cwd (Depends-on): Depend on cloexec.
25353
25354 2010-03-29  Bruno Haible  <bruno@clisp.org>
25355
25356         Remove vestiges of fts-lgpl module.
25357         * lib/fts_.h: Assume GNULIB_FTS is 1.
25358         * lib/fts.c: Likewise.
25359         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25360
25361 2010-03-28  Bruno Haible  <bruno@clisp.org>
25362
25363         Fix definition of tests witness macro.
25364         * gnulib-tool (func_import): Fix definition of witness macro.
25365
25366 2010-03-28  Bruno Haible  <bruno@clisp.org>
25367
25368         Fix ioctl's protoype on glibc systems.
25369         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25370         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25371         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25372         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25373         signature. If not, arrange to replace the ioctl function.
25374         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25375         REPLACE_IOCTL.
25376         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25377         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25378         Reported by Ludovic Courtès <ludo@gnu.org>.
25379
25380 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25381
25382         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25383         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25384         made it so grep -r --include=GLOB* ... did not work.
25385
25386 2010-03-26  Jim Meyering  <meyering@redhat.com>
25387             Eric Blake  <eblake@redhat.com>
25388
25389         maint.mk: prohibit use of test's -o and -a operators
25390         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25391
25392 2010-03-28  Bruno Haible  <bruno@clisp.org>
25393
25394         Remove unused GNULIB_XYZ macro definitions.
25395         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25396         invocation.
25397
25398 2010-03-28  Bruno Haible  <bruno@clisp.org>
25399
25400         Mark privileged tests modules.
25401         * modules/idpriv-drop-tests (Status): New section.
25402         * modules/idpriv-droptemp-tests (Status): New section.
25403
25404 2010-03-28  Bruno Haible  <bruno@clisp.org>
25405
25406         Split C++ tests into separate tests modules.
25407         * modules/dirent-c++-tests: New file, extracted from
25408         modules/dirent-tests.
25409         * modules/dirent-tests: Depend on it.
25410         * modules/fcntl-h-c++-tests: New file, extracted from
25411         modules/fcntl-h-tests.
25412         * modules/fcntl-h-tests: Depend on it.
25413         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25414         * modules/glob-tests: Depend on it.
25415         * modules/iconv-h-c++-tests: New file, extracted from
25416         modules/iconv-h-tests.
25417         * modules/iconv-h-tests: Depend on it.
25418         * modules/langinfo-c++-tests: New file, extracted from
25419         modules/langinfo-tests.
25420         * modules/langinfo-tests: Depend on it.
25421         * modules/locale-c++-tests: New file, extracted from
25422         modules/locale-tests.
25423         * modules/locale-tests: Depend on it.
25424         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25425         * modules/math-tests: Depend on it.
25426         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25427         * modules/pty-tests: Depend on it.
25428         * modules/search-c++-tests: New file, extracted from
25429         modules/search-tests.
25430         * modules/search-tests: Depend on it.
25431         * modules/signal-c++-tests: New file, extracted from
25432         modules/signal-tests.
25433         * modules/signal-tests: Depend on it.
25434         * modules/spawn-c++-tests: New file, extracted from
25435         modules/spawn-tests.
25436         * modules/spawn-tests: Depend on it.
25437         * modules/stdio-c++-tests: New file, extracted from
25438         modules/stdio-tests.
25439         * modules/stdio-tests: Depend on it.
25440         * modules/stdlib-c++-tests: New file, extracted from
25441         modules/stdlib-tests.
25442         * modules/stdlib-tests: Depend on it.
25443         * modules/string-c++-tests: New file, extracted from
25444         modules/string-tests.
25445         * modules/string-tests: Depend on it.
25446         * modules/sys_ioctl-c++-tests: New file, extracted from
25447         modules/sys_ioctl-tests.
25448         * modules/sys_ioctl-tests: Depend on it.
25449         * modules/sys_select-c++-tests: New file, extracted from
25450         modules/sys_select-tests.
25451         * modules/sys_select-tests: Depend on it.
25452         * modules/sys_socket-c++-tests: New file, extracted from
25453         modules/sys_socket-tests.
25454         * modules/sys_socket-tests: Depend on it.
25455         * modules/sys_stat-c++-tests: New file, extracted from
25456         modules/sys_stat-tests.
25457         * modules/sys_stat-tests: Depend on it.
25458         * modules/sys_time-c++-tests: New file, extracted from
25459         modules/sys_time-tests.
25460         * modules/sys_time-tests: Depend on it.
25461         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25462         * modules/time-tests: Depend on it.
25463         * modules/unistd-c++-tests: New file, extracted from
25464         modules/unistd-tests.
25465         * modules/unistd-tests: Depend on it.
25466         * modules/wchar-c++-tests: New file, extracted from
25467         modules/wchar-tests.
25468         * modules/wchar-tests: Depend on it.
25469         * modules/wctype-c++-tests: New file, extracted from
25470         modules/wctype-tests.
25471         * modules/wctype-tests: Depend on it.
25472         Reported by Simon Josefsson.
25473
25474 2010-03-28  Bruno Haible  <bruno@clisp.org>
25475
25476         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25477         * gnulib-tool (func_exists_module): New function, extracted from
25478         func_verify_module.
25479         (func_verify_module): Use it.
25480         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25481         'foo' only if 'foo' exists.
25482         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25483         module.
25484
25485 2010-03-28  Bruno Haible  <bruno@clisp.org>
25486
25487         gnulib-tool: Add support for special categories of tests.
25488         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25489         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25490         (func_usage): Document them.
25491         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25492         inc_unportable_tests, inc_all_tests): New variables.
25493         (func_acceptable): Consider these variables.
25494         (func_modules_transitive_closure): Make it work when the 'Status' field
25495         consists of multiple words.
25496         (func_import): Store and restore the values of inc_cxx_tests,
25497         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25498         inc_all_tests in gnulib-comp.m4.
25499         (func_create_testdir): Set inc_all_tests to true.
25500         * doc/gnulib.texi (Extra tests modules): New section.
25501         Suggested by Jim Meyering.
25502
25503 2010-03-28  Bruno Haible  <bruno@clisp.org>
25504
25505         ansi-c++-opt: Allow turning off the C++ build by default.
25506         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25507         gl_CXX_CHOICE_DEFAULT_NO is defined.
25508         Requested by Eric Blake.
25509
25510 2010-03-28  Bruno Haible  <bruno@clisp.org>
25511
25512         unistd: Avoid #define replacements in C++ mode.
25513         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25514         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25515         setsockopt, shutdown, select): In C++, attach a warning to the function
25516         if possible, rather than #defining the symbol to a dysfunctional alias.
25517         Reported by John W. Eaton <jwe@gnu.org>.
25518
25519 2010-03-28  Bruno Haible  <bruno@clisp.org>
25520
25521         Fix link errors on mingw.
25522         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25523         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25524         $(LIBSOCKET).
25525         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25526         $(LIBSOCKET).
25527
25528 2010-03-28  Bruno Haible  <bruno@clisp.org>
25529             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25530
25531         lib-ignore: Determine different options for different compilers.
25532         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25533         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25534         Add comments.
25535         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25536         * NEWS: Mention the change.
25537
25538 2010-03-27  Bruno Haible  <bruno@clisp.org>
25539
25540         Remove unused GNULIB_XYZ macro definitions.
25541         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25542         * modules/fseek (configure.ac): Likewise.
25543         * modules/ioctl (configure.ac): Likewise.
25544         * modules/open (configure.ac): Likewise.
25545         * modules/stdlib-safer (configure.ac): Likewise.
25546
25547 2010-03-27  Bruno Haible  <bruno@clisp.org>
25548
25549         Add a remark about certain modules.
25550         * modules/malloc (Comment): New section.
25551         * modules/realloc (Comment): Likewise.
25552         * modules/sigpipe (Comment): Likewise.
25553
25554 2010-03-27  Bruno Haible  <bruno@clisp.org>
25555
25556         Resolve conflict between the two kinds of module indicators.
25557         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25558         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25559         * modules/canonicalize (configure.ac): Invoke
25560         gl_MODULE_INDICATOR_FOR_TESTS.
25561         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25562         GNULIB_XYZ.
25563         * tests/test-dirent-c++.cc: Likewise.
25564         * tests/test-dirent-safer.c: Likewise.
25565         * tests/test-dup2.c: Likewise.
25566         * tests/test-fchdir.c: Likewise.
25567         * tests/test-fcntl-h-c++.cc: Likewise.
25568         * tests/test-getopt.c: Likewise.
25569         * tests/test-getopt.h: Likewise.
25570         * tests/test-langinfo-c++.cc: Likewise.
25571         * tests/test-locale-c++.cc: Likewise.
25572         * tests/test-math-c++.cc: Likewise.
25573         * tests/test-pty-c++.cc: Likewise.
25574         * tests/test-search-c++.cc: Likewise.
25575         * tests/test-signal-c++.cc: Likewise.
25576         * tests/test-spawn-c++.cc: Likewise.
25577         * tests/test-stdio-c++.cc: Likewise.
25578         * tests/test-stdlib-c++.cc: Likewise.
25579         * tests/test-string-c++.cc: Likewise.
25580         * tests/test-sys_ioctl-c++.cc: Likewise.
25581         * tests/test-sys_select-c++.cc: Likewise.
25582         * tests/test-sys_socket-c++.cc: Likewise.
25583         * tests/test-sys_stat-c++.cc: Likewise.
25584         * tests/test-sys_time-c++.cc: Likewise.
25585         * tests/test-time-c++.cc: Likewise.
25586         * tests/test-unistd-c++.cc: Likewise.
25587         * tests/test-wchar-c++.cc: Likewise.
25588         * tests/uninorm/test-u8-nfc.c: Likewise.
25589         * tests/uninorm/test-u8-nfd.c: Likewise.
25590         * tests/uninorm/test-u8-nfkc.c: Likewise.
25591         * tests/uninorm/test-u8-nfkd.c: Likewise.
25592         * tests/uninorm/test-u16-nfc.c: Likewise.
25593         * tests/uninorm/test-u16-nfd.c: Likewise.
25594         * tests/uninorm/test-u16-nfkc.c: Likewise.
25595         * tests/uninorm/test-u16-nfkd.c: Likewise.
25596         * tests/uninorm/test-u32-nfc.c: Likewise.
25597         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25598         * tests/uninorm/test-u32-nfd.c: Likewise.
25599         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25600         * tests/uninorm/test-u32-nfkc.c: Likewise.
25601         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25602         * tests/uninorm/test-u32-nfkd.c: Likewise.
25603         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25604         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25605
25606 2010-03-27  Bruno Haible  <bruno@clisp.org>
25607
25608         Distinguish two kinds of module indicators.
25609         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25610         gl_MODULE_INDICATOR.
25611         (gl_MODULE_INDICATOR): New macro.
25612         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25613         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25614         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25615         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25616         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25617         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25618         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25619         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25620         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25621         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25622         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25623         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25624         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25625         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25626         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25627         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25628         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25629         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25630         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25631         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25632         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25633         * modules/cloexec (configure.ac): Likewise.
25634         * modules/getopt-gnu (configure.ac): Likewise.
25635         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25636         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25637         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25638         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25639
25640 2010-03-27  Bruno Haible  <bruno@clisp.org>
25641
25642         New module description field 'Comment'.
25643         * gnulib-tool: New option --extract-comment.
25644         (func_usage): Document it.
25645         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25646         (func_get_comment): New function.
25647         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25648
25649 2010-03-27  Bruno Haible  <bruno@clisp.org>
25650
25651         Addendum to 2010-02-07 commit.
25652         * gnulib-tool (func_usage): Document --extract-applicability option.
25653
25654 2010-03-27  Bruno Haible  <bruno@clisp.org>
25655
25656         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25657         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25658         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25659         rather than link errors.
25660
25661 2010-03-27  Bruno Haible  <bruno@clisp.org>
25662
25663         Avoid side effects from tests-related modules on the compilation of lib.
25664         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25665         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25666         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25667         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25668         macro.
25669         (func_import): Define a witness macro. Assign it a value that depends
25670         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25671         tests-related modules.
25672         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25673         Reported by Jim Meyering.
25674
25675 2010-03-27  Bruno Haible  <bruno@clisp.org>
25676
25677         Factorize common .m4 code.
25678         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25679         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25680         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25681         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25682         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25683         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25684         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25685         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25686         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25687         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25688         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25689         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25690         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25691         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25692         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25693         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25694         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25695         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25696         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25697         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25698         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25699         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25700         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25701         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25702         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25703         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25704         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25705         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25706         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25707         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25708         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25709         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25710
25711 2010-03-27  Bruno Haible  <bruno@clisp.org>
25712
25713         Fix a compilation error on Cygwin with g++ >= 4.3.
25714         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25715         if it is undefined or if we alias it to chmod.
25716         (lstat): Don't warn about the use of this function if it is undefined
25717         or if we alias it to stat.
25718         Reported by Simon Josefsson.
25719
25720 2010-03-27  Bruno Haible  <bruno@clisp.org>
25721
25722         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25723         * modules/getlogin (configure.ac): Update.
25724
25725         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25726         * modules/getlogin_r (configure.ac): Update.
25727
25728         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25729         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25730         * modules/inet_ntop (configure.ac): Update.
25731
25732         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25733         * modules/inet_pton (configure.ac): Update.
25734
25735         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25736         * modules/mbslen (configure.ac): Update.
25737
25738         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25739         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25740         * modules/forkpty (configure.ac): Update.
25741         * modules/openpty (configure.ac): Update.
25742
25743 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25744
25745         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25746         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25747
25748 2010-03-25  Eric Blake  <eblake@redhat.com>
25749
25750         maint: use pragma consistently across replacement headers
25751         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25752         * lib/dirent.in.h (system_header): Likewise.
25753         * lib/errno.in.h (system_header): Likewise.
25754         * lib/float.in.h (system_header): Likewise.
25755         * lib/getopt.in.h (system_header): Likewise.
25756         * lib/iconv.in.h (system_header): Likewise.
25757         * lib/inttypes.in.h (system_header): Likewise.
25758         * lib/langinfo.in.h (system_header): Likewise.
25759         * lib/locale.in.h (system_header): Likewise.
25760         * lib/math.in.h (system_header): Likewise.
25761         * lib/netdb.in.h (system_header): Likewise.
25762         * lib/netinet_in.in.h (system_header): Likewise.
25763         * lib/pty.in.h (system_header): Likewise.
25764         * lib/sched.in.h (system_header): Likewise.
25765         * lib/se-selinux.in.h (system_header): Likewise.
25766         * lib/search.in.h (system_header): Likewise.
25767         * lib/spawn.in.h (system_header): Likewise.
25768         * lib/stdarg.in.h (system_header): Likewise.
25769         * lib/stdint.in.h (system_header): Likewise.
25770         * lib/string.in.h (system_header): Likewise.
25771         * lib/strings.in.h (system_header): Likewise.
25772         * lib/sys_file.in.h (system_header): Likewise.
25773         * lib/sys_ioctl.in.h (system_header): Likewise.
25774         * lib/sys_socket.in.h (system_header): Likewise.
25775         * lib/sys_times.in.h (system_header): Likewise.
25776         * lib/sys_utsname.in.h (system_header): Likewise.
25777         * lib/sys_wait.in.h (system_header): Likewise.
25778         * lib/sysexits.in.h (system_header): Likewise.
25779         * lib/unistd.in.h (system_header): Likewise.
25780         * lib/wctype.in.h (system_header): Likewise.
25781
25782         arpa/inet: fix mingw compilation warning
25783         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25784         Reported by Matthew Bolte.
25785
25786 2010-03-25  Bruno Haible  <bruno@clisp.org>
25787
25788         Avoid collision between gnulib wrapper and libintl wrapper.
25789         * lib/printf.c (printf): Don't define if a printf wrapper is already
25790         defined in intl/printf.c.
25791         Reported by Michel Boaventura <michel@michelboaventura.com>.
25792
25793 2010-03-25  Bruno Haible  <bruno@clisp.org>
25794
25795         Use ANSI C.
25796         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25797
25798 2010-03-25  Bruno Haible  <bruno@clisp.org>
25799
25800         Minor formatting changes.
25801         * lib/acosl.c: Insert space before function argument list.
25802         * lib/argz.c: Likewise.
25803         * lib/asinl.c: Likewise.
25804         * lib/expl.c: Likewise.
25805         * lib/gen-uni-tables.c: Likewise.
25806         * lib/gettext.h: Likewise.
25807         * lib/glthread/lock.h: Likewise.
25808         * lib/tanl.c: Likewise.
25809         * lib/uniname/uniname.c: Likewise.
25810         * tests/test-idpriv-drop.c: Likewise.
25811         * tests/test-idpriv-droptemp.c: Likewise.
25812         * tests/test-lock.c: Likewise.
25813         * tests/test-tls.c: Likewise.
25814         * lib/argp-help.c: Insert space before function-like macro argument
25815         list.
25816         * lib/memcmp.c: Likewise.
25817         * tests/test-base64.c: Likewise.
25818         * lib/localename.c: Insert space before sizeof's argument list.
25819         * lib/safe-alloc.h: Likewise.
25820         * lib/file-set.h: Insert space before macro argument list.
25821         * tests/test-argp.c: Likewise.
25822         * lib/argp-namefrob.h: Insert space before function parameter list.
25823         * lib/getaddrinfo.c: Likewise.
25824         * lib/netdb.in.h: Likewise.
25825         * lib/parse-duration.h: Likewise.
25826         * lib/parse-duration.c: Likewise.
25827         * lib/poll.c: Likewise.
25828         * lib/select.c: Likewise.
25829         * lib/trim.h: Likewise.
25830         * tests/test-usleep.c: Likewise.
25831         * lib/ldexpl.c: Insert space before function parameter list and before
25832         function argument list.
25833         * lib/logl.c: Likewise.
25834         * lib/sqrtl.c: Likewise.
25835         * lib/trim.c: Likewise.
25836         * lib/cosl.c: Use GNU style indentation. Insert space before function
25837         argument list.
25838         * lib/sinl.c: Likewise.
25839         * lib/tsearch.c: Insert space after 'for'.
25840         Reported by Jim Meyering.
25841
25842 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25843
25844         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25845         config header before grepping, as it's not present before
25846         autoreconf/configure are run.  Reported by Simon Josefsson.
25847
25848 2010-03-23  Bruno Haible  <bruno@clisp.org>
25849
25850         pt_chown: Make it work with automake < 1.11.
25851         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25852         Reported by Simon Josefsson.
25853
25854 2010-03-23  Bruno Haible  <bruno@clisp.org>
25855
25856         pt_chown: Don't depend on GPLed modules.
25857         * lib/pt_chown.c: Don't include idpriv.h.
25858         (main): Don't drop privileges.
25859         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25860         Reported by Simon Josefsson.
25861
25862 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25863
25864         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25865         suggestions from karl@freefriends.org (Karl Berry).
25866
25867 2010-03-22  Eric Blake  <eblake@redhat.com>
25868
25869         gethostname: further tweaks
25870         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25871         are overriding gethostname.
25872         Suggested by Bruno Haible.
25873
25874 2010-03-21  Bruno Haible  <bruno@clisp.org>
25875
25876         Fix comments.
25877         * lib/forkpty.c (rpl_forkpty): Fix comment.
25878         * lib/openpty.c (rpl_openpty): Likewise.
25879         Reported by Eric Blake.
25880
25881 2010-03-22  Eric Blake  <eblake@redhat.com>
25882
25883         gethostname: fix build on mingw
25884         * lib/unistd.in.h (includes): Work around fact that mingw
25885         <winsock2.h> re-includes <unistd.h>, by avoiding any
25886         redeclarations if we are being included by <winsock2.h>.
25887         Reported by Matthias Bolte.
25888
25889 2010-03-21  Bruno Haible  <bruno@clisp.org>
25890
25891         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25892         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25893         modifications.
25894         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25895         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25896         provide the replacement.
25897         * modules/forkpty (Depends-on): Add openpty, login_tty.
25898         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25899         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25900         * doc/glibc-functions/forkpty.texi: More supported platforms.
25901         * config/srclist.txt: Add forkpty.c (commented).
25902
25903 2010-03-21  Bruno Haible  <bruno@clisp.org>
25904
25905         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25906         (Makefile.am): Verify that PTY_LIB is defined.
25907
25908         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25909
25910 2010-03-21  Bruno Haible  <bruno@clisp.org>
25911
25912         Tests for module 'login_tty'.
25913         * modules/login_tty-tests: New file.
25914         * tests/test-login_tty.c: New file.
25915
25916         New module 'login_tty'.
25917         * lib/login_tty.c: New file.
25918         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25919         * modules/login_tty: New file.
25920         * doc/glibc-functions/login_tty.texi: Mention the new module.
25921
25922 2010-03-21  Bruno Haible  <bruno@clisp.org>
25923
25924         login_tty: Documentation.
25925         * doc/glibc-functions/login_tty.texi: New file.
25926         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25927
25928 2010-03-21  Bruno Haible  <bruno@clisp.org>
25929
25930         pty: Consistent macro naming.
25931         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25932         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25933         * modules/pty (configure.ac): Update.
25934
25935 2010-03-21  Bruno Haible  <bruno@clisp.org>
25936
25937         Tests for openpty: Make stricter.
25938         * tests/test-openpty.c (main): Add test of canonical processing and
25939         erase.
25940         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25941
25942         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25943         * lib/openpty.c (openpty): New replacement function.
25944         * lib/pty.in.h: Include <termios.h>.
25945         (openpty): Update declaration. Add comments.
25946         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25947         is not declared, arrange to provide the replacement. Check for _getpty
25948         and posix_openpt.
25949         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25950         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25951         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25952         * modules/pty-tests (test_pty_c___LDADD): New variable.
25953         * doc/glibc-functions/openpty.texi: More supported platforms.
25954
25955 2010-03-21  Bruno Haible  <bruno@clisp.org>
25956
25957         setenv: Tweaks.
25958         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25959         the test program.
25960         * doc/posix-functions/setenv.texi: Update platforms list.
25961
25962 2010-03-21  Bruno Haible  <bruno@clisp.org>
25963
25964         New module 'unlockpt'.
25965         * lib/unlockpt.c: New file, from glibc with modifications.
25966         * m4/unlockpt.m4: New file.
25967         * modules/unlockpt: New file.
25968         * lib/stdlib.in.h (unlockpt): New declaration.
25969         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25970         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25971         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25972         HAVE_UNLOCKPT.
25973         * doc/posix-functions/unlockpt.texi: Mention the new module.
25974         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25975         * config/srclist.txt: Add unlockpt.c (commented).
25976
25977 2010-03-21  Jim Meyering  <meyering@redhat.com>
25978
25979         maint.mk: prohibit inclusion of "intprops.h" without use
25980         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25981
25982 2010-03-21  Bruno Haible  <bruno@clisp.org>
25983
25984         New module 'grantpt'.
25985         * lib/grantpt.c: New file, from glibc with modifications.
25986         * m4/grantpt.m4: New file.
25987         * modules/grantpt: New file.
25988         * lib/stdlib.in.h (grantpt): New declaration.
25989         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25990         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25991         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25992         HAVE_GRANTPT.
25993         * doc/posix-functions/grantpt.texi: Mention the new module.
25994         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25995         * config/srclist.txt: Add grantpt.c (commented).
25996
25997 2010-03-21  Bruno Haible  <bruno@clisp.org>
25998
25999         New module 'pt_chown'.
26000         * lib/pt_chown.c: New file, from glibc with modifications.
26001         * lib/pty-private.h: New file, from glibc with modifications.
26002         * modules/pt_chown: New file.
26003         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26004
26005 2010-03-21  Bruno Haible  <bruno@clisp.org>
26006
26007         Tests for module 'ptsname'.
26008         * modules/ptsname-tests: New file.
26009         * tests/test-ptsname.c: New file.
26010
26011         New module 'ptsname'.
26012         * lib/ptsname.c: New file, from glibc with modifications.
26013         * m4/ptsname.m4: New file.
26014         * modules/ptsname: New file.
26015         * lib/stdlib.in.h (ptsname): New declaration.
26016         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26017         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26018         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26019         HAVE_PTSNAME.
26020         * doc/posix-functions/ptsname.texi: Mention the new module.
26021         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26022         * config/srclist.txt: Add ptsname.c (commented).
26023
26024 2010-03-21  Bruno Haible  <bruno@clisp.org>
26025
26026         Tests for module 'ttyname_r'.
26027         * modules/ttyname_r-tests: New file.
26028         * tests/test-ttyname_r.c: New file.
26029
26030         New module 'ttyname_r'.
26031         * lib/ttyname_r.c: New file.
26032         * m4/ttyname_r.m4: New file.
26033         * modules/ttyname_r: New file.
26034         * lib/unistd.in.h (ttyname_r): New declaration.
26035         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26036         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26037         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26038         HAVE_TTYNAME_R.
26039         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26040         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26041
26042 2010-03-20  Bruno Haible  <bruno@clisp.org>
26043
26044         signal: Undefine macro definitions in C++ mode.
26045         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26046         sigfillset): Undefine macro definitions from the system header in C++
26047         mode.
26048         Reported by John W. Eaton <jwe@gnu.org>.
26049
26050 2010-03-20  Bruno Haible  <bruno@clisp.org>
26051
26052         Ensure no #include statements inside extern "C" { ... }.
26053         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26054         contain #include statements.
26055         * lib/time.in.h: Likewise.
26056
26057 2010-03-20  Bruno Haible  <bruno@clisp.org>
26058
26059         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26060         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26061         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26062         Reported by John W. Eaton <jwe@gnu.org>.
26063
26064 2010-03-20  Bruno Haible  <bruno@clisp.org>
26065
26066         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26067         Reported by Jim Meyering.
26068
26069 2010-03-20  Bruno Haible  <bruno@clisp.org>
26070
26071         pipe: Set errno upon failure.
26072         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26073         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26074         errno value in error message.
26075
26076 2010-03-20  Bruno Haible  <bruno@clisp.org>
26077             Jim Meyering  <meyering@redhat.com>
26078
26079         lchown: Avoid "unused variable" warning.
26080         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26081
26082 2010-03-20  Bruno Haible  <bruno@clisp.org>
26083
26084         Work around unlink() bug on MacOS X 10.5.6.
26085         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26086         attempting to unlink a parent directory.
26087         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26088         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26089         activate for the replacement function.
26090         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26091
26092 2010-03-20  Bruno Haible  <bruno@clisp.org>
26093
26094         Fix link errors on Solaris 8.
26095         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26096         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26097
26098 2010-03-19  Jim Meyering  <meyering@redhat.com>
26099
26100         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26101         The _LIBC implementation of build_range_exp correctly honors the
26102         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26103         However, the non-_LIBC implementation would ignore that syntax-bit
26104         flag and return REG_ERANGE unconditionally.
26105         This change makes it honor that flag.
26106         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26107         Make two pointer parameters "const".
26108         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26109         (parse_bracket_exp): Update caller.
26110
26111         regex.m4: correct the reversed range endpoint ([b-a]) test
26112         * m4/regex.m4: When requiring that [b-a] evoke failure,
26113         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26114         test pass once again for x86-based systems.
26115
26116 2010-03-19  Bruno Haible  <bruno@clisp.org>
26117
26118         scandir: Fix link error on Solaris 8.
26119         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26120         macros.
26121
26122 2010-03-19  Bruno Haible  <bruno@clisp.org>
26123
26124         getusershell: Fix documentation.
26125         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26126         module.
26127         * doc/glibc-functions/setusershell.texi: Likewise.
26128
26129         getusershell: Provide declaration, missing on Solaris 9.
26130         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26131         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26132         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26133         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26135         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26136         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26137         HAVE_GETUSERSHELL.
26138         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26139
26140 2010-03-19  Bruno Haible  <bruno@clisp.org>
26141
26142         wctype: Provide iswblank function.
26143         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26144         exists and is fine.
26145         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26146         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26147         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26148         * doc/posix-functions/iswblank.texi: Update.
26149
26150 2010-03-19  Bruno Haible  <bruno@clisp.org>
26151
26152         Tests of module 'pty' in C++ mode.
26153         * modules/pty-tests: New file.
26154         * tests/test-pty-c++.cc: New file.
26155         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26156
26157 2010-03-19  Eric Blake  <eblake@redhat.com>
26158
26159         logb: fix documentation
26160         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26161         1.5 declaration bug.
26162
26163         forkpty, openpty: prefer glibc's const-safe prototype
26164         * lib/forkpty.c (rpl_forkpty): New file.
26165         * lib/openpty.c (rpl_openpty): Likewise.
26166         * modules/forkpty (Files): Distribute it.
26167         * modules/openpty (Files): Likewise.
26168         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26169         check...
26170         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26171         replacement for for non-const BSD signature.
26172         * modules/pty (Makefile.am): Substitute witnesses.
26173         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26174         * tests/test-forkpty.c: Update signature check.
26175         * tests/test-openpty.c: Likewise.
26176         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26177         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26178
26179         forkpty, openpty: split functions into new modules
26180         * modules/pty (Makefile.am): Substitute new witnesses.
26181         (Libraries): Move library detection...
26182         * modules/forkpty: ...into new module.
26183         * modules/openpty: Another new module.
26184         * modules/pty-tests: Rename and split...
26185         * modules/forkpty-tests: ...to this...
26186         * modules/openpty-tests: ...and this.
26187         * tests/test-pty.c: Rename and split...
26188         * tests/test-forkpty.c: ...to this...
26189         * tests/test-openpty.c: ...and this.
26190         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26191         (gl_PTY): Split library searching...
26192         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26193         (gl_FORKPTY, gl_OPENPTY): New macros.
26194         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26195         * NEWS: Mention the split.
26196         * MODULES.html.sh (Misc): Document the modules.
26197         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26198         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26199
26200         pty: improve replacement header
26201         * lib/pty.in.h: New file.
26202         * modules/pty (Files): Ship it.
26203         (Makefile.am): Always build replacement.
26204         * m4/pty.m4: Rename...
26205         * m4/pty_h.m4: ...to this.
26206         (gl_PTY): Modernize setting of witness macros; update check of
26207         forkpty to take proper advantage of cache.
26208         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26209
26210         getopt: avoid compiler warning
26211         * lib/getopt.c (attribute_hidden): Remove unused macro.
26212
26213 2010-03-18  Bruno Haible  <bruno@clisp.org>
26214
26215         Fix link errors on Solaris 8.
26216         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26217         * modules/search-tests (test_search_c___LDADD): Likewise.
26218         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26219         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26220         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26221         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26222         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26223         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26224         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26225
26226 2010-03-18  Bruno Haible  <bruno@clisp.org>
26227
26228         Fix bug introduced on 2010-03-14.
26229         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26230         (gl_SPAWN_H): Require it.
26231         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26232         Reported by Simon Josefsson.
26233
26234 2010-03-18  Bruno Haible  <bruno@clisp.org>
26235
26236         Fix typo introduced on 2009-12-31.
26237         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26238         posix_spawn_file_actions_adddup2.
26239
26240 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26241         and Eric Blake  <eblake@redhat.com>
26242
26243         test-vc-list-files-git: make more robust
26244         * tests/test-vc-list-files-git.sh: Unset problematic environment
26245         variables.  Chain commands together.
26246
26247 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26248
26249         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26250         `AC_CHECK_DECL' invocation.
26251
26252 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26253
26254         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26255         appears before executable statements. Suggested by Petr Sumbera
26256         <Petr.Sumbera@Sun.COM>.
26257
26258 2010-03-14  Bruno Haible  <bruno@clisp.org>
26259
26260         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26261         portability problems. Instead use a simpler test.
26262         (main): Check that invalid arguments are rejected only on Linux.
26263
26264 2010-03-14  Bruno Haible  <bruno@clisp.org>
26265
26266         Fix bug introduced on 2009-12-31.
26267         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26268         gl_PREREQ_SYS_H_WINSOCK2 always.
26269         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26270         SYS_SOCKET_H variable.
26271         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26272         Update comments.
26273         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26274         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26275         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26276         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26277         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26278
26279 2010-03-14  Bruno Haible  <bruno@clisp.org>
26280
26281         Fix values returned by sinl, cosl.
26282         * lib/trigl.h: Add specification comments.
26283         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26284         that combines the values from the precomputed table with the values of
26285         the Chebyshev polynomials.
26286
26287 2010-03-14  Bruno Haible  <bruno@clisp.org>
26288
26289         Fix compilation error when modules 'posix_spawn[p]' are not used.
26290         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26291         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26292
26293 2010-03-14  Bruno Haible  <bruno@clisp.org>
26294
26295         Fix compilation error on mingw when module 'time_r' is not used.
26296         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26297         is 1.
26298         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26299         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26300         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26301         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26302
26303 2010-03-14  Bruno Haible  <bruno@clisp.org>
26304
26305         Fix compilation error with Sun C.
26306         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26307         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26308         instead of GCC specific ULONG_LONG_MAX.
26309         * lib/xstrtoll.c: Likewise.
26310         * lib/xstrtoull.c: Likewise.
26311
26312 2010-03-13  Bruno Haible  <bruno@clisp.org>
26313
26314         Allow the user to disable C++ code and tests.
26315         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26316         (gl_PROG_ANSI_CXX): Require it.
26317
26318 2010-03-13  Bruno Haible  <bruno@clisp.org>
26319
26320         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26321         cases.
26322
26323 2010-03-13  Bruno Haible  <bruno@clisp.org>
26324
26325         Test that gnulib does not break the standard C++ headers.
26326         * tests/test-locale-c++2.cc: New file.
26327         * modules/locale-tests (Files): Add it.
26328         (Makefile.am): Compile it for test-locale-c++.
26329         * tests/test-math-c++2.cc: New file.
26330         * modules/math-tests (Files): Add it.
26331         (Makefile.am): Compile it for test-math-c++.
26332         * tests/test-signal-c++2.cc: New file.
26333         * modules/signal-tests (Files): Add it.
26334         (Makefile.am): Compile it for test-signal-c++.
26335         * tests/test-stdio-c++2.cc: New file.
26336         * modules/stdio-tests (Files): Add it.
26337         (Makefile.am): Compile it for test-stdio-c++.
26338         * tests/test-stdlib-c++2.cc: New file.
26339         * modules/stdlib-tests (Files): Add it.
26340         (Makefile.am): Compile it for test-stdlib-c++.
26341         * tests/test-string-c++2.cc: New file.
26342         * modules/string-tests (Files): Add it.
26343         (Makefile.am): Compile it for test-string-c++.
26344         * tests/test-time-c++2.cc: New file.
26345         * modules/time-tests (Files): Add it.
26346         (Makefile.am): Compile it for test-time-c++.
26347         Reported by John W. Eaton <jwe@gnu.org>.
26348
26349 2010-03-13  Bruno Haible  <bruno@clisp.org>
26350
26351         * gnulib-tool (func_usage): Clarify which options are available for
26352         --create-testdir and --create-megatestdir.
26353
26354 2010-03-13  Bruno Haible  <bruno@clisp.org>
26355
26356         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26357         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26358         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26359         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26360         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26361         when appropriate.
26362         Reported by Jim Meyering.
26363
26364 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26365
26366         * gnulib-tool (func_import): Explain origin of code.
26367
26368 2010-03-12  Bruno Haible  <bruno@clisp.org>
26369
26370         Fix problem with automake's definition of CXXLINK.
26371         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26372         Reported by Simon Josefsson and Ludovic Courtès.
26373
26374 2010-03-12  Bruno Haible  <bruno@clisp.org>
26375
26376         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26377         stable releases.
26378
26379 2010-03-11  Bruno Haible  <bruno@clisp.org>
26380
26381         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26382         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26383         whether the system provides one variant or multiple variants of the
26384         function.
26385         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26386         C++ compilers.
26387         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26388         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26389         Reported by Jim Meyering.
26390
26391 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26392
26393         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26394
26395 2010-03-08  Bruno Haible  <bruno@clisp.org>
26396
26397         gnulib-tool: Add support for --libtool in --create-testdir.
26398         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26399         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26400
26401 2010-03-08  Eric Blake  <eblake@redhat.com>
26402
26403         gnulib-tool.texi: mention possibility of git submodule
26404         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26405         submodules.
26406         * doc/.gitignore: Ignore another generated file.
26407
26408 2010-03-08  Karl Berry  <karl@gnu.org>
26409
26410         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26411         of committing gnulib files while skipping others.
26412
26413 2010-03-07  Bruno Haible  <bruno@clisp.org>
26414
26415         Tests of module 'wctype' in C++ mode.
26416         * tests/test-wctype-c++.cc: New file.
26417         * modules/wctype-tests (Files): Add it and tests/signature.h.
26418         (Depends-on): Add ansi-c++-opt.
26419         (Makefile.am): Arrange to compile and run test-wctype-c++.
26420
26421         Tests of module 'wchar' in C++ mode.
26422         * tests/test-wchar-c++.cc: New file.
26423         * modules/wchar-tests (Files): Add it and tests/signature.h.
26424         (Depends-on): Add ansi-c++-opt.
26425         (Makefile.am): Arrange to compile and run test-wchar-c++.
26426         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26427         gl_MODULE_INDICATOR.
26428
26429         Tests of module 'unistd' in C++ mode.
26430         * tests/test-unistd-c++.cc: New file.
26431         * modules/unistd-tests (Files): Add it and tests/signature.h.
26432         (Depends-on): Add ansi-c++-opt.
26433         (Makefile.am): Arrange to compile and run test-unistd-c++.
26434         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26435         gl_MODULE_INDICATOR.
26436
26437         Tests of module 'time' in C++ mode.
26438         * tests/test-time-c++.cc: New file.
26439         * modules/time-tests (Files): Add it and tests/signature.h.
26440         (Depends-on): Add ansi-c++-opt.
26441         (Makefile.am): Arrange to compile and run test-time-c++.
26442         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26443
26444         Tests of module 'sys_time' in C++ mode.
26445         * tests/test-sys_time-c++.cc: New file.
26446         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26447         (Depends-on): Add ansi-c++-opt.
26448         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26449         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26450         gl_MODULE_INDICATOR.
26451
26452         Tests of module 'sys_stat' in C++ mode.
26453         * tests/test-sys_stat-c++.cc: New file.
26454         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26455         (Depends-on): Add ansi-c++-opt.
26456         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26457         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26458         gl_MODULE_INDICATOR.
26459
26460         Tests of module 'sys_socket' in C++ mode.
26461         * tests/test-sys_socket-c++.cc: New file.
26462         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26463         (Depends-on): Add ansi-c++-opt.
26464         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26465         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26466         gl_MODULE_INDICATOR.
26467
26468         Tests of module 'sys_select' in C++ mode.
26469         * tests/test-sys_select-c++.cc: New file.
26470         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26471         (Depends-on): Add ansi-c++-opt.
26472         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26473         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26474         gl_MODULE_INDICATOR.
26475
26476         Tests of module 'sys_ioctl' in C++ mode.
26477         * tests/test-sys_ioctl-c++.cc: New file.
26478         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26479         (Depends-on): Add ansi-c++-opt.
26480         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26481         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26482         gl_MODULE_INDICATOR.
26483
26484         Tests of module 'string' in C++ mode.
26485         * tests/test-string-c++.cc: New file.
26486         * modules/string-tests (Files): Add it and tests/signature.h.
26487         (Depends-on): Add ansi-c++-opt.
26488         (Makefile.am): Arrange to compile and run test-string-c++.
26489         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26490         gl_MODULE_INDICATOR.
26491
26492         Tests of module 'stdlib' in C++ mode.
26493         * tests/test-stdlib-c++.cc: New file.
26494         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26495         (Depends-on): Add ansi-c++-opt.
26496         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26497         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26498         gl_MODULE_INDICATOR.
26499
26500         Tests of module 'stdio' in C++ mode.
26501         * tests/test-stdio-c++.cc: New file.
26502         * modules/stdio-tests (Files): Add it and tests/signature.h.
26503         (Depends-on): Add ansi-c++-opt.
26504         (Makefile.am): Arrange to compile and run test-stdio-c++.
26505         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26506         gl_MODULE_INDICATOR.
26507
26508         Tests of module 'spawn' in C++ mode.
26509         * tests/test-spawn-c++.cc: New file.
26510         * modules/spawn-tests (Files): Add it and tests/signature.h.
26511         (Depends-on): Add ansi-c++-opt.
26512         (Makefile.am): Arrange to compile and run test-spawn-c++.
26513         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26514         gl_MODULE_INDICATOR.
26515
26516         Tests of module 'signal' in C++ mode.
26517         * tests/test-signal-c++.cc: New file.
26518         * modules/signal-tests (Files): Add it and tests/signature.h.
26519         (Depends-on): Add ansi-c++-opt.
26520         (Makefile.am): Arrange to compile and run test-signal-c++.
26521         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26522         gl_MODULE_INDICATOR.
26523
26524         Tests of module 'search' in C++ mode.
26525         * tests/test-search-c++.cc: New file.
26526         * modules/search-tests (Files): Add it and tests/signature.h.
26527         (Depends-on): Add ansi-c++-opt.
26528         (Makefile.am): Arrange to compile and run test-search-c++.
26529         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26530         gl_MODULE_INDICATOR.
26531
26532         Tests of module 'math' in C++ mode.
26533         * tests/test-math-c++.cc: New file.
26534         * modules/math-tests (Files): Add it and tests/signature.h.
26535         (Depends-on): Add ansi-c++-opt.
26536         (Makefile.am): Arrange to compile and run test-math-c++.
26537         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26538
26539         Tests of module 'locale' in C++ mode.
26540         * tests/test-locale-c++.cc: New file.
26541         * modules/locale-tests (Files): Add it and tests/signature.h.
26542         (Depends-on): Add ansi-c++-opt.
26543         (Makefile.am): Arrange to compile and run test-locale-c++.
26544         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26545         gl_MODULE_INDICATOR.
26546
26547         Tests of module 'langinfo' in C++ mode.
26548         * tests/test-langinfo-c++.cc: New file.
26549         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26550         (Depends-on): Add ansi-c++-opt.
26551         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26552         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26553         gl_MODULE_INDICATOR.
26554
26555         Tests of module 'iconv-h' in C++ mode.
26556         * tests/test-iconv-h-c++.cc: New file.
26557         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26558         (Depends-on): Add ansi-c++-opt.
26559         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26560
26561         Tests of module 'glob' in C++ mode.
26562         * tests/test-glob-c++.cc: New file.
26563         * modules/glob-tests (Files): Add it.
26564         (Depends-on): Add ansi-c++-opt.
26565         (Makefile.am): Arrange to compile and run test-glob-c++.
26566
26567         Tests of module 'fcntl-h' in C++ mode.
26568         * tests/test-fcntl-h-c++.cc: New file.
26569         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26570         (Depends-on): Add ansi-c++-opt.
26571         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26572         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26573         gl_MODULE_INDICATOR.
26574
26575         Tests of module 'dirent' in C++ mode.
26576         * tests/test-dirent-c++.cc: New file.
26577         * modules/dirent-tests (Files): Add it and tests/signature.h.
26578         (Depends-on): Add ansi-c++-opt.
26579         (Makefile.am): Arrange to compile and run test-dirent-c++.
26580         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26581         gl_MODULE_INDICATOR.
26582
26583         New module 'ansi-c++-opt'.
26584         * modules/ansi-c++-opt: New file.
26585         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26586
26587         Document C++ namespace mode.
26588         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26589
26590         wctype: Avoid #define replacements in C++ mode.
26591         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26592         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26593         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26594         In C++, define a namespaced alias symbol.
26595         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26596         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26597         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26598         rule.
26599
26600         wchar: Avoid #define replacements in C++ mode.
26601         * lib/wchar.in.h: Include c++defs.h.
26602         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26603         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26604         symbol.
26605         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26606         * modules/wchar (Depends-on): Add c++defs.
26607         (Makefile.am): Update wchar.h rule.
26608
26609         unistd: Avoid #define replacements in C++ mode.
26610         * lib/unistd.in.h: Include c++defs.h.
26611         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26612         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26613         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26614         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26615         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26616         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26617         symbol.
26618         (environ): Update.
26619         * modules/unistd (Depends-on): Add c++defs.
26620         (Makefile.am): Update unistd.h rule.
26621
26622         time: Avoid #define replacements in C++ mode.
26623         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26624         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26625         define a namespaced alias symbol.
26626         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26627         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26628         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26629         * modules/time (Depends-on): Add c++defs, warn-on-use.
26630         (Makefile.am): Update time.h rule.
26631         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26632         * modules/nanosleep (configure.ac): Likewise.
26633         * modules/strptime (configure.ac): Likewise.
26634         * modules/timegm (configure.ac): Likewise.
26635
26636         sys_time: Avoid #define replacements in C++ mode.
26637         * lib/sys_time.in.h: Include c++defs.h.
26638         (gettimeofday): In C++, define a namespaced alias symbol.
26639         * modules/sys_time (Depends-on): Add c++defs.
26640         (Makefile.am): Update sys/time.h rule.
26641
26642         sys_stat: Avoid #define replacements in C++ mode.
26643         * lib/sys_stat.in.h: Include c++defs.h.
26644         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26645         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26646         namespaced alias symbol.
26647         In C++, define a namespaced alias symbol.
26648         * modules/sys_stat (Depends-on): Add c++defs.
26649         (Makefile.am): Update sys/stat.h rule.
26650
26651         sys_socket: Avoid #define replacements in C++ mode.
26652         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26653         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26654         definitions also when the system has a <sys/socket.h>.
26655         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26656         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26657         In C++, define a namespaced alias symbol.
26658         * modules/sys_socket (Depends-on): Add c++defs.
26659         (Makefile.am): Update sys/socket.h rule.
26660
26661         sys_select: Avoid #define replacements in C++ mode.
26662         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26663         definitions also when the system has a <sys/select.h>.
26664         (select): In C++, define a namespaced alias symbol.
26665         * modules/sys_select (Depends-on): Add c++defs.
26666         (Makefile.am): Update sys/select.h rule.
26667
26668         sys_ioctl: Avoid #define replacements in C++ mode.
26669         * lib/sys_ioctl.in.h: Include c++defs.h.
26670         (ioctl): In C++, define a namespaced alias symbol.
26671         * modules/sys_ioctl (Depends-on): Add c++defs.
26672         (Makefile.am): Update sys/ioctl.h rule.
26673
26674         string: Avoid #define replacements in C++ mode.
26675         * lib/string.in.h: Include c++defs.h.
26676         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26677         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26678         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26679         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26680         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26681         * modules/string (Depends-on): Add c++defs.
26682         (Makefile.am): Update string.h rule.
26683
26684         stdlib: Avoid #define replacements in C++ mode.
26685         * lib/stdlib.in.h: Include c++defs.h.
26686         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26687         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26688         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26689         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26690         symbol.
26691         * modules/stdlib (Depends-on): Add c++defs.
26692         (Makefile.am): Update stdlib.h rule.
26693
26694         stdio: Avoid #define replacements in C++ mode.
26695         * lib/stdio.in.h: Include c++defs.h.
26696         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26697         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26698         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26699         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26700         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26701         namespaced alias symbol.
26702         * modules/stdio (Depends-on): Add c++defs.
26703         (Makefile.am): Update stdio.h rule.
26704
26705         spawn: Avoid #define replacements in C++ mode.
26706         * lib/spawn.in.h: Include c++defs.h.
26707         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26708         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26709         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26710         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26711         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26712         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26713         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26714         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26715         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26716         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26717         In C++, define a namespaced alias symbol.
26718         * modules/spawn (Depends-on): Add c++defs.
26719         (Makefile.am): Update spawn.h rule.
26720
26721         signal: Avoid #define replacements in C++ mode.
26722         * lib/signal.in.h: Include c++defs.h.
26723         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26724         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26725         namespaced alias symbol.
26726         * modules/signal (Depends-on): Add c++defs.
26727         (Makefile.am): Update signal.h rule.
26728
26729         search: Avoid #define replacements in C++ mode.
26730         * lib/search.in.h: Include c++defs.h.
26731         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26732         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26733         symbol.
26734         * modules/search (Depends-on): Add c++defs.
26735         (Makefile.am): Update search.h rule.
26736
26737         math: Avoid #define replacements in C++ mode.
26738         * lib/math.in.h: Include c++defs.h.
26739         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26740         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26741         trunc, truncl): In C++, define a namespaced alias symbol.
26742         * modules/math (Depends-on): Add c++defs.
26743         (Makefile.am): Update math.h rule.
26744
26745         locale: Avoid #define replacements in C++ mode.
26746         * lib/locale.in.h: Include c++defs.h.
26747         (duplocale): In C++, define a namespaced alias symbol.
26748         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26749         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26750         * modules/locale (Depends-on): Add c++defs.
26751         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26752
26753         langinfo: Avoid #define replacements in C++ mode.
26754         * lib/langinfo.in.h: Include c++defs.h.
26755         (nl_langinfo): In C++, define a namespaced alias symbol.
26756         * modules/langinfo (Depends-on): Add c++defs.
26757         (Makefile.am): Update langinfo.h rule.
26758
26759         iconv-h: Avoid #define replacements in C++ mode.
26760         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26761         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26762         symbol.
26763         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26764         whenever iconv is present.
26765         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26766         (Makefile.am): Update iconv.h rule.
26767
26768         glob: Avoid #define replacements in C++ mode.
26769         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26770         (_gl_glob_errfunc_fn): New type.
26771         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26772         symbol.
26773         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26774         (Makefile.am): Update glob.h rule.
26775
26776         fcntl-h: Avoid #define replacements in C++ mode.
26777         * lib/fcntl.in.h: Include c++defs.h.
26778         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26779         * modules/fcntl-h (Depends-on): Add c++defs.
26780         (Makefile.am): Update fcntl.h rule.
26781
26782         dirent: Avoid #define replacements in C++ mode.
26783         * lib/dirent.in.h: Include c++defs.h.
26784         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26785         namespaced alias symbol.
26786         (dirfd): Update declaration.
26787         * modules/dirent (Depends-on): Add c++defs.
26788         (Makefile.am): Update dirent.h rule.
26789
26790         ctype: Make it usable in C++ code.
26791         * lib/ctype.in.h: Include c++defs.h.
26792         (isblank): Declare as extern "C".
26793         * modules/ctype (Depends-on): Add c++defs.
26794         (Makefile.am): Update ctype.h rule.
26795
26796         New module 'c++defs'.
26797         * modules/c++defs: New file.
26798         * build-aux/c++defs.h: New file.
26799         Reported by John W. Eaton <jwe@gnu.org>.
26800
26801 2010-03-07  Bruno Haible  <bruno@clisp.org>
26802
26803         logb: Provide missing declaration for Cygwin.
26804         * lib/math.in.h (logb): New declaration.
26805         * m4/logb.m4: New file.
26806         * modules/logb (Files): Add m4/logb.m4.
26807         (Depends-on): Add math.
26808         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26809         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26811         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26812         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26813
26814 2010-03-07  Bruno Haible  <bruno@clisp.org>
26815
26816         Fix test-cond link error.
26817         * tests/test-cond.c: Include <stdio.h>.
26818
26819 2010-03-07  Bruno Haible  <bruno@clisp.org>
26820
26821         Fix test-dirent-safer link error.
26822         * modules/dirent-safer-tests (Makefile.am): Define
26823         test_dirent_safer_LDADD.
26824
26825 2010-03-07  Bruno Haible  <bruno@clisp.org>
26826
26827         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26828         among default module list.
26829
26830 2010-03-07  Bruno Haible  <bruno@clisp.org>
26831
26832         Fix link error on platforms with GNU libiconv.
26833         * modules/unistr/u8-strcoll-tests (Makefile): Define
26834         test_u8_strcoll_LDADD.
26835         * modules/unistr/u16-strcoll-tests (Makefile): Define
26836         test_u16_strcoll_LDADD.
26837         * modules/unistr/u32-strcoll-tests (Makefile): Define
26838         test_u32_strcoll_LDADD.
26839
26840 2010-03-07  Bruno Haible  <bruno@clisp.org>
26841
26842         Use POSIX declarations for socket functions.
26843         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26844         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26845         rpl_sendto): Change declaration to match POSIX.
26846         * lib/connect.c (rpl_connect): Likewise.
26847         * lib/accept.c (rpl_accept): Likewise.
26848         * lib/bind.c (rpl_bind): Likewise.
26849         * lib/getpeername.c (rpl_getpeername): Likewise.
26850         * lib/getsockname.c (rpl_getsockname): Likewise.
26851         * lib/recv.c (rpl_recv): Likewise.
26852         * lib/send.c (rpl_send): Likewise.
26853         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26854         * lib/sendto.c (rpl_sendto): Likewise.
26855
26856 2010-03-06  Bruno Haible  <bruno@clisp.org>
26857
26858         Clarify access, euidaccess, faccessat.
26859         * doc/posix-functions/faccessat.texi: Mention security problem under
26860         "Other problems", not "Portability problems".
26861         * doc/posix-functions/access.texi: Likewise. Mention a related security
26862         problem.
26863         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26864         * lib/euidaccess.c: Add comments about platforms.
26865         * lib/unistd.in.h (access, euidaccess): Add warnings.
26866
26867 2010-03-07  Bruno Haible  <bruno@clisp.org>
26868
26869         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26870         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26871         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26872         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26873         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26874         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26875         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26876         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26877         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26878         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26879         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26880         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26881         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26882         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26883         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26884         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26885         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26886         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26887         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26888         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26889         Likewise.
26890         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26891         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26892         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26893         Likewise.
26894         * tests/test-spawn.c (main): Make it work when
26895         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26896
26897 2010-03-07  Bruno Haible  <bruno@clisp.org>
26898
26899         Fix incorrect Makefile.am generation in German locale.
26900         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26901         Execute sed command with character range in C locale.
26902
26903 2010-03-06  Bruno Haible  <bruno@clisp.org>
26904
26905         Tests for module 'iconv-h'.
26906         * modules/iconv-h-tests: New file.
26907         * tests/test-iconv-h.c: New file.
26908
26909         New module 'iconv-h'.
26910         * modules/iconv-h: New file.
26911         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26912         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26913         (configure.ac): Remove gl_ICONV_H.
26914         (Makefile.am): Remove rule for iconv.h.
26915
26916 2010-03-06  Bruno Haible  <bruno@clisp.org>
26917
26918         More consistent naming of *.m4 files.
26919         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26920         * modules/wctype (Files): Update.
26921
26922         More consistent naming of *.m4 files.
26923         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26924         * modules/wchar (Files): Update.
26925
26926 2010-03-06  Jim Meyering  <meyering@redhat.com>
26927
26928         euidaccess: relax license to LGPLv2+
26929         * modules/euidaccess (License): Relax to LGPLv2+.
26930
26931 2010-03-06  Bruno Haible  <bruno@clisp.org>
26932
26933         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26934         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26935         (Makefile.am): Augment lib_SOURCES instead.
26936
26937 2010-03-04  Jim Meyering  <meyering@redhat.com>
26938
26939         utime: remove obsolete module
26940         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26941         unnecessary for years, and has been marked as obsolete for 10 months.
26942         * modules/utime: Remove file.
26943         * lib/utime.c: Remove file.
26944         * m4/utime.m4: Remove file.
26945         * m4/utimes-null.m4: Remove file.
26946         * doc/posix-functions/utime.texi (utime): Remove reference to
26947         the module.  Move the sole "fixed by gnulib" item into the
26948         "problems not fixed by Gnulib" list.
26949         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26950
26951 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26952
26953         * modules/exit (License): Relax license to LGPLv2+.
26954         (Status): Mark as obsolete.
26955         * NEWS: Mention deprecated 'exit' module.
26956         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26957         of now obsolete 'exit'.
26958
26959 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26960
26961         fts-lgpl: remove unused module
26962         * modules/fts-lgpl: Remove.
26963         * MODULES.html.sh (func_all_modules): Adjust.
26964         * check-module (find_included_lib_files): Adjust.
26965         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26966
26967 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26968
26969         copy-acl: enhance Solaris ACL error handling
26970         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26971         * lib/set-mode-acl.c (qset_acl): Likewise.
26972
26973 2010-03-02  Bruno Haible  <bruno@clisp.org>
26974
26975         spawn: Don't override the system defined values on FreeBSD 8.
26976         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26977         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26978         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26979         if HAVE_POSIX_SPAWN is 1.
26980         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26981
26982 2010-03-01  Bruno Haible  <bruno@clisp.org>
26983
26984         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26985         regarding Automake.
26986
26987 2010-02-25  Bruno Haible  <bruno@clisp.org>
26988
26989         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26990         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26991         setting, not afterwards.
26992         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26993
26994 2010-02-24  Eric Blake  <eblake@redhat.com>
26995
26996         bootstrap, git-version-gen: use timestamp
26997         * build-aux/git-version-gen (scriptversion): Force UTC.
26998         * build-aux/bootstrap (scriptversion): New variable.
26999
27000         bootstrap: allow older git
27001         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27002         older than 1.6.4.  Requested by the libvirt project.
27003
27004 2010-02-23  Eric Blake  <eblake@redhat.com>
27005
27006         warn-on-use: work with old autoconf
27007         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27008         AS_VAR semantics of autoconf 2.60.
27009         Reported by Bruno Haible.
27010
27011         bootstrap: improve some comments
27012         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27013         clarification comments.
27014
27015         gettimeofday: provide correct function
27016         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27017         when replacement is declared, otherwise provide gettimeofday.
27018         Reported by Michael Goffioul.
27019
27020 2010-02-23  Jim Meyering  <meyering@redhat.com>
27021
27022         lib-ignore: relax license to "unlimited", not LGPLv2+
27023         * modules/lib-ignore (License): Relax to "unlimited".
27024
27025 2010-02-23  Jim Meyering  <meyering@redhat.com>
27026
27027         lib-ignore: relax license to LGPLv2+
27028         * modules/lib-ignore (License): Relax to LGPLv2+.
27029
27030 2010-02-22  Eric Blake  <eblake@redhat.com>
27031
27032         lseek: avoid bash 3.2 broken pipe bug
27033         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27034         warning from bash 3.2.
27035         Reported by Ben Pfaff, with analysis from Bruno Haible.
27036
27037         bootstrap: support non-FSF copyright holder
27038         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27039         bootstrap.conf override of COPYRIGHT_HOLDER.
27040         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27041
27042         bootstrap: interoperate with gettext 0.14.1
27043         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27044
27045         bootstrap: allow for alternate submodule location
27046         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27047         hardcoding submodule location.
27048         (gnulib_mk): Allow direct use of Makefile.am.
27049
27050         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27051         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27052         rather than reconfiguring where the submodule points.
27053
27054         gettimeofday: restore support for platforms that lack function
27055         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27056         replacement if function is missing.
27057         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27058         * modules/sys_time (Makefile.am): Substitute it.
27059         * lib/sys_time.in.h (gettimeofday): Check it.
27060         Reported by Michael Goffioul.
27061
27062 2010-02-21  Bruno Haible  <bruno@clisp.org>
27063
27064         * lib/stdio.in.h (obstack_printf): Fix typo.
27065
27066 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27067
27068         vc-list-files: use bzr ls's -R option
27069         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27070         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27071
27072 2010-02-21  Jim Meyering  <meyering@redhat.com>
27073
27074         init.sh: fix EXEEXT shims to work also for names like test-prog
27075         * tests/init.sh: Re-exec a better shell, when needed.
27076         If the current shell lacks support for posix $(...), an init.sh-using
27077         test will now try to find a shell that supports that.  If EXEEXT is
27078         nonempty, we also require support for hyphen-in-alias-name and shell
27079         substitutions like ${var#glob}.  Failure to find such a shell results
27080         in a skipped test.
27081
27082 2010-02-21  Bruno Haible  <bruno@clisp.org>
27083
27084         Really work around around "broken pipe" error message from bash 3.2.
27085         * gnulib-tool (func_reset_sigpipe): Remove function.
27086         (echo): In bash 3.2, define to a function that uses printf.
27087         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27088
27089 2010-02-20  Bruno Haible  <bruno@clisp.org>
27090
27091         Restore support for automake 1.9.6 with autoconf 2.61.
27092         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27093         Reported by James Youngman <jay@gnu.org>.
27094
27095 2010-02-20  Bruno Haible  <bruno@clisp.org>
27096
27097         Improve *printf warning condition.
27098         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27099         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27100         and the function is overridden due to SIGPIPE emulation.
27101
27102 2010-02-20  Bruno Haible  <bruno@clisp.org>
27103
27104         * lib/stdio.in.h: Tweak comments.
27105
27106 2010-02-19  Bruno Haible  <bruno@clisp.org>
27107
27108         Make it easier to find modules. New gnulib-tool option '--find'.
27109         * gnulib-tool: New option --find.
27110         (func_usage): Document it.
27111         (func_sanitize_modulelist): New function, extracted from
27112         func_all_modules.
27113         (func_all_modules): Invoke it.
27114         * doc/gnulib-tool.texi (Which modules?): New node.
27115
27116 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27117
27118         * lib/sys_select.in.h: Provide select replacement even if
27119         sys/select.h exists on a system, for Interix.
27120
27121 2010-02-18  Jim Meyering  <meyering@redhat.com>
27122
27123         init.sh: don't use $(...) just yet
27124         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27125         to accommodate e.g., Solaris' /bin/sh.
27126
27127 2010-02-17  Bruno Haible  <bruno@clisp.org>
27128
27129         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27130         Reported by Ludovic Courtès <ludo@gnu.org>.
27131
27132 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27133
27134         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27135         linking with -lintl.
27136
27137 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27138
27139         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27140         if not provided by the system's netdb.h.  Reported by
27141         ludo@gnu.org (Ludovic Courtès).
27142
27143 2010-02-15  Jim Meyering  <meyering@redhat.com>
27144
27145         init.sh: improve portability and efficiency
27146         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27147         "dummy" in a for loop.
27148         Use '!', not '^' to select the complement of a character set used
27149         in a "case" statement.
27150         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27151         Suggestions from Eric Blake.
27152
27153         init.sh: automatically accommodate programs with the .exe suffix
27154         Automatically arrange for an invocation of "prog" to execute the
27155         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27156         may use the simpler "prog", yet still work when built on a system
27157         that requires specifying the added suffix.
27158         Do this by constructing a function named "prog" that invokes
27159         "prog.exe" for each .exe file in selected directories.
27160         * tests/init.sh (find_exe_basenames_): New function.
27161         (create_exe_shim_functions_): New function.
27162         (path_prepend_): Use it.
27163
27164         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27165         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27166         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27167
27168 2010-02-14  Jim Meyering  <meyering@redhat.com>
27169
27170         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27171         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27172         (sc_prohibit_hash_pjw_without_use): New rule.
27173
27174         maint.mk: allow the default upload destination dir to be overridden
27175         * top/maint.mk (upload_dest_dir_): Define with a default that
27176         preserves the status quo.
27177         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27178         Reported by Peter Simons.
27179
27180         maint.mk: prohibit inclusion of "hash.h" without_use
27181         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27182
27183 2010-02-10  Jim Meyering  <meyering@redhat.com>
27184
27185         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27186         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27187
27188 2010-02-09  Eric Blake  <ebb9@byu.net>
27189         and Bruno Haible  <bruno@clisp.org>
27190
27191         obstack-printf-posix: ensure declaration
27192         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27193         extracted from gl_FUNC_OBSTACK_PRINTF.
27194         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27195         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27196         Likewise.
27197         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27198         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27199         0.
27200
27201 2010-02-08  Bruno Haible  <bruno@clisp.org>
27202
27203         gnulib-tool: Fix typo in 2010-02-07 commit.
27204         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27205         Reported by Eric Blake.
27206
27207 2010-02-07  Bruno Haible  <bruno@clisp.org>
27208
27209         gnulib-tool: Fix up caching patches.
27210         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27211         option --no-cache. Use associative arrays when supported by the shell.
27212         (sed_comments): New variable.
27213         (modcache): Renamed from do_cache.
27214         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27215         abbreviate unnecessarily.
27216         (have_associative): New variable.
27217         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27218         way also for ksh and zsh.
27219         (func_init_sed_convert_to_cache_statements): New function, extracted
27220         from func_cache_lookup_module. Add support for associative arrays.
27221         Don't set the c_MODULE_cached variable here. Ignore all lines before
27222         the first field header. Remove only the final newline, not all trailing
27223         newlines. Support empty fields correctly. Limit the use of 'eval' to
27224         assignments.
27225         (func_get_description, func_get_status, func_get_notice,
27226         func_get_applicability, func_get_filelist, func_get_dependencies,
27227         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27228         func_get_automake_snippet, func_get_include_directive,
27229         func_get_link_directive, func_get_license, func_get_maintainer):
27230         Update documentation. List the unoptimized code first. Add support for
27231         associative arrays. Limit the use of 'eval' to assignments.
27232         (func_get_applicability): Undo stylistic pessimisations.
27233         (func_get_automake_snippet, func_get_include_directive): Reduce code
27234         duplication.
27235         (func_modules_transitive_closure, func_modules_add_dummy,
27236         func_modules_notice, func_modules_to_filelist, func_add_file,
27237         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27238         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27239         func_create_testdir, func_create_megatestdir): Update documentation.
27240
27241 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27242
27243         * gnulib-tool (func_cache_lookup_module): Store the module name
27244         belonging to the cache variable; error out if two different
27245         module names map to the same cache variable name.
27246
27247 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27248
27249         gnulib-tool: Make caching optional.
27250         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27251         Update matching short versions of --no-changelog.
27252         (func_usage): Update.
27253         (sed_extract_cache_prog): Renamed from ...
27254         (sed_extract_prog): ... this; revert to old extraction script.
27255         (func_get_description, func_get_status)
27256         (func_get_notice, func_get_applicability, func_get_filelist)
27257         (func_get_dependencies, func_get_autoconf_early_snippet)
27258         (func_get_autoconf_snippet, func_get_automake_snippet)
27259         (func_get_include_directive, func_get_link_directive)
27260         (func_get_license, func_get_maintainer): If $do_cache is false,
27261         use old, non-caching extraction scripts.
27262         Suggestion by Bruno Haible.
27263
27264 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27265
27266         gnulib-tool: cache module metainformation.
27267         * gnulib-tool (sed_extract_prog): Match newline before each
27268         header, and rewrite header to a shell variable suffix.
27269         (func_cache_var, func_cache_lookup_module): New functions,
27270         to turn a module name into a cache variable prefix, and to
27271         look up and cache module metainformation.
27272         (func_get_description, func_get_status)
27273         (func_get_notice, func_get_applicability, func_get_filelist)
27274         (func_get_dependencies, func_get_autoconf_early_snippet)
27275         (func_get_autoconf_snippet, func_get_automake_snippet)
27276         (func_get_include_directive, func_get_link_directive)
27277         (func_get_license, func_get_maintainer): Use
27278         func_cache_lookup_module.
27279
27280 2010-02-07  Bruno Haible  <bruno@clisp.org>
27281
27282         fnctl: Fix missing dependency.
27283         * modules/fcntl (Depends-on): Add getdtablesize.
27284         Reported by John W. Eaton <jwe@gnu.org>.
27285
27286 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27287
27288         Argp: fix recognition of short alias options.
27289
27290         * lib/argp-parse.c (convert_options): Fix improper use of
27291         `|' between character values.
27292         * tests/test-argp.c (group1_option): New alias option
27293         --read (-r).
27294         (group1_parser): Special handling for 'r'.
27295         (test15): New test case.
27296         (test_fun): Add test15.
27297         * tests/test-argp-2.sh: Update expected --help and --usage
27298         outputs.
27299
27300 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27301
27302         * tests/test-argp.c: Fix indentation.
27303
27304 2010-02-04  Eric Blake  <ebb9@byu.net>
27305
27306         gettimeofday: expose type of second argument
27307         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27308         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27309         * tests/test-gettimeofday.c: Use it to silence warning.
27310         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27311         the issue.
27312
27313 2010-02-03  Jim Meyering  <meyering@redhat.com>
27314
27315         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27316         * lib/regcomp.c (TYPE_SIGNED): Define.
27317         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27318
27319         regcomp.c: avoid a new -Wshadow warning
27320         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27321
27322 2010-02-01  Jim Meyering  <meyering@redhat.com>
27323
27324         removing useless parentheses in cpp #define directives
27325         For motivation, see commit c0221df4, "define STREQ(a,b)
27326         consistently, removing useless parentheses"
27327         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27328         * lib/mountlist.c (MNT_IGNORE): Likewise.
27329         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27330
27331 2010-02-01  Eric Blake  <ebb9@byu.net>
27332
27333         sys_time: use link-warning
27334         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27335         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27336         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27337         * modules/sys_time (Depends-on): Add warn-on-use.
27338         (Makefile.am): Always build replacement.
27339         (configure.ac): Update substitutions.
27340         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27341         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27342         bother with SYS_TIME_H.
27343         * modules/gettimeofday (configure.ac): Declare indicator.
27344         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27345         in use.
27346
27347         closein-tests: silence compiler warning
27348         * tests/test-closein.c (main): Ignore fread result.
27349         * modules/closein-tests (Depends-on): Add ignore-value.
27350
27351         tests: silence warning about system return
27352         * tests/test-areadlink-with-size.c (main): Ignore system result.
27353         * tests/test-areadlink.c (main): Likewise.
27354         * tests/test-areadlinkat-with-size.c (main): Likewise.
27355         * tests/test-areadlinkat.c (main): Likewise.
27356         * tests/test-canonicalize-lgpl.c (main): Likewise.
27357         * tests/test-canonicalize.c (main): Likewise.
27358         * tests/test-chown.c (main): Likewise.
27359         * tests/test-fchownat.c (main): Likewise.
27360         * tests/test-fdutimensat.c (main): Likewise.
27361         * tests/test-fstatat.c (main): Likewise.
27362         * tests/test-futimens.c (main): Likewise.
27363         * tests/test-lchown.c (main): Likewise.
27364         * tests/test-link.c (main): Likewise.
27365         * tests/test-linkat.c (main): Likewise.
27366         * tests/test-lstat.c (main): Likewise.
27367         * tests/test-mkdir.c (main): Likewise.
27368         * tests/test-mkdirat.c (main): Likewise.
27369         * tests/test-mkfifo.c (main): Likewise.
27370         * tests/test-mkfifoat.c (main): Likewise.
27371         * tests/test-mknod.c (main): Likewise.
27372         * tests/test-readlink.c (main): Likewise.
27373         * tests/test-remove.c (main): Likewise.
27374         * tests/test-rename.c (main): Likewise.
27375         * tests/test-renameat.c (main): Likewise.
27376         * tests/test-rmdir.c (main): Likewise.
27377         * tests/test-symlink.c (main): Likewise.
27378         * tests/test-symlinkat.c (main): Likewise.
27379         * tests/test-unlink.c (main): Likewise.
27380         * tests/test-unlinkat.c (main): Likewise.
27381         * tests/test-utimens.c (main): Likewise.
27382         * tests/test-utimensat.c (main): Likewise.
27383         * modules/areadlink-tests (Depends-on): Add ignore-value.
27384         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27385         * modules/areadlinkat-tests (Depends-on): Likewise.
27386         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27387         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27388         * modules/canonicalize-tests (Depends-on): Likewise.
27389         * modules/chown-tests (Depends-on): Likewise.
27390         * modules/fdutimensat-tests (Depends-on): Likewise.
27391         * modules/futimens-tests (Depends-on): Likewise.
27392         * modules/lchown-tests (Depends-on): Likewise.
27393         * modules/link-tests (Depends-on): Likewise.
27394         * modules/linkat-tests (Depends-on): Likewise.
27395         * modules/lstat-tests (Depends-on): Likewise.
27396         * modules/mkdir-tests (Depends-on): Likewise.
27397         * modules/mkfifo-tests (Depends-on): Likewise.
27398         * modules/mkfifoat-tests (Depends-on): Likewise.
27399         * modules/mknod-tests (Depends-on): Likewise.
27400         * modules/openat-tests (Depends-on): Likewise.
27401         * modules/readlink-tests (Depends-on): Likewise.
27402         * modules/remove-tests (Depends-on): Likewise.
27403         * modules/rename-tests (Depends-on): Likewise.
27404         * modules/renameat-tests (Depends-on): Likewise.
27405         * modules/rmdir-tests (Depends-on): Likewise.
27406         * modules/symlink-tests (Depends-on): Likewise.
27407         * modules/symlinkat-tests (Depends-on): Likewise.
27408         * modules/unlink-tests (Depends-on): Likewise.
27409         * modules/utimens-tests (Depends-on): Likewise.
27410         * modules/utimensat-tests (Depends-on): Likewise.
27411
27412 2010-01-31  Bruno Haible  <bruno@clisp.org>
27413
27414         Perform the same test for many <math.h> functions.
27415         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27416         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27417         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27418         of gl_MATHFUNC.
27419         * modules/acos (configure.ac): Likewise.
27420         * modules/asin (configure.ac): Likewise.
27421         * modules/atan (configure.ac): Likewise.
27422         * modules/atan2 (configure.ac): Likewise.
27423         * modules/cbrt (configure.ac): Likewise.
27424         * modules/copysign (configure.ac): Likewise.
27425         * modules/cos (configure.ac): Likewise.
27426         * modules/cosh (configure.ac): Likewise.
27427         * modules/erf (configure.ac): Likewise.
27428         * modules/erfc (configure.ac): Likewise.
27429         * modules/exp (configure.ac): Likewise.
27430         * modules/fmod (configure.ac): Likewise.
27431         * modules/hypot (configure.ac): Likewise.
27432         * modules/j0 (configure.ac): Likewise.
27433         * modules/j1 (configure.ac): Likewise.
27434         * modules/jn (configure.ac): Likewise.
27435         * modules/lgamma (configure.ac): Likewise.
27436         * modules/log (configure.ac): Likewise.
27437         * modules/log10 (configure.ac): Likewise.
27438         * modules/log1p (configure.ac): Likewise.
27439         * modules/pow (configure.ac): Likewise.
27440         * modules/remainder (configure.ac): Likewise.
27441         * modules/sin (configure.ac): Likewise.
27442         * modules/sinh (configure.ac): Likewise.
27443         * modules/tan (configure.ac): Likewise.
27444         * modules/tanh (configure.ac): Likewise.
27445         * modules/y0 (configure.ac): Likewise.
27446         * modules/y1 (configure.ac): Likewise.
27447         * modules/yn (configure.ac): Likewise.
27448         Suggested by Paolo Bonzini.
27449
27450 2010-01-31  Bruno Haible  <bruno@clisp.org>
27451
27452         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27453
27454 2010-01-31  Bruno Haible  <bruno@clisp.org>
27455
27456         Work around getdelim() bug on FreeBSD 8.0.
27457         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27458         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27459         not work.
27460         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27461         is 1.
27462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27463         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27464         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27465         a non-zero size.
27466         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27467
27468 2010-01-31  Bruno Haible  <bruno@clisp.org>
27469
27470         Work around getline() bug on FreeBSD 8.0.
27471         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27472         and a non-zero size.
27473         * tests/test-getline.c (main): Likewise.
27474         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27475         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27476
27477 2010-01-28  Eric Blake  <ebb9@byu.net>
27478
27479         regex: fix build failure
27480         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27481         platforms.
27482
27483 2010-01-28  Jim Meyering  <meyering@redhat.com>
27484
27485         regex: do not ignore memory allocation failure
27486         * lib/regex_internal.c (create_cd_newstate): Detect
27487         re_node_set_init_copy failure.   Extracted from glibc commit
27488         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27489
27490         regex: sync more white-space changes from libc
27491         * lib/regex_internal.c: White-space only changes.
27492         * lib/regexec.c: Likewise.
27493
27494         regex: add many uses of __attribute_warn_unused_result__
27495         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27496         * lib/regexec.c: Likewise.
27497         Extracted from a messy glibc commit.
27498
27499         regcomp.c: spelling and merge-artifact from glibc
27500         * lib/regcomp.c: Merge remainder of glibc's
27501         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27502
27503         regcomp.c: sync white-space changes from glibc
27504         * lib/regcomp.c: Merge to accommodate white space
27505         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27506
27507         regcomp.c: do not ignore internal return values
27508         * lib/regcomp.c: Do not ignore internal return values.
27509         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27510         but without its white-space changes and spelling fixes.
27511
27512         regex_internal.h: define __attribute_warn_unused_result__
27513         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27514
27515         maint: add a syntax-check rule to check for vulnerable Makefile.in
27516         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27517
27518 2010-01-27  Jim Meyering  <meyering@redhat.com>
27519
27520         ncftpput-ftp: clean up spaces
27521         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27522         Remove trailing blanks.
27523
27524 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27525
27526         * build-aux/git-version-gen: Fix copyright statement.
27527         * build-aux/gnupload: Likewise.
27528         * tests/test-arcfour.c: Likewise.
27529         * tests/test-arctwo.c: Likewise.
27530         * tests/test-count-one-bits.c: Likewise.
27531         * tests/test-crc.c: Likewise.
27532         * tests/test-des.c: Likewise.
27533         * tests/test-gc-arcfour.c: Likewise.
27534         * tests/test-gc-arctwo.c: Likewise.
27535         * tests/test-gc-des.c: Likewise.
27536         * tests/test-gc-hmac-md5.c: Likewise.
27537         * tests/test-gc-hmac-sha1.c: Likewise.
27538         * tests/test-gc-md2.c: Likewise.
27539         * tests/test-gc-md4.c: Likewise.
27540         * tests/test-gc-md5.c: Likewise.
27541         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27542         * tests/test-gc-rijndael.c: Likewise.
27543         * tests/test-gc-sha1.c: Likewise.
27544         * tests/test-gc.c: Likewise.
27545         * tests/test-gethostname.c: Likewise.
27546         * tests/test-gettimeofday.c: Likewise.
27547         * tests/test-hash.c: Likewise.
27548         * tests/test-hmac-md5.c: Likewise.
27549         * tests/test-hmac-sha1.c: Likewise.
27550         * tests/test-md2.c: Likewise.
27551         * tests/test-md4.c: Likewise.
27552         * tests/test-md5.c: Likewise.
27553         * tests/test-memchr.c: Likewise.
27554         * tests/test-memchr2.c: Likewise.
27555         * tests/test-memcmp.c: Likewise.
27556         * tests/test-memmem.c: Likewise.
27557         * tests/test-memrchr.c: Likewise.
27558         * tests/test-rawmemchr.c: Likewise.
27559         * tests/test-read-file.c: Likewise.
27560         * tests/test-rijndael.c: Likewise.
27561         * tests/test-sockets.c: Likewise.
27562         * tests/test-strchrnul.c: Likewise.
27563         * tests/test-strstr.c: Likewise.
27564         * tests/test-strtod.c: Likewise.
27565         * build-aux/ncftpput-ftp: Likewise.
27566
27567 2010-01-26  Eric Blake  <ebb9@byu.net>
27568
27569         ignore-value: update recommended header name
27570         * modules/ignore-value (Include): Only use <> for headers that
27571         exist in glibc.
27572
27573 2010-01-26  Jim Meyering  <meyering@redhat.com>
27574
27575         test-userspec.c: avoid compiler warnings
27576         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27577         and "initialization discards qualifiers..." warnings.
27578         Put the first "uid" in its own scope, and make char* members "const".
27579
27580 2010-01-25  Bruno Haible  <bruno@clisp.org>
27581
27582         gnulib-tool: Make warning diagnostics consistent.
27583         * gnulib-tool (func_warning): New function.
27584         Use it everywhere where gnulib-tool produces output to stderr and it is
27585         not a fatal error.
27586
27587 2010-01-25  Bruno Haible  <bruno@clisp.org>
27588
27589         Fix test dependencies.
27590         * modules/xstrtol-tests (Depends-on): Add inttypes.
27591         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27592
27593 2010-01-25 Pádraig Brady <P@draigBrady.com>
27594
27595         syntax-check: detect incorrect boolean macro values in config.h
27596         * modules/maintainer-makefile (configure.ac): Parameterize the location
27597         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27598         The logic is from Eric Blake and the location indicated by Jim Meyering.
27599         Note the more natural CONFIG_HEADER name is prohibited by automake
27600         for backwards compatibility reasons.
27601         * top/maint.mk (sc_Wundef_boolean): New rule.
27602
27603 2010-01-25  Jim Meyering  <meyering@redhat.com>
27604
27605         bootstrap: detect MacOS 10.6's shasum, too
27606         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27607         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27608
27609 2010-01-23  Jim Meyering  <meyering@redhat.com>
27610
27611         xstrtoll: new module
27612         * modules/xstrtoll: New file.
27613         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27614         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27615         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27616         ./configure fails if you use this module and lack "long long".
27617         * modules/xstrtoll-tests: New module.
27618         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27619         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27620         new init.sh-based test framework.
27621
27622 2010-01-24  Bruno Haible  <bruno@clisp.org>
27623
27624         Tests for module 'yn'.
27625         * modules/yn-tests: New file.
27626         * tests/test-yn.c: New file.
27627
27628         Tests for module 'y1'.
27629         * modules/y1-tests: New file.
27630         * tests/test-y1.c: New file.
27631
27632         Tests for module 'y0'.
27633         * modules/y0-tests: New file.
27634         * tests/test-y0.c: New file.
27635
27636         Tests for module 'tanh'.
27637         * modules/tanh-tests: New file.
27638         * tests/test-tanh.c: New file.
27639
27640         Tests for module 'tan'.
27641         * modules/tan-tests: New file.
27642         * tests/test-tan.c: New file.
27643
27644         Tests for module 'sqrt'.
27645         * modules/sqrt-tests: New file.
27646         * tests/test-sqrt.c: New file.
27647
27648         Tests for module 'sinh'.
27649         * modules/sinh-tests: New file.
27650         * tests/test-sinh.c: New file.
27651
27652         Tests for module 'sin'.
27653         * modules/sin-tests: New file.
27654         * tests/test-sin.c: New file.
27655
27656         Tests for module 'rint'.
27657         * modules/rint-tests: New file.
27658         * tests/test-rint.c: New file.
27659
27660         Tests for module 'remainder'.
27661         * modules/remainder-tests: New file.
27662         * tests/test-remainder.c: New file.
27663
27664         Tests for module 'pow'.
27665         * modules/pow-tests: New file.
27666         * tests/test-pow.c: New file.
27667
27668         Tests for module 'nextafter'.
27669         * modules/nextafter-tests: New file.
27670         * tests/test-nextafter.c: New file.
27671
27672         Tests for module 'modf'.
27673         * modules/modf-tests: New file.
27674         * tests/test-modf.c: New file.
27675
27676         Tests for module 'logb'.
27677         * modules/logb-tests: New file.
27678         * tests/test-logb.c: New file.
27679
27680         Tests for module 'log1p'.
27681         * modules/log1p-tests: New file.
27682         * tests/test-log1p.c: New file.
27683
27684         Tests for module 'log10'.
27685         * modules/log10-tests: New file.
27686         * tests/test-log10.c: New file.
27687
27688         Tests for module 'log'.
27689         * modules/log-tests: New file.
27690         * tests/test-log.c: New file.
27691
27692         Tests for module 'lgamma'.
27693         * modules/lgamma-tests: New file.
27694         * tests/test-lgamma.c: New file.
27695
27696         Tests for module 'ldexp'.
27697         * modules/ldexp-tests: New file.
27698         * tests/test-ldexp.c: New file.
27699
27700         Tests for module 'jn'.
27701         * modules/jn-tests: New file.
27702         * tests/test-jn.c: New file.
27703
27704         Tests for module 'j1'.
27705         * modules/j1-tests: New file.
27706         * tests/test-j1.c: New file.
27707
27708         Tests for module 'j0'.
27709         * modules/j0-tests: New file.
27710         * tests/test-j0.c: New file.
27711
27712         Tests for module 'hypot'.
27713         * modules/hypot-tests: New file.
27714         * tests/test-hypot.c: New file.
27715
27716         Tests for module 'fmod'.
27717         * modules/fmod-tests: New file.
27718         * tests/test-fmod.c: New file.
27719
27720         Tests for module 'fabs'.
27721         * modules/fabs-tests: New file.
27722         * tests/test-fabs.c: New file.
27723
27724         Tests for module 'exp'.
27725         * modules/exp-tests: New file.
27726         * tests/test-exp.c: New file.
27727
27728         Tests for module 'erfc'.
27729         * modules/erfc-tests: New file.
27730         * tests/test-erfc.c: New file.
27731
27732         Tests for module 'erf'.
27733         * modules/erf-tests: New file.
27734         * tests/test-erf.c: New file.
27735
27736         Tests for module 'cosh'.
27737         * modules/cosh-tests: New file.
27738         * tests/test-cosh.c: New file.
27739
27740         Tests for module 'cos'.
27741         * modules/cos-tests: New file.
27742         * tests/test-cos.c: New file.
27743
27744         Tests for module 'copysign'.
27745         * modules/copysign-tests: New file.
27746         * tests/test-copysign.c: New file.
27747
27748         Tests for module 'cbrt'.
27749         * modules/cbrt-tests: New file.
27750         * tests/test-cbrt.c: New file.
27751
27752         Tests for module 'atan2'.
27753         * modules/atan2-tests: New file.
27754         * tests/test-atan2.c: New file.
27755
27756         Tests for module 'atan'.
27757         * modules/atan-tests: New file.
27758         * tests/test-atan.c: New file.
27759
27760         Tests for module 'asin'.
27761         * modules/asin-tests: New file.
27762         * tests/test-asin.c: New file.
27763
27764         Tests for module 'acos'.
27765         * modules/acos-tests: New file.
27766         * tests/test-acos.c: New file.
27767
27768 2010-01-24  Bruno Haible  <bruno@clisp.org>
27769
27770         Fix tests for common <math.h> functions.
27771         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27772         code snippet that references the function pointer, rather than merely
27773         calling the function. Substitute the FUNC_LIBM variable.
27774         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27775         * modules/acos (configure.ac): Likewise.
27776         * modules/asin (configure.ac): Likewise.
27777         * modules/atan (configure.ac): Likewise.
27778         * modules/atan2 (configure.ac): Likewise.
27779         * modules/cbrt (configure.ac): Likewise.
27780         * modules/copysign (configure.ac): Likewise.
27781         * modules/cos (configure.ac): Likewise.
27782         * modules/cosh (configure.ac): Likewise.
27783         * modules/erf (configure.ac): Likewise.
27784         * modules/erfc (configure.ac): Likewise.
27785         * modules/exp (configure.ac): Likewise.
27786         * modules/fabs (configure.ac): Likewise.
27787         * modules/fmod (configure.ac): Likewise.
27788         * modules/hypot (configure.ac): Likewise.
27789         * modules/j0 (configure.ac): Likewise.
27790         * modules/j1 (configure.ac): Likewise.
27791         * modules/jn (configure.ac): Likewise.
27792         * modules/ldexp (configure.ac): Likewise.
27793         * modules/lgamma (configure.ac): Likewise.
27794         * modules/log (configure.ac): Likewise.
27795         * modules/log10 (configure.ac): Likewise.
27796         * modules/log1p (configure.ac): Likewise.
27797         * modules/logb (configure.ac): Likewise.
27798         * modules/modf (configure.ac): Likewise.
27799         * modules/nextafter (configure.ac): Likewise.
27800         * modules/pow (configure.ac): Likewise.
27801         * modules/remainder (configure.ac): Likewise.
27802         * modules/rint (configure.ac): Likewise.
27803         * modules/sin (configure.ac): Likewise.
27804         * modules/sinh (configure.ac): Likewise.
27805         * modules/tan (configure.ac): Likewise.
27806         * modules/tanh (configure.ac): Likewise.
27807         * modules/y0 (configure.ac): Likewise.
27808         * modules/y1 (configure.ac): Likewise.
27809         * modules/yn (configure.ac): Likewise.
27810
27811 2010-01-24  Bruno Haible  <bruno@clisp.org>
27812
27813         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27814         * tests/test-acosl.c (x): New variable.
27815         (main): Store argument in x and fetch it from x.
27816         * tests/test-asinl.c (x): New variable.
27817         (main): Store argument in x and fetch it from x.
27818         * tests/test-atanl.c (x): New variable.
27819         (main): Store argument in x and fetch it from x.
27820         * tests/test-cosl.c (x): New variable.
27821         (main): Store argument in x and fetch it from x.
27822         * tests/test-expl.c (x): New variable.
27823         (main): Store argument in x and fetch it from x.
27824         * tests/test-logl.c (x): New variable.
27825         (main): Store argument in x and fetch it from x.
27826         * tests/test-sinl.c (x): New variable.
27827         (main): Store argument in x and fetch it from x.
27828         * tests/test-sqrtl.c (x): New variable.
27829         (main): Store argument in x and fetch it from x.
27830         * tests/test-tanl.c (x): New variable.
27831         (main): Store argument in x and fetch it from x.
27832
27833 2010-01-24  Bruno Haible  <bruno@clisp.org>
27834
27835         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27836         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27837         assignments to the initial TESTS_ENVIRONMENT.
27838         * doc/gnulib.texi (Unit test modules): Document it.
27839         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27840         TESTS_ENVIRONMENT.
27841         * modules/btowc-tests (Makefile.am): Likewise.
27842         * modules/c-stack-tests (Makefile.am): Likewise.
27843         * modules/c-strcase-tests (Makefile.am): Likewise.
27844         * modules/copy-file-tests (Makefile.am): Likewise.
27845         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27846         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27847         * modules/mbrtowc-tests (Makefile.am): Likewise.
27848         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27849         * modules/mbscasestr-tests (Makefile.am): Likewise.
27850         * modules/mbschr-tests (Makefile.am): Likewise.
27851         * modules/mbscspn-tests (Makefile.am): Likewise.
27852         * modules/mbsinit-tests (Makefile.am): Likewise.
27853         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27854         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27855         * modules/mbspbrk-tests (Makefile.am): Likewise.
27856         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27857         * modules/mbsrchr-tests (Makefile.am): Likewise.
27858         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27859         * modules/mbsspn-tests (Makefile.am): Likewise.
27860         * modules/mbsstr-tests (Makefile.am): Likewise.
27861         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27862         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27863         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27864         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27865         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27866         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27867         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27868         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27869         * modules/wcrtomb-tests (Makefile.am): Likewise.
27870         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27871         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27872         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27873         assignments from TESTS_ENVIRONMENT.
27874         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27875         augmentation.
27876         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27877         * modules/atexit-tests (Makefile.am): Likewise.
27878         * modules/binary-io-tests (Makefile.am): Likewise.
27879         * modules/closein-tests (Makefile.am): Likewise.
27880         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27881         * modules/exclude-tests (Makefile.am): Likewise.
27882         * modules/fflush-tests (Makefile.am): Likewise.
27883         * modules/fpending-tests (Makefile.am): Likewise.
27884         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27885         * modules/freadahead-tests (Makefile.am): Likewise.
27886         * modules/freadptr-tests (Makefile.am): Likewise.
27887         * modules/freadseek-tests (Makefile.am): Likewise.
27888         * modules/fseek-tests (Makefile.am): Likewise.
27889         * modules/fseeko-tests (Makefile.am): Likewise.
27890         * modules/ftell-tests (Makefile.am): Likewise.
27891         * modules/ftello-tests (Makefile.am): Likewise.
27892         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27893         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27894         * modules/lseek-tests (Makefile.am): Likewise.
27895         * modules/parse-duration-tests (Makefile.am): Likewise.
27896         * modules/perror-tests (Makefile.am): Likewise.
27897         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27898         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27899         * modules/pipe-tests (Makefile.am): Likewise.
27900         * modules/pread-tests (Makefile.am): Likewise.
27901         * modules/printf-posix-tests (Makefile.am): Likewise.
27902         * modules/select-tests (Makefile.am): Likewise.
27903         * modules/sigpipe-tests (Makefile.am): Likewise.
27904         * modules/tsearch-tests (Makefile.am): Likewise.
27905         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27906         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27907         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27908         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27909         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27910         * modules/version-etc-tests (Makefile.am): Likewise.
27911         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27912         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27913         * modules/xalloc-die-tests (Makefile.am): Likewise.
27914         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27915         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27916         * modules/xstrtol-tests (Makefile.am): Likewise.
27917         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27918         * modules/yesno-tests (Makefile.am): Likewise.
27919         Suggested by Jim Meyering.
27920
27921 2010-01-24  Bruno Haible  <bruno@clisp.org>
27922
27923         More documentation.
27924         * doc/gnulib.texi (Writing modules): New chapter.
27925         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27926         the new chapter.
27927
27928 2010-01-24  Jim Meyering  <meyering@redhat.com>
27929
27930         maint.mk: do not prepend "./" after filtering
27931         * top/maint.mk (_prepend_srcdir_prefix): New variable
27932         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27933         "./" when $(srcdir) is ".".
27934
27935         define STREQ(a,b) consistently, removing useless parentheses
27936         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27937         since the only risk is that "a" or "b" contains an unparenthesized
27938         comma, but if either did that, STREQ would have 3 or more arguments.
27939         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27940         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27941         * lib/hash-triple.c (STREQ): Likewise.
27942         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27943         * lib/getugroups.c (STREQ): Likewise.
27944
27945 2010-01-23  Jim Meyering  <meyering@redhat.com>
27946
27947         maint.mk: fix syntax-check in a non-srcdir build directory
27948         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27949         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27950
27951 2010-01-22  Jim Meyering  <meyering@redhat.com>
27952
27953         userspec: add unit tests
27954         * tests/test-userspec.c: New file.
27955         * modules/userspec-tests: Likewise.
27956
27957 2010-01-21  Jim Meyering  <meyering@redhat.com>
27958
27959         maint.mk: handle source file names containing "." robustly
27960         * top/maint.mk (_dot_escaped_srcdir): Define.
27961         (VC_LIST): Use it in LHS of sed substitution.
27962
27963 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27964
27965         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27966         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27967         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27968         from a non-srcdir build.
27969
27970 2010-01-20  Eric Blake  <ebb9@byu.net>
27971
27972         warn-on-use: use instead of link-warning
27973         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27974         * modules/unistd (Depends-on, Makefile.am): Likewise.
27975         * modules/arpa_inet (Depends-on): Replace link-warning with
27976         warn-on-use.
27977         (Makefile.am): Update rules accordingly.
27978         * modules/ctype (Depends-on, Makefile.am): Likewise.
27979         * modules/dirent (Depends-on, Makefile.am): Likewise.
27980         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27981         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27982         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27983         * modules/locale (Depends-on, Makefile.am): Likewise.
27984         * modules/math (Depends-on, Makefile.am): Likewise.
27985         * modules/search (Depends-on, Makefile.am): Likewise.
27986         * modules/signal (Depends-on, Makefile.am): Likewise.
27987         * modules/spawn (Depends-on, Makefile.am): Likewise.
27988         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27989         * modules/string (Depends-on, Makefile.am): Likewise.
27990         * modules/strings (Depends-on, Makefile.am): Likewise.
27991         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27992         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27993         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27994         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27995         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27996         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27997         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27998         * modules/wchar (Depends-on, Makefile.am): Likewise.
27999         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28000         should be poisoned.
28001         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28002         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28003         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28004         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28005         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28006         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28007         * m4/math_h.m4 (gl_MATH_H): Likewise.
28008         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28009         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28010         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28011         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28012         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28013         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28014         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28015         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28016         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28017         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28018         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28020         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28021         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28022         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28023         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28024         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28025         GL_LINK_WARNING.
28026         * lib/ctype.in.h: Likewise.
28027         * lib/dirent.in.h: Likewise.
28028         * lib/fcntl.in.h: Likewise.
28029         * lib/inttypes.in.h: Likewise.
28030         * lib/langinfo.in.h: Likewise.
28031         * lib/locale.in.h: Likewise.
28032         * lib/math.in.h: Likewise.
28033         * lib/search.in.h: Likewise.
28034         * lib/signal.in.h: Likewise.
28035         * lib/spawn.in.h: Likewise.
28036         * lib/stdio.in.h: Likewise.
28037         * lib/stdlib.in.h: Likewise.
28038         * lib/string.in.h: Likewise.
28039         * lib/strings.in.h: Likewise.
28040         * lib/sys_file.in.h: Likewise.
28041         * lib/sys_ioctl.in.h: Likewise.
28042         * lib/sys_select.in.h: Likewise.
28043         * lib/sys_socket.in.h: Likewise.
28044         * lib/sys_stat.in.h: Likewise.
28045         * lib/sys_times.in.h: Likewise.
28046         * lib/sys_utsname.in.h: Likewise.
28047         * lib/unistd.in.h: Likewise.
28048         * lib/wchar.in.h: Likewise.
28049
28050 2010-01-20  Bruno Haible  <bruno@clisp.org>
28051
28052         Avoid duplicate -lm.
28053         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28054         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28055         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28056         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28057         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28058         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28059         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28060         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28061         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28062         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28063         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28064         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28065         Reported by Paolo Bonzini.
28066
28067 2010-01-19  Bruno Haible  <bruno@clisp.org>
28068
28069         langinfo, nl_langinfo: Relicense under LGPLv2+.
28070         * modules/langinfo (License): Change to LGPLv2+.
28071         * modules/nl_langinfo (License): Likewise.
28072         Patch by David Lutterkort <lutter@redhat.com>.
28073
28074 2010-01-19  Bruno Haible  <bruno@clisp.org>
28075
28076         Avoid compilation error with cc on OSF/1 5.1.
28077         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28078         statement, not before.
28079         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28080
28081 2010-01-18  Bruno Haible  <bruno@clisp.org>
28082
28083         Avoid a link error due to the __printf__ symbol.
28084         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28085         and 2.6.x.
28086         (__format__, __printf__): Remove definitions.
28087         * lib/argp-fmtstream.h: Likewise.
28088         * lib/argp.h: Likewise.
28089         * lib/error.h: Likewise.
28090         * lib/vasnprintf.h: Likewise.
28091         * lib/xprintf.h: Likewise.
28092         * lib/xvasprintf.h: Likewise.
28093         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28094
28095 2010-01-18  Bruno Haible  <bruno@clisp.org>
28096
28097         Tests for module 'tanl'.
28098         * modules/tanl-tests: New file.
28099         * tests/test-tanl.c: New file.
28100
28101         Tests for module 'sqrtl'.
28102         * modules/sqrtl-tests: New file.
28103         * tests/test-sqrtl.c: New file.
28104
28105         Tests for module 'sinl'.
28106         * modules/sinl-tests: New file.
28107         * tests/test-sinl.c: New file.
28108
28109         Tests for module 'logl'.
28110         * modules/logl-tests: New file.
28111         * tests/test-logl.c: New file.
28112
28113         Tests for module 'expl'.
28114         * modules/expl-tests: New file.
28115         * tests/test-expl.c: New file.
28116
28117         Tests for module 'cosl'.
28118         * modules/cosl-tests: New file.
28119         * tests/test-cosl.c: New file.
28120
28121         Tests for module 'atanl'.
28122         * modules/atanl-tests: New file.
28123         * tests/test-atanl.c: New file.
28124
28125         Tests for module 'asinl'.
28126         * modules/asinl-tests: New file.
28127         * tests/test-asinl.c: New file.
28128
28129         Tests for module 'acosl'.
28130         * modules/acosl-tests: New file.
28131         * tests/test-acosl.c: New file.
28132
28133         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28134         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28135         tanl): Use the standard gnulib idiom.
28136         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28137         * lib/sinl.c: Likewise.
28138         * lib/tanl.c: Don't include trigl.c.
28139         (kernel_tanl): Make static.
28140         * lib/sincosl.c: Include trigl.h first.
28141         * lib/trigl.c: Likewise.
28142         * m4/acosl.m4: New file.
28143         * m4/asinl.m4: New file.
28144         * m4/atanl.m4: New file.
28145         * m4/cosl.m4: New file.
28146         * m4/expl.m4: New file.
28147         * m4/logl.m4: New file.
28148         * m4/sinl.m4: New file.
28149         * m4/sqrtl.m4: New file.
28150         * m4/tanl.m4: New file.
28151         * m4/mathl.m4: Remove file.
28152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28153         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28154         Don't initialize GNULIB_MATHL.
28155         * modules/acosl: New file.
28156         * modules/asinl: New file.
28157         * modules/atanl: New file.
28158         * modules/cosl: New file.
28159         * modules/expl: New file.
28160         * modules/logl: New file.
28161         * modules/sinl: New file.
28162         * modules/sqrtl: New file.
28163         * modules/tanl: New file.
28164         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28165         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28166         substitute GNULIB_MATHL.
28167         * modules/mathl: Rewritten.
28168         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28169         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28170         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28171         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28172         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28173         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28174         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28175         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28176         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28177
28178 2010-01-18  Bruno Haible  <bruno@clisp.org>
28179
28180         sqrt: Make gl_FUNC_SQRT requirable.
28181         * m4/sqrt.m4: New file.
28182         * modules/sqrt (Files): Add it.
28183         (configure.ac): Invoke gl_FUNC_SQRT.
28184
28185 2010-01-18  Bruno Haible  <bruno@clisp.org>
28186
28187         New modules for common <math.h> functions.
28188         * m4/mathfunc.m4: New file.
28189         * modules/acos: New file.
28190         * modules/asin: New file.
28191         * modules/atan: New file.
28192         * modules/atan2: New file.
28193         * modules/cbrt: New file.
28194         * modules/copysign: New file.
28195         * modules/cos: New file.
28196         * modules/cosh: New file.
28197         * modules/erf: New file.
28198         * modules/erfc: New file.
28199         * modules/exp: New file.
28200         * modules/fabs: New file.
28201         * modules/fmod: New file.
28202         * modules/hypot: New file.
28203         * modules/j0: New file.
28204         * modules/j1: New file.
28205         * modules/jn: New file.
28206         * modules/ldexp: New file.
28207         * modules/lgamma: New file.
28208         * modules/log: New file.
28209         * modules/log10: New file.
28210         * modules/log1p: New file.
28211         * modules/logb: New file.
28212         * modules/modf: New file.
28213         * modules/nextafter: New file.
28214         * modules/pow: New file.
28215         * modules/remainder: New file.
28216         * modules/rint: New file.
28217         * modules/sin: New file.
28218         * modules/sinh: New file.
28219         * modules/sqrt: New file.
28220         * modules/tan: New file.
28221         * modules/tanh: New file.
28222         * modules/y0: New file.
28223         * modules/y1: New file.
28224         * modules/yn: New file.
28225         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28226         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28227         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28228         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28229         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28230         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28231         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28232         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28233         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28234         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28235         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28236         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28237         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28238         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28239         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28240         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28241         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28242         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28243         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28244         * doc/posix-functions/log.texi: Mention the 'log' module.
28245         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28246         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28247         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28248         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28249         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28250         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28251         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28252         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28253         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28254         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28255         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28256         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28257         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28258         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28259         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28260         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28261
28262 2010-01-18  Jim Meyering  <meyering@redhat.com>
28263
28264         ignore-value: relax license to LGPLv2+
28265         * modules/ignore-value (License): Relax to LGPLv2+.
28266
28267         getdate: don't leak when TZ contains two or more '"'s
28268         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28269         double quote in TZ after the first one.
28270
28271         readtokens: do not leak internal token_lengths buffer
28272         * lib/readtokens.c (readtokens): Free the local, lengths,
28273         when the supplied "token_lengths" parameter is NULL.
28274
28275 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28276
28277         Fix a couple of missing LIBTHREAD link failures on AIX.
28278         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28279         $(LIBTHREAD).
28280         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28281
28282         Link test-poll against INET_PTON_LIB.
28283         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28284         for inet_pton on Solaris 10.
28285
28286 2010-01-17  Bruno Haible  <bruno@clisp.org>
28287
28288         unistdio/*-sprintf: Fix typo in module description.
28289         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28290         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28291         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28292         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28293         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28294         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28295         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28296         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28297
28298 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28299
28300         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28301         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28302         variables in shell case patterns, for AIX and HP-UX ksh.
28303
28304         Split large sed scripts, for HP-UX sed.
28305         * modules/stdio: Split sed scripts around 50 sed commands,
28306         to avoid HP-UX limit of 99 commands, in the near future.
28307         * modules/string: Likewise.
28308         * modules/unistd: Likewise.
28309
28310         gnulib-tool: avoid writing in the current directory.
28311         * gnulib-tool (func_emit_lib_Makefile_am)
28312         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28313         not in the current directory, so concurrent gnulib-tool
28314         instances do not interfere.
28315
28316 2010-01-16  Jim Meyering  <meyering@redhat.com>
28317
28318         doc: update users.txt
28319         * users.txt: Add grep.
28320         (diffutils, gzip): Update URLs.
28321
28322 2010-01-12  Bruno Haible  <bruno@clisp.org>
28323
28324         posix_spawn: Avoid test failure on Cygwin.
28325         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28326         characters.
28327         Reported by Simon Josefsson.
28328
28329 2010-01-12  Bruno Haible  <bruno@clisp.org>
28330
28331         * tests/test-cond.c (main): When skipping the test, show the reason.
28332
28333 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28334
28335         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28336
28337 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28338
28339         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28340         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28341
28342 2010-01-12  Eric Blake  <ebb9@byu.net>
28343
28344         build: guarantee AS_VAR_IF
28345         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28346         (gl_AS_VAR_IF): Move...
28347         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28348         Reported by Simon Josefsson.
28349
28350 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28351
28352         * lib/stdio.in.h: Fix typo.
28353
28354 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28355
28356         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28357         libgpg-error.
28358
28359 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28360
28361         * tests/test-xalloc-die.sh: Use $EXEEXT.
28362
28363 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28364             Bruno Haible  <bruno@clisp.org>
28365
28366         getlogin, getlogin_r: Avoid test failure.
28367         * tests/test-getlogin.c: Include <stdio.h>.
28368         (main): Skip the test when the function fails because stdin is not a
28369         tty.
28370         * tests/test-getlogin_r.c: Include <stdio.h>.
28371         (main): Skip the test when the function fails because stdin is not a
28372         tty.
28373
28374 2010-01-11  Eric Blake  <ebb9@byu.net>
28375
28376         tests: avoid more large file warnings
28377         * tests/test-fflush.c: Avoid warning about ftell use.
28378         * tests/test-fseek.c: Avoid warning about fseek use.
28379
28380 2010-01-10  Bruno Haible  <bruno@clisp.org>
28381
28382         nproc: Work better on Linux when /proc and /sys are not mounted.
28383         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28384         as lower bound when, on glibc/Linux systems,
28385         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28386         Suggested by Pádraig Brady <P@draigbrady.com>.
28387         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28388
28389         nproc: Refactor.
28390         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28391         extracted from num_processors.
28392         (num_processors): Call it.
28393
28394 2010-01-11  Jim Meyering  <meyering@redhat.com>
28395
28396         utimecmp: avoid new warning from upcoming gcc-4.5.0
28397         * lib/utimecmp.c (BILLION): Define using #define rather than an
28398         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28399
28400 2010-01-11  Eric Blake  <ebb9@byu.net>
28401
28402         math: add portability warnings for classification macros
28403         * modules/math (Depends-on): Add warn-on-use.
28404         (Makefile.am): Provide new substitutions.
28405         * m4/math_h.m4 (gl_MATH_H): Require inline.
28406         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28407         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28408         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28409         implement warnings.
28410
28411         unistd: warn on use of environ without module
28412         * modules/unistd (Depends-on): Add warn-on-use.
28413         (Makefile.am): Provide new substitutions.
28414         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28415         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28416
28417         stdio: warn on suspicious uses
28418         * modules/stdio (Depends-on): Add warn-on-use.
28419         (Makefile.am): Provide new substitutions.
28420         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28421         fseeko.
28422         * lib/stdio.in.h (gets): Always warn on use.
28423         (fseek, ftell): Adjust when warnings are issued, and honor
28424         _GL_NO_LARGE_FILES as a way to silence the warning.
28425         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28426         any warning about large file offsets.
28427         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28428         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28429         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28430         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28431         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28432         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28433         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28434         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28435
28436         warn-on-use: new module
28437         * modules/warn-on-use: New file.
28438         * build-aux/warn-on-use.h: Likewise.
28439         * m4/warn-on-use.m4: Likewise.
28440         * MODULES.html.sh (Support for building): Mention it.
28441
28442 2010-01-10  Bruno Haible  <bruno@clisp.org>
28443
28444         Tests for module 'unistr/u32-strdup'.
28445         * modules/unistr/u32-strdup-tests: New file.
28446         * tests/unistr/test-u32-strdup.c: New file.
28447
28448         Tests for module 'unistr/u16-strdup'.
28449         * modules/unistr/u16-strdup-tests: New file.
28450         * tests/unistr/test-u16-strdup.c: New file.
28451
28452         Tests for module 'unistr/u8-strdup'.
28453         * modules/unistr/u8-strdup-tests: New file.
28454         * tests/unistr/test-u8-strdup.c: New file.
28455         * tests/unistr/test-strdup.h: New file.
28456
28457         Tests for module 'unistr/u32-strncmp'.
28458         * modules/unistr/u32-strncmp-tests: New file.
28459         * tests/unistr/test-u32-strncmp.c: New file.
28460
28461         Tests for module 'unistr/u16-strncmp'.
28462         * modules/unistr/u16-strncmp-tests: New file.
28463         * tests/unistr/test-u16-strncmp.c: New file.
28464
28465         Tests for module 'unistr/u8-strncmp'.
28466         * modules/unistr/u8-strncmp-tests: New file.
28467         * tests/unistr/test-u8-strncmp.c: New file.
28468         * tests/unistr/test-strncmp.h: New file.
28469
28470         Tests for module 'unistr/u32-strcoll'.
28471         * modules/unistr/u32-strcoll-tests: New file.
28472         * tests/unistr/test-u32-strcoll.c: New file.
28473
28474         Tests for module 'unistr/u16-strcoll'.
28475         * modules/unistr/u16-strcoll-tests: New file.
28476         * tests/unistr/test-u16-strcoll.c: New file.
28477
28478         Tests for module 'unistr/u8-strcoll'.
28479         * modules/unistr/u8-strcoll-tests: New file.
28480         * tests/unistr/test-u8-strcoll.c: New file.
28481
28482         Tests for module 'unistr/u32-strcmp'.
28483         * modules/unistr/u32-strcmp-tests: New file.
28484         * tests/unistr/test-u32-strcmp.c: New file.
28485         * tests/unistr/test-u32-strcmp.h: New file.
28486
28487         Tests for module 'unistr/u16-strcmp'.
28488         * modules/unistr/u16-strcmp-tests: New file.
28489         * tests/unistr/test-u16-strcmp.c: New file.
28490         * tests/unistr/test-u16-strcmp.h: New file.
28491
28492         Tests for module 'unistr/u8-strcmp'.
28493         * modules/unistr/u8-strcmp-tests: New file.
28494         * tests/unistr/test-u8-strcmp.c: New file.
28495         * tests/unistr/test-u8-strcmp.h: New file.
28496         * tests/unistr/test-strcmp.h: New file.
28497
28498         Tests for module 'unistr/u32-strncat'.
28499         * modules/unistr/u32-strncat-tests: New file.
28500         * tests/unistr/test-u32-strncat.c: New file.
28501
28502         Tests for module 'unistr/u16-strncat'.
28503         * modules/unistr/u16-strncat-tests: New file.
28504         * tests/unistr/test-u16-strncat.c: New file.
28505
28506         Tests for module 'unistr/u8-strncat'.
28507         * modules/unistr/u8-strncat-tests: New file.
28508         * tests/unistr/test-u8-strncat.c: New file.
28509         * tests/unistr/test-strncat.h: New file.
28510
28511         Tests for module 'unistr/u32-strcat'.
28512         * modules/unistr/u32-strcat-tests: New file.
28513         * tests/unistr/test-u32-strcat.c: New file.
28514
28515         Tests for module 'unistr/u16-strcat'.
28516         * modules/unistr/u16-strcat-tests: New file.
28517         * tests/unistr/test-u16-strcat.c: New file.
28518
28519         Tests for module 'unistr/u8-strcat'.
28520         * modules/unistr/u8-strcat-tests: New file.
28521         * tests/unistr/test-u8-strcat.c: New file.
28522         * tests/unistr/test-strcat.h: New file.
28523
28524         Tests for module 'unistr/u32-stpncpy'.
28525         * modules/unistr/u32-stpncpy-tests: New file.
28526         * tests/unistr/test-u32-stpncpy.c: New file.
28527
28528         Tests for module 'unistr/u16-stpncpy'.
28529         * modules/unistr/u16-stpncpy-tests: New file.
28530         * tests/unistr/test-u16-stpncpy.c: New file.
28531
28532         Tests for module 'unistr/u8-stpncpy'.
28533         * modules/unistr/u8-stpncpy-tests: New file.
28534         * tests/unistr/test-u8-stpncpy.c: New file.
28535         * tests/unistr/test-stpncpy.h: New file.
28536
28537         Tests for module 'unistr/u32-strncpy'.
28538         * modules/unistr/u32-strncpy-tests: New file.
28539         * tests/unistr/test-u32-strncpy.c: New file.
28540
28541         Tests for module 'unistr/u16-strncpy'.
28542         * modules/unistr/u16-strncpy-tests: New file.
28543         * tests/unistr/test-u16-strncpy.c: New file.
28544
28545         Tests for module 'unistr/u8-strncpy'.
28546         * modules/unistr/u8-strncpy-tests: New file.
28547         * tests/unistr/test-u8-strncpy.c: New file.
28548         * tests/unistr/test-strncpy.h: New file.
28549
28550         Tests for module 'unistr/u32-stpcpy'.
28551         * modules/unistr/u32-stpcpy-tests: New file.
28552         * tests/unistr/test-u32-stpcpy.c: New file.
28553
28554         Tests for module 'unistr/u16-stpcpy'.
28555         * modules/unistr/u16-stpcpy-tests: New file.
28556         * tests/unistr/test-u16-stpcpy.c: New file.
28557
28558         Tests for module 'unistr/u8-stpcpy'.
28559         * modules/unistr/u8-stpcpy-tests: New file.
28560         * tests/unistr/test-u8-stpcpy.c: New file.
28561         * tests/unistr/test-stpcpy.h: New file.
28562
28563         Tests for module 'unistr/u32-strcpy'.
28564         * modules/unistr/u32-strcpy-tests: New file.
28565         * tests/unistr/test-u32-strcpy.c: New file.
28566
28567         Tests for module 'unistr/u16-strcpy'.
28568         * modules/unistr/u16-strcpy-tests: New file.
28569         * tests/unistr/test-u16-strcpy.c: New file.
28570
28571         Tests for module 'unistr/u8-strcpy'.
28572         * modules/unistr/u8-strcpy-tests: New file.
28573         * tests/unistr/test-u8-strcpy.c: New file.
28574         * tests/unistr/test-strcpy.h: New file.
28575
28576         Tests for module 'unistr/u32-strnlen'.
28577         * modules/unistr/u32-strnlen-tests: New file.
28578         * tests/unistr/test-u32-strnlen.c: New file.
28579
28580         Tests for module 'unistr/u16-strnlen'.
28581         * modules/unistr/u16-strnlen-tests: New file.
28582         * tests/unistr/test-u16-strnlen.c: New file.
28583
28584         Tests for module 'unistr/u8-strnlen'.
28585         * modules/unistr/u8-strnlen-tests: New file.
28586         * tests/unistr/test-u8-strnlen.c: New file.
28587         * tests/unistr/test-strnlen.h: New file.
28588
28589         Tests for module 'unistr/u32-strlen'.
28590         * modules/unistr/u32-strlen-tests: New file.
28591         * tests/unistr/test-u32-strlen.c: New file.
28592
28593         Tests for module 'unistr/u16-strlen'.
28594         * modules/unistr/u16-strlen-tests: New file.
28595         * tests/unistr/test-u16-strlen.c: New file.
28596
28597         Tests for module 'unistr/u8-strlen'.
28598         * modules/unistr/u8-strlen-tests: New file.
28599         * tests/unistr/test-u8-strlen.c: New file.
28600
28601         Tests for module 'unistr/u32-prev'.
28602         * modules/unistr/u32-prev-tests: New file.
28603         * tests/unistr/test-u32-prev.c: New file.
28604
28605         Tests for module 'unistr/u16-prev'.
28606         * modules/unistr/u16-prev-tests: New file.
28607         * tests/unistr/test-u16-prev.c: New file.
28608
28609         Tests for module 'unistr/u8-prev'.
28610         * modules/unistr/u8-prev-tests: New file.
28611         * tests/unistr/test-u8-prev.c: New file.
28612
28613         Tests for module 'unistr/u32-next'.
28614         * modules/unistr/u32-next-tests: New file.
28615         * tests/unistr/test-u32-next.c: New file.
28616
28617         Tests for module 'unistr/u16-next'.
28618         * modules/unistr/u16-next-tests: New file.
28619         * tests/unistr/test-u16-next.c: New file.
28620
28621         Tests for module 'unistr/u8-next'.
28622         * modules/unistr/u8-next-tests: New file.
28623         * tests/unistr/test-u8-next.c: New file.
28624
28625         Tests for module 'unistr/u32-strmbtouc'.
28626         * modules/unistr/u32-strmbtouc-tests: New file.
28627         * tests/unistr/test-u32-strmbtouc.c: New file.
28628
28629         Tests for module 'unistr/u16-strmbtouc'.
28630         * modules/unistr/u16-strmbtouc-tests: New file.
28631         * tests/unistr/test-u16-strmbtouc.c: New file.
28632
28633         Tests for module 'unistr/u8-strmbtouc'.
28634         * modules/unistr/u8-strmbtouc-tests: New file.
28635         * tests/unistr/test-u8-strmbtouc.c: New file.
28636
28637         Tests for module 'unistr/u32-strmblen'.
28638         * modules/unistr/u32-strmblen-tests: New file.
28639         * tests/unistr/test-u32-strmblen.c: New file.
28640
28641         Tests for module 'unistr/u16-strmblen'.
28642         * modules/unistr/u16-strmblen-tests: New file.
28643         * tests/unistr/test-u16-strmblen.c: New file.
28644
28645         Tests for module 'unistr/u8-strmblen'.
28646         * modules/unistr/u8-strmblen-tests: New file.
28647         * tests/unistr/test-u8-strmblen.c: New file.
28648
28649         Tests for module 'unistr/u32-cpy-alloc'.
28650         * modules/unistr/u32-cpy-alloc-tests: New file.
28651         * tests/unistr/test-u32-cpy-alloc.c: New file.
28652
28653         Tests for module 'unistr/u16-cpy-alloc'.
28654         * modules/unistr/u16-cpy-alloc-tests: New file.
28655         * tests/unistr/test-u16-cpy-alloc.c: New file.
28656
28657         Tests for module 'unistr/u8-cpy-alloc'.
28658         * modules/unistr/u8-cpy-alloc-tests: New file.
28659         * tests/unistr/test-u8-cpy-alloc.c: New file.
28660         * tests/unistr/test-cpy-alloc.h: New file.
28661
28662         Tests for module 'unistr/u32-mbsnlen'.
28663         * modules/unistr/u32-mbsnlen-tests: New file.
28664         * tests/unistr/test-u32-mbsnlen.c: New file.
28665
28666         Tests for module 'unistr/u16-mbsnlen'.
28667         * modules/unistr/u16-mbsnlen-tests: New file.
28668         * tests/unistr/test-u16-mbsnlen.c: New file.
28669
28670         Tests for module 'unistr/u8-mbsnlen'.
28671         * modules/unistr/u8-mbsnlen-tests: New file.
28672         * tests/unistr/test-u8-mbsnlen.c: New file.
28673
28674         Tests for module 'unistr/u32-chr'.
28675         * modules/unistr/u32-chr-tests: New file.
28676         * tests/unistr/test-u32-chr.c: New file.
28677
28678         Tests for module 'unistr/u16-chr'.
28679         * modules/unistr/u16-chr-tests: New file.
28680         * tests/unistr/test-u16-chr.c: New file.
28681
28682         Tests for module 'unistr/u8-chr'.
28683         * modules/unistr/u8-chr-tests: New file.
28684         * tests/unistr/test-u8-chr.c: New file.
28685         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28686
28687         Tests for module 'unistr/u32-cmp2'.
28688         * modules/unistr/u32-cmp2-tests: New file.
28689         * tests/unistr/test-u32-cmp2.c: New file.
28690
28691         Tests for module 'unistr/u16-cmp2'.
28692         * modules/unistr/u16-cmp2-tests: New file.
28693         * tests/unistr/test-u16-cmp2.c: New file.
28694
28695         Tests for module 'unistr/u8-cmp2'.
28696         * modules/unistr/u8-cmp2-tests: New file.
28697         * tests/unistr/test-u8-cmp2.c: New file.
28698         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28699
28700         Tests for module 'unistr/u32-cmp'.
28701         * modules/unistr/u32-cmp-tests: New file.
28702         * tests/unistr/test-u32-cmp.c: New file.
28703
28704         Tests for module 'unistr/u16-cmp'.
28705         * modules/unistr/u16-cmp-tests: New file.
28706         * tests/unistr/test-u16-cmp.c: New file.
28707
28708         Tests for module 'unistr/u8-cmp'.
28709         * modules/unistr/u8-cmp-tests: New file.
28710         * tests/unistr/test-u8-cmp.c: New file.
28711         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28712
28713         Tests for module 'unistr/u32-set'.
28714         * modules/unistr/u32-set-tests: New file.
28715         * tests/unistr/test-u32-set.c: New file.
28716
28717         Tests for module 'unistr/u16-set'.
28718         * modules/unistr/u16-set-tests: New file.
28719         * tests/unistr/test-u16-set.c: New file.
28720
28721         Tests for module 'unistr/u8-set'.
28722         * modules/unistr/u8-set-tests: New file.
28723         * tests/unistr/test-u8-set.c: New file.
28724         * tests/unistr/test-set.h: New file.
28725
28726         Tests for module 'unistr/u32-move'.
28727         * modules/unistr/u32-move-tests: New file.
28728         * tests/unistr/test-u32-move.c: New file.
28729
28730         Tests for module 'unistr/u16-move'.
28731         * modules/unistr/u16-move-tests: New file.
28732         * tests/unistr/test-u16-move.c: New file.
28733
28734         Tests for module 'unistr/u8-move'.
28735         * modules/unistr/u8-move-tests: New file.
28736         * tests/unistr/test-u8-move.c: New file.
28737         * tests/unistr/test-move.h: New file.
28738
28739         Tests for module 'unistr/u32-cpy'.
28740         * modules/unistr/u32-cpy-tests: New file.
28741         * tests/unistr/test-u32-cpy.c: New file.
28742
28743         Tests for module 'unistr/u16-cpy'.
28744         * modules/unistr/u16-cpy-tests: New file.
28745         * tests/unistr/test-u16-cpy.c: New file.
28746
28747         Tests for module 'unistr/u8-cpy'.
28748         * modules/unistr/u8-cpy-tests: New file.
28749         * tests/unistr/test-u8-cpy.c: New file.
28750         * tests/unistr/test-cpy.h: New file.
28751
28752 2010-01-09  Bruno Haible  <bruno@clisp.org>
28753
28754         Tests for module 'unistr/u32-uctomb'.
28755         * modules/unistr/u32-uctomb-tests: New file.
28756         * tests/unistr/test-u32-uctomb.c: New file.
28757
28758         Tests for module 'unistr/u16-uctomb'.
28759         * modules/unistr/u16-uctomb-tests: New file.
28760         * tests/unistr/test-u16-uctomb.c: New file.
28761
28762         Tests for module 'unistr/u8-uctomb'.
28763         * modules/unistr/u8-uctomb-tests: New file.
28764         * tests/unistr/test-u8-uctomb.c: New file.
28765
28766         Tests for module 'unistr/u32-mbtoucr'.
28767         * modules/unistr/u32-mbtoucr-tests: New file.
28768         * tests/unistr/test-u32-mbtoucr.c: New file.
28769
28770         Tests for module 'unistr/u16-mbtoucr'.
28771         * modules/unistr/u16-mbtoucr-tests: New file.
28772         * tests/unistr/test-u16-mbtoucr.c: New file.
28773
28774         Tests for module 'unistr/u8-mbtoucr'.
28775         * modules/unistr/u8-mbtoucr-tests: New file.
28776         * tests/unistr/test-u8-mbtoucr.c: New file.
28777
28778         Tests for module 'unistr/u32-mbtouc'.
28779         * modules/unistr/u32-mbtouc-tests: New file.
28780         * tests/unistr/test-u32-mbtouc.c: New file.
28781
28782         Tests for module 'unistr/u16-mbtouc'.
28783         * modules/unistr/u16-mbtouc-tests: New file.
28784         * tests/unistr/test-u16-mbtouc.c: New file.
28785
28786         Tests for module 'unistr/u8-mbtouc'.
28787         * modules/unistr/u8-mbtouc-tests: New file.
28788         * tests/unistr/test-u8-mbtouc.c: New file.
28789
28790         Tests for module 'unistr/u32-mbtouc-unsafe'.
28791         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28792         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28793         * tests/unistr/test-u32-mbtouc.h: New file.
28794
28795         Tests for module 'unistr/u16-mbtouc-unsafe'.
28796         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28797         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28798         * tests/unistr/test-u16-mbtouc.h: New file.
28799
28800         Tests for module 'unistr/u8-mbtouc-unsafe'.
28801         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28802         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28803         * tests/unistr/test-u8-mbtouc.h: New file.
28804
28805         Tests for module 'unistr/u32-mblen'.
28806         * modules/unistr/u32-mblen-tests: New file.
28807         * tests/unistr/test-u32-mblen.c: New file.
28808
28809         Tests for module 'unistr/u16-mblen'.
28810         * modules/unistr/u16-mblen-tests: New file.
28811         * tests/unistr/test-u16-mblen.c: New file.
28812
28813         Tests for module 'unistr/u8-mblen'.
28814         * modules/unistr/u8-mblen-tests: New file.
28815         * tests/unistr/test-u8-mblen.c: New file.
28816
28817         Tests for module 'unistr/u32-to-u16'.
28818         * modules/unistr/u32-to-u16-tests: New file.
28819         * tests/unistr/test-u32-to-u16.c: New file.
28820
28821         Tests for module 'unistr/u32-to-u8'.
28822         * modules/unistr/u32-to-u8-tests: New file.
28823         * tests/unistr/test-u32-to-u8.c: New file.
28824
28825         Tests for module 'unistr/u16-to-u32'.
28826         * modules/unistr/u16-to-u32-tests: New file.
28827         * tests/unistr/test-u16-to-u32.c: New file.
28828
28829         Tests for module 'unistr/u16-to-u8'.
28830         * modules/unistr/u16-to-u8-tests: New file.
28831         * tests/unistr/test-u16-to-u8.c: New file.
28832
28833         Tests for module 'unistr/u8-to-u32'.
28834         * modules/unistr/u8-to-u32-tests: New file.
28835         * tests/unistr/test-u8-to-u32.c: New file.
28836
28837         Tests for module 'unistr/u8-to-u16'.
28838         * modules/unistr/u8-to-u16-tests: New file.
28839         * tests/unistr/test-u8-to-u16.c: New file.
28840
28841         Tests for module 'unistr/u32-check'.
28842         * modules/unistr/u32-check-tests: New file.
28843         * tests/unistr/test-u32-check.c: New file.
28844
28845         Tests for module 'unistr/u16-check'.
28846         * modules/unistr/u16-check-tests: New file.
28847         * tests/unistr/test-u16-check.c: New file.
28848
28849         Tests for module 'unistr/u8-check'.
28850         * modules/unistr/u8-check-tests: New file.
28851         * tests/unistr/test-u8-check.c: New file.
28852
28853         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28854         (category_equals): New function.
28855         (main): Add more tests.
28856         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28857
28858         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28859
28860 2010-01-10  Bruno Haible  <bruno@clisp.org>
28861
28862         unistr/u*-strcoll: Try harder to distinguish different strings.
28863         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28864         compare s1 and s2 to see if they are different.
28865
28866 2010-01-10  Bruno Haible  <bruno@clisp.org>
28867
28868         unistr/u*-stpncpy: Fix the return value.
28869         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28870         description of the return value consistent with stpncpy in glibc.
28871         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28872         written non-NUL unit.
28873
28874 2010-01-10  Bruno Haible  <bruno@clisp.org>
28875
28876         unistr/u*-next: Add missing dependencies.
28877         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28878         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28879         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28880
28881 2010-01-10  Bruno Haible  <bruno@clisp.org>
28882
28883         unistr/u8-mbsnlen: Fix return value for incomplete character.
28884         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28885         u8_mblen.
28886         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28887         Remove unistr/u8-mblen.
28888         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28889         u16_mblen.
28890         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28891         Remove unistr/u16-mblen.
28892
28893 2010-01-10  Bruno Haible  <bruno@clisp.org>
28894
28895         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28896         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28897         Reported by Brian Gough <bjg@gnu.org> and
28898         Chris Clayton <chris2553@googlemail.com> via
28899         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28900
28901 2010-01-09  Bruno Haible  <bruno@clisp.org>
28902
28903         unistr/u16-to-u32: Reject invalid input.
28904         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28905         u16_mbtouc.
28906         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28907         Remove unistr/u16-mbtouc.
28908
28909         unistr/u16-to-u8: Reject invalid input.
28910         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28911         u16_mbtouc.
28912         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28913         Remove unistr/u16-mbtouc.
28914
28915         unistr/u8-to-u32: Reject invalid input.
28916         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28917         u8_mbtouc.
28918         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28919         Remove unistr/u8-mbtouc.
28920
28921         unistr/u8-to-u16: Reject invalid input.
28922         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28923         u8_mbtouc.
28924         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28925         Remove unistr/u8-mbtouc.
28926
28927 2010-01-09  Bruno Haible  <bruno@clisp.org>
28928
28929         Tests for module 'getlogin'.
28930         * modules/getlogin-tests: New file.
28931         * tests/test-getlogin.c: New file.
28932
28933         New module 'getlogin'.
28934         * lib/unistd.in.h (getlogin): New declaration.
28935         * lib/getlogin.c: New file.
28936         * m4/getlogin.m4: New file.
28937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28938         HAVE_GETLOGIN.
28939         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28940         HAVE_GETLOGIN.
28941         * modules/getlogin: New file.
28942         * doc/posix-functions/getlogin.texi: Mention the new module.
28943         Reported by John W. Eaton <jwe@gnu.org>.
28944
28945 2010-01-09  Bruno Haible  <bruno@clisp.org>
28946
28947         getlogin_r: Support for native Windows.
28948         * lib/getlogin_r.c: Include <windows.h>
28949         (getlogin_r): Implement for native Windows.
28950         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28951         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28952         via John W. Eaton <jwe@gnu.org>.
28953
28954 2010-01-09  Bruno Haible  <bruno@clisp.org>
28955
28956         getlogin_r: Small fixes.
28957         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28958         succeeds.
28959         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28960         before testing whether getlogin_r is declared. No need to set
28961         HAVE_DECL_GETLOGIN_R to 1.
28962         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28963
28964 2010-01-09  Bruno Haible  <bruno@clisp.org>
28965
28966         * lib/unistd.in.h (getlogin_r): Add comment.
28967
28968 2010-01-09  Bruno Haible  <bruno@clisp.org>
28969
28970         Tests for module 'getlogin_r'.
28971         * modules/getlogin_r-tests: New file.
28972         * tests/test-getlogin_r.c: New file.
28973
28974 2010-01-09  Jim Meyering  <meyering@redhat.com>
28975
28976         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28977         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28978         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28979
28980 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28981
28982         * lib/dup2.c (rpl_dup2): Improve comment.
28983
28984 2010-01-08  Eric Blake  <ebb9@byu.net>
28985
28986         maint.mk: allow packages to add makefile @@ exceptions
28987         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28988         (sc_makefile_check): Rename...
28989         (sc_makefile_at_at_check): ...to this, and use hook.
28990
28991         dup2: work around mingw bug
28992         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28993         Reported by Simon Josefsson.
28994
28995 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28996
28997         glob: Fix C++ compilation.
28998         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28999         C++.
29000
29001 2010-01-07  Bruno Haible  <bruno@clisp.org>
29002
29003         Fix indentation of wctype.in.h, broken since 2007-01-06.
29004         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29005
29006 2010-01-07  Bruno Haible  <bruno@clisp.org>
29007
29008         mbslen: Avoid collision with system function.
29009         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29010         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29011         * m4/mbslen.m4: New file.
29012         * modules/mbslen (Files): Add it.
29013         (configure.ac): Invoke gl_MBSLEN.
29014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29015         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29016         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29017         via Ian Beckwith <ianb@erislabs.net>.
29018
29019 2010-01-07  Bruno Haible  <bruno@clisp.org>
29020
29021         dirent: Document the last fix.
29022         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29023
29024 2010-01-07  Bruno Haible  <bruno@clisp.org>
29025
29026         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29027         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29028         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29029         va_list are defined.
29030         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29031         Reported by Eric Blake.
29032
29033 2010-01-07  Bruno Haible  <bruno@clisp.org>
29034
29035         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29036         * modules/xlist (Depends-on): Add 'list',
29037         * modules/xoset (Depends-on): Add 'oset'.
29038         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29039
29040 2010-01-07  Bruno Haible  <bruno@clisp.org>
29041
29042         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29043         * doc/posix-functions/strncasecmp.texi: Likewise.
29044
29045 2010-01-07  Bruno Haible  <bruno@clisp.org>
29046
29047         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29048
29049 2010-01-07  John W. Eaton  <jwe@octave.org>
29050
29051         wctype: allow C++ use
29052         * lib/wctype.in.h: Add extern "C" block for C++.
29053
29054 2010-01-06  Eric Blake  <ebb9@byu.net>
29055
29056         maint.mk: detect incorrect GFDL usage
29057         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29058
29059 2010-01-06  Jim Meyering  <meyering@redhat.com>
29060         and Eric Blake  <ebb9@byu.net>
29061
29062         maint.mk: ignore multi-line copyright in NEWS
29063         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29064
29065 2010-01-06  Eric Blake  <ebb9@byu.net>
29066
29067         select: add missing dependency
29068         * modules/select-tests (Depends-on): Move sockets dependency...
29069         * modules/select (Depends-on): ...here.
29070         Reported by Ian Beckwith.
29071
29072         doc: regenerate INSTALL
29073         * doc/INSTALL: Reflect recent autoconf update.
29074         * doc/INSTALL.ISO: Likewise.
29075         * doc/INSTALL.UTF-8: Likewise.
29076
29077         pread: fix compilation on glibc
29078         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29079         Reported by Ralf Wildenhues.
29080
29081         dirent: fix test failure
29082         * lib/dirent.in.h (includes): Guarantee ino_t.
29083         Reported by Ralf Wildenhues.
29084
29085 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29086
29087         linkat, renameat: avoid bad free
29088         * lib/at-func2.c (at_func2): Fix typo.
29089         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29090
29091 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29092
29093         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29094         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29095         to avoid failure of symlink test later.
29096
29097 2010-01-06  Eric Blake  <ebb9@byu.net>
29098
29099         stdio, unistd: guarantee ssize_t
29100         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29101         2008 are exposed when needed.
29102         * lib/stdio.in.h (includes): Likewise.
29103         Reported by Ralf Wildenhues.
29104
29105 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29106
29107         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29108         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29109         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29110
29111 2010-01-06  Jim Meyering  <meyering@redhat.com>
29112
29113         readtokens: this module *does* require xalloc.h
29114         It uses only functions that were omitted by the old syntax-check rule.
29115         * lib/readtokens.c: Include "xalloc.h" once again.
29116         * modules/readtokens (Depends-on): Add xalloc.
29117         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29118
29119 2010-01-05  Eric Blake  <ebb9@byu.net>
29120
29121         maint: support 'make announcement' from a VPATH build
29122         * top/maint.mk (announcement): Look for correct NEWS file.
29123
29124 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29125
29126         utimens (fdutimens): ignore a negative FD, per contract
29127         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29128         when we have a valid file descriptor.  Otherwise, using a brand
29129         new glibc (with just-patched futimens that now fails with EBADF)
29130         would cause this function to fail with ENOSYS.
29131         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29132         See also http://bugzilla.redhat.com/552320.
29133
29134 2010-01-05  Eric Blake  <ebb9@byu.net>
29135
29136         strcase: document what it provides
29137         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29138         gnulib module.
29139         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29140         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29141
29142 2010-01-05  Jim Meyering  <meyering@redhat.com>
29143
29144         maint: remove useless inclusions of "xalloc.h"
29145         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29146         * lib/readtokens.c: Likewise.
29147         * lib/same.c: Likewise.
29148         * modules/getloadavg (Depends-on): Remove xalloc.
29149         * modules/readtokens: Likewise.
29150         * modules/same: Likewise.
29151
29152         maint.mk: include 4 more function names in alloca.h-checking regexp
29153         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29154         regexp.  Before, we would give a false-positive (saying alloca.h
29155         is included unnecessarily) when the only uses involved omitted symbols.
29156
29157         xalloc.h: use consistent formatting
29158         * lib/xalloc.h: Move declarations to start in the first column.
29159
29160 2010-01-05  Eric Blake  <ebb9@byu.net>
29161
29162         mkdir: avoid xalloc
29163         * lib/mkdir.c (includes): Drop unused header.
29164         Reported by John W. Eaton.
29165
29166 2010-01-04  Jim Meyering  <meyering@redhat.com>
29167
29168         nl_langinfo: avoid configure-time syntax error
29169         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29170         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29171         the empty string.  Don't let that provoke a shell syntax error.
29172
29173         regcomp, regexec, fnmatch: avoid array bounds read error
29174         * lib/regcomp.c (build_equiv_class): From glibc:
29175         Use only the low 24 bits of a findidx return value as an index
29176         into the weights array.  Patch by Ulrich Drepper:
29177         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29178         * lib/regexec.c (check_node_accept_bytes): Likewise.
29179         * lib/fnmatch_loop.c (FCT): Likewise.
29180
29181         regcomp: skip collseq lookup when there are no rules
29182         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29183         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29184
29185         regcomp: recognize ill-formed { } expressions
29186         * lib/regcomp.c (parse_dup_op): From glibc:
29187         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29188
29189         regcomp: fix typo in comment
29190         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29191         s/satisfy/satisfies/.
29192
29193         regcomp: sync from glibc: remove dead store
29194         * lib/regcomp.c (duplicate_node_closure): Remove useless
29195         search_duplicated_node call and dead store.
29196
29197         regcomp: sync from glibc; always use nl_langinfo
29198         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29199         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29200         * modules/regex (Depends-on): Add nl_langinfo.
29201
29202 2010-01-04  Eric Blake  <ebb9@byu.net>
29203
29204         fdopendir: fix configure test
29205         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29206
29207 2010-01-01  Bruno Haible  <bruno@clisp.org>
29208
29209         wchar: Remove unused configure check.
29210         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29211
29212 2010-01-01  Eric Blake  <ebb9@byu.net>
29213
29214         headers: make check of system header explicit
29215         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29216         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29217         ourselves.
29218         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29219         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29220         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29221         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29222         internals.
29223         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29224         missing.
29225         Suggested by Bruno Haible.
29226
29227 2010-01-01  Jim Meyering  <meyering@redhat.com>
29228
29229         ChangeLog: tweak to eliminate unnecessary copyright line
29230         * ChangeLog: Remove a copyright line that was mistakenly updated
29231         by today's update-copyright run.  Reported by Eric Blake.
29232
29233         test-update-copyright: don't let envvar setting cause test failure
29234         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29235
29236 2010-01-01  Bruno Haible  <bruno@clisp.org>
29237
29238         localename: Avoid gcc warning.
29239         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29240         function if it is not used.
29241
29242 2010-01-01  Jim Meyering  <meyering@redhat.com>
29243
29244         update nearly all FSF copyright year lists to include 2010
29245         Use the same procedure as for 2009, outlined in
29246         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29247
29248         version-etc: set COPYRIGHT_YEAR to 2010
29249         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29250
29251 2009-12-31  Eric Blake  <ebb9@byu.net>
29252
29253         doc: correct availability of cygwin 1.5.x getopt
29254         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29255         variables.
29256         * doc/posix-functions/opterr.texi (opterr): Likewise.
29257         * doc/posix-functions/optind.texi (optind): Likewise.
29258         * doc/posix-functions/optopt.texi (optopt): Likewise.
29259         * doc/posix-functions/tzname.texi (tzname): Likewise.
29260
29261         openat: update maintainer
29262         * modules/openat (Maintainer): Add myself.
29263
29264         utimens: avoid shadowing warning
29265         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29266         buffers into one, to avoid shadowing, as well as avoiding a
29267         redundant stat.
29268         Reported by Jim Meyering.
29269
29270         test-dup2: avoid compiler warning
29271         * tests/test-dup2.c (is_inheritable): Only define if used.
29272
29273 2010-01-01  Bruno Haible  <bruno@clisp.org>
29274
29275         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29276         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29277         defined, use wctomb instead of wcrtomb.
29278
29279 2010-01-01  Bruno Haible  <bruno@clisp.org>
29280
29281         iconv: Reject native Solaris iconv.
29282         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29283         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29284
29285 2009-12-31  Bruno Haible  <bruno@clisp.org>
29286
29287         * tests/test-signal.c (main): Remove test of 'SIG'.
29288
29289 2009-12-31  Bruno Haible  <bruno@clisp.org>
29290
29291         spawn: Fix incomplete fix.
29292         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29293         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29294         warnings for GNULIB_POSIXCHECK again.
29295         Reported by Eric Blake.
29296
29297 2009-12-31  Bruno Haible  <bruno@clisp.org>
29298
29299         Avoid namespace pollution on glibc systems.
29300         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29301         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29302         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29303         glibc systems.
29304
29305 2009-12-31  Bruno Haible  <bruno@clisp.org>
29306
29307         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29308         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29309         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29310         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29311         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29312         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29313         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29314
29315 2009-12-31  Bruno Haible  <bruno@clisp.org>
29316
29317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29318         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29319         afterwards.
29320
29321 2009-12-31  Bruno Haible  <bruno@clisp.org>
29322
29323         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29324         SYS_UTSNAME_H.
29325
29326 2009-12-31  Bruno Haible  <bruno@clisp.org>
29327
29328         spawn: Fix misapplied patch.
29329         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29330         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29331         warnings for GNULIB_POSIXCHECK.
29332
29333 2009-12-31  Bruno Haible  <bruno@clisp.org>
29334
29335         times: Update after sys_times changed.
29336         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29337         * modules/times (Files): Add it.
29338         (configure.ac): Invoke gl_FUNC_TIMES.
29339
29340 2009-12-31  Bruno Haible  <bruno@clisp.org>
29341
29342         Use AC_C_INLINE where necessary.
29343         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29344         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29345         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29346         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29347         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29348         * m4/mbiter.m4 (gl_MBITER): Likewise.
29349         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29350         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29351         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29352         * modules/u64 (configure.ac): Likewise.
29353
29354 2009-12-31  Bruno Haible  <bruno@clisp.org>
29355
29356         Use AC_C_INLINE instead of module 'inline' where possible.
29357         * modules/inline (Description): Clarify purpose.
29358         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29359         * modules/count-one-bits (Depends-on): Remove inline.
29360         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29361         * modules/openat (Depends-on): Remove inline.
29362         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29363         instead of depending on module 'inline'.
29364         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29365         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29366         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29367         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29368         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29369         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29370         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29371         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29372         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29373         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29374         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29375         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29376         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29377         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29378         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29379         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29380         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29381         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29382         Likewise.
29383         * modules/unictype/property-ascii-hex-digit (Depends-on,
29384         configure.ac): Likewise.
29385         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29386         configure.ac): Likewise.
29387         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29388         configure.ac): Likewise.
29389         * modules/unictype/property-bidi-block-separator (Depends-on,
29390         configure.ac): Likewise.
29391         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29392         configure.ac): Likewise.
29393         * modules/unictype/property-bidi-common-separator (Depends-on,
29394         configure.ac): Likewise.
29395         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29396         Likewise.
29397         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29398         configure.ac): Likewise.
29399         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29400         configure.ac): Likewise.
29401         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29402         configure.ac): Likewise.
29403         * modules/unictype/property-bidi-european-digit (Depends-on,
29404         configure.ac): Likewise.
29405         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29406         configure.ac): Likewise.
29407         * modules/unictype/property-bidi-left-to-right (Depends-on,
29408         configure.ac): Likewise.
29409         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29410         configure.ac): Likewise.
29411         * modules/unictype/property-bidi-other-neutral (Depends-on,
29412         configure.ac): Likewise.
29413         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29414         Likewise.
29415         * modules/unictype/property-bidi-segment-separator (Depends-on,
29416         configure.ac): Likewise.
29417         * modules/unictype/property-bidi-whitespace (Depends-on,
29418         configure.ac): Likewise.
29419         * modules/unictype/property-combining (Depends-on, configure.ac):
29420         Likewise.
29421         * modules/unictype/property-composite (Depends-on, configure.ac):
29422         Likewise.
29423         * modules/unictype/property-currency-symbol (Depends-on,
29424         configure.ac): Likewise.
29425         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29426         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29427         Likewise.
29428         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29429         configure.ac): Likewise.
29430         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29431         Likewise.
29432         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29433         Likewise.
29434         * modules/unictype/property-extender (Depends-on, configure.ac):
29435         Likewise.
29436         * modules/unictype/property-format-control (Depends-on, configure.ac):
29437         Likewise.
29438         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29439         Likewise.
29440         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29441         Likewise.
29442         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29443         Likewise.
29444         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29445         Likewise.
29446         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29447         Likewise.
29448         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29449         Likewise.
29450         * modules/unictype/property-id-start (Depends-on, configure.ac):
29451         Likewise.
29452         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29453         Likewise.
29454         * modules/unictype/property-ids-binary-operator (Depends-on,
29455         configure.ac): Likewise.
29456         * modules/unictype/property-ids-trinary-operator (Depends-on,
29457         configure.ac): Likewise.
29458         * modules/unictype/property-ignorable-control (Depends-on,
29459         configure.ac): Likewise.
29460         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29461         Likewise.
29462         * modules/unictype/property-join-control (Depends-on, configure.ac):
29463         Likewise.
29464         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29465         Likewise.
29466         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29467         Likewise.
29468         * modules/unictype/property-logical-order-exception (Depends-on,
29469         configure.ac): Likewise.
29470         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29471         Likewise.
29472         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29473         * modules/unictype/property-non-break (Depends-on, configure.ac):
29474         Likewise.
29475         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29476         Likewise.
29477         * modules/unictype/property-numeric (Depends-on, configure.ac):
29478         Likewise.
29479         * modules/unictype/property-other-alphabetic (Depends-on,
29480         configure.ac): Likewise.
29481         * modules/unictype/property-other-default-ignorable-code-point
29482         (Depends-on, configure.ac): Likewise.
29483         * modules/unictype/property-other-grapheme-extend (Depends-on,
29484         configure.ac): Likewise.
29485         * modules/unictype/property-other-id-continue (Depends-on,
29486         configure.ac): Likewise.
29487         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29488         Likewise.
29489         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29490         Likewise.
29491         * modules/unictype/property-other-math (Depends-on, configure.ac):
29492         Likewise.
29493         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29494         Likewise.
29495         * modules/unictype/property-paired-punctuation (Depends-on,
29496         configure.ac): Likewise.
29497         * modules/unictype/property-paragraph-separator (Depends-on,
29498         configure.ac): Likewise.
29499         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29500         Likewise.
29501         * modules/unictype/property-pattern-white-space (Depends-on,
29502         configure.ac): Likewise.
29503         * modules/unictype/property-private-use (Depends-on, configure.ac):
29504         Likewise.
29505         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29506         Likewise.
29507         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29508         Likewise.
29509         * modules/unictype/property-radical (Depends-on, configure.ac):
29510         Likewise.
29511         * modules/unictype/property-sentence-terminal (Depends-on,
29512         configure.ac): Likewise.
29513         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29514         Likewise.
29515         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29516         * modules/unictype/property-terminal-punctuation (Depends-on,
29517         configure.ac): Likewise.
29518         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29519         Likewise.
29520         * modules/unictype/property-unassigned-code-value (Depends-on,
29521         configure.ac): Likewise.
29522         * modules/unictype/property-unified-ideograph (Depends-on,
29523         configure.ac): Likewise.
29524         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29525         Likewise.
29526         * modules/unictype/property-variation-selector (Depends-on,
29527         configure.ac): Likewise.
29528         * modules/unictype/property-white-space (Depends-on, configure.ac):
29529         Likewise.
29530         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29531         Likewise.
29532         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29533         Likewise.
29534         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29535         Likewise.
29536         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29537         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29538         Likewise.
29539
29540 2009-12-31  Bruno Haible  <bruno@clisp.org>
29541
29542         Remove unnecessary AC_C_INLINE invocation.
29543         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29544         since 2009-08-21.
29545
29546 2009-12-31  Jim Meyering  <meyering@redhat.com>
29547
29548         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29549         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29550         With this change, we can all remove the gpg_key_ID = ... definition
29551         from our respective cfg.mk files.
29552
29553         maint.mk: create announcement template in ~/, not in /tmp
29554         * top/maint.mk (emit_upload_commands): Adjust.
29555         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29556         Remove temporary file, .ci-msg.
29557
29558 2009-12-31  Eric Blake  <ebb9@byu.net>
29559
29560         link-warning: always build headers with link warnings
29561         * modules/arpa_inet (Makefile.am): Always build replacement
29562         header.
29563         * modules/ctype (Makefile.am): Likewise.
29564         * modules/dirent (Makefile.am): Likewise.
29565         * modules/inttypes (Makefile.am): Likewise.
29566         * modules/langinfo (Makefile.am): Likewise.
29567         * modules/locale (Makefile.am): Likewise.
29568         * modules/spawn (Makefile.am): Likewise.
29569         * modules/sys_file (Makefile.am): Likewise.
29570         * modules/sys_ioctl (Makefile.am): Likewise.
29571         * modules/sys_select (Makefile.am): Likewise.
29572         * modules/sys_socket (Makefile.am): Likewise.
29573         * modules/sys_times (Makefile.am): Likewise.
29574         * modules/sys_utsname (Makefile.am): Likewise.
29575         * modules/sys_wait (Makefile.am): Likewise.
29576         * modules/wchar (Makefile.am): Likewise.
29577         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29578         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29579         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29580         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29581         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29582         Likewise.
29583         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29584         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29585         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29586         Likewise.
29587         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29588         Likewise.
29589         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29590         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29591         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29592         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29593         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29594         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29595         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29596         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29597         (gl_WCHAR_H_DEFAULTS): Likewise.
29598
29599 2009-12-31  Eric Blake  <ebb9@byu.net>
29600
29601         signal, spawn: use link warnings
29602         * lib/signal.in.h (sigset_t): Make unconditional.
29603         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29604         (sigpending, sigprocmask, sigaction): Add link warnings.
29605         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29606         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29607         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29608         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29609         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29610         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29611         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29612         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29613         (posix_spawn_file_actions_destroy)
29614         (posix_spawn_file_actions_addopen)
29615         (posix_spawn_file_actions_addclose)
29616         (posix_spawn_file_actions_adddup2): Likewise.
29617         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29618         * tests/test-signal.c (main): Enhance test.
29619
29620         spawn: improve wrapper support
29621         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29622         (gl_SPAWN_H_DEFAULTS): New defaults.
29623         * modules/spawn (Makefile.am): Substitute them.
29624         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29625         Only declare if missing or broken.
29626
29627         sys_times, sys_utsname: use include_next
29628         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29629         header.
29630         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29631         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29632         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29633         * modules/sys_times (Depends-on): Add include_next.
29634         (Makefile.am): Substitute additional values.
29635         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29636         * lib/sys_times.in.h (includes): Include native header, if
29637         available.
29638         * lib/sys_utsname.in.h (includes): Likewise.
29639         * tests/test-sys_times.c (main): Enhance test.
29640
29641         fdutimensat: revert prior patch
29642         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29643         utimens.h.
29644         Reported by Bruno Haible.
29645
29646 2009-12-30  Eric Blake  <ebb9@byu.net>
29647
29648         sys_wait: drop link-warning dependency
29649         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29650         link-warning efforts.
29651         * lib/sys_wait.in.h: Likewise.
29652
29653         fdutimensat: remove bogus dependency
29654         * modules/fdutimensat (Depends-on): Drop inline.
29655
29656         unistd: fix typo
29657         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29658
29659 2009-12-30  Bruno Haible  <bruno@clisp.org>
29660
29661         Fix compilation error with Solaris cc.
29662         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29663         * lib/unicase/u16-is-invariant.c: Likewise.
29664         * lib/unicase/u32-is-invariant.c: Likewise.
29665         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29666
29667 2009-12-30  Bruno Haible  <bruno@clisp.org>
29668
29669         Fix test crash.
29670         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29671         locales.
29672         Reported by Simon Josefsson <simon@josefsson.org>.
29673
29674 2009-12-30  Bruno Haible  <bruno@clisp.org>
29675
29676         Fix compilation error on most platforms.
29677         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29678         Reported by Simon Josefsson <simon@josefsson.org>
29679         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29680
29681 2009-12-30  Eric Blake  <ebb9@byu.net>
29682
29683         futimens, utimensat: work around ntfs-3g bug
29684         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29685         a ctime bug is present, and expand workaround to cover ntfs-3g.
29686         * lib/utimens.c (fdutimens, lutimens): Likewise.
29687         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29688         (validate_timespec): Adjust return value.
29689         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29690         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29691         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29692
29693 2009-12-29  Eric Blake  <ebb9@byu.net>
29694
29695         link-warning: make usage consistent
29696         * modules/ctype (Depends-on): Add link-warning.
29697         (Makefile.am): Update rules accordingly.
29698         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29699         * modules/locale (Depends-on, Makefile.am): Likewise.
29700         * modules/sys_file (Makefile.am): Likewise.
29701         * modules/getopt-posix (Makefile.am): Delete unused link warning
29702         efforts.
29703         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29704         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29705         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29706         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29707
29708         stdio: remove unused variables
29709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29710         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29711         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29712
29713         tests: test more substitute headers
29714         * modules/ctype-tests: New file.
29715         * modules/dirent-tests: Likewise.
29716         * modules/spawn-tests: Likewise.
29717         * modules/sys_file-tests: Likewise.
29718         * modules/sys_ioctl-tests: Likewise.
29719         * modules/sys_wait-tests: Likewise.
29720         * tests/test-ctype.c: Likewise.
29721         * tests/test-dirent.c: Likewise.
29722         * tests/test-spawn.c: Likewise.
29723         * tests/test-sys_file.c: Likewise.
29724         * tests/test-sys_ioctl.c: Likewise.
29725         * tests/test-sys_wait.c: Likewise.
29726         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29727         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29728         whether or not flock is in use.
29729
29730         tests: remove License section from module
29731         * modules/arpa_inet-tests: Remove unneeded section.
29732         * modules/byteswap-tests: Likewise.
29733         * modules/ceilf-tests: Likewise.
29734         * modules/ceill-tests: Likewise.
29735         * modules/crypto/des-tests: Likewise.
29736         * modules/crypto/gc-arcfour-tests: Likewise.
29737         * modules/crypto/gc-arctwo-tests: Likewise.
29738         * modules/crypto/gc-des-tests: Likewise.
29739         * modules/crypto/gc-hmac-md5-tests: Likewise.
29740         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29741         * modules/crypto/gc-md2-tests: Likewise.
29742         * modules/crypto/gc-md4-tests: Likewise.
29743         * modules/crypto/gc-md5-tests: Likewise.
29744         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29745         * modules/crypto/gc-rijndael-tests: Likewise.
29746         * modules/crypto/gc-sha1-tests: Likewise.
29747         * modules/crypto/gc-tests: Likewise.
29748         * modules/crypto/md2-tests: Likewise.
29749         * modules/crypto/md4-tests: Likewise.
29750         * modules/fcntl-h-tests: Likewise.
29751         * modules/floorf-tests: Likewise.
29752         * modules/floorl-tests: Likewise.
29753         * modules/frexp-nolibm-tests: Likewise.
29754         * modules/frexp-tests: Likewise.
29755         * modules/frexpl-nolibm-tests: Likewise.
29756         * modules/frexpl-tests: Likewise.
29757         * modules/getaddrinfo-tests: Likewise.
29758         * modules/inttypes-tests: Likewise.
29759         * modules/isfinite-tests: Likewise.
29760         * modules/isinf-tests: Likewise.
29761         * modules/ldexpl-tests: Likewise.
29762         * modules/locale-tests: Likewise.
29763         * modules/math-tests: Likewise.
29764         * modules/netdb-tests: Likewise.
29765         * modules/netinet_in-tests: Likewise.
29766         * modules/printf-frexp-tests: Likewise.
29767         * modules/printf-frexpl-tests: Likewise.
29768         * modules/priv-set-tests: Likewise.
29769         * modules/random_r-tests: Likewise.
29770         * modules/round-tests: Likewise.
29771         * modules/roundf-tests: Likewise.
29772         * modules/roundl-tests: Likewise.
29773         * modules/search-tests: Likewise.
29774         * modules/select-tests: Likewise.
29775         * modules/signal-tests: Likewise.
29776         * modules/stdbool-tests: Likewise.
29777         * modules/stddef-tests: Likewise.
29778         * modules/stdint-tests: Likewise.
29779         * modules/stdio-tests: Likewise.
29780         * modules/stdlib-tests: Likewise.
29781         * modules/string-tests: Likewise.
29782         * modules/strings-tests: Likewise.
29783         * modules/sys_select-tests: Likewise.
29784         * modules/sys_socket-tests: Likewise.
29785         * modules/sys_stat-tests: Likewise.
29786         * modules/sys_time-tests: Likewise.
29787         * modules/sys_utsname-tests: Likewise.
29788         * modules/sysexits-tests: Likewise.
29789         * modules/time-tests: Likewise.
29790         * modules/trunc-tests: Likewise.
29791         * modules/truncf-tests: Likewise.
29792         * modules/truncl-tests: Likewise.
29793         * modules/tsearch-tests: Likewise.
29794         * modules/unistd-tests: Likewise.
29795         * modules/wchar-tests: Likewise.
29796         * modules/wctype-tests: Likewise.
29797
29798         tests: fix license on several tests
29799         * tests/test-des.c: Update to GPLv3+.
29800         * tests/test-flock.c: Likewise.
29801         * tests/test-fsync.c: Likewise.
29802         * tests/test-futimens.h: Likewise.
29803         * tests/test-gc-arcfour.c: Likewise.
29804         * tests/test-gc-arctwo.c: Likewise.
29805         * tests/test-gc-des.c: Likewise.
29806         * tests/test-gc-hmac-md5.c: Likewise.
29807         * tests/test-gc-hmac-sha1.c: Likewise.
29808         * tests/test-gc-md2.c: Likewise.
29809         * tests/test-gc-md4.c: Likewise.
29810         * tests/test-gc-md5.c: Likewise.
29811         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29812         * tests/test-gc-rijndael.c: Likewise.
29813         * tests/test-gc-sha1.c: Likewise.
29814         * tests/test-gc.c: Likewise.
29815         * tests/test-getcwd.c: Likewise.
29816         * tests/test-link.c: Likewise.
29817         * tests/test-link.h: Likewise.
29818         * tests/test-lutimens.h: Likewise.
29819         * tests/test-md2.c: Likewise.
29820         * tests/test-md4.c: Likewise.
29821         * tests/test-mkdir.h: Likewise.
29822         * tests/test-rename.c: Likewise.
29823         * tests/test-rename.h: Likewise.
29824         * tests/test-safe-alloc.c: Likewise.
29825         * tests/test-utimens-common.h: Likewise.
29826         * tests/test-utimens.h: Likewise.
29827
29828         maint: sync license texts
29829         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29830         * doc/gpl-3.0.texi: Revert copyright year update.
29831         * doc/lgpl-3.0.texi: Likewise.
29832
29833 2009-12-29  Jim Meyering  <meyering@redhat.com>
29834
29835         update nearly all FSF copyright year lists to include 2009
29836         The files named by the following are exempted:
29837             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29838               test -f "$dst" && { echo "$dst"; continue; }
29839               test -d "$dst" || continue
29840               echo "$dst"/$(basename "$src")
29841             done > exempt
29842             git ls-files tests/unictype >> exempt
29843         In the remaining files, convert to all-interval notation if
29844         - there is already at least one year interval like 2000-2003
29845         - the file is maintained by me
29846         - the file is in lib/uni*/, where that style already prevails
29847         Otherwise, use update-copyright's default.
29848
29849 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29850         and Eric Blake  <ebb9@byu.net>
29851
29852         tests: don't require debug system() to pass
29853         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29854         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29855         * tests/test-unlink.h (test_unlink_func): Likewise.
29856         * tests/test-fstatat.c (main): ...into callers.
29857         * tests/test-lstat.c (main): Likewise.
29858         * tests/test-rmdir.c (main): Likewise.
29859         * tests/test-unlink.c (main): Likewise.
29860         * tests/test-unlinkat.c (main): Likewise.
29861         * tests/test-areadlink-with-size.c (main): Don't require a
29862         debug-only system call to pass, aiding cross-testing to mingw.
29863         * tests/test-areadlink.c (main): Likewise.
29864         * tests/test-areadlinkat-with-size.c (main): Likewise.
29865         * tests/test-areadlinkat.c (main): Likewise.
29866         * tests/test-canonicalize-lgpl.c (main): Likewise.
29867         * tests/test-canonicalize.c (main): Likewise.
29868         * tests/test-chown.c (main): Likewise.
29869         * tests/test-fchownat.c (main): Likewise.
29870         * tests/test-lchown.c (main): Likewise.
29871         * tests/test-fdutimensat.c (main): Likewise.
29872         * tests/test-futimens.c (main): Likewise.
29873         * tests/test-link.c (main): Likewise.
29874         * tests/test-linkat.c (main): Likewise.
29875         * tests/test-mkdir.c (main): Likewise.
29876         * tests/test-mkdirat.c (main): Likewise.
29877         * tests/test-mkfifo.c (main): Likewise.
29878         * tests/test-mkfifoat.c (main): Likewise.
29879         * tests/test-mknod.c (main): Likewise.
29880         * tests/test-readlink.c (main): Likewise.
29881         * tests/test-remove.c (main): Likewise.
29882         * tests/test-rename.c (main): Likewise.
29883         * tests/test-renameat.c (main): Likewise.
29884         * tests/test-symlink.c (main): Likewise.
29885         * tests/test-symlinkat.c (main): Likewise.
29886         * tests/test-utimens.c (main): Likewise.
29887         * tests/test-utimensat.c (main): Likewise.
29888
29889 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29890
29891         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29892         on $(UNUSED_PARAMETER_H) to avoid build failure.
29893
29894 2009-12-28  Jim Meyering  <meyering@redhat.com>
29895
29896         update-copyright: you may specify a max. line length other than 72
29897         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29898
29899         maint: use consistent FSF copyright line syntax
29900         * lib/posixtm.c: Add missing comma in FSF copyright line.
29901         * lib/posixtm.h: Likewise.
29902         * lib/getugroups.c: Add missing ", Inc.".
29903
29904         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29905         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29906         FSF copyright line.  Remove trailing blanks.
29907
29908 2009-12-28  Eric Blake  <ebb9@byu.net>
29909
29910         test-dup2: reduce dependencies
29911         * modules/cloexec (Configure.ac): Set witness.
29912         * modules/dup2-tests (Depends-on): Drop cloexec.
29913         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29914         not present.
29915         Suggested by Bruno Haible.
29916
29917 2009-12-26  Bruno Haible  <bruno@clisp.org>
29918
29919         Remove an unneeded dependency.
29920         * modules/fseterr (Depends-on): Remove dup2.
29921
29922 2009-12-26  Eric Blake  <ebb9@byu.net>
29923
29924         tests: use macros.h in more places
29925         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29926         (ASSERT_STREAM): Provide default of stderr.
29927         * tests/test-dirent-safer.c: Include macros.h, using alternate
29928         stream for assertions.
29929         * tests/test-dup-safer.c: Likewise.
29930         * tests/test-freopen-safer.c: Likewise.
29931         * tests/test-getopt.c: Likewise.
29932         * tests/test-openat-safer.c: Likewise.
29933         * tests/test-pipe.c: Likewise.
29934         * tests/test-popen-safer.c: Likewise.
29935         * modules/dirent-safer-tests (Files): Include macros.h.
29936         * modules/unistd-safer-tests (Files): Likewise.
29937         * modules/freopen-safer-tests (Files): Likewise.
29938         * modules/getopt-posix-tests (Files): Likewise.
29939         * modules/openat-safer-tests (Files): Likewise.
29940         * modules/pipe-tests (Files): Likewise.
29941
29942 2009-12-26  Bruno Haible  <bruno@clisp.org>
29943
29944         javacomp: Portability fix.
29945         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29946         that it also works on Solaris.
29947
29948 2009-12-26  Bruno Haible  <bruno@clisp.org>
29949
29950         localename: Fix storage allocation of gl_locale_name_thread's result.
29951         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29952         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29953         all platforms that have 'uselocale'.
29954         (gl_locale_name_thread_unsafe): New function, extracted from
29955         gl_locale_name_thread.
29956         (gl_locale_name_thread): Call struniq on all platforms that have
29957         'uselocale'.
29958         * tests/test-localename.c (test_locale_name_thread): Check that the
29959         resulting strings are permanently allocated.
29960         * modules/localename-tests (Depends-on): Add strdup.
29961
29962 2009-12-26  Bruno Haible  <bruno@clisp.org>
29963
29964         * tests/test-localename.c (categories): Fill in the strings.
29965
29966 2009-12-26  Jim Meyering  <meyering@redhat.com>
29967
29968         isdir: complete the removal of m4/isdir.m4
29969         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29970
29971         isdir: clean up, since at least grep still uses it
29972         * lib/isdir.c: Include "isdir.h".
29973         (S_ISDIR): Remove now-unneeded definition.
29974         * modules/isdir (Files): Add lib/isdir.h.
29975         * lib/isdir.h: New file, with declaration.
29976         * m4/isdir.m4: Remove file -- unneeded.
29977
29978 2009-12-25  Bruno Haible  <bruno@clisp.org>
29979
29980         selinux-h: Make generated .h files standalone.
29981         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29982         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29983         * lib/se-selinux.in.h: Likewise.
29984         * modules/selinux-h (Depends-on): Add unused-parameter.
29985         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29986         selinux/selinux.h and selinux/context.h.
29987         Suggested by Eric Blake.
29988
29989 2009-12-25  Bruno Haible  <bruno@clisp.org>
29990
29991         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29992         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29993         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29994         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29995         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29996
29997 2009-12-24  Bruno Haible  <bruno@clisp.org>
29998
29999         openat: Fix warning.
30000         * lib/openat-proc.c: Include <unistd.h>.
30001
30002 2009-12-24  Bruno Haible  <bruno@clisp.org>
30003
30004         New module 'unused-parameter'.
30005         * build-aux/unused-parameter.h: New file, extracted from earlier
30006         gnulib-common.m4.
30007         * modules/unused-parameter: New file.
30008         * lib/unistr.h: Include unused-parameter.h.
30009         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30010         _GL_UNUSED.
30011         * modules/unistr/base (Depends-on): Add unused-parameter.
30012
30013 2009-12-24  Bruno Haible  <bruno@clisp.org>
30014
30015         Add missing dependencies to 'extensions' module.
30016         * m4/extensions.m4: Add comment.
30017         * modules/accept4 (Depends-on): Add extensions.
30018         * modules/dup3 (Depends-on): Likewise.
30019         * modules/fcntl (Depends-on): Likewise.
30020         * modules/futimens (Depends-on): Likewise.
30021         * modules/mknod (Depends-on): Likewise.
30022         * modules/pipe2 (Depends-on): Likewise.
30023         * modules/stat-time (Depends-on): Likewise.
30024         * modules/strcasestr-simple (Depends-on): Likewise.
30025         * modules/strsignal (Depends-on): Likewise.
30026         * modules/utimensat (Depends-on): Likewise.
30027         * modules/localcharset (Depends-on): Likewise. Needed because of
30028         gl_FCNTL_O_FLAGS.
30029         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30030         AC_TYPE_MBSTATE_T.
30031         * modules/wcsnrtombs (Depends-on): Likewise.
30032         * modules/wcsrtombs (Depends-on): Likewise.
30033
30034 2009-12-24  Bruno Haible  <bruno@clisp.org>
30035
30036         binary-io: Avoid gcc warning due to SET_BINARY.
30037         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30038         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30039
30040 2009-12-24  Bruno Haible  <bruno@clisp.org>
30041
30042         Avoid future namespace pollution on glibc systems.
30043         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30044         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30045         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30046         glibc systems.
30047
30048 2009-12-24  Bruno Haible  <bruno@clisp.org>
30049
30050         Refactor common macros used in tests.
30051         * tests/macros.h: New file.
30052         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30053         and/or <stdlib.h>, if appropriate.
30054         (ASSERT, SIZEOF): Remove macros.
30055         * tests/test-areadlink-with-size.c: Likewise.
30056         * tests/test-areadlinkat.c: Likewise.
30057         * tests/test-areadlinkat-with-size.c: Likewise.
30058         * tests/test-argmatch.c: Likewise.
30059         * tests/test-argv-iter.c: Likewise.
30060         * tests/test-array-mergesort.c: Likewise.
30061         * tests/test-array_list.c: Likewise.
30062         * tests/test-array_oset.c: Likewise.
30063         * tests/test-avltree_list.c: Likewise.
30064         * tests/test-avltree_oset.c: Likewise.
30065         * tests/test-avltreehash_list.c: Likewise.
30066         * tests/test-base64.c: Likewise.
30067         * tests/test-binary-io.c: Likewise.
30068         * tests/test-bitrotate.c: Likewise.
30069         * tests/test-btowc.c: Likewise.
30070         * tests/test-byteswap.c: Likewise.
30071         * tests/test-c-ctype.c: Likewise.
30072         * tests/test-c-stack.c: Likewise.
30073         * tests/test-c-strcasecmp.c: Likewise.
30074         * tests/test-c-strcasestr.c: Likewise.
30075         * tests/test-c-strncasecmp.c: Likewise.
30076         * tests/test-c-strstr.c: Likewise.
30077         * tests/test-canonicalize-lgpl.c: Likewise.
30078         * tests/test-canonicalize.c: Likewise.
30079         * tests/test-carray_list.c: Likewise.
30080         * tests/test-ceilf1.c: Likewise.
30081         * tests/test-ceilf2.c: Likewise.
30082         * tests/test-ceill.c: Likewise.
30083         * tests/test-chown.c: Likewise.
30084         * tests/test-cloexec.c: Likewise.
30085         * tests/test-copy-acl.c: Likewise.
30086         * tests/test-copy-file.c: Likewise.
30087         * tests/test-count-one-bits.c: Likewise.
30088         * tests/test-dprintf-posix.c: Likewise.
30089         * tests/test-dup2.c: Likewise.
30090         * tests/test-dup3.c: Likewise.
30091         * tests/test-duplocale.c: Likewise.
30092         * tests/test-fbufmode.c: Likewise.
30093         * tests/test-fchdir.c: Likewise.
30094         * tests/test-fchownat.c: Likewise.
30095         * tests/test-fcntl-safer.c: Likewise.
30096         * tests/test-fcntl.c: Likewise.
30097         * tests/test-fdopendir.c: Likewise.
30098         * tests/test-fdutimensat.c: Likewise.
30099         * tests/test-fflush2.c: Likewise.
30100         * tests/test-file-has-acl.c: Likewise.
30101         * tests/test-filevercmp.c: Likewise.
30102         * tests/test-flock.c: Likewise.
30103         * tests/test-floorf1.c: Likewise.
30104         * tests/test-floorf2.c: Likewise.
30105         * tests/test-floorl.c: Likewise.
30106         * tests/test-fnmatch.c: Likewise.
30107         * tests/test-fopen.h: Likewise.
30108         * tests/test-fpending.c: Likewise.
30109         * tests/test-fprintf-posix.c: Likewise.
30110         * tests/test-fpurge.c: Likewise.
30111         * tests/test-freadable.c: Likewise.
30112         * tests/test-freadahead.c: Likewise.
30113         * tests/test-freading.c: Likewise.
30114         * tests/test-freadptr.c: Likewise.
30115         * tests/test-freadptr2.c: Likewise.
30116         * tests/test-freadseek.c: Likewise.
30117         * tests/test-freopen.c: Likewise.
30118         * tests/test-frexp.c: Likewise.
30119         * tests/test-frexpl.c: Likewise.
30120         * tests/test-fseek.c: Likewise.
30121         * tests/test-fseeko.c: Likewise.
30122         * tests/test-fstatat.c: Likewise.
30123         * tests/test-fstrcmp.c: Likewise.
30124         * tests/test-fsync.c: Likewise.
30125         * tests/test-ftell.c: Likewise.
30126         * tests/test-ftello.c: Likewise.
30127         * tests/test-func.c: Likewise.
30128         * tests/test-futimens.c: Likewise.
30129         * tests/test-fwritable.c: Likewise.
30130         * tests/test-fwriting.c: Likewise.
30131         * tests/test-getcwd.c: Likewise.
30132         * tests/test-getdate.c: Likewise.
30133         * tests/test-getdelim.c: Likewise.
30134         * tests/test-getdtablesize.c: Likewise.
30135         * tests/test-getgroups.c: Likewise.
30136         * tests/test-getline.c: Likewise.
30137         * tests/test-getndelim2.c: Likewise.
30138         * tests/test-glob.c: Likewise.
30139         * tests/test-hash.c: Likewise.
30140         * tests/test-i-ring.c: Likewise.
30141         * tests/test-iconv-utf.c: Likewise.
30142         * tests/test-iconv.c: Likewise.
30143         * tests/test-idpriv-drop.c: Likewise.
30144         * tests/test-idpriv-droptemp.c: Likewise.
30145         * tests/test-inet_ntop.c: Likewise.
30146         * tests/test-inet_pton.c: Likewise.
30147         * tests/test-isblank.c: Likewise.
30148         * tests/test-isfinite.c: Likewise.
30149         * tests/test-isinf.c: Likewise.
30150         * tests/test-isnan.c: Likewise.
30151         * tests/test-isnand.h: Likewise.
30152         * tests/test-isnanf.h: Likewise.
30153         * tests/test-isnanl.h: Likewise.
30154         * tests/test-lchown.c: Likewise.
30155         * tests/test-ldexpl.c: Likewise.
30156         * tests/test-link.c: Likewise.
30157         * tests/test-linkat.c: Likewise.
30158         * tests/test-linked_list.c: Likewise.
30159         * tests/test-linkedhash_list.c: Likewise.
30160         * tests/test-localename.c: Likewise.
30161         * tests/test-lseek.c: Likewise.
30162         * tests/test-lstat.c: Likewise.
30163         * tests/test-mbmemcasecmp.c: Likewise.
30164         * tests/test-mbmemcasecoll.c: Likewise.
30165         * tests/test-mbrtowc.c: Likewise.
30166         * tests/test-mbscasecmp.c: Likewise.
30167         * tests/test-mbscasestr1.c: Likewise.
30168         * tests/test-mbscasestr2.c: Likewise.
30169         * tests/test-mbscasestr3.c: Likewise.
30170         * tests/test-mbscasestr4.c: Likewise.
30171         * tests/test-mbschr.c: Likewise.
30172         * tests/test-mbscspn.c: Likewise.
30173         * tests/test-mbsinit.c: Likewise.
30174         * tests/test-mbsncasecmp.c: Likewise.
30175         * tests/test-mbsnrtowcs.c: Likewise.
30176         * tests/test-mbspbrk.c: Likewise.
30177         * tests/test-mbspcasecmp.c: Likewise.
30178         * tests/test-mbsrchr.c: Likewise.
30179         * tests/test-mbsrtowcs.c: Likewise.
30180         * tests/test-mbsspn.c: Likewise.
30181         * tests/test-mbsstr1.c: Likewise.
30182         * tests/test-mbsstr2.c: Likewise.
30183         * tests/test-mbsstr3.c: Likewise.
30184         * tests/test-memchr.c: Likewise.
30185         * tests/test-memchr2.c: Likewise.
30186         * tests/test-memcmp.c: Likewise.
30187         * tests/test-memmem.c: Likewise.
30188         * tests/test-memrchr.c: Likewise.
30189         * tests/test-mkdir.c: Likewise.
30190         * tests/test-mkdirat.c: Likewise.
30191         * tests/test-mkfifo.c: Likewise.
30192         * tests/test-mkfifoat.c: Likewise.
30193         * tests/test-mknod.c: Likewise.
30194         * tests/test-nanosleep.c: Likewise.
30195         * tests/test-nl_langinfo.c: Likewise.
30196         * tests/test-obstack-printf.c: Likewise.
30197         * tests/test-open.c: Likewise.
30198         * tests/test-openat.c: Likewise.
30199         * tests/test-pipe-filter-gi1.c: Likewise.
30200         * tests/test-pipe-filter-gi2-main.c: Likewise.
30201         * tests/test-pipe-filter-ii1.c: Likewise.
30202         * tests/test-pipe-filter-ii2-main.c: Likewise.
30203         * tests/test-pipe2.c: Likewise.
30204         * tests/test-popen.h: Likewise.
30205         * tests/test-posixtm.c: Likewise.
30206         * tests/test-pread.c: Likewise.
30207         * tests/test-printf-frexp.c: Likewise.
30208         * tests/test-printf-frexpl.c: Likewise.
30209         * tests/test-printf-posix.c: Likewise.
30210         * tests/test-priv-set.c: Likewise.
30211         * tests/test-quotearg.c: Likewise.
30212         * tests/test-random_r.c: Likewise.
30213         * tests/test-rawmemchr.c: Likewise.
30214         * tests/test-rbtree_list.c: Likewise.
30215         * tests/test-rbtree_oset.c: Likewise.
30216         * tests/test-rbtreehash_list.c: Likewise.
30217         * tests/test-readlink.c: Likewise.
30218         * tests/test-remove.c: Likewise.
30219         * tests/test-rename.c: Likewise.
30220         * tests/test-renameat.c: Likewise.
30221         * tests/test-rmdir.c: Likewise.
30222         * tests/test-round1.c: Likewise.
30223         * tests/test-roundf1.c: Likewise.
30224         * tests/test-roundl.c: Likewise.
30225         * tests/test-safe-alloc.c: Likewise.
30226         * tests/test-sameacls.c: Likewise.
30227         * tests/test-set-mode-acl.c: Likewise.
30228         * tests/test-setenv.c: Likewise.
30229         * tests/test-sigaction.c: Likewise.
30230         * tests/test-signbit.c: Likewise.
30231         * tests/test-sleep.c: Likewise.
30232         * tests/test-snprintf-posix.c: Likewise.
30233         * tests/test-snprintf.c: Likewise.
30234         * tests/test-sprintf-posix.c: Likewise.
30235         * tests/test-stat-time.c: Likewise.
30236         * tests/test-stat.c: Likewise.
30237         * tests/test-strcasestr.c: Likewise.
30238         * tests/test-strchrnul.c: Likewise.
30239         * tests/test-strerror.c: Likewise.
30240         * tests/test-striconv.c: Likewise.
30241         * tests/test-striconveh.c: Likewise.
30242         * tests/test-striconveha.c: Likewise.
30243         * tests/test-strsignal.c: Likewise.
30244         * tests/test-strstr.c: Likewise.
30245         * tests/test-strtod.c: Likewise.
30246         * tests/test-strverscmp.c: Likewise.
30247         * tests/test-symlink.c: Likewise.
30248         * tests/test-symlinkat.c: Likewise.
30249         * tests/test-trunc1.c: Likewise.
30250         * tests/test-trunc2.c: Likewise.
30251         * tests/test-truncf1.c: Likewise.
30252         * tests/test-truncf2.c: Likewise.
30253         * tests/test-truncl.c: Likewise.
30254         * tests/test-uname.c: Likewise.
30255         * tests/test-unlink.c: Likewise.
30256         * tests/test-unlinkat.c: Likewise.
30257         * tests/test-unsetenv.c: Likewise.
30258         * tests/test-usleep.c: Likewise.
30259         * tests/test-utimens.c: Likewise.
30260         * tests/test-utimensat.c: Likewise.
30261         * tests/test-vasnprintf-posix.c: Likewise.
30262         * tests/test-vasnprintf-posix2.c: Likewise.
30263         * tests/test-vasnprintf.c: Likewise.
30264         * tests/test-vasprintf-posix.c: Likewise.
30265         * tests/test-vasprintf.c: Likewise.
30266         * tests/test-vdprintf-posix.c: Likewise.
30267         * tests/test-vfprintf-posix.c: Likewise.
30268         * tests/test-vprintf-posix.c: Likewise.
30269         * tests/test-vsnprintf-posix.c: Likewise.
30270         * tests/test-vsnprintf.c: Likewise.
30271         * tests/test-vsprintf-posix.c: Likewise.
30272         * tests/test-wcrtomb.c: Likewise.
30273         * tests/test-wcsnrtombs.c: Likewise.
30274         * tests/test-wcsrtombs.c: Likewise.
30275         * tests/test-wctype.c: Likewise.
30276         * tests/test-wcwidth.c: Likewise.
30277         * tests/test-xfprintf-posix.c: Likewise.
30278         * tests/test-xmemdup0.c: Likewise.
30279         * tests/test-xprintf-posix.c: Likewise.
30280         * tests/test-xvasprintf.c: Likewise.
30281         * tests/unicase/test-locale-language.c: Likewise.
30282         * tests/unicase/test-mapping-part1.h: Likewise.
30283         * tests/unicase/test-predicate-part1.h: Likewise.
30284         * tests/unicase/test-u8-casecmp.c: Likewise.
30285         * tests/unicase/test-u8-casecoll.c: Likewise.
30286         * tests/unicase/test-u8-casefold.c: Likewise.
30287         * tests/unicase/test-u8-is-cased.c: Likewise.
30288         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30289         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30290         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30291         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30292         * tests/unicase/test-u8-tolower.c: Likewise.
30293         * tests/unicase/test-u8-totitle.c: Likewise.
30294         * tests/unicase/test-u8-toupper.c: Likewise.
30295         * tests/unicase/test-u16-casecmp.c: Likewise.
30296         * tests/unicase/test-u16-casecoll.c: Likewise.
30297         * tests/unicase/test-u16-casefold.c: Likewise.
30298         * tests/unicase/test-u16-is-cased.c: Likewise.
30299         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30300         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30301         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30302         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30303         * tests/unicase/test-u16-tolower.c: Likewise.
30304         * tests/unicase/test-u16-totitle.c: Likewise.
30305         * tests/unicase/test-u16-toupper.c: Likewise.
30306         * tests/unicase/test-u32-casecmp.c: Likewise.
30307         * tests/unicase/test-u32-casecoll.c: Likewise.
30308         * tests/unicase/test-u32-casefold.c: Likewise.
30309         * tests/unicase/test-u32-is-cased.c: Likewise.
30310         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30311         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30312         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30313         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30314         * tests/unicase/test-u32-tolower.c: Likewise.
30315         * tests/unicase/test-u32-totitle.c: Likewise.
30316         * tests/unicase/test-u32-toupper.c: Likewise.
30317         * tests/unicase/test-ulc-casecmp.c: Likewise.
30318         * tests/unicase/test-ulc-casecoll.c: Likewise.
30319         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30320         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30321         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30322         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30323         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30324         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30325         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30326         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30327         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30328         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30329         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30330         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30331         * tests/unictype/test-bidi_byname.c: Likewise.
30332         * tests/unictype/test-bidi_name.c: Likewise.
30333         * tests/unictype/test-bidi_of.c: Likewise.
30334         * tests/unictype/test-bidi_test.c: Likewise.
30335         * tests/unictype/test-block_list.c: Likewise.
30336         * tests/unictype/test-block_of.c: Likewise.
30337         * tests/unictype/test-block_test.c: Likewise.
30338         * tests/unictype/test-categ_and.c: Likewise.
30339         * tests/unictype/test-categ_and_not.c: Likewise.
30340         * tests/unictype/test-categ_byname.c: Likewise.
30341         * tests/unictype/test-categ_name.c: Likewise.
30342         * tests/unictype/test-categ_none.c: Likewise.
30343         * tests/unictype/test-categ_of.c: Likewise.
30344         * tests/unictype/test-categ_or.c: Likewise.
30345         * tests/unictype/test-categ_test_withtable.c: Likewise.
30346         * tests/unictype/test-combining.c: Likewise.
30347         * tests/unictype/test-decdigit.c: Likewise.
30348         * tests/unictype/test-digit.c: Likewise.
30349         * tests/unictype/test-mirror.c: Likewise.
30350         * tests/unictype/test-numeric.c: Likewise.
30351         * tests/unictype/test-pr_byname.c: Likewise.
30352         * tests/unictype/test-pr_test.c: Likewise.
30353         * tests/unictype/test-predicate-part1.h: Likewise.
30354         * tests/unictype/test-scripts.c: Likewise.
30355         * tests/unictype/test-sy_c_ident.c: Likewise.
30356         * tests/unictype/test-sy_java_ident.c: Likewise.
30357         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30358         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30359         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30360         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30361         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30362         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30363         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30364         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30365         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30366         * tests/uninorm/test-compat-decomposition.c: Likewise.
30367         * tests/uninorm/test-composition.c: Likewise.
30368         * tests/uninorm/test-decomposing-form.c: Likewise.
30369         * tests/uninorm/test-decomposition.c: Likewise.
30370         * tests/uninorm/test-u8-nfc.c: Likewise.
30371         * tests/uninorm/test-u8-nfd.c: Likewise.
30372         * tests/uninorm/test-u8-nfkc.c: Likewise.
30373         * tests/uninorm/test-u8-nfkd.c: Likewise.
30374         * tests/uninorm/test-u8-normcmp.c: Likewise.
30375         * tests/uninorm/test-u8-normcoll.c: Likewise.
30376         * tests/uninorm/test-u16-nfc.c: Likewise.
30377         * tests/uninorm/test-u16-nfd.c: Likewise.
30378         * tests/uninorm/test-u16-nfkc.c: Likewise.
30379         * tests/uninorm/test-u16-nfkd.c: Likewise.
30380         * tests/uninorm/test-u16-normcmp.c: Likewise.
30381         * tests/uninorm/test-u16-normcoll.c: Likewise.
30382         * tests/uninorm/test-u32-nfc.c: Likewise.
30383         * tests/uninorm/test-u32-nfd.c: Likewise.
30384         * tests/uninorm/test-u32-nfkc.c: Likewise.
30385         * tests/uninorm/test-u32-nfkd.c: Likewise.
30386         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30387         * tests/uninorm/test-u32-normcmp.c: Likewise.
30388         * tests/uninorm/test-u32-normcoll.c: Likewise.
30389         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30390         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30391         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30392         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30393         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30394         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30395         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30396         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30397         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30398         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30399         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30400         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30401         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30402         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30403         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30404         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30405         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30406         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30407         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30408         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30409         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30410         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30411         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30412         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30413         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30414         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30415         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30416         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30417         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30418         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30419         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30420         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30421         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30422         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30423         * tests/uniwidth/test-u8-width.c: Likewise.
30424         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30425         * tests/uniwidth/test-u16-width.c: Likewise.
30426         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30427         * tests/uniwidth/test-u32-width.c: Likewise.
30428         * tests/uniwidth/test-uc_width.c: Likewise.
30429         * tests/uniwidth/test-uc_width2.c: Likewise.
30430         * modules/acl-tests (Files): Add tests/macros.h.
30431         * modules/areadlink-tests (Files): Likewise.
30432         * modules/areadlink-with-size-tests (Files): Likewise.
30433         * modules/areadlinkat-tests (Files): Likewise.
30434         * modules/areadlinkat-with-size-tests (Files): Likewise.
30435         * modules/argmatch-tests (Files): Likewise.
30436         * modules/argv-iter-tests (Files): Likewise.
30437         * modules/array-list-tests (Files): Likewise.
30438         * modules/array-mergesort-tests (Files): Likewise.
30439         * modules/array-oset-tests (Files): Likewise.
30440         * modules/avltree-list-tests (Files): Likewise.
30441         * modules/avltree-oset-tests (Files): Likewise.
30442         * modules/avltreehash-list-tests (Files): Likewise.
30443         * modules/base64-tests (Files): Likewise.
30444         * modules/binary-io-tests (Files): Likewise.
30445         * modules/bitrotate-tests (Files): Likewise.
30446         * modules/btowc-tests (Files): Likewise.
30447         * modules/byteswap-tests (Files): Likewise.
30448         * modules/c-ctype-tests (Files): Likewise.
30449         * modules/c-stack-tests (Files): Likewise.
30450         * modules/c-strcase-tests (Files): Likewise.
30451         * modules/c-strcasestr-tests (Files): Likewise.
30452         * modules/c-strstr-tests (Files): Likewise.
30453         * modules/canonicalize-lgpl-tests (Files): Likewise.
30454         * modules/canonicalize-tests (Files): Likewise.
30455         * modules/carray-list-tests (Files): Likewise.
30456         * modules/ceilf-tests (Files): Likewise.
30457         * modules/ceill-tests (Files): Likewise.
30458         * modules/chown-tests (Files): Likewise.
30459         * modules/cloexec-tests (Files): Likewise.
30460         * modules/copy-file-tests (Files): Likewise.
30461         * modules/count-one-bits-tests (Files): Likewise.
30462         * modules/dprintf-posix-tests (Files): Likewise.
30463         * modules/dup2-tests (Files): Likewise.
30464         * modules/dup3-tests (Files): Likewise.
30465         * modules/duplocale-tests (Files): Likewise.
30466         * modules/fbufmode-tests (Files): Likewise.
30467         * modules/fchdir-tests (Files): Likewise.
30468         * modules/fcntl-safer-tests (Files): Likewise.
30469         * modules/fcntl-tests (Files): Likewise.
30470         * modules/fdopendir-tests (Files): Likewise.
30471         * modules/fdutimensat-tests (Files): Likewise.
30472         * modules/fflush-tests (Files): Likewise.
30473         * modules/filevercmp-tests (Files): Likewise.
30474         * modules/flock-tests (Files): Likewise.
30475         * modules/floorf-tests (Files): Likewise.
30476         * modules/floorl-tests (Files): Likewise.
30477         * modules/fnmatch-tests (Files): Likewise.
30478         * modules/fopen-safer-tests (Files): Likewise.
30479         * modules/fopen-tests (Files): Likewise.
30480         * modules/fpending-tests (Files): Likewise.
30481         * modules/fprintf-posix-tests (Files): Likewise.
30482         * modules/fpurge-tests (Files): Likewise.
30483         * modules/freadable-tests (Files): Likewise.
30484         * modules/freadahead-tests (Files): Likewise.
30485         * modules/freading-tests (Files): Likewise.
30486         * modules/freadptr-tests (Files): Likewise.
30487         * modules/freadseek-tests (Files): Likewise.
30488         * modules/freopen-tests (Files): Likewise.
30489         * modules/frexp-nolibm-tests (Files): Likewise.
30490         * modules/frexp-tests (Files): Likewise.
30491         * modules/frexpl-nolibm-tests (Files): Likewise.
30492         * modules/frexpl-tests (Files): Likewise.
30493         * modules/fseek-tests (Files): Likewise.
30494         * modules/fseeko-tests (Files): Likewise.
30495         * modules/fstrcmp-tests (Files): Likewise.
30496         * modules/fsync-tests (Files): Likewise.
30497         * modules/ftell-tests (Files): Likewise.
30498         * modules/ftello-tests (Files): Likewise.
30499         * modules/func-tests (Files): Likewise.
30500         * modules/futimens-tests (Files): Likewise.
30501         * modules/fwritable-tests (Files): Likewise.
30502         * modules/fwriting-tests (Files): Likewise.
30503         * modules/getcwd-tests (Files): Likewise.
30504         * modules/getdate-tests (Files): Likewise.
30505         * modules/getdelim-tests (Files): Likewise.
30506         * modules/getdtablesize-tests (Files): Likewise.
30507         * modules/getgroups-tests (Files): Likewise.
30508         * modules/getline-tests (Files): Likewise.
30509         * modules/getndelim2-tests (Files): Likewise.
30510         * modules/glob-tests (Files): Likewise.
30511         * modules/hash-tests (Files): Likewise.
30512         * modules/i-ring-tests (Files): Likewise.
30513         * modules/iconv-tests (Files): Likewise.
30514         * modules/iconv_open-utf-tests (Files): Likewise.
30515         * modules/idpriv-drop-tests (Files): Likewise.
30516         * modules/idpriv-droptemp-tests (Files): Likewise.
30517         * modules/inet_ntop-tests (Files): Likewise.
30518         * modules/inet_pton-tests (Files): Likewise.
30519         * modules/isblank-tests (Files): Likewise.
30520         * modules/isfinite-tests (Files): Likewise.
30521         * modules/isinf-tests (Files): Likewise.
30522         * modules/isnan-tests (Files): Likewise.
30523         * modules/isnand-nolibm-tests (Files): Likewise.
30524         * modules/isnand-tests (Files): Likewise.
30525         * modules/isnanf-nolibm-tests (Files): Likewise.
30526         * modules/isnanf-tests (Files): Likewise.
30527         * modules/isnanl-nolibm-tests (Files): Likewise.
30528         * modules/isnanl-tests (Files): Likewise.
30529         * modules/lchown-tests (Files): Likewise.
30530         * modules/ldexpl-tests (Files): Likewise.
30531         * modules/link-tests (Files): Likewise.
30532         * modules/linkat-tests (Files): Likewise.
30533         * modules/linked-list-tests (Files): Likewise.
30534         * modules/linkedhash-list-tests (Files): Likewise.
30535         * modules/localename-tests (Files): Likewise.
30536         * modules/lseek-tests (Files): Likewise.
30537         * modules/lstat-tests (Files): Likewise.
30538         * modules/mbmemcasecmp-tests (Files): Likewise.
30539         * modules/mbmemcasecoll-tests (Files): Likewise.
30540         * modules/mbrtowc-tests (Files): Likewise.
30541         * modules/mbscasecmp-tests (Files): Likewise.
30542         * modules/mbscasestr-tests (Files): Likewise.
30543         * modules/mbschr-tests (Files): Likewise.
30544         * modules/mbscspn-tests (Files): Likewise.
30545         * modules/mbsinit-tests (Files): Likewise.
30546         * modules/mbsncasecmp-tests (Files): Likewise.
30547         * modules/mbsnrtowcs-tests (Files): Likewise.
30548         * modules/mbspbrk-tests (Files): Likewise.
30549         * modules/mbspcasecmp-tests (Files): Likewise.
30550         * modules/mbsrchr-tests (Files): Likewise.
30551         * modules/mbsrtowcs-tests (Files): Likewise.
30552         * modules/mbsspn-tests (Files): Likewise.
30553         * modules/mbsstr-tests (Files): Likewise.
30554         * modules/memchr-tests (Files): Likewise.
30555         * modules/memchr2-tests (Files): Likewise.
30556         * modules/memcmp-tests (Files): Likewise.
30557         * modules/memmem-tests (Files): Likewise.
30558         * modules/memrchr-tests (Files): Likewise.
30559         * modules/mkdir-tests (Files): Likewise.
30560         * modules/mkfifo-tests (Files): Likewise.
30561         * modules/mkfifoat-tests (Files): Likewise.
30562         * modules/mknod-tests (Files): Likewise.
30563         * modules/nanosleep-tests (Files): Likewise.
30564         * modules/nl_langinfo-tests (Files): Likewise.
30565         * modules/obstack-printf-tests (Files): Likewise.
30566         * modules/open-tests (Files): Likewise.
30567         * modules/openat-tests (Files): Likewise.
30568         * modules/pipe-filter-gi-tests (Files): Likewise.
30569         * modules/pipe-filter-ii-tests (Files): Likewise.
30570         * modules/pipe2-tests (Files): Likewise.
30571         * modules/popen-safer-tests (Files): Likewise.
30572         * modules/popen-tests (Files): Likewise.
30573         * modules/posixtm-tests (Files): Likewise.
30574         * modules/pread-tests (Files): Likewise.
30575         * modules/printf-frexp-tests (Files): Likewise.
30576         * modules/printf-frexpl-tests (Files): Likewise.
30577         * modules/printf-posix-tests (Files): Likewise.
30578         * modules/priv-set-tests (Files): Likewise.
30579         * modules/quotearg-tests (Files): Likewise.
30580         * modules/random_r-tests (Files): Likewise.
30581         * modules/rawmemchr-tests (Files): Likewise.
30582         * modules/rbtree-list-tests (Files): Likewise.
30583         * modules/rbtree-oset-tests (Files): Likewise.
30584         * modules/rbtreehash-list-tests (Files): Likewise.
30585         * modules/readlink-tests (Files): Likewise.
30586         * modules/remove-tests (Files): Likewise.
30587         * modules/rename-tests (Files): Likewise.
30588         * modules/renameat-tests (Files): Likewise.
30589         * modules/rmdir-tests (Files): Likewise.
30590         * modules/round-tests (Files): Likewise.
30591         * modules/roundf-tests (Files): Likewise.
30592         * modules/roundl-tests (Files): Likewise.
30593         * modules/safe-alloc-tests (Files): Likewise.
30594         * modules/setenv-tests (Files): Likewise.
30595         * modules/sigaction-tests (Files): Likewise.
30596         * modules/signbit-tests (Files): Likewise.
30597         * modules/sleep-tests (Files): Likewise.
30598         * modules/snprintf-posix-tests (Files): Likewise.
30599         * modules/snprintf-tests (Files): Likewise.
30600         * modules/sprintf-posix-tests (Files): Likewise.
30601         * modules/stat-tests (Files): Likewise.
30602         * modules/stat-time-tests (Files): Likewise.
30603         * modules/strcasestr-tests (Files): Likewise.
30604         * modules/strchrnul-tests (Files): Likewise.
30605         * modules/strerror-tests (Files): Likewise.
30606         * modules/striconv-tests (Files): Likewise.
30607         * modules/striconveh-tests (Files): Likewise.
30608         * modules/striconveha-tests (Files): Likewise.
30609         * modules/strsignal-tests (Files): Likewise.
30610         * modules/strstr-tests (Files): Likewise.
30611         * modules/strtod-tests (Files): Likewise.
30612         * modules/strverscmp-tests (Files): Likewise.
30613         * modules/symlink-tests (Files): Likewise.
30614         * modules/symlinkat-tests (Files): Likewise.
30615         * modules/trunc-tests (Files): Likewise.
30616         * modules/truncf-tests (Files): Likewise.
30617         * modules/truncl-tests (Files): Likewise.
30618         * modules/uname-tests (Files): Likewise.
30619         * modules/unicase/cased-tests (Files): Likewise.
30620         * modules/unicase/ignorable-tests (Files): Likewise.
30621         * modules/unicase/locale-language-tests (Files): Likewise.
30622         * modules/unicase/tolower-tests (Files): Likewise.
30623         * modules/unicase/totitle-tests (Files): Likewise.
30624         * modules/unicase/toupper-tests (Files): Likewise.
30625         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30626         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30627         * modules/unicase/u8-casefold-tests (Files): Likewise.
30628         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30629         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30630         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30631         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30632         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30633         * modules/unicase/u8-tolower-tests (Files): Likewise.
30634         * modules/unicase/u8-totitle-tests (Files): Likewise.
30635         * modules/unicase/u8-toupper-tests (Files): Likewise.
30636         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30637         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30638         * modules/unicase/u16-casefold-tests (Files): Likewise.
30639         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30640         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30641         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30642         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30643         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30644         * modules/unicase/u16-tolower-tests (Files): Likewise.
30645         * modules/unicase/u16-totitle-tests (Files): Likewise.
30646         * modules/unicase/u16-toupper-tests (Files): Likewise.
30647         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30648         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30649         * modules/unicase/u32-casefold-tests (Files): Likewise.
30650         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30651         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30652         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30653         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30654         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30655         * modules/unicase/u32-tolower-tests (Files): Likewise.
30656         * modules/unicase/u32-totitle-tests (Files): Likewise.
30657         * modules/unicase/u32-toupper-tests (Files): Likewise.
30658         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30659         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30660         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30661         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30662         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30663         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30664         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30665         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30666         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30667         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30668         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30669         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30670         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30671         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30672         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30673         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30674         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30675         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30676         * modules/unictype/block-list-tests (Files): Likewise.
30677         * modules/unictype/block-of-tests (Files): Likewise.
30678         * modules/unictype/block-test-tests (Files): Likewise.
30679         * modules/unictype/category-C-tests (Files): Likewise.
30680         * modules/unictype/category-Cc-tests (Files): Likewise.
30681         * modules/unictype/category-Cf-tests (Files): Likewise.
30682         * modules/unictype/category-Cn-tests (Files): Likewise.
30683         * modules/unictype/category-Co-tests (Files): Likewise.
30684         * modules/unictype/category-Cs-tests (Files): Likewise.
30685         * modules/unictype/category-L-tests (Files): Likewise.
30686         * modules/unictype/category-Ll-tests (Files): Likewise.
30687         * modules/unictype/category-Lm-tests (Files): Likewise.
30688         * modules/unictype/category-Lo-tests (Files): Likewise.
30689         * modules/unictype/category-Lt-tests (Files): Likewise.
30690         * modules/unictype/category-Lu-tests (Files): Likewise.
30691         * modules/unictype/category-M-tests (Files): Likewise.
30692         * modules/unictype/category-Mc-tests (Files): Likewise.
30693         * modules/unictype/category-Me-tests (Files): Likewise.
30694         * modules/unictype/category-Mn-tests (Files): Likewise.
30695         * modules/unictype/category-N-tests (Files): Likewise.
30696         * modules/unictype/category-Nd-tests (Files): Likewise.
30697         * modules/unictype/category-Nl-tests (Files): Likewise.
30698         * modules/unictype/category-No-tests (Files): Likewise.
30699         * modules/unictype/category-P-tests (Files): Likewise.
30700         * modules/unictype/category-Pc-tests (Files): Likewise.
30701         * modules/unictype/category-Pd-tests (Files): Likewise.
30702         * modules/unictype/category-Pe-tests (Files): Likewise.
30703         * modules/unictype/category-Pf-tests (Files): Likewise.
30704         * modules/unictype/category-Pi-tests (Files): Likewise.
30705         * modules/unictype/category-Po-tests (Files): Likewise.
30706         * modules/unictype/category-Ps-tests (Files): Likewise.
30707         * modules/unictype/category-S-tests (Files): Likewise.
30708         * modules/unictype/category-Sc-tests (Files): Likewise.
30709         * modules/unictype/category-Sk-tests (Files): Likewise.
30710         * modules/unictype/category-Sm-tests (Files): Likewise.
30711         * modules/unictype/category-So-tests (Files): Likewise.
30712         * modules/unictype/category-Z-tests (Files): Likewise.
30713         * modules/unictype/category-Zl-tests (Files): Likewise.
30714         * modules/unictype/category-Zp-tests (Files): Likewise.
30715         * modules/unictype/category-Zs-tests (Files): Likewise.
30716         * modules/unictype/category-and-not-tests (Files): Likewise.
30717         * modules/unictype/category-and-tests (Files): Likewise.
30718         * modules/unictype/category-byname-tests (Files): Likewise.
30719         * modules/unictype/category-name-tests (Files): Likewise.
30720         * modules/unictype/category-none-tests (Files): Likewise.
30721         * modules/unictype/category-of-tests (Files): Likewise.
30722         * modules/unictype/category-or-tests (Files): Likewise.
30723         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30724         * modules/unictype/combining-class-tests (Files): Likewise.
30725         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30726         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30727         * modules/unictype/ctype-blank-tests (Files): Likewise.
30728         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30729         * modules/unictype/ctype-digit-tests (Files): Likewise.
30730         * modules/unictype/ctype-graph-tests (Files): Likewise.
30731         * modules/unictype/ctype-lower-tests (Files): Likewise.
30732         * modules/unictype/ctype-print-tests (Files): Likewise.
30733         * modules/unictype/ctype-punct-tests (Files): Likewise.
30734         * modules/unictype/ctype-space-tests (Files): Likewise.
30735         * modules/unictype/ctype-upper-tests (Files): Likewise.
30736         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30737         * modules/unictype/decimal-digit-tests (Files): Likewise.
30738         * modules/unictype/digit-tests (Files): Likewise.
30739         * modules/unictype/mirror-tests (Files): Likewise.
30740         * modules/unictype/numeric-tests (Files): Likewise.
30741         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30742         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30743         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30744         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30745         Likewise.
30746         * modules/unictype/property-bidi-block-separator-tests (Files):
30747         Likewise.
30748         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30749         Likewise.
30750         * modules/unictype/property-bidi-common-separator-tests (Files):
30751         Likewise.
30752         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30753         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30754         Likewise.
30755         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30756         Likewise.
30757         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30758         Likewise.
30759         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30760         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30761         Likewise.
30762         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30763         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30764         Likewise.
30765         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30766         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30767         * modules/unictype/property-bidi-segment-separator-tests (Files):
30768         Likewise.
30769         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30770         * modules/unictype/property-byname-tests (Files): Likewise.
30771         * modules/unictype/property-combining-tests (Files): Likewise.
30772         * modules/unictype/property-composite-tests (Files): Likewise.
30773         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30774         * modules/unictype/property-dash-tests (Files): Likewise.
30775         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30776         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30777         Likewise.
30778         * modules/unictype/property-deprecated-tests (Files): Likewise.
30779         * modules/unictype/property-diacritic-tests (Files): Likewise.
30780         * modules/unictype/property-extender-tests (Files): Likewise.
30781         * modules/unictype/property-format-control-tests (Files): Likewise.
30782         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30783         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30784         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30785         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30786         * modules/unictype/property-hyphen-tests (Files): Likewise.
30787         * modules/unictype/property-id-continue-tests (Files): Likewise.
30788         * modules/unictype/property-id-start-tests (Files): Likewise.
30789         * modules/unictype/property-ideographic-tests (Files): Likewise.
30790         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30791         * modules/unictype/property-ids-trinary-operator-tests (Files):
30792         Likewise.
30793         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30794         * modules/unictype/property-iso-control-tests (Files): Likewise.
30795         * modules/unictype/property-join-control-tests (Files): Likewise.
30796         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30797         * modules/unictype/property-line-separator-tests (Files): Likewise.
30798         * modules/unictype/property-logical-order-exception-tests (Files):
30799         Likewise.
30800         * modules/unictype/property-lowercase-tests (Files): Likewise.
30801         * modules/unictype/property-math-tests (Files): Likewise.
30802         * modules/unictype/property-non-break-tests (Files): Likewise.
30803         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30804         * modules/unictype/property-numeric-tests (Files): Likewise.
30805         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30806         * modules/unictype/property-other-default-ignorable-code-point-tests
30807         (Files): Likewise.
30808         * modules/unictype/property-other-grapheme-extend-tests (Files):
30809         Likewise.
30810         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30811         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30812         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30813         * modules/unictype/property-other-math-tests (Files): Likewise.
30814         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30815         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30816         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30817         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30818         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30819         * modules/unictype/property-private-use-tests (Files): Likewise.
30820         * modules/unictype/property-punctuation-tests (Files): Likewise.
30821         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30822         * modules/unictype/property-radical-tests (Files): Likewise.
30823         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30824         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30825         * modules/unictype/property-space-tests (Files): Likewise.
30826         * modules/unictype/property-terminal-punctuation-tests (Files):
30827         Likewise.
30828         * modules/unictype/property-test-tests (Files): Likewise.
30829         * modules/unictype/property-titlecase-tests (Files): Likewise.
30830         * modules/unictype/property-unassigned-code-value-tests (Files):
30831         Likewise.
30832         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30833         * modules/unictype/property-uppercase-tests (Files): Likewise.
30834         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30835         * modules/unictype/property-white-space-tests (Files): Likewise.
30836         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30837         * modules/unictype/property-xid-start-tests (Files): Likewise.
30838         * modules/unictype/property-zero-width-tests (Files): Likewise.
30839         * modules/unictype/scripts-tests (Files): Likewise.
30840         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30841         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30842         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30843         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30844         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30845         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30846         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30847         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30848         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30849         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30850         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30851         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30852         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30853         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30854         * modules/uninorm/composition-tests (Files): Likewise.
30855         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30856         * modules/uninorm/decomposition-tests (Files): Likewise.
30857         * modules/uninorm/filter-tests (Files): Likewise.
30858         * modules/uninorm/nfc-tests (Files): Likewise.
30859         * modules/uninorm/nfd-tests (Files): Likewise.
30860         * modules/uninorm/nfkc-tests (Files): Likewise.
30861         * modules/uninorm/nfkd-tests (Files): Likewise.
30862         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30863         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30864         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30865         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30866         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30867         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30868         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30869         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30870         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30871         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30872         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30873         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30874         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30875         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30876         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30877         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30878         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30879         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30880         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30881         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30882         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30883         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30884         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30885         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30886         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30887         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30888         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30889         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30890         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30891         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30892         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30893         * modules/uniwidth/u8-width-tests (Files): Likewise.
30894         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30895         * modules/uniwidth/u16-width-tests (Files): Likewise.
30896         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30897         * modules/uniwidth/u32-width-tests (Files): Likewise.
30898         * modules/uniwidth/width-tests (Files): Likewise.
30899         * modules/unlink-tests (Files): Likewise.
30900         * modules/unsetenv-tests (Files): Likewise.
30901         * modules/usleep-tests (Files): Likewise.
30902         * modules/utimens-tests (Files): Likewise.
30903         * modules/utimensat-tests (Files): Likewise.
30904         * modules/vasnprintf-posix-tests (Files): Likewise.
30905         * modules/vasnprintf-tests (Files): Likewise.
30906         * modules/vasprintf-posix-tests (Files): Likewise.
30907         * modules/vasprintf-tests (Files): Likewise.
30908         * modules/vdprintf-posix-tests (Files): Likewise.
30909         * modules/vfprintf-posix-tests (Files): Likewise.
30910         * modules/vprintf-posix-tests (Files): Likewise.
30911         * modules/vsnprintf-posix-tests (Files): Likewise.
30912         * modules/vsnprintf-tests (Files): Likewise.
30913         * modules/vsprintf-posix-tests (Files): Likewise.
30914         * modules/wcrtomb-tests (Files): Likewise.
30915         * modules/wcsnrtombs-tests (Files): Likewise.
30916         * modules/wcsrtombs-tests (Files): Likewise.
30917         * modules/wctype-tests (Files): Likewise.
30918         * modules/wcwidth-tests (Files): Likewise.
30919         * modules/xmemdup0-tests (Files): Likewise.
30920         * modules/xprintf-posix-tests (Files): Likewise.
30921         * modules/xvasprintf-tests (Files): Likewise.
30922
30923 2009-12-24  Eric Blake  <ebb9@byu.net>
30924
30925         test-nanosleep: fix typo
30926         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30927         patch.
30928         Reported by Bruno Haible.
30929
30930 2009-12-24  Bruno Haible  <bruno@clisp.org>
30931
30932         Reduce namespace pollution on glibc systems.
30933         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30934         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30935         systems.
30936         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30937         <getopt.h> on glibc systems.
30938         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30939         systems.
30940         * lib/fcntl.c: Include <unistd.h> here instead.
30941
30942 2009-12-24  Bruno Haible  <bruno@clisp.org>
30943
30944         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30945
30946 2009-12-24  Eric Blake  <ebb9@byu.net>
30947
30948         tests: add signature checks
30949         * tests/signature.h (SIGNATURE_CHECK): New file.
30950         * modules/atexit-tests (Files): Use it.
30951         * modules/btowc-tests (Files): Likewise.
30952         * modules/canonicalize-lgpl-tests (Files): Likewise.
30953         * modules/ceilf-tests (Files): Likewise.
30954         * modules/ceill-tests (Files): Likewise.
30955         * modules/chown-tests (Files): Likewise.
30956         * modules/dprintf-posix-tests (Files): Likewise.
30957         * modules/dup2-tests (Files): Likewise.
30958         * modules/dup3-tests (Files): Likewise.
30959         * modules/duplocale-tests (Files): Likewise.
30960         * modules/fchdir-tests (Files): Likewise.
30961         * modules/fcntl-tests (Files): Likewise.
30962         * modules/fdopendir-tests (Files): Likewise.
30963         * modules/fflush-tests (Files): Likewise.
30964         * modules/flock-tests (Files): Likewise.
30965         * modules/floorf-tests (Files): Likewise.
30966         * modules/floorl-tests (Files): Likewise.
30967         * modules/fnmatch-tests (Files): Likewise.
30968         * modules/fopen-tests (Files): Likewise.
30969         * modules/fprintf-posix-tests (Files): Likewise.
30970         * modules/freopen-tests (Files): Likewise.
30971         * modules/frexp-nolibm-tests (Files): Likewise.
30972         * modules/frexp-tests (Files): Likewise.
30973         * modules/frexpl-nolibm-tests (Files): Likewise.
30974         * modules/frexpl-tests (Files): Likewise.
30975         * modules/fseek-tests (Files): Likewise.
30976         * modules/fseeko-tests (Files): Likewise.
30977         * modules/fsync-tests (Files): Likewise.
30978         * modules/ftell-tests (Files): Likewise.
30979         * modules/ftello-tests (Files): Likewise.
30980         * modules/futimens-tests (Files): Likewise.
30981         * modules/getaddrinfo-tests (Files): Likewise.
30982         * modules/getcwd-tests (Files): Likewise.
30983         * modules/getdelim-tests (Files): Likewise.
30984         * modules/getdtablesize-tests (Files): Likewise.
30985         * modules/getgroups-tests (Files): Likewise.
30986         * modules/gethostname-tests (Files): Likewise.
30987         * modules/getline-tests (Files): Likewise.
30988         * modules/getopt-posix-tests (Files): Likewise.
30989         * modules/gettimeofday-tests (Files): Likewise.
30990         * modules/glob-tests (Files): Likewise.
30991         * modules/iconv-tests (Files): Likewise.
30992         * modules/inet_ntop-tests (Files): Likewise.
30993         * modules/inet_pton-tests (Files): Likewise.
30994         * modules/isblank-tests (Files): Likewise.
30995         * modules/lchown-tests (Files): Likewise.
30996         * modules/ldexpl-tests (Files): Likewise.
30997         * modules/link-tests (Files): Likewise.
30998         * modules/linkat-tests (Files): Likewise.
30999         * modules/lseek-tests (Files): Likewise.
31000         * modules/lstat-tests (Files): Likewise.
31001         * modules/mbrtowc-tests (Files): Likewise.
31002         * modules/mbsinit-tests (Files): Likewise.
31003         * modules/mbsnrtowcs-tests (Files): Likewise.
31004         * modules/mbsrtowcs-tests (Files): Likewise.
31005         * modules/memchr-tests (Files): Likewise.
31006         * modules/memcmp-tests (Files): Likewise.
31007         * modules/memmem-tests (Files): Likewise.
31008         * modules/memrchr-tests (Files): Likewise.
31009         * modules/mkdir-tests (Files): Likewise.
31010         * modules/mkfifo-tests (Files): Likewise.
31011         * modules/mkfifoat-tests (Files): Likewise.
31012         * modules/mknod-tests (Files): Likewise.
31013         * modules/nanosleep-tests (Files): Likewise.
31014         * modules/nl_langinfo-tests (Files): Likewise.
31015         * modules/obstack-printf-tests (Files): Likewise.
31016         * modules/open-tests (Files): Likewise.
31017         * modules/openat-tests (Files): Likewise.
31018         * modules/perror-tests (Files): Likewise.
31019         * modules/pipe2-tests (Files): Likewise.
31020         * modules/poll-tests (Files): Likewise.
31021         * modules/popen-tests (Files): Likewise.
31022         * modules/posix_spawn-tests (Files): Likewise.
31023         * modules/posix_spawnp-tests (Files): Likewise.
31024         * modules/pread-tests (Files): Likewise.
31025         * modules/printf-posix-tests (Files): Likewise.
31026         * modules/pty-tests (Files): Likewise.
31027         * modules/random_r-tests (Files): Likewise.
31028         * modules/rawmemchr-tests (Files): Likewise.
31029         * modules/readlink-tests (Files): Likewise.
31030         * modules/remove-tests (Files): Likewise.
31031         * modules/rename-tests (Files): Likewise.
31032         * modules/renameat-tests (Files): Likewise.
31033         * modules/rmdir-tests (Files): Likewise.
31034         * modules/round-tests (Files): Likewise.
31035         * modules/roundf-tests (Files): Likewise.
31036         * modules/roundl-tests (Files): Likewise.
31037         * modules/select-tests (Files): Likewise.
31038         * modules/setenv-tests (Files): Likewise.
31039         * modules/sigaction-tests (Files): Likewise.
31040         * modules/sleep-tests (Files): Likewise.
31041         * modules/snprintf-posix-tests (Files): Likewise.
31042         * modules/snprintf-tests (Files): Likewise.
31043         * modules/sprintf-posix-tests (Files): Likewise.
31044         * modules/stat-tests (Files): Likewise.
31045         * modules/strcasestr-tests (Files): Likewise.
31046         * modules/strchrnul-tests (Files): Likewise.
31047         * modules/strerror-tests (Files): Likewise.
31048         * modules/strsignal-tests (Files): Likewise.
31049         * modules/strstr-tests (Files): Likewise.
31050         * modules/strtod-tests (Files): Likewise.
31051         * modules/strverscmp-tests (Files): Likewise.
31052         * modules/symlink-tests (Files): Likewise.
31053         * modules/symlinkat-tests (Files): Likewise.
31054         * modules/times-tests (Files): Likewise.
31055         * modules/trunc-tests (Files): Likewise.
31056         * modules/truncf-tests (Files): Likewise.
31057         * modules/truncl-tests (Files): Likewise.
31058         * modules/tsearch-tests (Files): Likewise.
31059         * modules/uname-tests (Files): Likewise.
31060         * modules/unlink-tests (Files): Likewise.
31061         * modules/unsetenv-tests (Files): Likewise.
31062         * modules/usleep-tests (Files): Likewise.
31063         * modules/utimensat-tests (Files): Likewise.
31064         * modules/vasprintf-tests (Files): Likewise.
31065         * modules/vdprintf-posix-tests (Files): Likewise.
31066         * modules/vfprintf-posix-tests (Files): Likewise.
31067         * modules/vprintf-posix-tests (Files): Likewise.
31068         * modules/vsnprintf-posix-tests (Files): Likewise.
31069         * modules/vsnprintf-tests (Files): Likewise.
31070         * modules/vsprintf-posix-tests (Files): Likewise.
31071         * modules/wcrtomb-tests (Files): Likewise.
31072         * modules/wcsnrtombs-tests (Files): Likewise.
31073         * modules/wcsrtombs-tests (Files): Likewise.
31074         * modules/wcwidth-tests (Files): Likewise.
31075         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31076         * tests/test-isinf.c (isinf): Likewise.
31077         * tests/test-isnan.c (isnan): Likewise.
31078         * tests/test-signbit.c (signbit): Likewise.
31079         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31080         declaration, either as macro or with correct signature.
31081         (select): Ensure function under test is declared with correct
31082         signature in correct header.
31083         * tests/test-atexit.c (atexit): Likewise.
31084         * tests/test-btowc.c (btowc): Likewise.
31085         * tests/test-canonicalize-lgpl.c (realpath)
31086         (canonicalize_file_name): Likewise.
31087         * tests/test-ceilf1.c (ceilf): Likewise.
31088         * tests/test-ceill.c (ceill): Likewise.
31089         * tests/test-chown.c (chown): Likewise.
31090         * tests/test-dprintf-posix.c (dprintf): Likewise.
31091         * tests/test-dup2.c (dup2): Likewise.
31092         * tests/test-dup3.c (dup3): Likewise.
31093         * tests/test-duplocale.c (duplocale): Likewise.
31094         * tests/test-fchdir.c (fchdir): Likewise.
31095         * tests/test-fchownat.c (fchownat): Likewise.
31096         * tests/test-fcntl.c (fcntl): Likewise.
31097         * tests/test-fdopendir.c (fdopendir): Likewise.
31098         * tests/test-fflush.c (fflush): Likewise.
31099         * tests/test-flock.c (flock): Likewise.
31100         * tests/test-floorf1.c (floorf): Likewise.
31101         * tests/test-floorl.c (floorl): Likewise.
31102         * tests/test-fnmatch.c (fnmatch): Likewise.
31103         * tests/test-fopen.c (fopen): Likewise.
31104         * tests/test-fprintf-posix.c (fprintf): Likewise.
31105         * tests/test-freopen.c (freopen): Likewise.
31106         * tests/test-frexp.c (frexp): Likewise.
31107         * tests/test-frexpl.c (frexpl): Likewise.
31108         * tests/test-fseek.c (fseek): Likewise.
31109         * tests/test-fseeko.c (fseeko): Likewise.
31110         * tests/test-fstatat.c (fstatat): Likewise.
31111         * tests/test-fsync.c (fsync): Likewise.
31112         * tests/test-ftell.c (ftell): Likewise.
31113         * tests/test-ftello.c (ftello): Likewise.
31114         * tests/test-futimens.c (futimens): Likewise.
31115         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31116         (gai_strerror): Likewise.
31117         * tests/test-getcwd.c (getcwd): Likewise.
31118         * tests/test-getdelim.c (getdelim): Likewise.
31119         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31120         * tests/test-getgroups.c (getgroups): Likewise.
31121         * tests/test-gethostname.c (gethostname): Likewise.
31122         * tests/test-getline.c (getline): Likewise.
31123         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31124         Likewise.
31125         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31126         * tests/test-glob.c (glob, globfree): Likewise.
31127         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31128         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31129         * tests/test-inet_pton.c (inet_pton): Likewise.
31130         * tests/test-isblank.c (isblank): Likewise.
31131         * tests/test-lchown.c (lchown): Likewise.
31132         * tests/test-ldexpl.c (ldexpl): Likewise.
31133         * tests/test-link.c (link): Likewise.
31134         * tests/test-linkat.c (linkat): Likewise.
31135         * tests/test-lseek.c (lseek): Likewise.
31136         * tests/test-lstat.c (lstat): Likewise.
31137         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31138         * tests/test-mbsinit.c (mbsinit): Likewise.
31139         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31140         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31141         * tests/test-memchr.c (memchr): Likewise.
31142         * tests/test-memcmp.c (memcmp): Likewise.
31143         * tests/test-memmem.c (memmem): Likewise.
31144         * tests/test-memrchr.c (memrchr): Likewise.
31145         * tests/test-mkdir.c (mkdir): Likewise.
31146         * tests/test-mkdirat.c (mkdirat): Likewise.
31147         * tests/test-mkfifo.c (mkfifo): Likewise.
31148         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31149         * tests/test-mknod.c (mknod): Likewise.
31150         * tests/test-nanosleep.c (nanosleep): Likewise.
31151         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31152         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31153         Likewise.
31154         * tests/test-open.c (open): Likewise.
31155         * tests/test-openat.c (openat): Likewise.
31156         * tests/test-perror.c (perror): Likewise.
31157         * tests/test-pipe2.c (pipe2): Likewise.
31158         * tests/test-poll.c (poll): Likewise.
31159         * tests/test-popen.c (popen, pclose): Likewise.
31160         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31161         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31162         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31163         (posix_spawn_file_actions_destroy)
31164         (posix_spawn_file_actions_addclose)
31165         (posix_spawn_file_actions_addopen)
31166         (posix_spawn_file_actions_adddup2): Likewise.
31167         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31168         * tests/test-pread.c (pread): Likewise.
31169         * tests/test-printf-posix.c (printf): Likewise.
31170         * tests/test-pty.c (openpty, forkpty): Likewise.
31171         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31172         (random_r): Likewise.
31173         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31174         * tests/test-readlink.c (readlink): Likewise.
31175         * tests/test-remove.c (remove): Likewise.
31176         * tests/test-rename.c (rename): Likewise.
31177         * tests/test-renameat.c (renameat): Likewise.
31178         * tests/test-rmdir.c (rmdir): Likewise.
31179         * tests/test-round1.c (round): Likewise.
31180         * tests/test-roundf1.c (roundf): Likewise.
31181         * tests/test-roundl.c (roundl): Likewise.
31182         * tests/test-setenv.c (setenv): Likewise.
31183         * tests/test-sigaction.c (sigaction): Likewise.
31184         * tests/test-sleep.c (sleep): Likewise.
31185         * tests/test-snprintf.c (snprintf): Likewise.
31186         * tests/test-sprintf-posix.c (sprintf): Likewise.
31187         * tests/test-stat.c (stat): Likewise.
31188         * tests/test-stpncpy.c (stpncpy): Likewise.
31189         * tests/test-strcasestr.c (strcasestr): Likewise.
31190         * tests/test-strchrnul.c (strchrnul): Likewise.
31191         * tests/test-strerror.c (strerror): Likewise.
31192         * tests/test-strsignal.c (strsignal): Likewise.
31193         * tests/test-strstr.c (strstr): Likewise.
31194         * tests/test-strtod.c (strtod): Likewise.
31195         * tests/test-strverscmp.c (strverscmp): Likewise.
31196         * tests/test-symlink.c (symlink): Likewise.
31197         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31198         * tests/test-times.c (times): Likewise.
31199         * tests/test-trunc1.c (trunc): Likewise.
31200         * tests/test-truncf1.c (truncf): Likewise.
31201         * tests/test-truncl.c (truncl): Likewise.
31202         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31203         Likewise.
31204         * tests/test-uname.c (uname): Likewise.
31205         * tests/test-unlink.c (unlink): Likewise.
31206         * tests/test-unlinkat.c (unlinkat): Likewise.
31207         * tests/test-unsetenv.c (unsetenv): Likewise.
31208         * tests/test-usleep.c (usleep): Likewise.
31209         * tests/test-utimensat.c (utimensat): Likewise.
31210         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31211         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31212         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31213         * tests/test-vprintf-posix.c (vprintf): Likewise.
31214         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31215         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31216         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31217         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31218         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31219         * tests/test-wcwidth.c (wcwidth): Likewise.
31220
31221         build: pull in conditional headers during GNULIB_POSIXCHECK
31222         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31223         definitions from any conditionally-included headers.
31224         * lib/stdlib.in.h (includes): Likewise.
31225         * lib/unistd.in.h (includes): Likewise.
31226
31227 2009-12-24  Bruno Haible  <bruno@clisp.org>
31228
31229         * tests/test-argv-iter.c: Include header file being tested immediately
31230         after config.h.
31231         * tests/test-base64.c: Likewise.
31232         * tests/test-flock.c: Likewise.
31233         * tests/test-fsync.c: Likewise.
31234         * tests/test-getdate.c: Likewise.
31235         * tests/test-getndelim2.c: Likewise.
31236         * tests/test-isfinite.c: Likewise.
31237         * tests/test-isinf.c: Likewise.
31238         * tests/test-strerror.c: Likewise.
31239         * tests/test-strsignal.c: Likewise.
31240
31241 2009-12-23  Eric Blake  <ebb9@byu.net>
31242
31243         unistd: work around cygwin bug
31244         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31245         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31246         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31247
31248 2009-12-23  Bruno Haible  <bruno@clisp.org>
31249
31250         localename: More tests.
31251         * tests/test-localename.c (SIZEOF): New macro.
31252         (categories): New variable.
31253         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31254         test_locale_name_default): Add test w.r.t. thread locale.
31255         (test_locale_name_thread): New function.
31256         (main): Invoke it.
31257
31258         localename: Make aware of thread locale.
31259         * lib/localename.h (gl_locale_name_thread): New declaration.
31260         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31261         behaviour with respect to thread locale.
31262         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31263         <langinfo.h>, glthread/lock.h.
31264         (SIZE_BITS): New macro.
31265         (string_hash): New function.
31266         (struct hash_node): New type.
31267         (HASH_TABLE_SIZE): New macro.
31268         (struniq_hash_table, struniq_lock): New variables.
31269         (struniq): New function.
31270         (gl_locale_name_thread): New function.
31271         (gl_locale_name): Invoke it.
31272         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31273         * modules/localename (Depends-on): Add lock.
31274         Reported by Mike Gran <spk121@yahoo.com>.
31275
31276 2009-12-23  Eric Blake  <ebb9@byu.net>
31277
31278         va-args: new module
31279         * modules/va-args: New file.
31280         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31281         * MODULES.html.sh (Core language properties): Mention it.
31282
31283         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31284         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31285         named alias for __attribute__((__unused__)).
31286         * lib/chown.c: Update client.
31287         * lib/fchmodat.c: Likewise.
31288         * lib/fts.c: Likewise.
31289         * lib/getdate.y: Likewise.
31290         * lib/getgroups.c: Likewise.
31291         * lib/getopt.c: Likewise.
31292         * lib/getugroups.c: Likewise.
31293         * lib/mkdir.c: Likewise.
31294         * lib/mkfifo.c: Likewise.
31295         * lib/mkfifoat.c: Likewise.
31296         * lib/mknod.c: Likewise.
31297         * lib/mknodat.c: Likewise.
31298         * lib/readlink.c: Likewise.
31299         * lib/se-context.in.h: Likewise.
31300         * lib/se-selinux.in.h: Likewise.
31301         * lib/sockets.c: Likewise.
31302         * lib/symlink.c: Likewise.
31303         * lib/symlinkat.c: Likewise.
31304         * lib/unicodeio.c: Likewise.
31305         * lib/unistr.h: Likewise.
31306         * tests/test-areadlink.c: Likewise.
31307         * tests/test-areadlinkat.c: Likewise.
31308         * tests/test-filenamecat.c: Likewise.
31309         * tests/test-fseeko.c: Likewise.
31310         * tests/test-ftello.c: Likewise.
31311         * tests/test-getdate.c: Likewise.
31312         * tests/test-getgroups.c: Likewise.
31313         * tests/test-gethostname.c: Likewise.
31314         * tests/test-quotearg.c: Likewise.
31315         * tests/test-version-etc.c: Likewise.
31316         * tests/test-xalloc-die.c: Likewise.
31317         * tests/test-xfprintf-posix.c: Likewise.
31318         * tests/test-xprintf-posix.c: Likewise.
31319         * tests/test-xvasprintf.c: Likewise.
31320
31321         tests: avoid compiler warnings
31322         * tests/test-fcntl.c (main): Delete unused parameters.
31323         * tests/test-freopen-safer.c (main): Likewise.
31324         * tests/test-xalloc-die.c (main): Mark unused parameters.
31325         * tests/test-fseeko.c (main): Likewise.
31326         * tests/test-ftello.c (main): Likewise.
31327         * tests/test-nanosleep.c (main): Avoid declaration warning.
31328         * tests/test-sleep.c (main): Likewise.
31329         * tests/test-unsetenv.c (main): Silence warning about string
31330         literal.
31331         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31332
31333 2009-12-23  Bruno Haible  <bruno@clisp.org>
31334
31335         * tests/test-localename.c (test_locale_name): New function, extracted
31336         from main. Also test mixed situations.
31337         (test_locale_name_posix, test_locale_name_environ,
31338         test_locale_name_default): New functions.
31339         (main): Invoke them all.
31340         * modules/localename-tests (configure.ac): Test for newlocale.
31341
31342 2009-12-23  Bruno Haible  <bruno@clisp.org>
31343
31344         unistd: Ensure getcwd gets declared before being overridden.
31345         * lib/unistd.in.h: Conditionally include <io.h>.
31346
31347 2009-12-22  Bruno Haible  <bruno@clisp.org>
31348
31349         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31350         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31351         (gl_WCHAR_H): Invoke it.
31352         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31353         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31354         Reported by Karl Berry <karl@freefriends.org>.
31355
31356 2009-12-22  Eric Blake  <ebb9@byu.net>
31357
31358         math, unistd: avoid redundant includes
31359         * lib/math.in.h (isnan): No need to re-include <math.h>.
31360         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31361
31362         getsubopt: work around cygwin bug
31363         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31364         avoid conflicting with system getsubopt.
31365         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31366         bug.
31367
31368         getopt: synchronize from glibc
31369         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31370         parameter order.  Adjust all callers.
31371         (_getopt_internal_r, main): Adjust quoting in error messages.
31372         Drop considerations for outdated POSIX 1003.2 error message.
31373         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31374         callers.
31375         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31376
31377         test-getopt: test stderr behavior
31378         * modules/getopt-posix-tests (Depends-on): Add dup2.
31379         * tests/test-getopt.c (ASSERT): Avoid stderr.
31380         (main): Move stderr to a temporary file.
31381         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31382         Instead, add parameter to inform caller if output occurred.
31383         (test_getopt): Adjust all existing tests to expect silence, and
31384         add new tests of leading ":".
31385         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31386         glibc shortcomings with leading "-:" or "+:" in optstring.
31387         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31388         Likewise.
31389         * doc/posix-functions/getopt.texi (getopt): Likewise.
31390
31391         test-getopt: enhance test
31392         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31393         supports optind=0.
31394         * tests/test-getopt.c (OPTIND_MIN): Move...
31395         * tests/test-getopt.h (OPTIND_MIN): ...here.
31396         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31397         Require that optind=0 works, since modern BSD supports it in
31398         addition to optreset, and since coreutils expects it.
31399         (test_getopt_long_only): New test.
31400         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31401         glibc shortcomings with 'W;', and enforcement of optind=0.
31402         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31403         Likewise.
31404
31405 2009-12-21  Bruno Haible  <bruno@clisp.org>
31406
31407         localename: Improvements for MacOS X and Cygwin.
31408         * lib/localename.h (gl_locale_name_environ): New declaration.
31409         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31410         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31411         (gl_locale_name_posix): Invoke it.
31412         (gl_locale_name_default): Add comments. Use Windows native API also on
31413         Cygwin.
31414
31415 2009-12-21  Bruno Haible  <bruno@clisp.org>
31416
31417         Update list of Win32 locale ids.
31418         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31419         (LANG_SAMI): Renamed from LANG_SAAMI.
31420         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31421         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31422         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31423         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31424         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31425         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31426         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31427         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31428         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31429         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31430         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31431         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31432         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31433         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31434         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31435         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31436         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31437         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31438         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31439         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31440         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31441         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31442         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31443         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31444         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31445         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31446         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31447         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31448         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31449         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31450         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31451         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31452         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31453         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31454         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31455         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31456         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31457         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31458         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31459         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31460         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31461         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31462         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31463         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31464         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31465         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31466         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31467         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31468         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31469         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31470         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31471         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31472         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31473         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31474         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31475         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31476         Add more languages and countries for Sami, Sorbian. Add more countries
31477         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31478         for Pashto. Change country for Syriac, Tswana.
31479
31480 2009-12-21  Eric Blake  <ebb9@byu.net>
31481
31482         test-utimens: avoid spurious failure
31483         * tests/test-chown.h (nap): Factor...
31484         * tests/nap.h: ...into new file.
31485         * tests/test-lchown.h (nap): Avoid duplication.
31486         * tests/test-utimens-common.h (nap): Use shared implementation,
31487         necessary on file systems with 1-second resolution.
31488         * modules/chown-tests (Files): Include new file.
31489         * modules/fdutimensat-tests (Files): Likewise.
31490         * modules/futimens-tests (Files): Likewise.
31491         * modules/lchown-tests (Files): Likewise.
31492         * modules/openat-tests (Files): Likewise.
31493         * modules/utimens-tests (Files): Likewise.
31494         * modules/utimensat-tests (Files): Likewise.
31495
31496 2009-12-19  Eric Blake  <ebb9@byu.net>
31497
31498         futimens, utimensat: work around Linux bug
31499         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31500         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31501         * lib/utimensat.c (rpl_utimensat): Work around it.
31502         * lib/futimens.c (rpl_futimens): Adjust comment.
31503
31504         utimens: work around Linux ctime bug
31505         * lib/utimens.c (detect_ctime_bug): New helper function.
31506         (update_timespec): Differentiate between workaround needed for
31507         this bug vs. what is needed for systems that lack utimensat.
31508         (fdutimens, lutimens): Work around bug.
31509
31510         utimens: check for ctime update
31511         * tests/test-utimens-common.h (check_ctime): Define.
31512         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31513         * tests/test-futimens.h (test_futimens): Likewise.
31514         * tests/test-lutimens.h (test_lutimens): Likewise.
31515         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31516         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31517
31518 2009-12-19  Bruno Haible  <bruno@clisp.org>
31519
31520         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31521         * tests/test-dprintf-posix2.sh: New file.
31522         * tests/test-dprintf-posix2.c: New file.
31523         * modules/dprintf-posix-tests (Files): Add them.
31524         (configure.ac): Check for getrlimit and setrlimit.
31525         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31526
31527 2009-12-19  Bruno Haible  <bruno@clisp.org>
31528
31529         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31530         * tests/test-fprintf-posix3.sh: New file.
31531         * tests/test-fprintf-posix3.c: New file.
31532         * modules/fprintf-posix-tests (Files): Add them.
31533         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31534
31535 2009-12-19  Eric Blake  <ebb9@byu.net>
31536
31537         dirfd: fix prototype
31538         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31539         * lib/dirfd.c (dirfd): Likewise.
31540
31541         canonicalize: reduce memory usage
31542         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31543         allocation to size.
31544         Reported by Solar Designer <solar@openwall.com>.
31545
31546 2009-12-19  Bruno Haible  <bruno@clisp.org>
31547
31548         New module attribute 'Applicability'.
31549         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31550         * gnulib-tool: New option --extract-applicability.
31551         (func_usage): Document it.
31552         (sed_extract_prog): Recognize it.
31553         (func_get_applicability): New function.
31554         (func_import): Generalize handling of 'link-warning' module.
31555         * modules/link-warning (Applicability): New section.
31556         * modules/arg-nonnull (Applicability): New section.
31557         Repoted by Simon Josefsson <simon@josefsson.org>.
31558
31559 2009-12-19  Bruno Haible  <bruno@clisp.org>
31560
31561         fflush: tweak
31562         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31563         * lib/fseeko.c (rpl_fseeko): Likewise.
31564
31565 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31566
31567         * lib/gl_list.h: Fix typo in comment.
31568
31569 2009-12-16  Eric Blake  <ebb9@byu.net>
31570
31571         fcntl: use to simplify other modules
31572         * modules/cloexec (Depends-on): Add fcntl.
31573         * modules/fchdir (Depends-on): Likewise.
31574         * modules/fd-safer-flag (Depends-on): Likewise.
31575         * modules/unistd-safer (Depends-on): Likewise.
31576         * modules/dup3 (configure.ac): Set module indicator.
31577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31578         missing.
31579         * lib/fchdir.c (_gl_register_dup): Fix comment.
31580         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31581         * lib/dup-safer.c (dup_safer): Likewise.
31582         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31583         * lib/dup3.c (dup3): Likewise.
31584         * tests/test-fchdir.c (main): Enhance test.
31585         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31586
31587         fcntl: port portions of fcntl to mingw
31588         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31589         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31590         replacement for mingw.
31591         * modules/fcntl (Description): Update.
31592         (Depends-on): Add dup2.
31593         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31594         * modules/fcntl-h (Makefile.am): Substitute it.
31595         * lib/fcntl.in.h (fcntl): Update declaration.
31596         (F_DUPFD, F_GETFD): New macros, when needed.
31597         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31598         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31599         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31600         we now guarantee.
31601
31602         fcntl: work around cygwin bug in F_DUPFD
31603         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31604         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31605         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31606         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31607         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31608
31609         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31610         * modules/fcntl (Files): List new files.
31611         (configure.ac): Run a test.
31612         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31613         * lib/fcntl.c (rpl_fcntl): Likewise.
31614         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31615         (gl_FCNTL_H): Always replace fcntl.h.
31616         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31617         * lib/fcntl.in.h (fcntl): Declare replacement.
31618         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31619         needed, plus a witness.
31620         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31621         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31622         * tests/test-fcntl.c: New file.
31623         * modules/fcntl-tests: Likewise.
31624
31625         binary-io: avoid potential compilation warning
31626         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31627         directives.
31628
31629         fflush: avoid compilation error on NetBSD
31630         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31631         between off_t and fpos_t, since the latter is sometimes a struct.
31632         * lib/fseeko.c (rpl_fseeko): Likewise.
31633         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31634
31635 2009-12-15  Eric Blake  <ebb9@byu.net>
31636
31637         fcntl-h, stdio, sys_ioctl: fix declarations
31638         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31639         function must not take arguments.
31640         * lib/sys_ioctl.in.h (ioctl): Likewise.
31641         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31642         (open): Add a link warning.
31643
31644 2009-12-15  Jim Meyering  <meyering@redhat.com>
31645
31646         areadlink, areadlink-with-size: relax license to LGPLv2+
31647         * modules/areadlink (License): Relax to LGPLv2+.
31648         * modules/areadlink-with-size (License): Likewise.
31649
31650 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31651             Bruno Haible  <bruno@clisp.org>
31652
31653         *printf: Fix memory leak.
31654         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31655         * lib/vfprintf.c (vfprintf): Likewise.
31656         * lib/dprintf.c (dprintf): Likewise.
31657         * lib/vdprintf.c (vdprintf): Likewise.
31658
31659 2009-12-14  Eric Blake  <ebb9@byu.net>
31660
31661         accept4: adjust module dependencies
31662         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31663
31664         utimens: one more try at avoiding compiler warning
31665         * lib/utimens.c (lutimens): Lower scope of result.
31666
31667 2009-12-13  Bruno Haible  <bruno@clisp.org>
31668
31669         Move the malloc checking from module 'list' to new module 'xlist'.
31670         * modules/xlist: New file.
31671         * lib/gl_xlist.h: New file.
31672         * lib/gl_xlist.c: New file.
31673         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31674         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31675         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31676         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31677         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31678         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31679         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31680         gl_sortedlist_nx_add): New declarations.
31681         (struct gl_list_implementation): Rename and change methods accordingly.
31682         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31683         (gl_list_nx_create): Renamed from gl_list_create.
31684         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31685         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31686         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31687         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31688         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31689         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31690         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31691         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31692         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31693         gl_list_create_empty.
31694         (gl_list_nx_create): Renamed from gl_list_create.
31695         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31696         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31697         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31698         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31699         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31700         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31701         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31702         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31703         * lib/gl_array_list.c: Don't include xalloc.h.
31704         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31705         NULL upon out-of-memory.
31706         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31707         out-of-memory.
31708         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31709         Change return type to 'int'.
31710         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31711         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31712         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31713         upon out-of-memory.
31714         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31715         upon out-of-memory.
31716         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31717         upon out-of-memory.
31718         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31719         upon out-of-memory.
31720         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31721         out-of-memory.
31722         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31723         Update.
31724         (gl_array_list_implementation): Update.
31725         * lib/gl_carray_list.c: Don't include xalloc.h.
31726         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31727         Return NULL upon out-of-memory.
31728         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31729         out-of-memory.
31730         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31731         Change return type to 'int'.
31732         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31733         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31734         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31735         upon out-of-memory.
31736         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31737         upon out-of-memory.
31738         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31739         out-of-memory.
31740         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31741         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31742         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31743         Update.
31744         (gl_carray_list_implementation): Update.
31745         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31746         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31747         gl_linked_create_empty. Return NULL upon out-of-memory.
31748         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31749         out-of-memory.
31750         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31751         Change return type to 'int'. Return -1 upon out-of-memory.
31752         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31753         out-of-memory.
31754         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31755         upon out-of-memory.
31756         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31757         upon out-of-memory.
31758         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31759         NULL upon out-of-memory.
31760         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31761         upon out-of-memory.
31762         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31763         out-of-memory.
31764         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31765         Update.
31766         * lib/gl_linked_list.c: Don't include xalloc.h.
31767         (gl_linked_list_implementation): Update.
31768         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31769         (add_to_bucket): Change return type to 'int'.
31770         (gl_linkedhash_list_implementation): Update.
31771         * lib/gl_anytree_list1.h (free_subtree): New function.
31772         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31773         gl_tree_create_empty. Return NULL upon out-of-memory.
31774         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31775         Change return type to 'int'. Return -1 upon out-of-memory.
31776         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31777         out-of-memory.
31778         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31779         (gl_tree_remove_node): New function, moved here from
31780         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31781         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31782         Update.
31783         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31784         malloc, not xmalloc. Return NULL upon out-of-memory.
31785         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31786         out-of-memory.
31787         (gl_tree_remove_node_from_tree): New function, extracted from
31788         gl_tree_remove_node.
31789         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31790         upon out-of-memory.
31791         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31792         out-of-memory.
31793         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31794         upon out-of-memory.
31795         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31796         upon out-of-memory.
31797         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31798         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31799         not xmalloc. Return NULL upon out-of-memory.
31800         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31801         out-of-memory.
31802         (gl_tree_remove_node_from_tree): New function, extracted from
31803         gl_tree_remove_node.
31804         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31805         upon out-of-memory.
31806         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31807         out-of-memory.
31808         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31809         upon out-of-memory.
31810         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31811         upon out-of-memory.
31812         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31813         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31814         gl_anytree_list1.h before gl_anyavltree_list2.h.
31815         (gl_avltree_list_implementation): Update.
31816         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31817         gl_anytree_list1.h before gl_anyavltree_list2.h.
31818         (gl_rbtree_list_implementation): Update.
31819         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31820         Change return type to 'int'. Return -1 upon out-of-memory. Use
31821         __builtin_expect.
31822         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31823         (gl_avltreehash_list_implementation): Update.
31824         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31825         (gl_rbtreehash_list_implementation): Update.
31826         * modules/array-list (Depends-on): Remove xalloc.
31827         * modules/carray-list (Depends-on): Likewise.
31828         * modules/linked-list (Depends-on): Likewise.
31829         * modules/linkedhash-list (Depends-on): Likewise.
31830         * modules/avltree-list (Depends-on): Likewise.
31831         * modules/rbtree-list (Depends-on): Likewise.
31832         * modules/avltreehash-list (Depends-on): Likewise.
31833         * modules/rbtreehash-list (Depends-on): Likewise.
31834
31835         * modules/xsublist: New file.
31836         * lib/gl_xsublist.h: New file.
31837         * lib/gl_xsublist.c: New file.
31838         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31839         (gl_sublist_nx_create): New declaration.
31840         * lib/gl_sublist.c: Don't include xalloc.h.
31841         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31842         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31843         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31844         Change return type to 'int'. Return -1 upon out-of-memory.
31845         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31846         upon out-of-memory.
31847         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31848         NULL upon out-of-memory.
31849         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31850         upon out-of-memory.
31851         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31852         NULL upon out-of-memory.
31853         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31854         NULL upon out-of-memory.
31855         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31856         upon out-of-memory.
31857         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31858         (gl_sublist_list_implementation): Update.
31859         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31860         upon out-of-memory.
31861         * modules/sublist (Depends-on): Remove xalloc.
31862
31863         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31864         * tests/test-carray_list.c: Likewise.
31865         * tests/test-linked_list.c: Likewise.
31866         * tests/test-linkedhash_list.c: Likewise.
31867         * tests/test-avltree_list.c: Likewise.
31868         * tests/test-rbtree_list.c: Likewise.
31869         * tests/test-avltreehash_list.c: Likewise.
31870         * tests/test-rbtreehash_list.c: Likewise.
31871         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31872         * modules/carray-list-tests (Makefile.am): Likewise.
31873         * modules/linked-list-tests (Makefile.am): Likewise.
31874         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31875         * modules/avltree-list-tests (Makefile.am): Likewise.
31876         * modules/rbtree-list-tests (Makefile.am): Likewise.
31877         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31878         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31879
31880         * NEWS: Mention the changes.
31881
31882         * lib/clean-temp.c: Include gl_xlist.h.
31883         * modules/clean-temp (Depends-on): Add xlist.
31884
31885         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31886         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31887
31888         * tests/test-array_oset.c: Include gl_xlist.h.
31889         * modules/array-oset-tests (Depends-on): Add xlist.
31890
31891         Reported by José E. Marchesi <jemarch@gnu.org>.
31892
31893 2009-12-13  Bruno Haible  <bruno@clisp.org>
31894
31895         Move the malloc checking from module 'oset' to new module 'xoset'.
31896         * modules/xoset: New file.
31897         * lib/gl_xoset.h: New file.
31898         * lib/gl_xoset.c: New file.
31899         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31900         declarations.
31901         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31902         (struct gl_oset_implementation): Rename and change methods accordingly.
31903         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31904         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31905         'int'. Mark as __warn_unused_result__.
31906         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31907         gl_oset_create_empty.
31908         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31909         'int'.
31910         * lib/gl_array_oset.c: Don't include xalloc.h.
31911         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31912         malloc, not xmalloc.
31913         (grow): Change return type to 'int'. Don't call xalloc_die.
31914         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31915         to 'int'.
31916         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31917         'int'.
31918         (gl_array_oset_implementation): Update.
31919         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31920         gl_tree_create_empty.
31921         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31922         'int'.
31923         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31924         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31925         xmalloc.
31926         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31927         not xmalloc.
31928         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31929         xmalloc.
31930         (gl_avltree_oset_implementation): Update.
31931         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31932         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31933         xmalloc.
31934         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31935         not xmalloc.
31936         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31937         xmalloc.
31938         (gl_rbtree_oset_implementation): Update.
31939         * modules/array-oset (Depends-on): Remove xalloc.
31940         * modules/avltree-oset (Depends-on): Likewise.
31941         * modules/rbtree-oset (Depends-on): Likewise.
31942         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31943         * tests/test-avltree_oset.c: Likewise.
31944         * tests/test-rbtree_oset.c: Likewise.
31945         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31946         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31947         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31948         * NEWS: Mention the change.
31949
31950 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31951
31952         maint.mk: allow a project to override release-prep commands
31953         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31954         commands into a new rule.
31955         (release-prep): New rule.
31956         (release-prep-hook): New overridable variable.
31957
31958 2009-12-13  Bruno Haible  <bruno@clisp.org>
31959
31960         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31961
31962 2009-12-13  Jim Meyering  <meyering@redhat.com>
31963
31964         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31965         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31966
31967 2009-12-12  Bruno Haible  <bruno@clisp.org>
31968
31969         duplocale: Tweak.
31970         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31971
31972 2009-12-12  Karl Berry  <karl@gnu.org>
31973
31974         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31975
31976 2009-12-12  Bruno Haible  <bruno@clisp.org>
31977
31978         * m4/po.m4: Undo incorrect untabification.
31979
31980 2009-12-12  Bruno Haible  <bruno@clisp.org>
31981
31982         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31983         * modules/c-strtod (Depends-on): Add locale.
31984         * modules/c-strtold (Depends-on): Likewise.
31985
31986 2009-12-12  Bruno Haible  <bruno@clisp.org>
31987
31988         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31989
31990 2009-12-11  Eric Blake  <ebb9@byu.net>
31991
31992         setenv: relax requirement in light of POSIX ruling
31993         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31994         not NULL.
31995         * tests/test-setenv.c (main): Relax test.
31996         * tests/test-unsetenv.c (main): Likewise.
31997         * doc/posix-functions/setenv.texi (setenv): Document this.
31998         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31999
32000 2009-12-11  Bruno Haible  <bruno@clisp.org>
32001
32002         New module 'fd-safer-flag'.
32003         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32004         * lib/dup-safer.c (dup_safer_flag): Remove function.
32005         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32006         * lib/fd-safer.c (fd_safer_flag): Remove function.
32007         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32008         * modules/cloexec (configure.ac): Drop indicator macro.
32009         * modules/fd-safer-flag: New file.
32010         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32011         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32012         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32013
32014 2009-12-11  Bruno Haible  <bruno@clisp.org>
32015
32016         Tests for module 'nl_langinfo'.
32017         * modules/nl_langinfo-tests: New file.
32018         * tests/test-nl_langinfo.sh: New file.
32019         * tests/test-nl_langinfo.c: New file.
32020
32021         New module 'nl_langinfo'.
32022         * lib/nl_langinfo.c: New file.
32023         * m4/nl_langinfo.m4: New file.
32024         * modules/nl_langinfo: New file.
32025         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32026
32027 2009-12-11  Bruno Haible  <bruno@clisp.org>
32028
32029         Tests for module 'langinfo'.
32030         * modules/langinfo-tests: New file.
32031         * tests/test-langinfo.c: New file.
32032
32033         New module 'langinfo'.
32034         * lib/langinfo.in.h: New file.
32035         * m4/langinfo_h.m4: New file.
32036         * modules/langinfo: New file.
32037         * doc/posix-headers/langinfo.texi: Mention the new module.
32038
32039 2009-12-11  Bruno Haible  <bruno@clisp.org>
32040
32041         * lib/config.charset: Untabify.
32042
32043 2009-12-11  Bruno Haible  <bruno@clisp.org>
32044
32045         * modules/unistd-safer (configure.ac): Drop indicator macro.
32046
32047 2009-12-11  Bruno Haible  <bruno@clisp.org>
32048
32049         Move pipe2-safer code to its own file.
32050         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32051         * lib/pipe-safer.c (pipe2_safer): Remove function.
32052         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32053         (Makefile.am): Add it to lib_SOURCES.
32054
32055 2009-12-10  Bruno Haible  <bruno@clisp.org>
32056
32057         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32058
32059 2009-12-10  Bruno Haible  <bruno@clisp.org>
32060
32061         Declare which arguments expect non-NULL values, for GCC and clang.
32062         * build-aux/arg-nonnull.h: New file.
32063         * modules/arg-nonnull: New file.
32064         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32065         (inet_ntop, inet_pton): Use it.
32066         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32067         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32068         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32069         (open, openat): Use it.
32070         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32071         (fnmatch): Use it.
32072         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32073         (getopt, getopt_long, getopt_long_only): Use it.
32074         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32075         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32076         Use it.
32077         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32078         (iconv_open): Use it.
32079         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32080         (strtoimax, strtoumax): Use it.
32081         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32082         (duplocale): Use it.
32083         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32084         (frexp, frexpl): Use it.
32085         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32086         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32087         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32088         (tsearch, tfind, tdelete, twalk): Use it.
32089         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32090         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32091         sigpending): Use it.
32092         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32093         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32094         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32095         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32096         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32097         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32098         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32099         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32100         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32101         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32102         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32103         Use it.
32104         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32105         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32106         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32107         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32108         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32109         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32110         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32111         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32112         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32113         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32114         strtoull, unsetenv): Use it.
32115         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32116         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32117         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32118         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32119         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32120         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32121         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32122         (strcasecmp, strncasecmp): Use it.
32123         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32124         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32125         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32126         rpl_setsockopt): Use it.
32127         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32128         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32129         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32130         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32131         (gettimeofday): Use it.
32132         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32133         (times): Use it.
32134         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32135         (uname): Use it.
32136         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32137         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32138         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32139         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32140         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32141         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32142         unlinkat, write): Use it.
32143         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32144         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32145         * lib/argv-iter.h: Include arg-nonnull.h.
32146         (_ATTRIBUTE_NONNULL_): Remove macro.
32147         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32148         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32149         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32150         optimization.
32151         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32152         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32153         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32154         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32155         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32156         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32157         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32158         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32159         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32160         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32161         * modules/dirent (Depends-on): Add arg-nonnull.
32162         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32163         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32164         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32165         * modules/fnmatch (Depends-on): Add arg-nonnull.
32166         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32167         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32168         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32169         * modules/glob (Depends-on): Add arg-nonnull.
32170         (Makefile.am): Insert arg-nonnull.h into glob.h.
32171         * modules/iconv_open (Depends-on): Add arg-nonnull.
32172         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32173         * modules/inttypes (Depends-on): Add arg-nonnull.
32174         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32175         * modules/locale (Depends-on): Add arg-nonnull.
32176         (Makefile.am): Insert arg-nonnull.h into locale.h.
32177         * modules/math (Depends-on): Add arg-nonnull.
32178         (Makefile.am): Insert arg-nonnull.h into math.h.
32179         * modules/netdb (Depends-on): Add arg-nonnull.
32180         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32181         * modules/search (Depends-on): Add arg-nonnull.
32182         (Makefile.am): Insert arg-nonnull.h into search.h.
32183         * modules/signal (Depends-on): Add arg-nonnull.
32184         (Makefile.am): Insert arg-nonnull.h into signal.h.
32185         * modules/spawn (Depends-on): Add arg-nonnull.
32186         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32187         * modules/stdio (Depends-on): Add arg-nonnull.
32188         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32189         * modules/stdlib (Depends-on): Add arg-nonnull.
32190         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32191         * modules/string (Depends-on): Add arg-nonnull.
32192         (Makefile.am): Insert arg-nonnull.h into string.h.
32193         * modules/strings (Depends-on): Add arg-nonnull.
32194         (Makefile.am): Insert arg-nonnull.h into strings.h.
32195         * modules/sys_socket (Depends-on): Add arg-nonnull.
32196         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32197         * modules/sys_stat (Depends-on): Add arg-nonnull.
32198         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32199         * modules/sys_time (Depends-on): Add arg-nonnull.
32200         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32201         * modules/sys_times (Depends-on): Add arg-nonnull.
32202         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32203         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32204         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32205         * modules/time (Depends-on): Add arg-nonnull.
32206         (Makefile.am): Insert arg-nonnull.h into time.h.
32207         * modules/unistd (Depends-on): Add arg-nonnull.
32208         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32209         * modules/wchar (Depends-on): Add arg-nonnull.
32210         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32211         * modules/argv-iter (Depends-on): Add arg-nonnull.
32212         * tests/test-canonicalize.c (null_ptr): New function.
32213         (main): Use it.
32214         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32215         (main): Use it.
32216         * tests/test-memmem.c (null_ptr): New function.
32217         (main): Use it.
32218         Reported by Jim Meyering.
32219
32220 2009-12-10  Bruno Haible  <bruno@clisp.org>
32221
32222         Use spaces for indentation, not tabs.
32223         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32224         * m4/*.m4: Untabify.
32225         * build-aux/*.h: Untabify.
32226         * tests/**/*.[hc]: Untabify.
32227         * README: New section "Indent with spaces, not TABs", based on
32228         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32229         * NEWS: Mention the change.
32230
32231 2009-12-10  Bruno Haible  <bruno@clisp.org>
32232
32233         pty test: Fix link error.
32234         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32235         test_pty_LDADD.
32236
32237 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32238
32239         * modules/pty: New file.
32240         * modules/pty-tests: New file.
32241         * m4/pty.m4: New file.
32242         * tests/test-pty.c: New file.
32243         * doc/glibc-headers/pty.texi: Modified.
32244         * doc/glibc-functions/forkpty.texi: Modified.
32245         * doc/glibc-functions/openpty.texi: Modified.
32246
32247 2009-12-10  Bruno Haible  <bruno@clisp.org>
32248
32249         Avoid syntax error in C++ mode.
32250         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32251
32252 2009-12-10  Bruno Haible  <bruno@clisp.org>
32253
32254         Use sed with option -e.
32255         * gnulib-tool (func_version, func_emit_copyright_notice,
32256         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32257         option -e to sed.
32258         * modules/link-warning (Makefile.am): Likewise.
32259
32260 2009-12-10  Jim Meyering  <meyering@redhat.com>
32261
32262         mgetgroups: do not write bytes beyond end of malloc'd buffer
32263         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32264         username, we call getgroups with a one-element-shorter buffer,
32265         but still told it the length was original, max_n_groups.
32266
32267 2009-12-09  Eric Blake  <ebb9@byu.net>
32268
32269         cloexec: relax license
32270         * modules/cloexec (Maintainer): Add myself.
32271         (License): Use LGPL, not GPL.
32272
32273         link-warning: optimize generation
32274         * modules/link-warning (Makefile.am): Reduce process usage.
32275
32276 2009-12-09  Bruno Haible  <bruno@clisp.org>
32277
32278         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32279         workaround was added on 2009-11-17.
32280
32281 2009-12-09  Jim Meyering  <meyering@redhat.com>
32282             Bruno Haible  <bruno@clisp.org>
32283
32284         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32285         * modules/link-warning (Makefile.am): Make the comment-removing sed
32286         command more robust in the face of bootstrap-prepended comment lines.
32287
32288 2009-12-09  Bruno Haible  <bruno@clisp.org>
32289
32290         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32291         most one group.
32292
32293 2009-12-09  Simon Josefsson <simon@josefsson.org>
32294             Bruno Haible  <bruno@clisp.org>
32295
32296         * build-aux/link-warning.h: Add copyright notice.
32297         * modules/link-warning (Makefile.am): Generate link-warning.h from
32298         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32299         * NEWS: Mention change in link-warning module.
32300         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32301         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32302         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32303         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32304         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32305         * modules/math (Makefile.am): Add dependency to math.h.
32306         * modules/search (Makefile.am): Add dependency to search.h.
32307         * modules/signal (Makefile.am): Add dependency to signal.h.
32308         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32309         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32310         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32311         * modules/string (Makefile.am): Add dependency to string.h.
32312         * modules/strings (Makefile.am): Add dependency to strings.h.
32313         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32314         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32315         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32316         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32317         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32318         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32319         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32320         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32321         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32322
32323 2009-12-09  Bruno Haible  <bruno@clisp.org>
32324
32325         fchdir: Optimize away rpl_fstat when possible.
32326         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32327         REPLACE_OPEN_DIRECTORY.
32328         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32329
32330 2009-12-09  Bruno Haible  <bruno@clisp.org>
32331
32332         * lib/fchdir.c: Update comment.
32333
32334 2009-12-09  Bruno Haible  <bruno@clisp.org>
32335
32336         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32337
32338 2009-12-08  Eric Blake  <ebb9@byu.net>
32339
32340         fchdir: avoid memory leak on re-registration.
32341         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32342
32343 2009-12-08  Jim Meyering  <meyering@redhat.com>
32344
32345         init.sh: avoid Solaris 10 /bin/sh portability problem
32346         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32347         sourced script:
32348           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32349           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32350           bar
32351         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32352         and two tests used that idiom.
32353         * tests/init.sh: Update suggested usage comments.
32354         (path_prepend_): New function, to be used in place
32355         of the --src-path=DIR option.
32356         (setup_): Move PATH-prepending code into path_prepend_.
32357         * tests/test-pread.sh: Adapt to new usage.
32358         * tests/test-xalloc-die.sh: Likewise.
32359
32360 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32361
32362         * doc/gnulib.texi (Glibc pty.h): Add.
32363         * doc/glibc-functions/forkpty.texi: Add.
32364         * doc/glibc-functions/openpty.texi: Add.
32365         Suggested by Bruno Haible.
32366
32367 2009-12-08  Eric Blake  <ebb9@byu.net>
32368
32369         fchdir: fix logic bugs
32370         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32371         * tests/test-fchdir.c (main): Enhance test.
32372         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32373         is in use.
32374
32375         dup2: fix logic bugs
32376         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32377         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32378         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32379         exists.
32380         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32381
32382 2009-12-07  Eric Blake  <ebb9@byu.net>
32383
32384         unlink: fix m4 detection
32385         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32386
32387         unistd-safer: add unit test
32388         * modules/unistd-safer-tests: New file.
32389         * tests/test-dup-safer.c: Likewise.
32390         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32391         * tests/test-dup2.c (setmode): Likewise.
32392         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32393
32394         cloexec: preserve text vs. binary across dup_cloexec
32395         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32396         mode.
32397         * modules/dup2-tests (Depends-on): Add binary-io.
32398         * modules/cloexec-tests (Depends-on): Likewise.
32399         * tests/test-dup2.c (setmode, is_mode): New helpers.
32400         (main): Add tests that translation mode is preserved.
32401         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32402         Reported by Bruno Haible.
32403
32404         mgetgroups: reduce duplicate listings
32405         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32406         resulting array.
32407         * tests/test-chown.h (test_chown): Simplify client.
32408         * tests/test-lchown.h (test_lchown): Likewise.
32409
32410 2009-12-06  Bruno Haible  <bruno@clisp.org>
32411
32412         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32413         value.
32414
32415 2009-12-06  Bruno Haible  <bruno@clisp.org>
32416
32417         * lib/progname.c: Include stdio.h, stdlib.h.
32418         (set_program_name): Reject a NULL argument.
32419
32420 2009-12-05  Eric Blake  <ebb9@byu.net>
32421
32422         pipe2-safer: new module
32423         * modules/pipe2-safer: New file.
32424         * lib/unistd-safer.h (pipe2_safer): New prototype.
32425         * lib/unistd--.h (pipe2): New wrapper.
32426         * lib/pipe-safer.c (pipe2_safer): New function.
32427         * modules/pipe (Depends-on): Add pipe2-safer.
32428         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32429
32430         stdlib-safer: preserve cloexec flag for mkostemp[s]
32431         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32432         fd_safer_flag.
32433
32434         unistd-safer: allow preservation of cloexec status via flag
32435         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32436         prototypes.
32437         * lib/dup-safer.c (dup_safer_flag): New function.
32438         * lib/fd-safer.c (fd_safer_flag): Likewise.
32439         * modules/cloexec (configure.ac): Set witness.
32440
32441         test-dup2: enhance test
32442         * modules/dup2-tests (Depends-on): Add cloexec.
32443         * tests/test-dup2.c (main): Enhance test.
32444
32445         cloexec: add dup_cloexec
32446         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32447         header and comments.
32448         * lib/cloexec.c (set_cloexec_flag): Add comments.
32449         (dup_cloexec): New function, with mingw implementation borrowed
32450         from...
32451         * lib/w32spawn.h (dup_noinherit): ...here.
32452         * modules/execute (Depends-on): Add cloexec.
32453         * modules/pipe (Depends-on): Likewise.
32454         * modules/cloexec (Depends-on): Add dup2.
32455         * modules/cloexec-tests (Files): New file.
32456         * tests/test-cloexec.c: Likewise.
32457
32458         test-xalloc-die: fix test for mingw
32459         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32460         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32461         directory and .exe suffix off argv[0] output.
32462
32463         test-fseeko: fix test for mingw
32464         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32465         than undefining fseek, so test will pass on mingw.
32466
32467 2009-12-05  Bruno Haible  <bruno@clisp.org>
32468
32469         * lib/progname.h (set_program_name): Clarify specification.
32470         * lib/progname.c (set_program_name): Likewise.
32471         Reported by Jim Meyering.
32472
32473 2009-12-05  Jim Meyering  <meyering@redhat.com>
32474
32475         maint.mk: backslash-escape parens in default regexp
32476         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32477         backslash-escape the literal parentheses.
32478
32479         maint.mk: news-date-check: use grep -E
32480         * top/maint.mk (today): Define a Make variable, not a...
32481         (news-date-check): ...shell variable.
32482         (news-date-regexp): Use the Make variable.
32483         Use grep's -E option.  Change the failing diagnostic to mention
32484         the variable, $(news-date-regexp).
32485
32486 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32487
32488         maintainer-makefile: allow customization of NEWS entry format
32489         * top/maint.mk (news-date-regexp): New overridable variable.
32490         (news-date-check): Use it.
32491
32492 2009-12-04  Eric Blake  <ebb9@byu.net>
32493
32494         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32495         * lib/mgetgroups.h (xgetgroups): New prototype.
32496         * lib/mgetgroups.c (xgetgroups): New wrapper.
32497         (mgetgroups): Handle ENOSYS.
32498         * modules/mgetgroups (Depends-on): Add realloc.
32499         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32500
32501         mgetgroups: avoid argument promotion issues with -1
32502         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32503         for invalid gid_t.
32504         * tests/test-chown.h (getegid, test_chown): Likewise.
32505         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32506
32507 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32508
32509         exclude: Fix header file problems.
32510         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32511
32512 2009-12-01  Jim Meyering  <meyering@redhat.com>
32513
32514         fts: fts_open: do not let an empty string cause immediate failure
32515         This is required in support of GNU rm, for which the command
32516         "rm A '' B" must process and remove both A and B, in spite of
32517         the empty string argument.
32518         * lib/fts.c (fts_open): Do not let the presence of an empty string
32519         cause fts_open to fail immediately.  Most fts-using tools must be
32520         able to process all arguments, in order, and can be expected to
32521         diagnose such arguments themselves.
32522
32523 2009-11-30  Eric Blake  <ebb9@byu.net>
32524
32525         utimens: fix compilation error
32526         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32527         Declare variable at right scope.
32528
32529 2009-11-29  Jim Meyering  <meyering@redhat.com>
32530
32531         bootstrap: handle perl-5.11's changed --version output
32532         * build-aux/bootstrap (get_version): Handle perl separately,
32533         since perl-5.11's --version output is different.
32534
32535 2009-11-28  Jim Meyering  <meyering@redhat.com>
32536
32537         userspec: depend on the inttostr module, too
32538         * modules/userspec (Depends-on): Add inttostr.
32539
32540         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32541         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32542         number of MAXUID when it evaluates to (uid_t) -1.
32543         Likewise for group ID.  Reported by Matt McCutchen in
32544         <http://savannah.gnu.org/bugs/?28113>
32545
32546         userspec: reformat to use spaces, not TABs
32547         * lib/userspec.c: Expand TABs to spaces.
32548         Add Emacs' "indent-tabs-mode: nil" hint.
32549
32550 2009-11-27  Eric Blake  <ebb9@byu.net>
32551
32552         getopt-gnu: flush out another BSD bug
32553         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32554         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32555         flush out BSD bug.
32556         * tests/test-getopt.h (test_getopt): End lists with NULL.
32557         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32558         (test_getopt_long_posix): Enhance test.
32559         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32560         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32561         getopt-gnu.
32562         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32563         Likewise.
32564
32565 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32566
32567         * modules/idpriv-droptemp-tests (Notice): Fix text.
32568
32569 2009-11-27  Jim Meyering  <meyering@redhat.com>
32570
32571         test-xalloc-die: avoid spurious failure due to libtool argv difference
32572         In a libtool-enabled project, this test would fail due to a difference
32573         in the emitted program name, e.g.,
32574         -test-xalloc-die: memory exhausted
32575         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32576         Use program to avoid that.
32577         * modules/xalloc-die-tests (Depends-on): Add progname.
32578         * tests/test-xalloc-die.c: Include progname.h".
32579         (program_name): Remove decl.
32580         (main): Call set_program_name.
32581         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32582
32583 2009-11-26  Richard Jones  <rjones@redhat.com>
32584
32585         w32sock: leave win32 error in place.
32586         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32587
32588 2009-11-26  Eric Blake  <ebb9@byu.net>
32589
32590         init.sh: suggest to use skip_ and fail_ functions in comments
32591         * tests/init.sh: Add a sentence.
32592
32593 2009-11-25  Bruno Haible  <bruno@clisp.org>
32594
32595         init.sh: add documentation in comments
32596         * tests/init.sh: Add some developer and user documentation.
32597
32598 2009-11-26  Jim Meyering  <meyering@redhat.com>
32599
32600         init.sh: accommodate even those who specify bogus srcdir manually
32601         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32602         configure-time tests to be sanitized, so that there is no need to
32603         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32604         (with no double quotes) suffices.  However, since tests may be
32605         invoked manually, and since you may explicitly set srcdir to the
32606         name of a directory containing spaces, do quote its uses here.
32607         * tests/test-pread.sh: Likewise.
32608         Suggested by Bruno Haible.
32609
32610         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32611         * tests/test-pread.sh: Write no data into the pipe, because
32612         test-pread actually reads none.  This avoids a diagnostic,
32613         "bash: echo: write error: Broken pipe", that arises in the unusual
32614         event something is ignoring SIGPIPE, and might be interpreted
32615         as some sort of failure.  Reported by Bruno Haible.
32616
32617 2009-11-25  Jim Meyering  <meyering@redhat.com>
32618
32619         test-pread: cover failure with ESPIPE and EINVAL
32620         * tests/test-pread.c (main): Test for failure, too.
32621         * tests/test-pread.sh: Invoke with stdin on a pipe.
32622         Suggested by Eric Blake.
32623
32624         pread: improvement and fix
32625         * modules/pread (Depends-on): Depend on lseek, for portability to
32626         e.g., mingw.  Suggested by Eric Blake.
32627         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32628
32629         unistd.in.h: correct declaration of pread
32630         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32631         Reported by Richard W.M. Jones.
32632
32633         test-pread.sh: distribute the test script
32634         * modules/pread-tests (Files): Include test-pread.sh.
32635
32636         test-pread.sh: clean up
32637         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32638         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32639         That is unnecessary, since it's always ".".
32640         Suggestion from Eric Blake.
32641
32642         test-pread.sh: make executable
32643         * tests/test-pread.sh: Set executable bit.
32644         Reported by Eric Blake.
32645
32646         correct typo in test-pread.sh
32647         * tests/test-pread.sh: Add #! line.
32648
32649         test pread
32650         * tests/test-pread.c: New file.
32651         * tests/test-pread.sh: Likewise.
32652         * modules/pread-tests: Likewise.
32653
32654         pread: new module
32655         * modules/pread: New file.
32656         * lib/unistd.in.h (pread): Define/declare.
32657         * lib/pread.c (pread): New file.
32658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32659         * modules/unistd (Makefile.am): Substitute witnesses.
32660         * doc/posix-functions/pread.texi (pread): Update.
32661         * MODULES.html.sh: Add pread.
32662
32663 2009-11-25  Jim Meyering  <meyering@redhat.com>
32664
32665         tests/init.sh: new file to be used via most *.sh tests
32666         * tests/init.sh: New file.
32667
32668 2009-11-25  Eric Blake  <ebb9@byu.net>
32669
32670         utimens: work around older Linux failure with symlinks
32671         * lib/utimens.c (lutimensat_works_really): New variable.
32672         (fdutimens, lutimens): Use it to manage kernels that support
32673         nanosecond times on files, but not on symlinks.
32674         Reported by OndÅ™ej Vašík.
32675
32676         utimes: fix configure grammar
32677         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32678
32679 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32680
32681         regex: Fix fastmap for multibyte character ranges.
32682         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32683         characters when a multibyte character range is included.
32684
32685 2009-11-22  Andy Wingo  <wingo@pobox.com>
32686
32687         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32688         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32689
32690 2009-11-24  Bruno Haible  <bruno@clisp.org>
32691
32692         doc: Most *_l functions exist in MacOS X 10.5.
32693         * doc/posix-functions/duplocale.texi: Update platforms list.
32694         * doc/posix-functions/freelocale.texi: Likewise.
32695         * doc/posix-functions/newlocale.texi: Likewise.
32696         * doc/posix-functions/uselocale.texi: Likewise.
32697         * doc/posix-functions/isalnum_l.texi: Likewise.
32698         * doc/posix-functions/isalpha_l.texi: Likewise.
32699         * doc/posix-functions/isblank_l.texi: Likewise.
32700         * doc/posix-functions/iscntrl_l.texi: Likewise.
32701         * doc/posix-functions/isdigit_l.texi: Likewise.
32702         * doc/posix-functions/isgraph_l.texi: Likewise.
32703         * doc/posix-functions/islower_l.texi: Likewise.
32704         * doc/posix-functions/isprint_l.texi: Likewise.
32705         * doc/posix-functions/ispunct_l.texi: Likewise.
32706         * doc/posix-functions/isspace_l.texi: Likewise.
32707         * doc/posix-functions/isupper_l.texi: Likewise.
32708         * doc/posix-functions/iswalnum_l.texi: Likewise.
32709         * doc/posix-functions/iswalpha_l.texi: Likewise.
32710         * doc/posix-functions/iswblank_l.texi: Likewise.
32711         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32712         * doc/posix-functions/iswctype_l.texi: Likewise.
32713         * doc/posix-functions/iswdigit_l.texi: Likewise.
32714         * doc/posix-functions/iswgraph_l.texi: Likewise.
32715         * doc/posix-functions/iswlower_l.texi: Likewise.
32716         * doc/posix-functions/iswprint_l.texi: Likewise.
32717         * doc/posix-functions/iswpunct_l.texi: Likewise.
32718         * doc/posix-functions/iswspace_l.texi: Likewise.
32719         * doc/posix-functions/iswupper_l.texi: Likewise.
32720         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32721         * doc/posix-functions/isxdigit_l.texi: Likewise.
32722         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32723         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32724         * doc/posix-functions/strcoll_l.texi: Likewise.
32725         * doc/posix-functions/strfmon_l.texi: Likewise.
32726         * doc/posix-functions/strftime_l.texi: Likewise.
32727         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32728         * doc/posix-functions/strxfrm_l.texi: Likewise.
32729         * doc/posix-functions/tolower_l.texi: Likewise.
32730         * doc/posix-functions/toupper_l.texi: Likewise.
32731         * doc/posix-functions/towctrans_l.texi: Likewise.
32732         * doc/posix-functions/towlower_l.texi: Likewise.
32733         * doc/posix-functions/towupper_l.texi: Likewise.
32734         * doc/posix-functions/wcscoll_l.texi: Likewise.
32735         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32736         * doc/posix-functions/wctrans_l.texi: Likewise.
32737         * doc/posix-functions/wctype_l.texi: Likewise.
32738         * doc/glibc-functions/strptime_l.texi: Likewise.
32739         * doc/glibc-functions/strtod_l.texi: Likewise.
32740         * doc/glibc-functions/strtof_l.texi: Likewise.
32741         * doc/glibc-functions/strtol_l.texi: Likewise.
32742         * doc/glibc-functions/strtold_l.texi: Likewise.
32743         * doc/glibc-functions/strtoll_l.texi: Likewise.
32744         * doc/glibc-functions/strtoul_l.texi: Likewise.
32745         * doc/glibc-functions/strtoull_l.texi: Likewise.
32746         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32747         * doc/glibc-functions/wcstod_l.texi: Likewise.
32748         * doc/glibc-functions/wcstof_l.texi: Likewise.
32749         * doc/glibc-functions/wcstol_l.texi: Likewise.
32750         * doc/glibc-functions/wcstold_l.texi: Likewise.
32751         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32752         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32753         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32754
32755 2009-11-24  Bruno Haible  <bruno@clisp.org>
32756
32757         duplocale: Fix logic bug.
32758         * lib/duplocale.c: Don't include <langinfo.h>.
32759         (_NL_LOCALE_NAME): Remove macro.
32760         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32761         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32762
32763 2009-11-23  Jim Meyering  <meyering@redhat.com>
32764
32765         test-update-copyright: don't hard-code /usr/bin/perl
32766         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32767         perl to print the current year.  Gilles Espinasse reported that
32768         the replaced use of perl was hard-coded as /usr/bin/perl.
32769
32770 2009-11-23  Bruno Haible  <bruno@clisp.org>
32771
32772         duplocale: Add support for glibc 2.3.x.
32773         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32774
32775 2009-11-22  Bruno Haible  <bruno@clisp.org>
32776
32777         vasnprintf: Tiny optimization.
32778         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32779         MacOS X.
32780
32781 2009-11-22  Bruno Haible  <bruno@clisp.org>
32782
32783         Tests for module 'duplocale'.
32784         * modules/duplocale-tests: New file.
32785         * tests/test-duplocale.c: New file.
32786
32787         New module 'duplocale'.
32788         * m4/duplocale.m4: New file.
32789         * lib/locale.in.h (duplocale): New declaration.
32790         * lib/duplocale.c: New file.
32791         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32792         gl_LOCALE_H_DEFAULTS): New macros.
32793         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32794         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32795         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32796         REPLACE_DUPLOCALE.
32797         * modules/duplocale: New file.
32798         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32799
32800 2009-11-22  Bruno Haible  <bruno@clisp.org>
32801
32802         * modules/locale-tests (configure.ac): Test for newlocale function.
32803         * tests/test-locale.c: When the system has extended locale functions,
32804         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32805
32806         locale: Make locale_t available when possible.
32807         * lib/locale.in.h: Include <xlocale.h> when it exists.
32808         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32809         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32810         * modules/locale (Depends-on): Add extensions.
32811         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32812         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32813
32814 2009-11-22  Bruno Haible  <bruno@clisp.org>
32815
32816         Add comments.
32817         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32818         invocation.
32819         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32820         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32821         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32822
32823 2009-11-22  Bruno Haible  <bruno@clisp.org>
32824
32825         error: account for the possibility of freopen (stdout).
32826         * lib/error.c: Include <unistd.h>.
32827         (flush_stdout): New function, extracted from error and error_at_line.
32828         Determine stdout's fd dynamically.
32829         (error, error_at_line): Invoke flush_stdout.
32830         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32831         * modules/error (Depends-on): Add unistd.
32832
32833 2009-11-22  Bruno Haible  <bruno@clisp.org>
32834
32835         diffseq: Add comment.
32836         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32837
32838 2009-11-22  Jim Meyering  <meyering@redhat.com>
32839
32840         c-stack: avoid defining an unused static function
32841         * lib/c-stack.c (find_stack_direction): Do not define this function
32842         when it will not be used.
32843
32844         diffseq: avoid spurious gcc warnings
32845         * lib/diffseq.h (IF_LINT2): Define.
32846         (compareseq): Use it to initialize two members of "part".
32847         This avoids two used-uninitialized warnings.
32848
32849 2009-11-21  Jim Meyering  <meyering@redhat.com>
32850
32851         c-stack: avoid "ignoring return value of `write'" warning
32852         * lib/c-stack.c: Include "ignore-value.h".
32853         (die): Explicitly ignore each write return value.
32854         * modules/c-stack (Depends-on): Add ignore-value.
32855
32856 2009-11-21  Bruno Haible  <bruno@clisp.org>
32857
32858         diffseq: reduce scope of variable 'best'.
32859         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32860         variable, earlier used for two different purposes.
32861
32862 2009-11-21  Jim Meyering  <meyering@redhat.com>
32863
32864         diffseq: remove useless assignment to "best"
32865         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32866         assignment.  At that point "best" is already guaranteed to be zero.
32867
32868 2009-11-20  Eric Blake  <ebb9@byu.net>
32869
32870         build: mention ftp redirector in release announcements
32871         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32872         values that used to come from cfg.mk; mention FTP redirect URL.
32873         * build-aux/announce-gen: Mention the mirror list.
32874         Suggested by Karl Berry.
32875
32876         nanosleep: improve port to mingw
32877         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32878         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32879         LIB_NANOSLEEP, but only when needed.
32880         * modules/select (Link): Document LIBSOCKET.
32881         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32882         enough.
32883
32884         nanosleep: work around cygwin bug
32885         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32886         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32887         bug.
32888         (getnow): Delete, not needed.
32889         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32890         LIB_CLOCK_GETTIME.
32891         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32892         clock-time, gettime.
32893         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32894         bug.
32895         * modules/nanosleep-tests: New test.
32896         * tests/test-nanosleep.c: New file.
32897
32898         sleep: work around cygwin bug
32899         * lib/sleep.c (rpl_sleep): Work around the bug.
32900         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32901         (gl_PREREQ_SLEEP): Delete unused macro.
32902         * modules/sleep (Depends-on): Add verify.
32903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32904         * modules/unistd (Makefile.am): Substitute witness.
32905         * lib/unistd.in.h (sleep): Update prototype.
32906         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32907         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32908         * modules/sleep-tests (Depends-on): Check for alarm.
32909
32910 2009-11-20  Jim Meyering  <meyering@redhat.com>
32911
32912         maint.mk: improve sc_prohibit_magic_number_exit
32913         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32914         so it does not match uses like System.exit(1).
32915         Add comments showing how to correct all offenders.
32916
32917 2009-11-19  Eric Blake  <ebb9@byu.net>
32918
32919         xalloc-die-tests: add missing library
32920         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32921
32922         test-xvasprintf: silence compiler warnings
32923         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32924         empty string from gcc.
32925
32926 2009-11-19  Jim Meyering  <meyering@redhat.com>
32927
32928         xfreopen: new module, from coreutils
32929         * modules/xfreopen: New module.
32930         * lib/xfreopen.c: New file.
32931         * lib/xfreopen.h: New file.
32932         * MODULES.html.sh (File stream based Input/Output"): Add it.
32933
32934 2009-11-19  Eric Blake  <ebb9@byu.net>
32935
32936         manywarnings: depend on warnings
32937         * modules/manywarnings (Depends-on): Add warnings.
32938
32939         build: avoid compiler warnings
32940         * lib/select.c (rpl_select): Delete unused variable.
32941         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32942
32943 2009-11-18  Eric Blake  <ebb9@byu.net>
32944
32945         tests: avoid false negative with --with-packager
32946         * tests/test-version-etc.sh: Discard packager information.
32947         * tests/test-argp-version-etc-1.sh: Likewise.
32948         Reported by Mike Frysinger.
32949
32950         utimens: fix regression on Solaris
32951         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32952         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32953         can only change fd timestamps via futimesat.  Instead, use an
32954         additional witness macro to avoid BSD bug.
32955         Reported by Jim Meyering.
32956
32957 2009-11-17  Eric Blake  <ebb9@byu.net>
32958
32959         usleep: use it to simplify tests
32960         * modules/stat-time-tests (Depends-on): Add usleep.
32961         (configure.ac): Drop usleep check.
32962         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32963         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32964         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32965         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32966         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32967         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32968         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32969         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32970         Likewise.
32971         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32972         * tests/test-lchown.h (nap): Likewise.
32973         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32974         * tests/test-stat-time.c (nap): Likewise.
32975         * tests/test-utimens-common.h (nap): Update comments.
32976
32977         usleep: new module
32978         * modules/usleep: New file.
32979         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32980         * lib/usleep.c (usleep): Likewise.
32981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32982         * modules/unistd (Makefile.am): Substitute witnesses.
32983         * lib/unistd.in.h (usleep): Add declaration.
32984         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32985         * MODULES.html.sh (Date and time): Likewise.
32986         * modules/usleep-tests (Depends-on): New test.
32987         * tests/test-usleep.c: New file.
32988
32989         chown: work around OpenBSD bug
32990         * lib/chown.c (rpl_chown): Work around the bug.
32991         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32992         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32993         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32994         * modules/chown (Depends-on): Add stdbool.
32995         * modules/lchown (Depends-on): Likewise.
32996         * doc/posix-functions/chown.texi (chown): Document the bug.
32997         * doc/posix-functions/lchown.texi (lchown): Likewise.
32998         * tests/test-lchown.h (test_chown): Relax test.
32999
33000         mkstemp: avoid conflict with C++ keyword template
33001         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33002         * lib/mkostemp.c (mkostemp): Likewise.
33003         * lib/mkostemps.c (mkostemps): Likewise.
33004         * lib/mkstemp.c (mkstemp): Likewise.
33005         * lib/mkstemps.c (mkstemps): Likewise.
33006
33007         xalloc-die-tests: optimize
33008         * tests/test-xalloc-die.sh: Reduce number of processes.
33009
33010 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33011
33012         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33013         patch from ludo@gnu.org (Ludovic Courtès).
33014
33015 2009-11-17  Jim Meyering  <meyering@redhat.com>
33016
33017         version-etc: use proper license string
33018         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33019         * modules/version-etc-fsf: Likewise.
33020
33021 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33022
33023         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33024         printed to stdout.  Deal with EOL differences.
33025
33026 2009-11-17  Eric Blake  <ebb9@byu.net>
33027
33028         unsetenv: work around Solaris bug
33029         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33030         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33031         Reported by Jim Meyering.
33032
33033         vasnprintf: avoid compiler warnings
33034         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33035         variables.
33036         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33037
33038 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33039
33040         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33041         settings since xalloc-die is no longer the self test,
33042         xalloc-die.sh is.
33043
33044 2009-11-17  Jim Meyering  <meyering@redhat.com>
33045
33046         test-xalloc-die.sh: make the code agree with the commit log
33047         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33048         at the end, just in case you happen to have a test-xalloc-die
33049         program in some other PATH directory.
33050
33051         test-xalloc-die.sh: fix a portability bug
33052         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33053         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33054         Otherwise, argv[0] (as often seen in diagnostics) would be too
33055         system-dependent, sometimes with, and sometimes without the leading "./".
33056
33057         version-etc-fsf: relax license to LGPLv3+
33058         * modules/version-etc-fsf (License): Relax license.
33059
33060 2009-11-16  Eric Blake  <ebb9@byu.net>
33061
33062         xalloc-die-tests: avoid printing null pointer
33063         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33064         shell script.
33065         * tests/test-xalloc-die.c (program_name): Declare.
33066         * tests/test-xalloc-die.sh (tmpfiles): New file.
33067
33068         setenv, unsetenv: work around various bugs
33069         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33070         (setenv) [HAVE_SETENV]: Work around bugs.
33071         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33072         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33073         for bugs.
33074         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33075         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33077         * modules/stdlib (Makefile.am): Update substitutions.
33078         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33079         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33080         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33081         * modules/setenv-tests: New test.
33082         * modules/unsetenv-tests: Likewise.
33083         * tests/test-setenv.c: New file.
33084         * tests/test-unsetenv.c: Likewise.
33085
33086 2009-11-16  Jim Meyering  <meyering@redhat.com>
33087
33088         version-etc: relax license to LGPLv3+
33089         * modules/version-etc (License): Relax license.
33090
33091         better AC_REQUIRE expanded-before-required-warning avoidance
33092         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33093         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33094         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33095         which is no longer needed.
33096
33097 2009-11-16  Eric Blake  <ebb9@byu.net>
33098
33099         test-freading: clean up temporary file
33100         * tests/test-freading.c (main): Remove file on success, and use
33101         ASSERT more liberally.
33102         Reported by Jim Meyering.
33103
33104 2009-11-16  Jim Meyering  <meyering@redhat.com>
33105
33106         avoid new AC_REQUIRE expanded-before-required warnings
33107         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33108         merely using it.
33109         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33110         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33111
33112 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33113
33114         * tests/test-xalloc-die.c: New file.
33115         * modules/xalloc-die-tests: New file.
33116         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33117         XFAIL_TESTS so it can be appended by modules.
33118
33119 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33120
33121         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33122         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33123
33124 2009-11-14  Eric Blake  <ebb9@byu.net>
33125
33126         fnmatch: avoid compiler warning
33127         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33128         to silence compiler warning about mismatch signedness in ?:.
33129         Reported by Robert Millan.
33130
33131         intprops: add double-inclusion guard
33132         * lib/intprops.h: Allow idempotent includes.
33133         Suggested by Bruce Korb.
33134
33135         openat: detect Solaris fchownat bug
33136         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33137         penalizing glibc chownat when only lchownat is broken.
33138         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33139         trailing slash bugs.
33140         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33141         * modules/openat-tests (Files): Include more files.
33142         (Depends-on): Add mgetgroups, sleep, stat-time.
33143         (configure.ac): Add additional checks.
33144         (Makefile.am): Build new test.
33145         * tests/test-fchownat.c: New file.
33146
33147         lchown: detect Solaris and FreeBSD bug
33148         * lib/lchown.c (rpl_lchown): Work around bug.
33149         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33151         * modules/unistd (Makefile.am): Populate it.
33152         * lib/unistd.in.h (lchown): Update declaration.
33153         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33154         * modules/lchown-tests: New file.
33155         * tests/test-lchown.h (test_lchown): Likewise.
33156         * tests/test-lchown.c (main): Likewise.
33157
33158         chown: detect Solaris and FreeBSD bug
33159         * lib/chown.c (rpl_chown): Work around bug.
33160         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33161         (gl_PREREQ_CHOWN): Delete.
33162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33163         * modules/unistd (Makefile.am): Populate it.
33164         * lib/unistd.in.h (chown): Update declaration.
33165         * lib/lchown.c (chown): Update client.
33166         * modules/lchown (Depends-on): Add lstat.
33167         * doc/posix-functions/chown.texi (chown): Document the bug.
33168         * doc/posix-functions/getgroups.texi (getgroups): Document
33169         getgroups pitfall.
33170         * modules/chown-tests: New file.
33171         * tests/test-chown.h (test_chown): Likewise.
33172         * tests/test-chown.c (main): Likewise.
33173
33174 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33175
33176         gnulib-tool: correctly detect absence of m4 directories
33177         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33178
33179 2009-11-14  Jim Meyering  <meyering@redhat.com>
33180
33181         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33182         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33183
33184 2009-11-14  John W. Eaton  <jwe@gnu.org>
33185
33186         strftime.h: wrap funtion declaration in extern "C" block
33187         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33188
33189 2009-11-13  Eric Blake  <ebb9@byu.net>
33190
33191         getgroups: avoid compiler warning
33192         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33193
33194         getgroups: work around FreeBSD bug
33195         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33196         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33197         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33198         * tests/test-getgroups.c (main): Fix buffer overrun.
33199
33200         getgroups: avoid compilation failure
33201         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33202         * modules/getgroups (Depends-on): Add stdint.
33203
33204 2009-11-13  Jim Meyering  <meyering@redhat.com>
33205
33206         test-getgroups: avoid compilation failure
33207         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33208
33209 2009-11-13  Eric Blake  <ebb9@byu.net>
33210
33211         mgetgroups: new module, taken from coreutils
33212         * modules/mgetgroups: New file.
33213         * lib/mgetgroups.h: Likewise.
33214         * lib/mgetgroups.c (mgetgroups): Likewise.
33215         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33216         * MODULES.html.sh (Users and groups): Mention it.
33217
33218         getgroups: don't expose GETGROUPS_T to user
33219         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33220         an element at a time if GETGROUPS_T is wrong size.
33221         * lib/getugroups.h (getugroups): Change signature.
33222         * lib/unistd.in.h (getgroups): Likewise.
33223         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33224         signature needs fixing.
33225         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33226         AC_TYPE_GETGROUPS.
33227         * modules/group-member (Depends-on): Add getgroups.
33228         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33229         (group_member): Rely on getgroups replacement.
33230         * lib/getugroups.c (getugroups): Use gid_t.
33231         * tests/test-getgroups.c (main): Likewise.
33232         * NEWS: Mention the signature change.
33233         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33234         problem with signature.
33235         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33236         GETGROUPS_T is still useful for setgroups.
33237
33238         getgroups, getugroups: provide stubs for mingw
33239         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33240         * lib/getugroups.c (getugroups): Likewise.
33241         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33242         function.  Modernize replacement scheme.
33243         (gl_PREREQ_GETGROUPS): Delete.
33244         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33245         * modules/getgroups (configure.ac): Declare witness.
33246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33247         * modules/unistd (Depends-on): Substitute witness.
33248         * lib/unistd.in.h (getgroups): Declare replacement.
33249
33250         getgroups: avoid calling exit
33251         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33252         drop xalloc.
33253         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33254         dependencies.
33255         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33256         exiting, in the rare case of malloc failure.
33257
33258         getgroups: fix logic error
33259         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33260         has more than 20 groups.
33261         * modules/getgroups-tests: New test.
33262         * tests/test-getgroups.c: New file.
33263
33264 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33265
33266         * tests/test-base64.c: Improve.
33267
33268 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33269
33270         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33271         Blake <ebb9@byu.net>.
33272
33273 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33274
33275         * tests/test-xvasprintf.c: Add %s%s related checks.
33276
33277 2009-11-12  Eric Blake  <ebb9@byu.net>
33278
33279         version-etc: match standards.texi style
33280         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33281         and use <> only for URLs.
33282
33283 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33284
33285         fts: do not fail on a submount during traversal
33286         * lib/fts.c (fts_build): Read the stat info again after opening
33287         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33288         Original report at http://bugzilla.redhat.com/501848.
33289
33290 2009-11-12  Jim Meyering  <meyering@redhat.com>
33291
33292         bootstrap: sync from coreutils
33293         * build-aux/bootstrap (bootstrap_epilogue): New function.
33294         Use git_modules_config in one more place.  This make bootstrap's
33295         --gnulib-srcdir option more useful for testing.
33296
33297         bootstrap: generalize autoheader check
33298         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33299         AC_CONFIG_HEADERS.
33300
33301 2009-11-11  Eric Blake  <ebb9@byu.net>
33302
33303         mkfifoat: use new modules for Solaris and BSD bugs
33304         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33305         * lib/mkfifoat.c (mknodat): Split...
33306         * lib/mknodat.c (mknodat): ...into new file.
33307         * modules/mkfifoat (Files): Ship new file.
33308         (Depends-on): Add mkfifo, mknod.
33309         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33310         (Depends-on): Add symlink.
33311         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33312         redundant with test_mkfifo.h.
33313         (do_mkfifoat, do_mknodat): New helpers.
33314
33315         mknod: new module
33316         * modules/mknod: New file.
33317         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33318         * lib/mknod.c (mknod): Likewise.
33319         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33320         defaults.
33321         * modules/sys_stat (Makefile.am): Substitute them.
33322         * lib/sys_stat.in.h (mknod): Declare replacement.
33323         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33324         Document it.
33325         * doc/posix-functions/mknod.texi (mknod): Likewise.
33326         * modules/mknod-tests: New test.
33327         * tests/test-mknod.c: Likewise.
33328
33329         mkfifo: new module
33330         * modules/mkfifo: New file.
33331         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33332         * lib/mkfifo.c (mkfifo): Likewise.
33333         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33334         defaults.
33335         * modules/sys_stat (Makefile.am): Substitute them.
33336         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33337         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33338         Document it.
33339         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33340         * modules/mkfifo-tests: New test.
33341         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33342         from test-mkfifoat.c.
33343         * tests/test-mkfifo.c: New file.
33344
33345         readlink: detect FreeBSD bug
33346         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33347         slash on symlink.
33348         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33349         * tests/test-readlink.h (test_readlink): Enhance test.
33350
33351         symlink: detect FreeBSD bug
33352         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33353         slash on symlink.
33354         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33355         * tests/test-symlink.h (test_symlink): Enhance test.
33356
33357 2009-11-10  Eric Blake  <ebb9@byu.net>
33358
33359         link: detect FreeBSD bug
33360         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33361         symlink.
33362         * doc/posix-functions/link.texi (link): Document the bug.
33363         * tests/test-link.h (test_link): Enhance test.
33364         * tests/test-linkat.c (main): Update caller.
33365
33366         unlink, remove: detect FreeBSD bug
33367         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33368         slash on symlink.
33369         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33370         * doc/posix-functions/remove.texi (remove): Likewise.
33371         * tests/test-unlink.h (test_unlink): Enhance test.
33372         * tests/test-remove.c (main): Likewise.
33373
33374 2009-11-09  Eric Blake  <ebb9@byu.net>
33375
33376         rename: detect FreeBSD bug
33377         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33378         slash on symlink.
33379         * modules/renameat-tests (Depends-on): Add filenamecat.
33380         * tests/test-rename.h (test_rename): Allow one more errno.
33381         * tests/test-renameat.c (main): Likewise.
33382         * doc/posix-functions/rename.texi (rename): Document the bug.
33383
33384         open: detect FreeBSD bug
33385         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33386         symlink.
33387         * doc/posix-functions/open.texi (open): Document the bug.
33388         * doc/posix-functions/utimes.texi (utimes): Likewise.
33389         * tests/test-open.h (test_open): Add parameters, and test symlink
33390         handling.
33391         * tests/test-open.c (main): Adjust caller.
33392         * tests/test-fcntl-safer.c (main): Likewise.
33393         * modules/open-tests (Depends-on): Add stdbool, symlink.
33394         * modules/fcntl-safer-tests (Depends-on): Likewise.
33395         * tests/test-openat.c (main): Add test-open tests.
33396
33397         stat: detect FreeBSD bug
33398         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33399         symlink.
33400         * doc/posix-functions/stat.texi (stat): Document the bug.
33401         * tests/test-stat.h (test_stat_func): Add argument.
33402         * tests/test-stat.c (main): Adjust caller.
33403         * tests/test-fstatat.c (main): Likewise.
33404         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33405         Reported by Jim Meyering.
33406
33407 2009-11-09  James Youngman  <jay@gnu.org>
33408
33409         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33410         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33411
33412 2009-11-08  Jim Meyering  <meyering@redhat.com>
33413
33414         utimens: remove invalid futimesat call
33415         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33416         It used the file descriptor of the target file as the DIR_FD
33417         parameter and NULL as the file name.  That caused failure with
33418         errno == EFAULT on FreeBSD-8.0-rc2
33419
33420 2009-11-07  Eric Blake  <ebb9@byu.net>
33421
33422         fflush, freadseek: use fseeko, not fseek
33423         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33424         (clear_ungetc_buffer): Avoid potential problems on large files.
33425         * lib/freadseek.c (freadseek): Likewise.
33426         * modules/freadseek (Depends-on): Add fseeko.
33427         * modules/fseek (configure.ac): Set a witness.
33428         * tests/test-fflush.c (main): Use fseeko.
33429         * tests/test-fpurge.c (fseek): Disable link warning.
33430         * tests/test-freadable.c (fseek): Likewise.
33431         * tests/test-freading.c (fseek): Likewise.
33432         * tests/test-fseeko.c (fseek): Likewise.
33433         * tests/test-ftell.c (fseek): Likewise.
33434         * tests/test-ftello.c (fseek): Likewise.
33435         * tests/test-fwritable.c (fseek): Likewise.
33436         * tests/test-fwriting.c (fseek): Likewise.
33437
33438 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33439
33440         * modules/memchr (Depends-on): Drop getpagesize dependency.
33441
33442 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33443
33444         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33445         Reported by Ludovic Courtès.
33446         * build-aux/pmccabe2html: Improve example usage.
33447         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33448
33449 2009-11-06  Jim Meyering  <meyering@redhat.com>
33450
33451         do-release-commit-and-tag: New module.
33452         Automate the release-commit and tag process.
33453         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33454         * modules/do-release-commit-and-tag: New file.
33455         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33456
33457 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33458
33459         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33460         because test-select.c uses inet_pton.
33461
33462 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33463
33464         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33465         GETADDRINFO_LIB.  Bump serial number.
33466         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33467         Suggested by Eric Blake <ebb9@byu.net>.
33468
33469 2009-11-05  Eric Blake  <ebb9@byu.net>
33470
33471         strtod: detect darwin bug
33472         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33473         Reported by Leo Davis.
33474
33475         freopen-safer: new module
33476         * modules/freopen-safer: New module.
33477         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33478         * lib/freopen-safer.c (freopen_safer): New file.
33479         * lib/stdio-safer.h (freopen_safer): New declaration.
33480         * lib/stdio--.h (freopen): New override.
33481         * MODULES.html.sh (File stream based Input/Output): Mention it.
33482         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33483         freopen-safer module.
33484         * doc/posix-functions/stderr.texi (stderr): Likewise.
33485         * doc/posix-functions/stdin.texi (stdin): Likewise.
33486         * doc/posix-functions/stdout.texi (stdout): Likewise.
33487         * modules/freopen-safer-tests: New test.
33488         * tests/test-reopen-safer.c: New file.
33489
33490 2009-11-05  Jim Meyering  <meyering@redhat.com>
33491
33492         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33493         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33494
33495 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33496
33497         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33498
33499 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33500
33501         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33502
33503 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33504
33505         Fix link error.
33506         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33507         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33508
33509 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33510
33511         * tests/test-func.c: Also test value of __func__.
33512
33513 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33514
33515         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33516         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33517
33518 2009-11-05  Bruno Haible  <bruno@clisp.org>
33519
33520         Fix link error.
33521         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33522         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33523         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33524
33525 2009-11-05  Bruno Haible  <bruno@clisp.org>
33526
33527         Tests for module 'inet_pton'.
33528         * modules/inet_pton-tests: New file.
33529         * tests/test-inet_pton.c: New file.
33530
33531 2009-11-05  Bruno Haible  <bruno@clisp.org>
33532
33533         Tests for module 'inet_ntop'.
33534         * modules/inet_ntop-tests: New file.
33535         * tests/test-inet_ntop.c: New file.
33536
33537 2009-11-04  Eric Blake  <ebb9@byu.net>
33538
33539         stdlib-safer: wrap all mkstemp variants
33540         * modules/mkostemp (configure.ac): Set witness.
33541         * modules/mkostemps (configure.ac): Likewise.
33542         * modules/mkstemps (configure.ac): Likewise.
33543         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33544         (mkstemps_safer): Wrap more functions.
33545         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33546         wrapping.
33547         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33548         (mkstemps_safer): Implement the wrappers.
33549
33550         mkstemps, mkostemps: new modules
33551         * modules/mkostemps: New module.
33552         * modules/mkstemps: Likewise.
33553         * lib/mkostemps.c (mkostemps): New file.
33554         * lib/mkstemps.c (mkstemps): Likewise.
33555         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33556         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33557         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33558         * modules/stdlib (Makefile.am): Substitute them.
33559         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33560         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33561         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33562         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33563         * MODULES.html.sh (File system functions): Mention them.
33564
33565         tempname: resync from glibc
33566         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33567         same values for __GT_FILE as glibc.  Abort even when assertions
33568         are disabled.
33569         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33570         match its value otherwise.  Allow idempotent inclusion.
33571         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33572         * lib/mkostemp.c (mkostemp): Likewise.
33573         * lib/mkstemp.c (mkstemp): Likewise.
33574         * lib/tmpfile.c (tmpfile): Likewise.
33575         * NEWS: Document this.
33576
33577         utimens: fix use of futimens on older Linux
33578         * lib/utimens.c (fdutimens): Use updated, rather than original,
33579         timespec to avoid bug in older Linux kernel.
33580         Reported by Simon Josefsson.
33581
33582 2009-11-04  Bruno Haible  <bruno@clisp.org>
33583
33584         Make num_processors more flexible and consistent.
33585         * lib/nproc.h (enum nproc_query): New type.
33586         (num_processors): Add a 'query' argument.
33587         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33588         (num_processors): Add a 'query' argument. Test the value of the
33589         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33590         mingw, count the number of CPUs available for the current process.
33591         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33592         Check for sched_getaffinity and sched_getaffinity_np.
33593         * modules/nproc (Depends-on): Add c-ctype, extensions.
33594         * NEWS: Mention the change.
33595
33596 2009-11-03  Bruno Haible  <bruno@clisp.org>
33597
33598         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33599
33600 2009-11-03  Jim Meyering  <meyering@redhat.com>
33601
33602         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33603         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33604         if it is defined.
33605
33606 2009-11-02  Eric Blake  <ebb9@byu.net>
33607
33608         mktime, timegm: share common declaration
33609         * lib/mktime-internal.h: New file.
33610         * lib/mktime.c: Use it rather than open-coding a declaration.
33611         * lib/timegm.c: Likewise.
33612         * modules/mktime (Files): Ship it.
33613         * modules/timegm (Files): Likewise.
33614         Suggested by Bruno Haible.
33615
33616         test-update-copyright: update test to match script changes
33617         * tests/test-update-copyright.sh: Avoid hard-coding perl
33618         location.  Don't update *.bak created by earlier runs.
33619
33620 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33621             Simon Josefsson  <simon@josefsson.org>
33622             Bruno Haible  <bruno@clisp.org>
33623
33624         Fix link error on Solaris 8.
33625         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33626         also in libnsl. Define also INET_PTON_LIB.
33627         * modules/inet_pton (Link): New section.
33628
33629 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33630             Bruno Haible  <bruno@clisp.org>
33631
33632         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33633         * modules/inet_ntop (Link): New section.
33634         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33635
33636 2009-11-02  Eric Blake  <ebb9@byu.net>
33637
33638         maint: avoid compiler warnings in m4 macros
33639         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33640         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33641
33642 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33643
33644         * m4/pmccabe2html.m4: Remove file.
33645         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33646         function.  Change maintainer.
33647         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33648         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33649         Courtès).
33650
33651 2009-10-31  Eric Blake  <ebb9@byu.net>
33652
33653         fseeko: fix m4 regression
33654         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33655         regression from 2009-10-27.
33656         Reported by Ralf Wildenhues.
33657
33658 2009-10-31  Jim Meyering  <meyering@redhat.com>
33659
33660         inttostr: aesthetics and improved (compile-time) safety
33661         Define inttype_is_signed rather than inttype_is_unsigned,
33662         since the sole use is via "#if inttype_is_signed".
33663         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33664         inttype_is_unsigned.
33665         * lib/offtostr.c (inttype_is_signed): Likewise.
33666         * lib/uinttostr.c (inttype_is_signed): Likewise.
33667         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33668         * lib/inttostr.c (inttostr): Use verify to cross-check the
33669         inttype_is_signed value and the signedness of the actual type.
33670         * modules/inttostr (Depends-on): Add verify.
33671
33672 2009-10-30  Eric Blake  <ebb9@byu.net>
33673
33674         build: avoid compiler warnings
33675         * lib/fchmodat.c (lchmod): Mark unused variables.
33676         * lib/getopt.c (_getopt_initialize): Likewise.
33677         * lib/mktime.c (__mktime_internal): Provide prototype.
33678         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33679         older gcc that do not understand #pragma GCC diagnostic.
33680         * lib/uinttostr.c (inttype_is_unsigned): Define.
33681         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33682
33683 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33684
33685         stat: fix compilation on AIX
33686         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33687         only see struct stat64.
33688
33689 2009-10-30  Eric Blake  <ebb9@byu.net>
33690
33691         exclude: make more robust
33692         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33693         rather than masking a coding bug.
33694         Suggested by Bruno Haible.
33695
33696 2009-10-30  Jim Meyering  <meyering@redhat.com>
33697
33698         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33699         Rather than putting #!/usr/bin/perl on the first line,
33700         start with a variant of what's recommended by "man perlrun" that
33701         invokes the first "perl" program from your shell's search path.
33702         * build-aux/gitlog-to-changelog: Replace #!... as above.
33703         Add a "Local Variables" perl mode setting.
33704         Prompted by a patch from Ludovic Courtès.
33705         Improved by Eric Blake.
33706         * build-aux/useless-if-before-free: Likewise.
33707         * build-aux/announce-gen: Likewise.
33708         * build-aux/update-copyright: Likewise.
33709
33710 2009-10-29  Eric Blake  <ebb9@byu.net>
33711
33712         filenamecat-lgpl: adjust clients
33713         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33714         filenamecat.
33715         * modules/renameat (Depends-on): Likewise.
33716
33717         filenamecat: split into filenamecat-lgpl
33718         * modules/filenamecat-lgpl: New module.
33719         * modules/filenamecat (Files): Move library-safe files into
33720         filenamecat-lgpl.
33721         (Depends-on): Add filenamecat-lgpl.
33722         (configure.ac): Declare witness.
33723         * lib/filenamecat.h (file_name_concat): Only declare when using
33724         GPL module.
33725         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33726         Move...
33727         * lib/filenamecat-lgpl.c: ...into new file.
33728         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33729         (gl_FILE_NAME_CONCAT): Use it.
33730         * MODULES.html.sh (File system functions): Mention new module.
33731
33732         argp: avoid memory leak
33733         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33734         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33735         base_name, since the latter malloc()s and can call exit().
33736         Leak introduced 2006-07-03.
33737
33738         dirname-lgpl: adjust clients that don't need full dirname
33739         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33740         * modules/filenamecat (Depends-on): Likewise.
33741         * modules/linkat (Depends-on): Likewise.
33742         * modules/mkancesdirs (Depends-on): Likewise.
33743         * modules/mkdir (Depends-on): Likewise.
33744         * modules/openat (Depends-on): Likewise.
33745         * modules/savewd (Depends-on): Likewise.
33746         * modules/rename (Depends-on): Likewise.
33747         (License): Relax license.
33748         * modules/mkdir-tests (Depends-on): Drop progname.
33749         (Makefile.am): Delete unneeded LDADD.
33750         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33751
33752         dirname: split into dirname-lgpl
33753         * modules/dirname-lgpl: New module.
33754         * modules/dirname (Files): Move library-safe files into
33755         dirname-lgpl.
33756         (Depends-on): Add dirname-lgpl.
33757         (configure.ac): Declare witness.
33758         * modules/double-slash-root (License): Relax license.
33759         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33760         module.
33761         * lib/dirname.c (dir_len, mdir_name): Move...
33762         * lib/dirname-lgpl.c: ...into new file.
33763         * lib/basename.c (last_component, base_len): Move...
33764         * lib/basename-lgpl.c: ...into new file.
33765         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33766         (gl_DIRNAME): Use it.
33767         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33768         Mention new module.
33769         * modules/dirname-tests (Depends-on): Add progname.
33770         * tests/test-dirname.c (program_name): Delete.
33771
33772         mkdir: make safe for libraries
33773         * modules/mkdir (Depends-on): Drop xalloc.
33774         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33775         exit.
33776
33777         tests: avoid some compiler warnings
33778         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33779         literals.
33780         * tests/test-memchr.c (main): Avoid type mismatch.
33781         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33782         * tests/test-base64.c (main): Likewise.
33783         * tests/test-getdelim.c (main): Likewise.
33784         * tests/test-gethostname.c (main): Likewise.
33785         * tests/test-getline.c (main): Likewise.
33786         * tests/test-netinet_in.c (main): Likewise.
33787         * tests/test-select.c (open_server_socket, main): Likewise.
33788         * tests/test-select-stdin.c (main): Likewise.
33789         * tests/test-sockets.c (main): Likewise.
33790         * tests/test-strsignal.c (main): Likewise.
33791         * tests/test-sys_select.c (main): Likewise.
33792         * tests/test-sys_socket.c (main): Likewise.
33793         * tests/test-u64.c (main): Likewise.
33794         * tests/test-xfprintf-posix.c (main): Likewise.
33795         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33796
33797         sockets: avoid compiler warning
33798         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33799
33800         maint: detect usage(1) and other suspicious exits
33801         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33802
33803 2009-10-29  Jim Meyering  <meyering@redhat.com>
33804
33805         timespec: long-to-int truncation could make timespec_cmp malfunction
33806         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33807         a multiple of 2^32 nanoseconds as no difference.
33808
33809 2009-10-28  Jim Meyering  <meyering@redhat.com>
33810
33811         fprintftime: wrap macro code argument in "do {...} while(0)"
33812         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33813         cpy macro must be a statement that can be followed by a semicolon.
33814         Now that the else clause contains a comment and is hence longer
33815         than one line, I require curly braces.  That in turn requires
33816         that we wrap this code block in the standard do...while(0).
33817
33818         fprintftime: remove stray semicolon from previous change
33819         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33820
33821         fprintftime: avoid a warning about ignored fwrite return value
33822         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33823         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33824         that is unsafe.
33825         * modules/fprintftime (Depends-on): Add ignore-value.
33826
33827         exclude: avoid an unwarranted warning
33828         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33829
33830 2009-10-27  Eric Blake  <ebb9@byu.net>
33831
33832         fseek: avoid compilation failure when fflush is replaced
33833         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33834         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33835         module is in use.
33836         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33837         module is not in use; since REPLACE_FSEEK worked otherwise.
33838         (GNULIB_FTELLO): Likewise for ftell.
33839         Reported by Ian Beckwith and others.
33840
33841 2009-10-27  Bruno Haible  <bruno@clisp.org>
33842
33843         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33844         Reported by Jim Meyering.
33845
33846 2009-10-27  Jim Meyering  <jim@meyering.net>
33847             Bruno Haible  <bruno@clisp.org>
33848
33849         Avoid warning despite dropping the return value of fwrite.
33850         * lib/unicodeio.c: Include ignore-value.h.
33851         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33852         * modules/unicodeio (Depends-on): Add ignore-value.
33853
33854 2009-10-26  Eric Blake  <ebb9@byu.net>
33855
33856         areadlinkat: fix fallback path
33857         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33858         pointer and zero.
33859
33860 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33861
33862         Use a better IO block size for modern systems
33863         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33864         * lib/md2.c: Likewise.
33865         * lib/md4.c: Likewise.
33866         * lib/md5.c: Likewise.
33867         * lib/sha1.c: Likewise.
33868         * lib/sha256.c: Likewise.
33869         * lib/sha512.c: Likewise.
33870
33871 2009-10-22  Eric Blake  <ebb9@byu.net>
33872
33873         tests: avoid several compiler warnings
33874         * tests/test-getcwd.c (main): Avoid buffer underflow.
33875         * tests/test-getdate.c (main): String literals are not safe with
33876         putenv, so use setenv.  Declare unused argument.
33877         * modules/getdate-tests (Depends-on): Add setenv.
33878         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33879         problems with string literals in char *.
33880         * tests/test-hash.c (main): Avoid shadowing declaration.
33881         (insert_new): Treat string literals as char const *.
33882         * tests/test-getopt.h (test_getopt): Likewise.
33883         (getopt_loop): Alter types to minimize casting elsewhere.
33884         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33885         (test_getopt_long_posix): Likewise.
33886         (do_getopt_long): Add wrapper to minimize casting.
33887         * tests/test-atexit.c (clear_temp_file): Use void.
33888         * tests/test-areadlink-with-size.c (main): Declare unused
33889         arguments.
33890         * tests/test-areadlink.c (main): Likewise.
33891         * tests/test-areadlinkat-with-size.c (main): Likewise.
33892         * tests/test-areadlinkat.c (main): Likewise.
33893         * tests/test-canonicalize-lgpl.c (main): Likewise.
33894         * tests/test-canonicalize.c (main): Likewise.
33895         * tests/test-dirent-safer.c (main): Likewise.
33896         * tests/test-dirname.c (main): Likewise.
33897         * tests/test-dup2.c (main): Likewise.
33898         * tests/test-fchdir.c (main): Likewise.
33899         * tests/test-fcntl-h.c (main): Likewise.
33900         * tests/test-fcntl-safer.c (main): Likewise.
33901         * tests/test-fdopendir.c (main): Likewise.
33902         * tests/test-fdutimensat.c (main): Likewise.
33903         * tests/test-fflush.c (main): Likewise.
33904         * tests/test-filenamecat.c (main): Likewise.
33905         * tests/test-filevercmp.c (main): Likewise.
33906         * tests/test-fopen-safer.c (main): Likewise.
33907         * tests/test-fopen.c (main): Likewise.
33908         * tests/test-fpending.c (main): Likewise.
33909         * tests/test-fpurge.c (main): Likewise.
33910         * tests/test-freading.c (main): Likewise.
33911         * tests/test-fstatat.c (main): Likewise.
33912         * tests/test-fsync.c (main): Likewise.
33913         * tests/test-futimens.c (main): Likewise.
33914         * tests/test-getndelim2.c (main): Likewise.
33915         * tests/test-gettimeofday.c (main): Likewise.
33916         * tests/test-getopt.c (main): Likewise.
33917         * tests/test-i-ring.c (main): Likewise.
33918         * tests/test-inttypes.c (main): Likewise.
33919         * tests/test-link.c (main): Likewise.
33920         * tests/test-lstat.c (main): Likewise.
33921         * tests/test-math.c (main): Likewise.
33922         * tests/test-md5.c (main): Likewise.
33923         * tests/test-memchr2.c (main): Likewise.
33924         * tests/test-memrchr.c (main): Likewise.
33925         * tests/test-mkdir.c (main): Likewise.
33926         * tests/test-mkdirat.c (main): Likewise.
33927         * tests/test-mkfifoat.c (main): Likewise.
33928         * tests/test-open.c (main): Likewise.
33929         * tests/test-openat-safer.c (main): Likewise.
33930         * tests/test-openat.c (main): Likewise.
33931         * tests/test-quotearg.c (main): Likewise.
33932         * tests/test-rawmemchr.c (main): Likewise.
33933         * tests/test-readlink.c (main): Likewise.
33934         * tests/test-remove.c (main): Likewise.
33935         * tests/test-rename.c (main): Likewise.
33936         * tests/test-renameat.c (main): Likewise.
33937         * tests/test-rmdir.c (main): Likewise.
33938         * tests/test-sha1.c (main): Likewise.
33939         * tests/test-signal.c (main): Likewise.
33940         * tests/test-sigaction.c (main): Likewise.
33941         * tests/test-stat.c (main): Likewise.
33942         * tests/test-stat-time.c (main): Likewise.
33943         * tests/test-stddef.c (main): Likewise.
33944         * tests/test-stdint.c (main): Likewise.
33945         * tests/test-stdio.c (main): Likewise.
33946         * tests/test-stdlib.c (main): Likewise.
33947         * tests/test-strchrnul.c (main): Likewise.
33948         * tests/test-strerror.c (main): Likewise.
33949         * tests/test-string.c (main): Likewise.
33950         * tests/test-strtod.c (main): Likewise.
33951         * tests/test-strverscmp.c (main): Likewise.
33952         * tests/test-symlink.c (main): Likewise.
33953         * tests/test-symlinkat.c (main): Likewise.
33954         * tests/test-sys_stat.c (main): Likewise.
33955         * tests/test-sys_time.c (main): Likewise.
33956         * tests/test-time.c (main): Likewise.
33957         * tests/test-unistd.c (main): Likewise.
33958         * tests/test-unlink.c (main): Likewise.
33959         * tests/test-unlinkat.c (main): Likewise.
33960         * tests/test-utimens.c (main): Likewise.
33961         * tests/test-utimensat.c (main): Likewise.
33962         * tests/test-version-etc.c (main): Likewise.
33963         * tests/test-wchar.c (main): Likewise.
33964         * tests/test-wctype.c (main): Likewise.
33965         * tests/test-xprintf-posix.c (main): Likewise.
33966         * tests/test-posixtm.c (main): Likewise.
33967         (STREQ): Delete unused macro.
33968         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33969         shadowed variables.
33970         * tests/test-memchr.c (main): Likewise.
33971
33972 2009-10-21  Eric Blake  <ebb9@byu.net>
33973
33974         areadlinkat: avoid failure on older glibc
33975         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33976         rather than mis-comparing 0 against FUNC_RESULT of char*.
33977
33978 2009-10-21  Bruno Haible  <bruno@clisp.org>
33979
33980         * modules/stpncpy (License): Relicense under LGPLv2+.
33981         Reported by David Lutterkort <lutter@redhat.com>.
33982
33983 2009-10-20  Eric Blake  <ebb9@byu.net>
33984
33985         utimensat: work around Solaris 9 bug
33986         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33987         has trailing slash bugs.
33988         * tests/test-lutimens.h (test_lutimens): Enhance test.
33989         * tests/test-utimens.h (test_utimens): Likewise.
33990         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33991         * doc/posix-functions/utimes.texi (utimes): Likewise.
33992         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33993         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33994         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33995         * doc/posix-functions/futimens.texi (futimens): Likewise.
33996
33997         fdutimensat: new module
33998         * modules/fdutimensat: New file.
33999         * lib/fdutimensat.c (fdutimensat): Likewise.
34000         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34001         * MODULES.html.sh (File system functions): Mention module.
34002         * modules/fdutimensat-tests: New test.
34003         * tests/test-fdutimensat.c: Likewise.
34004
34005         doc: regenerate INSTALL
34006         * doc/INSTALL: Reflect recent autoconf update.
34007         * doc/INSTALL.ISO: Likewise.
34008         * doc/INSTALL.UTF-8: Likewise.
34009
34010 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34011
34012         acl: warn if ACL support is not detected
34013         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34014
34015 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34016
34017         * lib/nproc.h: Add extern "C" block for C++.
34018
34019 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34020             Bruno Haible  <bruno@clisp.org>
34021
34022         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34023         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34024         * doc/posix-functions/isalpha.texi: Likewise.
34025         * doc/posix-functions/isblank.texi: Likewise.
34026         * doc/posix-functions/iscntrl.texi: Likewise.
34027         * doc/posix-functions/isdigit.texi: Likewise.
34028         * doc/posix-functions/isgraph.texi: Likewise.
34029         * doc/posix-functions/islower.texi: Likewise.
34030         * doc/posix-functions/isprint.texi: Likewise.
34031         * doc/posix-functions/ispunct.texi: Likewise.
34032         * doc/posix-functions/isspace.texi: Likewise.
34033         * doc/posix-functions/isupper.texi: Likewise.
34034         * doc/posix-functions/isxdigit.texi: Likewise.
34035
34036 2009-10-18  Bruno Haible  <bruno@clisp.org>
34037
34038         Tests for module 'isblank'.
34039         * modules/isblank-tests: New file.
34040         * tests/test-isblank.c: New file.
34041
34042         New module 'isblank'.
34043         * lib/isblank.c: New file.
34044         * m4/isblank.m4: New file.
34045         * modules/isblank: New file.
34046         * doc/posix-functions/isblank.texi: Mention the new module.
34047
34048 2009-10-18  Bruno Haible  <bruno@clisp.org>
34049
34050         New module 'ctype'.
34051         * lib/ctype.in.h: New file.
34052         * m4/ctype.m4: New file.
34053         * modules/ctype: New file.
34054         * doc/posix-headers/ctype.texi: Mention the new module.
34055
34056 2009-10-18  Jim Meyering  <meyering@redhat.com>
34057
34058         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34059         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34060         right after its initialization, rather than farther down.
34061         Keeping these in close proximity makes it easier to ensure
34062         that each such variable is initialized.  E.g.,
34063
34064             LIB_CLOCK_GETTIME=
34065             AC_SUBST([LIB_CLOCK_GETTIME])
34066
34067         This change also increments these serial numbers.
34068         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34069         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34070         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34071
34072 2009-10-18  Bruno Haible  <bruno@clisp.org>
34073
34074         Don't let environment variables perturb build.
34075         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34076         (gl_PREREQ_GETHRXTIME): ... not here.
34077
34078 2009-10-18  Bruno Haible  <bruno@clisp.org>
34079
34080         Avoid symlink attack in localcharset module.
34081         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34082         (O_NOFOLLOW): Define fallback.
34083         (get_charset_aliases): Don't open the file if it is a symbolic link.
34084         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34085         gl_FCNTL_H.
34086         (gl_FCNTL_H): Require it.
34087         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34088         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34089         Reported by Fergal Glynn <fglynn@veracode.com>.
34090
34091 2009-10-18  Bruno Haible  <bruno@clisp.org>
34092
34093         Implement nproc for mingw.
34094         * lib/nproc.c: Include <windows.h>
34095         (num_processors): On native Windows platforms, try GetSystemInfo.
34096
34097 2009-10-18  Bruno Haible  <bruno@clisp.org>
34098
34099         Implement nproc for IRIX.
34100         * lib/nproc.c: Include <sys/sysmp.h>.
34101         (num_processors): On IRIX systems, try sysmp.
34102         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34103
34104 2009-10-18  Bruno Haible  <bruno@clisp.org>
34105
34106         Implement nproc for HP-UX.
34107         * lib/nproc.c: Include <sys/pstat.h>
34108         (num_processors): On HP-UX systems, try pstat_getdynamic.
34109         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34110         pstat_getdynamic.
34111
34112 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34113             Bruno Haible  <bruno@clisp.org>
34114
34115         Implement nproc for NetBSD, OpenBSD.
34116         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34117         (ARRAY_SIZE): New macro.
34118         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34119         * m4/nproc.m4: New file.
34120         * modules/nproc (Files): Add m4/nproc.m4.
34121         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34122         (Makefile.am): Instead, augment lib_SOURCES.
34123
34124 2009-10-18  Bruno Haible  <bruno@clisp.org>
34125
34126         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34127         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34128         sys/param.h.
34129
34130 2009-10-16  Eric Blake  <ebb9@byu.net>
34131
34132         utimensat: new module
34133         * modules/utimensat: New file.
34134         * lib/utimensat.c (utimensat): Likewise.
34135         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34136         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34137         so we can work around Linux bugs.
34138         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34139         * modules/sys_stat (Makefile.am): Substitute them.
34140         * lib/sys_stat.in.h (utimensat): Declare it.
34141         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34142         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34143         * modules/utimensat-tests: New test.
34144         * tests/test-utimensat.c: Likewise.
34145
34146         utimens: let lutimens work on non-symlinks
34147         * lib/utimens.c (lutimens): Fall back to utimens rather than
34148         failing with ENOSYS, when file is not a symlink.
34149         (utimens): Reduce redirection.
34150         * tests/test-lutimens.h (test_lutimens): Update test to cover
34151         non-symlinks.
34152         * tests/test-utimens.h (test_utimens): Update test to cover
34153         symlinks.
34154         * tests/test-utimens.c (main): Update caller.
34155
34156         utimens: cache whether utimensat syscall works
34157         * lib/utimens.c (utimensat_works_really): New cache variable.
34158         (fdutimens, lutimens): Use it to avoid failing syscall.
34159
34160         test-stat-time, test-utimens: improve portability
34161         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34162         ext4 on alpha, and for cygwin.
34163         * tests/test-utimens-common.h: New file.
34164         (nap): Factor delays into single function.
34165         * tests/test-lutimens.h (test_lutimens): Use new header.
34166         * tests/test-futimens.h (test_futimens): Likewise.
34167         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34168         timestamps to occur from same machine, as was done previously for
34169         test_utimens.
34170         * modules/utimens-tests (Files): Ship new file.
34171         * modules/futimens-tests (Files): Likewise.
34172         Reported in part by Jim Meyering.
34173
34174         sys_stat: sort replacement declarations
34175         * lib/sys_stat.in.h: Sort declarations.
34176         * lib/futimens.c (futimens): Fix typo.
34177
34178 2009-10-15  Jim Meyering  <meyering@redhat.com>
34179
34180         don't let environment settings perturb build
34181         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34182         could cause a configure-time and/or build-time malfunction.
34183         Typically, a configure-time function-in-library test is performed
34184         via code like this:
34185
34186           LIB_VAR=
34187           AC_SUBST([LIB_VAR])
34188           prefix_saved_LIBS=$LIBS
34189             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34190                        [test "$ac_cv_search_FUNC" = "none required" ||
34191                         LIB_VAR=$ac_cv_search_FUNC])
34192           LIBS=$prefix_saved_LIBS
34193
34194         However, in each of the files affected by this change, the LIB_VAR=
34195         initialization was omitted.  Thus, when set in the environment, its
34196         value would propagate into generated Makefiles when FUNC is not found
34197         in LIB_NAME.
34198         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34199         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34200         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34201
34202 2009-10-14  Eric Blake  <ebb9@byu.net>
34203
34204         fchdir: avoid infinite recursion in mingw
34205         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34206         recursing.
34207
34208         test-stat-time: port to mingw
34209         * tests/test-stat-time.c (force_unlink): Return a value.
34210         (test_ctime) [W32]: Fix compilation error.
34211         (nap): Don't call usleep with too large an argument.  Use
34212         force_unlink.
34213         * doc/pastposix-functions/usleep.texi (usleep): Document the
34214         portability issue.
34215
34216 2009-10-13  Jim Meyering  <meyering@redhat.com>
34217
34218         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34219         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34220         * modules/pipe-filter-ii: Likewise.
34221         * modules/sys_socket-tests: Likewise.
34222         * modules/tsearch-tests: Likewise.
34223         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34224         (check): Depend on it.
34225
34226 2009-10-12  Eric Blake  <ebb9@byu.net>
34227
34228         utimens-tests: port to NFS file systems
34229         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34230         comparisons to avoid spurious failures from timestamp drift
34231         between NFS machines.
34232
34233 2009-10-12  Eric Blake  <ebb9@byu.net>
34234
34235         stat-time-tests: minor cleanups
34236         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34237         * tests/test-stat-time.c (nap): Separate assignment from call.
34238         Suggested by Paolo Bonzini and Bruno Haible.
34239
34240         sys_stat: guarantee struct timespec
34241         * lib/sys_stat.in.h (includes): Always include <time.h>
34242         * modules/sys_stat (Depends-on): Add time.
34243         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34244         mode_t permission values.
34245         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34246         get at subsecond timestamps.
34247
34248 2009-10-10  Eric Blake  <ebb9@byu.net>
34249
34250         futimens: new module
34251         * modules/futimens: New file.
34252         * lib/futimens.c (futimens): Likewise.
34253         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34254         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34255         we can work around Linux bugs.
34256         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34257         * modules/sys_stat (Makefile.am): Substitute them.
34258         * lib/sys_stat.in.h (futimens): Declare it.
34259         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34260         * doc/posix-functions/futimens.texi (futimens): Likewise.
34261         * modules/futimens-tests: New test.
34262         * tests/test-futimens.c: Likewise.
34263
34264         utimens: introduce fdutimens
34265         * lib/utimens.h (fdutimens): New prototype.
34266         * lib/utimens.c (gl_futimens): Move guts...
34267         (fdutimens): ...to new interface.
34268         * tests/test-utimens.c (do_fdutimens): Use it.
34269
34270         utimens: add UTIME_NOW and UTIME_OMIT support
34271         * lib/utimens.c (validate_timespec, update_timespec): New helper
34272         functions.
34273         (gl_futimens, lutimens): Use them.
34274         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34275         stdbool, sys_stat.
34276         (Link): Mention resulting library dependency.
34277         * modules/utimecmp (Link): Likewise.
34278         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34279         (Makefile.am): Pick up library dependency.
34280         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34281         definition.
34282         * tests/test-sys_stat.c: Test the definitions.
34283         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34284         * NEWS: Document library dependency.
34285
34286         utimecmp: support symlink timestamps
34287         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34288         hashing when possible.  Use pathconf when available.
34289         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34290         * modules/utimecmp (Depends-on): Add lstat.
34291
34292         utimens: add lutimens interface
34293         * lib/utimens.c (lutimens): New function.
34294         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34295         * lib/utimens.h (lutimens): Declare new interface.
34296         * tests/test-utimens.c (main): Enhance test.
34297         * tests/test-lutimens.h (test_lutimens): New file.
34298         * modules/utimens-tests (Files): Distribute it.
34299         (Depends-on): Add symlink.
34300         (configure.ac): Check for usleep.
34301
34302         utimens: validate futimens usage
34303         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34304         fewer syscalls on failure later on.  Avoid compiler warning on
34305         mingw.
34306         * modules/utimens (Depends-on): Add dup2.
34307
34308         utimens: add test
34309         * modules/utimens-tests: New test.
34310         * tests/test-utimens.h: New file.
34311         * tests/test-futimens.h: Likewise.
34312         * tests/test-utimens.c: Likewise.
34313
34314         doc: mention timestamp portability issues
34315         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34316         instead.
34317         * doc/posix-functions/utime.texi (utime): Likewise.
34318         * doc/posix-functions/utimes.texi (utimes): Likewise.
34319         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34320         instead.
34321         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34322         module.
34323         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34324         Mention weakness with symlink timestamps.
34325         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34326         to utimensat/futimens instead.
34327         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34328
34329         test-dup2: enhance test
34330         * tests/test-dup2.c (main): Also check AT_FDCWD.
34331
34332         test-stat-time: avoid more spurious failures
34333         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34334         xfs; and avoid race if the two timestamps cross quantization edge.
34335
34336         relocatable: prefer 'file system' over 'filesystem'
34337         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34338         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34339         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34340         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34341         * lib/relocatable.c (compute_curr_prefix): Likewise.
34342
34343 2009-10-10  Jim Meyering  <meyering@redhat.com>
34344
34345         stat-time-tests: check for the usleep function
34346         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34347
34348 2009-10-10  Bruno Haible  <bruno@clisp.org>
34349
34350         * modules/xnanosleep: Put the Link section after the Include section.
34351
34352 2009-10-09  Eric Blake  <ebb9@byu.net>
34353
34354         dup2: work around FreeBSD 6.1 bug
34355         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34356         * doc/posix-functions/dup2.texi (dup2): Document it.
34357         Reported by Nelson H. F. Beebe and Jim Meyering.
34358
34359         test-stat-time: port to buggy NFS clients
34360         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34361         (test_ctime): Also skip test if mtime and ctime are skewed.
34362
34363         maint: prefer 'file system' over 'filesystem'
34364         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34365         * doc/posix-functions/lstat.texi (lstat): Likewise.
34366         * lib/file-has-acl.c (file_has_acl): Likewise.
34367         * lib/fwriteerror.c [TEST]: Likewise.
34368         * tests/test-areadlink.h (test_areadlink): Likewise.
34369         * tests/test-areadlinkat-with-size.c (main): Likewise.
34370         * tests/test-areadlinkat.c (main): Likewise.
34371         * tests/test-canonicalize-lgpl.c (main): Likewise.
34372         * tests/test-canonicalize.c (main): Likewise.
34373         * tests/test-fstatat.c (main): Likewise.
34374         * tests/test-linkat.c (main): Likewise.
34375         * tests/test-lstat.h (test_lstat_func): Likewise.
34376         * tests/test-mkdir.h (test_mkdir): Likewise.
34377         * tests/test-readlink.h (test_readlink): Likewise.
34378         * tests/test-remove.c (main): Likewise.
34379         * tests/test-rename.h (test_rename): Likewise.
34380         * tests/test-renameat.c (main): Likewise.
34381         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34382         * tests/test-symlink.h (test_symlink): Likewise.
34383         * tests/test-symlinkat.c (main): Likewise.
34384         * tests/test-unlink.h (test_unlink_func): Likewise.
34385         * tests/test-unlinkat.c (main): Likewise.
34386
34387         maint: make realtime library usage explicit
34388         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34389         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34390         * modules/settime (Link): Likewise.
34391         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34392
34393         test-stat-time: speed up execution
34394         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34395         warning on mingw.
34396         (nap): New helper function.
34397         (prepare_test): Use it to reduce sleep time.
34398         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34399         execution.
34400         * modules/stat-time-tests (configure.ac): Check for usleep.
34401
34402 2009-10-09  Jim Meyering  <meyering@redhat.com>
34403
34404         selinux-h: always use getfilecon wrappers
34405         * lib/getfilecon.c: New file.
34406         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34407         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34408         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34409         (fgetfilecon): Provide a stub.
34410         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34411         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34412         file unconditionally.
34413         When <selinux/selinux.h> is found, arrange to use wrappers.
34414         * modules/selinux-h (Files): Add getfilecon.c.
34415         (Makefile.am): Substitute include-next-related bits
34416         into the now-always-generated selinux/selinux.h file.
34417         * doc/glibc-functions/lgetfilecon.texi: New file.
34418         * doc/glibc-functions/fgetfilecon.texi: New file.
34419         * doc/glibc-functions/getfilecon.texi: New file.
34420         * doc/glibc-functions/getfilecon-desc.texi: New file.
34421         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34422         which to pull in the new files.
34423         * MODULES.html.sh (Misc): Add selinux-h.
34424
34425 2009-10-08  Jim Meyering  <meyering@redhat.com>
34426
34427         unistd: fix comment typo
34428         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34429
34430 2009-10-08  Eric Blake  <ebb9@byu.net>
34431
34432         areadlink: use SIZE_MAX consistently
34433         * modules/areadlink (Depends-on): Add stdint.
34434         * modules/areadlink-with-size (Depends-on): Likewise.
34435         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34436         gives NULL; drop sys/types, since unistd gives size_t; and add
34437         stdint for SIZE_MAX.
34438         (SIZE_MAX): Rely on headers.
34439         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34440         and add stdint.
34441         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34442         (SIZE_MAX): Likewise.
34443         (INITIAL_BUF_SIZE): Turn into enum.
34444         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34445
34446 2009-10-08  Jim Meyering  <meyering@redhat.com>
34447
34448         areadlinkat: avoid compilation failure
34449         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34450         Fix typo in comment.
34451
34452 2009-10-07  Eric Blake  <ebb9@byu.net>
34453
34454         areadlinkat-with-size: new module
34455         * modules/areadlinkat-with-size: New module.
34456         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34457         * lib/areadlink.h (areadlinkat): Declare it.
34458         * MODULES.html.sh (File system functions): Mention it.
34459         * modules/areadlinkat-with-size-tests: New test.
34460         * tests/test-areadlinkat-with-size.c: New file.
34461
34462         xreadlinkat: new module
34463         * modules/xreadlinkat: New module.
34464         * lib/xreadlinkat.c (xreadlinkat): New file.
34465         * lib/xreadlink.h (xreadlinkat): Declare it.
34466         * MODULES.html.sh (File system functions): Mention it.
34467
34468         areadlinkat: new module
34469         * lib/at-func.c (FUNC_FAIL): New define.
34470         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34471         * modules/areadlinkat: New module.
34472         * lib/linkat.c (areadlinkat): Move...
34473         * lib/areadlinkat.c (areadlinkat): ...to new file.
34474         * lib/areadlink.h (areadlinkat): Declare it.
34475         * modules/linkat (Depends-on): Add areadlinkat.
34476         * MODULES.html.sh (File system functions): Mention it.
34477         * modules/areadlinkat-tests: New test.
34478         * tests/test-areadlinkat.c: New file.
34479
34480         areadlink, areadlink-with-size: add tests
34481         * modules/areadlink-tests: New test.
34482         * modules/areadlink-with-size-tests: Likewise.
34483         * tests/test-areadlink.h: New file.
34484         * tests/test-areadlink.c: Likewise.
34485         * tests/test-areadlink-with-size.c: Likewise.
34486
34487         maint: minor cleanups
34488         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34489         _UNUSED_PARAMETER_ instead.
34490         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34491         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34492         * modules/linkat-tests (Files): Distribute test-link.h.
34493
34494         openat, utimens: whitespace cleanup
34495         * lib/openat.c: Prefer space throughout, rather than mix of 8
34496         spaces vs. tabs.
34497         * lib/at-func.c: Likewise.
34498         * lib/utimens.c: Likewise.
34499
34500         openat: avoid using wrong fd
34501         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34502         working directory chooses same fd.
34503         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34504
34505         mkdir, mkdirat: fix cygwin 1.5.x bug
34506         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34507         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34508         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34509         bug.
34510         (gl_PREREQ_MKDIR): Delete unused macro.
34511         * modules/mkdir (Files): Track file rename.
34512         (configure.ac): Update macro name.
34513         * modules/openat (Depends-on): Add mkdir.
34514         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34515
34516         mkdir, mkdirat: add tests
34517         * modules/mkdir-tests: New test.
34518         * tests/test-mkdir.h: New file.
34519         * tests/test-mkdir.c: Likewise.
34520         * tests/test-mkdirat.c: Likewise.
34521         * modules/openat-tests (Files): Add new files.
34522         (Makefile.am): Run new test.
34523
34524 2009-10-06  Eric Blake  <ebb9@byu.net>
34525
34526         doc: tweak *at function documentation
34527         * doc/posix-functions/faccessat.texi (faccessat): Mention
34528         known issue with replacement.
34529         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34530         * doc/posix-functions/linkat.texi (linkat): Likewise.
34531         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34532         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34533         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34534         * doc/posix-functions/renameat.texi (renameat): Likewise.
34535         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34536
34537         openat: fix GNU/Hurd bug in unlinkat
34538         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34539         broken.
34540         * doc/posix-functions/unlink.texi (unlink): Document this.
34541         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34542
34543         fdopendir: fix GNU/Hurd bug
34544         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34545         allowing non-directory fds.
34546         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34547         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34548         * modules/dirent (Makefile.am): Substitute it.
34549         * lib/dirent.in.h (fdopendir): Declare replacement.
34550         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34551         * tests/test-fdopendir.c (main): Test something other than
34552         /dev/null, since on Hurd that behaves like a directory.
34553
34554         test-symlink: port to GNU/Hurd
34555         * tests/test-symlink.h (test_symlink): Relax expected errno.
34556
34557         doc: tweak more cygwin information
34558         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34559         now compatible with glibc.
34560         * doc/posix-functions/getopt.texi (getopt): Likewise.
34561
34562         getopt-gnu: add another test
34563         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34564         guarantee behavior relied on by m4.
34565         * tests/test-getopt.c (main): Use it.
34566         * modules/getopt-posix-tests (Depends-on): Add setenv.
34567         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34568
34569         getopt: fix compilation on darwin
34570         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34571         include.
34572         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34573         Reported by Ludovic Courtès.
34574
34575 2009-10-06  Bruno Haible  <bruno@clisp.org>
34576
34577         * modules/size_max (Description): Discourage its use.
34578         Reported by Simon Josefsson.
34579
34580 2009-10-06  Jim Meyering  <meyering@redhat.com>
34581
34582         linkat: avoid compilation failure
34583         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34584
34585 2009-10-05  Eric Blake  <ebb9@byu.net>
34586
34587         linkat: support Linux 2.6.17
34588         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34589         linkat on Linux, but allow cache variable override.
34590         * lib/linkat.c (rpl_linkat): Define override.
34591         * modules/linkat (Depends-on): Add symlinkat.
34592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34593         * modules/unistd (Makefile.am): Substitute it.
34594         * lib/unistd.in.h (linkat): Declare replacement.
34595         Reported by Pádraig Brady.
34596
34597         quotearg: port test to systems with C.UTF-8 locale
34598         * tests/test-quotearg.c (struct result_strings): Add another
34599         member, differentiating between C.ASCII and C.UTF-8 handling.
34600         (compare_strings): Add parameter.
34601         (main): Adjust all callers.
34602
34603         getopt: avoid clash with FreeBSD _getopt_internal
34604         * lib/getopt.in.h (_getopt_internal): Override the name.
34605         * lib/getopt_int.h (includes): Pick up any overrides.
34606         Reported by Reuben Thomas.
34607
34608         hash: allow C89 compilation
34609         * lib/hash.c (check_tuning): Move declaration before statement.
34610         Reported by Reuben Thomas.
34611
34612 2009-10-05  Karl Berry  <karl@gnu.org>
34613
34614         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34615
34616 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34617             Bruno Haible  <bruno@clisp.org>
34618
34619         * lib/uname.c (uname): Use a table-driven algorithm to compute
34620         Windows NT versions.
34621
34622 2009-10-04  Bruno Haible  <bruno@clisp.org>
34623
34624         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34625         program_invocation_short_name.
34626         * modules/progname (configure.ac): Test for presence of
34627         program_invocation_short_name.
34628         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34629
34630 2009-10-04  Bruno Haible  <bruno@clisp.org>
34631
34632         * lib/progname.c (set_program_name): Fix comment.
34633         Reported by Jim Meyering.
34634
34635 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34636             Bruno Haible  <bruno@clisp.org>
34637
34638         * lib/uname.c: Include <string.h>.
34639         (uname): Do only one call to GetVersionEx in the common case.
34640
34641 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34642             Bruno Haible  <bruno@clisp.org>
34643
34644         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34645         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34646         (uname): Add support for Windows CE and various non-x86 CPU types.
34647
34648 2009-10-03  Bruno Haible  <bruno@clisp.org>
34649
34650         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34651         invocation to tests/configure.ac.
34652         Reported by Ian Beckwith <ianb@erislabs.net>.
34653
34654 2009-10-02  Eric Blake  <ebb9@byu.net>
34655
34656         fchdir: avoid compiler warning
34657         * lib/fchdir.c (canonicalize_file_name)
34658         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34659
34660         test-open: support mingw errno values
34661         * tests/test-open.h (test_open): Relax test.
34662         * tests/test-fopen.h (test_fopen): Likewise.
34663         * tests/test-openat-safer.c (main): Likewise.
34664
34665         open: fix opening directory on mingw
34666         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34667
34668         test-open: on GNU/Hurd, /dev/null is a directory
34669         * tests/test-fopen.h (main): Rename...
34670         (test_fopen): ...to this.  Use a guaranteed non-directory when
34671         confirming open behavior on trailing slash.
34672         * tests/test-openat-safer.c (main): Likewise.
34673         * tests/test-open.h (main): Likewise....
34674         (test_open): ...to this.
34675         * tests/test-fopen.c (main): Adjust caller.
34676         * tests/test-fopen-safer.c (main): Likewise.
34677         * tests/test-open.c (main): Likewise.
34678         * tests/test-fcntl-safer.c (main): Likewise.
34679         Reported by Samuel Thibault.
34680
34681         rename, fchdir: don't ignore chdir failure
34682         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34683         * lib/rename.c (rpl_rename) [W32]: Likewise.
34684         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34685         an empty destination directory if source cannot be renamed,
34686         although there is still possibility for failure.
34687         * doc/posix-functions/rename.texi (rename): Document the race.
34688         Reported by Jim Meyering.
34689
34690         maint: cleanup whitespace in recent commits
34691         * lib/rename.c (rpl_rename): Remove tabs.
34692         * tests/test-link.h (test_link): Likewise.
34693         * lib/fchdir.c (get_name): Likewise.
34694         Reported by Jim Meyering.
34695
34696 2009-10-02  Ben Pfaff  <blp@gnu.org>
34697
34698         relocatable-prog-wrapper: Add missing dependency on
34699         double-slash-root.
34700         * modules/relocatable-prog-wrapper: Add dependency.
34701         Reported by Ian Beckwith <ianb@erislabs.net>.
34702
34703 2009-10-02  Eric Blake  <ebb9@byu.net>
34704
34705         renameat: fix Solaris bugs
34706         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34707         needed fixing.
34708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34709         * modules/stdio (Makefile.am): Substitute it.
34710         * lib/stdio.in.h (renameat): Declare replacement.
34711         * lib/renameat.c (rpl_renameat): Implement fix.
34712
34713         renameat: new module
34714         * modules/renameat: New file.
34715         * lib/renameat.c (renameat): Likewise.
34716         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34718         * modules/stdio (Makefile.am): Substitute them.
34719         * lib/stdio.in.h (renameat): Declare it.
34720         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34721         * doc/posix-functions/renameat.texi (renameat): Likewise.
34722         * modules/renameat-tests: New test.
34723         * tests/test-renameat.c: Likewise.
34724
34725         rename: fix mingw bugs
34726         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34727         directory overwrite bugs.
34728
34729         rename: fix another cygwin 1.5 bug
34730         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34731         checks.
34732         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34733         unnecessary cygwin workarounds.  Also work around bug with moving
34734         full directory onto an empty one.
34735         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34736
34737         rename-dest-slash: merge into rename module
34738         * modules/rename-dest-slash (Status): Mark obsolete.
34739         (Depends-on): Add rename.
34740         (Files): Let rename do it all.
34741         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34742         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34743         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34744         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34745         * lib/rename.c (rpl_rename): Update comments.
34746
34747         rename: fix cygwin 1.5.x bugs
34748         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34749         * lib/rename.c (rpl_rename): Work around them.
34750         * modules/rename (Depends-on): Add same-inode.
34751
34752         rename: fix Solaris 10 bug
34753         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34754         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34755         was the only bug.
34756
34757         rename: fix Solaris 9 bug
34758         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34759         on non-directory.  Avoid calling exit.
34760         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34761         strdup.
34762         * modules/rename-tests (Depends-on): Drop lstat.
34763         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34764         (gl_PREREQ_RENAME): Delete unused macro.
34765
34766         rename-dest-slash: fix NetBSD bug
34767         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34768         links.
34769         * modules/rename-dest-slash (Depends-on): Add same-inode.
34770
34771         rename-tests: new test, exposes several platform bugs
34772         * modules/rename-tests: New file.
34773         * tests/test-rename.h: Likewise.
34774         * tests/test-rename.c: Likewise.
34775         * doc/posix-functions/rename.texi (rename): Improve documentation,
34776         including bugs that will eventually be fixed in gnulib.
34777
34778 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34779
34780         * lib/uname.c: Include <stdlib.h>
34781         (uname): Assume version info is available.
34782
34783 2009-10-02  Jim Meyering  <meyering@redhat.com>
34784
34785         gnu-web-doc-update: correct --help output
34786         * build-aux/gnu-web-doc-update: Make --help output relevant.
34787
34788         gnu-web-doc-update: add standard options
34789         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34790
34791         gnu-web-doc-update: New module.
34792         Use this script to automatically update the on-line web documentation
34793         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34794         * modules/gnu-web-doc-update: New file, from coreutils.
34795         * build-aux/gnu-web-doc-update: New script.
34796
34797 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34798
34799         link: LoadLibrary is not needed.
34800         * lib/link.c: Use GetModuleHandle.
34801
34802 2009-10-01  Eric Blake  <ebb9@byu.net>
34803
34804         getopt: bump serial number
34805         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34806         change.
34807
34808         tests: tighten link, rmdir, and remove tests
34809         * tests/test-link.h (includes): No need to use <config.h> here.
34810         Clean up if directory hard link was created, otherwise test for
34811         trailing '.'.
34812         * tests/test-linkat.c (main): Simplify.
34813         * tests/test-remove.c (main): Enhance test for trailing '.'.
34814         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34815
34816 2009-10-01  Jim Meyering  <meyering@redhat.com>
34817
34818         maint.mk: requiring "make major" was annoying, for a "minor" release.
34819         What is intended is "stable", to contrast with alpha and beta,
34820         so require "make stable", not "make major".
34821         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34822         (get_tool_versions): Likewise.
34823         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34824
34825 2009-09-30  Ben Pfaff  <blp@gnu.org>
34826
34827         Fix broken build of replacement for Windows tmpfile().
34828         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34829         flags argument added along with the 'mkostemp' module.
34830
34831 2009-09-28  Bruno Haible  <bruno@clisp.org>
34832
34833         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34834         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34835         to 'remove_elt'.
34836         (gl_list_remove): Update.
34837         * lib/gl_list.c (gl_list_remove): Update.
34838         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34839         to 'remove_elt'.
34840         (gl_oset_remove): Update.
34841         * lib/gl_list.c (gl_oset_remove): Update.
34842         Reported by Eric Blake.
34843
34844 2009-09-28  Eric Blake  <ebb9@byu.net>
34845
34846         doc: mention yet more cygwin 1.7 status
34847         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34848         cygwin.
34849         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34850         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34851
34852         argp: fix test failure
34853         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34854         that are not upper-case.  Pass correct range to tolower.
34855
34856 2009-09-27  Jim Meyering  <meyering@redhat.com>
34857
34858         test-yesno: work around sparc-dash here-document infelicity
34859         Without this change, the literal \177 byte in a here document
34860         would make dash 0.5.5.1-3 access uninitialized memory.
34861         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34862         Instead, use a marker, "@", and filter through tr to create the desired
34863         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34864
34865 2009-09-27  Bruno Haible  <bruno@clisp.org>
34866
34867         Disable untested support for new flavours of ACLs on AIX.
34868         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34869         progress.
34870         * lib/set-mode-acl.c (qset_acl): Likewise.
34871
34872 2008-12-07  Bruno Haible  <bruno@clisp.org>
34873
34874         Add support for new flavours of ACLs on AIX. (Untested.)
34875         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34876         (file_has_acl): Add support for newer AIX.
34877         * lib/set-mode-acl.c (qset_acl): Likewise.
34878         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34879         Rainer Tammer <tammer@tammer.net>.
34880
34881 2009-09-26  Eric Blake  <ebb9@byu.net>
34882
34883         argp: fix compilation of getopt
34884         * lib/getopt.in.h (includes): Use different guard than glibc.
34885         Reported by Sergey Poznyakoff.
34886
34887         doc: mention more cygwin 1.7 status
34888         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34889         bug.
34890         * doc/posix-functions/execl.texi (execl): Likewise.
34891         * doc/posix-functions/execle.texi (execle): Likewise.
34892         * doc/posix-functions/execlp.texi (execlp): Likewise.
34893         * doc/posix-functions/execv.texi (execv): Likewise.
34894         * doc/posix-functions/execve.texi (execve): Likewise.
34895         * doc/posix-functions/execvp.texi (execvp): Likewise.
34896         * doc/glibc-functions/canonicalize_file_name.texi
34897         (canonicalize_file_name): Cygwin 1.7 now provides this.
34898         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34899         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34900         on AT_SYMLINK_NOFOLLOW.
34901
34902 2009-09-24  Eric Blake  <ebb9@byu.net>
34903
34904         test-linkat: make test more robust
34905         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34906
34907         getopt: fix inclusion guards for cygwin
34908         * modules/getopt-posix (Depends-on): Add include-next.
34909         (Makefile.am): Substitute more items in replacement header.
34910         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34911         <getopt.h>.
34912         * lib/getopt.in.h (includes): Use split inclusion guard, and
34913         prefer <getopt.h> over include <unistd.h> when one is present.
34914         (option): Also override name of 'struct option'.
34915
34916         same-inode: revert prior change; it is not yet ready
34917         * NEWS: Undo mention of this change.
34918         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34919         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34920         * lib/cycle-check.c (cycle_check): Likewise.
34921         * lib/same.c (same_name): Likewise.
34922         * lib/at-func2.c (at_func2): Likewise.
34923
34924 2009-09-23  Eric Blake  <ebb9@byu.net>
34925
34926         linkat: new module
34927         * modules/linkat: New file.
34928         * lib/at-func2.c (at_func2): Likewise.
34929         * lib/linkat.c (linkat): Likewise.
34930         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34931         * lib/openat-priv.h (at_func2): Add declaration.
34932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34933         * modules/unistd (Makefile.am): Substitute them.
34934         * lib/unistd.in.h (linkat): Declare it.
34935         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34936         * doc/posix-functions/linkat.texi (linkat): Likewise.
34937         * doc/posix-functions/link.texi (link): Tweak wording.
34938         * tests/test-link.c (main): Move guts...
34939         * tests/test-link.h (test_link): ...into new file.
34940         * modules/linkat-tests: New test.
34941         * tests/test-linkat.c: Likewise.
34942         * modules/link-tests (Files): Ship new file.
34943         (Depends-on): Add stdbool.
34944
34945         dirname: add library-safe mdir_name
34946         * lib/dirname.h (mdir_name): New prototype.
34947         * lib/dirname.c (dir_name): Move guts...
34948         (mdir_name): ...to new function that avoids xalloc_die.
34949
34950         fchdir: another mingw fix
34951         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34952         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34953         on mingw (where it has not yet been ported), and make it optional
34954         elsewhere.
34955         (_gl_register_fd): Use it.
34956
34957         same-inode: make SAME_INODE tri-state, to port to mingw
34958         * NEWS: Mention this change.
34959         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34960         st_ino always being 0.
34961         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34962         * lib/cycle-check.c (cycle_check): Likewise.
34963         * lib/same.c (same_name): Likewise.
34964
34965         lstat: avoid mingw compilation error
34966         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34967         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34968         lstat ourselves.
34969         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34970         was adequate.
34971         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34972         the checks for lstat.
34973         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34974
34975         link: fix test failure on Solaris 9
34976         * lib/link.c (rpl_link): Don't assume link will catch bogus
34977         trailing slash on source.
34978
34979         test-symlinkat: enhance test
34980         * tests/test-readlink.c (main): Move guts...
34981         * tests/test-readlink.h (test_readlink): ...into new file.
34982         * tests/test-symlink.c (main): Move guts...
34983         * tests/test-symlink.h (test_symlink): ...into new file.
34984         * tests/test-symlinkat.c (main): Use new files for further
34985         coverage.
34986         (do_symlink, do_readlink): New helper functions.
34987         * modules/symlink-tests (Files): Ship new file.
34988         (Depends-on): Add stdbool.
34989         * modules/readlink-tests (Files): Ship new file.
34990         (Depends-on): Add stdbool.
34991         * modules/symlinkat-tests (Files): Use new files.
34992
34993 2009-09-23  Eric Blake  <ebb9@byu.net>
34994
34995         readlink: document portability issue with symlink length
34996         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34997         systems have bogus st_size on symlinks, and mention the
34998         areadlink-with-size module.
34999         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35000         * doc/posix-functions/readlink.texi (readlink): Mention the
35001         areadlink module, and ERANGE failure.
35002         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35003         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35004
35005         readlink: fix Solaris 9 bug with trailing slash
35006         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35007         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35008         * doc/posix-functions/readlink.texi (readlink): Document this.
35009         * modules/readlink-tests: New test.
35010         * tests/test-readlink.c: Likewise.
35011
35012         readlink: fix cygwin 1.5.x bug with return type
35013         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35014         * lib/unistd.in.h (readlink): Use ssize_t.
35015         * lib/readlink.c (readlink): Likewise.
35016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35017         * modules/unistd (Makefile.am): Substitute it.
35018         * lib/unistd.in.h (readlink): Declare replacement.
35019         * doc/posix-functions/readlink.texi (readlink): Document this.
35020
35021         symlink: use throughout gnulib
35022         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35023         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35024         symlink is not used.
35025         * modules/symlinkat (Depends-on): Add symlink.
35026         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35027         * modules/canonicalize-tests (Depends-on): Likewise.
35028         * modules/lstat-tests (Depends-on): Likewise.
35029         * modules/openat-tests (Depends-on): Likewise.
35030         * modules/remove-tests (Depends-on): Likewise.
35031         * modules/rmdir-tests (Depends-on): Likewise.
35032         * modules/unlink-tests (Depends-on): Likewise.
35033         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35034         * tests/test-canonicalize.c (symlink): Likewise.
35035         * tests/test-fstatat.c (symlink): Likewise.
35036         * tests/test-lstat.c (symlink): Likewise.
35037         * tests/test-remove.c (symlink): Likewise.
35038         * tests/test-rmdir.c (symlink): Likewise.
35039         * tests/test-unlink.c (symlink): Likewise.
35040         * tests/test-unlinkat.c (symlink): Likewise.
35041
35042         symlink: new module, for Solaris 9 bug
35043         * modules/symlink: New file.
35044         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35045         * lib/symlink.c: Likewise.
35046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35047         * modules/unistd (Makefile.am): Substitute them.
35048         * lib/unistd.in.h (symlink): Declare replacement.
35049         * MODULES.html.sh (File system functions): Mention it.
35050         * doc/posix-functions/symlink.texi (symlink): Likewise.
35051         * modules/symlink-tests: New test.
35052         * tests/test-symlink.c: Likewise.
35053
35054 2009-09-23  Bruno Haible  <bruno@clisp.org>
35055
35056         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35057         when needed.
35058         Test case: gnulib-tool --import --with-tests atexit inttypes.
35059         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35060
35061 2009-09-23  Bruno Haible  <bruno@clisp.org>
35062
35063         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35064         subcommand, not in a subshell.
35065
35066 2009-09-22  Eric Blake  <ebb9@byu.net>
35067
35068         unistd: sort replacement declarations
35069         * lib/unistd.in.h: Sort declarations.
35070
35071         open, openat: minor optimization
35072         * lib/open.c (open): If open succeeded, len is non-zero.
35073         * lib/openat.c (rpl_openat): Likewise.
35074
35075         link-follow: ensure correct result
35076         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35077         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35078         distinguish between possible failures.
35079
35080 2009-09-21  Eric Blake  <ebb9@byu.net>
35081
35082         fts: avoid compiler warning
35083         * lib/fts.c (dirent_inode_sort_may_be_useful)
35084         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35085
35086 2009-09-19  Bruno Haible  <bruno@clisp.org>
35087
35088         * lib/progreloc.c (canonicalize_file_name): New declaration.
35089
35090 2009-09-19  Eric Blake  <ebb9@byu.net>
35091
35092         link: fix quoting
35093         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35094
35095         openat: fix openat bugs on Solaris 9
35096         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35097         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35098         * modules/openat (Depends-on): Add open.
35099         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35100         * modules/fcntl-h (Makefile.am): Substitute it.
35101         * lib/fcntl.in.h (openat): Declare replacement.
35102         * doc/posix-functions/openat.texi (openat): Document this.
35103
35104         openat: move fstatat and unlinkat into correct files
35105         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35106         compiled.
35107         * lib/openat.c (fstatat, unlinkat): Move...
35108         * lib/fstatat.c (fstatat): ...into correct files.
35109         * lib/unlinkat.c (unlinkat): Likewise.
35110
35111         openat: fix unlinkat bugs on Solaris 9
35112         * lib/unlinkat.c (unlinkat): New file.
35113         * modules/openat (Depends-on): Add unlink.
35114         (Files): Distribute it.
35115         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35116         trailing slash behavior is broken.
35117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35118         * modules/unistd (Makefile.am): Substitute it.
35119         * lib/unistd.in.h (unlinkat): Declare replacement.
35120         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35121
35122         openat: fix fstatat bugs on Solaris 9
35123         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35124         stat.
35125         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35126
35127         test-unlinkat: enhance test, to expose Solaris 9 bug
35128         * tests/test-unlink.c (main): Factor guts...
35129         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35130         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35131         * tests/test-rmdir.c (main): Adjust caller.
35132         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35133         (unlinker): New helper function.
35134         (rmdirat): Enhance check.
35135         * modules/rmdir-tests (Depends-on): Add stdbool.
35136         * modules/unlink-tests (Depends-on): Likewise.
35137         (Files): Add test-unlink.h.
35138         * modules/openat-tests (Files): Likewise.
35139         (Depends-on): Add unlinkdir.
35140
35141         test-fstatat: new test, to expose Solaris 9 bugs
35142         * tests/test-stat.c (main): Factor guts...
35143         * tests/test-stat.h (test_stat_func): ...into new file.
35144         * tests/test-lstat.c (main): Factor guts...
35145         * tests/test-lstat.h (test_lstat_func): ...into new file.
35146         * tests/test-fstatat.c: New file.
35147         * modules/stat-tests (Files): Add test-stat.h.
35148         * modules/lstat-tests (Files): Add test-lstat.h.
35149         (Depends-on): Add stdbool.
35150         * modules/openat-tests (Depends-on): Add pathmax.
35151         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35152         (Makefile.am): Run new test.
35153
35154         remove: new module, for mingw and Solaris 9 bugs
35155         * modules/remove: New file.
35156         * lib/remove.c: Likewise.
35157         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35159         * modules/stdio (Makefile.am): Use them.
35160         * lib/stdio.in.h (remove): Declare replacement.
35161         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35162         * doc/posix-functions/remove.texi (remove): Likewise.
35163         * modules/remove-tests: New test.
35164         * tests/test-remove.c: Likewise.
35165
35166         unlink: new module, for Solaris 9 bug
35167         * modules/unlink: New file.
35168         * lib/unlink.c: Likewise.
35169         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35171         * modules/unistd (Makefile.am): Use them.
35172         * lib/unistd.in.h (stat): Declare replacement.
35173         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35174         * doc/posix-functions/unlink.texi (unlink): Likewise.
35175         * modules/unlink-tests: New test.
35176         * tests/test-unlink.c: Likewise.
35177
35178         lstat: fix Solaris 9 bug
35179         * lib/lstat.c (lstat): Also check for trailing slash on
35180         non-symlink, non-directories.  Use stat module to simplify logic.
35181         * doc/posix-functions/lstat.texi (lstat): Document it.
35182         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35183         (configure.ac): Check for symlink.
35184         * tests/test-lstat.c (main): Add more tests.
35185
35186         stat: add as dependency to other modules
35187         * modules/chown (Depends-on): Add stat.
35188         * modules/euidaccess (Depends-on): Likewise.
35189         * modules/fchdir (Depends-on): Likewise.
35190         * modules/isdir (Depends-on): Likewise.
35191         * modules/link (Depends-on): Likewise.
35192         * modules/lstat (Depends-on): Likewise.
35193         * modules/mkdir-p (Depends-on): Likewise.
35194         * modules/modechange (Depends-on): Likewise.
35195         * modules/open (Depends-on): Likewise.
35196         * modules/readlink (Depends-on): Likewise.
35197         * modules/same (Depends-on): Likewise.
35198
35199         stat: fix Solaris 9 bug
35200         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35201         slash.
35202         * lib/stat.c (rpl_stat): Work around it.
35203         * doc/posix-functions/stat.texi (stat): Update documentation.
35204
35205         stat: new module, for mingw bug
35206         * modules/stat: New file.
35207         * lib/stat.c: Likewise.
35208         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35209         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35210         * modules/sys_stat (Makefile.am): Use them.
35211         * lib/sys_stat.in.h (stat): Declare replacement.
35212         * lib/openat.c (fstatat): Deal with lstat and stat being function
35213         macros.
35214         * modules/openat (Depends-on): Add inline.
35215         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35216         * doc/posix-functions/stat.texi (stat): Likewise.
35217         * modules/stat-tests: New test.
35218         * tests/test-stat.c: Likewise.
35219
35220 2009-09-19  Jim Meyering  <meyering@redhat.com>
35221
35222         syntax-check: detect unnecessary inclusion of canonicalize.h
35223         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35224
35225 2009-09-19  Eric Blake  <ebb9@byu.net>
35226
35227         canonicalize-lgpl: adjust clients to use correct header
35228         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35229         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35230         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35231         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35232         * lib/progreloc.c (includes): Likewise.
35233
35234 2009-09-19  Jim Meyering  <meyering@redhat.com>
35235
35236         test-posixtm.c: correct a comment
35237         * tests/test-posixtm.c: Correct first-line comment.
35238         Spotted by Eric Blake.
35239
35240 2009-09-16  Jim Meyering  <meyering@redhat.com>
35241
35242         posixtm-tests: make T const-correct; add a test case
35243         * tests/test-posixtm.c (T): Declare const.
35244         Add a test for -(2^31+1).
35245         Remove useless can-succeed-only-in-2002 test.
35246
35247         posixtm-tests: adjust the sole failing test
35248         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35249         expected output matches what mktime now produces.  Cross-checked via
35250         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35251
35252         posixtm: move #ifdef'd tests into a new module
35253         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35254         * tests/test-posixtm.c: ... this new file.
35255         * modules/posixtm-tests: New module.
35256
35257 2009-09-19  Eric Blake  <ebb9@byu.net>
35258
35259         openat: simplify use of at-func.c
35260         * lib/at-func.c (includes): Include prerequisites here, to
35261         simplify requirements on client files.
35262         * lib/openat-priv.h: Add double-inclusion guard.
35263         * lib/faccessat.c (includes): Simplify.
35264         * lib/fchmodat.c (includes): Likewise.
35265         * lib/fchownat.c (includes): Likewise.
35266         * lib/mkdirat.c (includes): Likewise.
35267         * lib/mkfifoat.c (includes): Likewise.
35268         * lib/symlinkat.c (includes): Likewise.
35269
35270         openat: allow return of fd 0
35271         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35272         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35273         unistd-safer.
35274         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35275         <fcntl.h>; this module does not leak fds.
35276         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35277         must be allowed to return 0, leaving openat_safer to add the
35278         safety.
35279         (openat_permissive): Avoid writing to just-opened fd 2 if
35280         restoring the current directory fails.
35281         * lib/openat-die.c (openat_restore_fail): Add comment.
35282         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35283         (save_cwd): Guarantee safe fd, but without use of open_safer.
35284         * tests/test-openat.c: New test.
35285         * modules/openat-tests (Files, Makefile.am): Distribute and build
35286         new file.
35287
35288         relocatable-prog-wrapper: fix build
35289         * modules/relocatable-prog-wrapper (Files): Update name of
35290         canonicalize m4 file, broken on 2009-09-17.
35291         Reported by emad hajjar <aleppos@hotmail.com>.
35292
35293 2009-09-19  Bruno Haible  <bruno@clisp.org>
35294
35295         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35296         * lib/safe-alloc.c: Likewise.
35297         Reported by Ian Beckwith <ianb@erislabs.net>.
35298
35299 2009-09-18  Bruno Haible  <bruno@clisp.org>
35300
35301         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35302         Reported by <erobles@sensacd.com.mx>.
35303
35304 2009-09-17  Eric Blake  <ebb9@byu.net>
35305
35306         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35307         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35308         slashes when checking if last component is missing.
35309         * tests/test-canonicalize.c (main): Test this.
35310
35311         canonicalize, canonicalize-lgpl: honor // if distinct from /
35312         * modules/canonicalize (Files): Add double-slash-root.m4.
35313         * modules/canonicalize-lgpl (Files): Likewise.
35314         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35315         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35316         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35317         fallback definition.
35318         (canonicalize_filename_mode): Use it to protect //.
35319         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35320         (__realpath): Likewise.
35321         * tests/test-canonicalize.c (main): Test this.
35322         * tests/test-canonicalize-lgpl.c (main): Likewise.
35323         * modules/canonicalize-tests (Depends-on): Add same-inode.
35324         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35325
35326         canonicalize-lgpl: fix glibc bug with trailing slash
35327         * m4/canonicalize-lgpl.m4: Move contents...
35328         * m4/canonicalize.m4: ...here.
35329         (gl_CANONICALIZE_LGPL): Factor realpath check...
35330         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35331         glibc 2.3.5 bug, fixed 2005-04-27.
35332         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35333         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35334         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35335         * modules/canonicalize-lgpl (Files): Manage file rename.
35336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35337         * modules/stdlib (Makefile.am): Substitute witness.
35338         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35339         is needed.
35340         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35341         replacement is required.
35342         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35343         * doc/glibc-functions/canonicalize_file_name.texi
35344         (canonicalize_file_name): Document this.
35345         * doc/posix-functions/realpath.texi (realpath): Likewise.
35346
35347         canonicalize-lgpl: reject non-directory with trailing slash
35348         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35349         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35350         catches failures in glibc 2.3.5.
35351         * tests/test-canonicalize.c (main): Likewise.
35352
35353         canonicalize-lgpl: use native realpath if it works
35354         * lib/canonicalize-lgpl.c (realpath): Guard with
35355         FUNC_REALPATH_WORKS.
35356         * lib/stdlib.in.h (realpath): Make declaration optional based on
35357         HAVE_REALPATH.
35358         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35359         native realpath works.
35360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35361         * modules/stdlib (Makefile.am): Substitute witness.
35362
35363         canonicalize, canonicalize-lgpl: use <stdlib.h>
35364         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35365         (Include): Mention <stdlib.h>.
35366         (configure.ac): Mention functions we provide.
35367         * modules/canonicalize (configure.ac): Likewise.
35368         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35369         realpath if canonicalize_file_name is missing.
35370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35371         * modules/stdlib (Makefile.am): Substitute witnesses.
35372         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35373         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35374         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35375         * NEWS: Document this.
35376         * doc/glibc-functions/canonicalize_file_name.texi
35377         (canonicalize_file_name): Likewise.
35378         * doc/posix-functions/realpath.texi (realpath): Likewise.
35379         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35380
35381         test-canonicalize: consolidate into single C program
35382         * tests/test-canonicalize.sh: Delete; move setup into...
35383         * tests/test-canonicalize.c (main): ...the program, making it
35384         easier to run in debugger.  Add some tests.
35385         * modules/canonicalize-tests (Files): Remove unused file.
35386         (Depends-on): Add progname.
35387         (configure.ac, Makefile.am): Simplify.
35388
35389         test-canonicalize-lgpl: consolidate into single C program
35390         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35391         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35392         easier to run in debugger.  Add some tests.
35393         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35394         (configure.ac, Makefile.am): Simplify.
35395
35396         canonicalize: avoid resolvepath
35397         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35398         unnecessary checks.
35399         * lib/canonicalize.c (includes): Simplify.
35400         (canonicalize_file_name): Drop resolvepath implementation.
35401         * modules/canonicalize (Depends-on): Drop filenamecat.
35402
35403         canonicalize: don't lose errno
35404         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35405         over calls to free.
35406
35407         canonicalize: simplify errno handling
35408         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35409         assignment.
35410
35411         canonicalize, canonicalize-lgpl: update module dependencies
35412         * modules/canonicalize (Depends-on): Add extensions, lstat,
35413         pathmax, stdlib.
35414         (Files): Drop pathmax.h.
35415         (configure.ac): Adjust macro name.
35416         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35417         lstat, stdlib, sys_stat.
35418         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35419         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35420         extensions.
35421         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35422         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35423         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35424         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35425         declaration, if available.
35426         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35427         we can rely on the readlink module.
35428         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35429         (includes): Use <unistd.h> unconditionally.
35430
35431 2009-09-17  Eric Blake  <ebb9@byu.net>
35432
35433         maint: make Include sections of modules consistent
35434         * modules/alloca: Use only header name; no need to list #include.
35435         * modules/alloca-opt: Likewise.
35436         * modules/arpa_inet: Likewise.
35437         * modules/canon-host: Likewise.
35438         * modules/configmake: Likewise.
35439         * modules/dirent: Likewise.
35440         * modules/eealloc: Likewise.
35441         * modules/environ: Likewise.
35442         * modules/fchdir: Likewise.
35443         * modules/fcntl: Likewise.
35444         * modules/fcntl-h: Likewise.
35445         * modules/gethrxtime: Likewise.
35446         * modules/gettime: Likewise.
35447         * modules/ignore-value: Likewise.
35448         * modules/inet_ntop: Likewise.
35449         * modules/inet_pton: Likewise.
35450         * modules/inttypes: Likewise.
35451         * modules/isnand-nolibm: Likewise.
35452         * modules/isnanf-nolibm: Likewise.
35453         * modules/mbchar: Likewise.
35454         * modules/mbfile: Likewise.
35455         * modules/mbiter: Likewise.
35456         * modules/mbuiter: Likewise.
35457         * modules/netdb: Likewise.
35458         * modules/netinet_in: Likewise.
35459         * modules/nproc: Likewise.
35460         * modules/pagealign_alloc: Likewise.
35461         * modules/poll: Likewise.
35462         * modules/printf-frexp: Likewise.
35463         * modules/pthread: Likewise.
35464         * modules/putenv: Likewise.
35465         * modules/random_r: Likewise.
35466         * modules/relocatable-prog: Likewise.
35467         * modules/search: Likewise.
35468         * modules/select: Likewise.
35469         * modules/selinux-h: Likewise.
35470         * modules/settime: Likewise.
35471         * modules/signal: Likewise.
35472         * modules/size_max: Likewise.
35473         * modules/socklen: Likewise.
35474         * modules/ssize_t: Likewise.
35475         * modules/stdarg: Likewise.
35476         * modules/stdbool: Likewise.
35477         * modules/stddef: Likewise.
35478         * modules/stdint: Likewise.
35479         * modules/stdio: Likewise.
35480         * modules/stdlib: Likewise.
35481         * modules/string: Likewise.
35482         * modules/strings: Likewise.
35483         * modules/sys_file: Likewise.
35484         * modules/sys_ioctl: Likewise.
35485         * modules/sys_select: Likewise.
35486         * modules/sys_socket: Likewise.
35487         * modules/sys_stat: Likewise.
35488         * modules/sys_time: Likewise.
35489         * modules/sys_times: Likewise.
35490         * modules/sys_utsname: Likewise.
35491         * modules/sys_wait: Likewise.
35492         * modules/sysexits: Likewise.
35493         * modules/time: Likewise.
35494         * modules/times: Likewise.
35495         * modules/tmpfile: Likewise.
35496         * modules/trim: Likewise.
35497         * modules/unistd: Likewise.
35498         * modules/wchar: Likewise.
35499         * modules/wctype: Likewise.
35500
35501 2009-09-17  Bruno Haible  <bruno@clisp.org>
35502
35503         Make getdate.y compile on QNX and NetBSD 5 / i386.
35504         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35505         TIME_T_FITS_IN_LONG_INT.
35506         * lib/getdate.y (long_time_t): New type.
35507         (relative_time): Change type of 'seconds' field to long_time_t.
35508         (get_date): Update types of local variables. Check against overflow
35509         during conversion from long_time_t to time_t.
35510         Reported by Matt Kraai <kraai@ftbfs.org>
35511         and Hasso Tepper <hasso@netbsd.org>.
35512
35513 2009-09-17  Bruno Haible  <bruno@clisp.org>
35514
35515         * modules/COPYING: Update copyright years.
35516         * modules/README: Likeiwse.
35517         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35518         Reported by Ian Beckwith <ianb@erislabs.net>.
35519
35520 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35521
35522         * users.txt: Update references for gnuit package.
35523
35524 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35525
35526         * m4/getdelim.m4: Fix typo in copyright line.
35527
35528 2009-09-17  Bruno Haible  <bruno@clisp.org>
35529
35530         * lib/atoll.c: Use the standard header with GPL copyright.
35531         * lib/argz.in.h: Likewise.
35532         * lib/glob.c: Likewise.
35533         * lib/glob-libc.h: Likewise.
35534         * lib/random_r.c: Likewise.
35535         * lib/siglist.h: Likewise.
35536         * lib/strsignal.c: Likewise.
35537         Reported by Ian Beckwith <ianb@erislabs.net>.
35538
35539 2009-09-17  Eric Blake  <ebb9@byu.net>
35540
35541         rmdir: ensure correct dependency order
35542         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35543
35544 2009-09-17  Bruno Haible  <bruno@clisp.org>
35545
35546         Disable assertion that fails on NetBSD 5 / i386.
35547         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35548         Reported by Sam Steingold <sds@gnu.org>
35549         and Hasso Tepper <hasso@netbsd.org>.
35550
35551 2009-09-16  Eric Blake  <ebb9@byu.net>
35552
35553         unlinkdir: port to mingw
35554         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35555         on which no one can unlink a directory.
35556
35557         stdlib: sort witness names
35558         * modules/stdlib (Makefile.am): Sort replacements.
35559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35560         * lib/stdlib.in.h: Likewise.
35561
35562         parse-duration-tests: avoid link failure
35563         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35564         LIBINTL.
35565         Reported by Tom G. Christensen.
35566
35567         openat-tests: ensure unlinkat behaves like rmdir
35568         * tests/test-rmdir.c (main): Factor guts...
35569         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35570         * modules/rmdir-tests (Files): Ship new file.
35571         * modules/openat-tests: New test.
35572         * tests/test-unlinkat.c: Likewise.
35573
35574         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35575         * modules/rmdir-errno (Status, Notice): Now obsolete.
35576
35577         rmdir: work around cygwin 1.5.x and mingw bugs
35578         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35579         * lib/rmdir.c (rmdir): Work around it.
35580         * modules/rmdir (Status, Notice): No longer obsolete.
35581         (Files): Add dos.m4.
35582         (Depends-on): Add unistd.
35583         (configure.ac): Set witnesses.
35584         (License): Relax to LGPLv2+.
35585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35586         * modules/unistd (Makefile.am): Substitute witnesses.
35587         * lib/unistd.in.h (rmdir): Declare replacement.
35588         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35589         * modules/rmdir-tests: New tests.
35590         * tests/test-rmdir.c: Likewise.
35591
35592 2009-09-15  Eric Blake  <ebb9@byu.net>
35593
35594         fchdir: improve use of replacement functions
35595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35596         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35597         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35598         REPLACE_CLOSEDIR.
35599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35600         * modules/sys_stat (Makefile.am): Substitute correct witness.
35601         * modules/dirent (Makefile.am): Likewise.
35602         * modules/unistd (Makefile.am): Likewise.
35603         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35604         * lib/unistd.in.h (dup): Likewise.
35605         * lib/sys_stat.in.h (fstat): Likewise.
35606
35607         maint: ignore gnulib-tool temp files
35608         * .gitignore: Ignore files created during gnulib-tool --test.
35609
35610 2009-09-13  Jim Meyering  <meyering@redhat.com>
35611
35612         posixtm: don't reject a time that specify "60" as the number of seconds
35613         * lib/posixtm.c (posixtime): The code to reject invalid dates
35614         would also reject a time specified with the .60 suffix.
35615         But POSIX allows that, in order to accommodate leap seconds.
35616         So don't reject it.
35617         (main): Adjust tests accordingly.
35618         * modules/posixtm (Depends-on): Add stpcpy.
35619
35620 2009-09-11  Jim Meyering  <meyering@redhat.com>
35621
35622         announce-gen: include [$release_type] in emitted Subject:
35623         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35624         e.g., [stable] in the emitted Subject: line.
35625
35626 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35627
35628         Remove obsolete macros from several modules.
35629         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35630         obsolete Autoconf macros with their modern counterparts.
35631         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35632         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35633         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35634         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35635         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35636         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35637         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35638         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35639         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35640         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35641         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35642         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35643         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35644         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35645         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35646         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35647         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35648         * m4/time_r.m4 (gl_TIME_R): Likewise.
35649         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35650         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35651         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35652
35653         Fix copyright header in build-aux scripts.
35654         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35655         recommendation.
35656         * build-aux/ncftpput-ftp: Likewise.
35657         * build-aux/update-copyright: Likewise.
35658
35659 2009-09-09  Eric Blake  <ebb9@byu.net>
35660
35661         test-link: allow Linux choice of errno
35662         * tests/test-link.c (main): Relax test for alternate error.
35663
35664         strndup: fix improper m4 caching
35665         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35666         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35667         (gl_PREREQ_STRNDUP): Delete.
35668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35669         * modules/string (Makefile.am): Substitute it.
35670         * lib/string.in.h (strndup): Modernize prototype.
35671
35672         getcwd: port to mingw
35673         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35674         different from the POSIX assumptions made throughout the getcwd
35675         module; fortunately, the mingw getcwd does not need replacement.
35676         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35677         * modules/getcwd-tests: New test.
35678         * tests/test-getcwd.c: Likewise.
35679
35680         link: fix platform bugs
35681         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35682         * lib/link.c (link): Work around them.  Fix related mingw bug.
35683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35684         * modules/unistd (Makefile.am): Substitute it.
35685         * lib/unistd.in.h (link): Declare replacement.
35686         * doc/posix-functions/link.texi (link): Document this.
35687         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35688
35689         test-link: consolidate into single C program, test more cases
35690         * tests/test-link.sh: Delete.
35691         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35692         at least Cygwin and Solaris.
35693         * modules/link-tests (Files): Remove unused file.
35694         (Depends-on): Add errno, sys_stat.
35695         (Makefile.am): Simplify.
35696
35697 2009-09-08  Bruno Haible  <bruno@clisp.org>
35698
35699         Work around towlower, towupper bug on mingw.
35700         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35701         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35702         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35703         * doc/posix-functions/towupper.texi: Likewise.
35704         Reported by Eric Blake.
35705
35706 2009-09-08  Jim Meyering  <meyering@redhat.com>
35707
35708         build: don't try to run autoheader if we don't use it
35709         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35710         is not used in configure.ac.
35711
35712 2009-09-08  Eric Blake  <ebb9@byu.net>
35713
35714         euidaccess: fix compilation error
35715         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35716
35717         rawmemchr: relax license
35718         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35719         okay.
35720         Reported by Jim Meyering.
35721
35722         mkfifoat: new module
35723         * modules/mkfifoat: New file.
35724         * lib/mkfifoat.c: Likewise.
35725         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35726         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35727         * modules/sys_stat (Makefile.am): Use them.
35728         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35729         * MODULES.html.sh (File system functions): Mention module.
35730         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35731         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35732         * modules/mkfifoat-tests: New test.
35733         * tests/test-mkfifoat.c: Likewise.
35734
35735         strchrnul: relax license
35736         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35737         okay.
35738         Reported by Jim Meyering.
35739
35740 2009-09-08  Eric Blake  <ebb9@byu.net>
35741
35742         fstatat: fix compilation on Solaris
35743         * lib/fstatat.c (includes): Add fcntl.h.
35744         Reported by Pádraig Brady.
35745
35746 2009-09-07  Eric Blake  <ebb9@byu.net>
35747
35748         rename: modernize replacement
35749         * modules/rename (Depends-on): Add stdio.
35750         (configure.ac): Declare witness.
35751         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35752         stdio take care of replacement.
35753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35754         * modules/stdio (Makefile.am): Substitute them.
35755         * lib/stdio.in.h (rename): Declare replacement.
35756         * lib/rename.c (includes): Allow cross-compilation to non-windows
35757         machines.
35758         * doc/posix-functions/rename.texi (rename): Improve
35759         documentation.
35760
35761         stdio: sort witness names
35762         * modules/stdio (Makefile.am): Sort replacements.
35763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35764         * lib/stdio.in.h: Likewise.
35765
35766         getcwd: minor cleanups
35767         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35768         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35769
35770         openat: provide more convenience names
35771         * modules/faccessat (configure.ac): Add C witness.
35772         * lib/unistd.in.h (readlinkat): Fix typo.
35773         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35774         convenience wrappers.
35775         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35776         wrappers in syntax checks.
35777
35778 2009-09-06  Eric Blake  <ebb9@byu.net>
35779
35780         doc: fix comments in recent patches
35781         * lib/faccessat.c: Mention correct function.
35782         * lib/fchmodat.c: Likewise.
35783         * lib/fchownat.c: Likewise.
35784         * lib/symlinkat.c: Likewise.
35785         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35786         constants.
35787
35788         faccessat, symlinkat: continue cleanup of previous patch
35789         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35790         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35791         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35793         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35794         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35795         set.
35796
35797 2009-09-06  Bruno Haible  <bruno@clisp.org>
35798
35799         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35800         (fstatat): Declare if GNULIB_FSTATAT is set.
35801         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35802         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35803         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35804         * modules/fcntl-h (Files): Remove m4/openat.m4.
35805         * modules/sys_stat (Files): Remove m4/openat.m4.
35806         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35807         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35808         * modules/unistd (Files): Remove m4/openat.m4.
35809         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35810         GNULIB_OPENAT.
35811         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35812         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35813         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35814         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35815         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35816         gl_OPENAT_DEFAULTS.
35817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35818         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35819         Don't require gl_OPENAT_DEFAULTS.
35820         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35821         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35822         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35823         (gl_OPENAT_DEFAULTS): Remove macro.
35824
35825 2009-09-06  Bruno Haible  <bruno@clisp.org>
35826
35827         * modules/openat (configure.ac): Remove unneeded witness.
35828
35829 2009-09-06  Bruno Haible  <bruno@clisp.org>
35830
35831         Set errno to ENOSYS when a function is entirely unsupported.
35832         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35833         EOPNOTSUPP.
35834         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35835         * modules/chown (Depends-on): Remove errno.
35836
35837 2009-09-06  Bruno Haible  <bruno@clisp.org>
35838
35839         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35840
35841 2009-09-06  Bruno Haible  <bruno@clisp.org>
35842
35843         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35844
35845 2009-09-06  Ben Pfaff  <blp@gnu.org>
35846             Bruno Haible  <bruno@clisp.org>
35847
35848         Work around a glibc bug in strtok_r.
35849         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35850         Undefine if UNDEFINE_STRTOK_R is set.
35851         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35853         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35854         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35855         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35856         UNDEFINE_STRTOK_R.
35857         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35858
35859 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35860
35861         exclude: minor fix
35862         * lib/exclude.c: Include wctype.h
35863
35864 2009-09-06  Akim Demaille  <demaille@gostai.com>
35865
35866         bootstrap: improve error message
35867         * build-aux/bootstrap (find_tool): Upon failure, report the list
35868         of candidates.
35869         Honor the initial value of the envvar.
35870
35871 2009-09-05  Eric Blake  <ebb9@byu.net>
35872
35873         symlinkat: new module
35874         * modules/symlinkat: New file.
35875         * lib/symlinkat.c: Likewise.
35876         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35878         * modules/unistd (Makefile.am): Use them.
35879         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35880         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35881         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35882         * MODULES.html.sh (File system functions): Mention module.
35883         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35884         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35885         * modules/symlinkat-tests: New test.
35886         * tests/test-symlinkat.c: Likewise.
35887
35888         test-openat-safer: add more checks
35889         * tests/test-openat-safer.c (main): Check more code paths.
35890
35891 2009-09-05  Jim Meyering  <meyering@redhat.com>
35892
35893         syntax-check: detect unnecessary inclusion of openat.h
35894         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35895
35896 2009-09-05  Bruno Haible  <bruno@clisp.org>
35897
35898         Support towlower, towupper.
35899         * doc/posix-functions/towlower.texi: Mention module wctype.
35900         * doc/posix-functions/towupper.texi: Likewise.
35901         * lib/wctype.in.h (towlower, towupper): New functions.
35902         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35903         (ASSERT): New macro.
35904         (e): New variable.
35905         (main): Test also towlower, towupper. Test WEOF argument.
35906         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35907
35908 2009-09-05  Bruno Haible  <bruno@clisp.org>
35909
35910         Fix conversion behaviour when the input is invalid.
35911         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35912         mark occurring in first pass of indirect conversion.
35913         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35914         input.
35915         Found by clang's static analyzer.
35916
35917 2009-09-05  Bruno Haible  <bruno@clisp.org>
35918
35919         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35920         where direct conversion is possible.
35921
35922 2009-09-04  Eric Blake  <ebb9@byu.net>
35923
35924         openat: fail with ENOENT on empty name
35925         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35926         buffer.
35927
35928         link-follow: fix logic bug in prior patch
35929         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35930         reversed sense of yes and no in prior patch.  Avoid confusing
35931         compilation failure with desired semantics.
35932
35933         link-follow: accomodate mingw and cross-compilation
35934         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35935         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35936         cross-compilation results to -1, to make linkat easier to
35937         implement when cross-compiling.  Trivially support mingw.
35938         * modules/link-follow (configure.ac): Call new name.
35939         * NEWS: Mention this.
35940
35941 2009-09-03  Eric Blake  <ebb9@byu.net>
35942
35943         faccessat: compile replacement
35944         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35945         needed.
35946
35947         fts: fix compilation error
35948         * lib/fts.c (includes): Re-add "openat.h", for
35949         openat_needs_fchdir.
35950
35951         faccessat: new module
35952         * modules/faccessat: New file.
35953         * lib/faccessat.c: Likewise.
35954         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35956         * modules/unistd (Makefile.am): Use it.
35957         * lib/unistd.in.h (faccessat): Declare it.
35958         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35959         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35960         * MODULES.html.sh (File system functions): Mention it.
35961         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35962         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35963
35964         euidaccess: prefer POSIX over non-standard implementation
35965         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35966         * lib/euidaccess.c (euidaccess): Use it if available.
35967
35968         openat: make template easier to use
35969         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35970         AT_FUNC_F2 to be undefined.
35971         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35972         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35973         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35974         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35975         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35976         Likewise.
35977         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35978         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35979         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35980         Likewise.
35981
35982         openat: declare in POSIX headers
35983         * NEWS: Mention this.
35984         * modules/openat (configure.ac): Declare witnesses.
35985         (Depends-on): Add fcntl-h, sys_stat, unistd.
35986         (Include): Mention correct headers.
35987         * modules/fcntl-h (Depends-on): Add link-warning.
35988         (Files): Add openat.m4.
35989         (Makefile.am): Substitute witnesses.
35990         * modules/sys_stat (Files, Makefile.am): Likewise.
35991         * modules/unistd (Files, Makefile.am): Likewise.
35992         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35993         (gl_OPENAT_DEFAULTS): New macro.
35994         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35996         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35997         (SYS_STAT_H): Remove unused variable.
35998         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35999         * lib/fcntl--.h (includes): Remove unneeded header.
36000         * lib/openat-safer.c (includes): Likewise.
36001         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36002         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36003         appropriate headers.
36004         (__OPENAT_PREFIX): Delete.
36005         * lib/fcntl.in.h (openat): Provide declaration.
36006         (AT_FDCWD): Fix Solaris bug.
36007         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36008         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36009         * lib/fchmodat.c (includes):  Adjust to find declaration.
36010         * lib/fchownat.c (includes): Likewise.
36011         * lib/mkdirat.c (includes): Likewise.
36012         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36013         still visible.
36014
36015 2009-09-02  Eric Blake  <ebb9@byu.net>
36016
36017         errno: use consistently
36018         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36019         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36020         * lib/canonicalize.c (ELOOP): Likewise.
36021         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36022         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36023         * lib/lchown.c (EOPNOTSUPP): Likewise.
36024         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36025         * lib/savewd.c (ESTALE): Likewise.
36026         * lib/settime.c (ENOSYS): Likewise.
36027         * lib/utimens.c (ENOSYS): Likewise.
36028         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36029         * lib/chdir-safer.c (ELOOP): Likewise.
36030         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36031         * modules/c-stack (Depends-on): Add errno.
36032         * modules/canonicalize (Depends-on): Likewise.
36033         * modules/chdir-safer (Depends-on): Likewise.
36034         * modules/fdopendir (Depends-on): Likewise.
36035         * modules/inet_ntop (Depends-on): Likewise.
36036         * modules/inet_pton (Depends-on): Likewise.
36037         * modules/lchown (Depends-on): Likewise.
36038         * modules/openat (Depends-on): Likewise.
36039         * modules/savewd (Depends-on): Likewise.
36040         * modules/settime (Depends-on): Likewise.
36041         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36042
36043         fts: avoid leaking fds
36044         * modules/fts (Depends-on): Add cloexec.
36045         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36046         flag.
36047
36048         fts: make directory fds more robust
36049         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36050         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36051
36052         backupfile, chdir-long, fts, savedir: make safer
36053         * lib/backupfile.c (includes): Use "dirent--.h", since
36054         numbered_backup can write to stderr during readdir.
36055         * lib/savedir.c (includes): Likewise.
36056         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36057         emulation can write to stderr on failure.
36058         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36059         * lib/getcwd.c: Document why opendir_safer is unused.
36060         * lib/glob.c: Likewise.
36061         * lib/scandir.c: Likewise.
36062         * lib/openat-proc.c: Likewise, for open_safer.
36063         * modules/backupfile (Depends-on): Add dirent-safer.
36064         * modules/savedir (Depends-on): Likewise.
36065         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36066         * modules/chdir-long (Depends-on): Add openat-safer.
36067
36068         openat-safer: new module
36069         * modules/openat-safer: New file.
36070         * lib/openat-safer.c: Likewise.
36071         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36072         * lib/fcntl-safer.h (openat_safer): Declare.
36073         * lib/fcntl--.h (openat): Override.
36074         * MODULES.html.sh (File descriptor based I/O): Mention it.
36075         * lib/openat.h: Add double-inclusion guards.
36076         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36077         "fcntl--.h", so we can implement openat.
36078         * modules/openat-safer-tests: New test.
36079         * tests/test-openat-safer.c: New file.
36080
36081         dirent-safer: new module
36082         * modules/dirent-safer: New file.
36083         * lib/dirent--.h: Likewise.
36084         * lib/dirent-safer.h: Likewise.
36085         * lib/opendir-safer.c: Likewise.
36086         * m4/dirent-safer.m4: Likewise.
36087         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36088         * modules/dirent-safer-tests: New test.
36089         * tests/test-dirent-safer.c: New file.
36090         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36091
36092         fdopendir: optimize on mingw
36093         * lib/unistd.in.h (_gl_directory_name): New prototype.
36094         * lib/fchdir.c (_gl_directory_name): Implement it.
36095         (fchdir): Use it to simplify implementation.
36096         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36097         fchdir, when available, to avoid calling [f]chdir().
36098
36099         fdopendir: split into its own module
36100         * lib/openat.c (fdopendir): Move...
36101         * lib/fdopendir.c: ...into new file.
36102         * modules/fdopendir: New module.
36103         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36104         * modules/openat (Depends-on): Add fdopendir.
36105         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36106         fdopendir here.
36107         * modules/savedir (Depends-on): Only need fdopendir, not full
36108         openat.
36109         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36110         * lib/openat.h (fdopendir): Drop prototype.
36111         * lib/dirent.in.h (fdopendir): Provide prototype.
36112         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36113         * modules/dirent (Makefile.am): Substitute them.
36114         * MODULES.html.sh (File system functions): Mention it.
36115         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36116         * modules/fdopendir-tests: New file.
36117         * tests/test-fdopendir.c: Likewise.
36118
36119         fchdir: use more consistent macro convention
36120         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36121         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36122         REPLACE_FCHDIR, rather than relying on config.h macros.
36123         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36124         inside a single make-time REPLACE_FCHDIR block, rather than using
36125         the config.h FCHDIR_REPLACEMENT.
36126         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36127         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36128         Manage fstat replacement.
36129         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36130         REPLACE_FCHDIR.
36131         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36132         (Makefile.am): Substitute REPLACE_FCHDIR.
36133         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36134         FCHDIR_REPLACEMENT.
36135         * lib/dup-safer.c (dup_safer): Likewise.
36136         * lib/dup2.c (rpl_dup2): Likewise.
36137         * lib/dup3.c (rpl_dup3): Likewise.
36138         * lib/open.c (rpl_open): Likewise.
36139
36140         fchdir: simplify error handling, and support dup3
36141         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36142         stdbool, malloc-posix, realloc-posix.
36143         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36144         (ensure_dirs_slot): Return false on allocation failure.
36145         (rpl_dup2): Delete.
36146         (_gl_register_dup): New function.
36147         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36148         (_gl_register_fd): Close fd on allocation failure.
36149         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36150         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36151         prototype.
36152         (rpl_dup2_fchdir): Delete prototype.
36153         * lib/open.c (open): Update caller.
36154         * lib/dup2.c (dup2): Track fchdir metadata.
36155         * lib/dup3.c (dup3): Likewise.
36156         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36157         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36158
36159 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36160
36161         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36162         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36163         don't pass arguments to AC_OUTPUT.
36164
36165 2009-09-02  Bruno Haible  <bruno@clisp.org>
36166
36167         * modules/mkdtemp (License): Relicense under LGPLv2+.
36168         Reported by Paolo Bonzini.
36169
36170 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36171
36172         Replace uses of obsolete autoconf macros in Jim's modules.
36173         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36174         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36175         can evoke a warning from autoconf when run with -Wobsolete
36176         enabled.  They were declared obsolete for good reasons (see
36177         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36178         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36179         should not continue using the deprecated macros.
36180         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36181         obsolete Autoconf macros with modern counterparts.
36182         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36183         * m4/dos.m4 (gl_AC_DOS): Likewise.
36184         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36185         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36186         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36187         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36188         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36189         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36190         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36191         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36192         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36193         Likewise.
36194         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36195         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36196         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36197         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36198         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36199         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36200
36201 2009-09-01  Eric Blake  <ebb9@byu.net>
36202
36203         fchdir: fix off-by-one bug in previous patch
36204         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36205         (_gl_unregister_fd): Delete useless if.
36206
36207 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36208
36209         maint.mk: sort the list of syntax-check rules
36210         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36211         easier to get a sense of progress when the rules are run sequentially
36212         and take a long time.
36213
36214 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36215
36216         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36217         * modules/netinet_in: Likewise.
36218         * modules/sys_file: Likewise.
36219         * modules/sys_ioctl: Likewise.
36220         * modules/sys_select: Likewise.
36221         * modules/sys_socket: Likewise.
36222         * modules/sys_stat: Likewise.
36223         * modules/sys_time: Likewise.
36224         * modules/sys_times: Likewise.
36225         * modules/sys_utsname: Likewise.
36226         * modules/sys_wait: Likewise.
36227
36228 2009-09-01  Jim Meyering  <meyering@redhat.com>
36229
36230         fts: help ensure that return values are not ignored
36231         * lib/fts_.h (__GNUC_PREREQ): Define.
36232         (__attribute_warn_unused_result__): Define.
36233         (fts_children, fts_close, fts_open, fts_read): Declare with
36234         __attribute_warn_unused_result__.
36235
36236         fts: fts_close now fails also when closing a dir file descriptor fails
36237         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36238         and propagate to caller, along with errno.
36239
36240         announce-gen: correct formatting in --help output
36241         * build-aux/announce-gen (usage): Move the one-line description in
36242         --help output "up", to where it belongs, just after Usage:.
36243
36244 2009-08-31  Eric Blake  <ebb9@byu.net>
36245
36246         fchdir: port to mingw
36247         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36248         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36249         opened, then use a substitute.
36250         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36251         replacement.
36252         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36253         (_gl_register_fd): No need to check stat if open already filters
36254         all directories.
36255         (fchdir): Fix error condition to match POSIX.
36256         * modules/fchdir (Depends-on): Add sys_stat.
36257         * doc/posix-functions/open.texi (open): Document the limitation.
36258         * modules/fchdir-tests: New file.
36259         * tests/test-fchdir.c: Likewise.
36260
36261         canonicalize: allow cross-testing from cygwin to mingw
36262         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36263         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36264         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36265         Likewise.
36266         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36267         target does not support symlinks.
36268         * tests/test-canonicalize-lgpl.sh: Likewise.
36269
36270         chown: avoid compilation warning on mingw
36271         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36272         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36273         mingw.
36274         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36275         * modules/chown (Depends-on): Add errno.
36276
36277 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36278
36279         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36280         command.
36281
36282 2009-08-31  Jim Meyering  <meyering@redhat.com>
36283
36284         canonicalize: remove useless initialization
36285         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36286         initialization of local, "end".
36287
36288 2009-08-30  Bruno Haible  <bruno@clisp.org>
36289
36290         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36291         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36292         ENOSYS.
36293
36294 2009-08-30  Bruno Haible  <bruno@clisp.org>
36295
36296         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36297         /usr/xpg4/bin/tr when it exists.
36298         * tests/test-pipe-filter-gi1.sh: Likewise.
36299
36300 2009-08-30  Bruno Haible  <bruno@clisp.org>
36301
36302         Work around deficient /usr/bin/id program on Solaris.
36303         * tests/test-file-has-acl.sh (ID): New variable.
36304         * tests/test-set-mode-acl.sh (ID): Likewise.
36305         * tests/test-copy-acl.sh (ID): Likewise.
36306         * tests/test-copy-file.sh (ID): Likewise.
36307
36308 2009-08-30  Bruno Haible  <bruno@clisp.org>
36309
36310         New module 'xstriconveh'.
36311         * lib/xstriconveh.h: New file.
36312         * lib/xstriconveh.c: New file.
36313         * modules/xstriconveh: New file.
36314
36315 2009-08-30  Bruno Haible  <bruno@clisp.org>
36316
36317         Make it easier to use mem_cd_iconveh.
36318         * lib/striconveh.h (iconveh_t): New type.
36319         (iconveh_open, iconveh_close): New declarations.
36320         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36321         with a single 'const iconveh_t *' argument.
36322         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36323         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36324         with a single 'const iconveh_t *' argument.
36325         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36326         * tests/test-striconveh.c (main): Update.
36327         * NEWS: Mention the change.
36328
36329 2009-08-30  Bruno Haible  <bruno@clisp.org>
36330
36331         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36332         problem.
36333
36334 2009-08-30  Bruno Haible  <bruno@clisp.org>
36335
36336         Work around iconv_open problem on Solaris.
36337         * lib/iconv_open-solaris.gperf: New file.
36338         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36339         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36340         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36341         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36342         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36343         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36344
36345 2009-08-29  Jim Meyering  <meyering@redhat.com>
36346
36347         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36348         * top/maint.mk (cvs-check): Remove target; it was just an alias
36349         to the better-named vc-diff-check.
36350         (maintainer-distcheck): Remove rule.  It was used only from
36351         the (alpha/beta/major) target, and all of its commands but one
36352         were coreutils-specific.
36353         (vc-dist): Remove rule.
36354         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36355         Run vc-diff-check, not vc-dist.
36356         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36357
36358 2009-08-27  Bruno Haible  <bruno@clisp.org>
36359
36360         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36361         of 0.
36362
36363 2009-08-27  Bruno Haible  <bruno@clisp.org>
36364
36365         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36366         compilers.
36367         * doc/func.texi: Document the SunPRO C bug.
36368
36369 2009-08-27  Bruno Haible  <bruno@clisp.org>
36370
36371         Fix link error on Solaris.
36372         * tests/test-parse-duration.c (xstrdup): Remove function.
36373
36374 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36375
36376         ignore-value: handle pointer types, too
36377         * lib/ignore-value.h (__attribute__): Remove definition.
36378         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36379         of a more concise and more-often effective "(void) i" statement.
36380         (ignore_ptr): New function to suppress warnings from functions that
36381         return pointers, and to make it explicit that one function doesn't
36382         handle all cases.
36383
36384 2009-08-25  Bruno Haible  <bruno@clisp.org>
36385
36386         dup2: work around a Linux bug.
36387         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36388         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36389         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36390         Reported by Simon Josefsson.
36391
36392 2009-08-25  Jim Meyering  <meyering@redhat.com>
36393
36394         libguestfs uses gnulib
36395         * users.txt: Add libguestfs.
36396
36397 2009-08-24  Eric Blake  <ebb9@byu.net>
36398
36399         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36400         * lib/pipe2.c (includes): Add binary-io.h.
36401         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36402
36403 2009-08-24  Bruno Haible  <bruno@clisp.org>
36404
36405         Tolerate declared but missing accept4 syscall.
36406         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36407         available.
36408         * lib/sys_socket.in.h (accept4): If the function is already present,
36409         override it.
36410         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36411         * modules/accept4 (Makefile.am): Compile accept4.c always.
36412         Reported by Paolo Bonzini and Eric Blake.
36413
36414 2009-08-23  Bruno Haible  <bruno@clisp.org>
36415
36416         New module 'accept4'.
36417         * lib/sys_socket.in.h (accept4): New declaration.
36418         * lib/accept4.c: New file.
36419         * m4/accept4.m4: New file.
36420         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36421         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36422         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36423         HAVE_ACCEPT4.
36424         * modules/accept4: New file.
36425         * doc/glibc-functions/accept4.texi: Mention the new module.
36426
36427 2009-08-24  Jim Meyering  <meyering@redhat.com>
36428
36429         progname: also set global program_invocation_name, when possible
36430         Before this change, a libtool-enabled program that calls glibc's
36431         error function would report the program name as
36432         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36433         * modules/progname (configure.ac): Check for a declaration of
36434         program_invocation_name.
36435         * lib/progname.c:  Include <errno.h>.
36436         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36437         Set program_invocation_name.
36438
36439 2009-08-23  Bruno Haible  <bruno@clisp.org>
36440
36441         * lib/dup3.c: Include <string.h>.
36442
36443 2009-08-23  Bruno Haible  <bruno@clisp.org>
36444
36445         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36446         * lib/pipe2.c (pipe2): Likewise.
36447         Suggested by Eric Blake.
36448
36449 2009-08-23  Bruno Haible  <bruno@clisp.org>
36450
36451         Tolerate declared but missing dup3 syscall.
36452         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36453         * lib/unistd.in.h (dup3): If the function is already present,
36454         override it.
36455         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36456         * modules/dup3 (Makefile.am): Compile dup3.c always.
36457         Reported by Paolo Bonzini.
36458
36459 2009-08-23  Bruno Haible  <bruno@clisp.org>
36460
36461         Tolerate declared but missing pipe2 syscall.
36462         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36463         available.
36464         * lib/unistd.in.h (pipe2): If the function is already present,
36465         override it.
36466         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36467         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36468         Reported by Paolo Bonzini.
36469
36470 2009-08-23  Bruno Haible  <bruno@clisp.org>
36471
36472         * lib/pipe2.c (pipe2): Move #ifs inside function.
36473
36474 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36475
36476         quotearg: document limitations of quote_these_too
36477         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36478         those limitations are created.
36479         * lib/quotearg.h (set_char_quoting): Document that digits and
36480         letters that are special after backslash are not permitted.
36481         (quotearg_char): Cross-reference set_char_quoting documentation.
36482
36483 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36484
36485         quotearg: implement custom_quoting_style
36486         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36487         right_quote fields.
36488         (set_custom_quoting): New public function.
36489         (quotearg_buffer_restyled): Add left_quote and right_quote
36490         arguments, handle them very much like locale quoting, and update
36491         all uses.
36492         (quotearg_n_custom): New public function.
36493         (quotearg_n_custom_mem): New public function.
36494         (quotearg_custom): New public function.
36495         (quotearg_custom_mem): New public function.
36496         * lib/quotearg.h: Prototype and document new public functions.
36497         (enum quoting_style): For escape_quoting_style and
36498         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36499         ignored even though they're otherwise like c_quoting_style.
36500         Add custom_quoting_style member and document with comparison to
36501         clocale_quoting_style.
36502         * tests/test-quotearg.c (custom_quotes): New array.
36503         (custom_results): New array.
36504         (main): Extend to test custom quoting.
36505
36506 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36507
36508         quotearg: fix right quote escaping when it's in quote_these_too
36509         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36510         quote, be sure to prepend only one backslash.
36511         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36512         (main): Test it.
36513
36514 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36515
36516         quotearg-tests: test escaping of embedded locale quotes
36517         * tests/test-quotearg.c (struct result_strings): Add member for
36518         new input.
36519         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36520         (inputs): Add new input.
36521         (results_g): Add expected results.
36522         (flag_results): Likewise.
36523         (locale_results): Likewise.
36524         (compare_strings): Check those.
36525
36526 2009-08-23  Bruno Haible  <bruno@clisp.org>
36527
36528         Tests for module 'dup3'.
36529         * modules/dup3-tests: New file.
36530         * tests/test-dup3.c: New file.
36531
36532         New module 'dup3'.
36533         * lib/unistd.in.h (dup3): New declaration.
36534         * lib/dup3.c: New file.
36535         * m4/dup3.m4: New file.
36536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36537         HAVE_DUP3.
36538         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36539         * modules/dup3: New file.
36540         * doc/glibc-functions/dup3.texi: Mention the new module.
36541
36542 2009-08-23  Bruno Haible  <bruno@clisp.org>
36543
36544         Tweak the dup2 test.
36545         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36546         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36547         the test file is still empty. Fix argument order of lseek.
36548
36549 2009-08-23  Bruno Haible  <bruno@clisp.org>
36550
36551         Avoid test link errors when the modules getopt-gnu, gettext are used.
36552         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36554
36555 2009-08-23  Bruno Haible  <bruno@clisp.org>
36556
36557         Fix getdtablesize() on mingw.
36558         * lib/getdtablesize.c (getdtablesize): Implement differently.
36559         * lib/unistd.in.h (getdtablesize): Improve comment.
36560
36561 2009-08-23  Bruno Haible  <bruno@clisp.org>
36562
36563         New module 'mkostemp'.
36564         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36565         * lib/stdlib.in.h (mksotemp): New declaration.
36566         * lib/mkostemp.c: New file, from glibc with modifications.
36567         * lib/tempname.h (GT_FILE): Remove outdated comment.
36568         (gen_tempname): Add flags argument.
36569         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36570         (__GT_FILE): Map to 1.
36571         (small_open, large_open): Remove macros.
36572         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36573         * lib/mkstemp.c (mkstemp): Update.
36574         * lib/mkdtemp.c (mkdtemp): Likewise.
36575         * m4/mkostemp.m4: New file.
36576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36577         HAVE_MKOSTEMP.
36578         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36579         HAVE_MKOSTEMP.
36580         * modules/mkostemp: New file, based on modules/mkstemp.
36581         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36582         * NEWS: Mention the change.
36583
36584 2009-08-23  Bruno Haible  <bruno@clisp.org>
36585
36586         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36587         Reported by Eric Blake.
36588
36589 2009-08-23  Bruno Haible  <bruno@clisp.org>
36590
36591         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36592         Reported by Eric Blake.
36593
36594 2009-08-23  Bruno Haible  <bruno@clisp.org>
36595
36596         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36597         * modules/pipe2 (Depends-on): Likewise.
36598
36599 2009-08-23  Eric Blake  <ebb9@byu.net>
36600
36601         fcntl-h: add O_TTY_INIT support
36602         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36603         * tests/test-fcntl-h.c (o): Test it.
36604         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36605
36606         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36607         * modules/fcntl: Move <fcntl.h> header replacement...
36608         * modules/fcntl-h: ...to new name, so as not to collide with
36609         like-named function.
36610         * tests/test-fcntl.c: Rename...
36611         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36612         * modules/fcntl-tests: Rename...
36613         * modules/fcntl-h-tests: ...to this.  Update test file name.
36614         * modules/chdir-long (Depends-on): Update clients.
36615         * modules/chdir-safer (Depends-on): Likewise.
36616         * modules/fcntl-safer (Depends-on): Likewise.
36617         * modules/fts (Depends-on): Likewise.
36618         * modules/mkancesdirs (Depends-on): Likewise.
36619         * modules/mkdir-p (Depends-on): Likewise.
36620         * modules/open (Depends-on): Likewise.
36621         * modules/savewd (Depends-on): Likewise.
36622         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36623         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36624
36625 2009-08-22  Bruno Haible  <bruno@clisp.org>
36626
36627         * modules/binary-io (License): Relicense under LGPL.
36628         * modules/pipe2 (License): Likewise.
36629
36630 2009-08-22  Bruno Haible  <bruno@clisp.org>
36631
36632         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36633         return value.
36634         * lib/pipe-filter-gi.c (filter_init): Likewise.
36635         Reported by Eric Blake.
36636
36637 2009-08-22  Bruno Haible  <bruno@clisp.org>
36638
36639         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36640         * modules/pipe (Depends-on): Add pipe2.
36641
36642 2009-08-22  Bruno Haible  <bruno@clisp.org>
36643
36644         Tests for module 'pipe2'.
36645         * modules/pipe2-tests: New file.
36646         * tests/test-pipe2.c: New file.
36647
36648         New module 'pipe2'.
36649         * lib/unistd.in.h (pipe2): New declaration.
36650         * lib/pipe2.c: New file.
36651         * m4/pipe2.m4: New file.
36652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36653         HAVE_PIPE2.
36654         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36655         * modules/pipe2: New file.
36656         * doc/glibc-functions/pipe2.texi: Mention the new module.
36657
36658 2009-08-22  Bruno Haible  <bruno@clisp.org>
36659
36660         Reference some new glibc functions.
36661         * doc/glibc-functions/accept4.texi: New file.
36662         * doc/glibc-functions/dup3.texi: New file.
36663         * doc/glibc-functions/mkostemp.texi: New file.
36664         * doc/glibc-functions/pipe2.texi: New file.
36665         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36666         (Glibc sys/socket.h): Refer to accept4.
36667         (Glibc unistd.h): Refer to dup3, pipe2.
36668         Reported by Eric Blake.
36669
36670 2009-08-22  Jim Meyering  <meyering@redhat.com>
36671             Bruno Haible  <bruno@clisp.org>
36672
36673         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36674         This makes it so packages using automake-1.11's silent-rules option
36675         can print e.g., a single "GEN    configmake.h" line, rather than
36676         the 30+ statements that perform the job.  If you want to see the
36677         actual commands, you can still run "make V=1".
36678         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36679         so that make output is abbreviated when those variables are defined
36680         appropriately.
36681         * modules/argz: Likewise.
36682         * modules/arpa_inet: Likewise.
36683         * modules/byteswap: Likewise.
36684         * modules/configmake: Likewise.
36685         * modules/dirent: Likewise.
36686         * modules/errno: Likewise.
36687         * modules/fcntl: Likewise.
36688         * modules/float: Likewise.
36689         * modules/fnmatch: Likewise.
36690         * modules/getopt-posix: Likewise.
36691         * modules/glob: Likewise.
36692         * modules/iconv_open: Likewise.
36693         * modules/inttypes: Likewise.
36694         * modules/localcharset: Likewise.
36695         * modules/locale: Likewise.
36696         * modules/math: Likewise.
36697         * modules/netdb: Likewise.
36698         * modules/netinet_in: Likewise.
36699         * modules/poll: Likewise.
36700         * modules/posix_spawnp-tests: Likewise.
36701         * modules/sched: Likewise.
36702         * modules/search: Likewise.
36703         * modules/selinux-h: Likewise.
36704         * modules/signal: Likewise.
36705         * modules/spawn: Likewise.
36706         * modules/stdarg: Likewise.
36707         * modules/stdbool: Likewise.
36708         * modules/stddef: Likewise.
36709         * modules/stdint: Likewise.
36710         * modules/stdio: Likewise.
36711         * modules/stdlib: Likewise.
36712         * modules/string: Likewise.
36713         * modules/strings: Likewise.
36714         * modules/sys_file: Likewise.
36715         * modules/sys_ioctl: Likewise.
36716         * modules/sys_select: Likewise.
36717         * modules/sys_socket: Likewise.
36718         * modules/sys_stat: Likewise.
36719         * modules/sys_time: Likewise.
36720         * modules/sys_times: Likewise.
36721         * modules/sys_utsname: Likewise.
36722         * modules/sys_wait: Likewise.
36723         * modules/sysexits: Likewise.
36724         * modules/time: Likewise.
36725         * modules/unistd: Likewise.
36726         * modules/wchar: Likewise.
36727         * modules/wctype: Likewise.
36728
36729 2009-08-22  Jim Meyering  <meyering@redhat.com>
36730
36731         announce-gen: detect write failure
36732         * build-aux/announce-gen: Add Coda at end.
36733         Remove equivalent-but-more-verbose block at top.
36734
36735 2009-08-19  Akim Demaille  <demaille@gostai.com>
36736
36737         bootstrap: --help to stdout.
36738         * bootstrap (usage): Don't send --help to stderr.
36739         Use a here doc instead of a long string.
36740
36741 2009-08-21  Eric Blake  <ebb9@byu.net>
36742
36743         test-popen-safer: split from test-popen
36744         * tests/test-popen.c (main): Move...
36745         * tests/test-popen.h: ...into new file.
36746         * tests/test-popen-safer2.c: New file.
36747         * modules/popen-tests (Files): Add test-popen.h.
36748         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36749         Suggested by Bruno Haible.
36750
36751         test-fcntl-safer: split from test-open
36752         * tests/test-open.c (main): Move...
36753         * tests/test-open.h: ...into new file.
36754         * tests/test-fcntl-safer.c: New file.
36755         * modules/open-tests (Files): Add test-open.h.
36756         * modules/fcntl-safer-tests: New file.
36757         Suggested by Bruno Haible.
36758
36759         test-fopen-safer: split from test-fopen
36760         * tests/test-fopen.c (main): Move...
36761         * tests/test-fopen.h: ...into new file.
36762         * tests/test-fopen-safer.c: New file.
36763         * modules/fopen-tests (Files): Add test-fopen.h.
36764         * modules/fopen-safer-tests: New file.
36765         Suggested by Bruno Haible.
36766
36767 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36768
36769         popen-safer: test O_CLOEXEC at run-time.
36770         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36771
36772 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36773
36774         fcntl: move more flags to the header
36775         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36776         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36777         * lib/fcntl.in.h: Do both things here.
36778
36779 2009-08-21  Jim Meyering  <meyering@redhat.com>
36780
36781         consistently remove $@-t before redirecting to it
36782         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36783         * modules/alloca-opt: Likewise.
36784         * modules/byteswap: Likewise.
36785         * modules/fnmatch: Likewise.
36786         * modules/getopt-posix: Likewise.
36787         * modules/glob: Likewise.
36788         * modules/poll: Likewise.
36789         * modules/posix_spawnp-tests: Likewise.
36790         * modules/sys_socket: Likewise.
36791         * modules/sysexits: Likewise.
36792
36793 2009-08-21  Eric Blake  <ebb9@byu.net>
36794
36795         popen: simplify access to original popen
36796         * lib/popen.c (rpl_popen): No need to worry about popen being a
36797         macro.
36798         Reported by Bruno Haible.
36799
36800 2009-08-20  Eric Blake  <ebb9@byu.net>
36801
36802         build: avoid some compiler warnings
36803         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36804         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36805         type.
36806         (new_exclude_segment, excluded_file_pattern_p)
36807         (excluded_file_name_p): Reduce scope.
36808         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36809         old-style declaration.
36810
36811 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36812
36813         * tests/test-exclude1.sh: Handle Windows EOL.
36814         * tests/test-exclude2.sh: Likewise.
36815         * tests/test-exclude3.sh: Likewise.
36816         * tests/test-exclude4.sh: Likewise.
36817         * tests/test-exclude5.sh: Likewise.
36818         * tests/test-exclude6.sh: Likewise.
36819         * tests/test-exclude7.sh: Likewise.
36820
36821 2009-08-19  Akim Demaille  <demaille@gostai.com>
36822
36823         bootstrap: find sha1sum when named gsha1sum.
36824         * bootstrap (find_tool): New.
36825         ($SHA1SUM): New.
36826         Use it.
36827
36828 2009-08-20  Jim Meyering  <meyering@redhat.com>
36829
36830         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36831         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36832         expression that converts "." in a file name to "\." in the resulting
36833         regexp.  Start with a dummy statement, so that prior shell variable
36834         definitions are expanded portably.  Reported by Simon Josefsson.
36835
36836 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36837
36838         Fix polling for writeability of a screen buffer.
36839         * lib/poll.c: Distinguish input and screen buffers for the
36840         Win32 implementation.
36841         * lib/select.c: Likewise.
36842
36843 2009-08-19  Eric Blake  <ebb9@byu.net>
36844
36845         popen-safer: prevent popen from clobbering std descriptors
36846         * modules/popen-safer: New file.
36847         * lib/popen-safer.c: Likewise.
36848         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36849         * lib/stdio--.h (popen): Provide override.
36850         * lib/stdio-safer.h (popen_safer): Provide declaration.
36851         * tests/test-popen.c (includes): Partially test this.
36852         * modules/popen-safer-tests: New file, for more tests.
36853         * tests/test-popen-safer.c: Likewise.
36854         * MODULES.html.sh (file stream based Input/Output): Mention it.
36855
36856         tests: test some of the *-safer modules
36857         * modules/fopen-safer (Depends-on): Add fopen.
36858         * modules/fcntl-safer (Depends-on): Add fcntl.
36859         * modules/stdlib-safer (Depends-on): Add stdlib.
36860         (configure.ac): Set indicator.
36861         * modules/unistd-safer (configure.ac): Likewise.
36862         * modules/tmpfile-safer (configure.ac): Likewise.
36863         (Depends-on): Add tmpfile.
36864         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36865         active.
36866         * tests/test-fopen.c (includes): Test safer versions when they are
36867         in use.
36868         * tests/test-open.c (includes): Likewise.
36869
36870         popen: fix cygwin 1.5 bug when stdin closed
36871         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36872         * modules/popen: New file.
36873         * modules/popen-tests: Likewise.
36874         * tests/test-popen.c: Likewise.
36875         * m4/popen.m4: Likewise.
36876         * lib/popen.c: Likewise.
36877         * lib/stdio.in.h (popen): New declaration.
36878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36879         * modules/stdio (Makefile.am): Likewise.
36880         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36881
36882 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36883
36884         maint.mk: give full control over update-copyright exclusions
36885         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36886         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36887         (update-copyright): Don't force inclusion of top-level
36888         ChangeLog.  Don't force exclusion of all COPYING files, but make
36889         them the default exclusion instead.
36890
36891 2009-08-16  Bruno Haible  <bruno@clisp.org>
36892
36893         Fix test failures on Solaris 10.
36894         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36895         tests when Solaris iconv() is used.
36896         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36897         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36898         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36899         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36900         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36901
36902 2009-08-16  Bruno Haible  <bruno@clisp.org>
36903
36904         Fix test failures on Solaris 10.
36905         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36906         'tr' program and pass it as first argument.
36907         * tests/test-pipe-filter-gi1.sh: Likewise.
36908         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36909         program as first argument.
36910         * tests/test-pipe-filter-gi1.c (main): Likewise.
36911
36912 2009-08-16  Eric Blake  <ebb9@byu.net>
36913
36914         fpurge: fix previous commits
36915         * modules/fpurge (Makefile.am): Make replacement conditional,
36916         partially reverting 2007-04-29 change; missed in previous
36917         attempt.
36918         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36919         is missing.
36920
36921 2009-08-16  Bruno Haible  <bruno@clisp.org>
36922
36923         Clarify fpurge's effect on the file position.
36924         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36925         * tests/test-fpurge.c (main): Make a second pass for checking the file
36926         position.
36927
36928 2009-08-16  Bruno Haible  <bruno@clisp.org>
36929
36930         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36931         declaration of fpurge is missing.
36932         * tests/test-fpurge.c (main): Check that the file has not more contents
36933         than expected. Close the file before removing it.
36934
36935 2009-08-15  Eric Blake  <ebb9@byu.net>
36936
36937         fpurge: don't wrap working cygwin implementation
36938         * lib/fpurge.c (fpurge): Fix comment typo.
36939         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36940         1.7 to avoid replacement.
36941         * tests/test-fpurge.c (main): Enhance test.
36942
36943 2009-08-15  Eric Blake  <ebb9@byu.net>
36944         and Jim Meyering  <meyering@redhat.com>
36945
36946         test-update-copyright: skip if perl is insufficient
36947         * tests/test-update-copyright.sh: Failure to run maintainer tool
36948         should not cause testsuite failure on cygwin 1.5.
36949
36950 2009-08-14  Eric Blake  <ebb9@byu.net>
36951
36952         doc: mention more functions added in cygwin 1.7.0
36953         * doc/posix-headers/limits.texi (limits.h): Update for recent
36954         cygwin additions.
36955         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36956         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36957         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36958         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36959         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36960
36961 2009-08-14  Eric Blake  <ebb9@byu.net>
36962
36963         maint.mk: simplify update-copyright rule
36964         * top/maint.mk (update-copyright-local): Delete, and document how
36965         to do it in cfg.mk instead.
36966         (update-copyright-exclude-regexp): Delete, and document how to do
36967         it in .x-update-copyright instead.
36968         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36969         exclude ChangeLog.
36970
36971 2009-08-14  Bruno Haible  <bruno@clisp.org>
36972
36973         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36974
36975 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36976
36977         maint.mk: support update-copyright-env
36978         * top/maint.mk (update-copyright-env): Define place-holder.
36979         (update-copyright): Expand $(update-copyright-env) before
36980         invoking update-copyright.
36981
36982 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36983
36984         update-copyright: implement forced reformatting
36985         * build-aux/update-copyright: Implement and document
36986         UPDATE_COPYRIGHT_FORCE.
36987         * tests/test-update-copyright.sh: Test it.
36988
36989 2009-08-14  Eric Blake  <ebb9@byu.net>
36990         and Bruno Haible  <bruno@clisp.org>
36991
36992         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36993         * tests/test-locale.c: Revert previous patch related to NULL.
36994         * tests/test-stdio.c: Likewise.
36995         * tests/test-stdlib.c: Likewise.
36996         * tests/test-string.c: Likewise.
36997         * tests/test-unistd.c: Likewise.
36998         * modules/time-tests (Depends-on): Add verify.
36999         * modules/wchar-tests (Depends-on): Likewise.
37000         * tests/test-time.c: Test for NULL compliance.
37001         * tests/test-wchar.c: Likewise.
37002         * modules/locale (Depends-on): Add stddef.
37003         * modules/stdio (Depends-on): Likewise.
37004         * modules/stdlib (Depends-on): Likewise.
37005         * modules/string (Depends-on): Likewise.
37006         * modules/time (Depends-on): Likewise.
37007         * modules/unistd (Depends-on): Likewise.
37008         * modules/wchar (Depends-on): Likewise.
37009         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37010         * lib/stdlib.in.h (includes): Likewise.
37011         * lib/string.in.h (includes): Likewise.
37012         * lib/time.in.h (includes): Likewise.
37013         * lib/unistd.in.h (includes): Likewise.
37014         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37015         replaced.
37016         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37017         * m4/stddef_h.m4: New file.
37018         * modules/stddef: Likewise.
37019         * lib/stddef.in.h: Likewise.
37020         * modules/stddef-tests: Likewise.
37021         * tests/test-stddef.c: Likewise.
37022         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37023         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37024         * doc/posix-headers/locale.texi (locale.h): Likewise.
37025         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37026         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37027         * doc/posix-headers/string.texi (string.h): Likewise.
37028         * doc/posix-headers/time.texi (time.h): Likewise.
37029         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37030         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37031
37032 2009-08-14  Eric Blake  <ebb9@byu.net>
37033
37034         doc: improve git diff of texinfo files
37035         * .gitattributes: Add rule for *.texi files, with hint on how to
37036         use it.
37037         Copied from m4, and based on a report by Bruno Haible.
37038
37039 2009-08-14  Bruno Haible  <bruno@clisp.org>
37040
37041         Disable multithread support by default on Cygwin 1.5.x for real.
37042         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37043
37044 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37045
37046         update-copyright: much ado about intervals
37047         * build-aux/update-copyright: Implement and document
37048         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37049         of copyright year intervals.
37050         Also, document UPDATE_COPYRIGHT_YEAR.
37051         * tests/test-update-copyright.sh: Test it.
37052
37053         update-copyright: convert 2-digit to 4-digit years
37054         * build-aux/update-copyright: Implement and document.
37055         * tests/test-update-copyright.sh: Update.
37056
37057 2009-08-14  Jim Meyering  <meyering@redhat.com>
37058
37059         test-exclude: avoid coreutils "make check" failure
37060         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37061         just as in test-argmatch.c.
37062
37063 2009-08-13  Eric Blake  <ebb9@byu.net>
37064
37065         test-dup2: fix bad assumption
37066         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37067         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37068
37069         test-version-etc: fix CRLF portability issue
37070         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37071         recognize \r.
37072         * tests/test-argp-version-etc-1.sh: Likewise.
37073
37074         getopt: update client modules
37075         * modules/argp (Depends-on): Use getopt-gnu.
37076         * modules/git-merge-changelog (Depends-on): Likewise.
37077         * modules/long-options (Depends-on): Likewise.
37078         * modules/xstrtol (Depends-on): Likewise.
37079
37080 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37081
37082         * tests/test-version-etc.sh: Don't fail on different
37083         project/version.  Don't fail on CRLF differences.  Rewrite to use
37084         multiple -e instead of multiple sed forks, suggested by Eric Blake
37085         <ebb9@byu.net>.
37086         * tests/test-argp-version-etc-1.sh: Likewise.
37087
37088 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37089
37090         * tests/test-version-etc.sh: Don't fail on different
37091         project/version.
37092
37093 2009-08-12  Bruno Haible  <bruno@clisp.org>
37094
37095         Tests for modules 'getopt-posix', 'getopt-gnu'.
37096         * modules/getopt-posix-tests: New file.
37097         * tests/test-getopt.c: New file.
37098         * tests/test-getopt.h: New file.
37099         * tests/test-getopt_long.h: New file.
37100
37101         New modules 'getopt-posix', 'getopt-gnu'.
37102         * modules/getopt-gnu: New file, renamed from modules/getopt.
37103         * modules/getopt-posix: New file.
37104         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37105         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37106         (gl_GETOPT): Remove macro.
37107         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37108         Disable the test against BSD systems that declare optreset. Test
37109         against mingw bug. Test against lack of support of optional arguments
37110         on many platforms.
37111         * doc/glibc-headers/getopt.texi: Update module name and list of
37112         relevant platforms.
37113         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37114         'getopt-gnu' and more portability problems.
37115         * NEWS: Mention the changes.
37116
37117 2009-08-12  Bruno Haible  <bruno@clisp.org>
37118
37119         Ensure that optarg etc. get declared by <unistd.h>.
37120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37121         AC_USE_SYSTEM_EXTENSIONS.
37122         * modules/getopt (Depends-on): Add 'extensions'.
37123
37124 2009-08-12  Bruno Haible  <bruno@clisp.org>
37125
37126         Avoid test link errors.
37127         * modules/pipe-filter-ii-tests (Makefile.am): Define
37128         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37129         * modules/pipe-filter-gi-tests (Makefile.am): Define
37130         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37132
37133 2009-08-12  Bruno Haible  <bruno@clisp.org>
37134
37135         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37136         gl_GETOPT_SUBSTITUTE before.
37137         (gl_GETOPT): Use it.
37138         * m4/argp.m4 (gl_ARGP): Update.
37139         Reported by Sergey Poznyakoff.
37140
37141         * m4/getopt.m4: Reorder macros.
37142         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37143         (gl_GETOPT_SUBSTITUTE): Remove macro.
37144
37145 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37146
37147         Minor improvement in gitlog-to-changelog
37148
37149         * build-aux/gitlog-to-changelog: New option `--format' makes
37150         output format string configurable.
37151
37152 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37153
37154         Optimize exclude: use hash tables for non-wildcard patterns.
37155
37156         * lib/exclude.c: Include hash.h and mbuiter.h
37157         (struct exclude_pattern, exclude_segment): New data types.
37158         (struct exclude): Rewrite.
37159         (fnmatch_pattern_has_wildcards): New function.
37160         (new_exclude_segment, free_exclude_segment): New functions.
37161         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37162         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37163         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37164         * modules/exclude: Depend on hash and mbuiter.
37165
37166         * modules/exclude-tests: New file.
37167         * tests/test-exclude.c: New file.
37168         * tests/test-exclude1.sh: New file.
37169         * tests/test-exclude2.sh: New file.
37170         * tests/test-exclude3.sh: New file.
37171         * tests/test-exclude4.sh: New file.
37172         * tests/test-exclude5.sh: New file.
37173         * tests/test-exclude6.sh: New file.
37174         * tests/test-exclude7.sh: New file.
37175
37176 2009-08-12  Bruno Haible  <bruno@clisp.org>
37177
37178         Ensure that getopt() gets declared by <unistd.h>.
37179         * lib/unistd.in.h: Conditionally include getopt.h.
37180         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37181         Set GNULIB_UNISTD_H_GETOPT.
37182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37183         GNULIB_UNISTD_H_GETOPT.
37184         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37185
37186 2009-08-12  Bruno Haible  <bruno@clisp.org>
37187
37188         Clarify logic.
37189         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37190         gl_replace_getopt instead of GETOPT_H.
37191
37192 2009-08-12  Bruno Haible  <bruno@clisp.org>
37193
37194         * m4/getopt.m4: Add comments.
37195
37196 2009-08-12  Bruno Haible  <bruno@clisp.org>
37197
37198         Disable multithread support by default on Cygwin 1.5.x.
37199         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37200         set gl_use_threads=no if not specified otherwise.
37201
37202 2009-08-11  Bruno Haible  <bruno@clisp.org>
37203
37204         Avoid compilation error on NetBSD 5.0.
37205         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37206         * tests/test-stdio.c: Likewise.
37207         * tests/test-stdlib.c: Likewise.
37208         * tests/test-string.c: Likewise.
37209         * tests/test-unistd.c: Likewise.
37210         Reported by Greg Troxel <gdt@ir.bbn.com>
37211         at <https://savannah.gnu.org/support/?106973>.
37212
37213 2009-08-11  Bruno Haible  <bruno@clisp.org>
37214
37215         * modules/dup2-tests (Depends-on): Remove close.
37216
37217         Undo 2009-07-19 commit.
37218         * modules/acl-tests (Depends-on): Remove close.
37219         * modules/binary-io-tests (Depends-on): Likewise.
37220         * modules/closein-tests (Depends-on): Likewise.
37221         * modules/flock-tests (Depends-on): Likewise.
37222         * modules/fsync-tests (Depends-on): Likewise.
37223         * modules/lseek-tests (Depends-on): Likewise.
37224         * modules/pipe-tests (Depends-on): Likewise.
37225         * modules/posix_spawn-tests (Depends-on): Likewise.
37226         * modules/posix_spawnp-tests (Depends-on): Likewise.
37227         * modules/stat-time-tests (Depends-on): Likewise.
37228         * modules/yesno-tests (Depends-on): Likewise.
37229
37230 2009-08-10  Bruno Haible  <bruno@clisp.org>
37231
37232         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37233
37234 2009-08-10  Bruno Haible  <bruno@clisp.org>
37235
37236         Fix a gcc warning.
37237         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37238
37239 2009-08-10  Bruno Haible  <bruno@clisp.org>
37240
37241         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37242         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37243         not only the first time.
37244         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37245         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37246         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37247         is 1, not only the the first time.
37248
37249 2009-08-10  Bruno Haible  <bruno@clisp.org>
37250
37251         Make it possible to use module 'gethostname' without module 'close'.
37252         * lib/unistd.in.h (close): Evoke a link error only if
37253         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37255         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37256         * modules/unistd (Makefile.am): Substitute
37257         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37258         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37259         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37260         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37261         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37262         * modules/sys_ioctl (Makefile.am): Substitute
37263         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37264         * modules/socket (configure.ac): On native Windows, set
37265         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37266         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37267         Reported by Sam Steingold <sds@gnu.org>.
37268
37269 2009-08-10  Bruno Haible  <bruno@clisp.org>
37270
37271         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37272         * modules/ioctl (configure.ac): Likewise.
37273
37274 2009-08-10  Bruno Haible  <bruno@clisp.org>
37275
37276         Avoid collision between gnulib wrapper and libintl wrapper.
37277         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37278         already defined in intl/printf.c.
37279         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37280         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37281
37282 2009-08-09  Bruno Haible  <bruno@clisp.org>
37283
37284         Make <sys/select.h> really self-contained, also on Solaris 10.
37285         * lib/sys_select.in.h: Include <string.h>.
37286         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37287         Solaris 10 problem.
37288         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37289         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37290         Reported by Jim Meyering.
37291
37292 2009-08-09  Bruno Haible  <bruno@clisp.org>
37293
37294         Avoid warnings from 'aclocal' that are due to a use of macro name
37295         AM_XGETTEXT_OPTION that is not defined in automake.
37296         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37297         automake.
37298         * modules/error (configure.ac): Likewise.
37299         * modules/propername (configure.ac): Likewise.
37300         * modules/vasprintf (configure.ac): Likewise.
37301         * modules/verror (configure.ac): Likewise.
37302         * modules/xprintf (configure.ac): Likewise.
37303         * modules/xvasprintf (configure.ac): Likewise.
37304
37305 2009-08-08  Bruno Haible  <bruno@clisp.org>
37306
37307         Avoid compilation error in C++ mode.
37308         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37309         Reported by Sam Steingold <sds@gnu.org>.
37310
37311 2009-08-08  Bruno Haible  <bruno@clisp.org>
37312
37313         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37314         for the various Unix platforms.
37315         * doc/posix-headers/limits.texi: Update platforms list regarding
37316         HOST_NAME_MAX.
37317         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37318
37319 2009-08-07  Jim Meyering  <meyering@redhat.com>
37320
37321         selinux-at: fix typo in a comment
37322         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37323         Spotted by Paolo Bonzini.
37324
37325         selinux-at: remove redundant m4 code, add documentation
37326         * modules/selinux-at (configure.ac): Remove redundant code.
37327         LIB_SELINUX is already set via the dependent module, selinux-h.
37328         (Include): Add quotes around selinux-at.h.
37329         * lib/selinux-at.h: Add documentation.
37330         Reported by Bruno Haible in
37331         http://marc.info/?l=gnulib-bug&m=124958988300749
37332
37333 2009-08-07  Bruno Haible  <bruno@clisp.org>
37334
37335         Avoid link error on MacOS X 10.3 and 10.4.
37336         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37337         on non-ELF systems.
37338         * lib/argp-pv.c (argp_program_version): Likewise.
37339         Reported by Simon Josefsson.
37340
37341 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37342
37343         * tests/test-version-etc.sh: Use $EXEEXT.
37344
37345 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37346
37347         update-copyright: update documentation to point to maint.mk
37348         * build-aux/update-copyright: Here.
37349
37350 2009-08-06  Jim Meyering  <meyering@redhat.com>
37351
37352         maint.mk: support update-copyright-local
37353         * top/maint.mk (update-copyright-local): Define place-holder.
37354         (update-copyright): Depend on $(update-copyright-local).
37355
37356 2009-08-06  Jim Meyering  <meyering@redhat.com>
37357
37358         selinux-at: new module
37359         Initially written for coreutils, this module will soon be
37360         used by findutils, too.
37361         * MODULES.html.sh [Misc]: Add selinux-at.
37362         * lib/selinux-at.h: New file, from coreutils.
37363         * lib/selinux-at.c: Likewise.
37364         * modules/selinux-at: Likewise.
37365         (License): Change from LGPL to GPL, since it depends
37366         on the GPL'd openat module.
37367
37368         doc: update README
37369         * README: Remove references to cogito.
37370         Remove cvs-repo-updating instructions from 2007.
37371         Don't imply that CVS is better if you have limited disk space.
37372
37373 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37374
37375         update-copyright: support C-style comments
37376         * build-aux/update-copyright: Implement and document.
37377         * tests/test-update-copyright.sh: Test.
37378
37379 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37380
37381         update-copyright: support omitted "(C)"
37382         * build-aux/update-copyright: Implement and document.  Also,
37383         allow variable whitespace before "(C)".
37384         * tests/test-update-copyright.sh: Test.
37385
37386 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37387
37388         update-copyright: don't trip on non-FSF copyright statements
37389         * build-aux/update-copyright: Fix so that the first correctly
37390         formatted FSF copyright statement is recognized no matter what
37391         appears before it.  Update documentation.
37392         * tests/test-update-copyright.sh: Test that.
37393
37394 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37395
37396         update-copyright: clean up code a little
37397         * build-aux/update-copyright: Append "_re" to the name of any
37398         variable holding a regular expression.
37399         Replace "old" and "new" with "stmt" in variable names.
37400         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37401         handled correctly.
37402         Format code more consistently.
37403
37404 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37405
37406         update-copyright-tests: improve portability
37407         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37408         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37409
37410 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37411
37412         update-copyright: support @copyright{} and &copy;
37413         * build-aux/update-copyright: Implement and document.
37414         * tests/test-update-copyright.sh: Test.
37415
37416 2009-08-04  Jim Meyering  <meyering@redhat.com>
37417
37418         update-copyright-tests: correctly test EOL=\r\n handling
37419         * tests/test-update-copyright.sh: Put \r at the end of some lines
37420         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37421
37422         maint.mk: make update-copyright exclusion list more configurable
37423         * top/maint.mk (update-copyright): Default to excluding COPYING,
37424         but allow an override, in case someone does want to update that file.
37425
37426         maint.mk: don't update copyright date in COPYING
37427         * top/maint.mk (update-copyright): Exclude COPYING.
37428
37429         maint.mk: add a copyright-updating rule
37430         * top/maint.mk (update-copyright): New rule.
37431         Derived from coreutils/Makefile.am.
37432
37433         update-copyright: rename some variables
37434         * build-aux/update-copyright: Rename a few variables for clarity.
37435         Tweak syntax.  List Joel E. Denny as coauthor.
37436
37437 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37438
37439         update-copyright: fix bug for 2-digit last year and add tests
37440         * build-aux/update-copyright: Fix bug.
37441         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37442         specified.
37443         * modules/update-copyright-tests: New
37444         * tests/test-update-copyright.sh: New.
37445
37446 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37447
37448         update-copyright: handle leading tabs in line prefix
37449         * build-aux/update-copyright: Count leading tabs as 8 spaces
37450         when computing margin.  This helps with the formatting of
37451         ChangeLogs, for example.
37452         Fix documentation a little.
37453
37454 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37455
37456         update-copyright: support EOL=\r\n
37457         * build-aux/update-copyright: Implement that.
37458
37459 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37460
37461         update-copyright: automatically format copyright statements
37462         * build-aux/update-copyright: Implement that.
37463         Also, be a little more predictable and safer by always failing
37464         when the full copyright format is not perfectly recognized as an
37465         unbroken whole.  Discussed at
37466         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37467         Rewrite documentation.
37468
37469 2009-08-03  Bruno Haible  <bruno@clisp.org>
37470
37471         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37472
37473 2009-08-02  Bruno Haible  <bruno@clisp.org>
37474
37475         Tests for module 'uname'.
37476         * modules/uname-tests: New file.
37477         * tests/test-uname.c: New file.
37478
37479         New module 'uname'.
37480         * lib/uname.c: New file.
37481         * m4/uname.m4: New file.
37482         * modules/uname: New file.
37483         * doc/posix-functions/uname.texi: Mention the new module.
37484
37485 2009-08-02  Bruno Haible  <bruno@clisp.org>
37486
37487         Tests for module 'sys_utsname'.
37488         * modules/sys_utsname-tests: New file.
37489         * tests/test-sys_utsname.c: New file.
37490
37491         New module 'sys_utsname'.
37492         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37493         * m4/sys_utsname_h.m4: New file.
37494         * modules/sys_utsname: New file.
37495         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37496
37497 2009-08-02  Bruno Haible  <bruno@clisp.org>
37498
37499         Implicitly initialize the sockets library.
37500         * lib/gethostname.c: Include sockets.h.
37501         (rpl_gethostname): Invoke gl_sockets_startup.
37502         * lib/socket.c: Include sockets.h.
37503         (rpl_socket): Invoke gl_sockets_startup.
37504         * modules/gethostname (Depends-on): Add sockets.
37505         * modules/socket (Depends-on): Likewise.
37506         * tests/test-poll.c: Don't include sockets.h.
37507         (main): Don't invoke gl_sockets_startup.
37508         * tests/test-select.c: Don't include sockets.h.
37509         (main): Don't invoke gl_sockets_startup.
37510
37511 2009-08-02  Bruno Haible  <bruno@clisp.org>
37512
37513         Allow multiple calls to gl_sockets_startup.
37514         * lib/sockets.c (initialized_sockets_version): New variable.
37515         (gl_sockets_startup): Do nothing if already called for this or a higher
37516         version.
37517         (gl_sockets_cleanup): Reset initialized_sockets_version.
37518
37519 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37520
37521         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37522         different project/version.
37523
37524 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37525             Bruno Haible  <bruno@clisp.org>
37526
37527         Tests for module 'pipe-filter-gi'.
37528         * modules/pipe-filter-gi-tests: New file.
37529         * tests/test-pipe-filter-gi1.sh: New file.
37530         * tests/test-pipe-filter-gi1.c: New file.
37531         * tests/test-pipe-filter-gi2.sh: New file.
37532         * tests/test-pipe-filter-gi2-main.c: New file.
37533         * tests/test-pipe-filter-gi2-child.c: New file.
37534
37535         New module 'pipe-filter-gi'.
37536         * lib/pipe-filter-gi.c: New file.
37537         * modules/pipe-filter-gi: New file.
37538
37539 2009-08-02  Bruno Haible  <bruno@clisp.org>
37540             Paolo Bonzini  <bonzini@gnu.org>
37541
37542         Tests for module 'pipe-filter-ii'.
37543         * modules/pipe-filter-ii-tests: New file.
37544         * tests/test-pipe-filter-ii1.sh: New file.
37545         * tests/test-pipe-filter-ii1.c: New file.
37546         * tests/test-pipe-filter-ii2.sh: New file.
37547         * tests/test-pipe-filter-ii2-main.c: New file.
37548         * tests/test-pipe-filter-ii2-child.c: New file.
37549
37550         New module 'pipe-filter-ii'.
37551         * lib/pipe-filter.h: New file.
37552         * lib/pipe-filter-ii.c: New file.
37553         * lib/pipe-filter-aux.h: New file.
37554         * modules/pipe-filter-ii: New file.
37555
37556 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37557
37558         * lib/gc-libgcrypt.c: Change copyright to FSF.
37559         * lib/gc-gnulib.c: Likewise.
37560
37561 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37562
37563         * lib/gethostname.c: Include limits.h.
37564
37565 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37566             Bruno Haible  <bruno@clisp.org>
37567
37568         Ensure HOST_NAME_MAX as part of the gethostname module.
37569         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37570         define also HOST_NAME_MAX.
37571         * tests/test-gethostname.c: Include <limits.h>.
37572         (main): Check also HOST_NAME_MAX.
37573         * doc/posix-headers/limits.texi: Document the mingw problem.
37574
37575 2009-08-02  Bruno Haible  <bruno@clisp.org>
37576
37577         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37578         Add comments.
37579
37580 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37581
37582         * lib/gethostname.c: Add Windows wrapper.
37583         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37584         * modules/gethostname: Depend on sys_socket & errno, for also
37585         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37586         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37587
37588 2009-07-31  Jim Meyering  <meyering@redhat.com>
37589
37590         getloadavg: fix symbol name in comment
37591         * lib/getloadavg.c: Correct a typo I introduced when adding
37592         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37593         Matt Kraai spotted the problem.
37594
37595 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37596
37597         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37598         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37599         code also if ! defined N_NAME_POINTER.
37600         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37601         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37602         but the n_name member is a 12-byte array.
37603
37604 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37605
37606         update-copyright: generalize comment handling
37607         * build-aux/update-copyright: Handle copyright statements
37608         within more comment styles.
37609         Document usage.
37610         Report any file with an external copyright holder or parse failure.
37611
37612 2009-07-29  Jim Meyering  <meyering@redhat.com>
37613
37614         mktime: correct setting of REPLACE_MKTIME
37615         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37616
37617         update-copyright: new module
37618         * modules/update-copyright: New file.
37619         * build-aux/update-copyright: New file.
37620         * MODULES.html.sh (maint+release support): Add update-copyright.
37621
37622 2009-07-27  Bruno Haible  <bruno@clisp.org>
37623
37624         Fix compilation error when <ctime> is used and mktime is replaced.
37625         * lib/time.in.h (mktime): New declaration.
37626         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37627         REPLACE_MKTIME instead of defining mktime in config.h.
37628         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37629         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37630         Reported by Ross McFarland <rwmcfa1@neces.com>.
37631
37632 2009-07-27  Bruno Haible  <bruno@clisp.org>
37633
37634         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37635         Reported by Matt Kraai <mkraai@beckman.com>.
37636
37637 2009-07-25  Jim Meyering  <meyering@redhat.com>
37638
37639         maint.mk: avoid warnings about missing files
37640         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37641         diagnostic when .prev-version does not exist.
37642         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37643         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37644         nonexistent cfg.mk.
37645         Suggestions from Simon Josefsson.
37646
37647 2009-07-25  Bruno Haible  <bruno@clisp.org>
37648
37649         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37650         defined as macros. Needed on QNX 6.4.1.
37651         Reported by Matt Kraai <mkraai@beckman.com>.
37652
37653 2009-07-23  Jim Meyering  <meyering@redhat.com>
37654
37655         maint.mk: invoke "make dist" with a working value of XZ_OPT
37656         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37657
37658 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37659
37660         Make fseeko.c compile on QNX.
37661         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37662
37663 2009-07-22  Peter Simons  <simons@cryp.to>
37664
37665         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37666         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37667         * lib/md4.h: Likewise.
37668         * lib/md5.h: Likewise.
37669         * lib/sha1.h: Likewise.
37670         * lib/sha256.h: Likewise.
37671         * lib/sha512.h: Likewise.
37672
37673         tests-sha1: don't assign literal string to 'char *' variable
37674         * tests/test-sha1.c (main): Declare locals with "const" to match
37675         attributes of the right hand side.
37676
37677 2009-07-21  Eric Blake  <ebb9@byu.net>
37678
37679         dup2: fix more mingw problems
37680         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37681         fd to itself.
37682         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37683         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37684         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37685         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37686         care of mingw bugs.
37687
37688 2009-07-21  Jim Meyering  <meyering@redhat.com>
37689
37690         vc-list-files: avoid failure when /bin/sh is dash
37691         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37692         On some Debian based systems, /bin/sh is a symlink to dash, and running
37693         this command would omit the "/" following each 'tests' prefix:
37694           dash -x build-aux/vc-list-files -C . tests
37695         That is because bash and dash work differently:
37696           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37697           bash ok
37698           dash odd
37699
37700 2009-07-21  Eric Blake  <ebb9@byu.net>
37701
37702         dup2-tests: test previous patch
37703         * modules/dup2-tests: New file.
37704         * tests/test-dup2.c: Likewise.
37705         * tests/test-open.c (main): Avoid unspecified behavior.
37706         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37707         test.
37708
37709         dup2: work around mingw and cygwin 1.5 bug
37710         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37712         * modules/unistd (Makefile.am): Substitute it.
37713         * lib/unistd.in.h (dup2): Declare the replacement.
37714         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37715         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37716         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37717         * modules/execute (Depends-on): Add dup2.
37718         * modules/fseterr (Depends-on): Likewise.
37719         * modules/pipe (Depends-on): Likewise.
37720         * modules/posix_spawn-internal (Depends-on): Likewise.
37721
37722 2009-07-21  Bruno Haible  <bruno@clisp.org>
37723
37724         * modules/.gitattributes: New file.
37725
37726 2009-07-20  Bruno Haible  <bruno@clisp.org>
37727
37728         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37729         (main): Use it.
37730
37731 2009-07-20  Eric Blake  <ebb9@byu.net>
37732
37733         test-pipe: make a bit more robust.
37734         * tests/test-pipe.c (myerr): Allow error messages regardless of
37735         what we do to stderr.
37736         (test_pipe): Rearrange to avoid deadlock.
37737         (child_main): Try a larger read, to ensure we avoided deadlock.
37738         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37739         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37740         if misused.
37741
37742 2009-07-19  Jim Meyering  <meyering@redhat.com>
37743
37744         fts: avoid false-positive cycle-detection
37745         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37746         for each new command line argument.
37747
37748 2009-07-19  Bruno Haible  <bruno@clisp.org>
37749
37750         Fix build error on mingw with the modules sys_select and unistd.
37751         * modules/acl-tests (Depends-on): Add close.
37752         * modules/binary-io-tests (Depends-on): Likewise.
37753         * modules/closein-tests (Depends-on): Likewise.
37754         * modules/flock-tests (Depends-on): Likewise.
37755         * modules/fsync-tests (Depends-on): Likewise.
37756         * modules/lseek-tests (Depends-on): Likewise.
37757         * modules/pipe-tests (Depends-on): Likewise.
37758         * modules/posix_spawn-tests (Depends-on): Likewise.
37759         * modules/posix_spawnp-tests (Depends-on): Likewise.
37760         * modules/stat-time-tests (Depends-on): Likewise.
37761         * modules/yesno-tests (Depends-on): Likewise.
37762
37763 2009-07-19  Bruno Haible  <bruno@clisp.org>
37764
37765         Unify conditionals.
37766         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37767         macros, not at the compiler macros.
37768         * lib/pipe.c: Likewise.
37769         * lib/execute.c: Likewise.
37770         * lib/spawni.c: Likewise.
37771
37772 2009-07-19  Bruno Haible  <bruno@clisp.org>
37773
37774         Fix handling of closed stdin/stdout/stderr on mingw.
37775         * lib/w32spawn.h: Include unistd.h.
37776         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37777         file descriptor with O_NOINHERIT flag.
37778         (fd_safer_noinherit): New function, based on fd-safer.c.
37779         (dup_safer_noinherit): New function, based on dup-safer.c.
37780         (undup_safer_noinherit): New function.
37781         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37782         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37783         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37784         instead of fd_safer.
37785         * tests/test-pipe.c: Include <windows.h>.
37786         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37787         result.
37788
37789         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37790         from main.
37791         (test_pipe): Pass an extra argument for disambiguation.
37792         (main): Invoke parent_main or child_main.
37793
37794         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37795         consistently.
37796
37797 2009-07-18  Eric Blake  <ebb9@byu.net>
37798
37799         test-pipe: fix mingw build
37800         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37801
37802 2009-07-18  Bruno Haible  <bruno@clisp.org>
37803
37804         * modules/pipe-tests (Makefile.am): Fix typo.
37805
37806 2009-07-18  Eric Blake  <ebb9@byu.net>
37807
37808         error: fix mingw build
37809         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37810         Reported by Bruno Haible.
37811
37812         error: avoid undefined use of stdout
37813         * lib/error.c (error, error_at_line): Check that fd 1 is open
37814         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37815         is handling faults and the close_stdout module wants to report the
37816         detection of closed stdout as an error.
37817
37818 2009-07-17  Eric Blake  <ebb9@byu.net>
37819
37820         pipe: be robust in face of closed fds
37821         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37822         should cause child to misbehave.
37823         * modules/pipe-tests: New module.
37824         * tests/test-pipe.c: New file.
37825         * tests/test-pipe.sh: New file.
37826         Reported by Akim Demaille.
37827
37828 2009-07-14  Bruno Haible  <bruno@clisp.org>
37829
37830         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37831         Reported by anonymous kc.
37832
37833 2009-07-07  Jim Meyering  <meyering@redhat.com>
37834
37835         maint.mk: don't look for translatable strings in *.m4 or *.mk
37836         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37837         when searching for translatable strings.
37838
37839 2009-07-05  Jim Meyering  <meyering@redhat.com>
37840
37841         remove superfluous parentheses in STREQ definition
37842         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37843         * lib/getugroups.c (STREQ): Likewise.
37844         * lib/fnmatch.c (STREQ): Likewise.
37845         Spotted by Bruno Haible.
37846
37847 2009-07-04  Jim Meyering  <meyering@redhat.com>
37848
37849         argv-iter: new module
37850         * MODULES.html.sh: Add argv-iter.
37851         * lib/argv-iter.c, lib/argv-iter.h: New files.
37852         * modules/argv-iter: New file.
37853         * modules/argv-iter-tests: New file.
37854         * tests/test-argv-iter.c: Test it.
37855
37856 2009-07-04  Bruno Haible  <bruno@clisp.org>
37857
37858         Fix assertion.
37859         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37860         contains more exact copies of a given entry than file2, leave the extra
37861         copies unpaired rather than aborting.
37862         Reported by Eric Blake.
37863
37864 2009-07-02  Bruno Haible  <bruno@clisp.org>
37865
37866         Speedup git-merge-changelog for git cherry-pick.
37867         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37868         (entries_mapping_get): New function, extracted from compute_mapping.
37869         (entries_mapping_reverse_get): New function.
37870         (compute_mapping): Add a 'full' argument. Return the result in a
37871         'struct entries_mapping'.
37872         (main): Update. Access the mappings through entries_mapping_get.
37873         Reported by Eric Blake.
37874
37875 2009-07-02  Bruno Haible  <bruno@clisp.org>
37876
37877         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37878         best_i.
37879
37880 2009-07-02  Bruno Haible  <bruno@clisp.org>
37881
37882         Speed up approximate search for matching ChangeLog entries.
37883         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37884         argument. Call fstrcmp_bounded instead of fstrcmp.
37885         (compute_mapping, try_split_merged_entry, main): Update callers.
37886
37887 2009-07-02  Bruno Haible  <bruno@clisp.org>
37888
37889         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37890
37891 2009-06-30  Bruno Haible  <bruno@clisp.org>
37892
37893         Reduce the number of uc_is_cased calls.
37894         * lib/unicase.h (casing_suffix_context_t): Add
37895         'first_char_except_ignorable' field.
37896         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37897         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37898         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37899         Update initializer.
37900         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37901         case-ignorable characters.
37902         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37903         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37904         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37905         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37906         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37907
37908 2009-06-30  Bruno Haible  <bruno@clisp.org>
37909
37910         Tests for module 'unicase/ignorable'.
37911         * modules/unicase/ignorable-tests: New file.
37912         * tests/unicase/test-ignorable.c: New file, generated by
37913         gen-uni-tables.
37914
37915         Tests for module 'unicase/cased'.
37916         * modules/unicase/cased-tests: New file.
37917         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37918         * tests/unicase/test-predicate-part1.h: New file, derived from
37919         tests/unictype/test-predicate-part1.h.
37920         * tests/unicase/test-predicate-part2.h: New file, same as
37921         tests/unictype/test-predicate-part2.h.
37922
37923         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37924         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37925         (output_casing_properties): New function.
37926         (main): Call it.
37927         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37928         * lib/unicase/cased.c: Include unictype/bitmap.h.
37929         (uc_is_cased): Define through a bitmap lookup.
37930         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37931         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37932         (uc_is_case_ignorable): Define through a bitmap lookup.
37933         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37934         lib/unictype/bitmap.h.
37935         (Depends-on): Add inline. Clean up.
37936         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37937         lib/unictype/bitmap.h.
37938         (Depends-on): Add inline. Clean up.
37939         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37940         recognition.
37941         * tests/unicase/test-u16-tolower.c (main): Likewise.
37942         * tests/unicase/test-u32-tolower.c (main): Likewise.
37943
37944 2009-06-30  Bruno Haible  <bruno@clisp.org>
37945
37946         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37947         * lib/unicase/u16-casemap.c: Likewise.
37948         * lib/unicase/u32-casemap.c: Likewise.
37949
37950 2009-06-29  Bruno Haible  <bruno@clisp.org>
37951
37952         Define u32_casefold as a wrapper around u32_ct_casefold.
37953         * lib/unicase/u32-casefold.c: Update.
37954         * modules/unicase/u32-casefold (Depends-on): Add
37955         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37956         unicase/empty-suffix-context. Clean up.
37957
37958         Define u16_casefold as a wrapper around u16_ct_casefold.
37959         * lib/unicase/u16-casefold.c: Update.
37960         * modules/unicase/u16-casefold (Depends-on): Add
37961         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37962         unicase/empty-suffix-context. Clean up.
37963
37964         Define u8_casefold as a wrapper around u8_ct_casefold.
37965         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37966         * lib/unicase/u8-casefold.c: Update.
37967         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37968         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37969
37970         Define u32_totitle as a wrapper around u32_ct_totitle.
37971         * lib/unicase/u32-totitle.c: Update.
37972         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37973         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37974
37975         Define u16_totitle as a wrapper around u16_ct_totitle.
37976         * lib/unicase/u16-totitle.c: Update.
37977         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37978         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37979
37980         Define u8_totitle as a wrapper around u8_ct_totitle.
37981         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37982         functions.
37983         (FUNC): Delegate to U_CT_TOTITLE.
37984         * lib/unicase/u8-totitle.c: Update.
37985         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37986         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37987
37988         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37989         invocation.
37990         * modules/unicase/u32-tolower (Depends-on): Add
37991         unicase/empty-prefix-context, unicase/empty-suffix-context.
37992
37993         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37994         invocation.
37995         * modules/unicase/u16-tolower (Depends-on): Add
37996         unicase/empty-prefix-context, unicase/empty-suffix-context.
37997
37998         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37999         * modules/unicase/u8-tolower (Depends-on): Add
38000         unicase/empty-prefix-context, unicase/empty-suffix-context.
38001
38002         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38003         invocation.
38004         * modules/unicase/u32-toupper (Depends-on): Add
38005         unicase/empty-prefix-context, unicase/empty-suffix-context.
38006
38007         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38008         invocation.
38009         * modules/unicase/u16-toupper (Depends-on): Add
38010         unicase/empty-prefix-context, unicase/empty-suffix-context.
38011
38012         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38013         * modules/unicase/u8-toupper (Depends-on): Add
38014         unicase/empty-prefix-context, unicase/empty-suffix-context.
38015
38016         New module 'unicase/u32-ct-casefold'.
38017         * lib/unicase/u32-ct-casefold.c: New file.
38018         * modules/unicase/u32-ct-casefold: New file.
38019
38020         New module 'unicase/u16-ct-casefold'.
38021         * lib/unicase/u16-ct-casefold.c: New file.
38022         * modules/unicase/u16-ct-casefold: New file.
38023
38024         New module 'unicase/u8-ct-casefold'.
38025         * lib/unicase/u8-ct-casefold.c: New file.
38026         * lib/unicase/u-ct-casefold.h: New file, derived from
38027         lib/unicase/u-casefold.h.
38028         * modules/unicase/u8-ct-casefold: New file.
38029
38030         New module 'unicase/u32-ct-totitle'.
38031         * lib/unicase/u32-ct-totitle.c: New file.
38032         * modules/unicase/u32-ct-totitle: New file.
38033
38034         New module 'unicase/u16-ct-totitle'.
38035         * lib/unicase/u16-ct-totitle.c: New file.
38036         * modules/unicase/u16-ct-totitle: New file.
38037
38038         New module 'unicase/u8-ct-totitle'.
38039         * lib/unicase/u8-ct-totitle.c: New file.
38040         * lib/unicase/u-ct-totitle.h: New file, derived from
38041         lib/unicase/u-totitle.h.
38042         * modules/unicase/u8-ct-totitle: New file.
38043
38044         New module 'unicase/u32-ct-tolower'.
38045         * lib/unicase/u32-ct-tolower.c: New file.
38046         * modules/unicase/u32-ct-tolower: New file.
38047
38048         New module 'unicase/u16-ct-tolower'.
38049         * lib/unicase/u16-ct-tolower.c: New file.
38050         * modules/unicase/u16-ct-tolower: New file.
38051
38052         New module 'unicase/u8-ct-tolower'.
38053         * lib/unicase/u8-ct-tolower.c: New file.
38054         * modules/unicase/u8-ct-tolower: New file.
38055
38056         New module 'unicase/u32-ct-toupper'.
38057         * lib/unicase/u32-ct-toupper.c: New file.
38058         * modules/unicase/u32-ct-toupper: New file.
38059
38060         New module 'unicase/u16-ct-toupper'.
38061         * lib/unicase/u16-ct-toupper.c: New file.
38062         * modules/unicase/u16-ct-toupper: New file.
38063
38064         New module 'unicase/u8-ct-toupper'.
38065         * lib/unicase/u8-ct-toupper.c: New file.
38066         * modules/unicase/u8-ct-toupper: New file.
38067
38068         Add context arguments to u*_casemap functions.
38069         * lib/unicase/unicasemap.h: Include unicase.h.
38070         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38071         suffix_context arguments.
38072         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38073         functions.
38074         (FUNC): Add prefix_context and suffix_context arguments. Use
38075         uc_is_cased and uc_is_case_ignorable.
38076         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38077         * lib/unicase/u16-casemap.c: Likewise.
38078         * lib/unicase/u32-casemap.c: Likewise.
38079         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38080         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38081         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38082         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38083         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38084         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38085
38086         New module 'unicase/u32-suffix-context'.
38087         * lib/unicase/u32-suffix-context.c: New file.
38088         * modules/unicase/u32-suffix-context: New file.
38089
38090         New module 'unicase/u16-suffix-context'.
38091         * lib/unicase/u16-suffix-context.c: New file.
38092         * modules/unicase/u16-suffix-context: New file.
38093
38094         New module 'unicase/u8-suffix-context'.
38095         * lib/unicase/u8-suffix-context.c: New file.
38096         * lib/unicase/u-suffix-context.h: New file.
38097         * modules/unicase/u8-suffix-context: New file.
38098
38099         New module 'unicase/empty-suffix-context'.
38100         * lib/unicase/empty-suffix-context.c: New file.
38101         * modules/unicase/empty-suffix-context: New file.
38102
38103         New module 'unicase/u32-prefix-context'.
38104         * lib/unicase/u32-prefix-context.c: New file.
38105         * modules/unicase/u32-prefix-context: New file.
38106
38107         New module 'unicase/u16-prefix-context'.
38108         * lib/unicase/u16-prefix-context.c: New file.
38109         * modules/unicase/u16-prefix-context: New file.
38110
38111         New module 'unicase/u8-prefix-context'.
38112         * lib/unicase/u8-prefix-context.c: New file.
38113         * lib/unicase/u-prefix-context.h: New file.
38114         * lib/unicase/context.h: New file.
38115         * modules/unicase/u8-prefix-context: New file.
38116
38117         New module 'unicase/empty-prefix-context'.
38118         * lib/unicase/empty-prefix-context.c: New file.
38119         * modules/unicase/empty-prefix-context: New file.
38120
38121         New module 'unicase/ignorable'.
38122         * lib/unicase/ignorable.c: New file.
38123         * modules/unicase/ignorable: New file.
38124
38125         New module 'unicase/cased'.
38126         * lib/unicase/caseprop.h: New file.
38127         * lib/unicase/cased.c: New file.
38128         * modules/unicase/cased: New file.
38129
38130         New functions for case mapping of substrings.
38131         * lib/unicase.h (casing_prefix_context_t): New type.
38132         (unicase_empty_prefix_context): New variable.
38133         (u8_casing_prefix_context, u16_casing_prefix_context,
38134         u32_casing_prefix_context, u8_casing_prefixes_context,
38135         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38136         declarations.
38137         (casing_suffix_context_t): New type.
38138         (unicase_empty_suffix_context): New variable.
38139         (u8_casing_suffix_context, u16_casing_suffix_context,
38140         u32_casing_suffix_context, u8_casing_suffixes_context,
38141         u16_casing_suffixes_context, u32_casing_suffixes_context,
38142         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38143         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38144         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38145         declarations.
38146
38147 2009-06-28  Jim Meyering  <meyering@redhat.com>
38148
38149         boostrap: indent only with spaces
38150         * build-aux/bootstrap: Indent only with spaces, never TABs.
38151
38152         bootstrap: split long lines
38153         * build-aux/bootstrap: Keep line length < 80.
38154
38155         bootstrap: sync from coreutils
38156         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38157         just as autoreconf does.  Verify a list of prerequisite
38158         package-name,version-number pairs if defined in bootstrap.conf.
38159         Refer to README-prereq, if prerequisites are not satisfied.
38160
38161 2009-06-27  Eric Blake  <ebb9@byu.net>
38162
38163         tests: add test for bogus NULL definition
38164         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38165         * tests/test-stdlib.c: Likewise.
38166         * tests/test-string.c: Likewise.
38167         * tests/test-locale.c: Likewise.
38168         * tests/test-unistd.c: Likewise.
38169         * modules/stdio-tests (Depends-on): Add verify.
38170         * modules/stdlib-tests (Depends-on): Likewise.
38171         * modules/string-tests (Depends-on): Likewise.
38172         * modules/locale-tests (Depends-on): Likewise.
38173         * modules/unistd-tests (Depends-on): Likewise.
38174
38175 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38176
38177         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38178         self-explaining comment.
38179         * m4/selinux-selinux-h: Update serial.
38180         (gl_LIBSELINUX): New macro, adding a warning for missing development
38181         packages to code extracted from...
38182         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38183         Add warning for missing development packages here, too.
38184
38185 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38186
38187         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38188
38189 2009-06-25  Eric Blake  <ebb9@byu.net>
38190
38191         version-etc: fix regression
38192         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38193         gcc.
38194         (version_etc): Use it, to catch bugs with trailing NULL.
38195         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38196         (version_etc_va): Fix logic bug.
38197         * modules/version-etc-tests: Add test.
38198         * tests/test-version-etc.c: New file.
38199         * tests/test-version-etc.sh: Likewise.
38200
38201 2009-06-25  Sam Steingold  <sds@gnu.org>
38202
38203         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38204         mbtowc declaration.
38205
38206 2009-06-25  Eric Blake  <ebb9@byu.net>
38207
38208         fpurge: migrate into <stdio.h>
38209         * lib/fpurge.h: Delete...
38210         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38211         * lib/fpurge.c (fpurge): Change declaring header.
38212         * modules/fpurge (Files): Drop deleted file.
38213         (Depends-on): Add stdio.
38214         (configure.ac): Set witness.
38215         * modules/stdio (Makefile.am): Support fpurge macros.
38216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38217         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38218         * lib/fflush.c: Update client.
38219         * tests/test-fpurge.c: Likewise.
38220         * NEWS: Mention the change.
38221
38222 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38223
38224         * lib/argp-version-etc.c (program_authors): Add const
38225         qualifier.
38226         * lib/version-etc.c: Fix typos in the comments.
38227         * modules/argp-version-etc: Depends on version-etc.
38228
38229 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38230
38231         argp-version-etc: new module.
38232
38233         * lib/argp-version-etc.c: New file.
38234         * lib/argp-version-etc.h: New file.
38235         * modules/argp-version-etc: New file.
38236         * modules/argp-version-etc-tests: New file.
38237         * tests/test-argp-version-etc.c: New test.
38238         * tests/test-argp-version-etc-1.sh: New test.
38239
38240 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38241
38242         Provide additional interfaces and documentation for version-etc
38243         module.
38244
38245         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38246         interfaces.
38247         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38248         prototypes.
38249
38250 2009-06-24  Bruno Haible  <bruno@clisp.org>
38251
38252         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38253         HAVE_LIB${NAME} macro.
38254         Reported by Sam Steingold <sds@gnu.org>.
38255
38256 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38257
38258         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38259         needed.
38260
38261 2009-06-21  Bruno Haible  <bruno@clisp.org>
38262
38263         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38264         work.
38265         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38266         together with LIB${NAME}, LTLIB${NAME}.
38267         Reported by Sam Steingold <sds@gnu.org>.
38268
38269 2009-06-20  Jim Meyering  <meyering@redhat.com>
38270
38271         tests: make sc_require_test_exit_idiom more generic
38272         * top/maint.mk (Exit_witness_file): New overridable variable.
38273         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38274         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38275
38276 2009-06-19  Jim Meyering  <meyering@redhat.com>
38277
38278         hash: reverse order of src/dst parameters in an internal interface
38279         * lib/hash.c (transfer_entries): Reverse order of parameters to
38280         put DST before SRC.  Adjust callers.
38281
38282         tests: test-hash: avoid wholesale duplication
38283         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38284         Instead, use a loop and add a single conditional.
38285
38286         tests: test-hash: allow seed selection via a command line argument
38287         * tests/test-hash.c (get_seed): New function.
38288         (main): Use it.
38289
38290 2009-06-19  Eric Blake  <ebb9@byu.net>
38291
38292         hash: avoid memory leak on allocation failure
38293         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38294         failure.  Factor repeated algorithm...
38295         (transfer_entries): ...into new helper routine.
38296         (hash_delete): React to hash_rehash return value.
38297
38298         hash: reduce memory pressure in hash_rehash no-op case
38299         * lib/hash.c (next_prime): Avoid overflow.
38300         (hash_initialize): Factor bucket size computation...
38301         (compute_bucket_size): ...into new helper function.
38302         (hash_rehash): Use new function and open coding to reduce memory
38303         pressure, and avoid a memory leak in USE_OBSTACK code.
38304         Reported by Jim Meyering.
38305
38306 2009-06-18  Eric Blake  <ebb9@byu.net>
38307
38308         hash: make rotation more obvious
38309         * modules/hash (Depends-on): Add bitrotate and stdint.
38310         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38311         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38312         (SIZE_MAX): Rely on headers for definition.
38313         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38314         (raw_hasher): Use rotr_sz.
38315         Suggested by Jim Meyering.
38316
38317         hash: fix memory leak in last patch
38318         * lib/hash.c (hash_rehash): Avoid memory leak.
38319
38320         hash: avoid no-op rehashing
38321         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38322
38323         hash: provide default callback functions
38324         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38325         (hash_initialize): Use them as defaults.
38326         * tests/test-hash.c (main): Test this.
38327
38328         hash: minor optimization
38329         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38330         when possible.
38331         (hash_initialize): Document this promise.
38332         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38333         * tests/test-hash.c (hash_compare_strings): Test this.
38334
38335 2009-06-18  Bruno Haible  <bruno@clisp.org>
38336
38337         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38338         going to be replaced anyway.
38339
38340 2009-06-18  Bruno Haible  <bruno@clisp.org>
38341
38342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38343         in one place.
38344         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38345         be replaced anyway.
38346
38347 2009-06-18  Eric Blake  <ebb9@byu.net>
38348
38349         hash: check for resize before insertion
38350         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38351         threshold before insertion, so that a pathological hash_rehash
38352         that fills every bucket can still trigger another rehash.
38353
38354 2009-06-18  Jim Meyering  <meyering@redhat.com>
38355
38356         hash-tests: add a loop around the small tests
38357         * tests/test-hash.c (main): Repeat small tests with selected
38358         small initial table sizes.
38359
38360 2009-06-17  Eric Blake  <ebb9@byu.net>
38361
38362         hash: minor cleanups
38363         * lib/hash.h (hash_entry): Make opaque, by moving...
38364         * lib/hash.c (hash_entry): ...here.
38365         (hash_insert): Clarify restrictions on what can be inserted.
38366         (hash_get_next): Clarify when it is safe to remove an element
38367         during traversal.
38368         (check_tuning): Skip verification when tuning is known safe.
38369         (hash_initialize): Clarify restrictions on tuning.
38370
38371 2009-06-17  Jim Meyering  <jim@meyering.net>
38372         and Eric Blake  <ebb9@byu.net>
38373
38374         hash-tests: new module
38375         * modules/hash-tests: New file.
38376         * tests/test-hash.c: New file.
38377
38378 2009-06-17  Eric Blake  <ebb9@byu.net>
38379
38380         strstr-simple: document new module
38381         * MODULES.html.sh: Document new module.
38382
38383         strstr, strcasestr: replace on platforms with broken memchr
38384         * modules/strstr: Split into...
38385         * modules/strstr-simple: ...new module that does not care about
38386         performance, but does care about glibc bug.
38387         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38388         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38389         if platform memchr is broken, per Debian bug 521737.
38390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38391         memchr.
38392         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38393         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38394         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38395         * modules/mountlist (Depends-on): Add strstr-simple.
38396         * modules/gen-uni-tables (Depends-on): Likewise.
38397         * modules/argz (Depends-on): Add strstr.
38398
38399 2009-06-17  Bruno Haible  <bruno@clisp.org>
38400
38401         * modules/posix_spawn-internal (Depends-on): Add errno.
38402
38403 2009-06-17  Bruno Haible  <bruno@clisp.org>
38404
38405         Define missing ESTALE on Interix 3.5.
38406         * lib/errno.in.h (ESTALE): Assign a value if missing.
38407         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38408         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38409         missing.
38410         * doc/posix-headers/errno.texi: Mention the Interix bug.
38411         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38412
38413 2009-06-15  Eric Blake  <ebb9@byu.net>
38414
38415         memchr, memchr2: add valgrind exception
38416         * lib/memchr.valgrind: New file.
38417         * lib/memchr2.valgrind: New file.
38418         * modules/memchr (Files): Distribute valgrind file.
38419         * modules/memchr2 (Files): Likewise.
38420
38421         docs: memchr is no longer obsolete
38422         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38423         * lib/string.in.h (memchr): Simplify logic.
38424
38425 2009-06-14  Jim Meyering  <meyering@redhat.com>
38426
38427         link-follow: fix the "checking..." message to not mention trailing slash
38428         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38429         never considered trailing slashes.
38430
38431 2009-06-14  Bruno Haible  <bruno@clisp.org>
38432
38433         * m4/memchr.m4: Mention also the bug on IA-64.
38434         * doc/posix-functions/memchr.texi: Likewise.
38435
38436 2009-06-12  Eric Blake  <ebb9@byu.net>
38437
38438         memchr: detect broken x86_64 and alpha implementations
38439         * modules/memchr-tests (Depends-on): Move mmap detection...
38440         * modules/memchr (Depends-on): ...here.
38441         (configure.ac): Set indicator.
38442         * lib/string.in.h (memchr): Declare replacement.
38443         * modules/string (Makefile.am): Trigger replacement.
38444         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38445         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38446         bugs.
38447         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38448         * modules/getpagesize (License): Relax license.
38449
38450 2009-06-11  Bruno Haible  <bruno@clisp.org>
38451
38452         * lib/idpriv.h: Add more references.
38453
38454 2009-06-08  Bruno Haible  <bruno@clisp.org>
38455
38456         Tests for module 'idpriv-droptemp'.
38457         * modules/idpriv-droptemp-tests: New file.
38458         * tests/test-idpriv-droptemp.sh: New file.
38459         * tests/test-idpriv-droptemp.su.sh: New file.
38460         * tests/test-idpriv-droptemp.c: New file.
38461
38462         New module 'idpriv-droptemp'.
38463         * lib/idpriv-droptemp.c: New file.
38464         * modules/idpriv-droptemp: New file.
38465
38466 2009-06-08  Bruno Haible  <bruno@clisp.org>
38467
38468         Tests for module 'idpriv-drop'.
38469         * modules/idpriv-drop-tests: New file.
38470         * tests/test-idpriv-drop.sh: New file.
38471         * tests/test-idpriv-drop.su.sh: New file.
38472         * tests/test-idpriv-drop.c: New file.
38473
38474         New module 'idpriv-drop'.
38475         * lib/idpriv.h: New file.
38476         * lib-idpriv-drop.c: New file.
38477         * m4/idpriv.m4: New file.
38478         * modules/idpriv-drop: New file.
38479
38480 2009-06-08  Bruno Haible  <bruno@clisp.org>
38481
38482         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38483         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38484         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38485         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38486         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38487         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38488         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38489
38490 2009-06-08  Eric Blake  <ebb9@byu.net>
38491
38492         test-strstr: use memory fence, when possible
38493         * tests/test-strstr.c (main): Use memory fence, in order to be
38494         more likely to trigger Debian bug 521737.
38495         * modules/strstr-tests (Files): Pull in additional files.
38496
38497         memchr: no longer obsolete, for wider field testing
38498         * modules/memchr (Status, Notice): Delete, this module is no
38499         longer obsolete.
38500         * modules/vasnprintf (Depends-on): Add memchr.
38501
38502 2009-06-07  Jim Meyering  <meyering@redhat.com>
38503
38504         hash: declare some functions with the warn_unused_result attribute
38505         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38506
38507 2009-06-07  Bruno Haible  <bruno@clisp.org>
38508
38509         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38510         Reported by Eric Blake.
38511
38512 2009-06-06  Eric Blake  <ebb9@byu.net>
38513
38514         test-alignof: fix typo with long double
38515         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38516         compiler error.
38517
38518 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38519
38520         Escape non-texinfo { and }s.
38521         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38522         markup error.
38523
38524 2009-06-04  Jim Meyering  <meyering@redhat.com>
38525
38526         gitlog-to-changelog: don't infloop on an empty commit log
38527         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38528         Reported by Boris Petersen <transacid@centerim.org>.
38529
38530 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38531
38532         version-etc: extend for packagers
38533         Add three new configure options, intended for packagers:
38534           --with-packager="packager name"
38535           --with-packager-version="packager-specific version"
38536           --with-packager-bug-reports="packager bug reporting"
38537         An example with coreutils:
38538           $ ./configure \
38539             --with-packager=Gentoo \
38540             --with-packager-bug-report=http://bugs.gentoo.org/ \
38541             --with-packager-version="patchset 1.6"
38542           $ ./src/ls --version | head -n2
38543           ls (GNU coreutils) 7.1-dirty
38544           Packaged by Gentoo (patchset 1.6)
38545         Note that the bug reporting info via --help doesn't show up because
38546         coreutils uses its own custom emit_bug_reporting_address() implementation
38547         in src/system.h.  If it didn't, it'd look like:
38548           $ ./src/ls --help | tail -n4
38549           Report bugs to <bug-coreutils@gnu.org>.
38550           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38551           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38552           General help using GNU software: <http://www.gnu.org/gethelp/>.
38553         * lib/version-etc.c: Print new information, if provided.
38554         * m4/version-etc.m4: New file.
38555         * modules/version-etc (Files): Add m4/version-etc.m4.
38556         (configure.ac): Add gl_VERSION_ETC.
38557
38558 2009-05-31  Bruno Haible  <bruno@clisp.org>
38559
38560         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38561         and 'int64_t'.
38562         * modules/alignof-tests (Dependencies): Add stdint.
38563         Reported by Eric Blake.
38564
38565 2009-05-31  Bruno Haible  <bruno@clisp.org>
38566
38567         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38568         restriction due to compiler bugs.
38569         Reported by Eric Blake.
38570
38571 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38572             Bruno Haible  <bruno@clisp.org>
38573
38574         Fix test-alignof failure.
38575         * lib/alignof.h (alignof_slot): New macro.
38576         (alignof_type): New macro, with the same semantics as the previous
38577         'alignof'.
38578         (alignof): Alias to alignof_slot.
38579         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38580         check that the results are usable as constant expressions.
38581
38582 2009-05-31  Bruno Haible  <bruno@clisp.org>
38583
38584         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38585         * tests/test-memchr.c (main): Check that memchr does not read past the
38586         first occurrence of the byte.
38587         * tests/test-strstr.c (main): Update comment.
38588         Suggested by Eric Blake.
38589
38590 2009-05-30  Bruno Haible  <bruno@clisp.org>
38591
38592         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38593         detail how to use dumpbin.
38594         Reported by David Byron <dbyron@dbyron.com>.
38595
38596 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38597
38598         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38599
38600 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38601
38602         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38603
38604 2009-05-28  Bruno Haible  <bruno@clisp.org>
38605
38606         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38607         build-aux/ files.
38608
38609 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38610
38611         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38612
38613 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38614
38615         * gnulib-tool (sed_transform_main_lib_file)
38616         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38617         regexps.
38618
38619 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38620
38621         * tests/test-strstr.c: Add another self-test.
38622         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38623         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38624
38625 2009-05-23  Bruno Haible  <bruno@clisp.org>
38626
38627         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38628         change.
38629
38630 2009-05-21  Bruno Haible  <bruno@clisp.org>
38631
38632         Simplify use of mode_t varargs.
38633         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38634         uses 'mode_t' or 'int'.
38635         * lib/openat.c (openat): Likewise.
38636         * lib/open-safer.c (open_safer): Likewise.
38637         * m4/mode_t.m4: New file.
38638         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38639         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38640         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38641         * modules/open (Files): Add m4/mode_t.m4.
38642         * modules/openat (Files): Likewise.
38643         * modules/fcntl-safer (Files): Likewise.
38644         Suggested by Eric Blake.
38645
38646 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38647
38648         * doc/glibc-functions/fallocate.texi: New file.
38649         * doc/gnulib.texi: Include it.
38650
38651 2009-05-21  Eric Blake  <ebb9@byu.net>
38652             Bruno Haible  <bruno@clisp.org>
38653
38654         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38655         invocations.
38656         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38657
38658 2009-05-21  Eric Blake  <ebb9@byu.net>
38659             Bruno Haible  <bruno@clisp.org>
38660
38661         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38662         include_next. Fix of 2008-11-20 commit.
38663         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38664         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38665         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38666         NEXT_MATH_H.
38667         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38668         instead of NEXT_MATH_H.
38669
38670 2009-05-21  Bruno Haible  <bruno@clisp.org>
38671
38672         Avoid redefinition warnings for SIZE_MAX.
38673         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38674         Reported by Simon Josefsson.
38675
38676 2009-05-21  Bruno Haible  <bruno@clisp.org>
38677
38678         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38679         AC_CACHE_VAL.
38680
38681 2009-05-20  Bruno Haible  <bruno@clisp.org>
38682
38683         Make zeroptr.h work on mingw.
38684         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38685         mprotect.
38686         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38687         * modules/memchr2-tests (configure.ac): Likewise.
38688         * modules/memcmp-tests (configure.ac): Likewise.
38689         * modules/memmem-tests (configure.ac): Likewise.
38690         * modules/memrchr-tests (configure.ac): Likewise.
38691         Reported by Simon Josefsson.
38692
38693 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38694
38695         * tests/test-glob.c: Include string.h for strcmp prototype.
38696
38697 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38698
38699         * modules/getdelim (Depends-on): Add explicit stdint, although it
38700         was implicitly already pulled in via realloc-posix.
38701         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38702
38703 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38704
38705         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38706         G. Christensen" <tgc@jupiterrise.com>.
38707         * m4/sys_socket_h.m4: Check for sa_family_t.
38708         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38709         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38710         * tests/test-sys_socket.c: Check that sa_family_t works.
38711
38712 2009-05-18  Eric Blake  <ebb9@byu.net>
38713
38714         maint.mk: allow gnulib_dir in VPATH build
38715         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38716
38717 2009-05-15  Jim Meyering  <meyering@redhat.com>
38718
38719         maint.mk: Give gnulib_dir a default definition.
38720         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38721         Thus, most packages no longer need to specify this variable in cfg.mk
38722
38723 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38724
38725         rename.m4: fix typos that would make non-mingw cross-configure fail
38726         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38727
38728 2009-05-13  Eric Blake  <ebb9@byu.net>
38729
38730         mmap-anon: avoid out-of-order autoconf expansion
38731         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38732         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38733         * modules/memchr-tests (Depends-on): Add extensions.
38734         * modules/memchr2-tests (Depends-on): Add extensions.
38735         * modules/memcmp-tests (Depends-on): Add extensions.
38736         * modules/memmem-tests (Depends-on): Add extensions.
38737         * modules/memrchr-tests (Depends-on): Add extensions.
38738
38739 2009-05-13  Bruno Haible  <bruno@clisp.org>
38740
38741         Make some tests ISO C 99 compliant.
38742         * tests/zerosize-ptr.h: New file.
38743         * tests/test-memchr.c: Include zerosize-ptr.h.
38744         (main): Use a zero-size object pointer instead of NULL.
38745         * tests/test-memchr2.c: Include zerosize-ptr.h.
38746         (main): Use a zero-size object pointer instead of NULL.
38747         * tests/test-memcmp.c: Include zerosize-ptr.h.
38748         (main): Use a zero-size object pointer instead of NULL.
38749         * tests/test-memmem.c: Include zerosize-ptr.h.
38750         (main): Use a zero-size object pointer instead of NULL.
38751         * tests/test-memrchr.c: Include zerosize-ptr.h.
38752         (main): Use a zero-size object pointer instead of NULL.
38753         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38754         m4/mmap-anon.m4.
38755         (Depends-on): Add getpagesize.
38756         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38757         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38758         m4/mmap-anon.m4.
38759         (Depends-on): Add getpagesize.
38760         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38761         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38762         m4/mmap-anon.m4.
38763         (Depends-on): Add getpagesize.
38764         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38765         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38766         m4/mmap-anon.m4.
38767         (Depends-on): Add getpagesize.
38768         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38769         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38770         m4/mmap-anon.m4.
38771         (Depends-on): Add getpagesize.
38772         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38773
38774 2009-05-12  Bruno Haible  <bruno@clisp.org>
38775
38776         Tests for module 'alignof'.
38777         * modules/alignof-tests: New file.
38778         * tests/test-alignof.c: New file.
38779
38780 2009-05-12  Bruno Haible  <bruno@clisp.org>
38781
38782         Fix alignof macro.
38783         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38784         vendor compilers that are always correct.
38785
38786 2009-05-12  Bruno Haible  <bruno@clisp.org>
38787
38788         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38789         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38790         not whether its fully works.
38791
38792 2009-05-12  Bruno Haible  <bruno@clisp.org>
38793
38794         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38795
38796 2009-05-12  Jim Meyering  <meyering@redhat.com>
38797
38798         * top/maint.mk: Adjust backslash alignment.
38799
38800 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38801
38802         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38803
38804 2009-05-11  Eric Blake  <ebb9@byu.net>
38805
38806         argp: avoid undefined behavior
38807         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38808         macros.
38809
38810 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38811
38812         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38813         user.name to prevent git commit from complaining.
38814
38815 2009-05-10  Bruno Haible  <bruno@clisp.org>
38816
38817         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38818         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38819         it rewrites every file name only once.
38820         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38821
38822 2009-05-08  Bruno Haible  <bruno@clisp.org>
38823
38824         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38825         instead of 'max'.
38826
38827 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38828
38829         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38830         sockaddr_storage test.
38831
38832 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38833
38834         * modules/sys_socket (Makefile.am): Substitute
38835         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38836         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38837         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38838         * tests/test-sys_socket.c: Check sockaddr_storage.
38839
38840 2009-05-08  Bruno Haible  <bruno@clisp.org>
38841
38842         New module 'alignof'.
38843         * lib/alignof.h: New file.
38844         * modules/alignof: New file.
38845
38846 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38847             Bruno Haible  <bruno@clisp.org>
38848
38849         Fix test-file-has-acl on FreeBSD.
38850         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38851         mask is implicitly added.
38852         * tests/test-file-has-acl.c: Include <signal.h>.
38853         (main): Terminate the test after 5 seconds.
38854         * modules/acl-tests (configure.ac): Check for alarm function.
38855
38856 2009-05-04  Bruno Haible  <bruno@clisp.org>
38857
38858         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38859         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38860         * modules/errno (configure.ac): Drop AC_REQUIRE.
38861         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38862         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38863
38864 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38865
38866         * modules/glob-tests: New module.
38867         * tests/test-glob.c: Add.
38868
38869 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38870
38871         * modules/fnmatch-tests: New module.
38872         * tests/test-fnmatch.c: Add.
38873
38874 2009-05-04  Eric Blake  <ebb9@byu.net>
38875
38876         maint: make the new no-submodule-changes rule VPATH-safe
38877         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38878
38879 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38880             Bruno Haible  <bruno@clisp.org>
38881
38882         acl: Fix infinite loop on FreeBSD.
38883         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38884         of return value from acl_get_entry.
38885         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38886         Likewise.
38887
38888 2009-05-03  Bruno Haible  <bruno@clisp.org>
38889
38890         * lib/acl-internal.h (acl_entries): Clarify return value.
38891         * lib/acl_entries.c (acl_entries): Likewise.
38892
38893 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38894
38895         Bug fix in acl module.
38896         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38897
38898 2009-05-03  Bruno Haible  <bruno@clisp.org>
38899
38900         Create gperf-generated file in the source dir, not in the build dir.
38901         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38902         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38903         * modules/unicase/locale-language (unicase/locale-languages.h):
38904         Likewise.
38905         * modules/unicase/special-casing (unicase/special-casing-table.h):
38906         Likewise.
38907         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38908         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38909         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38910         Reported by Ralf Wildenhues.
38911
38912 2009-05-03  Bruno Haible  <bruno@clisp.org>
38913
38914         * modules/fnmatch (Description, configure.ac): Taken from
38915         fnmatch-posix.
38916         * modules/fnmatch-posix: Turn into a symbolic reference to the
38917         'fnmatch' module, and deprecate.
38918         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38919
38920 2009-05-03  Bruno Haible  <bruno@clisp.org>
38921
38922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38923         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38924         Reported by Ralf Wildenhues.
38925
38926 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38927
38928         * m4/fnmatch.m4: Fix fnmatch re-define.
38929
38930 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38931
38932         priv-set: new module and tests; adapt write-any-file
38933         * lib/priv-set.c: New file.
38934         * lib/priv-set.h: New file.
38935         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38936         * lib/write-any-file.c: Simplify by using priv-set module.
38937         * m4/priv-set.m4: New file.
38938         * modules/priv-set: New file.
38939         * modules/unlinkdir: Add dependency on priv-set module.
38940         * modules/write-any-file: Likewise.
38941
38942         Tests for module 'priv-set'.
38943         * modules/priv-set-tests: New file.
38944         * tests/test-priv-set.c: New file.
38945
38946 2009-05-03  Jim Meyering  <meyering@redhat.com>
38947             Bruno Haible  <bruno@clisp.org>
38948
38949         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38950         use the converted UTF-8 variant of the name instead.
38951
38952 2009-05-03  Jim Meyering  <meyering@redhat.com>
38953
38954         tests: tighten some getdate tests
38955         * tests/test-getdate.c (main): Tighten tests: require equality,
38956         not just greater than.  Set TZ envvar to UTC0.
38957
38958 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38959
38960         getdate: correctly interpret "next monday" when run on a Monday
38961         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38962         that e.g., "next tues" (when run on a tuesday) results in a date
38963         that is one week in the future, and not today's date.
38964         I.e., add a week when the wday is the same as the current one.
38965         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38966         and earlier by Martin Bernreuther and Jan Minář.
38967         * tests/test-getdate.c (main): Check that "next DAY" is always in
38968         the future and that "last DAY" is always in the past.
38969
38970 2009-05-02  Jim Meyering  <meyering@redhat.com>
38971
38972         build: ensure that a release build fails when a submodule is unclean
38973         * top/maint.mk (no-submodule-changes): New rule.
38974         (alpha beta major): Depend on it.
38975
38976 2009-05-02  Bruno Haible  <bruno@clisp.org>
38977
38978         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38979         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38980         shell variable gl_fnmatch_required to detect which variant is
38981         requested.
38982         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38983         gl_FUNC_FNMATCH_POSIX.
38984         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38985         exclude fnmatch-posix.
38986
38987 2009-05-02  Bruno Haible  <bruno@clisp.org>
38988
38989         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38990         * modules/mbsrtowcs (License): Change to LGPLv2+.
38991         * modules/strnlen1 (License): Likewise.
38992         Reported by Simon Josefsson.
38993
38994 2009-05-02  Bruno Haible  <bruno@clisp.org>
38995
38996         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38997         "cross".
38998         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38999         gnulib-tool was called with option --source-base=lib.
39000
39001 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39002
39003         Use automake *-local hooks without commands, for extensibility.
39004         * modules/localcharset (Makefile.am): Rename install-exec-local
39005         rule to install-exec-localcharset, and make it a prerequisite of
39006         install-exec-local.  Likewise, rename the uninstall-local rule to
39007         uninstall-localcharset, and make it a prerequisite of the former.
39008
39009 2009-05-01  Bruno Haible  <bruno@clisp.org>
39010
39011         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39012         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39013         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39014         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39015         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39016         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39017         m4/locale-zh.m4, m4/codeset.m4.
39018
39019         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39020         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39021         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39022         m4/locale-zh.m4.
39023
39024         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39025         REPLACE_WCRTOMB if mbstate_t must be replaced.
39026         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39027         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39028
39029 2009-05-01  Bruno Haible  <bruno@clisp.org>
39030
39031         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39032         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39033         dngettext, dcngettext, textdomain, bindtextdomain,
39034         bind_textdomain_codeset): Undefine before redefining.
39035
39036 2009-04-30  Bruno Haible  <bruno@clisp.org>
39037
39038         Fix bug introduced on 2009-04-25.
39039         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39040         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39041         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39042         is defined.
39043         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39044         is defined.
39045         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39046         is defined.
39047         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39048
39049 2009-04-28  Bruno Haible  <bruno@clisp.org>
39050
39051         Comment tweaks.
39052         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39053         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39054         * lib/unicase.h (u*_casexfrm): Likewise.
39055         Reported by Paolo Bonzini.
39056
39057 2009-04-28  Bruno Haible  <bruno@clisp.org>
39058
39059         Fix a compilation error.
39060         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39061         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39062         Reported by Jim Meyering.
39063
39064 2009-04-27  Bruno Haible  <bruno@clisp.org>
39065
39066         New module 'libunistring'.
39067         * modules/libunistring: New file.
39068         * m4/libunistring.m4: New file.
39069         * MODULES.html.sh (Unicode string functions): Add it.
39070
39071 2009-04-27  Eric Blake  <ebb9@byu.net>
39072
39073         maint.mk: allow package-specific header to provide <config.h>
39074         * top/maint.mk (sc_require_config_h): New variable.
39075         (sc_require_config_h, sc_require_config_h_first): Use it.
39076
39077 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39078
39079         * top/maint.mk (sc_avoid_if_before_free): Except
39080         useless-if-before-free script.
39081
39082 2009-04-27  Eric Blake  <ebb9@byu.net>
39083
39084         maintainer-makefile: depend on all required helper scripts
39085         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39086         useless-if-before-free.
39087         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39088         version, rather than assuming gnulib checkout is available.
39089         Reported by Simen Josefsson.
39090
39091 2009-04-26  Bruno Haible  <bruno@clisp.org>
39092
39093         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39094         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39095         "../" or "..".
39096
39097 2009-04-26  Bruno Haible  <bruno@clisp.org>
39098
39099         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39100         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39101         AC_LIB_HAVE_LINKFLAGS.
39102
39103 2009-04-26  Bruno Haible  <bruno@clisp.org>
39104
39105         Simplify calling convention of u*_conv_from_encoding.
39106         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39107         u32_conv_from_encoding): Expect a resultbuf argument and return the
39108         result directly as a pointer.
39109         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39110         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39111         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39112         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39113         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39114         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39115         Update.
39116         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39117         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39118         * lib/vasnprintf.c (VASNPRINTF): Update.
39119         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39120         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39121         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39122         * NEWS: Mention the change.
39123
39124 2009-04-26  Bruno Haible  <bruno@clisp.org>
39125
39126         Simplify calling convention of u*_conv_to_encoding.
39127         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39128         u32_conv_to_encoding): Expect a resultbuf argument and return the
39129         result directly as a pointer.
39130         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39131         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39132         freeing scaled_offsets if mem_iconveha failed.
39133         * lib/unicase/u-casexfrm.h (FUNC): Update.
39134         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39135         * lib/vasnprintf.c (VASNPRINTF): Update.
39136         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39137         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39138         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39139         * NEWS: Mention the change.
39140
39141 2009-04-26  Bruno Haible  <bruno@clisp.org>
39142
39143         Avoid test failures on AIX and OSF/1.
39144         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39145         malloc(0).
39146         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39147         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39148         Likewise.
39149         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39150         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39151         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39152         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39153         * doc/posix-functions/malloc.texi: Document the portability problem
39154         related to malloc(0).
39155
39156 2009-04-26  Bruno Haible  <bruno@clisp.org>
39157
39158         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39159         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39160         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39161
39162 2009-04-25  Bruno Haible  <bruno@clisp.org>
39163
39164         Avoid link error when creating a namespace clean library.
39165         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39166         as macro with arguments if already defined as an alias.
39167         * lib/signbitf.c (gl_signbitf): Don't undefine.
39168         * lib/signbitd.c (gl_signbitd): Don't undefine.
39169         * lib/signbitl.c (gl_signbitl): Don't undefine.
39170
39171 2009-04-25  Jim Meyering  <meyering@redhat.com>
39172
39173         vc-list-files: fix another quoting bug
39174         * build-aux/vc-list-files: Avoid sed backslash expansion
39175         of pathological directory names.
39176
39177 2009-04-25  Eric Blake  <ebb9@byu.net>
39178
39179         vc-list-files: fix shell quoting error
39180         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39181         timestamp.
39182
39183 2009-04-25  Jim Meyering  <meyering@redhat.com>
39184
39185         vc-list-files: restore lost functionality with subdir argument
39186         * build-aux/vc-list-files: When given a non-"." sub-directory
39187         argument, substitute the $dir/ prefix back onto each resulting name.
39188         Otherwise, coreutils' root_tests check would fail.
39189
39190 2009-04-24  Eric Blake  <ebb9@byu.net>
39191
39192         vc-list-files: ignore git symlinks
39193         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39194         than ls-files, to ignore git symlinks.
39195
39196         maint.mk: import improvements from m4
39197         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39198         (move_if_change): Delete unused macro.
39199         (news-date-check, vc-diff-check): Support VPATH builds.
39200         (announcement): Likewise.  Split --bootstrap-tools list...
39201         (boostrap-tools): ...into separate list, which can be overridden
39202         in cfg.mk.
39203         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39204         requiring dependency on useless-if-before-free module.
39205         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39206         Support VPATH builds.
39207
39208 2009-04-24  Jim Meyering  <meyering@redhat.com>
39209
39210         maint.mk: remove coreutils-specific rules and variables
39211         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39212         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39213         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39214
39215         maint.mk: remove obsolete rule
39216         * top/maint.mk (rel-check): Remove rule.
39217         (WGET, WGETFLAGS): Remove now-unused variables.
39218
39219 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39220
39221         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39222         consistency.
39223
39224         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39225         '$(PATH_SEPARATOR)' instead of ':'.
39226
39227 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39228
39229         * lib/getopt1.c (main): Use 'const' for static array.
39230
39231 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39232
39233         * top/maint.mk: Sync with coreutils.
39234         * NEWS: Explain incompatibilities.
39235
39236 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39237             Bruno Haible  <bruno@clisp.org>
39238
39239         Fix cross-compilation results.
39240         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39241         statement, as third argument of AC_TRY_RUN.
39242         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39243         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39244         Likewise.
39245         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39246         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39247         Likewise.
39248         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39249         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39250         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39251
39252 2009-04-20  Bruno Haible  <bruno@clisp.org>
39253
39254         Avoid test failure on mingw.
39255         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39256
39257 2009-04-20  Bruno Haible  <bruno@clisp.org>
39258
39259         Avoid compilation error on mingw.
39260         * modules/localename-tests (Depends-on): Add locale.
39261
39262 2009-04-19  Bruno Haible  <bruno@clisp.org>
39263
39264         Support for building a shared library on Windows platforms.
39265         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39266         (main): Test the presence of UNINORM_NFC here.
39267         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39268         (main): Test the presence of UNINORM_NFD here.
39269         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39270         (main): Test the presence of UNINORM_NFKC here.
39271         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39272         (main): Test the presence of UNINORM_NFKD here.
39273
39274 2009-04-19  Bruno Haible  <bruno@clisp.org>
39275
39276         Avoid a compiler warning.
39277         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39278         Change type of variable 'sequence'.
39279
39280 2009-04-19  Bruno Haible  <bruno@clisp.org>
39281
39282         * modules/configmake (Makefile.am): When the contents of configmake.h
39283         does not change, arrange to preserve its modification time.
39284
39285 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39286
39287         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39288         gettext domain.
39289
39290 2009-04-16  Jim Meyering  <meyering@redhat.com>
39291
39292         useless-if-before-free: improve conversion code
39293         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39294         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39295
39296 2009-04-14  Bruno Haible  <bruno@clisp.org>
39297
39298         * modules/fcntl (Depends-on): Add extensions.
39299         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39300
39301 2009-04-12  Ben Pfaff  <blp@gnu.org>
39302
39303         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39304         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39305
39306 2009-03-20  Ben Pfaff  <blp@gnu.org>
39307
39308         Make rename replace existing destinations on Windows.
39309         * m4/rename.m4: Add test for Mingw.
39310         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39311         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39312         * doc/posix-functions/rename.texi: Document.
39313
39314 2009-04-10  Bruno Haible  <bruno@clisp.org>
39315
39316         New include file "iconveh.h".
39317         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39318         * lib/striconveh.h: Include it.
39319         (enum iconv_ilseq_handler): Remove definition.
39320         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39321         striconveh.h.
39322         * lib/striconveha.c: Include striconveh.h.
39323         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39324         * modules/striconveh (Files): Add lib/iconveh.h.
39325         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39326         lib/striconveh.h.
39327
39328 2009-04-10  Bruno Haible  <bruno@clisp.org>
39329
39330         * lib/uniconv.h: Update comment.
39331
39332 2009-04-10  Bruno Haible  <bruno@clisp.org>
39333
39334         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39335         always.
39336         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39337         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39338         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39339         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39340         "unistring-notinline.h", so that the function gets defined always.
39341         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39342         * lib/unistr/u8-uctomb.c: Likewise.
39343         * lib/unistr/u16-mbtouc.c: Likewise.
39344         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39345         * lib/unistr/u16-uctomb.c: Likewise.
39346         * lib/unistr/u32-mbtouc.c: Likewise.
39347         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39348         * lib/unistr/u32-uctomb.c: Likewise.
39349
39350 2009-04-10  Bruno Haible  <bruno@clisp.org>
39351
39352         Mark 'utime' obsolete.
39353         * modules/utime (Status, Notice): New sections.
39354         Suggested by Jim Meyering.
39355
39356         Fix cross-compile guess for utime test.
39357         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39358         autoconf.
39359         * doc/posix-functions/utime.texi: Give more precisions.
39360         Reported by Jan <ipif@ymail.com>.
39361
39362 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39363
39364         filevercmp: correct today's change
39365         * lib/filevercmp.c: Also handle coreutils' test inputs.
39366         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39367
39368         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39369         for reporting it.
39370         * lib/filevercmp.c: Special handle for "", "." and "..".
39371         * tests/test-filevercmp.c: Enlarge the set suite.
39372
39373 2009-04-07  Jim Meyering  <meyering@redhat.com>
39374
39375         useless-if-before-free: show how to remove braced useless free, too
39376         * build-aux/useless-if-before-free: still only in a comment, though.
39377
39378 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39379
39380         maint.mk: import changes to syntax-check macros from coreutils
39381         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39382         Use them in the relevant macros.
39383
39384 2009-04-06  Bruno Haible  <bruno@clisp.org>
39385
39386         Fix unportable use of bit-fields.
39387         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39388         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39389         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39390
39391 2009-04-06  Bruno Haible  <bruno@clisp.org>
39392
39393         Avoid test failures on AIX and OSF/1.
39394         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39395         that malloc(0) = NULL.
39396         * tests/unicase/test-u8-tolower.c (check): Likewise.
39397         * tests/unicase/test-u8-totitle.c (check): Likewise.
39398         * tests/unicase/test-u8-toupper.c (check): Likewise.
39399         * tests/unicase/test-u16-casefold.c (check): Likewise.
39400         * tests/unicase/test-u16-tolower.c (check): Likewise.
39401         * tests/unicase/test-u16-totitle.c (check): Likewise.
39402         * tests/unicase/test-u16-toupper.c (check): Likewise.
39403         * tests/unicase/test-u32-casefold.c (check): Likewise.
39404         * tests/unicase/test-u32-tolower.c (check): Likewise.
39405         * tests/unicase/test-u32-totitle.c (check): Likewise.
39406         * tests/unicase/test-u32-toupper.c (check): Likewise.
39407         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39408         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39409         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39410         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39411         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39412         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39413         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39414         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39415         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39416         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39417         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39418         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39419
39420 2009-04-05  Bruno Haible  <bruno@clisp.org>
39421
39422         Work around an autoconf limitation.
39423         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39424         comment line if it would be longer than 3 KB.
39425
39426 2009-04-05  Bruno Haible  <bruno@clisp.org>
39427
39428         Avoid test failure with libiconv-1.13.
39429         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39430         of the expected test results.
39431
39432 2009-04-05  Bruno Haible  <bruno@clisp.org>
39433
39434         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39435         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39436         that it should be installed.
39437
39438 2009-04-05  Bruno Haible  <bruno@clisp.org>
39439
39440         * gnulib-tool: New option --copy-file.
39441         (func_usage): Document it.
39442         (func_dest_tmpfilename): Moved out of func_import.
39443         (func_add_file, func_update_file): New functions, extracted from
39444         func_import.
39445         (func_import): Update.
39446
39447 2009-04-05  Karl Berry  <karl@gnu.org>
39448
39449         * README: prominently mention gnulib-tool.
39450         Rearrange sections so getting the code is near the top.
39451
39452 2009-04-05  Bruno Haible  <bruno@clisp.org>
39453
39454         * lib/unicase.h: Mention u*_cmp2.
39455         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39456         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39457         * lib/unicase/ulc-casecmp.c: Likewise.
39458         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39459         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39460         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39461         unistr/u8-cmp.
39462         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39463         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39464         unistr/u16-cmp.
39465         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39466         unistr/u32-cmp.
39467
39468         * lib/uninorm.h: Mention u*_cmp2.
39469         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39470         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39471         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39472         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39473         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39474         unistr/u8-cmp.
39475         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39476         unistr/u16-cmp.
39477         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39478         unistr/u32-cmp.
39479
39480         New module 'unistr/u32-cmp2'.
39481         * lib/unistr/u32-cmp2.c: New file.
39482         * modules/unistr/u32-cmp2: New file.
39483
39484         New module 'unistr/u16-cmp2'.
39485         * lib/unistr/u16-cmp2.c: New file.
39486         * modules/unistr/u16-cmp2: New file.
39487
39488         New module 'unistr/u8-cmp2'.
39489         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39490         * lib/unistr/u8-cmp2.c: New file.
39491         * lib/unistr/u-cmp2.h: New file.
39492         * modules/unistr/u8-cmp2: New file.
39493
39494 2009-04-05  Bruno Haible  <bruno@clisp.org>
39495
39496         * lib/unictype.h (uc_property_is_valid): New macro.
39497         * tests/unictype/test-pr_byname.c (main): Use it.
39498
39499         * lib/unistr.h: Doc fixes.
39500         * lib/uniconv.h: Doc fixes.
39501         * lib/unictype.h: Doc fixes.
39502
39503 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39504
39505         Port coreutils 7.2 to Solaris 8.
39506
39507         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39508         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39509         for Solaris 8.  This is a bit of a hack, as it means it's the
39510         caller's responsibility to add -lnsl if needed, but most likely it
39511         won't be needed since only getaddrinfo uses this and getaddrinfo
39512         isn't needed on Solaris 8.
39513
39514         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39515         problem to Solaris 8 encountered with coreutils 7.2, which
39516         resulted in a message "fnmatch.c:292: warning: passing argument 4
39517         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39518         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39519
39520 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39521
39522         * m4/ld-version-script.m4: Add FIXME comment.
39523
39524 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39525
39526         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39527         SOVERSION variable.
39528
39529 2009-04-02  Bruno Haible  <bruno@clisp.org>
39530
39531         * Makefile (info, html, dvi, pdf): Combine the rules.
39532         Suggested by Jim Meyering.
39533
39534 2009-04-01  Bruno Haible  <bruno@clisp.org>
39535
39536         * Makefile (info, html, dvi, pdf): New targets.
39537         Reported by Reuben Thomas <rrt@sc3d.org>.
39538
39539 2009-04-01  Bruno Haible  <bruno@clisp.org>
39540
39541         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39542         can be put into PATH.
39543         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39544
39545 2009-04-01  Bruno Haible  <bruno@clisp.org>
39546
39547         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39548
39549 2009-04-01  Bruno Haible  <bruno@clisp.org>
39550
39551         Rename module 'visibility'.
39552         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39553         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39554         * doc/gnulib.texi: Update.
39555         * MODULES.html.sh (Misc): Update.
39556         * NEWS: Mention the change.
39557
39558 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39559
39560         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39561         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39562         Eric Blake <ebb9@byu.net> for review.
39563         * MODULES.html.sh: Add lib-msvc-compat.
39564         * doc/gnulib.texi: Link to new section.
39565         * m4/ld-output-def.m4: New file.
39566         * doc/ld-output-def.texi: New file.
39567
39568 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39569
39570         Rename ld-version-script to lib-symbol-versions.  Suggested by
39571         Bruno Haible <bruno@clisp.org>.
39572         * modules/ld-version-script: Renamed to lib-symbol-versions.
39573         * doc/ld-version-script.texi: Fix module name.
39574         * MODULES.html.sh: Add lib-symbol-versions.
39575
39576 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39577
39578         * modules/u64-tests: New file.
39579         * tests/test-u64.c: New file.
39580
39581 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39582
39583         * MODULES.html.sh: Mention u64.
39584         * modules/u64: New module.
39585         * modules/crypto/sha512: Depend on u64 module instead of providing
39586         u64.h.
39587
39588 2009-03-27  Eric Blake  <ebb9@byu.net>
39589
39590         test-strerror: make debugging EAI_SYSTEM easier
39591         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39592         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39593         failure was EAI_SYSTEM.
39594
39595 2009-03-25  Bruno Haible  <bruno@clisp.org>
39596
39597         Fix a problem with --enable-relocatable on Solaris 7.
39598         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39599         since 2008-02-24.
39600
39601 2009-03-25  Eric Blake  <ebb9@byu.net>
39602
39603         test-sockets: avoid gcc warning
39604         * tests/test-sockets.c (main): Silence compiler warning.
39605
39606 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39607
39608         New modules nproc, pthread, contributed by Glen Lenker.
39609
39610         * MODULES.html.sh: Add pthread, nproc.
39611         * lib/nproc.c: New file.
39612         * lib/nproc.h: New file.
39613         * lib/pthread.in.h: New file.
39614         * m4/pthread.m4: New file.
39615         * modules/nproc: New file.
39616         * modules/pthread: New file.
39617
39618 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39619
39620         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39621         New variable.
39622
39623 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39624
39625         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39626         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39627         * tests/test-filevercmp.c: Add tests for backup suffixes.
39628
39629 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39630
39631         * modules/stdlib (Depends-on): Add stdint, needed when defining
39632         struct random_data on, for example, HP-UX 10.20.  Reported by
39633         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39634
39635 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39636
39637         * lib/readline.c (readline): Call fflush on stdout after printing
39638         prompt.
39639
39640 2009-03-20  Bruno Haible  <bruno@clisp.org>
39641
39642         Remove dependency from 'close' module to -lws2_32 on native Windows.
39643         * lib/close-hook.h: New file.
39644         * lib/close-hook.c: New file.
39645         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39646         w32sock.h.
39647         (_gl_close_fd_maybe_socket): Remove function.
39648         (rpl_close): Invoke execute_all_close_hooks instead of
39649         _gl_close_fd_maybe_socket.
39650         * lib/sockets.c: Include close-hook.h, w32sock.h.
39651         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39652         (close_sockets_hook): New variable.
39653         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39654         (gl_sockets_cleanup): Unregister it.
39655         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39656         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39657         * modules/close-hook: New file.
39658         * modules/close (Files): Remove lib/w32sock.h.
39659         (Depends-on): Add close-hook.
39660         (Link): Remove section.
39661         * modules/sockets (Files): Add lib/w32sock.h.
39662         (Depends-on): Add close-hook.
39663         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39664         invocation.
39665         * NEWS: Mention that LIB_CLOSE is gone.
39666
39667 2009-03-23  Eric Blake  <ebb9@byu.net>
39668
39669         signal-tests: test previous patch
39670         * tests/test-signal.c: New file.
39671         * modules/signal-tests: Likewise.
39672
39673         signal.h: always support 'volatile sig_atomic_t'
39674         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39675         (gl_SIGNAL_H_DEFAULTS): Add a default.
39676         * modules/signal (Makefile.am): Substitute if needed.
39677         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39678         users can blindly add volatile.
39679         * doc/posix-headers/signal.texi (signal.h): Document it.
39680         Reported by Matthew Woehlke.
39681
39682 2009-03-23  Jim Meyering  <meyering@redhat.com>
39683
39684         pathmax: PATH_MAX: use pathconf only when available
39685         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39686         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39687         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39688         This avoids a link failure in a PSP cross-compilation environment
39689         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39690
39691         * lib/vasnprintf.c (divide): Fix typo in comment.
39692
39693 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39694
39695         * gnulib-tool (func_filter_filelist): Fix comment.
39696
39697 2009-03-20  Bruno Haible  <bruno@clisp.org>
39698
39699         Make sockets.h self-contained.
39700         * lib/sockets.c: Include sockets.h first.
39701         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39702
39703 2009-03-19  Eric Blake  <ebb9@byu.net>
39704
39705         doc: mention more functions added in cygwin 1.7.0
39706         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39707         addition.
39708         * doc/posix-functions/log2f.texi: Likewise.
39709
39710 2009-03-19  Jim Meyering  <meyering@redhat.com>
39711
39712         fsusage: avoid syntax error due to statement-before-declaration
39713         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39714         after all declarations.  Reported by Matthew Woehlke in
39715         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39716
39717 2009-03-18  Eric Blake  <ebb9@byu.net>
39718
39719         build-aux/compile: sync from automake
39720         * build-aux/compile: New file, from automake.
39721         * config/srclist.txt: Mention build-aux/compile.
39722
39723 2009-03-17  Bruno Haible  <bruno@clisp.org>
39724
39725         * lib/git-merge-changelog.c: Fix typo in comment.
39726         Reported by Reuben Thomas <rrt@sc3d.org>.
39727
39728 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39729
39730         * m4/regex.m4: update and improve help for
39731         --without-included-regex.
39732
39733 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39734
39735         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39736         failure on missing include files.
39737
39738 2009-03-17  Eric Blake  <ebb9@byu.net>
39739
39740         doc: mention more functions added in cygwin 1.7.0
39741         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39742         addition.
39743         * doc/posix-functions/fwscanf.texi: Likewise.
39744         * doc/posix-functions/swprintf.texi: Likewise.
39745         * doc/posix-functions/swscanf.texi: Likewise.
39746         * doc/posix-functions/vfwprintf.texi: Likewise.
39747         * doc/posix-functions/vfwscanf.texi: Likewise.
39748         * doc/posix-functions/vswprintf.texi: Likewise.
39749         * doc/posix-functions/vswscanf.texi: Likewise.
39750         * doc/posix-functions/vwprintf.texi: Likewise.
39751         * doc/posix-functions/vwscanf.texi: Likewise.
39752         * doc/posix-functions/wcscasecmp.texi: Likewise.
39753         * doc/posix-functions/wcsdup.texi: Likewise.
39754         * doc/posix-functions/wcsftime.texi: Likewise.
39755         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39756         * doc/posix-functions/wprintf.texi: Likewise.
39757         * doc/posix-functions/wscanf.texi: Likewise.
39758         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39759
39760 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39761
39762         maint.mk: really add $(AM_MAKEFLAGS)
39763         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39764         was inadvertently omitted in the last commit.
39765         Spotted by Bruno Haible.
39766
39767         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39768         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39769         $(AM_MAKEFLAGS)' rather than plain `make'.
39770
39771         gnulib-tool: execute $MAKE not make
39772         * gnulib-tool: Default $MAKE to 'make'.
39773         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39774         than make.  Initialize $MAKE in the do-autobuild script.
39775
39776         gnulib-tool: use $MAKE not make in generated files
39777         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39778         make, in generated files.  Initialize $MAKE in the do-autobuild
39779         script.
39780
39781         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39782
39783         GNUmakefile: disable parallelism only for multiple, recursive targets
39784         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39785         additions in the Makefile.
39786         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39787         by Automake.
39788         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39789         are listed on the command line and at least one of them is
39790         listed in $(ALL_RECURSIVE_TARGETS).
39791
39792 2009-03-14  Bruno Haible  <bruno@clisp.org>
39793
39794         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39795         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39796         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39797         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39798         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39799         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39800         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39801         unistr/u8-uctomb.
39802         * modules/unistr/u8-strchr (Depends-on): Likewise.
39803         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39804         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39805         unistr/u16-uctomb.
39806         * modules/unistr/u16-strchr (Depends-on): Likewise.
39807         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39808
39809 2009-03-12  Bruno Haible  <bruno@clisp.org>
39810
39811         Work around select() bug on Interix 3.5.
39812         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39813         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39814         * m4/select.m4: New file.
39815         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39816         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39817         * modules/select (Files): Add m4/select.m4.
39818         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39819         * modules/nanosleep (Depends-on): Add select.
39820         * modules/poll (Depends-on): Likewise.
39821         * doc/posix-functions/select.texi: Mention the Interix bug.
39822         Reported by Markus Duft <mduft@gentoo.org>.
39823
39824         * lib/select.c: Renamed from lib/winsock-select.c.
39825         * modules/select (Files): Add lib/select.c, remove
39826         lib/winsock-select.c.
39827         (configure.ac): Update.
39828
39829 2009-03-12  Jim Meyering  <meyering@redhat.com>
39830
39831         avoid gcc warnings about unused macro definitions
39832         * lib/readtokens.c (STREQ): Remove unused definition.
39833         * lib/xmalloc.c (SIZE_MAX): Likewise.
39834         * lib/openat-die.c (N_): Likewise.
39835         * lib/mountlist.c (SIZE_MAX): Remove definition.
39836         Instead, include <stdint.h>.
39837         * lib/readutmp.c: Likewise.
39838         * modules/readutmp (Depends-on): Add stdint.
39839         * modules/mountlist (Depends-on): Add stdint.
39840         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39841
39842 2009-03-10  Bruno Haible  <bruno@clisp.org>
39843
39844         Tests for module 'mbmemcasecoll'.
39845         * modules/mbmemcasecoll-tests: New file.
39846         * tests/test-mbmemcasecoll1.sh: New file.
39847         * tests/test-mbmemcasecoll2.sh: New file.
39848         * tests/test-mbmemcasecoll3.sh: New file.
39849         * tests/test-mbmemcasecoll.c: New file.
39850
39851         New module 'mbmemcasecoll'.
39852         * lib/mbmemcasecoll.h: New file.
39853         * lib/mbmemcasecoll.c: New file.
39854         * modules/mbmemcasecoll: New file.
39855
39856         * tests/test-mbmemcasecmp.h: New file, extracted from
39857         tests/test-mbmemcasecmp.c.
39858         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39859         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39860         (main): Update.
39861         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39862
39863 2009-03-09  Bruno Haible  <bruno@clisp.org>
39864
39865         Tests for module 'mbmemcasecmp'.
39866         * modules/mbmemcasecmp-tests: New file.
39867         * tests/test-mbmemcasecmp1.sh: New file.
39868         * tests/test-mbmemcasecmp2.sh: New file.
39869         * tests/test-mbmemcasecmp3.sh: New file.
39870         * tests/test-mbmemcasecmp.c: New file.
39871
39872         New module 'mbmemcasecmp'.
39873         * lib/mbmemcasecmp.h: New file.
39874         * lib/mbmemcasecmp.c: New file.
39875         * modules/mbmemcasecmp: New file.
39876
39877 2009-03-09  Bruno Haible  <bruno@clisp.org>
39878
39879         Tests for module 'unicase/ulc-casecoll'.
39880         * modules/unicase/ulc-casecoll-tests: New file.
39881         * tests/unicase/test-ulc-casecoll1.sh: New file.
39882         * tests/unicase/test-ulc-casecoll2.sh: New file.
39883         * tests/unicase/test-ulc-casecoll.c: New file.
39884
39885         New module 'unicase/ulc-casecoll'.
39886         * lib/unicase.h (ulc_casecoll): New declaration.
39887         * lib/unicase/ulc-casecoll.c: New file.
39888         * modules/unicase/ulc-casecoll: New file.
39889
39890         New module 'unicase/ulc-casexfrm'.
39891         * lib/unicase.h (ulc_casexfrm): New declaration.
39892         * lib/unicase/ulc-casexfrm.c: New file.
39893         * modules/unicase/ulc-casexfrm: New file.
39894
39895 2009-03-09  Bruno Haible  <bruno@clisp.org>
39896
39897         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39898         invocations.
39899
39900         * m4/mbscasecmp.m4: Remove file.
39901         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39902         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39903
39904         * m4/mbscasestr.m4: Remove file.
39905         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39906         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39907
39908         * m4/mbschr.m4: Remove file.
39909         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39910         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39911
39912         * m4/mbscspn.m4: Remove file.
39913         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39914         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39915
39916         * m4/mbslen.m4: Remove file.
39917         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39918         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39919
39920         * m4/mbsncasecmp.m4: Remove file.
39921         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39922         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39923
39924         * m4/mbsnlen.m4: Remove file.
39925         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39926         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39927
39928         * m4/mbspbrk.m4: Remove file.
39929         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39930         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39931
39932         * m4/mbspcasecmp.m4: Remove file.
39933         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39934         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39935
39936         * m4/mbsrchr.m4: Remove file.
39937         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39938         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39939
39940         * m4/mbssep.m4: Remove file.
39941         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39942         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39943
39944         * m4/mbsspn.m4: Remove file.
39945         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39946         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39947
39948         * m4/mbsstr.m4: Remove file.
39949         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39950         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39951
39952         * m4/mbstok_r.m4: Remove file.
39953         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39954         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39955
39956         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39957
39958         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39959         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39960
39961         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39962
39963 2009-03-08  Bruno Haible  <bruno@clisp.org>
39964
39965         Tests for module 'unicase/ulc-casecmp'.
39966         * modules/unicase/ulc-casecmp-tests: New file.
39967         * tests/unicase/test-ulc-casecmp1.sh: New file.
39968         * tests/unicase/test-ulc-casecmp2.sh: New file.
39969         * tests/unicase/test-ulc-casecmp.c: New file.
39970
39971         New module 'unicase/ulc-casecmp'.
39972         * lib/unicase.h (ulc_casecmp): New declaration.
39973         * lib/unicase/ulc-casecmp.c: New file.
39974         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39975         'const SRC_UNIT *'.
39976         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39977         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39978         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39979         * modules/unicase/ulc-casecmp: New file.
39980
39981         Tests for module 'unicase/u32-is-cased'.
39982         * modules/unicase/u32-is-cased-tests: New file.
39983         * tests/unicase/test-u32-is-cased.c: New file.
39984
39985         Tests for module 'unicase/u16-is-cased'.
39986         * modules/unicase/u16-is-cased-tests: New file.
39987         * tests/unicase/test-u16-is-cased.c: New file.
39988
39989         Tests for module 'unicase/u8-is-cased'.
39990         * modules/unicase/u8-is-cased-tests: New file.
39991         * tests/unicase/test-u8-is-cased.c: New file.
39992         * tests/unicase/test-is-cased.h: New file.
39993
39994         New module 'unicase/u32-is-cased'.
39995         * lib/unicase/u32-is-cased.c: New file.
39996         * modules/unicase/u32-is-cased: New file.
39997
39998         New module 'unicase/u16-is-cased'.
39999         * lib/unicase/u16-is-cased.c: New file.
40000         * modules/unicase/u16-is-cased: New file.
40001
40002         New module 'unicase/u8-is-cased'.
40003         * lib/unicase/u8-is-cased.c: New file.
40004         * lib/unicase/u-is-cased.h: New file.
40005         * modules/unicase/u8-is-cased: New file.
40006
40007         Tests for module 'unicase/u32-is-casefolded'.
40008         * modules/unicase/u32-is-casefolded-tests: New file.
40009         * tests/unicase/test-u32-is-casefolded.c: New file.
40010
40011         Tests for module 'unicase/u16-is-casefolded'.
40012         * modules/unicase/u16-is-casefolded-tests: New file.
40013         * tests/unicase/test-u16-is-casefolded.c: New file.
40014
40015         Tests for module 'unicase/u8-is-casefolded'.
40016         * modules/unicase/u8-is-casefolded-tests: New file.
40017         * tests/unicase/test-u8-is-casefolded.c: New file.
40018         * tests/unicase/test-is-casefolded.h: New file.
40019
40020         New module 'unicase/u32-is-casefolded'.
40021         * lib/unicase/u32-is-casefolded.c: New file.
40022         * modules/unicase/u32-is-casefolded: New file.
40023
40024         New module 'unicase/u16-is-casefolded'.
40025         * lib/unicase/u16-is-casefolded.c: New file.
40026         * modules/unicase/u16-is-casefolded: New file.
40027
40028         New module 'unicase/u8-is-casefolded'.
40029         * lib/unicase/u8-is-casefolded.c: New file.
40030         * modules/unicase/u8-is-casefolded: New file.
40031
40032         Tests for module 'unicase/u32-is-titlecase'.
40033         * modules/unicase/u32-is-titlecase-tests: New file.
40034         * tests/unicase/test-u32-is-titlecase.c: New file.
40035
40036         Tests for module 'unicase/u16-is-titlecase'.
40037         * modules/unicase/u16-is-titlecase-tests: New file.
40038         * tests/unicase/test-u16-is-titlecase.c: New file.
40039
40040         Tests for module 'unicase/u8-is-titlecase'.
40041         * modules/unicase/u8-is-titlecase-tests: New file.
40042         * tests/unicase/test-u8-is-titlecase.c: New file.
40043         * tests/unicase/test-is-titlecase.h: New file.
40044
40045         New module 'unicase/u32-is-titlecase'.
40046         * lib/unicase/u32-is-titlecase.c: New file.
40047         * modules/unicase/u32-is-titlecase: New file.
40048
40049         New module 'unicase/u16-is-titlecase'.
40050         * lib/unicase/u16-is-titlecase.c: New file.
40051         * modules/unicase/u16-is-titlecase: New file.
40052
40053         New module 'unicase/u8-is-titlecase'.
40054         * lib/unicase/u8-is-titlecase.c: New file.
40055         * modules/unicase/u8-is-titlecase: New file.
40056
40057         Tests for module 'unicase/u32-is-lowercase'.
40058         * modules/unicase/u32-is-lowercase-tests: New file.
40059         * tests/unicase/test-u32-is-lowercase.c: New file.
40060
40061         Tests for module 'unicase/u16-is-lowercase'.
40062         * modules/unicase/u16-is-lowercase-tests: New file.
40063         * tests/unicase/test-u16-is-lowercase.c: New file.
40064
40065         Tests for module 'unicase/u8-is-lowercase'.
40066         * modules/unicase/u8-is-lowercase-tests: New file.
40067         * tests/unicase/test-u8-is-lowercase.c: New file.
40068         * tests/unicase/test-is-lowercase.h: New file.
40069
40070         New module 'unicase/u32-is-lowercase'.
40071         * lib/unicase/u32-is-lowercase.c: New file.
40072         * modules/unicase/u32-is-lowercase: New file.
40073
40074         New module 'unicase/u16-is-lowercase'.
40075         * lib/unicase/u16-is-lowercase.c: New file.
40076         * modules/unicase/u16-is-lowercase: New file.
40077
40078         New module 'unicase/u8-is-lowercase'.
40079         * lib/unicase/u8-is-lowercase.c: New file.
40080         * modules/unicase/u8-is-lowercase: New file.
40081
40082         Tests for module 'unicase/u32-is-uppercase'.
40083         * modules/unicase/u32-is-uppercase-tests: New file.
40084         * tests/unicase/test-u32-is-uppercase.c: New file.
40085
40086         Tests for module 'unicase/u16-is-uppercase'.
40087         * modules/unicase/u16-is-uppercase-tests: New file.
40088         * tests/unicase/test-u16-is-uppercase.c: New file.
40089
40090         Tests for module 'unicase/u8-is-uppercase'.
40091         * modules/unicase/u8-is-uppercase-tests: New file.
40092         * tests/unicase/test-u8-is-uppercase.c: New file.
40093         * tests/unicase/test-is-uppercase.h: New file.
40094
40095         New module 'unicase/u32-is-uppercase'.
40096         * lib/unicase/u32-is-uppercase.c: New file.
40097         * modules/unicase/u32-is-uppercase: New file.
40098
40099         New module 'unicase/u16-is-uppercase'.
40100         * lib/unicase/u16-is-uppercase.c: New file.
40101         * modules/unicase/u16-is-uppercase: New file.
40102
40103         New module 'unicase/u8-is-uppercase'.
40104         * lib/unicase/u8-is-uppercase.c: New file.
40105         * modules/unicase/u8-is-uppercase: New file.
40106
40107         New module 'unicase/u32-is-invariant'.
40108         * lib/unicase/u32-is-invariant.c: New file.
40109         * modules/unicase/u32-is-invariant: New file.
40110
40111         New module 'unicase/u16-is-invariant'.
40112         * lib/unicase/u16-is-invariant.c: New file.
40113         * modules/unicase/u16-is-invariant: New file.
40114
40115         New module 'unicase/u8-is-invariant'.
40116         * lib/unicase/u8-is-invariant.c: New file.
40117         * lib/unicase/invariant.h: New file.
40118         * lib/unicase/u-is-invariant.h: New file.
40119         * modules/unicase/u8-is-invariant: New file.
40120
40121         Tests for module 'unicase/u32-casecoll'.
40122         * modules/unicase/u32-casecoll-tests: New file.
40123         * tests/unicase/test-u32-casecoll.c: New file.
40124
40125         Tests for module 'unicase/u16-casecoll'.
40126         * modules/unicase/u16-casecoll-tests: New file.
40127         * tests/unicase/test-u16-casecoll.c: New file.
40128
40129         Tests for module 'unicase/u8-casecoll'.
40130         * modules/unicase/u8-casecoll-tests: New file.
40131         * tests/unicase/test-u8-casecoll.c: New file.
40132
40133         New module 'unicase/u32-casecoll'.
40134         * lib/unicase/u32-casecoll.c: New file.
40135         * modules/unicase/u32-casecoll: New file.
40136
40137         New module 'unicase/u16-casecoll'.
40138         * lib/unicase/u16-casecoll.c: New file.
40139         * modules/unicase/u16-casecoll: New file.
40140
40141         New module 'unicase/u8-casecoll'.
40142         * lib/unicase/u8-casecoll.c: New file.
40143         * lib/unicase/u-casecoll.h: New file.
40144         * modules/unicase/u8-casecoll: New file.
40145
40146         New module 'unicase/u32-casexfrm'.
40147         * lib/unicase/u32-casexfrm.c: New file.
40148         * modules/unicase/u32-casexfrm: New file.
40149
40150         New module 'unicase/u16-casexfrm'.
40151         * lib/unicase/u16-casexfrm.c: New file.
40152         * modules/unicase/u16-casexfrm: New file.
40153
40154         New module 'unicase/u8-casexfrm'.
40155         * lib/unicase/u8-casexfrm.c: New file.
40156         * lib/unicase/u-casexfrm.h: New file.
40157         * modules/unicase/u8-casexfrm: New file.
40158
40159         Tests for module 'unicase/u32-casecmp'.
40160         * modules/unicase/u32-casecmp-tests: New file.
40161         * tests/unicase/test-u32-casecmp.c: New file.
40162
40163         Tests for module 'unicase/u16-casecmp'.
40164         * modules/unicase/u16-casecmp-tests: New file.
40165         * tests/unicase/test-u16-casecmp.c: New file.
40166
40167         Tests for module 'unicase/u8-casecmp'.
40168         * modules/unicase/u8-casecmp-tests: New file.
40169         * tests/unicase/test-u8-casecmp.c: New file.
40170         * tests/unicase/test-casecmp.h: New file.
40171
40172         New module 'unicase/u32-casecmp'.
40173         * lib/unicase/u32-casecmp.c: New file.
40174         * modules/unicase/u32-casecmp: New file.
40175
40176         New module 'unicase/u16-casecmp'.
40177         * lib/unicase/u16-casecmp.c: New file.
40178         * modules/unicase/u16-casecmp: New file.
40179
40180         New module 'unicase/u8-casecmp'.
40181         * lib/unicase/u8-casecmp.c: New file.
40182         * lib/unicase/u-casecmp.h: New file.
40183         * modules/unicase/u8-casecmp: New file.
40184
40185         Tests for module 'unicase/u32-casefold'.
40186         * modules/unicase/u32-casefold-tests: New file.
40187         * tests/unicase/test-u32-casefold.c: New file.
40188
40189         Tests for module 'unicase/u16-casefold'.
40190         * modules/unicase/u16-casefold-tests: New file.
40191         * tests/unicase/test-u16-casefold.c: New file.
40192
40193         Tests for module 'unicase/u8-casefold'.
40194         * modules/unicase/u8-casefold-tests: New file.
40195         * tests/unicase/test-u8-casefold.c: New file.
40196
40197         New module 'unicase/u32-casefold'.
40198         * lib/unicase/u32-casefold.c: New file.
40199         * modules/unicase/u32-casefold: New file.
40200
40201         New module 'unicase/u16-casefold'.
40202         * lib/unicase/u16-casefold.c: New file.
40203         * modules/unicase/u16-casefold: New file.
40204
40205         New module 'unicase/u8-casefold'.
40206         * lib/unicase/u8-casefold.c: New file.
40207         * lib/unicase/u-casefold.h: New file.
40208         * modules/unicase/u8-casefold: New file.
40209
40210         New module 'unicase/tocasefold'.
40211         * lib/unicase/casefold.h: New file.
40212         * lib/unicase/tocasefold.c: New file.
40213         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40214         * modules/unicase/tocasefold: New file.
40215
40216         Tests for module 'unicase/u32-totitle'.
40217         * modules/unicase/u32-totitle-tests: New file.
40218         * tests/unicase/test-u32-totitle.c: New file.
40219
40220         Tests for module 'unicase/u16-totitle'.
40221         * modules/unicase/u16-totitle-tests: New file.
40222         * tests/unicase/test-u16-totitle.c: New file.
40223
40224         Tests for module 'unicase/u8-totitle'.
40225         * modules/unicase/u8-totitle-tests: New file.
40226         * tests/unicase/test-u8-totitle.c: New file.
40227
40228         New module 'unicase/u32-totitle'.
40229         * lib/unicase/u32-totitle.c: New file.
40230         * modules/unicase/u32-totitle: New file.
40231
40232         New module 'unicase/u16-totitle'.
40233         * lib/unicase/u16-totitle.c: New file.
40234         * modules/unicase/u16-totitle: New file.
40235
40236         New module 'unicase/u8-totitle'.
40237         * lib/unicase/u8-totitle.c: New file.
40238         * lib/unicase/u-totitle.h: New file.
40239         * modules/unicase/u8-totitle: New file.
40240
40241         Tests for module 'unicase/u32-tolower'.
40242         * modules/unicase/u32-tolower-tests: New file.
40243         * tests/unicase/test-u32-tolower.c: New file.
40244
40245         Tests for module 'unicase/u16-tolower'.
40246         * modules/unicase/u16-tolower-tests: New file.
40247         * tests/unicase/test-u16-tolower.c: New file.
40248
40249         Tests for module 'unicase/u8-tolower'.
40250         * modules/unicase/u8-tolower-tests: New file.
40251         * tests/unicase/test-u8-tolower.c: New file.
40252
40253         New module 'unicase/u32-tolower'.
40254         * lib/unicase/u32-tolower.c: New file.
40255         * modules/unicase/u32-tolower: New file.
40256
40257         New module 'unicase/u16-tolower'.
40258         * lib/unicase/u16-tolower.c: New file.
40259         * modules/unicase/u16-tolower: New file.
40260
40261         New module 'unicase/u8-tolower'.
40262         * lib/unicase/u8-tolower.c: New file.
40263         * modules/unicase/u8-tolower: New file.
40264
40265         Tests for module 'unicase/u32-toupper'.
40266         * modules/unicase/u32-toupper-tests: New file.
40267         * tests/unicase/test-u32-toupper.c: New file.
40268
40269         Tests for module 'unicase/u16-toupper'.
40270         * modules/unicase/u16-toupper-tests: New file.
40271         * tests/unicase/test-u16-toupper.c: New file.
40272
40273         Tests for module 'unicase/u8-toupper'.
40274         * modules/unicase/u8-toupper-tests: New file.
40275         * tests/unicase/test-u8-toupper.c: New file.
40276
40277         New module 'unicase/u32-toupper'.
40278         * lib/unicase/u32-toupper.c: New file.
40279         * modules/unicase/u32-toupper: New file.
40280
40281         New module 'unicase/u16-toupper'.
40282         * lib/unicase/u16-toupper.c: New file.
40283         * modules/unicase/u16-toupper: New file.
40284
40285         New module 'unicase/u8-toupper'.
40286         * lib/unicase/u8-toupper.c: New file.
40287         * modules/unicase/u8-toupper: New file.
40288
40289         New module 'unicase/u32-casemap'.
40290         * lib/unicase/u32-casemap.c: New file.
40291         * modules/unicase/u32-casemap: New file.
40292
40293         New module 'unicase/u16-casemap'.
40294         * lib/unicase/u16-casemap.c: New file.
40295         * modules/unicase/u16-casemap: New file.
40296
40297         New module 'unicase/u8-casemap'.
40298         * lib/unicase/unicasemap.h: New file.
40299         * lib/unicase/u8-casemap.c: New file.
40300         * lib/unicase/u-casemap.h: New file.
40301         * modules/unicase/u8-casemap: New file.
40302
40303         New module 'unicase/special-casing'.
40304         * lib/unicase/special-casing.h: New file.
40305         * lib/unicase/special-casing.c: New file.
40306         * lib/unicase/special-casing-table.gperf: New file, generated by
40307         gen-uni-tables.c.
40308         * modules/unicase/special-casing: New file.
40309
40310         Tests for module 'unicase/locale-language'.
40311         * modules/unicase/locale-language-tests: New file.
40312         * tests/unicase/test-locale-language.sh: New file.
40313         * tests/unicase/test-locale-language.c: New file.
40314
40315         New module 'unicase/locale-language'.
40316         * lib/unicase/locale-language.c: New file.
40317         * lib/unicase/locale-languages.gperf: New file.
40318         * modules/unicase/locale-language: New file.
40319
40320         Generate more tables for case conversion and case folding.
40321         * lib/gen-uni-tables.c (SCC_*): New enum items.
40322         (struct special_casing_rule): New type.
40323         (casing_rules, num_casing_rules, allocated_casing_rules): New
40324         variables.
40325         (add_casing_rule, fill_casing_rules): New functions.
40326         (struct casefold_rule): New type.
40327         (casefolding_rules, num_casefolding_rules,
40328         allocated_casefolding_rules): New variables.
40329         (fill_casefolding_rules): New function.
40330         (unicode_casefold): New variable.
40331         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40332         sort_casing_rules, output_casing_rules): New functions.
40333         (main): Accept to more arguments: SpecialCasing.txt and
40334         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40335         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40336         Output mapping for casefolding.
40337
40338         * lib/unicase.h: Include stdbool.h, uninorm.h.
40339         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40340         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40341         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40342         arguments.
40343         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40344         resultp arguments.
40345         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40346         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40347         resultp arguments.
40348         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40349         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40350         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40351         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40352         declarations.
40353         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40354
40355 2009-03-08  Bruno Haible  <bruno@clisp.org>
40356
40357         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40358         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40359         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40360         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40361
40362 2009-03-07  Bruno Haible  <bruno@clisp.org>
40363
40364         Adjust u*_normcmp, u*_normcoll API.
40365         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40366         u16_normcoll, u32_normcoll): Change failure conventions.
40367         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40368         errno and return -1.
40369         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40370
40371 2009-03-07  Bruno Haible  <bruno@clisp.org>
40372
40373         Tests for module 'uninorm/u32-normcoll'.
40374         * modules/uninorm/u32-normcoll-tests: New file.
40375         * tests/uninorm/test-u32-normcoll.c: New file.
40376
40377         Tests for module 'uninorm/u16-normcoll'.
40378         * modules/uninorm/u16-normcoll-tests: New file.
40379         * tests/uninorm/test-u16-normcoll.c: New file.
40380
40381         Tests for module 'uninorm/u8-normcoll'.
40382         * modules/uninorm/u8-normcoll-tests: New file.
40383         * tests/uninorm/test-u8-normcoll.c: New file.
40384
40385 2009-03-07  Bruno Haible  <bruno@clisp.org>
40386
40387         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40388         tests/uninorm/test-u32-normcmp.c.
40389         * tests/uninorm/test-u32-normcmp.c: Include it.
40390         (test_nonascii): New function, extracted from main. Add some more
40391         tests.
40392         (main): Invoke test_ascii and test_nonascii.
40393         * modules/uninorm/u32-normcmp-tests (Files): Add
40394         tests/uninorm/test-u32-normcmp.h.
40395         (Depends-on): Remove uninorm/u32-normcmp.
40396
40397         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40398         tests/uninorm/test-u16-normcmp.c.
40399         * tests/uninorm/test-u16-normcmp.c: Include it.
40400         (test_nonascii): New function, extracted from main. Add some more
40401         tests.
40402         (main): Invoke test_ascii and test_nonascii.
40403         * modules/uninorm/u16-normcmp-tests (Files): Add
40404         tests/uninorm/test-u16-normcmp.h.
40405         (Depends-on): Remove uninorm/u16-normcmp.
40406
40407         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40408         tests/uninorm/test-u8-normcmp.c.
40409         * tests/uninorm/test-u8-normcmp.c: Include it.
40410         (test_nonascii): New function, extracted from main. Add some more
40411         tests.
40412         (main): Invoke test_ascii and test_nonascii.
40413         * modules/uninorm/u8-normcmp-tests (Files): Add
40414         tests/uninorm/test-u8-normcmp.h.
40415         (Depends-on): Remove uninorm/u8-normcmp.
40416
40417 2009-03-07  Bruno Haible  <bruno@clisp.org>
40418
40419         New module 'uninorm/u32-normcoll'.
40420         * lib/uninorm/u32-normcoll.c: New file.
40421         * modules/uninorm/u32-normcoll: New file.
40422
40423         New module 'uninorm/u16-normcoll'.
40424         * lib/uninorm/u16-normcoll.c: New file.
40425         * modules/uninorm/u16-normcoll: New file.
40426
40427         New module 'uninorm/u8-normcoll'.
40428         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40429         declarations.
40430         * lib/uninorm/u8-normcoll.c: New file.
40431         * lib/uninorm/u-normcoll.h: New file.
40432         * modules/uninorm/u8-normcoll: New file.
40433
40434         New module 'uninorm/u32-normxfrm'.
40435         * lib/uninorm/u32-normxfrm.c: New file.
40436         * modules/uninorm/u32-normxfrm: New file.
40437
40438         New module 'uninorm/u16-normxfrm'.
40439         * lib/uninorm/u16-normxfrm.c: New file.
40440         * modules/uninorm/u16-normxfrm: New file.
40441
40442         New module 'uninorm/u8-normxfrm'.
40443         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40444         declarations.
40445         * lib/uninorm/u8-normxfrm.c: New file.
40446         * lib/uninorm/u-normxfrm.h: New file.
40447         * modules/uninorm/u8-normxfrm: New file.
40448
40449 2009-03-07  Bruno Haible  <bruno@clisp.org>
40450
40451         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40452         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40453         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40454
40455 2009-03-07  Bruno Haible  <bruno@clisp.org>
40456
40457         New module 'memxfrm'.
40458         * lib/memxfrm.h: New file.
40459         * lib/memxfrm.c: New file.
40460         * modules/memxfrm: New file.
40461
40462 2009-03-07  Bruno Haible  <bruno@clisp.org>
40463
40464         New module 'memcmp2'.
40465         * lib/memcmp2.h: New file.
40466         * lib/memcmp2.c: New file.
40467         * modules/memcmp2: New file.
40468
40469 2009-03-07  Bruno Haible  <bruno@clisp.org>
40470
40471         Tests for module 'uninorm/decomposing-form'.
40472         * modules/uninorm/decomposing-form-tests: New file.
40473         * tests/uninorm/test-decomposing-form.c: New file.
40474
40475         New module 'uninorm/decomposing-form'.
40476         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40477         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40478         Add 'decomposing_variant' field.
40479         * lib/uninorm/decomposing-form.c: New file.
40480         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40481         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40482         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40483         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40484         * modules/uninorm/decomposing-form: New file.
40485         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40486         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40487
40488 2009-03-07  Bruno Haible  <bruno@clisp.org>
40489
40490         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40491         strings.
40492
40493 2009-03-06  Bruno Haible  <bruno@clisp.org>
40494
40495         Tests for module 'uninorm/u32-normcmp'.
40496         * tests/uninorm/test-u32-normcmp.c: New file.
40497         * modules/uninorm/u32-normcmp-tests: New file.
40498
40499         Tests for module 'uninorm/u16-normcmp'.
40500         * tests/uninorm/test-u16-normcmp.c: New file.
40501         * modules/uninorm/u16-normcmp-tests: New file.
40502
40503         Tests for module 'uninorm/u8-normcmp'.
40504         * tests/uninorm/test-u8-normcmp.c: New file.
40505         * modules/uninorm/u8-normcmp-tests: New file.
40506
40507         New module 'uninorm/u32-normcmp'.
40508         * lib/uninorm/u32-normcmp.c: New file.
40509         * modules/uninorm/u32-normcmp: New file.
40510
40511         New module 'uninorm/u16-normcmp'.
40512         * lib/uninorm/u16-normcmp.c: New file.
40513         * modules/uninorm/u16-normcmp: New file.
40514
40515         New module 'uninorm/u8-normcmp'.
40516         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40517         declarations.
40518         * lib/uninorm/u8-normcmp.c: New file.
40519         * lib/uninorm/u-normcmp.h: New file.
40520         * modules/uninorm/u8-normcmp: New file.
40521
40522 2009-03-06  Bruno Haible  <bruno@clisp.org>
40523
40524         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40525         Reported by Eric Blake.
40526
40527 2009-03-06  Eric Blake  <ebb9@byu.net>
40528             Bruno Haible  <bruno@clisp.org>
40529
40530         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40531         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40532         condition.
40533         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40534         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40535         condition.
40536         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40537
40538 2009-03-06  Eric Blake  <ebb9@byu.net>
40539
40540         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40541         to avoid compiler warnings.
40542         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40543
40544 2009-03-05  Bruno Haible  <bruno@clisp.org>
40545
40546         * tests/test-ftell.c (main): Disable test beyond end of file on
40547         FreeMiNT.
40548         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40549
40550 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40551
40552         * lib/filevercmp.c: Move hidden files up in ordering.
40553         * tests/test-filevercmp.c: Add tests for hidden files.
40554
40555 2009-03-04  Bruno Haible  <bruno@clisp.org>
40556
40557         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40558         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40559         AM_CFLAGS.
40560         Reported by Simon Josefsson.
40561
40562 2009-03-03  Bruno Haible  <bruno@clisp.org>
40563
40564         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40565         Reported by Simon Josefsson.
40566
40567         * doc/ld-version-script.texi: Update node reference.
40568
40569 2009-03-03  Bruno Haible  <bruno@clisp.org>
40570
40571         * modules/visibility (License): Change to 'unlimited'.
40572         Suggested by Simon Josefsson.
40573
40574 2009-03-03  Jim Meyering  <meyering@redhat.com>
40575
40576         unlinkdir: cannot_unlink_dir may modify process state
40577         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40578         it's neither thread-safe nor appropriate for use in a library.
40579
40580 2009-03-03  Eric Blake  <ebb9@byu.net>
40581
40582         test-closein: silence test under Darwin
40583         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40584         care if it dies from EPIPE or EBADF.
40585
40586 2009-03-03  Bruno Haible  <bruno@clisp.org>
40587
40588         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40589         earlier.
40590         * doc/visibility.texi: Fix @node and @section.
40591
40592 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40593
40594         * doc/gnulib.texi: Link to sections for ld version script and
40595         visibility.
40596         * doc/visibility.texi: Add @node and @section.
40597         * modules/ld-version-script: New module.
40598         * m4/ld-version-script.m4: New file.
40599         * doc/ld-version-script.texi: New file.
40600
40601 2009-03-02  David Lutterkort  <lutter@redhat.com>
40602
40603         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40604         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40605
40606 2009-03-02  Bruno Haible  <bruno@clisp.org>
40607
40608         * doc/visibility.texi: Mention libtool's -export-symbols option.
40609
40610 2009-03-02  Jim Meyering  <meyering@redhat.com>
40611
40612         announce-gen: new option: --no-print-checksums
40613         * build-aux/announce-gen (usage): Describe it.
40614         (print_checksums): Print a newline here, not in the [*] footnote.
40615         (main): Honor it.
40616
40617 2009-03-01  Bruno Haible  <bruno@clisp.org>
40618
40619         Use socklen_t in the native Windows replacements prototypes.
40620         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40621         instead of 'int'.
40622         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40623         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40624         * modules/getsockopt (Depends-on): Add socklen.
40625         * modules/setsockopt (Depends-on): Add socklen.
40626
40627 2009-03-01  Bruno Haible  <bruno@clisp.org>
40628
40629         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40630         least 4.2.
40631
40632 2009-03-01  Eric Blake  <ebb9@byu.net>
40633             Bruno Haible  <bruno@clisp.org>
40634
40635         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40636         error messages.
40637         * lib/wait-process.c (wait_subprocess): Omit error message about
40638         deadly signal sent to the child of termsigp != NULL.
40639
40640 2009-03-01  Eric Blake  <ebb9@byu.net>
40641
40642         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40643
40644 2009-03-01  Bruno Haible  <bruno@clisp.org>
40645
40646         Avoid a gcc warning.
40647         * tests/test-sched.c (b): Make global.
40648         Reported by Eric Blake.
40649
40650 2009-01-19  Martin Lambers  <marlam@marlam.de>
40651
40652         Provide POSIX semantics for socket timeout options on W32.
40653         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40654         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40655         * modules/setsockopt: Depend on sys_time module for struct timeval.
40656         * modules/getsockopt: Depend on sys_time module for struct timeval.
40657
40658 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40659
40660         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40661         __USE_GNU, for consistency with netdb.in.h.
40662         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40663
40664 2009-03-01  Bruno Haible  <bruno@clisp.org>
40665
40666         More support for FreeMiNT.
40667         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40668         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40669
40670 2009-03-01  Bruno Haible  <bruno@clisp.org>
40671
40672         More support for FreeMiNT.
40673         * lib/fpurge.c (fpurge): Correct last commit.
40674         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40675
40676 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40677
40678         Fix unportable awk script in vc-list-files.
40679         * build-aux/vc-list-files: In the replacement awk script, use
40680         substr with a second argument of 1, not zero.
40681         Report by Simon Josefsson.
40682
40683 2009-02-28  Bruno Haible  <bruno@clisp.org>
40684
40685         More support for FreeMiNT.
40686         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40687         to FreeMiNT today.
40688         * lib/fwriting.c (fwriting): Likewise.
40689         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40690
40691 2009-02-28  Bruno Haible  <bruno@clisp.org>
40692
40693         * tests/test-freadseek.c (main): Disable test beyond end of file on
40694         FreeMiNT.
40695         * tests/test-ftello.c (main): Likewise.
40696         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40697
40698 2009-02-28  Bruno Haible  <bruno@clisp.org>
40699
40700         Add tentative support for FreeMiNT.
40701         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40702         * lib/fpurge.c (fpurge): Likewise.
40703         * lib/freadable.c (freadable): Likewise.
40704         * lib/freading.c (freading): Likewise.
40705         * lib/freadptr.c (freadptr): Likewise.
40706         * lib/freadseek.c (freadptrinc): Likewise.
40707         * lib/fseeko.c (rpl_fseeko): Likewise.
40708         * lib/fseterr.c (fseterr): Likewise.
40709         * lib/fwritable.c (fwritable): Likewise.
40710         * lib/fwriting.c (fwriting): Likewise.
40711         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40712         Hourihane.
40713         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40714
40715 2009-02-28  Bruno Haible  <bruno@clisp.org>
40716
40717         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40718         SIGCHLD.
40719         Reported by Jim Meyering.
40720
40721 2009-02-28  Bruno Haible  <bruno@clisp.org>
40722
40723         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40724         Mention the results of these tests on various platforms.
40725         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40726         order.
40727         * doc/posix-functions/printf.texi: Likewise.
40728         * doc/posix-functions/snprintf.texi: Likewise.
40729         * doc/posix-functions/sprintf.texi: Likewise.
40730         * doc/posix-functions/vfprintf.texi: Likewise.
40731         * doc/posix-functions/vprintf.texi: Likewise.
40732         * doc/posix-functions/vsnprintf.texi: Likewise.
40733         * doc/posix-functions/vsprintf.texi: Likewise.
40734         * doc/glibc-functions/obstack_printf.texi: Likewise.
40735         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40736
40737 2009-02-28  Bruno Haible  <bruno@clisp.org>
40738
40739         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40740         Reported by Loïc Minier <lool@dooz.org>.
40741
40742 2009-02-27  Bruno Haible  <bruno@clisp.org>
40743
40744         * gnulib-tool (func_import): Make the sed expression used to create the
40745         sed script for updating the .gitignore file POSIX compliant.
40746         Reported by Eric Blake.
40747
40748 2009-02-27  Bruno Haible  <bruno@clisp.org>
40749
40750         * gnulib-tool (sed): Don't alias as "sed --posix".
40751         Reported by Eric Blake.
40752
40753 2009-02-27  Bruno Haible  <bruno@clisp.org>
40754
40755         Avoid test link errors.
40756         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40757         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40758         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40759         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40761
40762 2009-02-27  Bruno Haible  <bruno@clisp.org>
40763
40764         Avoid spurious "(cached)" in configure output.
40765         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40766         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40767         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40768         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40769         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40770         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40771         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40772         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40773         Reported by Eric Blake.
40774
40775 2009-02-27  Eric Blake  <ebb9@byu.net>
40776
40777         printf: fix regression in previous patch
40778         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40779
40780 2009-02-27  Bruno Haible  <bruno@clisp.org>
40781
40782         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40783         value.
40784         * lib/stdint.in.h: Likewise.
40785         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40786
40787 2009-02-27  Eric Blake  <ebb9@byu.net>
40788
40789         doc: mention more functions added in cygwin 1.7.0
40790         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40791         addition.
40792         * doc/posix-functions/open_wmemstream.texi: Likewise.
40793         * doc/posix-functions/wcsnlen.texi: Likewise.
40794         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40795         * doc/posix-functions/wcstod.texi: Likewise.
40796         * doc/posix-functions/wcstof.texi: Likewise.
40797         * doc/posix-functions/wcstoimax.texi: Likewise.
40798         * doc/posix-functions/wcstok.texi: Likewise.
40799         * doc/posix-functions/wcstoumax.texi: Likewise.
40800
40801         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40802         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40803         * doc/posix-functions/fprintf.texi: Update.
40804         * doc/posix-functions/printf.texi: Update.
40805         * doc/posix-functions/snprintf.texi: Update.
40806         * doc/posix-functions/sprintf.texi: Update.
40807         * doc/posix-functions/vfprintf.texi: Update.
40808         * doc/posix-functions/vprintf.texi: Update.
40809         * doc/posix-functions/vsnprintf.texi: Update.
40810         * doc/posix-functions/vsprintf.texi: Update.
40811         * doc/glibc-functions/obstack_printf.texi: Update.
40812         * doc/glibc-functions/obstack_vprintf.texi: Update.
40813
40814 2009-02-26  Eric Blake  <ebb9@byu.net>
40815
40816         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40817         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40818         compilation bug by using runtime conversion.
40819         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40820         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40821         * modules/ceill-tests (Files): Use nan.h.
40822         * modules/floorl-tests (Files): Likewise.
40823         * modules/frexpl-tests (Files): Likewise.
40824         * modules/isnanl-tests (Files): Likewise.
40825         * modules/ldexpl-tests (Files): Likewise.
40826         * modules/roundl-tests (Files): Likewise.
40827         * modules/truncl-tests (Files): Likewise.
40828         * tests/test-ceill.c (main): Use a working NaN.
40829         * tests/test-floorl.c (main): Likewise.
40830         * tests/test-frexpl.c (main): Likewise.
40831         * tests/test-isnan.c (test_long_double): Likewise.
40832         * tests/test-isnanl.h (main): Likewise.
40833         * tests/test-ldexpl.h (main): Likewise.
40834         * tests/test-roundl.h (main): Likewise.
40835         * tests/test-truncl.h (main): Likewise.
40836         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40837
40838 2009-02-26  Eric Blake  <ebb9@byu.net>
40839             Bruno Haible  <bruno@clisp.org>
40840
40841         Work around a *printf bug with %ls on Solaris.
40842         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40843         precision is specified, sprintf stops converting the wide string
40844         argument when the number of bytes that have been produced by this
40845         conversion equals or exceeds the precision.
40846         * doc/posix-functions/fprintf.texi: Update.
40847         * doc/posix-functions/printf.texi: Update.
40848         * doc/posix-functions/snprintf.texi: Update.
40849         * doc/posix-functions/sprintf.texi: Update.
40850         * doc/posix-functions/vfprintf.texi: Update.
40851         * doc/posix-functions/vprintf.texi: Update.
40852         * doc/posix-functions/vsnprintf.texi: Update.
40853         * doc/posix-functions/vsprintf.texi: Update.
40854         * doc/glibc-functions/obstack_printf.texi: Update.
40855         * doc/glibc-functions/obstack_vprintf.texi: Update.
40856
40857 2009-02-26  Eric Blake  <ebb9@byu.net>
40858
40859         stdlib: favor compiler check of random.h
40860         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40861         to avoid an ObjC random.h installed by Swarm.
40862
40863 2009-02-26  Bruno Haible  <bruno@clisp.org>
40864
40865         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40866         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40867         Reported by Gary V. Vaughan <gary@gnu.org>.
40868
40869 2009-02-26  Bruno Haible  <bruno@clisp.org>
40870
40871         Fix *printf behaviour regarding the %ls directive.
40872         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40873         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40874         NEED_PRINTF_DIRECTIVE_LS.
40875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40876         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40877         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40878         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40879         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40880         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40881         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40882         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40883         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40884         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40885         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40886         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40887         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40888         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40889         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40890         * doc/posix-functions/fprintf.texi: Update.
40891         * doc/posix-functions/printf.texi: Update.
40892         * doc/posix-functions/snprintf.texi: Update.
40893         * doc/posix-functions/sprintf.texi: Update.
40894         * doc/posix-functions/vfprintf.texi: Update.
40895         * doc/posix-functions/vprintf.texi: Update.
40896         * doc/posix-functions/vsnprintf.texi: Update.
40897         * doc/posix-functions/vsprintf.texi: Update.
40898         * doc/glibc-functions/obstack_printf.texi: Update.
40899         * doc/glibc-functions/obstack_vprintf.texi: Update.
40900         Reported by Eric Blake.
40901
40902 2009-02-25  Bruno Haible  <bruno@clisp.org>
40903
40904         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40905         with known value.
40906         Reported by Gary V. Vaughan <gary@gnu.org>.
40907
40908 2009-02-25  Bruno Haible  <bruno@clisp.org>
40909
40910         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40911         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40912         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40913         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40914         Reported by Gary V. Vaughan <gary@gnu.org>.
40915
40916 2009-02-25  Bruno Haible  <bruno@clisp.org>
40917
40918         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40919         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40920         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40921         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40922         Reported by Gary V. Vaughan <gary@gnu.org>.
40923
40924 2009-02-25  Eric Blake  <ebb9@byu.net>
40925
40926         tests: skip fseek/ftell tests if ungetc is broken
40927         * m4/ungetc.m4: New file.
40928         * modules/fseek-tests: Split test, so ungetc dependency is
40929         separate from rest of test.
40930         * modules/fseeko-tests: Likewise.
40931         * modules/ftell-tests: Likewise.
40932         * modules/ftello-tests: Likewise.
40933         * tests/test-fseek.c (main): Isolate ungetc dependency.
40934         * tests/test-fseeko.c (main): Likewise.
40935         * tests/test-ftell.c (main): Likewise.
40936         * tests/test-ftello.c (main): Likewise.
40937         * tests/test-fseek2.sh: New file.
40938         * tests/test-fseeko2.sh: Likewise.
40939         * tests/test-ftell2.sh: Likewise.
40940         * tests/test-ftello2.sh: Likewise.
40941
40942 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40943
40944         test-getaddrinfo: fix usage of skip return code 77
40945         * tests/test-gettaddrinfo.c: Return skip code 77 only
40946         for first occurance of skip (4x77 is not 77)
40947
40948 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40949
40950         strtod: avoid C99 decl-after-statement
40951         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40952
40953 2009-02-24  Eric Blake  <ebb9@byu.net>
40954
40955         strtod: detect HP-UX 11.31 bug
40956         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40957         Reported by Gary V. Vaughan.
40958
40959 2009-02-23  Bruno Haible  <bruno@clisp.org>
40960
40961         Fix invalid read past end of memory block.
40962         * lib/vasnprintf.c (DCHAR_SET): Define.
40963         (local_wcslen): Define only when needed.
40964         (local_strnlen, local_wcsnlen): New functions.
40965         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40966         directives that involve a conversion ourselves.
40967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40968         wcsnlen, mbrtowc, wcrtomb.
40969         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40970         * tests/test-vasprintf-posix.c (test_function): Likewise.
40971         * tests/test-snprintf-posix.h (test_function): Likewise.
40972         * tests/test-sprintf-posix.h (test_function): Likewise.
40973         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40974
40975 2009-02-22  Bruno Haible  <bruno@clisp.org>
40976
40977         Implement new clarified decomposition of Hangul syllables.
40978         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40979         of type LTV, return only a pairwise decomposition.
40980         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40981         Likewise.
40982         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40983         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40984         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40985
40986 2009-02-22  Bruno Haible  <bruno@clisp.org>
40987
40988         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40989         zero-length results and shrink excess allocated memory.
40990         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40991         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40992         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40993         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40994         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40995         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40996         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40997         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40998         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40999         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41000         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41001         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41002
41003 2009-02-21  Bruno Haible  <bruno@clisp.org>
41004
41005         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41006         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41007         spaces after a period. Put a space between a macro name and its
41008         argument list. Trivial rewordings.
41009         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41010         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41011         (main): Return 0 explicitly.
41012
41013 2009-02-21  Bruno Haible  <bruno@clisp.org>
41014
41015         Tests for module 'uninorm/filter'.
41016         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41017         * modules/uninorm/filter-tests: New file.
41018
41019         New module 'uninorm/filter'.
41020         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41021         uninorm_filter_flush, uninorm_filter_free): New declarations.
41022         * lib/uninorm/uninorm-filter.c: New file.
41023         * modules/uninorm/filter: New file.
41024
41025 2009-02-21  Bruno Haible  <bruno@clisp.org>
41026
41027         Tests for module 'uninorm/nfkc'.
41028         * tests/uninorm/test-nfkc.c: New file.
41029         * tests/uninorm/test-u8-nfkc.c: New file.
41030         * tests/uninorm/test-u16-nfkc.c: New file.
41031         * tests/uninorm/test-u32-nfkc.c: New file.
41032         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41033         * tests/uninorm/test-u32-nfkc-big.c: New file.
41034         * modules/uninorm/nfkc-tests: New file.
41035
41036         New module 'uninorm/nfkc'.
41037         * lib/uninorm/nfkc.c: New file.
41038         * modules/uninorm/nfkc: New file.
41039
41040         Tests for module 'uninorm/nfkd'.
41041         * tests/uninorm/test-nfkd.c: New file.
41042         * tests/uninorm/test-u8-nfkd.c: New file.
41043         * tests/uninorm/test-u16-nfkd.c: New file.
41044         * tests/uninorm/test-u32-nfkd.c: New file.
41045         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41046         * tests/uninorm/test-u32-nfkd-big.c: New file.
41047         * modules/uninorm/nfkd-tests: New file.
41048
41049         New module 'uninorm/nfkd'.
41050         * lib/uninorm/nfkd.c: New file.
41051         * modules/uninorm/nfkd: New file.
41052
41053         Tests for module 'uninorm/nfc'.
41054         * tests/uninorm/test-nfc.c: New file.
41055         * tests/uninorm/test-u8-nfc.c: New file.
41056         * tests/uninorm/test-u16-nfc.c: New file.
41057         * tests/uninorm/test-u32-nfc.c: New file.
41058         * tests/uninorm/test-u32-nfc-big.sh: New file.
41059         * tests/uninorm/test-u32-nfc-big.c: New file.
41060         * modules/uninorm/nfc-tests: New file.
41061
41062         New module 'uninorm/nfc'.
41063         * lib/uninorm/nfc.c: New file.
41064         * modules/uninorm/nfc: New file.
41065
41066         Tests for module 'uninorm/nfd'.
41067         * tests/uninorm/test-nfd.c: New file.
41068         * tests/uninorm/test-u8-nfd.c: New file.
41069         * tests/uninorm/test-u16-nfd.c: New file.
41070         * tests/uninorm/test-u32-nfd.c: New file.
41071         * tests/uninorm/test-u32-nfd-big.sh: New file.
41072         * tests/uninorm/test-u32-nfd-big.c: New file.
41073         * tests/uninorm/test-u32-normalize-big.h: New file.
41074         * tests/uninorm/test-u32-normalize-big.c: New file.
41075         * tests/uninorm/NormalizationTest.txt: New file, created from
41076         Unicode 5.1.0 NormalizationTest.txt.
41077         * modules/uninorm/nfd-tests: New file.
41078
41079         New module 'uninorm/nfd'.
41080         * lib/uninorm/nfd.c: New file.
41081         * modules/uninorm/nfd: New file.
41082
41083         New module 'uninorm/u32-normalize'.
41084         * lib/uninorm/u32-normalize.c: New file.
41085         * modules/uninorm/u32-normalize: New file.
41086
41087         New module 'uninorm/u16-normalize'.
41088         * lib/uninorm/u16-normalize.c: New file.
41089         * modules/uninorm/u16-normalize: New file.
41090
41091         New module 'uninorm/u8-normalize'.
41092         * lib/uninorm/u8-normalize.c: New file.
41093         * lib/uninorm/normalize-internal.h: New file.
41094         * lib/uninorm/u-normalize-internal.h: New file.
41095         * modules/uninorm/u8-normalize: New file.
41096
41097         New module 'uninorm/decompose-internal'.
41098         * lib/uninorm/decompose-internal.c: New file.
41099         * modules/uninorm/decompose-internal: New file.
41100
41101         Tests for module 'uninorm/composition'.
41102         * tests/uninorm/test-composition.c: New file.
41103         * modules/uninorm/composition-tests: New file.
41104
41105         New module 'uninorm/composition'.
41106         * lib/uninorm/composition.c: New file.
41107         * lib/uninorm/composition-table.gperf: New file, generated by
41108         gen-uni-tables.
41109         * modules/uninorm/composition: New file.
41110
41111         Tests for module 'uninorm/compat-decomposition'.
41112         * tests/uninorm/test-compat-decomposition.c: New file.
41113         * modules/uninorm/compat-decomposition-tests: New file.
41114
41115         New module 'uninorm/compat-decomposition'.
41116         * lib/uninorm/decompose-internal.h: New file.
41117         * lib/uninorm/compat-decomposition.c: New file.
41118         * modules/uninorm/compat-decomposition: New file.
41119
41120         Tests for module 'uninorm/canonical-decomposition'.
41121         * tests/uninorm/test-canonical-decomposition.c: New file.
41122         * modules/uninorm/canonical-decomposition-tests: New file.
41123
41124         New module 'uninorm/canonical-decomposition'.
41125         * lib/uninorm/canonical-decomposition.c: New file.
41126         * modules/uninorm/canonical-decomposition: New file.
41127
41128         Tests for module 'uninorm/decomposition'.
41129         * tests/uninorm/test-decomposition.c: New file.
41130         * modules/uninorm/decomposition-tests: New file.
41131
41132         New module 'uninorm/decomposition'.
41133         * lib/uninorm/decomposition.c: New file.
41134         * modules/uninorm/decomposition: New file.
41135
41136         New module 'uninorm/decomposition-table'.
41137         * lib/uninorm/decomposition-table.h: New file.
41138         * lib/uninorm/decomposition-table.c: New file.
41139         * lib/uninorm/decomposition-table1.h: New file, generated by
41140         gen-uni-tables.
41141         * lib/uninorm/decomposition-table2.h: New file, generated by
41142         gen-uni-tables.
41143         * modules/uninorm/decomposition-table: New file.
41144
41145         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41146         (UC_DECOMP_*): New enumeration items.
41147         (get_decomposition): New function.
41148         (struct decomp_table): New type.
41149         (output_decomposition, output_decomposition_tables): New functions.
41150         (unicode_composition_exclusions): New variable.
41151         (fill_composition_exclusions, debug_output_composition_tables): New
41152         functions.
41153         (main): Accept one more argument. Invoke fill_composition_exclusions.
41154         Output decomposition and composition tables.
41155
41156         New module 'uninorm/base'.
41157         * lib/uninorm.h: New file.
41158         * lib/unictype.h: Update comment.
41159         * modules/uninorm/base: New file.
41160
41161 2009-02-21  David Lutterkort  <lutter@redhat.com>
41162
41163         Tests for module 'safe-alloc'.
41164         * tests/test-safe-alloc.c: New file.
41165         * modules/safe-alloc-tests: New file.
41166
41167         New module 'safe-alloc'.
41168         * lib/safe-alloc.h: New file.
41169         * lib/safe-alloc.c: New file.
41170         * m4/safe-alloc.m4: New file.
41171         * modules/safe-alloc: New file.
41172         * doc/safe-alloc.texi: New file.
41173         * doc/gnulib.texi: Include it.
41174         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41175         safe-alloc.
41176
41177 2009-02-18  Bruno Haible  <bruno@clisp.org>
41178
41179         Fix link error on non-glibc systems.
41180         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41181         variable.
41182         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41183
41184 2009-02-18  Jim Meyering  <meyering@redhat.com>
41185
41186         fts: avoid used-uninitialized error due to recent change
41187         * lib/fts.c (fts_read): Guard uses of the new member,
41188         parent->fts_n_dirs_remaining, since it's not relevant for
41189         the parent of a directory specified on the command-line.
41190
41191 2009-02-17  James Youngman  <jay@gnu.org>
41192             Bruno Haible  <bruno@clisp.org>
41193
41194         * m4/include_next.m4: Reformulate comment.
41195
41196 2009-02-16  Jim Meyering  <meyering@redhat.com>
41197
41198         fts: add #if guards so that the fts_lgpl module still builds
41199         * lib/fts.c: Guard just-added hash-table-using parts with
41200         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41201         Reported by Simon Josefsson.
41202
41203 2009-02-15  Bruno Haible  <bruno@clisp.org>
41204
41205         * modules/array-mergesort-tests: New file.
41206         * tests/test-array-mergesort.c: New file.
41207
41208         New module 'array-mergesort'.
41209         * modules/array-mergesort: New file.
41210         * lib/array-mergesort.h: New file.
41211
41212 2009-02-15  Bruno Haible  <bruno@clisp.org>
41213
41214         Fix 2009-02-07 commit.
41215         * lib/gen-uni-tables.c (output_predicate, output_category,
41216         output_combclass, output_bidi_category, output_decimal_digit,
41217         output_digit, output_numeric, output_mirror, output_scripts,
41218         output_ident_category, output_simple_mapping): Fix format directives.
41219         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41220
41221 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41222
41223         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41224         fixes are available from IBM.
41225
41226 2009-02-13  Jim Meyering  <meyering@redhat.com>
41227
41228         fts: arrange not to stat non-directories in more cases
41229         This makes GNU find (when it doesn't need to stat each file)
41230         *much* more efficient at traversing reiserfs file systems.
41231         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41232         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41233         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41234         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41235         (leaf_optimization_applies): New function.
41236         (LCO_hash, LCO_compare): New helper functions.
41237         (link_count_optimize_ok): New function.
41238         (fts_stat): Initialize new member (if dir).
41239         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41240         we've just stat'ed a directory.  Skip the stat call when possible.
41241         ---
41242         Note this AFS-related exchange:
41243         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41244         and note find's pioctl call in find/fstype.c.
41245         But that is necessary only if you want to enable the
41246         optimization for AFS, and for now, I don't.
41247
41248         fts: move a function definition "up" (no semantic change)
41249         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41250         "up" to precede upcoming use of a related function.
41251
41252 2009-02-11  Jim Meyering  <meyering@redhat.com>
41253
41254         fts: correct internal computation of nlinks (optimization-related)
41255         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41256         whether the current entry is a directory, so don't test it.
41257
41258 2009-02-10  Bruno Haible  <bruno@clisp.org>
41259
41260         Tests for module 'uniwbrk/ulc-wordbreaks'.
41261         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41262         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41263         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41264
41265         Tests for module 'uniwbrk/u32-wordbreaks'.
41266         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41267         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41268
41269         Tests for module 'uniwbrk/u16-wordbreaks'.
41270         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41271         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41272
41273         Tests for module 'uniwbrk/u8-wordbreaks'.
41274         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41275         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41276
41277 2009-02-10  Bruno Haible  <bruno@clisp.org>
41278
41279         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41280         property.
41281         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41282         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41283         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41284
41285 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41286
41287         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41288         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41289
41290 2009-02-10  Bruno Haible  <bruno@clisp.org>
41291
41292         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41293         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41294         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41295         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41296         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41297         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41298
41299 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41300
41301         * lib/sockets.h (gl_fd_to_handle): New function.
41302
41303         * tests/test-sockets.c: Call gl_fd_to_handle.
41304
41305 2009-02-09  Bruno Haible  <bruno@clisp.org>
41306
41307         * doc/havelib.texi: Document the conventions on bi-arch systems.
41308
41309 2009-02-08  Bruno Haible  <bruno@clisp.org>
41310
41311         Document the AC_LIB_LINKFLAGS macro.
41312         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41313         * doc/gnulib.texi: Include it.
41314
41315 2009-02-08  Bruno Haible  <bruno@clisp.org>
41316
41317         Fix wrong order of sections, compared to TOC.
41318         * doc/gnulib.texi: Include relocatable-maint.texi after the
41319         "Regular expressions" node, not before.
41320
41321 2009-02-08  Bruno Haible  <bruno@clisp.org>
41322
41323         Tests for module 'unicase/totitle'.
41324         * modules/unicase/totitle-tests: New file.
41325
41326         Tests for module 'unicase/tolower'.
41327         * modules/unicase/tolower-tests: New file.
41328
41329         Tests for module 'unicase/toupper'.
41330         * modules/unicase/toupper-tests: New file.
41331         * tests/unicase/test-mapping-part1.h: New file.
41332         * tests/unicase/test-mapping-part2.h: New file.
41333
41334         New module 'unicase/totitle'.
41335         * modules/unicase/totitle: New file.
41336         * lib/unicase/totitle.c: New file.
41337
41338         New module 'unicase/tolower'.
41339         * modules/unicase/tolower: New file.
41340         * lib/unicase/tolower.c: New file.
41341
41342         New module 'unicase/toupper'.
41343         * modules/unicase/toupper: New file.
41344         * lib/unicase/toupper.c: New file.
41345         * lib/unicase/simple-mapping.h: New file.
41346
41347         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41348         (mapping_table): New structure.
41349         (output_simple_mapping): New function.
41350         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41351         * modules/gen-uni-tables (Description): Update.
41352         * lib/unicase/toupper.h: New file, automatically generated by
41353         gen-uni-tables.
41354         * lib/unicase/tolower.h: New file, automatically generated by
41355         gen-uni-tables.
41356         * lib/unicase/totitle.h: New file, automatically generated by
41357         gen-uni-tables.
41358         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41359         gen-uni-tables.
41360         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41361         gen-uni-tables.
41362         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41363         gen-uni-tables.
41364
41365         New module 'unicase/base'.
41366         * modules/unicase/base: New file.
41367         * lib/unicase.h: New file.
41368
41369 2009-02-08  Bruno Haible  <bruno@clisp.org>
41370
41371         New module 'uniwbrk/ulc-wordbreaks'.
41372         * modules/uniwbrk/ulc-wordbreaks: New file.
41373         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41374
41375         New module 'uniwbrk/u32-wordbreaks'.
41376         * modules/uniwbrk/u32-wordbreaks: New file.
41377         * lib/uniwbrk/u32-wordbreaks.c: New file.
41378
41379         New module 'uniwbrk/u16-wordbreaks'.
41380         * modules/uniwbrk/u16-wordbreaks: New file.
41381         * lib/uniwbrk/u16-wordbreaks.c: New file.
41382
41383         New module 'uniwbrk/u8-wordbreaks'.
41384         * modules/uniwbrk/u8-wordbreaks: New file.
41385         * lib/uniwbrk/u8-wordbreaks.c: New file.
41386         * lib/uniwbrk/u-wordbreaks.h: New file.
41387
41388         New module 'uniwbrk/table'.
41389         * modules/uniwbrk/table: New file.
41390         * lib/uniwbrk/wbrktable.h: New file.
41391         * lib/uniwbrk/wbrktable.c: New file.
41392
41393         New module 'uniwbrk/wordbreak-property'.
41394         * modules/uniwbrk/wordbreak-property: New file.
41395         * lib/uniwbrk/wordbreak-property.c: New file.
41396
41397         * lib/gen-uni-tables.c (WBP_*): New enum items.
41398         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41399         (unicode_org_wbp): New variable.
41400         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41401         New functions.
41402         (wbp_table): New structure.
41403         (output_wbp, output_wbrk_tables): New functions.
41404         (main): Accept additional argument. Invoke fill_org_wbp,
41405         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41406         output_wbrk_tables.
41407         * modules/gen-uni-tables (Description): Update.
41408         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41409         gen-uni-tables.
41410
41411         New module 'uniwbrk/base'.
41412         * modules/uniwbrk/base: New file.
41413         * lib/uniwbrk.h: New file.
41414
41415 2009-02-08  Bruno Haible  <bruno@clisp.org>
41416
41417         Update to Unicode 5.1.0.
41418         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41419         U+2185..U+2188.
41420         (is_property_default_ignorable_code_point): Don't include characters
41421         of category Cc or Cs and not-a-characters.
41422         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41423         U+0D79, U+109E, U+109F, U+A60C.
41424         * lib/unictype/bidi_of.h: Regenerated.
41425         * lib/unictype/blocks.h: Regenerated.
41426         * lib/unictype/categ_C.h: Regenerated.
41427         * lib/unictype/categ_Cf.h: Regenerated.
41428         * lib/unictype/categ_Cn.h: Regenerated.
41429         * lib/unictype/categ_L.h: Regenerated.
41430         * lib/unictype/categ_Ll.h: Regenerated.
41431         * lib/unictype/categ_Lm.h: Regenerated.
41432         * lib/unictype/categ_Lo.h: Regenerated.
41433         * lib/unictype/categ_Lu.h: Regenerated.
41434         * lib/unictype/categ_M.h: Regenerated.
41435         * lib/unictype/categ_Mc.h: Regenerated.
41436         * lib/unictype/categ_Me.h: Regenerated.
41437         * lib/unictype/categ_Mn.h: Regenerated.
41438         * lib/unictype/categ_N.h: Regenerated.
41439         * lib/unictype/categ_Nd.h: Regenerated.
41440         * lib/unictype/categ_Nl.h: Regenerated.
41441         * lib/unictype/categ_No.h: Regenerated.
41442         * lib/unictype/categ_P.h: Regenerated.
41443         * lib/unictype/categ_Pd.h: Regenerated.
41444         * lib/unictype/categ_Pe.h: Regenerated.
41445         * lib/unictype/categ_Pf.h: Regenerated.
41446         * lib/unictype/categ_Pi.h: Regenerated.
41447         * lib/unictype/categ_Po.h: Regenerated.
41448         * lib/unictype/categ_Ps.h: Regenerated.
41449         * lib/unictype/categ_S.h: Regenerated.
41450         * lib/unictype/categ_Sk.h: Regenerated.
41451         * lib/unictype/categ_Sm.h: Regenerated.
41452         * lib/unictype/categ_So.h: Regenerated.
41453         * lib/unictype/categ_of.h: Regenerated.
41454         * lib/unictype/combining.h: Regenerated.
41455         * lib/unictype/ctype_alnum.h: Regenerated.
41456         * lib/unictype/ctype_alpha.h: Regenerated.
41457         * lib/unictype/ctype_graph.h: Regenerated.
41458         * lib/unictype/ctype_lower.h: Regenerated.
41459         * lib/unictype/ctype_print.h: Regenerated.
41460         * lib/unictype/ctype_punct.h: Regenerated.
41461         * lib/unictype/ctype_upper.h: Regenerated.
41462         * lib/unictype/decdigit.h: Regenerated.
41463         * lib/unictype/digit.h: Regenerated.
41464         * lib/unictype/mirror.h: Regenerated.
41465         * lib/unictype/numeric.h: Regenerated.
41466         * lib/unictype/pr_alphabetic.h: Regenerated.
41467         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41468         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41469         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41470         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41471         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41472         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41473         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41474         * lib/unictype/pr_combining.h: Regenerated.
41475         * lib/unictype/pr_dash.h: Regenerated.
41476         * lib/unictype/pr_decimal_digit.h: Regenerated.
41477         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41478         * lib/unictype/pr_deprecated.h: Regenerated.
41479         * lib/unictype/pr_diacritic.h: Regenerated.
41480         * lib/unictype/pr_extender.h: Regenerated.
41481         * lib/unictype/pr_format_control.h: Regenerated.
41482         * lib/unictype/pr_grapheme_base.h: Regenerated.
41483         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41484         * lib/unictype/pr_grapheme_link.h: Regenerated.
41485         * lib/unictype/pr_id_continue.h: Regenerated.
41486         * lib/unictype/pr_id_start.h: Regenerated.
41487         * lib/unictype/pr_ideographic.h: Regenerated.
41488         * lib/unictype/pr_ignorable_control.h: Regenerated.
41489         * lib/unictype/pr_lowercase.h: Regenerated.
41490         * lib/unictype/pr_math.h: Regenerated.
41491         * lib/unictype/pr_numeric.h: Regenerated.
41492         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41493         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41494         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41495         * lib/unictype/pr_other_id_continue.h: Regenerated.
41496         * lib/unictype/pr_other_lowercase.h: Regenerated.
41497         * lib/unictype/pr_other_math.h: Regenerated.
41498         * lib/unictype/pr_punctuation.h: Regenerated.
41499         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41500         * lib/unictype/pr_soft_dotted.h: Regenerated.
41501         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41502         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41503         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41504         * lib/unictype/pr_uppercase.h: Regenerated.
41505         * lib/unictype/pr_xid_continue.h: Regenerated.
41506         * lib/unictype/pr_xid_start.h: Regenerated.
41507         * lib/unictype/pr_zero_width.h: Regenerated.
41508         * lib/unictype/scripts.h: Regenerated.
41509         * lib/unictype/scripts_byname.gperf: Regenerated.
41510         * lib/unictype/sy_java_ident.h: Regenerated.
41511         * lib/unilbrk/lbrkprop1.h: Regenerated.
41512         * lib/unilbrk/lbrkprop2.h: Regenerated.
41513         * tests/unictype/test-categ_C.c: Regenerated.
41514         * tests/unictype/test-categ_Cf.c: Regenerated.
41515         * tests/unictype/test-categ_Cn.c: Regenerated.
41516         * tests/unictype/test-categ_L.c: Regenerated.
41517         * tests/unictype/test-categ_Ll.c: Regenerated.
41518         * tests/unictype/test-categ_Lm.c: Regenerated.
41519         * tests/unictype/test-categ_Lo.c: Regenerated.
41520         * tests/unictype/test-categ_Lu.c: Regenerated.
41521         * tests/unictype/test-categ_M.c: Regenerated.
41522         * tests/unictype/test-categ_Mc.c: Regenerated.
41523         * tests/unictype/test-categ_Me.c: Regenerated.
41524         * tests/unictype/test-categ_Mn.c: Regenerated.
41525         * tests/unictype/test-categ_N.c: Regenerated.
41526         * tests/unictype/test-categ_Nd.c: Regenerated.
41527         * tests/unictype/test-categ_Nl.c: Regenerated.
41528         * tests/unictype/test-categ_No.c: Regenerated.
41529         * tests/unictype/test-categ_P.c: Regenerated.
41530         * tests/unictype/test-categ_Pd.c: Regenerated.
41531         * tests/unictype/test-categ_Pe.c: Regenerated.
41532         * tests/unictype/test-categ_Pf.c: Regenerated.
41533         * tests/unictype/test-categ_Pi.c: Regenerated.
41534         * tests/unictype/test-categ_Po.c: Regenerated.
41535         * tests/unictype/test-categ_Ps.c: Regenerated.
41536         * tests/unictype/test-categ_S.c: Regenerated.
41537         * tests/unictype/test-categ_Sk.c: Regenerated.
41538         * tests/unictype/test-categ_Sm.c: Regenerated.
41539         * tests/unictype/test-categ_So.c: Regenerated.
41540         * tests/unictype/test-ctype_alnum.c: Regenerated.
41541         * tests/unictype/test-ctype_alpha.c: Regenerated.
41542         * tests/unictype/test-ctype_graph.c: Regenerated.
41543         * tests/unictype/test-ctype_lower.c: Regenerated.
41544         * tests/unictype/test-ctype_print.c: Regenerated.
41545         * tests/unictype/test-ctype_punct.c: Regenerated.
41546         * tests/unictype/test-ctype_upper.c: Regenerated.
41547         * tests/unictype/test-decdigit.h: Regenerated.
41548         * tests/unictype/test-digit.h: Regenerated.
41549         * tests/unictype/test-numeric.h: Regenerated.
41550         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41551         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41552         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41553         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41554         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41555         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41556         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41557         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41558         * tests/unictype/test-pr_combining.c: Regenerated.
41559         * tests/unictype/test-pr_dash.c: Regenerated.
41560         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41561         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41562         * tests/unictype/test-pr_deprecated.c: Regenerated.
41563         * tests/unictype/test-pr_diacritic.c: Regenerated.
41564         * tests/unictype/test-pr_extender.c: Regenerated.
41565         * tests/unictype/test-pr_format_control.c: Regenerated.
41566         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41567         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41568         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41569         * tests/unictype/test-pr_id_continue.c: Regenerated.
41570         * tests/unictype/test-pr_id_start.c: Regenerated.
41571         * tests/unictype/test-pr_ideographic.c: Regenerated.
41572         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41573         * tests/unictype/test-pr_lowercase.c: Regenerated.
41574         * tests/unictype/test-pr_math.c: Regenerated.
41575         * tests/unictype/test-pr_numeric.c: Regenerated.
41576         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41577         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41578         Regenerated.
41579         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41580         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41581         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41582         * tests/unictype/test-pr_other_math.c: Regenerated.
41583         * tests/unictype/test-pr_punctuation.c: Regenerated.
41584         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41585         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41586         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41587         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41588         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41589         * tests/unictype/test-pr_uppercase.c: Regenerated.
41590         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41591         * tests/unictype/test-pr_xid_start.c: Regenerated.
41592         * tests/unictype/test-pr_zero_width.c: Regenerated.
41593
41594         Update to Unicode 5.1.0.
41595         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41596         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41597         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41598         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41599         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41600         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41601         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41602         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41603         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41604         (nonspacing_table_ind): Update.
41605         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41606
41607         Update to Unicode 5.1.0.
41608         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41609         code transform.
41610         * lib/uniname/uniname.c (unicode_character_name,
41611         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41612         * lib/uniname/uninames.h: Regenerated.
41613         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41614
41615 2009-02-07  Bruno Haible  <bruno@clisp.org>
41616
41617         Merge gen-ctype and gen-lbrk into a single program.
41618         * lib/gen-uni-tables.c: New file, incorporating
41619         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41620         Add directory prefixes to the names of the generated files.
41621         * lib/unictype/gen-ctype.c: Remove file.
41622         * lib/unilbrk/gen-lbrk.c: Remove file.
41623         * modules/gen-uni-tables: New file.
41624         * modules/unictype/gen-ctype: Remove file.
41625         * modules/unilbrk/gen-lbrk: Remove file.
41626
41627 2009-02-07  Bruno Haible  <bruno@clisp.org>
41628
41629         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41630
41631         New module 'unistr/u32-strcoll'.
41632         * modules/unistr/u32-strcoll: New file.
41633         * lib/unistr/u32-strcoll.c: New file.
41634
41635         New module 'unistr/u16-strcoll'.
41636         * modules/unistr/u16-strcoll: New file.
41637         * lib/unistr/u16-strcoll.c: New file.
41638
41639         New module 'unistr/u8-strcoll'.
41640         * modules/unistr/u8-strcoll: New file.
41641         * lib/unistr/u8-strcoll.c: New file.
41642         * lib/unistr/u-strcoll.h: New file.
41643
41644 2009-02-07  Bruno Haible  <bruno@clisp.org>
41645
41646         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41647         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41648         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41649         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41650         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41651         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41652
41653 2009-02-07  Bruno Haible  <bruno@clisp.org>
41654
41655         Make 64-bit clean.
41656         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41657         output_combclass, output_bidi_category, output_decimal_digit,
41658         output_digit, output_numeric, output_mirror, output_scripts,
41659         output_ident_category): Use proper width specifier in format strings.
41660
41661 2009-02-07  Bruno Haible  <bruno@clisp.org>
41662
41663         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41664         failure behaviour.
41665
41666 2009-02-07  Jim Meyering  <meyering@redhat.com>
41667
41668         regex: avoid compilation failure with upcoming gcc-4.4
41669         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41670         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41671         "... error: integer overflow in preprocessor expression".
41672
41673 2009-02-05  Ben Pfaff  <blp@gnu.org>
41674
41675         Fix link errors on Windows when close module is used.
41676         * modules/close: Add $(LIB_CLOSE) to Link section.
41677         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41678         $(LIB_CLOSE) on Windows.
41679
41680 2009-02-05  Jim Meyering  <meyering@redhat.com>
41681
41682         still avoid unused-parameter warnings, but do it cleanly
41683         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41684         (get_fs_usage): Cast to void instead.
41685         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41686         (dev_from_mount_options, read_file_system_list): Cast to void.
41687         Prompted by Bruno Haible.
41688
41689 2009-02-04  Jim Meyering  <meyering@redhat.com>
41690
41691         fsusage.c: correct copyright year
41692         * lib/fsusage.c: Reflect year in which the change is pushed into
41693
41694         avoid misc. warnings
41695         * lib/fsusage.c (UNUSED_PARAM): Define.
41696         (get_fs_usage): Mark parameter "disk" as unused.
41697         * lib/getugroups.c (getgrent): Use "void" in prototype.
41698         * lib/mountlist.c: Mark unused parameters.
41699         (read_file_system_list): Declare a local with "const".
41700         * lib/nanosleep.c (getnow): Declare static.
41701         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41702
41703         dirfd: set errno upon failure
41704         * lib/dirfd.c: Include <errno.h>.
41705         Set errno to ENOTSUP when returning -1.
41706         * modules/dirfd (Depends-on): Add errno.
41707         Suggested by John Kodis <kodis@comcast.net>.
41708
41709 2009-02-01  Bruno Haible  <bruno@clisp.org>
41710
41711         Don't assume sizeof (long) >= sizeof (void *).
41712         * lib/memcmp.c: Include stdint.h.
41713         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41714         srcp2 to 'const byte *'.
41715         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41716         types to uintptr_t.
41717         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41718         * modules/memcmp (Depends-on): Add stdint.
41719         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41720
41721 2009-01-30  Eric Blake  <ebb9@byu.net>
41722
41723         fix more require-before-expand issues
41724         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41725         expand, AC_PROG_AWK.
41726         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41727
41728 2009-01-28  Eric Blake  <ebb9@byu.net>
41729
41730         version-etc: use consistent URL formatting
41731         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41732         Improve formatting.  Use fputs for string without %.
41733
41734 2009-01-28  Jim Meyering  <meyering@redhat.com>
41735
41736         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41737         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41738         "underquoted definition of NAME" from autoconf-2.59.
41739
41740 2009-01-28  Bruno Haible  <bruno@clisp.org>
41741
41742         * doc/gnulib.texi: Add "Obsolete modules" to index.
41743
41744 2009-01-28  Jim Meyering  <meyering@redhat.com>
41745
41746         useless-if-before-free: recognize more variants
41747         * build-aux/useless-if-before-free: Also recognize e.g.,
41748         if (NULL != p) free (p);
41749
41750 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41751
41752         test-getaddrinfo: skip (don't fail) this test when there's no network
41753         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41754         on the presumption that it means you lack network access.
41755
41756 2009-01-26  Jim Meyering  <meyering@redhat.com>
41757
41758         fflush: avoid warnings on modern systems
41759         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41760         pos and result, into scopes where they're used.
41761
41762 2009-01-26  Eric Blake  <ebb9@byu.net>
41763
41764         Silence warning reintroduced by recent extensions patch.
41765         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41766         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41767         autoconf.
41768
41769         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41770         * m4/00gnulib.m4: New file.
41771         * gnulib-tool (func_get_filelist): Always use it.
41772         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41773         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41774
41775 2009-01-25  Bruno Haible  <bruno@clisp.org>
41776
41777         Make test-quotearg work on MacOS X and AIX.
41778         * tests/test-quotearg.sh: New file.
41779         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41780         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41781         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41782         include <libintl.h>.
41783         (fake_locale): Remove variable.
41784         (gettext, dgettext, dcgettext): Remove functions.
41785         (main): Instead of setting a fake locale, set a real locale. Call
41786         textdomain and bindtextdomain.
41787         * modules/quotearg-tests (Files): Add the new files.
41788         (Depends-on): Add gettext, setenv, unsetenv.
41789         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41790         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41791         Augment TESTS_ENVIRONMENT.
41792
41793 2009-01-25  Bruno Haible  <bruno@clisp.org>
41794
41795         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41796         fr_FR.ISO8859-1 locale on MacOS X.
41797         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41798         ja_JP.eucJP locale on MacOS X.
41799         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41800         zh_CN.GB18030 locale on MacOS X.
41801
41802 2009-01-25  Bruno Haible  <bruno@clisp.org>
41803
41804         Avoid link errors on MacOS X 10.3.
41805         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41806         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41807
41808 2009-01-25  Bruno Haible  <bruno@clisp.org>
41809
41810         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41811         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41812         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41813         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41814         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41815         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41816         posix_spawnattr_init, posix_spawnattr_setsigmask,
41817         posix_spawnattr_setflags, posix_spawnattr_destroy.
41818
41819         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41820         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41821         * modules/execute (Files): Remove m4/posix_spawn.m4.
41822         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41823         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41824         posix_spawnattr_init, posix_spawnattr_setsigmask,
41825         posix_spawnattr_setflags, posix_spawnattr_destroy.
41826
41827 2009-01-25  Bruno Haible  <bruno@clisp.org>
41828
41829         * lib/glthread/threadlib.c: Include <stdlib.h>.
41830
41831 2009-01-25  Bruno Haible  <bruno@clisp.org>
41832
41833         * lib/glthread/threadlib.c (dummy): New declaration.
41834
41835 2009-01-25  Bruno Haible  <bruno@clisp.org>
41836
41837         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41838         multibyte characters also for the GB18030 encoding. Don't crash when
41839         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41840
41841 2009-01-25  Bruno Haible  <bruno@clisp.org>
41842
41843         Avoid redefining 'struct random_data' on OSF/1 5.1.
41844         * lib/stdlib.in.h: Include <random.h> if it exists.
41845         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41846         HAVE_RANDOM_H. Include <random.h> when testing whether
41847         'struct random_data' exists.
41848         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41849
41850 2009-01-25  Bruno Haible  <bruno@clisp.org>
41851
41852         Don't install charset.alias on MacOS X >= 10.3.
41853         * lib/localcharset.c (DARWIN7): New macro.
41854         (get_charset_aliases): Hardcode the result for Darwin7.
41855         * modules/localcharset (install-exec-local): Don't install
41856         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41857
41858 2009-01-25  Bruno Haible  <bruno@clisp.org>
41859
41860         Don't install charset.alias on mingw and Cygwin.
41861         * modules/localcharset (install-exec-local): Don't install
41862         charset.alias on mingw and Cygwin, if the file does not yet exist.
41863         The result for these platforms is hardcoded in localcharset.c.
41864
41865 2009-01-25  Bruno Haible  <bruno@clisp.org>
41866
41867         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41868         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41869         before requiring AC_USE_SYSTEM_EXTENSIONS.
41870
41871 2009-01-25  Jim Meyering  <meyering@redhat.com>
41872
41873         c-strtod: avoid warnings
41874         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41875         "assignment discards qualifiers from pointer target type" warnings.
41876
41877 2009-01-24  Bruno Haible  <bruno@clisp.org>
41878
41879         Add support for non-UTF-8 locales on MacOS X.
41880         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41881         canonical encodings. For Darwin 7 and newer, don't map traditional
41882         encodings to UTF-8.
41883         Reported by Vincent Lefevre <vincent@vinc17.org>
41884         at <http://savannah.gnu.org/bugs/?25235>.
41885
41886 2009-01-24  Bruno Haible  <bruno@clisp.org>
41887
41888         * doc/gnulib.texi (Obsolete modules): New section.
41889         Reported by Mike Frysinger <vapier@gentoo.org>.
41890
41891 2009-01-24  Bruno Haible  <bruno@clisp.org>
41892
41893         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41894         (%.dvi): New rule.
41895
41896 2009-01-24  Bruno Haible  <bruno@clisp.org>
41897
41898         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41899         Reported by Eric Blake.
41900
41901 2009-01-24  Bruno Haible  <bruno@clisp.org>
41902
41903         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41904         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41905         Reported by Gary V. Vaughan <gary@gnu.org>.
41906
41907 2009-01-24  Bruno Haible  <bruno@clisp.org>
41908
41909         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41910
41911 2009-01-23  Bruno Haible  <bruno@clisp.org>
41912
41913         Make c-strtod, c-strtold usable in libraries.
41914         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41915         (C_STRTOD): Call strdup instead of xstrdup.
41916         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41917         * modules/c-strtold (Depends-on): Likewise.
41918         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41919         * NEWS: Mention the change.
41920         Reported by Michael Gold <mgold@ncf.ca>.
41921
41922 2009-01-23  Jim Meyering  <meyering@redhat.com>
41923
41924         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41925         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41926         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41927
41928 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41929
41930         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41931         GNU CoreUtils.
41932         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41933         * modules/version-etc (Description): Update.
41934
41935 2009-01-22  Bruno Haible  <bruno@clisp.org>
41936
41937         Cache the C locale object.
41938         * lib/c-strtod.c (c_locale_cache): New variable.
41939         (c_locale): New function.
41940         (C_STRTOD): Use it, and don't call freelocale.
41941         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41942         Suggested by Paolo Bonzini.
41943
41944 2009-01-21  Bruno Haible  <bruno@clisp.org>
41945
41946         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41947         conditions other than overflow.
41948
41949 2009-01-21  Bruno Haible  <bruno@clisp.org>
41950
41951         * lib/c-strtod.c: Include errno.h.
41952         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41953         value from STRTOD_L and STRTOD.
41954
41955 2009-01-21  Bruno Haible  <bruno@clisp.org>
41956         and Jim Meyering  <meyering@redhat.com>
41957
41958         nanosleep: skip configure test (fail it) for apple universal builds
41959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41960         universal builds, assume that nanosleep does not work.
41961         * modules/nanosleep (Depends-on): Add multiarch.
41962
41963         mktime: skip configure test (fail it) for apple universal builds
41964         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41965         universal builds, assume that mktime does not work.
41966         * modules/mktime (Depends-on): Add multiarch.
41967
41968 2009-01-21  Eric Blake  <ebb9@byu.net>
41969
41970         multiarch: avoid expand-before-require warning
41971         * modules/multiarch (configure.ac): Require, rather than expand,
41972         gl_MULTIARCH.
41973         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41974         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41975         enforce that all clients require it.  Partial reversion of
41976         2008-12-29 patch.
41977
41978         error: avoid expand-before-require warning
41979         * modules/errno (configure.ac): Require, rather than expand,
41980         gl_HEADER_ERRNO_H.
41981         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41982         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41983         enforce that all clients require it.
41984
41985         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41986         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41987         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41988         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41989
41990 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41991
41992         Revert:
41993         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41994
41995         regex: do not depend on obsolete modules.
41996         * modules/regex: Remove memcmp and memmove.
41997
41998 2009-01-20  Bruno Haible  <bruno@clisp.org>
41999
42000         Make the 'link' module link on Windows NT 4.
42001         * lib/link.c (_WIN32_WINNT): Don't define.
42002         (CreateHardLinkFuncType): New type.
42003         (CreateHardLinkFunc, initialized): New variables.
42004         (initialize): New function.
42005         (link): Invoke CreateHardLink indirectly through the function pointer.
42006
42007 2009-01-20  Bruno Haible  <bruno@clisp.org>
42008
42009         Fix compilation failure on mingw.
42010         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42011
42012 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42013
42014         * doc/c-strtod.texi: Mention a couple of restrictions.
42015
42016 2009-01-20  Jim Meyering  <meyering@redhat.com>
42017
42018         gettimeofday: move more declarations out of functions
42019         * lib/gettimeofday.c: Move extern declarations of tzset and
42020         gmtime out of containing functions.  Prompted by Bruno Haible.
42021
42022 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42023
42024         regex: do not depend on obsolete modules.
42025         * modules/regex: Remove memcmp and memmove.
42026
42027 2009-01-19  Bruno Haible  <bruno@clisp.org>
42028
42029         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42030         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42031         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42032         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42033         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42034
42035 2009-01-19  Bruno Haible  <bruno@clisp.org>
42036
42037         * tests/test-link.c: Include <errno.h>.
42038         (main): Exit with code 77 when a hard link cannot be created due to
42039         the file system.
42040         * tests/test-link.sh: Skip test when a hard link cannot be created due
42041         to the file system.
42042         Suggested by Eric Blake.
42043
42044 2009-01-19  Martin Lambers  <marlam@marlam.de>
42045
42046         * modules/link-tests: New file.
42047         * tests/test-link.sh: New file.
42048         * tests/test-link.c: New file.
42049
42050 2009-01-19  Eric Blake  <ebb9@byu.net>
42051
42052         doc: mention another function added in cygwin 1.7.0
42053         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42054         Another new function in cygwin 1.7.
42055
42056 2009-01-19  Bruno Haible  <bruno@clisp.org>
42057
42058         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42059         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42060         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42061         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42062         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42063         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42064         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42065         * m4/md4.m4 (gl_MD4): Likewise.
42066         * m4/md5.m4 (gl_MD5): Likewise.
42067         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42068         * m4/sha1.m4 (gl_SHA1): Likewise.
42069         * m4/sha256.m4 (gl_SHA256): Likewise.
42070         * m4/sha512.m4 (gl_SHA512): Likewise.
42071
42072 2009-01-19  Bruno Haible  <bruno@clisp.org>
42073
42074         * modules/uniname/uniname-tests (Depends-on): Add progname.
42075         * tests/uniname/test-uninames.c: Include progname.h.
42076         (main): Call set_program_name.
42077
42078         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42079         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42080         (main): Call set_program_name.
42081
42082         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42083         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42084         (main): Call set_program_name.
42085
42086         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42087         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42088         (main): Call set_program_name.
42089
42090         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42091         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42092         (main): Call set_program_name.
42093
42094         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42095         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42096         (main): Call set_program_name.
42097
42098         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42099         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42100         (main): Call set_program_name.
42101
42102         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42103         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42104         (main): Call set_program_name.
42105
42106         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42107         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42108         (main): Call set_program_name.
42109
42110 2009-01-19  Eric Blake  <ebb9@byu.net>
42111
42112         test-unistd: test previous patch
42113         * tests/test-unistd.c: Test *_FILENO macros.
42114
42115         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42116         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42117         Guarantee a definition.
42118         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42119         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42120         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42121         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42122         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42123         Likewise.
42124         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42125         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42126         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42127         Likewise.
42128         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42129         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42130         (STDERR_FILENO): Likewise.
42131         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42132         (STDERR_FILENO): Likewise.
42133         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42134         (STDERR_FILENO): Likewise.
42135         Reported by Elbert Pol.
42136
42137 2009-01-19  Eric Blake  <ebb9@byu.net>
42138
42139         doc: mention more functions added in cygwin 1.7.0
42140         * doc/posix-functions/abort.texi (abort): Update wording related
42141         to cygwin.
42142         * doc/posix-functions/daylight.texi (daylight): Likewise.
42143         * doc/posix-functions/optarg.texi (optarg): Likewise.
42144         * doc/posix-functions/optarg.texi (opterr): Likewise.
42145         * doc/posix-functions/optarg.texi (optind): Likewise.
42146         * doc/posix-functions/optarg.texi (optopt): Likewise.
42147         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42148         worked in 1.5.x, and was withdrawn in 1.7.
42149         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42150         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42151         cygwin versions.
42152         * doc/posix-functions/perror.texi (perror): Likewise.
42153         * doc/posix-functions/printf.texi (printf): Likewise.
42154         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42155         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42156         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42157         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42158         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42159         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42160         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42161         Likewise.
42162         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42163         Likewise.
42164         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42165         this function.
42166         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42167         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42168         Likewise.
42169         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42170         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42171         * doc/posix-functions/confstr.texi (confstr): Likewise.
42172         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42173         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42174         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42175         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42176         * doc/posix-functions/fputws.texi (fputws): Likewise.
42177         * doc/posix-functions/fwide.texi (fwide): Likewise.
42178         * doc/posix-functions/getwc.texi (getwc): Likewise.
42179         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42180         * doc/posix-functions/putwc.texi (putwc): Likewise.
42181         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42182         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42183         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42184         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42185         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42186         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42187         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42188         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42189         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42190         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42191         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42192
42193 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42194
42195         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42196         * lib/ioctl.c: Include <sys/ioctl.h>.
42197
42198 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42199
42200         * modules/getdate-tests (Depends-on): Add progname.
42201         * tests/test-getdate.c: Use progname module, to avoid link errors
42202         on non-glibc systems.
42203
42204 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42205
42206         * modules/filenamecat-tests (Depends-on): Add progname.
42207         * modules/fstrcmp-tests (Depends-on): Likewise.
42208
42209         * tests/test-filenamecat.c: Use progname module, to avoid link
42210         errors on non-glibc systems.
42211         * tests/test-fstrcmp.c: Likewise.
42212
42213 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42214
42215         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42216         * lib/gettimeofday.c: Move extern declaration out of function.
42217
42218 2009-01-18  Bruno Haible  <bruno@clisp.org>
42219
42220         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42221         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42222         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42223
42224 2009-01-18  Bruno Haible  <bruno@clisp.org>
42225
42226         * lib/strftime.c (MEMPCPY): Remove unused macro.
42227         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42228
42229 2009-01-18  Martin Lambers  <marlam@marlam.de>
42230
42231         New module 'link'.
42232         * lib/unistd.in.h (link): New declaration.
42233         * lib/link.c: New file.
42234         * m4/link.m4: New file.
42235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42236         HAVE_LINK.
42237         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42238         * modules/link: New file.
42239         * doc/posix-functions/link.texi: Mention the new module.
42240
42241 2009-01-18  Bruno Haible  <bruno@clisp.org>
42242
42243         * tests/test-avltree_list.c (main): Call set_program_name.
42244         * tests/test-avltree_oset.c (main): Likewise.
42245         * tests/test-obstack-printf.c: Include progname.h.
42246         (main): Call set_program_name.
42247         * tests/test-quotearg.c: Include progname.h.
42248         (main): Call set_program_name.
42249         * tests/test-xmemdup0.c: Include progname.h.
42250         (main): Call set_program_name.
42251
42252 2009-01-18  Bruno Haible  <bruno@clisp.org>
42253
42254         New module 'alphasort'.
42255         * lib/dirent.in.h (alphasort): New declaration.
42256         * lib/alphasort.c: New file, from glibc with modifications.
42257         * m4/alphasort.m4: New file.
42258         * modules/alphasort: New file.
42259         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42260         HAVE_ALPHASORT.
42261         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42262         HAVE_ALPHASORT.
42263         * doc/posix-functions/alphasort.texi: Mention the new module and the
42264         portability problems.
42265
42266 2009-01-18  Bruno Haible  <bruno@clisp.org>
42267
42268         New module 'scandir'.
42269         * lib/dirent.in.h (scandir): New declaration.
42270         * lib/scandir.c: New file, from glibc with modifications.
42271         * m4/scandir.m4: New file.
42272         * modules/scandir: New file.
42273         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42274         HAVE_SCANDIR.
42275         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42276         HAVE_SCANDIR.
42277         * doc/posix-functions/scandir.texi: Mention the new module and the
42278         portability problems.
42279
42280 2009-01-17  Bruno Haible  <bruno@clisp.org>
42281
42282         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42283         Update documentation.
42284         (func_remove_suffix): Escape all dots in the suffix. Update
42285         documentation.
42286         (func_filter_filelist): Update documentation.
42287         Reported by Ralf Wildenhues.
42288
42289 2009-01-17  Bruno Haible  <bruno@clisp.org>
42290
42291         * modules/dprintf-posix-tests: New file.
42292         * tests/test-dprintf-posix.sh: New file.
42293         * tests/test-dprintf-posix.c: New file.
42294
42295         New modules 'dprintf', 'dprintf-posix'.
42296         * lib/stdio.in.h (dprintf): New declaration.
42297         * lib/dprintf.c: New file.
42298         * m4/dprintf.m4: New file.
42299         * m4/dprintf-posix.m4: New file.
42300         * modules/dprintf: New file.
42301         * modules/dprintf-posix: New file.
42302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42303         HAVE_DPRINTF, REPLACE_DPRINTF.
42304         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42305         HAVE_DPRINTF, REPLACE_DPRINTF.
42306         * doc/posix-functions/dprintf.texi: Mention the new modules.
42307
42308 2009-01-17  Bruno Haible  <bruno@clisp.org>
42309
42310         * modules/vdprintf-posix-tests: New file.
42311         * tests/test-vdprintf-posix.sh: New file.
42312         * tests/test-vdprintf-posix.c: New file.
42313
42314         New modules 'vdprintf', 'vdprintf-posix'.
42315         * lib/stdio.in.h (vdprintf): New declaration.
42316         * lib/vdprintf.c: New file.
42317         * m4/vdprintf.m4: New file.
42318         * m4/vdprintf-posix.m4: New file.
42319         * modules/vdprintf: New file.
42320         * modules/vdprintf-posix: New file.
42321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42322         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42323         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42324         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42325         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42326
42327 2009-01-17  Bruno Haible  <bruno@clisp.org>
42328
42329         Fix replacement of fopen on mingw.
42330         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42331         mingw.
42332
42333 2009-01-17  Bruno Haible  <bruno@clisp.org>
42334
42335         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42336         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42337
42338 2009-01-17  Bruno Haible  <bruno@clisp.org>
42339
42340         Avoid test-fflush2.sh failure on mingw.
42341         * tests/test-fflush2.c: Include binary-io.h.
42342         (main): Put standard input into binary mode.
42343         * modules/fflush-tests (Depends-on): Add binary-io.
42344
42345 2009-01-17  Bruno Haible  <bruno@clisp.org>
42346
42347         * lib/wchar.in.h: In another particular situation, include only the
42348         system's <wchar.h> file.
42349         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42350         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42351         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42352
42353 2009-01-17  Bruno Haible  <bruno@clisp.org>
42354
42355         Support for stripping executables in --enable-relocatable.
42356         * build-aux/install-reloc: Expect one more argument, or an environment
42357         variable RELOC_STRIP_PROG. If set, strip the destination program and
42358         its wrapper.
42359         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42360         RELOC_STRIP_PROG.
42361         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42362         to set RELOCATABLE_STRIP.
42363         * NEWS: Mention the new Makefile requirement.
42364
42365 2009-01-17  Bruno Haible  <bruno@clisp.org>
42366
42367         * build-aux/install-reloc: Remove debugging information left over by
42368         C compiler on MacOS X.
42369
42370 2009-01-17  Bruno Haible  <bruno@clisp.org>
42371
42372         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42373         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42374         _NSGetExecutablePath.
42375
42376 2009-01-16  Jim Meyering  <meyering@redhat.com>
42377
42378         strerror: avoid warnings about discarding "const"
42379         * lib/strerror.c (rpl_strerror): Instead of returning a const
42380         string from each and every "case", use a variable, and add a single
42381         cast after the switch.
42382
42383 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42384
42385         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42386
42387 2009-01-16  Bruno Haible  <bruno@clisp.org>
42388
42389         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42390         array initializer syntax that also works in C++ mode.
42391         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42392
42393 2009-01-16  Jim Meyering  <meyering@redhat.com>
42394
42395         poll: suppress a warning
42396         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42397         to ignore "...unsigned expression < 0 is always false" warnings.
42398
42399 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42400
42401         poll: remove declarations of unused variables
42402         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42403         sockbuf and optlen.
42404
42405 2009-01-15  Bruno Haible  <bruno@clisp.org>
42406
42407         Make fflush-after-ungetc POSIX compliant on BSD systems.
42408         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42409         (clear_ungetc_buffer): Implement also for other systems.
42410         (rpl_fflush): On glibc systems, invoke
42411         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42412         clear_ungetc_buffer after fetching the stream's position, not before.
42413
42414 2009-01-15  Bruno Haible  <bruno@clisp.org>
42415
42416         Make fflush-after-ungetc POSIX compliant on glibc systems.
42417         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42418         after ungetc.
42419         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42420         (rpl_fflush): On glibc systems, simply call the system's fflush
42421         function after clearing the ungetc buffer.
42422         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42423         Instead, lseek only to the end of file, then use the system's fseeko
42424         for the rest. On glibc systems, reset the EOF indicator bit.
42425
42426 2009-01-15  Jim Meyering  <meyering@redhat.com>
42427
42428         openmp.m4: revert quote-adding change, for portability to older autoconf
42429         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42430         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42431         Simon Josefsson noticed the problem when using autoconf-2.61.
42432
42433 2009-01-15  Bruno Haible  <bruno@clisp.org>
42434
42435         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42436         * tests/test-fflush2.c (ASSERT): Always fail.
42437         (main): Add two tests for fflush() after ungetc(), taking into account
42438         the Austin Group's clarification.
42439         Suggested by Eric Blake.
42440
42441 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42442
42443         mktime.m4: remove K&R-style function prototypes
42444         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42445         for the Sun C++ compiler.
42446
42447 2009-01-14  Bruno Haible  <bruno@clisp.org>
42448
42449         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42450         while including <wchar.h>.
42451         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42452         the system's <wchar.h> file.
42453         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42454
42455 2009-01-14  Bruno Haible  <bruno@clisp.org>
42456
42457         * m4/csharp.m4: Don't mention gettext on the serial number line.
42458         * m4/csharpexec.m4: Likewise.
42459         * m4/eaccess.m4: Likewise.
42460         * m4/javaexec.m4: Likewise.
42461         * m4/sig_atomic_t.m4: Likewise.
42462         * m4/tmpdir.m4: Likewise.
42463         * m4/intldir.m4: Bump gettext version.
42464         * m4/lib-ld.m4: Likewise.
42465
42466 2009-01-14  Bruno Haible  <bruno@clisp.org>
42467
42468         * lib/progname.c (set_program_name): Add more comments.
42469         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42470
42471 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42472
42473         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42474         were sys/stat.h does not define it.
42475
42476 2009-01-14  Jim Meyering  <meyering@redhat.com>
42477
42478         many *.m4 files: improve m4 quoting
42479         99% of this change was performed by running the following commands:
42480         git ls-files | grep '\.m4$' | xargs perl -pi \
42481           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42482           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42483           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42484           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42485         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42486         The remainder were to add Copyright dates, increment serial numbers,
42487         undo some changes in comments, exclude m4/intl.m4, and add quotes
42488         around the "1" in ",1" where the unusual spacing prohibited the
42489         above regexps from doing the job.  For more details, see
42490         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42491         * m4/acl.m4: Modified.
42492         * m4/afs.m4: Likewise.
42493         * m4/alloca.m4: Likewise.
42494         * m4/argp.m4: Likewise.
42495         * m4/argz.m4: Likewise.
42496         * m4/atexit.m4: Likewise.
42497         * m4/bison-i18n.m4: Likewise.
42498         * m4/bison.m4: Likewise.
42499         * m4/byteswap.m4: Likewise.
42500         * m4/c-stack.m4: Likewise.
42501         * m4/c-strtod.m4: Likewise.
42502         * m4/calloc.m4: Likewise.
42503         * m4/canonicalize-lgpl.m4: Likewise.
42504         * m4/chown.m4: Likewise.
42505         * m4/clock_time.m4: Likewise.
42506         * m4/codeset.m4: Likewise.
42507         * m4/copy-file.m4: Likewise.
42508         * m4/csharp.m4: Likewise.
42509         * m4/csharpcomp.m4: Likewise.
42510         * m4/csharpexec.m4: Likewise.
42511         * m4/d-ino.m4: Likewise.
42512         * m4/d-type.m4: Likewise.
42513         * m4/dirfd.m4: Likewise.
42514         * m4/double-slash-root.m4: Likewise.
42515         * m4/eaccess.m4: Likewise.
42516         * m4/eealloc.m4: Likewise.
42517         * m4/environ.m4: Likewise.
42518         * m4/errno_h.m4: Likewise.
42519         * m4/euidaccess.m4: Likewise.
42520         * m4/execute.m4: Likewise.
42521         * m4/fatal-signal.m4: Likewise.
42522         * m4/fchdir.m4: Likewise.
42523         * m4/fcntl_h.m4: Likewise.
42524         * m4/fileblocks.m4: Likewise.
42525         * m4/filenamecat.m4: Likewise.
42526         * m4/findprog.m4: Likewise.
42527         * m4/flexmember.m4: Likewise.
42528         * m4/fnmatch.m4: Likewise.
42529         * m4/fopen.m4: Likewise.
42530         * m4/fpending.m4: Likewise.
42531         * m4/fprintf-posix.m4: Likewise.
42532         * m4/free.m4: Likewise.
42533         * m4/frexp.m4: Likewise.
42534         * m4/frexpl.m4: Likewise.
42535         * m4/fsusage.m4: Likewise.
42536         * m4/ftruncate.m4: Likewise.
42537         * m4/gc-camellia.m4: Likewise.
42538         * m4/gc-random.m4: Likewise.
42539         * m4/gc.m4: Likewise.
42540         * m4/getaddrinfo.m4: Likewise.
42541         * m4/getcwd-abort-bug.m4: Likewise.
42542         * m4/getcwd-path-max.m4: Likewise.
42543         * m4/getdate.m4: Likewise.
42544         * m4/getdomainname.m4: Likewise.
42545         * m4/getgroups.m4: Likewise.
42546         * m4/gethostname.m4: Likewise.
42547         * m4/gethrxtime.m4: Likewise.
42548         * m4/getline.m4: Likewise.
42549         * m4/getloadavg.m4: Likewise.
42550         * m4/getndelim2.m4: Likewise.
42551         * m4/getpass.m4: Likewise.
42552         * m4/gettext.m4: Likewise.
42553         * m4/gettime.m4: Likewise.
42554         * m4/gettimeofday.m4: Likewise.
42555         * m4/gnulib-common.m4: Likewise.
42556         * m4/group-member.m4: Likewise.
42557         * m4/host-os.m4: Likewise.
42558         * m4/iconv.m4: Likewise.
42559         * m4/iconv_open.m4: Likewise.
42560         * m4/inet_ntop.m4: Likewise.
42561         * m4/inet_pton.m4: Likewise.
42562         * m4/inline.m4: Likewise.
42563         * m4/intldir.m4: Likewise.
42564         * m4/intlmacosx.m4: Likewise.
42565         * m4/intmax.m4: Likewise.
42566         * m4/intmax_t.m4: Likewise.
42567         * m4/inttypes.m4: Likewise.
42568         * m4/inttypes_h.m4: Likewise.
42569         * m4/inttypes-pri.m4: Likewise.
42570         * m4/isapipe.m4: Likewise.
42571         * m4/isnand.m4: Likewise.
42572         * m4/isnanf.m4: Likewise.
42573         * m4/isnanl.m4: Likewise.
42574         * m4/javacomp.m4: Likewise.
42575         * m4/javaexec.m4: Likewise.
42576         * m4/jm-winsz1.m4: Likewise.
42577         * m4/jm-winsz2.m4: Likewise.
42578         * m4/lchown.m4: Likewise.
42579         * m4/lcmessage.m4: Likewise.
42580         * m4/ldexpl.m4: Likewise.
42581         * m4/lib-ld.m4: Likewise.
42582         * m4/lib-link.m4: Likewise.
42583         * m4/libsigsegv.m4: Likewise.
42584         * m4/link-follow.m4: Likewise.
42585         * m4/localcharset.m4: Likewise.
42586         * m4/locale-fr.m4: Likewise.
42587         * m4/locale-ja.m4: Likewise.
42588         * m4/locale-tr.m4: Likewise.
42589         * m4/locale-zh.m4: Likewise.
42590         * m4/lock.m4: Likewise.
42591         * m4/longlong.m4: Likewise.
42592         * m4/ls-mntd-fs.m4: Likewise.
42593         * m4/lstat.m4: Likewise.
42594         * m4/malloc.m4: Likewise.
42595         * m4/mathl.m4: Likewise.
42596         * m4/mbrtowc.m4: Likewise.
42597         * m4/mbstate_t.m4: Likewise.
42598         * m4/mbswidth.m4: Likewise.
42599         * m4/memchr.m4: Likewise.
42600         * m4/memcmp.m4: Likewise.
42601         * m4/memcpy.m4: Likewise.
42602         * m4/memmem.m4: Likewise.
42603         * m4/memmove.m4: Likewise.
42604         * m4/mempcpy.m4: Likewise.
42605         * m4/memrchr.m4: Likewise.
42606         * m4/memset.m4: Likewise.
42607         * m4/minmax.m4: Likewise.
42608         * m4/mkdir-slash.m4: Likewise.
42609         * m4/mkdtemp.m4: Likewise.
42610         * m4/mktime.m4: Likewise.
42611         * m4/mmap-anon.m4: Likewise.
42612         * m4/mountlist.m4: Likewise.
42613         * m4/nanosleep.m4: Likewise.
42614         * m4/nls.m4: Likewise.
42615         * m4/nocrash.m4: Likewise.
42616         * m4/open.m4: Likewise.
42617         * m4/openat.m4: Likewise.
42618         * m4/openmp.m4: Likewise.
42619         * m4/pathmax.m4: Likewise.
42620         * m4/perl.m4: Likewise.
42621         * m4/physmem.m4: Likewise.
42622         * m4/pipe.m4: Likewise.
42623         * m4/po.m4: Likewise.
42624         * m4/poll.m4: Likewise.
42625         * m4/posixtm.m4: Likewise.
42626         * m4/posixver.m4: Likewise.
42627         * m4/printf-frexp.m4: Likewise.
42628         * m4/printf-frexpl.m4: Likewise.
42629         * m4/printf-posix.m4: Likewise.
42630         * m4/printf-posix-rpl.m4: Likewise.
42631         * m4/printf.m4: Likewise.
42632         * m4/progtest.m4: Likewise.
42633         * m4/putenv.m4: Likewise.
42634         * m4/readline.m4: Likewise.
42635         * m4/readlink.m4: Likewise.
42636         * m4/readutmp.m4: Likewise.
42637         * m4/realloc.m4: Likewise.
42638         * m4/regex.m4: Likewise.
42639         * m4/relocatable.m4: Likewise.
42640         * m4/relocatable-lib.m4: Likewise.
42641         * m4/rename-dest-slash.m4: Likewise.
42642         * m4/rename.m4: Likewise.
42643         * m4/rmdir-errno.m4: Likewise.
42644         * m4/rmdir.m4: Likewise.
42645         * m4/roundf.m4: Likewise.
42646         * m4/roundl.m4: Likewise.
42647         * m4/rpmatch.m4: Likewise.
42648         * m4/save-cwd.m4: Likewise.
42649         * m4/selinux-selinux-h.m4: Likewise.
42650         * m4/setenv.m4: Likewise.
42651         * m4/settime.m4: Likewise.
42652         * m4/sig2str.m4: Likewise.
42653         * m4/sig_atomic_t.m4: Likewise.
42654         * m4/signalblocking.m4: Likewise.
42655         * m4/signbit.m4: Likewise.
42656         * m4/sigpipe.m4: Likewise.
42657         * m4/sockets.m4: Likewise.
42658         * m4/sockpfaf.m4: Likewise.
42659         * m4/st_dm_mode.m4: Likewise.
42660         * m4/stat-time.m4: Likewise.
42661         * m4/stdbool.m4: Likewise.
42662         * m4/stdint.m4: Likewise.
42663         * m4/stdint_h.m4: Likewise.
42664         * m4/stpcpy.m4: Likewise.
42665         * m4/stpncpy.m4: Likewise.
42666         * m4/strcase.m4: Likewise.
42667         * m4/strchrnul.m4: Likewise.
42668         * m4/strcspn.m4: Likewise.
42669         * m4/strdup.m4: Likewise.
42670         * m4/strftime.m4: Likewise.
42671         * m4/strndup.m4: Likewise.
42672         * m4/strnlen.m4: Likewise.
42673         * m4/strpbrk.m4: Likewise.
42674         * m4/strptime.m4: Likewise.
42675         * m4/strsep.m4: Likewise.
42676         * m4/strtod.m4: Likewise.
42677         * m4/strtoimax.m4: Likewise.
42678         * m4/strtok_r.m4: Likewise.
42679         * m4/strtol.m4: Likewise.
42680         * m4/strtoll.m4: Likewise.
42681         * m4/strtoul.m4: Likewise.
42682         * m4/strtoull.m4: Likewise.
42683         * m4/strtoumax.m4: Likewise.
42684         * m4/strverscmp.m4: Likewise.
42685         * m4/threadlib.m4: Likewise.
42686         * m4/timegm.m4: Likewise.
42687         * m4/tm_gmtoff.m4: Likewise.
42688         * m4/tmpdir.m4: Likewise.
42689         * m4/tmpfile.m4: Likewise.
42690         * m4/tzset.m4: Likewise.
42691         * m4/uintmax_t.m4: Likewise.
42692         * m4/unlinkdir.m4: Likewise.
42693         * m4/unlocked-io.m4: Likewise.
42694         * m4/uptime.m4: Likewise.
42695         * m4/userspec.m4: Likewise.
42696         * m4/utimbuf.m4: Likewise.
42697         * m4/utime.m4: Likewise.
42698         * m4/utimes-null.m4: Likewise.
42699         * m4/utimes.m4: Likewise.
42700         * m4/vararrays.m4: Likewise.
42701         * m4/vasnprintf.m4: Likewise.
42702         * m4/vfprintf-posix.m4: Likewise.
42703         * m4/vprintf-posix.m4: Likewise.
42704         * m4/wait-process.m4: Likewise.
42705         * m4/wchar_t.m4: Likewise.
42706         * m4/wint_t.m4: Likewise.
42707         * m4/write-any-file.m4: Likewise.
42708         * m4/yield.m4: Likewise.
42709
42710 2009-01-13  Bruno Haible  <bruno@clisp.org>
42711
42712         Avoid test-copy-file.sh failures when ACL support insufficient.
42713         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42714         TESTS_ENVIRONMENT.
42715         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42716         Reported by Jim Meyering.
42717
42718 2009-01-13  Bruno Haible  <bruno@clisp.org>
42719
42720         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42721         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42722         * modules/unistdio/u8-printf-parse (Files): Likewise.
42723         * modules/unistdio/u32-printf-parse (Files): Likewise.
42724         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42725
42726 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42727
42728         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42729         and m4/inttypes_h.m4 too.
42730
42731 2009-01-12  Eric Blake  <ebb9@byu.net>
42732
42733         tests: IRIX 6.2 cc can't compile -0.0 into .data
42734         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42735         rather than at compile-time.
42736         * tests/test-floorl.c (minus_zero): Likewise.
42737         * tests/test-frexpl.c (minus_zero): Likewise.
42738         * tests/test-isnan.c (minus_zerol): Likewise.
42739         * tests/test-isnanl.h (minus_zero): Likewise.
42740         * tests/test-ldexpl.c (minus_zero): Likewise.
42741         * tests/test-roundl.c (minus_zero): Likewise.
42742         * tests/test-signbit.c (minus_zerol): Likewise.
42743         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42744         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42745         * tests/test-truncl.c (minus_zero): Likewise.
42746         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42747         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42748         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42749
42750 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42751
42752         regex: fix glibc bug 9697
42753         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42754         handling.
42755
42756 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42757
42758         regex: fix glibc bug 697
42759         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42760         being NULL also if there are no backreferences.
42761
42762 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42763
42764         regex: merge glibc changes
42765         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42766         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42767         re_string_skip_chars, re_string_reconstruct): Likewise.
42768         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42769
42770 2009-01-07  Jim Meyering  <meyering@redhat.com>
42771
42772         poll: filter through cppi
42773         * lib/poll.c: Indent cpp directives to reflect nesting.
42774
42775 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42776
42777         poll: don't return uninitialized
42778         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42779
42780 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42781
42782         avoid compile failure on AIX 6.1
42783         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42784         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42785
42786 2009-01-04  Jim Meyering  <meyering@redhat.com>
42787
42788         remove duplicate inclusion of <stdio.h>
42789         * tests/test-fprintf-posix.c: Likewise.
42790         * tests/test-printf-posix.c: Likewise.
42791         * tests/test-snprintf-posix.c: Likewise.
42792         * tests/test-sprintf-posix.c: Likewise.
42793         * tests/test-vasprintf-posix.c: Likewise.
42794         * tests/test-vfprintf-posix.c: Likewise.
42795         * tests/test-vprintf-posix.c: Likewise.
42796         * tests/test-vsnprintf-posix.c: Likewise.
42797         * tests/test-vsprintf-posix.c: Likewise.
42798
42799 2009-01-03  Jim Meyering  <meyering@redhat.com>
42800
42801         gnulib-tool: fix sed-based filtering
42802         * gnulib-tool (func_filter_filelist): Remove extra backslash
42803         in sed_fff_filter definition.
42804
42805 2009-01-02  Jim Meyering  <meyering@redhat.com>
42806
42807         strftime: avoid compilation failure on Solaris 2.6
42808         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42809         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42810         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42811         be available.  Reported by Tom G. Christensen.  Details in
42812         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42813
42814 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42815             Bruno Haible  <bruno@clisp.org>
42816
42817         Speed up gnulib-tool by doing more string processing through shell
42818         built-ins.
42819         * gnulib-tool (fast_func_append): New variable.
42820         (func_remove_prefix, func_remove_suffix): New functions.
42821         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42822         (func_filter_filelist): New function.
42823         (func_get_dependencies): Use func_remove_suffix instead of sed.
42824         (func_get_automake_snippet): Use func_filter_filelist instead of a
42825         subshell and sed invocation.
42826
42827 2009-01-01  Bruno Haible  <bruno@clisp.org>
42828
42829         Fix a security bug.
42830         * gnulib-tool (func_import, import, update): Don't allow the characters
42831         '"', '$', '`', '\' in macro arguments that become part of commands that
42832         are evaluated.
42833
42834 2009-01-01  Bruno Haible  <bruno@clisp.org>
42835
42836         * gnulib-tool (func_reset_sigpipe): Add more comments.
42837
42838 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42839
42840         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42841         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42842         already know the answer.
42843
42844 2009-01-01  Jim Meyering  <meyering@redhat.com>
42845
42846         * lib/version-etc.c (version_etc_va): Update copyright year.
42847
42848 2008-12-30  Bruno Haible  <bruno@clisp.org>
42849
42850         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42851         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42852         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42853
42854 2008-12-29  Eric Blake  <ebb9@byu.net>
42855
42856         multiarch: avoid autoconf AC_REQUIRE bug
42857         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42858         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42859         2.63 and older.
42860         Reported by Bruno Haible, and analyzed in
42861         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42862
42863 2008-12-29  Bruno Haible  <bruno@clisp.org>
42864
42865         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42866         files in subdirectories correctly.
42867         Reported by Ralf Wildenhues.
42868
42869 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42870
42871         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42872         rather than 'join FILE -', for Solaris join.
42873
42874 2008-12-29  Bruno Haible  <bruno@clisp.org>
42875
42876         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42877         quoting.
42878         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42879         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42880         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42881         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42882         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42883         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42884         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42885         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42886         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42887         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42888         * m4/nls.m4 (AM_NLS): Likewise.
42889         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42890         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42891         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42892         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42893         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42894         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42895         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42896         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42897         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42898         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42899         * m4/xsize.m4 (gl_XSIZE): Likewise.
42900         Suggested by Jim Meyering.
42901
42902 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42903
42904         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42905         * lib/parse-duration.c: use a switch instead of cascading if's.
42906
42907 2008-12-29  Eric Blake  <ebb9@byu.net>
42908
42909         wchar.h: supply WEOF on Irix 5.3
42910         * lib/wchar.in.h (wint_t): Also supply WEOF.
42911         * lib/wctype.in.h (wint_t): Likewise.
42912         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42913         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42914         Reported by Tom G. Christensen.
42915
42916 2008-12-26  Bruno Haible  <bruno@clisp.org>
42917
42918         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42919         i486, i586, i686.
42920
42921 2008-12-26  Bruno Haible  <bruno@clisp.org>
42922
42923         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42924
42925 2008-12-26  Bruno Haible  <bruno@clisp.org>
42926
42927         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42928         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42929         not __STDC_CONSTANT_MACROS.
42930         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42931
42932 2008-12-25  Bruno Haible  <bruno@clisp.org>
42933
42934         Add support for universal builds to vasnprintf.
42935         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42936         universal builds, guess no.
42937         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42938         * modules/vasprintf-posix (Depends-on): Likewise.
42939         * modules/fprintf-posix (Depends-on): Likewise.
42940         * modules/vfprintf-posix (Depends-on): Likewise.
42941         * modules/snprintf-posix (Depends-on): Likewise.
42942         * modules/vsnprintf-posix (Depends-on): Likewise.
42943         * modules/sprintf-posix (Depends-on): Likewise.
42944         * modules/vsprintf-posix (Depends-on): Likewise.
42945         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42946         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42947         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42948         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42949         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42950         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42951         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42952
42953         Add support for universal builds to <inttypes.h>.
42954         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42955         _SCNu64_PREFIX): In Apple
42956         universal builds, define directly, using _LP64.
42957         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42958         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42959         * modules/inttypes (Depends-on): Add multiarch.
42960         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42961
42962         Add support for universal builds to <stdint.h>.
42963         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42964         universal builds, define directly, using _LP64.
42965         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42966         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42967         and size_t.
42968         * modules/stdint (Depends-on): Add multiarch.
42969         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42970
42971         New module 'multiarch'.
42972         * modules/multiarch: New file.
42973         * m4/multiarch.m4: New file.
42974
42975 2008-12-25  Bruno Haible  <bruno@clisp.org>
42976
42977         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42978
42979 2008-12-25  Bruno Haible  <bruno@clisp.org>
42980
42981         * modules/btowc (License): Relicense under LGPLv2+.
42982         * modules/mbsinit (License): Likewise.
42983         * modules/mbrtowc (License): Likewise.
42984         * modules/wcrtomb (License): Likewise.
42985         * modules/streq (License): Likewise.
42986         Reported by David Lutterkort <lutter@redhat.com>.
42987
42988 2008-12-23  Bruno Haible  <bruno@clisp.org>
42989
42990         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42991
42992 2008-12-23  Bruno Haible  <bruno@clisp.org>
42993
42994         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42995         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42996         GETADDRINFO_LIB, not in LIBS.
42997         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42998         * modules/canon-host (Link): Likewise.
42999         * NEWS: Mention the change.
43000         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43001         GETADDRINFO_LIB.
43002
43003 2008-12-22  Bruno Haible  <bruno@clisp.org>
43004
43005         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43006         * doc/posix-functions/iswalpha_l.texi: Likewise.
43007         * doc/posix-functions/iswblank_l.texi: Likewise.
43008         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43009         * doc/posix-functions/iswctype_l.texi: Likewise.
43010         * doc/posix-functions/iswdigit_l.texi: Likewise.
43011         * doc/posix-functions/iswgraph_l.texi: Likewise.
43012         * doc/posix-functions/iswlower_l.texi: Likewise.
43013         * doc/posix-functions/iswprint_l.texi: Likewise.
43014         * doc/posix-functions/iswpunct_l.texi: Likewise.
43015         * doc/posix-functions/iswspace_l.texi: Likewise.
43016         * doc/posix-functions/iswupper_l.texi: Likewise.
43017         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43018         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43019         * doc/posix-functions/open_wmemstream.texi: Likewise.
43020         * doc/posix-functions/swscanf.texi: Likewise.
43021         * doc/posix-functions/towctrans_l.texi: Likewise.
43022         * doc/posix-functions/towlower.texi: Likewise.
43023         * doc/posix-functions/towlower_l.texi: Likewise.
43024         * doc/posix-functions/towupper.texi: Likewise.
43025         * doc/posix-functions/towupper_l.texi: Likewise.
43026         * doc/posix-functions/vfwprintf.texi: Likewise.
43027         * doc/posix-functions/vfwscanf.texi: Likewise.
43028         * doc/posix-functions/vswscanf.texi: Likewise.
43029         * doc/posix-functions/vwprintf.texi: Likewise.
43030         * doc/posix-functions/vwscanf.texi: Likewise.
43031         * doc/posix-functions/wcpcpy.texi: Likewise.
43032         * doc/posix-functions/wcpncpy.texi: Likewise.
43033         * doc/posix-functions/wcscasecmp.texi: Likewise.
43034         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43035         * doc/posix-functions/wcscoll_l.texi: Likewise.
43036         * doc/posix-functions/wcsdup.texi: Likewise.
43037         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43038         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43039         * doc/posix-functions/wcsnlen.texi: Likewise.
43040         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43041         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43042         * doc/posix-functions/wctrans_l.texi: Likewise.
43043         * doc/posix-functions/wctype_l.texi: Likewise.
43044         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43045         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43046         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43047         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43048         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43049         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43050         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43051         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43052         * doc/glibc-functions/wcschrnul.texi: Likewise.
43053         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43054         * doc/glibc-functions/wcstod_l.texi: Likewise.
43055         * doc/glibc-functions/wcstof_l.texi: Likewise.
43056         * doc/glibc-functions/wcstol_l.texi: Likewise.
43057         * doc/glibc-functions/wcstold_l.texi: Likewise.
43058         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43059         * doc/glibc-functions/wcstoq.texi: Likewise.
43060         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43061         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43062         * doc/glibc-functions/wcstouq.texi: Likewise.
43063         * doc/glibc-functions/wmempcpy.texi: Likewise.
43064
43065 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43066             Eric Blake  <ebb9@byu.net>
43067             Paolo Bonzini  <bonzini@gnu.org>
43068             Bruno Haible  <bruno@clisp.org>
43069
43070         Make c-stack work on Haiku.
43071         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43072         (c_stack_action): Use SA_ONSTACK flag.
43073
43074 2008-12-22  Bruno Haible  <bruno@clisp.org>
43075
43076         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43077
43078 2008-12-22  Bruno Haible  <bruno@clisp.org>
43079
43080         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43081         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43082         being overridden.
43083         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43084         New macros.
43085         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43086         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43087         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43088         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43089
43090 2008-12-22  Bruno Haible  <bruno@clisp.org>
43091
43092         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43093         from test code.
43094
43095 2008-12-22  Eric Blake  <ebb9@byu.net>
43096
43097         Avoid gcc warnings on cygwin.
43098         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43099         Avoid unused variable.
43100         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43101         Likewise.
43102
43103 2008-12-22  Bruno Haible  <bruno@clisp.org>
43104
43105         Remove HAVE_MBRTOWC conditionals.
43106         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43107         (mbscasecmp): Assume mbrtowc function.
43108         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43109         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43110         * lib/mbschr.c: Include mbuiter.h unconditionally.
43111         (mbschr): Assume mbrtowc function.
43112         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43113         (mbscspn): Assume mbrtowc function.
43114         * lib/mbslen.c: Include mbuiter.h unconditionally.
43115         (mbslen): Assume mbrtowc function.
43116         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43117         (mbsncasecmp): Assume mbrtowc function.
43118         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43119         (mbsnlen): Assume mbrtowc function.
43120         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43121         (mbspbrk): Assume mbrtowc function.
43122         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43123         (mbspcasecmp): Assume mbrtowc function.
43124         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43125         (mbsrchr): Assume mbrtowc function.
43126         * lib/mbssep.c: Include mbuiter.h unconditionally.
43127         (mbssep): Assume mbrtowc function.
43128         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43129         (mbsspn): Assume mbrtowc function.
43130         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43131         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43132         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43133         (mbstok_r): Assume mbrtowc function.
43134         * lib/propername.c: Include mbuiter.h unconditionally.
43135         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43136         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43137         (trim2): Assume mbrtowc function.
43138         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43139         (mbsnwidth): Assume mbrtowc function.
43140         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43141         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43142         fallback definitions.
43143         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43144
43145 2008-12-22  Bruno Haible  <bruno@clisp.org>
43146
43147         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43148
43149 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43150
43151         * modules/regex: Request emulations for the mb*/wc* functions we need.
43152         * m4/regex.m4: Don't look for those functions here.
43153         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43154
43155 2008-12-22  Bruno Haible  <bruno@clisp.org>
43156
43157         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43158
43159 2008-12-21  Bruno Haible  <bruno@clisp.org>
43160
43161         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43162         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43163         (Include): Remove conditionalization.
43164         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43165         (Include): Remove conditionalization.
43166         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43167         (Include): Remove conditionalization.
43168         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43169         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43170         * NEWS: Mention the change.
43171         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43172         via Sergey Poznyakoff <gray@gnu.org.ua>.
43173
43174 2008-12-21  Bruno Haible  <bruno@clisp.org>
43175
43176         * MODULES.html.sh (Extended multibyte and wide character utilities
43177         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43178         wcrtomb, wcsrtombs.
43179         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43180         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43181         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43182         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43183
43184 2008-12-21  Bruno Haible  <bruno@clisp.org>
43185
43186         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43187
43188 2008-12-21  Bruno Haible  <bruno@clisp.org>
43189
43190         * modules/wcsnrtombs-tests: New file.
43191         * tests/test-wcsnrtombs1.sh: New file.
43192         * tests/test-wcsnrtombs2.sh: New file.
43193         * tests/test-wcsnrtombs3.sh: New file.
43194         * tests/test-wcsnrtombs4.sh: New file.
43195         * tests/test-wcsnrtombs.c: New file.
43196
43197         New module 'wcsnrtombs'.
43198         * lib/wchar.in.h (wcsnrtombs): New declaration.
43199         * lib/wcsnrtombs.c: New file.
43200         * lib/wcsrtombs-state.c: New file.
43201         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43202         (internal_state): Remove variable.
43203         * m4/wcsnrtombs.m4: New file.
43204         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43205         compilation units.
43206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43207         HAVE_WCSNRTOMBS.
43208         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43209         HAVE_WCSNRTOMBS.
43210         * modules/wcsnrtombs: New file.
43211         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43212         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43213
43214 2008-12-21  Bruno Haible  <bruno@clisp.org>
43215
43216         * modules/wcsrtombs-tests: New file.
43217         * tests/test-wcsrtombs1.sh: New file.
43218         * tests/test-wcsrtombs2.sh: New file.
43219         * tests/test-wcsrtombs3.sh: New file.
43220         * tests/test-wcsrtombs4.sh: New file.
43221         * tests/test-wcsrtombs.c: New file.
43222
43223         New module 'wcsrtombs'.
43224         * lib/wchar.in.h (wcsrtombs): New declaration.
43225         * lib/wcsrtombs.c: New file.
43226         * m4/wcsrtombs.m4: New file.
43227         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43228         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43229         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43230         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43231         * modules/wcsrtombs: New file.
43232         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43233         bugs.
43234
43235 2008-12-21  Bruno Haible  <bruno@clisp.org>
43236
43237         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43238         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43239         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43240         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43241         if not correct.
43242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43243         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43244         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43245         m4/locale-zh.m4, m4/codeset.m4.
43246         * doc/posix-functions/wcrtomb.texi: Document the bug.
43247
43248 2008-12-21  Bruno Haible  <bruno@clisp.org>
43249
43250         Work around a btowc() bug on IRIX 6.5.
43251         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43252         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43253         REPLACE_WTOBC if not.
43254         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43255         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43256         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43257
43258 2008-12-21  Bruno Haible  <bruno@clisp.org>
43259
43260         * modules/wcrtomb-tests: New file.
43261         * tests/test-wcrtomb.sh: New file.
43262         * tests/test-wcrtomb.c: New file.
43263
43264         New module 'wcrtomb'.
43265         * lib/wchar.in.h (wcrtomb): New declaration.
43266         * lib/wcrtomb.c: New file.
43267         * m4/wcrtomb.m4: New file.
43268         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43269         HAVE_WCRTOMB.
43270         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43271         HAVE_WCRTOMB.
43272         * modules/wcrtomb: New file.
43273         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43274
43275 2008-12-21  Bruno Haible  <bruno@clisp.org>
43276
43277         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43278         * modules/mbsrtowcs (Files): Likewise.
43279         * modules/wctob (Files): Likewise.
43280         * modules/c-strcase-tests (Files): Likewise.
43281         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43282         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43283         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43284         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43285         * modules/vasnprintf-posix-tests (Files): Likewise.
43286
43287 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43288
43289         gitlog-to-changelog: pass all command-line arguments to git-log
43290         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43291         it is sometimes convenient to filter the commits in various ways.
43292         gitlog-to-changelog only allows --since to specify a start date,
43293         but git-log itself supports many other filtering mechanisms.
43294         At the moment, I want to filter by branch name.  Rather than
43295         adding a --branch option to gitlog-to-changelog, it seems more
43296         flexible to simply pass all options directly to git-log and let
43297         git do the work.  Notice that this effectively makes --since a
43298         redundant option for gitlog-to-changelog, but removing it would
43299         require current usage to change since calls would then require
43300         an additional '--'.
43301
43302 2008-12-21  Bruno Haible  <bruno@clisp.org>
43303
43304         * modules/mbsnrtowcs-tests: New file.
43305         * tests/test-mbsnrtowcs1.sh: New file.
43306         * tests/test-mbsnrtowcs2.sh: New file.
43307         * tests/test-mbsnrtowcs3.sh: New file.
43308         * tests/test-mbsnrtowcs4.sh: New file.
43309         * tests/test-mbsnrtowcs.c: New file.
43310
43311         New module 'mbsnrtowcs'.
43312         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43313         * lib/mbsnrtowcs.c: New file.
43314         * lib/mbsrtowcs-state.c: New file.
43315         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43316         (internal_state): Remove variable.
43317         * m4/mbsnrtowcs.m4: New file.
43318         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43319         compilation units.
43320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43321         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43322         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43323         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43324         * modules/mbsnrtowcs: New file.
43325         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43326         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43327         portability problem.
43328
43329 2008-12-21  Bruno Haible  <bruno@clisp.org>
43330
43331         Work around mbsrtowcs bug.
43332         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43333         (gl_FUNC_MBSRTOWCS): Invoke it.
43334         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43335         m4/locale-zh.m4.
43336         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43337
43338 2008-12-21  Bruno Haible  <bruno@clisp.org>
43339
43340         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43341
43342 2008-12-21  Bruno Haible  <bruno@clisp.org>
43343
43344         Update doc for AIX.
43345         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43346         16-bit wchar_t type.
43347         * doc/posix-functions/btowc.texi: Likewise.
43348         * doc/posix-functions/fgetwc.texi: Likewise.
43349         * doc/posix-functions/fgetws.texi: Likewise.
43350         * doc/posix-functions/fputwc.texi: Likewise.
43351         * doc/posix-functions/fputws.texi: Likewise.
43352         * doc/posix-functions/fwide.texi: Likewise.
43353         * doc/posix-functions/fwprintf.texi: Likewise.
43354         * doc/posix-functions/fwscanf.texi: Likewise.
43355         * doc/posix-functions/getwchar.texi: Likewise.
43356         * doc/posix-functions/getwc.texi: Likewise.
43357         * doc/posix-functions/iswalnum.texi: Likewise.
43358         * doc/posix-functions/iswalpha.texi: Likewise.
43359         * doc/posix-functions/iswblank.texi: Likewise.
43360         * doc/posix-functions/iswcntrl.texi: Likewise.
43361         * doc/posix-functions/iswctype.texi: Likewise.
43362         * doc/posix-functions/iswdigit.texi: Likewise.
43363         * doc/posix-functions/iswgraph.texi: Likewise.
43364         * doc/posix-functions/iswlower.texi: Likewise.
43365         * doc/posix-functions/iswprint.texi: Likewise.
43366         * doc/posix-functions/iswpunct.texi: Likewise.
43367         * doc/posix-functions/iswspace.texi: Likewise.
43368         * doc/posix-functions/iswupper.texi: Likewise.
43369         * doc/posix-functions/iswxdigit.texi: Likewise.
43370         * doc/posix-functions/mbrtowc.texi: Likewise.
43371         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43372         * doc/posix-functions/mbstowcs.texi: Likewise.
43373         * doc/posix-functions/mbtowc.texi: Likewise.
43374         * doc/posix-functions/putwchar.texi: Likewise.
43375         * doc/posix-functions/putwc.texi: Likewise.
43376         * doc/posix-functions/swprintf.texi: Likewise.
43377         * doc/posix-functions/tolower.texi: Likewise.
43378         * doc/posix-functions/toupper.texi: Likewise.
43379         * doc/posix-functions/towctrans.texi: Likewise.
43380         * doc/posix-functions/ungetwc.texi: Likewise.
43381         * doc/posix-functions/vswprintf.texi: Likewise.
43382         * doc/posix-functions/wcrtomb.texi: Likewise.
43383         * doc/posix-functions/wcscat.texi: Likewise.
43384         * doc/posix-functions/wcschr.texi: Likewise.
43385         * doc/posix-functions/wcscmp.texi: Likewise.
43386         * doc/posix-functions/wcscoll.texi: Likewise.
43387         * doc/posix-functions/wcscpy.texi: Likewise.
43388         * doc/posix-functions/wcscspn.texi: Likewise.
43389         * doc/posix-functions/wcsftime.texi: Likewise.
43390         * doc/posix-functions/wcslen.texi: Likewise.
43391         * doc/posix-functions/wcsncat.texi: Likewise.
43392         * doc/posix-functions/wcsncmp.texi: Likewise.
43393         * doc/posix-functions/wcsncpy.texi: Likewise.
43394         * doc/posix-functions/wcspbrk.texi: Likewise.
43395         * doc/posix-functions/wcsrchr.texi: Likewise.
43396         * doc/posix-functions/wcsrtombs.texi: Likewise.
43397         * doc/posix-functions/wcsspn.texi: Likewise.
43398         * doc/posix-functions/wcsstr.texi: Likewise.
43399         * doc/posix-functions/wcstod.texi: Likewise.
43400         * doc/posix-functions/wcstof.texi: Likewise.
43401         * doc/posix-functions/wcstoimax.texi: Likewise.
43402         * doc/posix-functions/wcstok.texi: Likewise.
43403         * doc/posix-functions/wcstold.texi: Likewise.
43404         * doc/posix-functions/wcstoll.texi: Likewise.
43405         * doc/posix-functions/wcstol.texi: Likewise.
43406         * doc/posix-functions/wcstombs.texi: Likewise.
43407         * doc/posix-functions/wcstoull.texi: Likewise.
43408         * doc/posix-functions/wcstoul.texi: Likewise.
43409         * doc/posix-functions/wcstoumax.texi: Likewise.
43410         * doc/posix-functions/wcswidth.texi: Likewise.
43411         * doc/posix-functions/wcsxfrm.texi: Likewise.
43412         * doc/posix-functions/wctob.texi: Likewise.
43413         * doc/posix-functions/wctomb.texi: Likewise.
43414         * doc/posix-functions/wctrans.texi: Likewise.
43415         * doc/posix-functions/wctype.texi: Likewise.
43416         * doc/posix-functions/wcwidth.texi: Likewise.
43417         * doc/posix-functions/wmemchr.texi: Likewise.
43418         * doc/posix-functions/wmemcmp.texi: Likewise.
43419         * doc/posix-functions/wmemcpy.texi: Likewise.
43420         * doc/posix-functions/wmemmove.texi: Likewise.
43421         * doc/posix-functions/wmemset.texi: Likewise.
43422         * doc/posix-functions/wprintf.texi: Likewise.
43423         * doc/posix-functions/wscanf.texi: Likewise.
43424
43425 2008-12-21  Bruno Haible  <bruno@clisp.org>
43426
43427         Update doc for HP-UX 11.11.
43428         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43429         in HP-UX version 11.00, not in all versions of HP-UX 11.
43430         * doc/posix-functions/fwide.texi: Likewise.
43431         * doc/posix-functions/fwprintf.texi: Likewise.
43432         * doc/posix-functions/fwscanf.texi: Likewise.
43433         * doc/posix-functions/inet_ntop.texi: Likewise.
43434         * doc/posix-functions/inet_pton.texi: Likewise.
43435         * doc/posix-functions/mbrlen.texi: Likewise.
43436         * doc/posix-functions/mbrtowc.texi: Likewise.
43437         * doc/posix-functions/mbsinit.texi: Likewise.
43438         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43439         * doc/posix-functions/swprintf.texi: Likewise.
43440         * doc/posix-functions/swscanf.texi: Likewise.
43441         * doc/posix-functions/towctrans.texi: Likewise.
43442         * doc/posix-functions/vfwprintf.texi: Likewise.
43443         * doc/posix-functions/vswprintf.texi: Likewise.
43444         * doc/posix-functions/vwprintf.texi: Likewise.
43445         * doc/posix-functions/wcrtomb.texi: Likewise.
43446         * doc/posix-functions/wcsrtombs.texi: Likewise.
43447         * doc/posix-functions/wcsstr.texi: Likewise.
43448         * doc/posix-functions/wctob.texi: Likewise.
43449         * doc/posix-functions/wctrans.texi: Likewise.
43450         * doc/posix-functions/wmemchr.texi: Likewise.
43451         * doc/posix-functions/wmemcmp.texi: Likewise.
43452         * doc/posix-functions/wmemcpy.texi: Likewise.
43453         * doc/posix-functions/wmemmove.texi: Likewise.
43454         * doc/posix-functions/wmemset.texi: Likewise.
43455         * doc/posix-functions/wprintf.texi: Likewise.
43456         * doc/posix-functions/wscanf.texi: Likewise.
43457
43458 2008-12-21  Bruno Haible  <bruno@clisp.org>
43459
43460         Work around a portability problem.
43461         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43462         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43463
43464 2008-12-20  Bruno Haible  <bruno@clisp.org>
43465
43466         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43467         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43468         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43470         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43471
43472         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43473         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43474         set.
43475         (GNULIB_defined_mbstate_t): New macro.
43476         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43477         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43478         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43479         reuses the system's mbrtowc function but works around the bugs.
43480         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43481         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43482         macros.
43483         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43484         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43485         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43486         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43487         REPLACE_MBSINIT if mbsinit needs to be overridden.
43488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43489         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43490         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43491         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43492         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43493         m4/locale-zh.m4.
43494         (Depends): Add mbsinit.
43495         * modules/mbsinit (Depends): Add mbrtowc.
43496         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43497
43498 2008-12-20  Bruno Haible  <bruno@clisp.org>
43499
43500         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43501         so that there are no conversion errors on AIX.
43502         * tests/test-mbsrtowcs.c (main): LIkewise.
43503
43504 2008-12-20  Bruno Haible  <bruno@clisp.org>
43505
43506         Work around wctob bug on Solaris <= 9.
43507         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43508         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43509         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43510         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43511         * modules/wctob (Files): Add m4/locale-fr.m4.
43512         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43513
43514 2008-12-20  Bruno Haible  <bruno@clisp.org>
43515
43516         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43517         /dev/null.
43518         * tests/test-select-in.sh: Likewise.
43519         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43520
43521 2008-12-20  Bruno Haible  <bruno@clisp.org>
43522
43523         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43524         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43525         Cygwin 1.5.x.
43526
43527 2008-12-20  Bruno Haible  <bruno@clisp.org>
43528
43529         Ensure mbstate_t is defined on HP-UX 11.11.
43530         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43531         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43532         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43533         AC_USE_SYSTEM_EXTENSIONS.
43534         * modules/fnmatch (Depends-on): Add extensions.
43535         * modules/mbrlen (Depends-on): Likewise.
43536         * modules/mbrtowc (Depends-on): Likewise.
43537         * modules/mbsinit (Depends-on): Likewise.
43538         * modules/mbsrtowcs (Depends-on): Likewise.
43539         * modules/mbswidth (Depends-on): Likewise.
43540         * modules/quotearg (Depends-on): Likewise.
43541         * modules/strftime (Depends-on): Likewise.
43542
43543 2008-12-20  Bruno Haible  <bruno@clisp.org>
43544
43545         Ensure wctob is declared on IRIX 6.5.
43546         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43547         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43548         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43549         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43550         of HAVE_WCTOB.
43551         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43552         HAVE_WCTOB.
43553         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43554
43555 2008-12-19  Bruno Haible  <bruno@clisp.org>
43556
43557         * modules/mbsrtowcs-tests: New file.
43558         * tests/test-mbsrtowcs1.sh: New file.
43559         * tests/test-mbsrtowcs2.sh: New file.
43560         * tests/test-mbsrtowcs3.sh: New file.
43561         * tests/test-mbsrtowcs4.sh: New file.
43562         * tests/test-mbsrtowcs.c: New file.
43563
43564         New module 'mbsrtowcs'.
43565         * lib/wchar.in.h (mbsrtowcs): New declaration.
43566         * lib/mbsrtowcs.c: New file.
43567         * m4/mbsrtowcs.m4: New file.
43568         * modules/mbsrtowcs: New file.
43569         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43570         HAVE_MBSRTOWCS.
43571         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43572         HAVE_MBSRTOWCS.
43573         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43574
43575 2008-12-19  Bruno Haible  <bruno@clisp.org>
43576
43577         New module 'mbrlen'.
43578         * lib/wchar.in.h (mbrlen): New declaration.
43579         * lib/mbrlen.c: New file.
43580         * m4/mbrlen.m4: New file.
43581         * modules/mbrlen: New file.
43582         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43583         HAVE_MBRLEN.
43584         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43585         HAVE_MBRLEN.
43586         * doc/posix-functions/mbrlen.texi: Document the new module.
43587
43588 2008-12-19  Bruno Haible  <bruno@clisp.org>
43589
43590         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43591         * modules/mbrtowc (Depends-on): Add verify.
43592         Suggested by Paul Eggert.
43593
43594 2008-12-18  Bruno Haible  <bruno@clisp.org>
43595
43596         * modules/mbsinit-tests: New file.
43597         * tests/test-mbsinit.sh: New file.
43598         * tests/test-mbsinit.c: New file.
43599
43600 2008-12-18  Bruno Haible  <bruno@clisp.org>
43601
43602         * modules/mbrtowc-tests: New file.
43603         * tests/test-mbrtowc1.sh: New file.
43604         * tests/test-mbrtowc2.sh: New file.
43605         * tests/test-mbrtowc3.sh: New file.
43606         * tests/test-mbrtowc4.sh: New file.
43607         * tests/test-mbrtowc.c: New file.
43608
43609         New module 'mbrtowc'.
43610         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43611         mbsinit and mbrtowc.
43612         (mbrtowc): New declaration.
43613         * lib/mbrtowc.c: New file.
43614         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43615         * modules/mbrtowc: New file.
43616         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43617         HAVE_MBRTOWC.
43618         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43619         HAVE_MBRTOWC.
43620         * doc/posix-functions/mbrtowc.texi: Document the new module.
43621
43622 2008-12-18  Bruno Haible  <bruno@clisp.org>
43623
43624         New module 'wctob'.
43625         * lib/wchar.in.h (wctob): New declaration.
43626         * lib/wctob.c: New file.
43627         * m4/wctob.m4: New file.
43628         * modules/wctob: New file.
43629         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43630         HAVE_WCTOB.
43631         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43632         * doc/posix-functions/wctob.texi: Document the new module.
43633
43634 2008-12-18  Bruno Haible  <bruno@clisp.org>
43635
43636         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43637         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43638
43639 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43640
43641         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43642         G. Christensen" <tgc@jupiterrise.com>.
43643
43644         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43645         G. Christensen" <tgc@jupiterrise.com>.
43646
43647         * lib/flock.c: Need to include string.h.  Reported by "Tom
43648         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43649         <ebb9@byu.net>.
43650
43651 2008-12-18  Bruno Haible  <bruno@clisp.org>
43652
43653         * m4/locale-ja.m4: New file, from GNU gettext.
43654
43655 2008-12-17  Bruno Haible  <bruno@clisp.org>
43656
43657         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43658         Suggested by Eric Blake.
43659
43660 2008-12-17  Bruno Haible  <bruno@clisp.org>
43661
43662         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43663
43664 2008-12-17  Bruno Haible  <bruno@clisp.org>
43665
43666         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43667         * modules/mbsinit (Depends-on): Add verify.
43668         Suggested by Paul Eggert.
43669
43670 2008-12-17  Bruno Haible  <bruno@clisp.org>
43671
43672         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43673         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43674         gl_FUNC_MBRTOWC.
43675         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43676         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43677         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43678         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43679         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43680         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43681         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43682         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43683         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43684         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43685         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43686         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43687         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43688         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43689         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43690         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43691         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43692         * modules/trim (configure.ac): Likewise.
43693
43694 2008-12-17  Bruno Haible  <bruno@clisp.org>
43695
43696         * modules/btowc-tests: New file.
43697         * tests/test-btowc1.sh: New file.
43698         * tests/test-btowc2.sh: New file.
43699         * tests/test-btowc.c: New file.
43700
43701         New module 'btowc'.
43702         * lib/wchar.in.h (btowc): New declaration.
43703         * lib/btowc.c: New file.
43704         * m4/btowc.m4: New file.
43705         * modules/btowc: New file.
43706         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43707         HAVE_BTOWC.
43708         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43709         * doc/posix-functions/btowc.texi: Document the new module.
43710
43711 2008-12-17  Bruno Haible  <bruno@clisp.org>
43712
43713         New module 'mbsinit'.
43714         * lib/wchar.in.h (mbsinit): New declaration.
43715         * lib/mbsinit.c: New file.
43716         * m4/mbsinit.m4: New file.
43717         * modules/mbsinit: New file.
43718         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43719         HAVE_MBSINIT.
43720         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43721         HAVE_MBSINIT.
43722         * doc/posix-functions/mbsinit.texi: Document the new module.
43723
43724 2008-12-16  Bruno Haible  <bruno@clisp.org>
43725
43726         * lib/unistd.in.h: Add comment.
43727         * tests/test-environ.c: Don't include <stdlib.h>.
43728
43729 2008-12-16  Bruno Haible  <bruno@clisp.org>
43730
43731         * lib/parse-duration.h (parse_duration): Document return value
43732         convention.
43733         * lib/parse-duration.c: Include specification header first. Add
43734         comments.
43735         (_): Remove macro.
43736         (parse_year_month_day, parse_hour_minute_second): Move side effects
43737         outside of strchr call.
43738         (parse_non_iso8601): Move side effects outside of isspace call.
43739         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43740         call.
43741
43742 2008-12-16  Bruno Haible  <bruno@clisp.org>
43743
43744         * tests/test-parse-duration.sh: Produce no output when the test
43745         succeeds.
43746
43747 2008-12-16  Bruno Haible  <bruno@clisp.org>
43748
43749         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43750         expressions.
43751
43752 2008-12-15  Bruno Haible  <bruno@clisp.org>
43753
43754         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43755         * doc/glibc-functions/flistxattr.texi: Likewise.
43756         * doc/glibc-functions/fopencookie.texi: Likewise.
43757         * doc/glibc-functions/fremovexattr.texi: Likewise.
43758         * doc/glibc-functions/fsetxattr.texi: Likewise.
43759         * doc/glibc-functions/getxattr.texi: Likewise.
43760         * doc/glibc-functions/lgetxattr.texi: Likewise.
43761         * doc/glibc-functions/listxattr.texi: Likewise.
43762         * doc/glibc-functions/llistxattr.texi: Likewise.
43763         * doc/glibc-functions/lremovexattr.texi: Likewise.
43764         * doc/glibc-functions/lsetxattr.texi: Likewise.
43765         * doc/glibc-functions/removexattr.texi: Likewise.
43766         * doc/glibc-functions/setxattr.texi: Likewise.
43767         * doc/posix-functions/open_memstream.texi: Likewise.
43768
43769 2008-12-15  Eric Blake  <ebb9@byu.net>
43770
43771         Update doc for cygwin 1.7.
43772         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43773         functions.
43774         * doc/posix-functions/fchmodat.texi: Likewise.
43775         * doc/posix-functions/fchownat.texi: Likewise.
43776         * doc/posix-functions/fdopendir.texi: Likewise.
43777         * doc/posix-functions/fmemopen.texi: Likewise.
43778         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43779         * doc/posix-functions/fstatat.texi: Likewise.
43780         * doc/posix-functions/futimens.texi: Likewise.
43781         * doc/posix-functions/gai_strerror.texi: Likewise.
43782         * doc/posix-functions/getaddrinfo.texi: Likewise.
43783         * doc/posix-functions/getnameinfo.texi: Likewise.
43784         * doc/posix-functions/if_freenameindex.texi: Likewise.
43785         * doc/posix-functions/if_indextoname.texi: Likewise.
43786         * doc/posix-functions/if_nameindex.texi: Likewise.
43787         * doc/posix-functions/if_nametoindex.texi: Likewise.
43788         * doc/posix-functions/insque.texi: Likewise.
43789         * doc/posix-functions/linkat.texi: Likewise.
43790         * doc/posix-functions/llrint.texi: Likewise.
43791         * doc/posix-functions/llrintf.texi: Likewise.
43792         * doc/posix-functions/llrintl.texi: Likewise.
43793         * doc/posix-functions/lockf.texi: Likewise.
43794         * doc/posix-functions/lrintl.texi: Likewise.
43795         * doc/posix-functions/mkdirat.texi: Likewise.
43796         * doc/posix-functions/mkfifoat.texi: Likewise.
43797         * doc/posix-functions/mknodat.texi: Likewise.
43798         * doc/posix-functions/mq_close.texi: Likewise.
43799         * doc/posix-functions/mq_getattr.texi: Likewise.
43800         * doc/posix-functions/mq_notify.texi: Likewise.
43801         * doc/posix-functions/mq_open.texi: Likewise.
43802         * doc/posix-functions/mq_receive.texi: Likewise.
43803         * doc/posix-functions/mq_send.texi: Likewise.
43804         * doc/posix-functions/mq_setattr.texi: Likewise.
43805         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43806         * doc/posix-functions/mq_timedsend.texi: Likewise.
43807         * doc/posix-functions/mq_unlink.texi: Likewise.
43808         * doc/posix-functions/open_memstream.texi: Likewise.
43809         * doc/posix-functions/openat.texi: Likewise.
43810         * doc/posix-functions/posix_fadvise.texi: Likewise.
43811         * doc/posix-functions/posix_fallocate.texi: Likewise.
43812         * doc/posix-functions/posix_madvise.texi: Likewise.
43813         * doc/posix-functions/posix_memalign.texi: Likewise.
43814         * doc/posix-functions/posix_openpt.texi: Likewise.
43815         * doc/posix-functions/readlinkat.texi: Likewise.
43816         * doc/posix-functions/remque.texi: Likewise.
43817         * doc/posix-functions/renameat.texi: Likewise.
43818         * doc/posix-functions/rintl.texi: Likewise.
43819         * doc/posix-functions/sem_unlink.texi: Likewise.
43820         * doc/posix-functions/shm_open.texi: Likewise.
43821         * doc/posix-functions/shm_unlink.texi: Likewise.
43822         * doc/posix-functions/signgam.texi: Likewise.
43823         * doc/posix-functions/sigset.texi: Likewise.
43824         * doc/posix-functions/stpcpy.texi: Likewise.
43825         * doc/posix-functions/stpncpy.texi: Likewise.
43826         * doc/posix-functions/strerror.texi: Likewise.
43827         * doc/posix-functions/strtod.texi: Likewise.
43828         * doc/posix-functions/symlinkat.texi: Likewise.
43829         * doc/posix-functions/unlinkat.texi: Likewise.
43830         * doc/posix-functions/utimensat.texi: Likewise.
43831         * doc/glibc-functions/bindresvport.texi: Likewise.
43832         * doc/glibc-functions/dn_expand.texi: Likewise.
43833         * doc/glibc-functions/exp10.texi: Likewise.
43834         * doc/glibc-functions/exp10f.texi: Likewise.
43835         * doc/glibc-functions/fgetxattr.texi: Likewise.
43836         * doc/glibc-functions/flistxattr.texi: Likewise.
43837         * doc/glibc-functions/fopencookie.texi: Likewise.
43838         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43839         * doc/glibc-functions/fremovexattr.texi: Likewise.
43840         * doc/glibc-functions/fsetxattr.texi: Likewise.
43841         * doc/glibc-functions/getifaddrs.texi: Likewise.
43842         * doc/glibc-functions/getxattr.texi: Likewise.
43843         * doc/glibc-functions/lgetxattr.texi: Likewise.
43844         * doc/glibc-functions/listxattr.texi: Likewise.
43845         * doc/glibc-functions/llistxattr.texi: Likewise.
43846         * doc/glibc-functions/lremovexattr.texi: Likewise.
43847         * doc/glibc-functions/lsetxattr.texi: Likewise.
43848         * doc/glibc-functions/pow10.texi: Likewise.
43849         * doc/glibc-functions/pow10f.texi: Likewise.
43850         * doc/glibc-functions/rcmd_af.texi: Likewise.
43851         * doc/glibc-functions/removexattr.texi: Likewise.
43852         * doc/glibc-functions/res_init.texi: Likewise.
43853         * doc/glibc-functions/res_mkquery.texi: Likewise.
43854         * doc/glibc-functions/res_query.texi: Likewise.
43855         * doc/glibc-functions/res_querydomain.texi: Likewise.
43856         * doc/glibc-functions/res_send.texi: Likewise.
43857         * doc/glibc-functions/rresvport_af.texi: Likewise.
43858         * doc/glibc-functions/setxattr.texi: Likewise.
43859         * doc/glibc-functions/strcasestr.texi: Likewise.
43860
43861 2008-12-15  Bruno Haible  <bruno@clisp.org>
43862
43863         Fix compilation error on OSF/1 4.0.
43864         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43865         <sys/time.h>, simply delegate to the system header.
43866         Reported by Daniel Richard G. <oss@teragram.com>.
43867
43868 2008-12-15  Bruno Haible  <bruno@clisp.org>
43869
43870         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43871         * doc/posix-functions/fchmodat.texi: Likewise.
43872         * doc/posix-functions/fchownat.texi: Likewise.
43873         * doc/posix-functions/fdopendir.texi: Likewise.
43874         * doc/posix-functions/fstatat.texi: Likewise.
43875         * doc/posix-functions/mkdirat.texi: Likewise.
43876         * doc/posix-functions/unlinkat.texi: Likewise.
43877
43878 2008-12-14  Bruno Haible  <bruno@clisp.org>
43879
43880         Update doc for POSIX:2008.
43881         * doc/posix-functions/faccessat.texi: New file.
43882         * doc/posix-functions/fchmodat.texi: New file.
43883         * doc/posix-functions/fchownat.texi: New file.
43884         * doc/posix-functions/fdopendir.texi: New file.
43885         * doc/posix-functions/fstatat.texi: New file.
43886         * doc/posix-functions/futimens.texi: New file.
43887         * doc/posix-functions/linkat.texi: New file.
43888         * doc/posix-functions/mkdirat.texi: New file.
43889         * doc/posix-functions/mkfifoat.texi: New file.
43890         * doc/posix-functions/mknodat.texi: New file.
43891         * doc/posix-functions/open_wmemstream.texi: New file.
43892         * doc/posix-functions/openat.texi: New file.
43893         * doc/posix-functions/psiginfo.texi: New file.
43894         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43895         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43896         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43897         * doc/posix-functions/readlinkat.texi: New file.
43898         * doc/posix-functions/renameat.texi: New file.
43899         * doc/posix-functions/strerror_l.texi: New file.
43900         * doc/posix-functions/symlinkat.texi: New file.
43901         * doc/posix-functions/unlinkat.texi: New file.
43902         * doc/posix-functions/utimensat.texi: New file.
43903         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43904
43905 2008-12-14  Bruno Haible  <bruno@clisp.org>
43906
43907         Update doc for POSIX:2008.
43908         * doc/posix-functions/alphasort.texi: Renamed from
43909         doc/glibc-functions/alphasort.texi.
43910         * doc/posix-functions/dirfd.texi: Renamed from
43911         doc/glibc-functions/dirfd.texi.
43912         * doc/posix-functions/dprintf.texi: Renamed from
43913         doc/glibc-functions/dprintf.texi.
43914         * doc/posix-functions/duplocale.texi: Renamed from
43915         doc/glibc-functions/duplocale.texi.
43916         * doc/posix-functions/fexecve.texi: Renamed from
43917         doc/glibc-functions/fexecve.texi.
43918         * doc/posix-functions/fmemopen.texi: Renamed from
43919         doc/glibc-functions/fmemopen.texi.
43920         * doc/posix-functions/freelocale.texi: Renamed from
43921         doc/glibc-functions/freelocale.texi.
43922         * doc/posix-functions/getdate_err.texi: Renamed from
43923         doc/glibc-functions/getdate_err.texi.
43924         * doc/posix-functions/isalnum_l.texi: Renamed from
43925         doc/glibc-functions/isalnum_l.texi.
43926         * doc/posix-functions/isalpha_l.texi: Renamed from
43927         doc/glibc-functions/isalpha_l.texi.
43928         * doc/posix-functions/isblank_l.texi: Renamed from
43929         doc/glibc-functions/isblank_l.texi.
43930         * doc/posix-functions/iscntrl_l.texi: Renamed from
43931         doc/glibc-functions/iscntrl_l.texi.
43932         * doc/posix-functions/isdigit_l.texi: Renamed from
43933         doc/glibc-functions/isdigit_l.texi.
43934         * doc/posix-functions/isgraph_l.texi: Renamed from
43935         doc/glibc-functions/isgraph_l.texi.
43936         * doc/posix-functions/islower_l.texi: Renamed from
43937         doc/glibc-functions/islower_l.texi.
43938         * doc/posix-functions/isprint_l.texi: Renamed from
43939         doc/glibc-functions/isprint_l.texi.
43940         * doc/posix-functions/ispunct_l.texi: Renamed from
43941         doc/glibc-functions/ispunct_l.texi.
43942         * doc/posix-functions/isspace_l.texi: Renamed from
43943         doc/glibc-functions/isspace_l.texi.
43944         * doc/posix-functions/isupper_l.texi: Renamed from
43945         doc/glibc-functions/isupper_l.texi.
43946         * doc/posix-functions/iswalnum_l.texi: Renamed from
43947         doc/glibc-functions/iswalnum_l.texi.
43948         * doc/posix-functions/iswalpha_l.texi: Renamed from
43949         doc/glibc-functions/iswalpha_l.texi.
43950         * doc/posix-functions/iswblank_l.texi: Renamed from
43951         doc/glibc-functions/iswblank_l.texi.
43952         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43953         doc/glibc-functions/iswcntrl_l.texi.
43954         * doc/posix-functions/iswctype_l.texi: Renamed from
43955         doc/glibc-functions/iswctype_l.texi.
43956         * doc/posix-functions/iswdigit_l.texi: Renamed from
43957         doc/glibc-functions/iswdigit_l.texi.
43958         * doc/posix-functions/iswgraph_l.texi: Renamed from
43959         doc/glibc-functions/iswgraph_l.texi.
43960         * doc/posix-functions/iswlower_l.texi: Renamed from
43961         doc/glibc-functions/iswlower_l.texi.
43962         * doc/posix-functions/iswprint_l.texi: Renamed from
43963         doc/glibc-functions/iswprint_l.texi.
43964         * doc/posix-functions/iswpunct_l.texi: Renamed from
43965         doc/glibc-functions/iswpunct_l.texi.
43966         * doc/posix-functions/iswspace_l.texi: Renamed from
43967         doc/glibc-functions/iswspace_l.texi.
43968         * doc/posix-functions/iswupper_l.texi: Renamed from
43969         doc/glibc-functions/iswupper_l.texi.
43970         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43971         doc/glibc-functions/iswxdigit_l.texi.
43972         * doc/posix-functions/isxdigit_l.texi: Renamed from
43973         doc/glibc-functions/isxdigit_l.texi.
43974         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43975         doc/glibc-functions/mbsnrtowcs.texi.
43976         * doc/posix-functions/mkdtemp.texi: Renamed from
43977         doc/glibc-functions/mkdtemp.texi.
43978         * doc/posix-functions/newlocale.texi: Renamed from
43979         doc/glibc-functions/newlocale.texi.
43980         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43981         doc/glibc-functions/nl_langinfo_l.texi.
43982         * doc/posix-functions/open_memstream.texi: Renamed from
43983         doc/glibc-functions/open_memstream.texi.
43984         * doc/posix-functions/opterr.texi: Renamed from
43985         doc/glibc-functions/opterr.texi.
43986         * doc/posix-functions/optind.texi: Renamed from
43987         doc/glibc-functions/optind.texi.
43988         * doc/posix-functions/optopt.texi: Renamed from
43989         doc/glibc-functions/optopt.texi.
43990         * doc/posix-functions/psignal.texi: Renamed from
43991         doc/glibc-functions/psignal.texi.
43992         * doc/posix-functions/scandir.texi: Renamed from
43993         doc/glibc-functions/scandir.texi.
43994         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43995         doc/glibc-functions/sched_get_priority_min.texi.
43996         * doc/posix-functions/signgam.texi: Renamed from
43997         doc/glibc-functions/signgam.texi.
43998         * doc/posix-functions/stpcpy.texi: Renamed from
43999         doc/glibc-functions/stpcpy.texi.
44000         * doc/posix-functions/stpncpy.texi: Renamed from
44001         doc/glibc-functions/stpncpy.texi.
44002         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44003         doc/glibc-functions/strcasecmp_l.texi.
44004         * doc/posix-functions/strcoll_l.texi: Renamed from
44005         doc/glibc-functions/strcoll_l.texi.
44006         * doc/posix-functions/strfmon_l.texi: Renamed from
44007         doc/glibc-functions/strfmon_l.texi.
44008         * doc/posix-functions/strftime_l.texi: Renamed from
44009         doc/glibc-functions/strftime_l.texi.
44010         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44011         doc/glibc-functions/strncasecmp_l.texi.
44012         * doc/posix-functions/strndup.texi: Renamed from
44013         doc/glibc-functions/strndup.texi.
44014         * doc/posix-functions/strnlen.texi: Renamed from
44015         doc/glibc-functions/strnlen.texi.
44016         * doc/posix-functions/strsignal.texi: Renamed from
44017         doc/glibc-functions/strsignal.texi.
44018         * doc/posix-functions/strxfrm_l.texi: Renamed from
44019         doc/glibc-functions/strxfrm_l.texi.
44020         * doc/posix-functions/timer_gettime.texi: Renamed from
44021         doc/glibc-functions/timer_gettime.texi.
44022         * doc/posix-functions/tolower_l.texi: Renamed from
44023         doc/glibc-functions/tolower_l.texi.
44024         * doc/posix-functions/toupper_l.texi: Renamed from
44025         doc/glibc-functions/toupper_l.texi.
44026         * doc/posix-functions/towctrans_l.texi: Renamed from
44027         doc/glibc-functions/towctrans_l.texi.
44028         * doc/posix-functions/towlower_l.texi: Renamed from
44029         doc/glibc-functions/towlower_l.texi.
44030         * doc/posix-functions/towupper_l.texi: Renamed from
44031         doc/glibc-functions/towupper_l.texi.
44032         * doc/posix-functions/uselocale.texi: Renamed from
44033         doc/glibc-functions/uselocale.texi.
44034         * doc/posix-functions/vdprintf.texi: Renamed from
44035         doc/glibc-functions/vdprintf.texi.
44036         * doc/posix-functions/wcpcpy.texi:
44037         Renamed from doc/glibc-functions/wcpcpy.texi.
44038         * doc/posix-functions/wcpncpy.texi: Renamed from
44039         doc/glibc-functions/wcpncpy.texi.
44040         * doc/posix-functions/wcscasecmp.texi: Renamed from
44041         doc/glibc-functions/wcscasecmp.texi.
44042         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44043         doc/glibc-functions/wcscasecmp_l.texi.
44044         * doc/posix-functions/wcscoll_l.texi: Renamed from
44045         doc/glibc-functions/wcscoll_l.texi.
44046         * doc/posix-functions/wcsdup.texi: Renamed from
44047         doc/glibc-functions/wcsdup.texi.
44048         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44049         doc/glibc-functions/wcsncasecmp.texi.
44050         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44051         doc/glibc-functions/wcsncasecmp_l.texi.
44052         * doc/posix-functions/wcsnlen.texi: Renamed from
44053         doc/glibc-functions/wcsnlen.texi.
44054         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44055         doc/glibc-functions/wcsnrtombs.texi.
44056         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44057         doc/glibc-functions/wcsxfrm_l.texi.
44058         * doc/posix-functions/wctrans_l.texi: Renamed from
44059         doc/glibc-functions/wctrans_l.texi.
44060         * doc/posix-functions/wctype_l.texi: Renamed from
44061         doc/glibc-functions/wctype_l.texi.
44062         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44063         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44064         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44065         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44066         these subsections.
44067         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44068         Remove sections.
44069
44070 2008-12-14  Bruno Haible  <bruno@clisp.org>
44071
44072         Update doc for POSIX:2008.
44073         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44074
44075 2008-12-14  Bruno Haible  <bruno@clisp.org>
44076
44077         Update doc for POSIX:2008.
44078         * doc/pastposix-functions/bcmp.texi: Renamed from
44079         doc/posix-functions/bcmp.texi.
44080         * doc/pastposix-functions/bcopy.texi: Renamed from
44081         doc/posix-functions/bcopy.texi.
44082         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44083         doc/posix-functions/bsd_signal.texi.
44084         * doc/pastposix-functions/bzero.texi: Renamed from
44085         doc/posix-functions/bzero.texi.
44086         * doc/pastposix-functions/ecvt.texi: Renamed from
44087         doc/posix-functions/ecvt.texi.
44088         * doc/pastposix-functions/fcvt.texi: Renamed from
44089         doc/posix-functions/fcvt.texi.
44090         * doc/pastposix-functions/ftime.texi: Renamed from
44091         doc/posix-functions/ftime.texi.
44092         * doc/pastposix-functions/gcvt.texi: Renamed from
44093         doc/posix-functions/gcvt.texi.
44094         * doc/pastposix-functions/getcontext.texi: Renamed from
44095         doc/posix-functions/getcontext.texi.
44096         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44097         doc/posix-functions/gethostbyaddr.texi.
44098         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44099         doc/posix-functions/gethostbyname.texi.
44100         * doc/pastposix-functions/getwd.texi: Renamed from
44101         doc/posix-functions/getwd.texi.
44102         * doc/pastposix-functions/h_errno.texi: Renamed from
44103         doc/posix-functions/h_errno.texi.
44104         * doc/pastposix-functions/index.texi: Renamed from
44105         doc/posix-functions/index.texi.
44106         * doc/pastposix-functions/makecontext.texi: Renamed from
44107         doc/posix-functions/makecontext.texi.
44108         * doc/pastposix-functions/mktemp.texi: Renamed from
44109         doc/posix-functions/mktemp.texi.
44110         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44111         doc/posix-functions/pthread_attr_getstackaddr.texi.
44112         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44113         doc/posix-functions/pthread_attr_setstackaddr.texi.
44114         * doc/pastposix-functions/rindex.texi: Renamed from
44115         doc/posix-functions/rindex.texi.
44116         * doc/pastposix-functions/scalb.texi: Renamed from
44117         doc/posix-functions/scalb.texi.
44118         * doc/pastposix-functions/setcontext.texi: Renamed from
44119         doc/posix-functions/setcontext.texi.
44120         * doc/pastposix-functions/swapcontext.texi: Renamed from
44121         doc/posix-functions/swapcontext.texi.
44122         * doc/pastposix-functions/ualarm.texi: Renamed from
44123         doc/posix-functions/ualarm.texi.
44124         * doc/pastposix-functions/usleep.texi: Renamed from
44125         doc/posix-functions/usleep.texi.
44126         * doc/pastposix-functions/vfork.texi: Renamed from
44127         doc/posix-functions/vfork.texi.
44128         * doc/pastposix-functions/wcswcs.texi: Renamed from
44129         doc/posix-functions/wcswcs.texi.
44130         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44131         (Function Substitutes): Update.
44132
44133 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44134
44135         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44136         m4/strerror.m4.
44137
44138 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44139             Bruno Haible  <bruno@clisp.org>
44140
44141         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44142
44143 2008-12-13  Bruno Haible  <bruno@clisp.org>
44144
44145         * modules/strtoull (Depends-on): Remove unistd.
44146
44147 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44148
44149         * modules/strtoull (Depends-on): Add stdlib.
44150
44151 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44152
44153         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44154
44155 2008-12-10  Jim Meyering  <meyering@redhat.com>
44156
44157         gl_ASSERT: don't say assertions are disabled when they're not
44158         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44159         "checking whether to enable assertions... no", when they are in
44160         fact enabled.  This is solely a bug in the output of configure.
44161         In spite of saying "no", NDEBUG was not defined in that case.
44162         Also, as noted by Eric Blake, leave assertions enabled upon
44163         --enable-assert=INVALID.
44164
44165 2008-12-10  Bruno Haible  <bruno@clisp.org>
44166
44167         Change MODULES.html to refer to POSIX:2008 where possible.
44168         * MODULES.html.sh (POSIX2008_URL): New variable.
44169         (posix_headers): Remove sys/timeb, ucontext.
44170         (posix2001_headers): New variable.
44171         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44172         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44173         index, makecontext, mktemp, pthread_attr_getstackaddr,
44174         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44175         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44176         (posix2001_functions): New variable.
44177         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44178         otherwise.
44179
44180 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44181
44182         add missing include to parse-duration.c
44183         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44184         * modules/parse-duration (Depends-on): Add xalloc.
44185
44186         fix sed script reading maint.mk
44187         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44188         (syntax-check-rules): Use it.
44189
44190 2008-12-09  Bruno Haible  <bruno@clisp.org>
44191
44192         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44193         MacOS X 10.4/PowerPC.
44194         Reported by Simon Josefsson.
44195
44196 2008-12-08  Jim Meyering  <meyering@redhat.com>
44197
44198         work around mingw's lack of some S_IF definitions
44199         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44200         Reported by Simon Josefsson.
44201
44202 2008-12-08  Bruno Haible  <bruno@clisp.org>
44203
44204         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44205         applied to variables. Needed on MacOS X 10.4/PowerPC.
44206         Reported by Simon Josefsson.
44207
44208 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44209         and Eric Blake  <ebb9@byu.net>
44210
44211         assert: honor --enable-assert
44212         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44213         order to honor --enable-assert, rather than treating it as a
44214         synonym for --disable-assert.
44215
44216 2008-12-08  Jim Meyering  <meyering@redhat.com>
44217
44218         * lib/posixtm.c: Remove now-useless declaration of mktime.
44219
44220         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44221
44222 2008-12-07  Bruno Haible  <bruno@clisp.org>
44223
44224         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44225         test_once): Mark functions as static.
44226         * tests/test-tls.c (test_tls): Likewise.
44227
44228 2008-12-07  Bruno Haible  <bruno@clisp.org>
44229
44230         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44231         iconv_register_autodetect.
44232
44233 2008-12-07  Jim Meyering  <meyering@redhat.com>
44234
44235         posixtm.c: avoid a warning
44236         * lib/posixtm.c (posixtime): Don't initialize tm0.
44237         It's no longer needed to placate gcc4's -Wuninitialized,
44238         and the attempt to placate would elicit a new warning.
44239
44240         unicodeio.c: mark unused parameters
44241         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44242         (fallback_failure_callback): Likewise.
44243
44244 2008-12-07  Bruno Haible  <bruno@clisp.org>
44245
44246         * gnulib-tool (func_create_testdir): When building the tests
44247         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44248         Reported by Simon Josefsson.
44249
44250 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44251
44252         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44253
44254 2008-12-06  Bruno Haible  <bruno@clisp.org>
44255
44256         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44257         Suggested by Eric Blake.
44258
44259 2008-12-06  Bruno Haible  <bruno@clisp.org>
44260
44261         Fix a c-stack test failure on MacOS X.
44262         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44263         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44264         handler for SIGBUS as well.
44265         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44266         install a signal handler for SIGBUS as well.
44267         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44268
44269 2008-12-06  Bruno Haible  <bruno@clisp.org>
44270
44271         Advocacy documentation.
44272         * doc/gnulib-intro.texi (Benefits): New section.
44273         * doc/gnulib.texi: Update.
44274
44275 2008-12-06  Bruno Haible  <bruno@clisp.org>
44276
44277         Document the 'manywarnings' module.
44278         * doc/manywarnings.texi: New file.
44279         * doc/gnulib.texi: Include it.
44280
44281 2008-12-05  Eric Blake  <ebb9@byu.net>
44282
44283         tests: silence some gcc warnings
44284         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44285         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44286         type mismatches.
44287
44288 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44289             Bruno Haible  <bruno@clisp.org>
44290
44291         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44292
44293 2008-11-29  Jim Meyering  <meyering@redhat.com>
44294
44295         unicodeio.c: mark unused parameters
44296         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44297         (fallback_failure_callback): Likewise.
44298
44299         fts: fix a thinko
44300         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44301         (set_stat_type): Return S_IF*-valued "type" directly.
44302         Prompted by James Youngman's spotting a related bug.
44303         Confirmed by further testing through find.
44304
44305         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44306         * lib/fts.c (D_TYPE): Define.
44307         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44308         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44309         (s_ifmt_shift_bits): New function.
44310         (set_stat_type): New function.
44311         (fts_build): When not calling fts_stat, call set_stat_type
44312         to propagate dirent.d_type info to fts_read caller.
44313         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44314         fts_statp->st_mode type information may be valid.
44315
44316 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44317
44318         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44319         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44320         <sds@gnu.org>.
44321
44322 2008-11-20  Bruno Haible  <bruno@clisp.org>
44323
44324         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44325         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44326         INCLUDE_NEXT.
44327         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44328         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44329         * modules/math (Makefile.am): Substitute
44330         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44331         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44332
44333 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44334             Bruno Haible  <bruno@clisp.org>
44335
44336         * lib/stdint.in.h: Define all type macros so that their expansion is
44337         a single typedef'ed token. Fixes a compilation failure in Boost which
44338         does "using ::int8_t;".
44339
44340 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44341
44342         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44343         gl_MANYWARN_ALL_GCC.
44344         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44345         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44346         * modules/manywarnings: New file.
44347         * MODULES.html.sh: Mention manywarnings module.
44348
44349 2008-11-18  Bruno Haible  <bruno@clisp.org>
44350
44351         * doc/gnulib-tool.texi (Unit tests): New section.
44352
44353 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44354
44355         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44356         paths like 'lib/po/foo.po'.
44357
44358 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44359
44360         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44361         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44362
44363 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44364
44365         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44366         parameter works.
44367
44368 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44369
44370         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44371
44372 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44373
44374         * modules/parse-duration-tests: New file.
44375         * tests/test-parse-duration.sh: New file.
44376         * tests/test-parse-duration.c: New file.
44377
44378         New module 'parse-duration'.
44379         * lib/parse-duration.h: New file.
44380         * lib/parse-duration.c: New file.
44381         * modules/parse-duration: New file.
44382
44383 2008-11-17  Bruno Haible  <bruno@clisp.org>
44384
44385         * tests/test-select-out.sh: Comment out the first pipe test.
44386         Reported by Simon Josefsson.
44387
44388 2008-11-17  Bruno Haible  <bruno@clisp.org>
44389
44390         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44391         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44392         gl_HOSTENT.
44393
44394 2008-11-17  Bruno Haible  <bruno@clisp.org>
44395
44396         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44397         -lnetwork and -lnet. Needed for Haiku and BeOS.
44398
44399 2008-11-16  Bruno Haible  <bruno@clisp.org>
44400
44401         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44402
44403 2008-11-16  Bruno Haible  <bruno@clisp.org>
44404
44405         Avoid test failure on Haiku.
44406         * tests/test-fsync.c: Include <errno.h>.
44407         (main): Don't require that fsync (0) fails.
44408
44409 2008-11-15  Bruno Haible  <bruno@clisp.org>
44410
44411         New module 'hostent'.
44412         * modules/hostent: New file.
44413         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44414
44415 2008-11-15  Bruno Haible  <bruno@clisp.org>
44416
44417         New module 'servent'.
44418         * modules/servent: New file.
44419         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44420
44421 2008-11-15  Bruno Haible  <bruno@clisp.org>
44422
44423         Avoid generating same test program with two different rules.
44424         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44425         test-frexp to test-frexp-nolibm.
44426         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44427         test-frexpl to test-frexpl-nolibm.
44428
44429 2008-11-15  Bruno Haible  <bruno@clisp.org>
44430
44431         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44432         $(FREXPL_LIBM).
44433
44434 2008-11-15  Bruno Haible  <bruno@clisp.org>
44435
44436         * lib/netdb.in.h: Activate the definitions also when the system's
44437         <netdb.h> has 'struct addrinfo'.
44438         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44439         EAI_OVERFLOW or AI_NUMERICSERV.
44440         * doc/posix-headers/netdb.texi: Document the problem.
44441
44442 2008-11-15  Bruno Haible  <bruno@clisp.org>
44443
44444         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44445
44446         Make the 'sched' module work on platforms where <sched.h> exists but
44447         is incomplete (such as Haiku).
44448         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44449         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44450         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44451         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44452         HAVE_STRUCT_SCHED_PARAM.
44453         * modules/sched (Depends-on): Add include_next.
44454         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44455         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44456         * doc/posix-headers/sched.texi: Document the issue.
44457
44458 2008-11-13  Jim Meyering  <meyering@redhat.com>
44459
44460         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44461         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44462         test would fail due to the difference in the Report bugs to ...
44463         line.  The expected address is empty, "<>", while the actual
44464         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44465
44466 2008-11-12  Bruno Haible  <bruno@clisp.org>
44467
44468         lstat: don't compile lstat.c on systems lacking lstat
44469         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44470         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44471         Reported by Daniel P. Berrange via Jim Meyering.
44472
44473 2008-11-12  Jim Meyering  <meyering@redhat.com>
44474
44475         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44476
44477 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44478
44479         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44480         instead.
44481
44482 2008-11-12  Bruno Haible  <bruno@clisp.org>
44483
44484         * lib/unicodeio.c: Include unistr.h.
44485         (utf8_wctomb): Remove function.
44486         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44487
44488 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44489
44490         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44491         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44492         <bruno@clisp.org>.
44493         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44494
44495 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44496
44497         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44498         * doc/gnulib.texi: Add section for warnings.
44499
44500 2008-11-11  Bruno Haible  <bruno@clisp.org>
44501
44502         * lib/sockets.h: Add a comment.
44503
44504 2008-11-11  Karl Berry  <karl@gnu.org>
44505
44506         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44507
44508 2008-11-11  Eric Blake  <ebb9@byu.net>
44509
44510         fdl.texi: avoid git symlinks
44511         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44512
44513 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44514
44515         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44516
44517 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44518
44519         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44520         (gl_WARN_ADD): Substitute $2 if literal.
44521
44522 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44523
44524         * m4/warning.m4: Remove.
44525
44526 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44527
44528         * m4/warnings.m4: Almost complete rewrite. :-)
44529
44530 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44531
44532         * modules/warnings: New module.
44533         * m4/warnings.m4: New file.
44534         * MODULES.html.sh: Mention warnings module.
44535         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44536         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44537
44538 2008-11-10  Eric Blake  <ebb9@byu.net>
44539
44540         fdl.texi: make a symlink to the latest version
44541         * doc/standards.texi: Revert today's earlier change.
44542         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44543         * doc/fdl.texi: ...and replace this with a symlink to the newer
44544         fdl-1.3.texi.
44545
44546 2008-11-10  Bruno Haible  <bruno@clisp.org>
44547
44548         * tests/test-select-fd.c (main): Accept the result file name as fourth
44549         argument.
44550         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44551         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44552
44553 2008-11-10  Bruno Haible  <bruno@clisp.org>
44554
44555         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44556         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44557         as autoconf-substituted macros.
44558         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44559         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44560         gl_NETDB_H_DEFAULTS. Set these variables.
44561         * modules/netdb (Makefile.am): Substitute these variables.
44562
44563 2008-11-10  Eric Blake  <ebb9@byu.net>
44564
44565         standards.texi: include correct file for FDL 1.3
44566         * doc/standards.texi (GNU Free Documentation License): Change
44567         include file to pull in FDL 1.3, not 1.2.
44568
44569         fdl.texi: revert accidental change to license
44570         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44571
44572 2008-11-10  Bruno Haible  <bruno@clisp.org>
44573
44574         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44575         cross-compiling guesses also when the native compile gives no result.
44576
44577 2008-11-10  Bruno Haible  <bruno@clisp.org>
44578
44579         * lib/spawni.c (__spawni): Force variable into the stack.
44580
44581 2008-11-10  Bruno Haible  <bruno@clisp.org>
44582
44583         Add support for Haiku.
44584         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44585         glibc and BeOS, but also on Haiku.
44586         * lib/fpurge.c (fpurge): Likewise.
44587         * lib/freadable.c (freadable): Likewise.
44588         * lib/freadahead.c (freadahead): Likewise.
44589         * lib/freading.c (freading): Likewise.
44590         * lib/freadptr.c (freadptr): Likewise.
44591         * lib/freadseek.c (freadptrinc): Likewise.
44592         * lib/fseeko.c (rpl_fseeko): Likewise.
44593         * lib/fseterr.c (fseterr): Likewise.
44594         * lib/fwritable.c (fwritable): Likewise.
44595         * lib/fwriting.c (fwriting): Likewise.
44596         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44597
44598 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44599
44600         * lib/config.charset: Treat Haiku like BeOS.
44601
44602 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44603
44604         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44605         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44606
44607 2008-11-08  Bruno Haible  <bruno@clisp.org>
44608
44609         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44610         AC_CACHE_CHECK.
44611
44612 2008-11-08  Bruno Haible  <bruno@clisp.org>
44613
44614         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44615
44616 2008-11-08  Bruno Haible  <bruno@clisp.org>
44617
44618         * tests/test-select-fd.c: New file.
44619         * tests/test-select-in.sh: New file.
44620         * tests/test-select-out.sh: New file.
44621         * tests/test-select-stdin.c: New file.
44622         * modules/select-tests (Files): Add the new files.
44623         (Depends-on): Add gettimeofday.
44624         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44625         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44626         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44627
44628 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44629             Bruno Haible  <bruno@clisp.org>
44630
44631         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44632
44633 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44634
44635         * build-aux/pmccabe2html: Added support for C++ source files.
44636
44637 2008-11-05  Ben Pfaff  <blp@gnu.org>
44638
44639         Fix lib/close.c build on Windows.
44640         * modules/close (Files): Add lib/w32sock.h.
44641
44642 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44643
44644         Accept Bison's NEWS format.
44645         * build-aux/announce-gen (print_news_deltas): Tweak
44646         $re_prefix.
44647
44648 2008-11-04  Bruno Haible  <bruno@clisp.org>
44649
44650         * modules/random_r (Maintainer): Add glibc.
44651
44652 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44653
44654         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44655         by karl@freefriends.org (Karl Berry).
44656         * doc/alloca.texi: Likewise.
44657         * doc/c-ctype.texi: Likewise.
44658         * doc/c-strcase.texi: Likewise.
44659         * doc/c-strcaseeq.texi: Likewise.
44660         * doc/c-strcasestr.texi: Likewise.
44661         * doc/c-strstr.texi: Likewise.
44662         * doc/c-strtod.texi: Likewise.
44663         * doc/c-strtold.texi: Likewise.
44664         * doc/ctime.texi: Likewise.
44665         * doc/error.texi: Likewise.
44666         * doc/fdl.texi: Likewise.
44667         * doc/gcd.texi: Likewise.
44668         * doc/getdate.texi: Likewise.
44669         * doc/gnulib-intro.texi: Likewise.
44670         * doc/gnulib-tool.texi: Likewise.
44671         * doc/gnulib.texi: Likewise.
44672         * doc/inet_ntoa.texi: Likewise.
44673         * doc/maintain.texi: Likewise.
44674         * doc/make-stds.texi: Likewise.
44675         * doc/quote.texi: Likewise.
44676         * doc/regexprops-generic.texi: Likewise.
44677         * doc/standards.texi: Likewise.
44678         * doc/verify.texi: Likewise.
44679         * doc/visibility.texi: Likewise.
44680         * doc/gnulib.texi (GNU Free Documentation License): Include
44681         fdl-1.3.texi instead of fdl.texi.
44682
44683 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44684
44685         * doc/fdl-1.3.texi: New file, from
44686         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44687         * modules/fdl-1.3: Add.
44688         * MODULES.html.sh: Add fdl-1.3.
44689
44690 2008-11-03  Bruno Haible  <bruno@clisp.org>
44691
44692         Make determination of absolute name of header file work with AIX xlc.
44693         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44694         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44695         preprocessing.
44696         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44697         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44698
44699 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44700
44701         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44702         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44703         <ludo@gnu.org>.
44704
44705 2008-11-02  Bruno Haible  <bruno@clisp.org>
44706
44707         Mark 'strpbrk' obsolete.
44708         * modules/strpbrk (Status, Notice): New sections.
44709         * modules/strtok_r (Depends-on): Add strpbrk.
44710
44711 2008-11-02  Bruno Haible  <bruno@clisp.org>
44712
44713         Mark 'strdup' obsolete.
44714         * modules/strdup (Status, Notice): New sections.
44715         * modules/findprog (Depends-on): Add strdup.
44716         * modules/getaddrinfo (Depends-on): Likewise.
44717         * modules/localename (Depends-on): Likewise.
44718         * modules/relocatable-lib (Depends-on): Likewise.
44719         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44720         * modules/relocatable-prog (Depends-on): Likewise.
44721         * modules/trim (Depends-on): Likewise.
44722         * modules/unictype/gen-ctype (Depends-on): Likewise.
44723         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44724
44725 2008-11-02  Bruno Haible  <bruno@clisp.org>
44726
44727         Mark 'strcspn' obsolete.
44728         * modules/strcspn (Status, Notice): New sections.
44729
44730 2008-11-02  Bruno Haible  <bruno@clisp.org>
44731
44732         Mark 'rmdir' obsolete.
44733         * modules/rmdir (Status, Notice): New sections.
44734         * modules/clean-temp (Depends-on): Add rmdir.
44735         * modules/openat (Depends-on): Likewise.
44736
44737 2008-11-02  Bruno Haible  <bruno@clisp.org>
44738
44739         Mark 'raise' obsolete.
44740         * modules/raise (Status, Notice): New sections.
44741         (Include): Specify <signal.h>.
44742         * modules/stdio (Depends-on): Add raise.
44743         * modules/write (Depends-on): Likewise.
44744
44745 2008-11-02  Bruno Haible  <bruno@clisp.org>
44746
44747         Mark 'memset' obsolete.
44748         * modules/memset (Status, Notice): New sections.
44749
44750 2008-11-02  Bruno Haible  <bruno@clisp.org>
44751
44752         Mark 'memmove' obsolete.
44753         * modules/memmove (Status, Notice): New sections.
44754         * modules/argp (Depends-on): Add memmove.
44755         * modules/argz (Depends-on): Likewise.
44756         * modules/canonicalize (Depends-on): Likewise.
44757         * modules/canonicalize-lgpl (Depends-on): Likewise.
44758         * modules/fts (Depends-on): Likewise.
44759         * modules/getcwd (Depends-on): Likewise.
44760         * modules/human (Depends-on): Likewise.
44761         * modules/regex (Depends-on): Likewise.
44762         * modules/striconveh (Depends-on): Likewise.
44763         * modules/trim (Depends-on): Likewise.
44764         * modules/unistr/u8-move (Depends-on): Likewise.
44765         * modules/unistr/u16-move (Depends-on): Likewise.
44766         * modules/unistr/u32-move (Depends-on): Likewise.
44767
44768 2008-11-02  Bruno Haible  <bruno@clisp.org>
44769
44770         Mark 'memcpy' obsolete.
44771         * modules/memcpy (Status, Notice): New sections.
44772
44773 2008-11-02  Bruno Haible  <bruno@clisp.org>
44774
44775         Mark 'memcmp' obsolete.
44776         * modules/memcmp (Status, Notice): New sections.
44777         * modules/argmatch (Depends-on): Add memchr.
44778         * modules/backupfile (Depends-on): Likewise.
44779         * modules/c-strcasestr (Depends-on): Likewise.
44780         * modules/crypto/des (Depends-on): Likewise.
44781         * modules/csharpcomp (Depends-on): Likewise.
44782         * modules/fnmatch (Depends-on): Likewise.
44783         * modules/git-merge-changelog (Depends-on): Likewise.
44784         * modules/isnand (Depends-on): Likewise.
44785         * modules/isnand-nolibm (Depends-on): Likewise.
44786         * modules/isnanf (Depends-on): Likewise.
44787         * modules/isnanf-nolibm (Depends-on): Likewise.
44788         * modules/isnanl (Depends-on): Likewise.
44789         * modules/isnanl-nolibm (Depends-on): Likewise.
44790         * modules/mbchar (Depends-on): Likewise.
44791         * modules/memcoll (Depends-on): Likewise.
44792         * modules/quotearg (Depends-on): Likewise.
44793         * modules/regex (Depends-on): Likewise.
44794         * modules/relocatable-prog (Depends-on): Likewise.
44795         * modules/same (Depends-on): Likewise.
44796         * modules/signbit (Depends-on): Likewise.
44797         * modules/strcasestr-simple (Depends-on): Likewise.
44798         * modules/unictype/gen-ctype (Depends-on): Likewise.
44799         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44800         * modules/uniname/uniname (Depends-on): Likewise.
44801         * modules/unistr/u8-cmp (Depends-on): Likewise.
44802
44803 2008-11-02  Bruno Haible  <bruno@clisp.org>
44804
44805         Mark 'memchr' obsolete.
44806         * modules/memchr (Status, Notice): New sections.
44807         * modules/argp (Depends-on): Add memchr.
44808         * modules/base64 (Depends-on): Likewise.
44809         * modules/c-strcasestr (Depends-on): Likewise.
44810         * modules/chdir-long (Depends-on): Likewise.
44811         * modules/fnmatch (Depends-on): Likewise.
44812         * modules/getsubopt (Depends-on): Likewise.
44813         * modules/git-merge-changelog (Depends-on): Likewise.
44814         * modules/glob (Depends-on): Likewise.
44815         * modules/strcasestr-simple (Depends-on): Likewise.
44816         * modules/strnlen (Depends-on): Likewise.
44817
44818 2008-11-02  Bruno Haible  <bruno@clisp.org>
44819
44820         Mark 'atexit' obsolete.
44821         * modules/atexit (Status, Notice): New sections.
44822         * modules/chdir-long (Depends-on): Add atexit.
44823         * modules/wait-process (Depends-on): Likewise.
44824
44825 2008-11-02  Bruno Haible  <bruno@clisp.org>
44826
44827         * gnulib-tool: New option --with-obsolete.
44828         (func_usage): Document it.
44829         (func_modules_transitive_closure): Drop obsolete dependencies if
44830         incobsolete is not true.
44831         (func_import): Read and save the incobsolete variable to the cache.
44832
44833 2008-11-02  Bruno Haible  <bruno@clisp.org>
44834
44835         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44836         * gnulib-tool: New option --extract-status.
44837         (func_usage): Document it.
44838         (sed_extract_prog): Recognize it.
44839         (func_get_status): New function.
44840
44841 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44842
44843         * modules/sockets (License): Change from LGPL to LGPLv2+.
44844
44845 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44846
44847         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44848
44849 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44850
44851         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44852         Mention times and sys_times.
44853         * modules/sys_times, modules/sys_times-tests: New modules.
44854         * modules/times, modules/times-tests: Likewise
44855         * m4/sys_times_h.m4: New file.
44856         * lib/sys_times.in.h: Likewise
44857         * lib/times.c: Likewise.
44858         * tests/test-sys_times.c: Likewise.
44859         * tests/test-times.c: Likewise.
44860         * doc/posix-headers/sys_times.texi: Update.
44861         * doc/posix-functions/times.texi: Update.
44862
44863 2008-10-28  Jim Meyering  <meyering@redhat.com>
44864
44865         * modules/tempname (Depends-on): Add lstat.
44866
44867         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44868
44869 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44870
44871         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44872         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44873         using idiom used elsewhere in gnulib.
44874
44875 2008-10-27  Jim Meyering  <meyering@redhat.com>
44876
44877         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44878
44879 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44880
44881         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44882         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44883         programs.
44884         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44885
44886 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44887
44888         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44889
44890 2008-10-27  Bruno Haible  <bruno@clisp.org>
44891
44892         * tests/test-lstat.c: Include <stdio.h>.
44893
44894 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44895
44896         * modules/lstat-tests: New module.
44897         * tests/test-lstat.c: New file.
44898
44899 2008-10-26  Jim Meyering  <meyering@redhat.com>
44900
44901         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44902
44903 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44904             Bruno Haible  <bruno@clisp.org>
44905
44906         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44907         * modules/configmake (Include): Add a note that the include must come
44908         after all system headers.
44909         * lib/javaversion.c: Include configmake.h after all other includes.
44910
44911 2008-10-26  Bruno Haible  <bruno@clisp.org>
44912
44913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44914         HAVE_STRUCT_RANDOM_DATA to 1.
44915         (gl_STDLIB_H): Simplify.
44916
44917 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44918
44919         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44920         substitute HAVE_STRUCT_RANDOM_DATA.
44921         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44922         random_data.
44923         * modules/stdlib (Makefile.am): Substitute
44924         HAVE_STRUCT_RANDOM_DATA.
44925
44926 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44927
44928         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44929         * doc/gnulib-intro.texi (Copyright): Likewise.
44930
44931 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44932
44933         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44934         findings.
44935
44936 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44937             Bruno Haible  <bruno@clisp.org>
44938
44939         * lib/unistd.in.h: Include <winsock2.h>.
44940         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44941         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44942         Provide dummy declarations.
44943         (gethostname): Override.
44944         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44945         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44946         gl_PREREQ_SYS_H_WINSOCK2.
44947         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44948         * doc/posix-functions/gethostname.texi: More details.
44949
44950 2008-10-25  Bruno Haible  <bruno@clisp.org>
44951
44952         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44953         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44954         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44955
44956         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44957         here ...
44958         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44959         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44960         gl_UNISTD_H_DEFAULTS.
44961
44962 2008-10-25  Eric Blake  <ebb9@byu.net>
44963
44964         signbit: avoid spurious compiler failure
44965         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44966         declarations inside function.
44967
44968 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44969             Bruno Haible  <bruno@clisp.org>
44970
44971         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44972         * modules/random_r (Depends-on): Add stdint.
44973
44974 2008-10-24  Bruno Haible  <bruno@clisp.org>
44975
44976         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44977         Eggert.
44978         * modules/strerror (License): Likewise.
44979
44980 2008-10-24  Jim Meyering  <meyering@redhat.com>
44981
44982         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44983         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44984
44985 2008-10-24  Eric Blake  <ebb9@byu.net>
44986
44987         getgroups: fix compilation when getgroups is available
44988         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44989         but with <config.h> override of getgroups disabled.
44990
44991 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44992
44993         * doc/gnulib.texi (Header files): Add note about C++ problems.
44994         Explained by Bruno Haible <bruno@clisp.org>.
44995
44996 2008-10-23  Bruno Haible  <bruno@clisp.org>
44997
44998         Define a dummy SA_NODEFER macro on Interix.
44999         * lib/signal.in.h (SA_NODEFER): Define fallback.
45000         Reported by Aleksey Cheusov <cheusov@tut.by> via
45001         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45002
45003 2008-10-23  Bruno Haible  <bruno@clisp.org>
45004
45005         * modules/freadahead (License): Change to LGPLv2+.
45006         Suggested by Simon Josefsson.
45007
45008 2008-10-23  Jim Meyering  <meyering@redhat.com>
45009
45010         random_r: new module
45011         * modules/random_r: New file.
45012         * m4/random_r.m4: New file.
45013         * lib/random_r.c: New file, from glibc.
45014         * modules/random_r-tests: New file.
45015         * tests/test-random_r.c: New file.
45016         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45017          Declare.
45018         (RAND_MAX): Define.
45019         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45020         * modules/stdlib: Substitute them, too.
45021         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45022         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45023         * doc/glibc-functions/random_r.texi: Likewise.
45024         * doc/glibc-functions/setstate_r.texi: Likewise.
45025         * doc/glibc-functions/srandom_r.texi: Likewise.
45026         * config/srclist.txt: Mention it.
45027
45028 2008-10-23  David Lutterkort  <lutter@redhat.com>
45029
45030         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45031         link requirement
45032
45033 2008-10-23  Jim Meyering  <meyering@redhat.com>
45034
45035         selinux-h: mark parameters of stub functions as intentionally unused
45036         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45037         * lib/se-context.in.h: Likewise.
45038
45039 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45040
45041         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45042
45043 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45044
45045         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45046
45047 2008-10-22  Eric Blake  <ebb9@byu.net>
45048
45049         glthread/thread: avoid compiler warning
45050         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45051         Add unreachable abort to silence compiler.
45052
45053 2008-10-22  Eric Blake  <ebb9@byu.net>
45054
45055         netdb: also supply struct addrinfo for cygwin 1.5.x
45056         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45057         older cygwin.
45058         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45059         cygwin.
45060         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45061
45062 2008-10-22  Bruno Haible  <bruno@clisp.org>
45063
45064         * users.txt: Update entry about pspp.
45065
45066 2008-10-21  Bruno Haible  <bruno@clisp.org>
45067
45068         Simplification.
45069         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45070         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45071
45072         Simplification.
45073         * lib/ioctl.c (ioctl): Don't undefine.
45074         * lib/socket.c (socket): Don't undefine.
45075
45076         Remove unused module indicator macros.
45077         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45078         GNULIB_$1 as a C macro.
45079
45080         * doc/posix-functions/close.texi: Undo last change.
45081         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45082         Windows platforms.
45083
45084 2008-10-21  Bruno Haible  <bruno@clisp.org>
45085
45086         Add gethostname() declaration to <unistd.h>.
45087         * lib/unistd.in.h (gethostname): New declaration.
45088         * lib/gethostname.c: Include <unistd.h>.
45089         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45090         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45092         and HAVE_GETHOSTNAME.
45093         * modules/gethostname (Depends-on): Add unistd.
45094         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45095         (Include): Specify <unistd.h>.
45096         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45097         HAVE_GETHOSTNAME.
45098         * tests/test-gethostname.c: Include <unistd.h> first.
45099
45100 2008-10-21  Bruno Haible  <bruno@clisp.org>
45101
45102         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45103         * modules/select-tests (Depends-on): Likewise.
45104         Reported by Simon Josefsson.
45105
45106 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45107
45108         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45109         * lib/accept.c: New file, based on winsock.c.
45110         * lib/bind.c: New file, based on winsock.c.
45111         * lib/connect.c: New file, based on winsock.c.
45112         * lib/getpeername.c: New file, based on winsock.c.
45113         * lib/getsockname.c: New file, based on winsock.c.
45114         * lib/getsockopt.c: New file, based on winsock.c.
45115         * lib/ioctl.c: New file, based on winsock.c.
45116         * lib/listen.c: New file, based on winsock.c.
45117         * lib/recv.c: New file, based on winsock.c.
45118         * lib/recvfrom.c: New file, based on winsock.c.
45119         * lib/send.c: New file, based on winsock.c.
45120         * lib/sendto.c: New file, based on winsock.c.
45121         * lib/setsockopt.c: New file, based on winsock.c.
45122         * lib/shutdown.c: New file, based on winsock.c.
45123         * lib/socket.c: New file, based on winsock.c.
45124         * lib/w32sock.h: New file, based on winsock.c.
45125         * lib/winsock.c: Remove file.
45126         * modules/accept: Likewise.
45127         * modules/bind: Likewise.
45128         * modules/connect: Likewise.
45129         * modules/getpeername: Likewise.
45130         * modules/getsockname: Likewise.
45131         * modules/getsockopt: Likewise.
45132         * modules/ioctl: Likewise.
45133         * modules/listen: Likewise.
45134         * modules/recv: Likewise.
45135         * modules/recvfrom: Likewise.
45136         * modules/send: Likewise.
45137         * modules/sendto: Likewise.
45138         * modules/setsockopt: Likewise.
45139         * modules/shutdown: Likewise.
45140         * modules/socket: Use socket.c instead of winsock.c.
45141         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45142         * doc/posix-functions/accept.texi: Doc fix.
45143         * doc/posix-functions/bind.texi: Doc fix.
45144         * doc/posix-functions/close.texi: Doc fix.
45145         * doc/posix-functions/connect.texi: Doc fix.
45146         * doc/posix-functions/getpeername.texi: Doc fix.
45147         * doc/posix-functions/getsockname.texi: Doc fix.
45148         * doc/posix-functions/getsockopt.texi: Doc fix.
45149         * doc/posix-functions/ioctl.texi: Doc fix.
45150         * doc/posix-functions/listen.texi: Doc fix.
45151         * doc/posix-functions/recv.texi: Doc fix.
45152         * doc/posix-functions/recvfrom.texi: Doc fix.
45153         * doc/posix-functions/send.texi: Doc fix.
45154         * doc/posix-functions/sendto.texi: Doc fix.
45155         * doc/posix-functions/setsockopt.texi: Doc fix.
45156         * doc/posix-functions/shutdown.texi: Doc fix.
45157         * doc/posix-functions/socket.texi: Doc fix.
45158
45159 2008-10-20  Bruno Haible  <bruno@clisp.org>
45160
45161         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45162         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45163         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45164         as an alias for SIGABRT.
45165         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45166         (sigaction): Map it to SIGABRT.
45167         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45168
45169 2008-10-20  Bruno Haible  <bruno@clisp.org>
45170
45171         * lib/fts.c: Don't include lstat.h.
45172         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45173
45174         Move the lstat() declaration to <sys/stat.h>.
45175         * lib/lstat.h: Remove file.
45176         * lib/sys_stat.in.h: Add special invocation convention.
45177         (lstat): New declaration.
45178         * lib/lstat.c (orig_lstat): New function.
45179         (rpl_lstat): Use orig_lstat instead of lstat.
45180         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45181         AC_C_INLINE. Set REPLACE_LSTAT.
45182         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45183         and REPLACE_LSTAT.
45184         * modules/lstat (Files): Remove lib/lstat.h.
45185         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45186         (Include): Specify <sys/stat.h> instead of lstat.h.
45187         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45188         REPLACE_LSTAT.
45189         * NEWS: Mention the change.
45190
45191 2008-10-20  Bruno Haible  <bruno@clisp.org>
45192
45193         * modules/posix_spawn-tests: New file.
45194         * tests/test-posix_spawn3.c: New file.
45195
45196 2008-10-20  Bruno Haible  <bruno@clisp.org>
45197
45198         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45199         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45200         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45201         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45202         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45203
45204 2008-10-20  Bruno Haible  <bruno@clisp.org>
45205
45206         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45207         of posix_spawn on AIX 5.3.
45208
45209 2008-10-20  Bruno Haible  <bruno@clisp.org>
45210
45211         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45212
45213 2008-10-20  Bruno Haible  <bruno@clisp.org>
45214
45215         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45216         of AC_LANG_PROGRAM.
45217
45218 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45219
45220         * lib/netdb.in.h: Don't define GNU specific constants until they
45221         are supported or needed.  Reported by Bruno Haible
45222         <bruno@clisp.org>.
45223
45224 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45225
45226         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45227
45228 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45229
45230         * lib/getaddrinfo.h: Remove file.
45231         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45232         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45233         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45234         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45235         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45236         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45237         * tests/test-getaddrinfo.c: Likewise.
45238         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45239         * NEWS: Mention change.
45240
45241 2008-10-19  Bruno Haible  <bruno@clisp.org>
45242
45243         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45244
45245 2008-10-19  Bruno Haible  <bruno@clisp.org>
45246
45247         * lib/wait-process.c: Include simply <sys/wait.h>.
45248         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45249         WIFSTOPPED): Remove fallback definitions.
45250         * modules/wait-process (Depends-on): Add sys_wait.
45251
45252         New module 'sys_wait'.
45253         * modules/sys_wait: New file.
45254         * lib/sys_wait.in.h: New file, partially copied from
45255         lib/wait-process.c.
45256         * m4/sys_wait_h.m4: New file.
45257         * doc/posix-headers/sys_wait.texi: Mention the new module.
45258
45259 2008-10-19  Bruno Haible  <bruno@clisp.org>
45260
45261         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45262
45263 2008-10-19  Bruno Haible  <bruno@clisp.org>
45264
45265         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45266         * lib/wait-process.c (WAIT_T): Remove type.
45267         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45268         (wait_subprocess): Update.
45269
45270 2008-10-19  Bruno Haible  <bruno@clisp.org>
45271
45272         New module 'atoll'.
45273         * modules/atoll: New file.
45274         * lib/stdlib.in.h (atoll): New declaration.
45275         * lib/atoll.c: New file, from glibc with modifications.
45276         * m4/atoll.m4: New file.
45277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45278         HAVE_ATOLL.
45279         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45280         * doc/posix-functions/atoll.texi: Mention the new module.
45281
45282 2008-10-19  Bruno Haible  <bruno@clisp.org>
45283
45284         Add strtoull() declaration to <stdlib.h>.
45285         * lib/stdlib.in.h (strtoull): New declaration.
45286         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45287         Set HAVE_STRTOULL.
45288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45289         HAVE_STRTOULL.
45290         * modules/strtoull (Depends-on): Add stdlib.
45291         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45292         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45293         HAVE_STRTOULL.
45294
45295 2008-10-19  Bruno Haible  <bruno@clisp.org>
45296
45297         Add strtoll() declaration to <stdlib.h>.
45298         * lib/stdlib.in.h (strtoll): New declaration.
45299         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45300         Set HAVE_STRTOLL.
45301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45302         HAVE_STRTOLL.
45303         * modules/strtoll (Depends-on): Add stdlib.
45304         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45305         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45306
45307 2008-10-19  Bruno Haible  <bruno@clisp.org>
45308
45309         * modules/bcopy (Depends-on): Add strings.
45310         (Include): Specify <strings.h>.
45311
45312 2008-10-19  Bruno Haible  <bruno@clisp.org>
45313
45314         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45315
45316 2008-10-19  Bruno Haible  <bruno@clisp.org>
45317
45318         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45319         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45320         mingw.
45321
45322 2008-10-19  Bruno Haible  <bruno@clisp.org>
45323
45324         * lib/atanl.c: Don't include isnanl.h.
45325         * lib/cosl.c: Likewise.
45326         * lib/ldexpl.c: Likewise.
45327         * lib/logl.c: Likewise.
45328         * lib/sinl.c: Likewise.
45329         * lib/sqrtl.c: Likewise.
45330         * lib/tanl.c: Likewise.
45331
45332         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45333         * lib/isnanf.h: Remove file.
45334         * lib/isnand.h: Remove file.
45335         * lib/isnanl.h: Remove file.
45336         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45337         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45338         macros.
45339         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45340         HAVE_ISNANF, don't define it as a C macro.
45341         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45342         HAVE_ISNAND, don't define it as a C macro.
45343         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45344         HAVE_ISNANL, don't define it as a C macro.
45345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45346         HAVE_ISNAN[FDL].
45347         * modules/isnanf (Files): Remove lib/isnanf.h.
45348         (Depends-on): Add math.
45349         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45350         (Include): Specify <math.h> instead of isnanf.h.
45351         * modules/isnand (Files): Remove lib/isnand.h.
45352         (Depends-on): Add math.
45353         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45354         (Include): Specify <math.h> instead of isnand.h.
45355         * modules/isnanl (Files): Remove lib/isnanl.h.
45356         (Depends-on): Add math.
45357         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45358         (Include): Specify <math.h> instead of isnanl.h.
45359         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45360         HAVE_ISNAN[FDL].
45361         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45362         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45363         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45364         * NEWS: Mention the change.
45365
45366 2008-10-18  Bruno Haible  <bruno@clisp.org>
45367
45368         Add getusershell(), setusershell(), endusershell() declarations to
45369         <unistd.h>.
45370         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45371         declarations.
45372         * lib/getusershell.c: Include unistd.h.
45373         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45374         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45375         HAVE_GETUSERSHELL.
45376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45377         and HAVE_GETUSERSHELL.
45378         * modules/getusershell (Depends-on): Add unistd, extensions.
45379         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45380         (Include): Specify <unistd.h>.
45381         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45382         HAVE_GETUSERSHELL.
45383
45384 2008-10-18  Bruno Haible  <bruno@clisp.org>
45385
45386         Add a getloadavg() declaration to <stdlib.h>.
45387         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45388         getloadavg declaration.
45389         (getloadavg): New declaration.
45390         * lib/getloadavg.c: Include <stdlib.h> first.
45391         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45392         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45393         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45395         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45396         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45397         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45398         (Include): Specify <stdlib.h>.
45399         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45400         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45401
45402 2008-10-18  Bruno Haible  <bruno@clisp.org>
45403
45404         * lib/dirchownmod.c: Don't include lchmod.h.
45405
45406         Move the lchmod() declaration to <sys/stat.h>.
45407         * lib/lchmod.h: Remove file.
45408         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45409         (lchmod): New declaration, moved here from lib/lchown.h.
45410         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45411         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45412         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45413         and HAVE_LCHMOD.
45414         * modules/lchmod (Files): Remove lib/lchmod.h.
45415         (Depends-on): Add sys_stat, extensions.
45416         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45417         (Include): Specify <sys/stat.h> instead of lchmod.h.
45418         * modules/sys_stat (Depends-on): Add link-warning.
45419         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45420         definition of GL_LINK_WARNING.
45421         * NEWS: Mention the change.
45422
45423 2008-10-18  Bruno Haible  <bruno@clisp.org>
45424
45425         * lib/fchdir.c: Don't include dirfd.h.
45426         * lib/fts.c: Likewise.
45427         * lib/getcwd.c: Likewise.
45428         * lib/glob.c: Likewise.
45429
45430         Move the dirfd() declaration to <dirent.h>.
45431         * lib/dirfd.h: Remove file.
45432         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45433         (dirfd): New declaration.
45434         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45435         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45436         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45437         HAVE_DECL_DIRFD.
45438         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45439         HAVE_DECL_DIRFD.
45440         * modules/dirfd (Files): Remove lib/dirfd.h.
45441         (Depends-on): Add dirent, extensions.
45442         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45443         (Include): Specify <dirent.h> instead of dirfd.h.
45444         * modules/dirent (Depends-on): Add link-warning.
45445         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45446         definition of GL_LINK_WARNING.
45447         * NEWS: Mention the change.
45448
45449 2008-10-18  Bruno Haible  <bruno@clisp.org>
45450
45451         Move the euidaccess() declaration to <unistd.h>.
45452         * lib/euidaccess.h: Remove file.
45453         * lib/unistd.in.h (euidaccess): New declaration.
45454         * lib/euidaccess.c: Don't include euidaccess.h.
45455         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45456         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45458         and HAVE_EUIDACCESS.
45459         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45460         (Depends-on): Add unistd.
45461         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45462         (Include): Specify <unistd.h> instead of euidaccess.h.
45463         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45464         HAVE_EUIDACCESS.
45465         * NEWS: Mention the change.
45466
45467 2008-10-18  Bruno Haible  <bruno@clisp.org>
45468
45469         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45470
45471         Move the getdomainname() declaration to <unistd.h>.
45472         * lib/getdomainname.h: Remove file.
45473         * lib/unistd.in.h (getdomainname): New declaration.
45474         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45475         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45476         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45477         HAVE_GETDOMAINNAME.
45478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45479         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45480         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45481         (Depends-on): Add unistd, extensions.
45482         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45483         (Includes): Specify <unistd.h> instead of getdomainname.h.
45484         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45485         HAVE_GETDOMAINNAME.
45486         * NEWS: Mention the change.
45487
45488 2008-10-18  Bruno Haible  <bruno@clisp.org>
45489
45490         * modules/dirent: New file.
45491         * m4/dirent_h.m4: New file.
45492         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45493         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45494         * modules/fchdir (Files): Remove lib/dirent.in.h.
45495         (Depends-on): Add dirent.
45496         (Makefile.am): Move rules to modules/dirent.
45497         * doc/posix-headers/dirent.texi: Mention the new module.
45498
45499 2008-10-18  Bruno Haible  <bruno@clisp.org>
45500
45501         Avoid -Wunused-parameter warnings in public gnulib header files.
45502         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45503         macro.
45504         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45505
45506 2008-10-18  Bruno Haible  <bruno@clisp.org>
45507
45508         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45509         * doc/glibc-functions/error.texi: Mention the module 'error'.
45510         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45511         * doc/glibc-functions/getdomainname.texi: Mention the module
45512         'getdomainname'.
45513         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45514         * doc/glibc-functions/getpagesize.texi: Mention the module
45515         'getpagesize'.
45516         * doc/glibc-functions/getusershell.texi: Mention the module
45517         'getusershell'.
45518         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45519         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45520         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45521         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45522         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45523         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45524         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45525         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45526         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45527         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45528         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45529         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45530         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45531         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45532
45533 2008-10-17  Bruno Haible  <bruno@clisp.org>
45534
45535         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45536         HP-UX and IRIX, use -0.0L.
45537         * tests/test-ceill.c (minus_zero): Likewise.
45538         * tests/test-floorl.c (minus_zero): Likewise.
45539         * tests/test-frexpl.c (minus_zero): Likewise.
45540         * tests/test-isnan.c (minus_zerol): Likewise.
45541         * tests/test-isnanl.h (minus_zero): Likewise.
45542         * tests/test-ldexpl.c (minus_zero): Likewise.
45543         * tests/test-roundl.c (minus_zero): Likewise.
45544         * tests/test-signbit.c (minus_zerol): Likewise.
45545         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45546         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45547         * tests/test-truncl.c (minus_zero): Likewise.
45548         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45549         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45550         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45551         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45552
45553 2008-10-17  Bruno Haible  <bruno@clisp.org>
45554
45555         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45556         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45557         that it gets activated only for gcc >= 3.0.
45558         * lib/dirent.in.h: Likewise.
45559         * lib/errno.in.h: Likewise.
45560         * lib/fcntl.in.h: Likewise.
45561         * lib/float.in.h: Likewise.
45562         * lib/iconv.in.h: Likewise.
45563         * lib/inttypes.in.h: Likewise.
45564         * lib/locale.in.h: Likewise.
45565         * lib/math.in.h: Likewise.
45566         * lib/netdb.in.h: Likewise.
45567         * lib/netinet_in.in.h: Likewise.
45568         * lib/search.in.h: Likewise.
45569         * lib/signal.in.h: Likewise.
45570         * lib/spawn.in.h: Likewise.
45571         * lib/stdarg.in.h: Likewise.
45572         * lib/stdint.in.h: Likewise.
45573         * lib/stdio.in.h: Likewise.
45574         * lib/stdlib.in.h: Likewise.
45575         * lib/string.in.h: Likewise.
45576         * lib/strings.in.h: Likewise.
45577         * lib/sys_file.in.h: Likewise.
45578         * lib/sys_ioctl.in.h: Likewise.
45579         * lib/sys_select.in.h: Likewise.
45580         * lib/sys_socket.in.h: Likewise.
45581         * lib/sys_stat.in.h: Likewise.
45582         * lib/sys_time.in.h: Likewise.
45583         * lib/sysexits.in.h: Likewise.
45584         * lib/time.in.h: Likewise.
45585         * lib/unistd.in.h: Likewise.
45586         * lib/wchar.in.h: Likewise.
45587         * lib/wctype.in.h: Likewise.
45588         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45589
45590 2008-10-17  Jim Meyering  <meyering@redhat.com>
45591
45592         ignore-value: don't depend on inline module
45593         * modules/ignore-value (Depends-on): Remove 'inline'.
45594         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45595         Suggestion from Bruno Haible.
45596
45597 2008-10-17  Bruno Haible  <bruno@clisp.org>
45598
45599         New implementation of condition variables for Win32.
45600         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45601         (gl_linked_waitqueue_t): New type.
45602         (gl_cond_t): Use it.
45603         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45604         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45605         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45606         (glthread_cond_init_func, glthread_cond_wait_func,
45607         glthread_cond_timedwait_func, glthread_cond_signal_func,
45608         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45609         Reimplemented on the basis of gl_linked_waitqueue_t.
45610         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45611         gl_waitqueue_t.
45612         (gl_rwlock_t): Update.
45613         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45614
45615 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45616
45617         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45618         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45619
45620 2008-10-17  Jim Meyering  <meyering@redhat.com>
45621
45622         ignore-value: new module
45623         * modules/ignore-value: New file.
45624         * lib/ignore-value.h: New file.
45625         * MODULES.html.sh (Compiler warning management): New section,
45626         just for this module.  More to come.
45627
45628 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45629
45630         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45631         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45632         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45633
45634 2008-10-16  Jim Meyering  <meyering@redhat.com>
45635
45636         openat-die.c: avoid 'no previous prototype' warning
45637         * lib/openat-die.c: Include "openat.h".
45638         Reported by Reuben Thomas <rrt@sc3d.org>.
45639
45640 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45641
45642         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45643         * lib/netdb.in.h: Fix typo.
45644         Reported by Bruno Haible  <bruno@clisp.org>
45645
45646         * lib/netdb.in.h: Include sys/socket.h for platforms without
45647         netdb.h, to get structures like hostent on MinGW.
45648         * modules/netdb (Depends-on): Add sys_socket.
45649
45650 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45651
45652         * modules/netdb, modules/netdb-tests: New file.
45653         * m4/netdb_h.m4: New file.
45654         * lib/netdb.in.h: Add, currently just an empty file pending
45655         definitions.
45656         * tests/test-netdb.c: New file.
45657         * doc/posix-headers/netdb.texi: Mention that we replace it if
45658         needed.
45659         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45660         netdb.
45661
45662 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45663
45664         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45665         with code.
45666
45667 2008-10-13  Bruno Haible  <bruno@clisp.org>
45668
45669         * lib/glthread/cond.c (glthread_cond_wait_func,
45670         glthread_cond_timedwait_func): Add a comment.
45671
45672 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45673
45674         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45675         * tests/test-select.c: Likewise,
45676
45677 2008-10-13  Bruno Haible  <bruno@clisp.org>
45678
45679         * lib/glthread/cond.c (glthread_cond_wait_func,
45680         glthread_cond_timedwait_func): Fix variable name.
45681         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45682
45683 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45684
45685         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45686         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45687         struct sockaddr.sa_len.
45688         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45689
45690 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45691
45692         * build-aux/pmccabe2html: Add css and css_url parameters.
45693
45694 2008-10-12  Bruno Haible  <bruno@clisp.org>
45695
45696         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45697         calling aclx_get.
45698         Reported by Rainer Tammer <tammer@tammer.net>.
45699
45700 2008-10-12  Bruno Haible  <bruno@clisp.org>
45701
45702         Use msvcrt aware primitives for creation/termination of Win32 threads.
45703         * lib/glthread/thread.c: Include <process.h>.
45704         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45705         (wrapper_func): Update signature.
45706         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45707
45708 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45709             Bruno Haible  <bruno@clisp.org>
45710
45711         Provide a Win32 implementation of the 'cond' module.
45712         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45713         * lib/glthread/cond.c (glthread_cond_init_func,
45714         glthread_cond_wait_func, glthread_cond_timedwait_func,
45715         glthread_cond_signal_func, glthread_cond_broadcast_func,
45716         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45717         * modules/cond (Dependencies): Add gettimeofday.
45718
45719 2008-10-11  Bruno Haible  <bruno@clisp.org>
45720
45721         Make sleep work on older versions of mingw.
45722         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45723         only whether it exists.
45724         * doc/posix-functions/sleep.texi: Mention the problem with older
45725         versions of mingw.
45726
45727 2008-10-11  Bruno Haible  <bruno@clisp.org>
45728
45729         New module 'shutdown'.
45730         * modules/shutdown: New file.
45731         * lib/sys_socket.in.h (shutdown): New declaration.
45732         * lib/winsock.c (shutdown): New function.
45733         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45734         GNULIB_SHUTDOWN.
45735         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45736         * doc/posix-functions/shutdown.texi: Document the new module.
45737
45738 2008-10-11  Jim Meyering  <meyering@redhat.com>
45739
45740         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45741
45742 2008-10-11  Bruno Haible  <bruno@clisp.org>
45743
45744         New module 'fclose'.
45745         * modules/fclose: New file.
45746         * lib/stdio.in.h (fclose): New declaration.
45747         * lib/fclose.c: New file.
45748         * m4/fclose.m4: New file.
45749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45750         REPLACE_FCLOSE.
45751         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45752         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45753         REPLACE_FCLOSE.
45754         * modules/close (Depends-on): fclose.
45755         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45756
45757 2008-10-11  Bruno Haible  <bruno@clisp.org>
45758
45759         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45760         set errno and don't call _close.
45761
45762 2008-10-10  Bruno Haible  <bruno@clisp.org>
45763
45764         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45765         ACL, not afterwards. Fixes test failure on Cygwin.
45766
45767 2008-10-09  Ben Pfaff  <blp@gnu.org>
45768
45769         * build-aux/announce-gen: Fix gnulib version related part of usage
45770         message.  Die with a useful error message if no tarballs are
45771         found.
45772
45773 2008-10-10  Jim Meyering  <meyering@redhat.com>
45774
45775         bootstrap: use git's --depth=N option only if it's supported
45776         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45777         recognize the --depth option.  Reported by Pádraig Brady.
45778
45779 2008-10-09  Bruno Haible  <bruno@clisp.org>
45780
45781         New module 'ioctl'.
45782         * modules/ioctl: New file.
45783         * lib/sys_socket.in.h (ioctl): Remove declaration.
45784         * lib/winsock.c: Include <sys/ioctl.h>.
45785         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45786         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45787         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45788         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45789         * doc/posix-functions/ioctl.texi: Mention the new module.
45790
45791 2008-10-09  Bruno Haible  <bruno@clisp.org>
45792
45793         New module 'sys_ioctl'.
45794         * lib/sys_ioctl.in.h: New file.
45795         * m4/sys_ioctl_h.m4: New file.
45796         * modules/sys_ioctl: New file.
45797         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45798
45799 2008-10-09  Bruno Haible  <bruno@clisp.org>
45800
45801         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45802         * lib/winsock.c: Include <stdarg.h>.
45803         (rpl_ioctl): Change to second argument 'int' and then varargs.
45804
45805 2008-10-09  Bruno Haible  <bruno@clisp.org>
45806
45807         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45808         when the sys_socket module is present and the system has <winsock2.h>.
45809
45810 2008-10-09  Bruno Haible  <bruno@clisp.org>
45811
45812         * doc/posix-functions/close.texi: Mention module 'close' instead of
45813         module 'sys_socket'.
45814
45815 2008-10-09  Bruno Haible  <bruno@clisp.org>
45816
45817         * doc/glibc-headers/sys_ioctl.texi: New file.
45818         * doc/gnulib.texi: Include it.
45819
45820 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45821             Bruno Haible  <bruno@clisp.org>
45822
45823         Combine the two replacements of 'close'.
45824         * lib/sys_socket.in.h (close): Define to a reminder to include
45825         <unistd.h>.
45826         (_gl_close_fd_maybe_socket): New declaration.
45827         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45828         * lib/winsock.c (close): Remove undefinition.
45829         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45830         needed for the gnulib module 'close'.
45831         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45832         define to an error symbol or to a warning, if suitable.
45833         * lib/close.c: Include <sys/socket.h>.
45834         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45835         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45836         UNISTD_H_HAVE_WINSOCK2_H.
45837         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45839         UNISTD_H_HAVE_WINSOCK2_H.
45840         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45841         (configure.ac): Set a module indicator.
45842         (Makefile.am): Substitute GNULIB_CLOSE.
45843         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45844         * modules/poll-tests (Depends-on): Add close.
45845         * modules/select-tests (Depends-on): Likewise.
45846
45847 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45848             Bruno Haible  <bruno@clisp.org>
45849
45850         New module 'close'.
45851         * modules/close: New file.
45852         * lib/unistd.in.h (close): Move declaration out of the
45853         FCHDIR_REPLACEMENT scope.
45854         (_gl_unregister_fd): New declaration.
45855         * lib/close.c: New file.
45856         * lib/fchdir.c (rpl_close): Remove function.
45857         * m4/close.m4: New file.
45858         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45859         close.
45860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45861         REPLACE_CLOSE.
45862         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45863         REPLACE_CLOSE.
45864         * modules/fchdir (Depends-on): Add close.
45865
45866 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45867             Bruno Haible  <bruno@clisp.org>
45868
45869         * lib/fcntl.in.h (open): Simplify conditionals.
45870         (_gl_register_fd): New declaration.
45871         * lib/fchdir.c (rpl_open): Remove function.
45872         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45873         also.
45874         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45875         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45876         open.
45877
45878 2008-10-09  Jim Meyering  <meyering@redhat.com>
45879
45880         GNUmakefile: use the more name-space-friendly "_version"
45881         * top/GNUmakefile (_dummy): Update.
45882         (_version): Rename from "version".
45883
45884 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45885             Bruno Haible  <bruno@clisp.org>
45886
45887         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45888         rpl_close.
45889         (_gl_register_fd): New function, extracted from rpl_open.
45890         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45891         (rpl_open, rpl_opendir): Use _gl_register_fd.
45892
45893 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45894
45895         Fix organization of 'open' replacement.
45896         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45897         (gl_FUNC_OPEN): Use it.
45898         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45899
45900 2008-10-08  Bruno Haible  <bruno@clisp.org>
45901
45902         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45903
45904 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45905
45906         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45907         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45908         listen).
45909
45910 2008-10-08  Eric Blake  <ebb9@byu.net>
45911
45912         GNUmakefile: add 'make version' target
45913         * top/GNUmakefile (_curr-ver): Split version update rules...
45914         (version): ...into a target.
45915
45916 2008-10-07  Bruno Haible  <bruno@clisp.org>
45917
45918         Use a more portable replacement expression for -0.0L.
45919         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45920         instead of -0.0L. Fix m4 quotation.
45921
45922         * tests/test-signbit.c: Include <float.h>.
45923         (minus_zero): New variable.
45924         (test_signbitl): Use minus_zero instead of -zero.
45925         * modules/signbit-tests (Depends-on): Add float.
45926
45927         * tests/test-ceill.c: Include <float.h>.
45928         (zero): Remove variable.
45929         (minus_zero): New variable.
45930         (main): Use minus_zero instead of -zero.
45931         * modules/ceill-tests (Depends-on): Add float.
45932
45933         * tests/test-floorl.c: Include <float.h>.
45934         (zero): Remove variable.
45935         (minus_zero): New variable.
45936         (main): Use minus_zero instead of -zero.
45937         * modules/floorl-tests (Depends-on): Add float.
45938
45939         * tests/test-roundl.c: Include <float.h>.
45940         (zero): Remove variable.
45941         (minus_zero): New variable.
45942         (main): Use minus_zero instead of -zero.
45943         * modules/roundl-tests (Depends-on): Add float.
45944
45945         * tests/test-truncl.c: Include <float.h>.
45946         (zero): Remove variable.
45947         (minus_zero): New variable.
45948         (main): Use minus_zero instead of -zero.
45949         * modules/truncl-tests (Depends-on): Add float.
45950
45951         * tests/test-frexpl.c (zero): Remove variable.
45952         (minus_zero): New variable.
45953         (main): Use minus_zero instead of -zero.
45954         * modules/frexpl-tests (Depends-on): Add float.
45955
45956         * tests/test-isnan.c (zerol): Remove variable.
45957         (minus_zerol): New variable.
45958         (test_long_double): Use minus_zerol instead of -zerol.
45959         * modules/isnan-tests (Depends-on): Add float.
45960
45961         * tests/test-isnanl.h (zero): Remove variable.
45962         (minus_zero): New variable.
45963         (main): Use minus_zero instead of -zero.
45964         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45965         * modules/isnanl-tests (Depends-on): Add float.
45966
45967         * tests/test-ldexpl.c (zero): Remove variable.
45968         (minus_zero): New variable.
45969         (main): Use minus_zero instead of -zero.
45970         * modules/ldexpl-tests (Depends-on): Add float.
45971
45972         * tests/test-snprintf-posix.h (zerol): Remove variable.
45973         (minus_zerol): New variable.
45974         (test_function): Use minus_zerol instead of -zerol.
45975         * modules/snprintf-posix-tests (Depends-on): Add float.
45976         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45977
45978         * tests/test-sprintf-posix.h (zerol): Remove variable.
45979         (minus_zerol): New variable.
45980         (test_function): Use minus_zerol instead of -zerol.
45981         * modules/sprintf-posix-tests (Depends-on): Add float.
45982         * modules/vsprintf-posix-tests (Depends-on): Add float.
45983
45984         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45985         (minus_zerol): New variable.
45986         (test_function): Use minus_zerol instead of -zerol.
45987         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45988
45989         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45990         (minus_zerol): New variable.
45991         (test_function): Use minus_zerol instead of -zerol.
45992         * modules/vasprintf-posix-tests (Depends-on): Add float.
45993
45994 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45995
45996         * MODULES.html.sh (Support for building documentation): Mention
45997         pmccabe2html.  Sort entries.
45998
45999         Add pmccabe2html module, from gnupdf.
46000         * build-aux/pmccabe.css: New file.
46001         * build-aux/pmccabe2html: New file.
46002         * m4/pmccabe2html.m4: New file.
46003         * modules/pmccabe2html: New file.
46004
46005 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46006
46007         flock: new module
46008         * MODULES.html.sh: Add to list of modules.
46009         * lib/flock.c: flock implementation for Windows and Unix systems
46010         which have fcntl.
46011         * doc/glibc-functions/flock.texi: Update documentation.
46012         * lib/sys_file.in.h: <sys/file.h> header file.
46013         * m4/flock.m4: M4 macros.
46014         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46015         * modules/flock: flock module.
46016         * modules/flock-tests: flock tests module.
46017         * modules/sys_file: sys/file.h module.
46018         * tests/test-flock.c: test suite for flock.
46019
46020 2008-10-06  Jim Meyering  <meyering@redhat.com>
46021
46022         bootstrap: check for LT_INIT more portably still ;-)
46023         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46024         Spotted by Bruno Haible.
46025
46026 2008-10-06  Eric Blake  <ebb9@byu.net>
46027
46028         test-signbit: avoid tripping Irix cc bug on -0.0L
46029         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46030         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46031         entire testsuite consistent and avoids an Irix 6.2 bug.
46032
46033 2008-10-05  Bruno Haible  <bruno@clisp.org>
46034             Jim Meyering  <jim@meyering.net>
46035
46036         Add an option for ignoring EPIPE during close_stdout.
46037         * lib/closeout.h: Include <stdbool.h>.
46038         (close_stdout_set_ignore_EPIPE): New declaration.
46039         * lib/closeout.c: Include <stdbool.h>.
46040         (ignore_EPIPE): New variable.
46041         (close_stdout_set_ignore_EPIPE): New function.
46042         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46043         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46044         failure.
46045         * modules/closeout (Depends-on): Add stdbool.
46046
46047 2008-10-05  Bruno Haible  <bruno@clisp.org>
46048
46049         * modules/accept: New file.
46050         * modules/bind: New file.
46051         * modules/connect: New file.
46052         * modules/getpeername: New file.
46053         * modules/getsockname: New file.
46054         * modules/getsockopt: New file.
46055         * modules/listen: New file.
46056         * modules/recv: New file.
46057         * modules/recvfrom: New file.
46058         * modules/send: New file.
46059         * modules/sendto: New file.
46060         * modules/setsockopt: New file.
46061         * modules/socket: New file.
46062         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46063         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46064         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46065         the particular module is requested. Add a link warning when the
46066         particular module is not requested.
46067         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46068         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46069         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46070         the particular module is requested.
46071         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46072         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46073         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46074         * modules/sys_socket (Depends-on): Add link-warning.
46075         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46076         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46077         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46078         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46079         GL_LINK_WARNING.
46080         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46081         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46082         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46083         * doc/posix-functions/getpeername.texi: Mention the new module
46084         'getpeername'.
46085         * doc/posix-functions/getsockname.texi: Mention the new module
46086         'getsockname'.
46087         * doc/posix-functions/getsockopt.texi: Mention the new module
46088         'getsockopt'.
46089         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46090         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46091         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46092         * doc/posix-functions/send.texi: Mention the new module 'send'.
46093         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46094         * doc/posix-functions/setsockopt.texi: Mention the new module
46095         'setsockopt'.
46096         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46097         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46098         listen, connect, accept.
46099         * modules/select-tests (Depends-on): Likewise.
46100
46101 2008-10-05  Bruno Haible  <bruno@clisp.org>
46102
46103         * lib/winsock.c (strerror): Remove unused #undef.
46104         (rpl_close): Remove unused local variable.
46105
46106         * modules/sys_socket (Depends-on); Add errno.
46107
46108 2008-10-05  Bruno Haible  <bruno@clisp.org>
46109
46110         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46111         (select): Add a link warning when the 'select' module is not used.
46112         * modules/sys_select (Depends-on): Add link-warning.
46113         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46114         Suggested by Paolo Bonzini.
46115
46116 2008-10-05  Jim Meyering  <meyering@redhat.com>
46117
46118         bootstrap: check for LT_INIT more portably
46119         * build-aux/bootstrap: Avoid using grep -E, since it's not
46120         portable enough.  Suggestion from Bruno Haible.
46121
46122 2008-10-05  Bruno Haible  <bruno@clisp.org>
46123
46124         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46125         as being fixed by gnulib.
46126
46127 2008-10-05  Bruno Haible  <bruno@clisp.org>
46128
46129         * modules/select-tests: New file, mostly copied from
46130         modules/sys_select-tests.
46131         * tests/test-select.c: New file, mostly copied from
46132         tests/test-sys_select.c.
46133         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46134         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46135         (Makefile.am): Remove test_sys_select_LDADD.
46136
46137         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46138         to an undefined symbol, for an error message.
46139         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46140         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46141         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46142         winsock-select.c here.
46143         * modules/sys_select (Files): Remove lib/winsock-select.c.
46144         (Depends-on): Remove alloca.
46145         (Makefile.am): Substitute GNULIB_SELECT.
46146         * modules/select: New file.
46147         * doc/posix-functions/select.texi: Update.
46148
46149 2008-10-05  Bruno Haible  <bruno@clisp.org>
46150
46151         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46152         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46153         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46154         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46155         getdtablesize.
46156         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46157         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46158
46159 2008-10-05  Bruno Haible  <bruno@clisp.org>
46160
46161         * modules/getdtablesize-tests: New file.
46162         * tests/test-getdtablesize.c: New file.
46163
46164         New module 'getdtablesize'.
46165         * lib/unistd.in.h (getdtablesize): New declaration.
46166         * lib/getdtablesize.c: New file.
46167         * m4/getdtablesize.m4: New file.
46168         * modules/getdtablesize: New file.
46169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46170         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46171         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46172         HAVE_GETDTABLESIZE.
46173         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46174
46175 2008-10-05  Bruno Haible  <bruno@clisp.org>
46176
46177         * modules/sched (Makefile.am): Fix typo.
46178         Reported by Simon Josefsson.
46179
46180 2008-10-05  Jim Meyering  <meyering@redhat.com>
46181
46182         bootstrap: check for LT_INIT, too
46183         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46184         are deprecated.  Suggestion from Ralf Wildenhues.
46185
46186 2008-10-05  Bruno Haible  <bruno@clisp.org>
46187
46188         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46189         overriding them by ours.
46190         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46191
46192 2008-10-05  Jim Meyering  <meyering@redhat.com>
46193
46194         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46195         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46196         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46197
46198 2008-10-04  Bruno Haible  <bruno@clisp.org>
46199
46200         * modules/dup2 (License): Change to LGPLv2+.
46201         * modules/sleep (License): Likewise.
46202         * modules/perror (License): Likewise.
46203         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46204         Blake.
46205         * modules/signal (License): Likewise.
46206         * modules/sigprocmask (License): Likewise.
46207         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46208         Meyering.
46209
46210 2008-10-04  Bruno Haible  <bruno@clisp.org>
46211
46212         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46213         Reported by Rainer Tammer <tammer@tammer.net>.
46214
46215 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46216             Bruno Haible  <bruno@clisp.org>
46217
46218         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46219         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46220         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46221
46222 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46223
46224         filevercmp: new module
46225         * lib/filevercmp.h: New function filevercmp comparing version strings.
46226         * lib/filevercmp.c: Implementation of filevercmp function.
46227         * modules/filevercmp: Module metadata.
46228         * tests/test-filevercmp.c: Unit test for new module.
46229         * modules/filevercmp-tests: Unit test metadata.
46230         * MODULES.html.sh: Add filevercmp module.
46231
46232 2008-10-03  Bruno Haible  <bruno@clisp.org>
46233
46234         * lib/c-ctype.h: Add comment.
46235         Reported by Jim Meyering.
46236
46237 2008-10-02  Bruno Haible  <bruno@clisp.org>
46238
46239         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46240
46241 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46242
46243         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46244         name of bootstrap.conf accordingly.
46245
46246 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46247
46248         * build-aux/bootstrap: Install git-merge-changelog configuration
46249         items into .gitconfig if needed.
46250
46251 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46252
46253         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46254         git repository, and initialize/update it accordingly.
46255
46256 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46257
46258         * modules/fsync-tests: New file.
46259         * tests/test-fsync.c: New file.
46260
46261         New module 'fsync'.
46262         * lib/fsync.c: New file.
46263         * m4/fsync.m4: New file.
46264         * modules/fsync: New file.
46265         * lib/unistd.in.h (fsync): New declaration.
46266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46267         GNULIB_FSYNC and HAVE_FSYNC.
46268         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46269         * MODULES.html.sh (posix_functions): Add fsync.
46270         * doc/posix-functions/fsync.texi: Mention the new module.
46271
46272 2008-10-02  Jim Meyering  <meyering@redhat.com>
46273
46274         fts.c: sync with similar code from coreutils' remove.c
46275         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46276         Guard also with "#if defined __linux__", since for now at least,
46277         this code is Linux-kernel-specific.
46278
46279 2008-10-02  Jim Meyering  <meyering@redhat.com>
46280
46281         fts: bug fixes
46282         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46283         Include <sys/vfs.h>, not <sys/statfs.h>.
46284
46285         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46286         Include <sys/vfs.h>, not <sys/statfs.h>.
46287
46288 2008-10-01  Bruno Haible  <bruno@clisp.org>
46289
46290         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46291         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46292         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46293         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46294         * doc/posix-functions/posix_spawnp.texi: Likewise.
46295         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46296         whether posix_spawn actually works.
46297         * m4/pipe.m4 (gl_PIPE): Likewise.
46298         * modules/execute (Files): Add m4/posix_spawn.m4.
46299         * modules/pipe (Files): Add m4/posix_spawn.m4.
46300         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46301
46302 2008-10-01  Jim Meyering  <meyering@redhat.com>
46303
46304         remove trailing spaces
46305         * NEWS: Likewise.
46306         * lib/poll.c (poll): Likewise.
46307         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46308         * lib/winsock.c (rpl_close): Likewise.
46309         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46310         * modules/yield: Likewise.
46311         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46312         * tests/test-sys_select.c (connect_to_socket): Likewise.
46313
46314         fts.c: adjust a new interface to be more generally useful
46315         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46316         (fts_build): Adjust caller.
46317
46318 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46319
46320         * modules/cond-tests: New file.
46321         * tests/test-cond.c: New file.
46322
46323 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46324             Bruno Haible  <bruno@clisp.org>
46325
46326         * modules/cond (Dependencies): Add errno, time.
46327         * lib/glthread/cond.h: Include <time.h>.
46328         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46329         across platforms.
46330
46331 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46332             Bruno Haible  <bruno@clisp.org>
46333
46334         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46335
46336 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46337             Bruno Haible  <bruno@clisp.org>
46338
46339         * modules/tls-tests (Depends-on): Add thread, yield.
46340         (configure.ac): Remove all checks.
46341         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46342         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46343         gl_thread_self): Remove definitions. Include glthread/thread.h and
46344         glthread/yield.h instead.
46345         (test_tls): Pass an additional NULL argument to gl_thread_join.
46346
46347 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46348             Bruno Haible  <bruno@clisp.org>
46349
46350         * modules/lock-tests (Depends-on): Add thread, yield.
46351         (configure.ac): Remove all checks.
46352         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46353         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46354         gl_thread_self): Remove definitions. Include glthread/thread.h and
46355         glthread/yield.h instead.
46356         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46357         additional NULL argument to gl_thread_join.
46358
46359 2008-09-30  Bruno Haible  <bruno@clisp.org>
46360
46361         Fix the Win32 implementation of the 'thread' module.
46362         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46363         pointer type.
46364         (gl_thread_self): Invoke gl_thread_self_func.
46365         (gl_thread_self_func): New declaration.
46366         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46367         (do_init_self_key, init_self_key): New functions.
46368         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46369         Remove some fields.
46370         (running_threads, running_lock): Remove variables.
46371         (get_current_thread_handle): New function.
46372         (gl_thread_self_func, wrapper_func, glthread_create_func,
46373         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46374         simplified.
46375
46376 2008-09-30  Bruno Haible  <bruno@clisp.org>
46377
46378         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46379         files.
46380
46381 2008-09-30  Jim Meyering  <meyering@redhat.com>
46382
46383         fts.m4: correct the test for statfs.f_type
46384         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46385         when checking for statfs.f_type.
46386
46387 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46388
46389         tests: avoid some compiler warnings
46390         * tests/test-memchr.c (main): Pass NULL indirectly.
46391         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46392
46393 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46394
46395         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46396         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46397         exactly specified dayshifts.
46398         (dayshift): New rule.
46399         (rel): Add dayshift.
46400         (relative_time_table) [tomorrow, yesterday, today, now]:
46401         Use tDAY_SHIFT in place of tDAY_UNIT.
46402         * tests/test-getdate.c: Add tests for now-disallowed countable
46403         dayshifts, e.g., "4 yesterday ago".
46404
46405 2008-09-29  Bruno Haible  <bruno@clisp.org>
46406
46407         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46408         * tests/test-posix_spawn1.in.sh: Renamed from
46409         tests/test-posix_spawn.in.sh.
46410         * tests/test-posix_spawn2.c: New file.
46411         * tests/test-posix_spawn2.in.sh: New file.
46412         * modules/posix_spawnp-tests (Files): Update.
46413         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46414
46415 2008-09-29  Bruno Haible  <bruno@clisp.org>
46416
46417         Propagate effects of putenv/setenv/unsetenv to child processes.
46418         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46419         * lib/pipe.c (create_pipe): Likewise.
46420
46421 2008-09-29  Bruno Haible  <bruno@clisp.org>
46422
46423         Enable use of shell scripts as executables in mingw.
46424         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46425         run the program as a shell script.
46426         * lib/pipe.c (create_pipe): Likewise.
46427         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46428         resulting array.
46429
46430 2008-09-29  Eric Blake  <ebb9@byu.net>
46431
46432         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46433
46434 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46435
46436         * doc/posix-functions/accept.texi: Update mingw problems.
46437         * doc/posix-functions/bind.texi: Update mingw problems.
46438         * doc/posix-functions/close.texi: Update mingw problems.
46439         * doc/posix-functions/connect.texi: Update mingw problems.
46440         * doc/posix-functions/getpeername.texi: Update mingw problems.
46441         * doc/posix-functions/getsockname.texi: Update mingw problems.
46442         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46443         * doc/posix-functions/ioctl.texi: Update mingw problems.
46444         * doc/posix-functions/listen.texi: Update mingw problems.
46445         * doc/posix-functions/recv.texi: Update mingw problems.
46446         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46447         * doc/posix-functions/select.texi: Update mingw problems.
46448         * doc/posix-functions/send.texi: Update mingw problems.
46449         * doc/posix-functions/sendto.texi: Update mingw problems.
46450         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46451         * doc/posix-functions/socket.texi: Update mingw problems.
46452
46453 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46454             Bruno Haible  <bruno@clisp.org>
46455
46456         * lib/sys_select.in.h: Include sys/time.h.
46457         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46458         * modules/sys_select: Depend on sys_time.
46459         * tests/test-sys_select.c: Test that sys/select.h defines struct
46460         timeval fully.
46461
46462 2008-09-29  Bruno Haible  <bruno@clisp.org>
46463
46464         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46465         * lib/sys_select.in.h: Likewise.
46466
46467 2008-09-29  Bruno Haible  <bruno@clisp.org>
46468
46469         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46470
46471 2008-09-29  Bruno Haible  <bruno@clisp.org>
46472
46473         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46474         Set LIBSOCKET instead of augmenting LIBS.
46475         * modules/sockets (Link): New section.
46476         * modules/sockets-tests (test_sockets_LDADD): New variable.
46477         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46478         * modules/poll-tests (test_poll_LDADD): New variable.
46479         * NEWS: Document the change.
46480
46481 2008-09-29  Bruno Haible  <bruno@clisp.org>
46482
46483         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46484         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46485         ARPA_INET_H directly.
46486         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46487
46488 2008-09-28  Bruno Haible  <bruno@clisp.org>
46489
46490         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46491         from gl_HEADER_SYS_SOCKET.
46492         (gl_HEADER_SYS_SOCKET): Invoke it.
46493         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46494
46495 2008-09-28  Bruno Haible  <bruno@clisp.org>
46496
46497         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46498         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46499         Needed on OSF/1 4.0.
46500
46501 2008-09-28  Bruno Haible  <bruno@clisp.org>
46502
46503         Override open more carefully.
46504         * lib/open.c (orig_open): New function.
46505         (rpl_open): Use orig_open instead of open.
46506         * lib/fcntl.in.h: Add special invocation convention.
46507         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46508         (gl_FUNC_OPEN): Invoke it.
46509
46510         Override freopen more carefully.
46511         * lib/freopen.c (orig_freopen): New function.
46512         (rpl_freopen): Use orig_freopen instead of freopen.
46513         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46514         (gl_FUNC_FREOPEN): Invoke it.
46515
46516         Override fopen more carefully.
46517         * lib/fopen.c (orig_fopen): New function.
46518         (rpl_fopen): Use orig_fopen instead of fopen.
46519         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46520         (gl_FUNC_FOPEN): Invoke it.
46521         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46522
46523 2008-09-28  Bruno Haible  <bruno@clisp.org>
46524
46525         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46526         SIGPIPE.
46527
46528 2008-09-28  Bruno Haible  <bruno@clisp.org>
46529
46530         * tests/test-sigaction.c (handler, main): Disable the check whether
46531         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46532         glibc systems with LinuxThreads.
46533
46534 2008-09-28  Bruno Haible  <bruno@clisp.org>
46535
46536         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46537
46538         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46539         with AIX xlc.
46540         * lib/fcntl.in.h (open): Likewise.
46541         Reported by Rainer Tammer <tammer@tammer.net>.
46542
46543 2008-09-28  Bruno Haible  <bruno@clisp.org>
46544
46545         * modules/posix_spawnp-tests: New file.
46546         * tests/test-posix_spawn.c: New file.
46547         * tests/test-posix_spawn.in.sh: New file.
46548
46549         New module 'posix_spawnp'.
46550         * modules/posix_spawnp: New file.
46551         * lib/spawnp.c: New file, from GNU libc with modifications.
46552         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46553
46554         New module 'posix_spawn'.
46555         * modules/posix_spawn: New file.
46556         * lib/spawn.c: New file, from GNU libc with modifications.
46557         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46558
46559         New module 'posix_spawnattr_destroy'.
46560         * modules/posix_spawnattr_destroy: New file.
46561         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46562         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46563         module.
46564
46565         New module 'posix_spawnattr_setsigmask'.
46566         * modules/posix_spawnattr_setsigmask: New file.
46567         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46568         modifications.
46569         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46570         new module.
46571
46572         New module 'posix_spawnattr_getsigmask'.
46573         * modules/posix_spawnattr_getsigmask: New file.
46574         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46575         modifications.
46576         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46577         new module.
46578
46579         New module 'posix_spawnattr_setsigdefault'.
46580         * modules/posix_spawnattr_setsigdefault: New file.
46581         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46582         modifications.
46583         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46584         new module.
46585
46586         New module 'posix_spawnattr_getsigdefault'.
46587         * modules/posix_spawnattr_getsigdefault: New file.
46588         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46589         modifications.
46590         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46591         new module.
46592
46593         New module 'posix_spawnattr_setschedpolicy'.
46594         * modules/posix_spawnattr_setschedpolicy: New file.
46595         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46596         modifications.
46597         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46598         new module.
46599
46600         New module 'posix_spawnattr_getschedpolicy'.
46601         * modules/posix_spawnattr_getschedpolicy: New file.
46602         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46603         modifications.
46604         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46605         new module.
46606
46607         New module 'posix_spawnattr_setschedparam'.
46608         * modules/posix_spawnattr_setschedparam: New file.
46609         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46610         modifications.
46611         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46612         new module.
46613
46614         New module 'posix_spawnattr_getschedparam'.
46615         * modules/posix_spawnattr_getschedparam: New file.
46616         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46617         modifications.
46618         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46619         new module.
46620
46621         New module 'posix_spawnattr_setpgroup'.
46622         * modules/posix_spawnattr_setpgroup: New file.
46623         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46624         modifications.
46625         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46626         module.
46627
46628         New module 'posix_spawnattr_getpgroup'.
46629         * modules/posix_spawnattr_getpgroup: New file.
46630         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46631         modifications.
46632         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46633         module.
46634
46635         New module 'posix_spawnattr_setflags'.
46636         * modules/posix_spawnattr_setflags: New file.
46637         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46638         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46639         module.
46640
46641         New module 'posix_spawnattr_getflags'.
46642         * modules/posix_spawnattr_getflags: New file.
46643         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46644         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46645         module.
46646
46647         New module 'posix_spawnattr_init'.
46648         * modules/posix_spawnattr_init: New file.
46649         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46650         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46651         module.
46652
46653         New module 'posix_spawn_file_actions_destroy'.
46654         * modules/posix_spawn_file_actions_destroy: New file.
46655         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46656         modifications.
46657         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46658         the new module.
46659
46660         New module 'posix_spawn_file_actions_addopen'.
46661         * modules/posix_spawn_file_actions_addopen: New file.
46662         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46663         modifications.
46664         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46665         the new module.
46666
46667         New module 'posix_spawn_file_actions_adddup2'.
46668         * modules/posix_spawn_file_actions_adddup2: New file.
46669         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46670         modifications.
46671         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46672         the new module.
46673
46674         New module 'posix_spawn_file_actions_addclose'.
46675         * modules/posix_spawn_file_actions_addclose: New file.
46676         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46677         modifications.
46678         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46679         the new module.
46680
46681         New module 'posix_spawn_file_actions_init'.
46682         * modules/posix_spawn_file_actions_init: New file.
46683         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46684         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46685         new module.
46686
46687         New module 'posix_spawn-internal'.
46688         * modules/posix_spawn-internal: New file.
46689         * lib/spawn_int.h: New file, from GNU libc with modifications.
46690         * lib/spawni.c: New file, from GNU libc with modifications.
46691         * m4/posix_spawn.m4: New file.
46692
46693         New module 'spawn'.
46694         * modules/spawn: New file.
46695         * lib/spawn.in.h: New file, from GNU libc with modifications.
46696         * m4/spawn_h.m4: New file.
46697         * doc/posix-headers/spawn.texi: Mention the new module.
46698
46699 2008-09-28  Bruno Haible  <bruno@clisp.org>
46700
46701         * modules/sched-tests: New file.
46702         * tests/test-sched.c: New file.
46703
46704         New module 'sched'.
46705         * modules/sched: New file.
46706         * lib/sched.in.h: New file.
46707         * m4/sched_h.m4: New file.
46708         * doc/posix-headers/sched.texi: Mention the new module.
46709
46710 2008-09-27  Eric Blake  <ebb9@byu.net>
46711
46712         Fix previous patch, and tweak references to $0.
46713         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46714         (func_version, func_gnulib_dir): Don't call this program
46715         gnulib-tool.
46716         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46717         with using $0 in function.
46718         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46719         (func_fatal_error): Reuse the name the user invoked us with.
46720
46721 2008-09-27  Bruno Haible  <bruno@clisp.org>
46722
46723         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46724         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46725         (gl_ICONV_H): Not here.
46726         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46727         instead of assigning ICONV_H directly.
46728
46729         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46731         WCHAR_H directly.
46732
46733 2008-09-27  Bruno Haible  <bruno@clisp.org>
46734
46735         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46736         * modules/arpa_inet (Depends-on): Add link-warning.
46737         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46738         * modules/unistd (Makefile.am): Likewise.
46739
46740 2008-09-26  Bruno Haible  <bruno@clisp.org>
46741
46742         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46743         variables.
46744         (func_version): Essentially copied from gnulib-tool.
46745         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46746         func_readlink): Copied from gnulib-tool.
46747
46748 2008-09-26  Bruno Haible  <bruno@clisp.org>
46749
46750         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46751         invoking git-version-gen.
46752
46753 2008-09-26  Bruno Haible  <bruno@clisp.org>
46754
46755         * posix-modules: Update to directory names changed on 2008-01-19.
46756         Remove commas in output before splitting into words. No more need to
46757         avoid 'ftruncate' since 2007-02-19.
46758
46759 2008-09-26  Bruno Haible  <bruno@clisp.org>
46760
46761         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46762
46763 2008-09-26  Bruno Haible  <bruno@clisp.org>
46764
46765         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46766         * modules/fwriteerror (Depends-on): Add errno.
46767
46768 2008-09-26  Bruno Haible  <bruno@clisp.org>
46769
46770         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46771         * tests/test-vc-list-files-cvs.sh: Likewise.
46772
46773 2008-09-26  Bruno Haible  <bruno@clisp.org>
46774
46775         * doc/posix-headers/sys_resource.texi: Reorder items.
46776
46777 2008-09-26  Jim Meyering  <meyering@redhat.com>
46778
46779         fts: tweak inode comparison function
46780         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46781         inode numbers, as documented.
46782
46783         fts: sort dirent entries on inode number before traversing
46784         This avoids a quadratic, seek-related performance penalty when
46785         operating on a directory containing many entries (measurable at 10k;
46786         3.5 hours at 2 million entries with a cold cache) on certain types
46787         of file systems, including ext3 and ext4, but not tmpfs.
46788         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46789         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46790         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46791         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46792         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46793         (fts_build): Set the stat.st_ino member from D_INO.
46794         If it is likely to be useful, sort dirent entries on inode number.
46795
46796         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46797         and the struct statfs.f_type member.
46798         * modules/fts (Depends-on): Add d-ino.
46799
46800 2008-09-26  Bruno Haible  <bruno@clisp.org>
46801
46802         * modules/sigpipe-die (Depends-on): Add sigpipe.
46803
46804         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46805         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46806         and GNULIB_STDIO_H_SIGPIPE are set.
46807         * lib/stdio-write.c: New file.
46808         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46809         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46810         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46811         REPLACE_STDIO_WRITE_FUNCS.
46812         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46813         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46814         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46815         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46816         * modules/stdio (Files): Add lib/stdio-write.c.
46817         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46818         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46819         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46820         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46821         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46822         REPLACE_FPRINTF_POSIX.
46823         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46824         REPLACE_PRINTF_POSIX.
46825         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46826         REPLACE_VFPRINTF_POSIX.
46827         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46828         REPLACE_VPRINTF_POSIX.
46829         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46830         SIGPIPE issue.
46831         * doc/posix-functions/fputc.texi: Likewise.
46832         * doc/posix-functions/fputs.texi: Likewise.
46833         * doc/posix-functions/fwrite.texi: Likewise.
46834         * doc/posix-functions/printf.texi: Likewise.
46835         * doc/posix-functions/putc.texi: Likewise.
46836         * doc/posix-functions/putchar.texi: Likewise.
46837         * doc/posix-functions/puts.texi: Likewise.
46838         * doc/posix-functions/vfprintf.texi: Likewise.
46839         * doc/posix-functions/vprintf.texi: Likewise.
46840
46841         * modules/safe-write (Depends-on): Add write.
46842
46843         * modules/sigpipe-tests: New file.
46844         * tests/test-sigpipe.c: New file.
46845         * tests/test-sigpipe.sh: New file.
46846
46847         * modules/write: New file.
46848         * lib/unistd.in.h: Include <sys/types.h>.
46849         (write): New declaration.
46850         * lib/write.c: New file.
46851         * m4/write.m4: New file.
46852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46853         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46854         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46855         GNULIB_WRITE, REPLACE_WRITE.
46856         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46857         and the SIGPIPE issue.
46858
46859         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46860         (raise): New declaration.
46861         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46862         (ext_signal): New function.
46863         (rpl_raise): New function.
46864         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46865         GNULIB_SIGNAL_H_SIGPIPE.
46866         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46867         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46868
46869         * modules/sigpipe: New file.
46870         * m4/sigpipe.m4: New file.
46871
46872 2008-09-25  Derek Price  <derek@ximbiot.com>
46873             Bruno Haible  <bruno@clisp.org>
46874
46875         * gnulib-tool (func_import): Report all license incompatibilities, not
46876         just the first one.
46877
46878 2008-09-25  Bruno Haible  <bruno@clisp.org>
46879
46880         * gnulib-tool (func_import): When computing the edits, consider not
46881         only the Makefile.ams that exist but also those that will be generated.
46882
46883 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46884
46885         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46886         fixes gnulib-tool --test warning about duplicate dependency.
46887
46888 2008-09-25  Bruno Haible  <bruno@clisp.org>
46889
46890         * gnulib-tool: Don't ask the user to perform edits in the generated
46891         Makefile.ams.
46892         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46893         apply to the Makefile.am being generated.
46894         (func_emit_tests_Makefile_am): Execute edits that apply to the
46895         Makefile.am being generated.
46896         (func_import): Setup list of Makefile.am edits before emitting the
46897         Makefile.ams, not at the end.
46898         (func_create_testdir): Update.
46899         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46900
46901 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46902
46903         * gnulib-tool (func_import): Store the --tests-base option in the
46904         comment in gnulib-cache.m4.
46905
46906 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46907
46908         * NEWS: Document increased portability that sys_select now provides.
46909
46910         * lib/sys_select.in.h: Install select wrapper.
46911         * lib/sys_socket.in.h: Use more descriptive name when there is no
46912         select wrapper.
46913         * lib/winsock-select.c: New.
46914         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46915         Require gl_HEADER_SYS_SOCKET.
46916         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46917         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46918         * tests/test-sys_select.c: Add functional tests.
46919
46920 2008-09-24  Eric Blake  <ebb9@byu.net>
46921
46922         open, fopen: close fd leak in last patch
46923         * lib/open.c (rpl_open): Close fd before returning error.
46924         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46925         * doc/posix-functions/open.texi (open): Document that Irix also
46926         has the bug.
46927         * doc/posix-functions/fopen.texi (fopen): Likewise.
46928         Reported by Paolo Bonzini.
46929
46930 2008-09-24  Bruno Haible  <bruno@clisp.org>
46931
46932         Ensure that a filename ending in a slash cannot be used to access a
46933         non-directory.
46934         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46935         to check whether it's really a directory.
46936         * lib/fopen.c: Include fcntl.h, unistd.h.
46937         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46938         and fdopen().
46939         * modules/fopen (Depends-on): Add unistd.
46940         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46941         * tests/test-fopen.c (main): Likewise.
46942         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46943         * doc/posix-functions/fopen.texi: Likewise.
46944         Reported by Eric Blake.
46945
46946 2008-09-23  Eric Blake  <ebb9@byu.net>
46947
46948         c-stack: avoid compiler optimizations when provoking overflow
46949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46950         recursion harder to optimize, to ensure a stack overflow occurs.
46951         * tests/test-c-stack.c (recurse): Likewise.
46952         Borrowed from libsigsegv.
46953
46954         c-stack: work around Irix sigaltstack bug
46955         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46956         whether sigaltstack uses wrong end of stack_t (copied in part from
46957         libsigsegv).
46958         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46959         Irix bug, without requiring an over-allocation.
46960         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46961         bug.
46962
46963         fopen: document mingw bug on directories
46964         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46965         not allowing a stream visiting a directory, even though reading
46966         from such a stream is not portable.
46967
46968 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46969
46970         * lib/poll.c: Rewrite.
46971         * modules/poll: Depend on alloca.
46972
46973 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46974
46975         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46976         instead define prototypes for a full set of wrappers.  Ensure
46977         that Cygwin does not use the compatibility code, which is only
46978         for MinGW.
46979         * lib/winsock.c: New.
46980         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46981         * modules/sys_socket: Add lib/winsock.c.
46982
46983         * modules/poll-tests: Add errno and perror.
46984         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46985
46986 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46987
46988         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46989
46990 2008-09-23  Bruno Haible  <bruno@clisp.org>
46991
46992         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46993         * doc/glibc-functions/*: Likewise.
46994
46995 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46996
46997         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46998         success.
46999
47000 2008-09-22  Eric Blake  <ebb9@byu.net>
47001             Bruno Haible  <bruno@clisp.org>
47002
47003         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47004         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47005         supply %A but mishandle pseudo-NaN.
47006         Reported by Simon Josefsson.
47007
47008 2008-09-21  Bruno Haible  <bruno@clisp.org>
47009
47010         * tests/test-lock.c (main): Tweak skip message.
47011         * tests/test-tls.c (main): Likewise.
47012
47013 2008-09-21  Bruno Haible  <bruno@clisp.org>
47014
47015         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47016         whether 'struct sigaction' has sa_sigaction here...
47017         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47018         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47019
47020 2008-09-21  Bruno Haible  <bruno@clisp.org>
47021
47022         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47023         section.
47024         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47025         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47026         the new section.
47027         (Support for obsolete systems lacking POSIX:2001): New section.
47028         (String handling <string.h>): Move strdup to the new section.
47029         Suggested by Simon Josefsson and Paolo Bonzini.
47030
47031 2008-09-21  Bruno Haible  <bruno@clisp.org>
47032
47033         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47034         exponents in %e and %g results on 'long double'. Needed for mingw's
47035         improved *printf functions.
47036         * tests/test-vasprintf-posix.c (test_function): Likewise.
47037         * tests/test-snprintf-posix.h (test_function): Likewise.
47038         * tests/test-sprintf-posix.h (test_function): Likewise.
47039         Reported by Eric Blake.
47040
47041 2008-09-21  Bruno Haible  <bruno@clisp.org>
47042
47043         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47044         * tests/test-sprintf-posix.h (test_function): Likewise.
47045
47046 2008-09-21  Bruno Haible  <bruno@clisp.org>
47047
47048         * modules/getpass (Depends-on): Add strdup-posix.
47049
47050         New module 'strdup-posix'.
47051         * modules/strdup-posix: New file.
47052         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47053         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47055         REPLACE_STRDUP.
47056         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47057         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47058         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47059         strdup-posix.
47060
47061         * modules/strdup (Depends-on): Remove malloc-posix.
47062
47063 2008-09-20  Bruno Haible  <bruno@clisp.org>
47064
47065         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47066         Wildenhues.
47067
47068 2008-09-20  Bruno Haible  <bruno@clisp.org>
47069
47070         Ensure that wint_t gets defined on IRIX 5.3.
47071         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47072         * lib/wctype.in.h (wint_t): Likewise.
47073         (__wctype_wint_t): Remove type.
47074         (isw*): Use wint_t instead of __wctype_wint_t.
47075         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47076         * modules/wchar (Files): Add m4/wint_t.m4.
47077         (Makefile.am): Substitute HAVE_WINT_T.
47078         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47079         * tests/test-wctype.c: Check that wint_t is defined.
47080         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47081         * doc/posix-headers/wctype.texi: Likewise.
47082         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47083
47084 2008-09-18  Bruno Haible  <bruno@clisp.org>
47085
47086         * gnulib-tool (func_exit): Update comment.
47087
47088 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47089
47090         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47091         assumes strdup exists and does not depend on strdup to return
47092         ENOMEM on out of memory conditions.
47093
47094 2008-09-18  Bruno Haible  <bruno@clisp.org>
47095
47096         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
47097         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47098         digits for the exponent.
47099
47100 2008-09-18  Jim Meyering  <meyering@redhat.com>
47101             Bruno Haible  <bruno@clisp.org>
47102
47103         * lib/vasnprintf.c (decimal_point_char): Define also if
47104         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47105
47106 2008-09-16  Bruno Haible  <bruno@clisp.org>
47107         and Eric Blake  <ebb9@byu.net>
47108
47109         vasnprintf: support Irix 5.3
47110         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47111         that mishandle long double infinity.
47112         Reported by Tom G. Christensen.
47113
47114 2008-09-16  Bruno Haible  <bruno@clisp.org>
47115
47116         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47117         Solaris 9.
47118         * doc/glibc-functions/alphasort.texi: Likewise.
47119         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47120
47121 2008-09-16  Jim Meyering  <meyering@redhat.com>
47122
47123         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47124         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47125         a umask modification leak out of a subshell.  Otherwise, the
47126         opensolaris /bin/sh would be accepted and thus cause unwarranted
47127         failures in the coreutils test suite.
47128
47129 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47130
47131         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47132         to succeed.
47133
47134 2008-09-16  Jim Meyering  <meyering@redhat.com>
47135
47136         avoid spurious test failure when library is built without ACL support
47137         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47138         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47139         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47140         * tests/test-copy-acl.sh: Likewise.
47141
47142 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47143
47144         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47145         based on character occurrence counts.
47146
47147 2008-09-15  Eric Blake  <ebb9@byu.net>
47148
47149         tests: avoid some compiler warnings
47150         * tests/test-memchr.c (main): Pass NULL indirectly.
47151         * tests/test-closein.c (main): Avoid unused variable.
47152
47153 2008-09-15  Bruno Haible  <bruno@clisp.org>
47154
47155         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47156         are missing on OpenBSD 4.0 individually.
47157         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47158
47159 2008-09-15  Bruno Haible  <bruno@clisp.org>
47160
47161         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47162         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47163         * doc/posix-functions/perror.texi: Likewise.
47164         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47165         is missing.
47166         Reported by Eric Blake.
47167
47168         * lib/errno.in.h: Use replacement values >= 2000.
47169         Reported by Eric Blake.
47170
47171 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47172
47173         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47174         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47175         limit.
47176         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47177         compareseq was aborted.
47178
47179 2008-09-14  Bruno Haible  <bruno@clisp.org>
47180
47181         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47182         yvec_edit_count.
47183         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47184         (fstrcmp_bounded): Simplify result computation accordingly.
47185
47186 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47187
47188         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47189         (fstrcmp): Define in terms of fstrcmp_bounded.
47190         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47191         lower_bound argument.
47192         Return quickly if the result is certainly < lower_bound.
47193         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47194
47195 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47196
47197         * lib/diffseq.h (EARLY_ABORT): New macro.
47198         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47199         evaluates to true.
47200
47201 2008-09-14  Bruno Haible  <bruno@clisp.org>
47202
47203         * modules/perror-tests: New file.
47204         * tests/test-perror.sh: New file.
47205         * tests/test-perror.c: New file.
47206
47207         New module 'perror'.
47208         * lib/stdio.in.h (perror): New declaration.
47209         * lib/perror.c: New file.
47210         * m4/perror.m4: New file.
47211         * modules/perror: New file.
47212         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47213         * doc/posix-functions/perror.texi: Mention the perror module.
47214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47215         REPLACE_PERROR.
47216         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47217         REPLACE_PERROR.
47218
47219 2008-09-14  Bruno Haible  <bruno@clisp.org>
47220
47221         * modules/stdio (Makefile.am): Reorder to match the order in
47222         lib/stdio.in.h.
47223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47224
47225 2008-09-13  Bruno Haible  <bruno@clisp.org>
47226
47227         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47228
47229 2008-09-13  Bruno Haible  <bruno@clisp.org>
47230
47231         Extend strerror to cover the added errno values.
47232         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47233         (rpl_strerror): Provide error messages for the added errno values and
47234         for the WSA* values.
47235         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47236         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47237         strerror.
47238         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47239         * modules/strerror (Depends-on): Add errno.
47240         * doc/posix-functions/strerror.texi: Document the change.
47241         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47242         and EOVERFLOW.
47243
47244 2008-09-13  Bruno Haible  <bruno@clisp.org>
47245
47246         * modules/EOVERFLOW: Remove file.
47247         * m4/eoverflow.m4: Remove file.
47248         * modules/EOVERFLOW-tests: Remove file.
47249         * tests/test-EOVERFLOW.c: Remove file.
47250         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47251         * modules/ftell (Depends-on): Likewise.
47252         * modules/getdelim (Depends-on): Likewise.
47253         * modules/getugroups (Depends-on): Likewise.
47254         * modules/poll (Depends-on): Likewise.
47255         * modules/snprintf (Depends-on): Likewise.
47256         * modules/sprintf-posix (Depends-on): Likewise.
47257         * modules/vasnprintf (Depends-on): Likewise.
47258         * modules/vasprintf (Depends-on): Likewise.
47259         * modules/vfprintf-posix (Depends-on): Likewise.
47260         * modules/vsnprintf (Depends-on): Likewise.
47261         * modules/vsprintf-posix (Depends-on): Likewise.
47262         * modules/xvasprintf (Depends-on): Likewise.
47263         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47264         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47265         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47266         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47267         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47268         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47269         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47270         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47271         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47272         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47273         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47274         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47275         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47276         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47277         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47278         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47279         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47280         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47281         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47282         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47283         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47284         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47285         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47286         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47287         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47288         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47289         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47290         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47291         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47292         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47293         * MODULES.html.sh: Remove EOVERFLOW.
47294         * NEWS: Mention the change.
47295
47296 2008-09-13  Bruno Haible  <bruno@clisp.org>
47297
47298         * modules/errno-tests: New file.
47299         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47300
47301         * lib/errno.in.h: New file.
47302         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47303         * modules/errno: New file.
47304         * doc/posix-headers/errno.texi: Update documentation.
47305         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47306
47307 2008-09-13  Bruno Haible  <bruno@clisp.org>
47308
47309         * tests/test-poll.c: Use #if for native Windows, rather than testing
47310         __MSVCRT__.
47311
47312 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47313             Bruno Haible  <bruno@clisp.org>
47314
47315         * lib/glob.c: Don't include <pwd.h> on native Windows.
47316         (WINDOWS32): New macro.
47317         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47318
47319 2008-09-13  Bruno Haible  <bruno@clisp.org>
47320
47321         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47322         (ETIMEDOUT): Remove macro.
47323         (glthread_cond_timedwait_multithreaded): New declaration.
47324         (glthread_cond_timedwait): Use it.
47325         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47326         (glthread_cond_timedwait_multithreaded): New function.
47327
47328 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47329
47330         * modules/poll-tests: Do not check for io.h.
47331         * tests/test-poll.c: Check for __MSVCRT__ instead.
47332
47333 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47334
47335         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47336         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47337         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47338
47339 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47340
47341         * modules/poll-tests: New.
47342         * tests/test-poll.c: New.
47343
47344 2008-09-12  Eric Blake  <ebb9@byu.net>
47345
47346         frexp: test for NetBSD failure on -0.0
47347         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47348         not all, bugs from NetBSD 3.0 have been fixed.
47349         * doc/posix-functions/frexp.texi (frexp): Document bug.
47350         Reported by Thomas Klausner.
47351
47352         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47353         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47354         literal -0.0.
47355         Reported by Jonathan C. Patschke <jp@centtech.com>.
47356
47357 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47358
47359         * lib/glthread/cond.h: Use dummy implementation also if
47360         USE_WIN32_THREADS.
47361
47362 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47363
47364         * modules/fnmatch-posix (License): Change to LGPLv2+.
47365         * modules/fnmatch-gnu (License): Likewise.
47366
47367 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47368
47369         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47370
47371 2008-09-11  Jim Meyering  <meyering@redhat.com>
47372
47373         * users.txt: Add gtk-vnc.
47374
47375 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47376
47377         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47378         rotate amounts.
47379
47380         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47381         required for 16-bit and 8-bit rotates.
47382         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47383         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47384         UINT8_MAX instead of hard-coded constants.
47385         Suggested by Paul Eggert.
47386
47387 2008-09-07  Bruno Haible  <bruno@clisp.org>
47388
47389         * tests/test-striconveh.c (main): Check behaviour when converting from
47390         UTF-7.
47391
47392         Make striconveh work better with stateful encodings.
47393         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47394         that iconv does not increment the inptr when returning -1/EINVAL.
47395
47396 2008-09-07  Bruno Haible  <bruno@clisp.org>
47397
47398         * build-aux/config.rpath: Update according to libtool-2.2.6.
47399         * build-aux/config.libpath: Likewise.
47400
47401 2008-09-06  Bruno Haible  <bruno@clisp.org>
47402
47403         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47404         * lib/freadptr.c (freadptr): Likewise.
47405         * lib/freadseek.c (freadptrinc): Likewise.
47406         Reported by Simon Josefsson.
47407
47408 2008-09-06  Bruno Haible  <bruno@clisp.org>
47409
47410         * modules/freadptr (License): Change to LGPLv2+.
47411         * modules/freadseek (License): Likewise.
47412         Suggested by Eric Blake.
47413
47414         * modules/memchr2 (License): Change to LGPLv2+.
47415         Approved by Eric Blake.
47416
47417 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47418             Bruno Haible  <bruno@clisp.org>
47419
47420         Make gnulib-tool work with native 'sed' on AIX.
47421         * gnulib-tool (sed_noop): New variable.
47422         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47423         func_add_or_update, func_create_testdir): Use it to initialize sed
47424         script variables.
47425         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47426
47427 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47428             Bruno Haible  <bruno@clisp.org>
47429
47430         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47431         also works after #include directives.
47432
47433 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47434
47435         getdate.y: reject an out-of-range timezone value
47436         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47437         the range [-24...+24].  When specified with only one or two digits,
47438         * tests/test-getdate.c: Tests for the fix.
47439         * doc/getdate.texi: Document this change.
47440
47441 2008-09-03  Bruno Haible  <bruno@clisp.org>
47442
47443         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47444
47445 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47446
47447         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47448         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47449         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47450         Blake <ebb9@byu.net>.
47451
47452         * tests/test-bitrotate.c: Add more test vectors.
47453
47454 2008-09-02  Eric Blake  <ebb9@byu.net>
47455
47456         vasnprintf-posix: handle large precision via %.*d
47457         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47458         when handling it ourselves.
47459         * tests/test-vasnprintf-posix.c (test_function): Add test.
47460         * tests/test-snprintf-posix.h (test_function): Likewise.
47461         * tests/test-sprintf-posix.h (test_function): Likewise.
47462         * tests/test-vasprintf-posix.c (test_function): Likewise.
47463         Reported by Alain Guibert.
47464
47465 2008-09-01  Eric Blake  <ebb9@byu.net>
47466
47467         c-stack: make configure-time check more robust
47468         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47469         successful sigaction call.
47470         Reported by Tom G. Christensen.
47471
47472 2008-09-01  Bruno Haible  <bruno@clisp.org>
47473
47474         New module 'findprog-lgpl'.
47475         * modules/findprog-lgpl: New file.
47476         * lib/findprog-lgpl.c: New file.
47477         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47478         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47479         to decide whether to use strdup or xstrdup, concatenated_filename or
47480         xconcatenated_filename.
47481
47482 2008-09-01  Bruno Haible  <bruno@clisp.org>
47483
47484         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47485         'xconcat-filename' (GPL).
47486         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47487         (License): Change to LGPLv2+.
47488         * modules/xconcat-filename: New file.
47489         * lib/concat-filename.h (concatenated_filename): Change specification.
47490         (xconcatenated_filename): New declaration.
47491         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47492         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47493         memory situations.
47494         * lib/xconcat-filename.c: New file.
47495         * NEWS: Mention the change.
47496         * lib/findprog.c: Include concat-filename.h, not filename.h.
47497         (find_in_path): Use xconcatenated_filename instead of
47498         concatenated_filename.
47499         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47500         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47501         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47502         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47503         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47504         instead of concatenated_filename.
47505         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47506         (execute_java_class): Use xconcatenated_filename instead of
47507         concatenated_filename.
47508         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47509         * modules/javacomp (Depends-on): Likewise.
47510         * modules/javaexec (Depends-on): Likewise.
47511
47512 2008-09-01  Bruno Haible  <bruno@clisp.org>
47513
47514         Split module 'filename' into 'filename' and 'concat-filename'.
47515         * modules/filename: Keep only lib/filename.h.
47516         (License): Change to LGPLv2+.
47517         * modules/concat-filename: New file, extracted from modules/filename.
47518         * lib/filename.h (concatenated_filename): Remove declaration.
47519         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47520         * lib/concat-filename.c: Include concat-filename.h.
47521         * NEWS: Mention the change.
47522
47523 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47524
47525         * lib/bitrotate.h (rotl8, rotr8): Add.
47526
47527         * modules/bitrotate (configure.ac): Need
47528         AC_REQUIRE([AC_C_INLINE]).
47529         (Description): Mention stdint.h.  Reported by Bruno Haible
47530         <bruno@clisp.org>.
47531
47532         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47533         Paolo Bonzini <bonzini@gnu.org>.
47534
47535 2008-08-31  Bruno Haible  <bruno@clisp.org>
47536
47537         Assume Solaris specific bi-arch conventions on Solaris systems.
47538         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47539         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47540         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47541         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47542         like acl_libdirstem.
47543         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47544         acl_libdirstem.
47545         * NEWS: Mention the change.
47546         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47547
47548 2008-08-31  Jim Meyering  <meyering@redhat.com>
47549
47550         * lib/strftime.h: Add comments describing the two added arguments.
47551
47552         remove duplicate #include directives
47553         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47554         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47555
47556 2008-08-31  Bruno Haible  <bruno@clisp.org>
47557
47558         New module 'sigpipe-die'.
47559         * modules/sigpipe-die: New file.
47560         * lib/sigpipe-die.h: New file.
47561         * lib/sigpipe-die.c: New file.
47562         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47563
47564 2008-08-31  Bruno Haible  <bruno@clisp.org>
47565
47566         Don't override previously installed signal handlers.
47567         * lib/fatal-signal.c (saved_sigactions): New variable.
47568         (uninstall_handlers): Reset the signal to the saved handler, not
47569         to SIG_DFL (except when ignored).
47570         (install_handlers): Save the previous handlers.
47571
47572 2008-08-30  Bruno Haible  <bruno@clisp.org>
47573
47574         * gnulib-tool (func_reset_sigpipe): New function.
47575         (func_get_automake_snippet, func_modules_transitive_closure,
47576         func_import): Invoke it before a join command that reads from stdin,
47577         to avoid "echo: write error: Broken pipe" error messages on stderr.
47578         Reported by Sam Steingold <sds@gnu.org>.
47579
47580 2008-08-30  Bruno Haible  <bruno@clisp.org>
47581
47582         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47583         Code copied from m4/open.m4.
47584         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47585         access and the filename ends in a slash. Code copied from lib/open.c.
47586         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47587         * tests/test-fopen.c (main): Check against bug with trailing slash.
47588
47589 2008-08-29  Bruno Haible  <bruno@clisp.org>
47590
47591         Avoid some "gcc -pedantic" warnings.
47592         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47593         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47594         * lib/dirent.in.h: Likewise.
47595         * lib/fcntl.in.h: Likewise.
47596         * lib/float.in.h: Likewise.
47597         * lib/iconv.in.h: Likewise.
47598         * lib/inttypes.in.h: Likewise.
47599         * lib/locale.in.h: Likewise.
47600         * lib/math.in.h: Likewise.
47601         * lib/netinet_in.in.h: Likewise.
47602         * lib/search.in.h: Likewise.
47603         * lib/signal.in.h: Likewise.
47604         * lib/stdarg.in.h: Likewise.
47605         * lib/stdint.in.h: Likewise.
47606         * lib/stdio.in.h: Likewise.
47607         * lib/stdlib.in.h: Likewise.
47608         * lib/string.in.h: Likewise.
47609         * lib/strings.in.h: Likewise.
47610         * lib/sys_select.in.h: Likewise.
47611         * lib/sys_socket.in.h: Likewise.
47612         * lib/sys_stat.in.h: Likewise.
47613         * lib/sys_time.in.h: Likewise.
47614         * lib/sysexits.in.h: Likewise.
47615         * lib/time.in.h: Likewise.
47616         * lib/unistd.in.h: Likewise.
47617         * lib/wchar.in.h: Likewise.
47618         * lib/wctype.in.h: Likewise.
47619         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47620         * modules/fchdir (Makefile.am): Likewise.
47621         * modules/fcntl (Makefile.am): Likewise.
47622         * modules/float (Makefile.am): Likewise.
47623         * modules/iconv_open (Makefile.am): Likewise.
47624         * modules/inttypes (Makefile.am): Likewise.
47625         * modules/locale (Makefile.am): Likewise.
47626         * modules/math (Makefile.am): Likewise.
47627         * modules/netinet_in (Makefile.am): Likewise.
47628         * modules/search (Makefile.am): Likewise.
47629         * modules/signal (Makefile.am): Likewise.
47630         * modules/stdarg (Makefile.am): Likewise.
47631         * modules/stdint (Makefile.am): Likewise.
47632         * modules/stdio (Makefile.am): Likewise.
47633         * modules/stdlib (Makefile.am): Likewise.
47634         * modules/string (Makefile.am): Likewise.
47635         * modules/strings (Makefile.am): Likewise.
47636         * modules/sys_select (Makefile.am): Likewise.
47637         * modules/sys_socket (Makefile.am): Likewise.
47638         * modules/sys_stat (Makefile.am): Likewise.
47639         * modules/sys_time (Makefile.am): Likewise.
47640         * modules/sysexits (Makefile.am): Likewise.
47641         * modules/time (Makefile.am): Likewise.
47642         * modules/unistd (Makefile.am): Likewise.
47643         * modules/wchar (Makefile.am): Likewise.
47644         * modules/wctype (Makefile.am): Likewise.
47645         Reported by Reuben Thomas <rrt@sc3d.org>.
47646
47647 2008-08-29  Bruno Haible  <bruno@clisp.org>
47648
47649         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47650         any more.
47651
47652 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47653
47654         * MODULES.html.sh (Misc): Add bitrotate.
47655
47656         * modules/bitrotate: New file.
47657
47658         * lib/bitrotate.h: New file.
47659
47660         * modules/bitrotate-tests: New file.
47661
47662         * tests/test-bitrotate.c: New file.
47663
47664         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47665         on the bitrotate module.
47666
47667         * lib/arctwo.c: Use new bitrotate module.
47668
47669 2008-08-29  Jim Meyering  <meyering@redhat.com>
47670
47671         bootstrap: merge changes from coreutils
47672         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47673         of copied files.  Remove a kludge, now that this is fixed.
47674         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47675         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47676         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47677
47678 2008-08-29  Bruno Haible  <bruno@clisp.org>
47679
47680         * MODULES.html.sh: Remove --cvs-urls option.
47681
47682 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47683
47684         maint.mk: adjust to file name change
47685         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47686
47687 2008-08-28  Jim Meyering  <meyering@redhat.com>
47688
47689         * modules/getndelim2 (License): Relicense to LGPLv2+.
47690         Approved by Richard Stallman for the version of 1995, and by
47691         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47692
47693 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47694
47695         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47696         dummy if one is not available.  Do not touch them if
47697         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47698         (getc_maybe_unlocked): New.
47699         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47700
47701 2008-08-26  Eric Blake  <ebb9@byu.net>
47702
47703         doc/INSTALL: resync from autoconf
47704         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47705         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47706         moving...
47707         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47708         * INSTALL: Regenerate.
47709         * INSTALL.ISO: New file.
47710         * INSTALL.UTF-8: Likewise.
47711
47712 2008-08-26  Jim Meyering  <meyering@redhat.com>
47713
47714         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47715         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47716         these definitions conditional, so that they may be overridden, too.
47717
47718 2008-08-26  Bruno Haible  <bruno@clisp.org>
47719
47720         Generate INSTALL file variants with prettier quotes.
47721         * doc/Makefile (INSTALL_PRELUDE): New macro.
47722         (INSTALL): Use it.
47723         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47724
47725 2008-08-26  Bruno Haible  <bruno@clisp.org>
47726
47727         Run makeinfo in an English locale.
47728         * doc/Makefile (MAKEINFO): New variable.
47729
47730 2008-08-26  Bruno Haible  <bruno@clisp.org>
47731
47732         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47733         Suggested by Eric Blake.
47734
47735 2008-08-25  Bruno Haible  <bruno@clisp.org>
47736
47737         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47738
47739 2008-08-25  Eric Blake  <ebb9@byu.net>
47740
47741         c-stack: test that stack overflow can be caught
47742         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47743         that platform allows handling stack overflow; at least OS/2 EMX
47744         has sigaltstack, but crashes before transferring control to
47745         handler on stack overflow.
47746         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47747         check for HAVE_STACK_OVERFLOW_HANDLING.
47748         Reported by Elbert Pol.
47749
47750 2008-08-25  Bruno Haible  <bruno@clisp.org>
47751
47752         * doc/posix-functions/strftime.texi: Fix description of strftime
47753         module.
47754
47755 2008-08-24  Bruno Haible  <bruno@clisp.org>
47756
47757         * tests/uniwidth/test-uc_width2.c: New file.
47758         * tests/uniwidth/test-uc_width2.sh: New file.
47759         * modules/uniwidth/width-tests (Files): Add the new files.
47760         (TESTS): Add uniwidth/test-uc_width2.sh.
47761         (TESTS_ENVIRONMENT): New variable.
47762         (check_PROGRAMS): Add test-uc_width2.
47763         (test_uc_width2_SOURCES): New variable.
47764
47765         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47766         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47767         not 0x00AB.
47768         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47769
47770 2008-08-22  Eric Blake  <ebb9@byu.net>
47771
47772         test-lock, test-tls: mention why a test is skipped
47773         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47774         skipped.
47775         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47776
47777         count-one-bits: relax license
47778         * modules/count-one-bits (License): Relicense to LGPLv2+.
47779         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47780
47781 2008-08-22  Andreas Schwab  <schwab@suse.de>
47782
47783         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47784         Remove spurious space in assignment.
47785
47786 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47787
47788         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47789         Paul Eggert <eggert@CS.UCLA.EDU>.
47790
47791 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47792
47793         * modules/gettext: Add m4/threadlib.m4.
47794
47795 2008-08-19  Eric Blake  <ebb9@byu.net>
47796
47797         test-c-stack: fix compilation failure on FreeBSD 5.0
47798         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47799         headers before <sys/resource.h>.
47800         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47801         the bug.
47802         Reported by Nelson H. F. Beebe.
47803
47804         strverscmp: migrate from "strverscmp.h" to <string.h>
47805         * modules/string (Makefile.am): Add new hooks.
47806         * modules/strverscmp (Files): Remove strverscmp.h.
47807         (Depends-on): Add string.
47808         (configure.ac): Add indicator.
47809         (Include): Mention new header.
47810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47811         defaults.
47812         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47813         results.
47814         * lib/strverscmp.h: Delete.
47815         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47816         * tests/test-strverscmp.c (includes): Adjust client.
47817         * lib/check-version.c (includes): Likewise.
47818         * NEWS: Document the change.
47819
47820         strverscmp: add unit test
47821         * modules/strverscmp-tests: New file.
47822         * tests/test-strverscmp.c: Likewise.
47823
47824 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47825
47826         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47827         regarding Windows crypto stuff, from Mono.
47828
47829 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47830
47831         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47832         if present, for intel RND.  Return error on failures.
47833
47834 2008-08-18  Ben Pfaff  <blp@gnu.org>
47835
47836         gitlog-to-changelog: give better diagnostic for failed pipe-open
47837         * build-aux/gitlog-to-changelog: Improve error message: suggest
47838         that the version of Git may be too old.
47839
47840 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47841
47842         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47843         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47844
47845 2008-08-18  Bruno Haible  <bruno@clisp.org>
47846
47847         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47848         pthread_in_use().
47849
47850 2008-08-18  Bruno Haible  <bruno@clisp.org>
47851
47852         * lib/glthread/threadlib.c: Include <pthread.h>.
47853
47854 2008-08-18  Bruno Haible  <bruno@clisp.org>
47855
47856         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47857         glthread_recursive_lock_* macros.
47858         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47859         Fix syntax error.
47860
47861 2008-08-18  Bruno Haible  <bruno@clisp.org>
47862
47863         * lib/glthread/thread.c: Avoid forcing a context switch right after
47864         thread creation.
47865
47866 2008-08-17  Bruno Haible  <bruno@clisp.org>
47867
47868         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47869         * lib/glthread/thread.h: Provide Win32 specific implementation.
47870         * modules/thread (Files): Add lib/glthread/thread.c.
47871         (Depends-on): Add lock.
47872         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47873
47874 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47875
47876         New module 'yield'.
47877         * modules/yield: New file.
47878         * lib/glthread/yield.h: New file.
47879         * m4/yield.m4: New file.
47880         * MODULES.html.sh (Multithreading): Add yield.
47881
47882 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47883
47884         New module 'thread'.
47885         * modules/thread: New file.
47886         * lib/glthread/thread.h: New file.
47887         * m4/thread.m4: New file.
47888         * MODULES.html.sh (Multithreading): Add thread.
47889
47890 2008-08-17  Bruno Haible  <bruno@clisp.org>
47891
47892         * lib/glthread/lock.h: Include <stdlib.h> always.
47893         * lib/glthread/tls.h: Likewise.
47894         * lib/glthread/cond.h: Likewise.
47895
47896 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47897
47898         New module 'cond'.
47899         * modules/cond: New file.
47900         * lib/glthread/cond.h: New file.
47901         * lib/glthread/cond.c: New file.
47902         * m4/cond.m4: New file.
47903         * MODULES.html.sh (Multithreading): Add cond.
47904
47905 2008-08-16  Eric Blake  <ebb9@byu.net>
47906
47907         c-stack: fix regression on Irix 5.3 from 2008-06-21
47908         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47909         sa_sigaction...
47910         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47911         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47912         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47913         * modules/signal (Makefile.am): Use the value.
47914         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47915         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47916         * doc/posix-headers/signal.texi (signal.h): Document this
47917         portability issue.
47918         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47919         Reported by Tom G. Christensen.
47920
47921 2008-08-17  Bruno Haible  <bruno@clisp.org>
47922
47923         New module 'threadlib'.
47924         * modules/threadlib: New file.
47925         * lib/glthread/threadlib.c: New file, extracted from
47926         lib/glthread/lock.c.
47927         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47928         functions.
47929         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47930         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47931         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47932         macros.
47933         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47934         (gl_DISABLE_THREADS): Remove macro.
47935         * modules/lock (Files): Remove build-aux/config.rpath.
47936         (Depends-on): Remove havelib. Add threadlib.
47937         (configure.ac-early): Remove section.
47938         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47939         * modules/tls (Depends-on): Remove lock. Add threadlib.
47940         (Link): New section, copied from threadlib.
47941         * MODULES.html.sh (Multithreading): Add threadlib.
47942
47943 2008-08-14  Bruno Haible  <bruno@clisp.org>
47944
47945         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47946         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47947         glthread_rwlock_unlock, glthread_rwlock_destroy,
47948         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47949         glthread_recursive_lock_destroy): Define as macros always.
47950         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47951         glthread_lock_lock.
47952         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47953         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47954         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47955         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47956         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47957         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47958         (glthread_recursive_lock_lock_func): Renamed from
47959         glthread_recursive_lock_lock.
47960         (glthread_recursive_lock_unlock_func): Renamed from
47961         glthread_recursive_lock_unlock.
47962         (glthread_recursive_lock_destroy_func): Renamed from
47963         glthread_recursive_lock_destroy.
47964
47965 2008-08-14  Bruno Haible  <bruno@clisp.org>
47966
47967         * lib/glthread/lock.h: Renamed from lib/lock.h.
47968         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47969         * lib/glthread/tls.h: Renamed from lib/tls.h.
47970         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47971         * lib/fstrcmp.c: Update includes.
47972         * lib/strsignal.c: Update includes.
47973         * modules/lock (Files, Makefile.am): Update.
47974         (Include): Change to "glthread/lock.h".
47975         * modules/tls (Files, Makefile.am): Update.
47976         (Include): Change to "glthread/tls.h".
47977         * tests/test-lock.c: Update includes.
47978         * tests/test-tls.c: Update includes.
47979         * NEWS: Mention the renamed header files.
47980
47981 2008-08-11  Jim Meyering  <meyering@redhat.com>
47982
47983         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47984
47985 2008-08-11  Eric Blake  <ebb9@byu.net>
47986
47987         test-c-stack: avoid C99-ism
47988         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47989         before statement.
47990         Reported by Alain Guibert.
47991
47992 2008-08-10  Jim Meyering  <meyering@redhat.com>
47993
47994         ensure that return value of uinttostr et al are not ignored
47995         * lib/inttostr.h (__GNUC_PREREQ): Define.
47996         (__attribute_warn_unused_result__): Define.
47997         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47998
47999 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48000
48001         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48002         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48003
48004 2008-08-07  Jim Meyering  <meyering@redhat.com>
48005
48006         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48007
48008         * modules/mkstemp (License): Relicense under LGPLv2+.
48009         * modules/tempname (License): Likewise.
48010
48011 2008-08-06  Bruno Haible  <bruno@clisp.org>
48012
48013         * lib/poll.c (poll): Further micro-optimization.
48014
48015 2008-08-06  Jim Meyering  <meyering@redhat.com>
48016
48017         inet_pton.c: use locale-independent tolower
48018         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48019         (inet_pton6): Use c_tolower rather than tolower.
48020         * modules/inet_pton (Depends-on): Add c-ctype.
48021
48022 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48023
48024         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48025         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48026
48027 2008-08-06  Jim Meyering  <meyering@redhat.com>
48028
48029         * modules/inet_pton (License): Relicense under LGPLv2+.
48030
48031 2008-08-03  Bruno Haible  <bruno@clisp.org>
48032
48033         Additional non-aborting API for lock and tls.
48034         * lib/lock.h: Include <errno.h>.
48035         (glthread_lock_init): New macro/function.
48036         (gl_lock_init): Define as wrapper around glthread_lock_init.
48037         (glthread_lock_lock): New macro/function.
48038         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48039         (glthread_lock_unlock): New macro/function.
48040         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48041         (glthread_lock_destroy): New macro/function.
48042         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48043         (glthread_rwlock_init): New macro/function.
48044         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48045         (glthread_rwlock_rdlock): New macro/function.
48046         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48047         (glthread_rwlock_wrlock): New macro/function.
48048         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48049         (glthread_rwlock_unlock): New macro/function.
48050         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48051         (glthread_rwlock_destroy): New macro/function.
48052         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48053         (glthread_recursive_lock_init): New macro/function.
48054         (gl_recursive_lock_init): Define as wrapper around
48055         glthread_recursive_lock_init.
48056         (glthread_recursive_lock_lock): New macro/function.
48057         (gl_recursive_lock_lock): Define as wrapper around
48058         glthread_recursive_lock_lock.
48059         (glthread_recursive_lock_unlock): New macro/function.
48060         (gl_recursive_lock_unlock): Define as wrapper around
48061         glthread_recursive_lock_unlock.
48062         (glthread_recursive_lock_destroy): New macro/function.
48063         (gl_recursive_lock_destroy): Define as wrapper around
48064         glthread_recursive_lock_destroy.
48065         (glthread_once): New macro/function.
48066         (gl_once): Define as wrapper around glthread_once.
48067         Update function declarations.
48068         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48069         glthread_rwlock_init. Return error code.
48070         (glthread_rwlock_rdlock_multithreaded): Renamed from
48071         glthread_rwlock_rdlock. Return error code.
48072         (glthread_rwlock_wrlock_multithreaded): Renamed from
48073         glthread_rwlock_wrlock. Return error code.
48074         (glthread_rwlock_unlock_multithreaded): Renamed from
48075         glthread_rwlock_unlock. Return error code.
48076         (glthread_rwlock_destroy_multithreaded): Renamed from
48077         glthread_rwlock_destroy. Return error code.
48078         (glthread_recursive_lock_init_multithreaded): Renamed from
48079         glthread_recursive_lock_init. Return error code.
48080         (glthread_recursive_lock_lock_multithreaded): Renamed from
48081         glthread_recursive_lock_lock. Return error code.
48082         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48083         glthread_recursive_lock_unlock. Return error code.
48084         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48085         glthread_recursive_lock_destroy. Return error code.
48086         (glthread_once_call): Make static.
48087         (glthread_once_multithreaded): Renamed from glthread_once.
48088         * lib/tls.h: Include <errno.h>.
48089         (glthread_tls_key_init): New macro/function.
48090         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48091         (glthread_tls_set): New macro/function.
48092         (gl_tls_set): Define as wrapper around glthread_tls_set.
48093         (glthread_tls_key_destroy): New macro/function.
48094         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48095         Update function declarations.
48096         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48097         glthread_tls_get.
48098         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48099
48100 2008-08-04  Eric Blake  <ebb9@byu.net>
48101
48102         gnumakefile: use space, not TAB, outside of targets
48103         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48104
48105 2008-08-02  Jim Meyering  <meyering@redhat.com>
48106
48107         getdate.y: avoid locale-dependent date parsing failure
48108         In Turkish locales, getdate would fail to recognize keywords
48109         containing a lowercase "i".  The solution is not to rely on
48110         locale-sensitive case-conversion.
48111         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48112         (lookup_word): Use c_toupper in place of toupper.
48113         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48114         Reported by Vefa Bicakci <bicave@superonline.com> in
48115         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48116         * modules/getdate (Depends-on): Add c-ctype.
48117
48118 2008-08-02  Bruno Haible  <bruno@clisp.org>
48119
48120         * gnulib-tool (func_import): When updating or creating a .gitignore
48121         file, prepend each added line with a slash, and ignore leading slashes
48122         from the existing lines.
48123         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48124
48125 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48126
48127         Portability fix for GNU make 3.79.1.
48128         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48129         versions do not understand.
48130
48131 2008-08-01  Bruno Haible  <bruno@clisp.org>
48132
48133         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48134         * tests/test-isnanf.h (zero): New variable.
48135         (main): Avoid literal -0.0f.
48136         * tests/test-isnand.h (zero): New variable.
48137         (main): Avoid literal -0.0.
48138         * tests/test-isnanl.h (zero): New variable.
48139         (main): Avoid literal -0.0L.
48140         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48141         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48142         -0.0, -0.0L.
48143         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48144         (test_signbitd): Avoid literal -0.0.
48145         (test_signbitl): Avoid literal -0.0L.
48146         * tests/test-ceilf1.c (zero): New variable.
48147         (main): Avoid literal -0.0f.
48148         * tests/test-ceill.c (zero): New variable.
48149         (main): Avoid literal -0.0L.
48150         * tests/test-floorf1.c (zero): New variable.
48151         (main): Avoid literal -0.0f.
48152         * tests/test-floorl.c (zero): New variable.
48153         (main): Avoid literal -0.0L.
48154         * tests/test-roundf1.c (zero): New variable.
48155         (main): Avoid literal -0.0f.
48156         * tests/test-round1.c (zero): New variable.
48157         (main): Avoid literal -0.0.
48158         * tests/test-roundl.c (zero): New variable.
48159         (main): Avoid literal -0.0L.
48160         * tests/test-truncf1.c (zero): New variable.
48161         (main): Avoid literal -0.0f.
48162         * tests/test-trunc1.c (zero): New variable.
48163         (main): Avoid literal -0.0.
48164         * tests/test-truncl.c (zero): New variable.
48165         (main): Avoid literal -0.0L.
48166         * tests/test-frexp.c (zero): New variable.
48167         (main): Avoid literal -0.0.
48168         * tests/test-frexpl.c (zero): New variable.
48169         (main): Avoid literal -0.0L.
48170         * tests/test-ldexpl.c (zero): New variable.
48171         (main): Avoid literal -0.0L.
48172         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48173         (zerod, zerol): New variables.
48174         (test_function): Avoid literals -0.0, -0.0L.
48175         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48176         (zerod, zerol): New variables.
48177         (test_function): Avoid literals -0.0, -0.0L.
48178         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48179         (zerod, zerol): New variables.
48180         (test_function): Avoid literals -0.0, -0.0L.
48181         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48182         (zerod, zerol): New variables.
48183         (test_function): Avoid literals -0.0, -0.0L.
48184         * tests/test-strtod.c (zero): New variable.
48185         (main): Avoid literal -0.0.
48186         Reported by Jonathan C. Patschke <jp@centtech.com>.
48187
48188 2008-07-31  Jim Meyering  <meyering@redhat.com>
48189
48190         sha256.h: correct definition of SHA224_DIGEST_SIZE
48191         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48192         Reported by Paulie Pena IV <paulie4@gmail.com>.
48193         Define as 224 / 8, rather than as a literal.
48194         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48195         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48196         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48197
48198 2008-07-31  Bruno Haible  <bruno@clisp.org>
48199
48200         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48201         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48202         Reported by Jonathan Patschke <jp@centtech.com>.
48203
48204 2008-07-31  Bruno Haible  <bruno@clisp.org>
48205
48206         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48207         Reported by Paolo Bonzini <bonzini@gnu.org>.
48208
48209 2008-07-30  Eric Blake  <ebb9@byu.net>
48210
48211         test-strtod: allow compilation without -lm
48212         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48213         Reported by Dennis Clarke <blastwave@gmail.com>.
48214
48215 2008-07-28  Jim Meyering  <meyering@redhat.com>
48216
48217         bootstrap: work also when there are no .po files in po/
48218         * build-aux/bootstrap (update_po_files): Complete the change
48219         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48220
48221 2008-07-27  Jim Meyering  <meyering@redhat.com>
48222
48223         * users.txt: Add zile.
48224
48225 2008-07-26  Ben Pfaff  <blp@gnu.org>
48226
48227         Add missing dependencies on new m4/exponent[fdl].m4 files.
48228         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48229         * modules/isnand-nolibm: Add m4/exponentd.m4.
48230         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48231         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48232         m4/isnan[fdl].m4, because the macros actually used moved.
48233         Reported by Jim Meyering.
48234
48235 2008-07-14  Ben Pfaff  <blp@gnu.org>
48236
48237         Add isinf module.
48238         * lib/isinf.c: New file.
48239         * lib/math.in.h: Define isinf macro if we have decided to replace
48240         it.
48241         * m4/isinf.m4: New file.
48242         * m4/math_h.m4: Initialize and substitute variables for isinf
48243         module.
48244         * modules/isinf: New file.
48245         * modules/isinf-tests: New file.
48246         * modules/math: Add substitutions for new module.
48247         * tests/test-isinf.c: New file.
48248         * doc/posix-functions/isinf.texi: Mention new module.
48249         * MODULES.html.sh: Mention new module.
48250
48251 2008-07-14  Ben Pfaff  <blp@gnu.org>
48252
48253         Factor out some macros for use by additional modules.
48254         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48255         exponentf.m4.
48256         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48257         exponentd.m4.
48258         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48259         file exponentl.m4.
48260         * m4/exponentf.m4: New file.
48261         * m4/exponentd.m4: New file.
48262         * m4/exponentl.m4: New file.
48263         * modules/isnanf: Use new file m4/exponentf.m4.
48264         * modules/isnand: Use new file m4/exponentd.m4.
48265         * modules/isnanl: Use new file m4/exponentl.m4.
48266
48267 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48268
48269         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48270         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48271         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48272         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48273
48274         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48275         readlink on platforms without PATH_MAX.
48276
48277 2008-07-21  Eric Blake  <ebb9@byu.net>
48278
48279         Warn, not fail, on stale version.
48280         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48281
48282         Don't allow installation with stale devel version number.
48283         * top/GNUmakefile (_is-install-target): New macro.
48284         (_curr-ver): Forbid installation with stale version number.
48285
48286 2008-07-20  Bruno Haible  <bruno@clisp.org>
48287
48288         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48289         TESTS_ENVIRONMENT.
48290         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48291
48292 2008-07-20  Bruno Haible  <bruno@clisp.org>
48293
48294         * lib/c-stack.h (c_stack_action): Add documentation.
48295         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48296
48297 2008-07-20  Bruno Haible  <bruno@clisp.org>
48298
48299         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48300         * modules/readlink (License): Likewise.
48301
48302 2008-07-17  Eric Blake  <ebb9@byu.net>
48303
48304         * modules/c-stack (Link): Fix typo.
48305
48306         Make c-stack use libsigsegv, when available.
48307         * modules/c-stack (Depends-on): Add libsigsegv.
48308         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48309         needed.
48310         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48311         (segv_handler, overflow_handler, c_stack_action)
48312         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48313         implementation when libsigsegv is available, but only when using
48314         the library is necessary.
48315         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48316         comment, explaining why XSI check fails on Linux.
48317         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48318         * tests/test-c-stack2.sh: Tweak skip message.
48319         * NEWS: Document new link-time requirements.
48320
48321 2008-07-16  Eric Blake  <ebb9@byu.net>
48322
48323         c-stack: Expose false positives when not using libsigsegv.
48324         * modules/c-stack-tests (Files): Expand test.
48325         * tests/test-c-stack.c (main): Add means to conditionally trigger
48326         non-overflow SIGSEGV.
48327         * tests/test-c-stack2.sh: New file.
48328
48329 2008-07-14  Bruno Haible  <bruno@clisp.org>
48330
48331         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48332         Reported by Eric Blake.
48333
48334 2008-07-14  Sam Steingold  <sds@gnu.org>
48335             Bruno Haible  <bruno@clisp.org>
48336
48337         New module libsigsegv.
48338         * modules/libsigsegv: New file.
48339         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48340         modifications.
48341         * MODULES.html.sh (Signal handling): New section.
48342
48343 2008-07-14  Bruno Haible  <bruno@clisp.org>
48344
48345         * modules/unictype/ctype-* (Description): Add the word "function".
48346         Improves the resulting doc in MODULES.html.
48347
48348 2008-07-12  Ben Pfaff  <blp@gnu.org>
48349
48350         Add longlong module.
48351         * modules/longlong: New file.
48352
48353 2008-07-12  Bruno Haible  <bruno@clisp.org>
48354
48355         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48356         to empty.
48357
48358 2008-07-10  Ben Pfaff  <blp@gnu.org>
48359
48360         Add isnan module.
48361         * doc/posix-functions/isnan.texi: Mention new module.
48362         * lib/math.in.h: Define isnan macro if we have decided to replace
48363         it.
48364         * m4/isnan.m4: New file.
48365         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48366         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48367         also.
48368         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48369         redundancy.
48370         * m4/math_h.m4: Initialize and substitute variables for isnan
48371         module.
48372         * modules/isnan: New file.
48373         * modules/isnan-tests: New file.
48374         * modules/math: Add substitutions for new module.
48375         * tests/test-isnan.c: New file.
48376         * MODULES.html.sh: Mention new module.
48377
48378 2008-07-10  Ben Pfaff  <blp@gnu.org>
48379
48380         Add isnanf module.
48381         * lib/isnanf.m4: New file.
48382         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48383         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48384         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48385         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48386         * modules/isnanf: New file.
48387         * modules/isnanf-tests: New file.
48388         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48389         files.
48390         * tests/test-isnanf-nolibm.c: factored most of its contents into
48391         new file tests/test-isnanf.h.
48392         * tests/test-isnanf.h: New file.
48393         * tests/test-isnanf.c: New file.
48394         * MODULES.html.sh: Mention new module.
48395         * doc/glibc-functions/isnanf.texi: Mention new module.
48396
48397 2008-07-10  Ben Pfaff  <blp@gnu.org>
48398
48399         Add isnand module.
48400         * lib/isnand.h: New file.
48401         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48402         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48403         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48404         functionality also.
48405         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48406         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48407         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48408         * modules/isnand: New file.
48409         * modules/isnand-tests: New file.
48410         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48411         files.
48412         * tests/test-isnand-nolibm.c: factored most of its contents into
48413         new file tests/test-isnand.h.
48414         * tests/test-isnand.h: New file.
48415         * tests/test-isnand.c: New file.
48416         * MODULES.html.sh: Mention new module.
48417
48418 2008-07-10  Ben Pfaff  <blp@gnu.org>
48419
48420         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48421         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48422         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48423         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48424         * modules/isnanf-nolibm: Update references to renamed files.
48425         * modules/isnand-nolibm: Likewise.
48426         * modules/isnanf-nolibm-tests: Likewise.
48427         * modules/isnand-nolibm-tests: Likewise.
48428         * lib/frexp.c: Likewise.
48429         * lib/isfinite.c: Likewise.
48430         * lib/signbitd.c: Likewise.
48431         * lib/signbitf.c: Likewise.
48432         * lib/vasnprintf.c: Likewise.
48433         * tests/test-ceilf1.c: Likewise.
48434         * tests/test-ceilf2.c: Likewise.
48435         * tests/test-floorf1.c: Likewise.
48436         * tests/test-floorf2.c: Likewise.
48437         * tests/test-frexp.c: Likewise.
48438         * tests/test-round1.c: Likewise.
48439         * tests/test-round2.c: Likewise.
48440         * tests/test-roundf1.c: Likewise.
48441         * tests/test-strtod.c: Likewise.
48442         * tests/test-trunc1.c: Likewise.
48443         * tests/test-trunc2.c: Likewise.
48444         * tests/test-truncf1.c: Likewise.
48445         * tests/test-truncf2.c: Likewise.
48446         * NEWS: Mention the renamed header files.
48447
48448 2008-07-11  Jim Meyering  <meyering@redhat.com>
48449
48450         vc-list-files: make the last-resort awk code more portable
48451         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48452         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48453         does not support it.
48454
48455 2008-07-10  Eric Blake  <ebb9@byu.net>
48456
48457         Work with tar's bootstrap.
48458         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48459         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48460         an m4 comment.
48461
48462 2008-07-09  Jim Meyering  <meyering@redhat.com>
48463
48464         posix-shell.m4: fix typo that made this test malfunction
48465         * m4/posix-shell.m4: Remove capitalization in variable name.
48466
48467 2008-07-08  Bruno Haible  <bruno@clisp.org>
48468
48469         * m4/onceonly.m4: Update comments.
48470         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48471
48472 2008-07-04  Jim Meyering  <meyering@redhat.com>
48473
48474         * users.txt: Add vc-dwim.
48475         (bison, coreutils): Use the gitweb URL.
48476
48477 2008-07-03  Jim Meyering  <meyering@redhat.com>
48478
48479         * users.txt: Add libffcall.  From Sam Steingold.
48480
48481 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48482
48483         getdate.y: do not ignore TZ with relative day, month or year offset
48484         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48485         relative-date-handling, since otherwise, the latter would clobber the
48486         sole output (an updated Start value) of the tz-handling block.
48487         * tests/test-getdate.c: Tests for the fix
48488
48489 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48490
48491         Recognize 'foo_LIBRARIES += libgnu.a'.
48492         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48493         makefile snippet has already specified an installation location,
48494         also using '+='.
48495
48496 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48497
48498         getdate.y: factor out common actions
48499         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48500         Use them in place of open-coded actions.
48501
48502 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48503
48504         Add self-test for getdate module.
48505         * modules/getdate-tests: New file.
48506         * tests/test-getdate.c: New file.
48507
48508 2008-06-29  Bruno Haible  <bruno@clisp.org>
48509
48510         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48511         .gitignore.
48512         Reported by Sylvain Beucler <beuc@beuc.net>.
48513
48514 2008-06-29  Bruno Haible  <bruno@clisp.org>
48515
48516         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48517         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48518
48519 2008-06-29  Bruno Haible  <bruno@clisp.org>
48520
48521         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48522         EXTRA_DIST.
48523         Reported by Sylvain Beucler <beuc@beuc.net>.
48524
48525 2008-06-26  Jim Meyering  <meyering@redhat.com>
48526
48527         make several modules depend on the "open" module
48528         This provides slightly increased consistency when opening-for-write
48529         the name of a non-directory spelled with a trailing slash.
48530         * modules/chdir-safer: Likewise.
48531         * modules/chown: Likewise.
48532         * modules/clean-temp: Likewise.
48533         * modules/copy-file: Likewise.
48534         * modules/fchdir: Likewise.
48535         * modules/fcntl-safer: Likewise.
48536         * modules/pipe: Likewise.
48537         * modules/utime: Likewise.
48538         Prompted by Eric Blake and Bruno Haible.
48539
48540 2008-06-24  Andreas Schwab  <schwab@suse.de>
48541
48542         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48543         literals can be used as initializers for global variables.
48544
48545 2008-06-23  Eric Blake  <ebb9@byu.net>
48546
48547         Make gnulib-cache.m4 easier to diff.
48548         * gnulib-tool (func_import): Allow newlines when reading cached
48549         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48550
48551 2008-06-23  Bruno Haible  <bruno@clisp.org>
48552
48553         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48554         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48555         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48556         m4/signalblocking.m4.
48557         (gl_PREREQ_SIGACTION): Don't invoke it.
48558         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48559         gl_PREREQ_SIG_HANDLER_H.
48560         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48561         Don't check for sigaction here.
48562
48563 2008-06-23  Bruno Haible  <bruno@clisp.org>
48564
48565         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48566         (install_handlers): Don't set the SA_RESETHAND flag.
48567
48568 2008-06-23  Bruno Haible  <bruno@clisp.org>
48569
48570         * m4/sigaction.m4: Comment fixes.
48571         * lib/signal.in.h: Likewise.
48572
48573 2008-06-23  Eric Blake  <ebb9@byu.net>
48574
48575         Fix typo.
48576         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48577
48578         Avoid SA_ namespace.
48579         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48580         Reported by Ralf Wildenhues.
48581
48582         Avoid test failure due to SA_RESTORER.
48583         * tests/test-sigaction.c (SA_MASK): New macro.
48584         (main): Avoid failing due to extension flags being set.
48585         Reported by Jim Meyering.
48586
48587         Revert use of sig-handler.h in sigprocmask.c.
48588         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48589         it requires the existence of struct sigaction.
48590         * lib/sigprocmask.c (handler_t): Restore typedef.
48591         (rpl_signal, old_handlers): Use local type.
48592
48593 2008-06-22  Bruno Haible  <bruno@clisp.org>
48594
48595         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48596         conditionally.
48597         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48598
48599 2008-06-22  Bruno Haible  <bruno@clisp.org>
48600
48601         * doc/posix-functions/siginterrupt.texi: Move note.
48602
48603         * lib/signal.in.h (SA_RESTART): New macro.
48604         * lib/sigaction.c: Update comment.
48605
48606         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48607
48608         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48609         (gl_PREREQ_SIGPROCMASK): Invoke it.
48610         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48611
48612         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48613
48614         * lib/sigprocmask.c: Update a comment.
48615
48616 2008-06-21  Eric Blake  <ebb9@byu.net>
48617
48618         Use sigaction module rather than signal().
48619         * modules/c-stack (Depends-on): Add sigaction.
48620         * modules/fatal-signal (Depends-on): Likewise.
48621         * modules/nanosleep (Depends-on): Likewise.
48622         * modules/sigprocmask (Files): Add sig-handler.h.
48623         * modules/sigaction (Files): Likewise.
48624         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48625         Eggert.
48626         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48627         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48628         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48629         (init_fatal_signals): Likewise.
48630         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48631         (siginterrupt): Delete fallback.
48632         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48633         instead.
48634         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48635         siginterrupt.
48636
48637         New module sigaction, for mingw.
48638         * modules/sigaction: New module...
48639         * modules/sigaction-tests: ...and its test.
48640         * m4/sigaction.m4: New file.
48641         * lib/sigaction.c: Likewise.
48642         * tests/test-sigaction.c: Likewise.
48643         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48644         * modules/signal (Makefile.am): Likewise.
48645         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48646         needed.
48647         * doc/posix-headers/signal.texi (signal.h): Mention provided
48648         types.
48649         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48650         that sigaction is preferable.
48651         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48652         module.
48653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48654         sigaction.
48655
48656         Improve robustness of sigprocmask by overriding signal.
48657         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48658         is in use.
48659         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48660         (SIGKILL, SIGSTOP): Provide fallbacks.
48661         (rpl_signal): Implement.
48662         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48663         signal can be called inside handlers.
48664
48665         Fix nanosleep module on mingw.
48666         * modules/nanosleep (Depends-on): Add sys_select.
48667         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48668
48669         Fix licensing of sigprocmask.
48670         * modules/raise (License): Relicense as LGPL.
48671
48672 2008-06-21  Bruno Haible  <bruno@clisp.org>
48673
48674         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48675         result if it contains question marks.
48676         Reported by Michael Geng <linux@michaelgeng.de>.
48677
48678 2008-06-19  Bruno Haible  <bruno@clisp.org>
48679
48680         Fix CVS-ism.
48681         * doc/gnulib.texi: Include updated-stamp.texi.
48682         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48683         (updated-stamp.texi): New rule.
48684         (gnulib.info): Depend on it.
48685         * doc/.gitignore: Add updated-stamp.texi.
48686         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48687
48688 2008-06-19  Bruno Haible  <bruno@clisp.org>
48689
48690         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48691         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48692
48693 2008-06-19  Eric Blake  <ebb9@byu.net>
48694
48695         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48696         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48697         Reported by Stepan Kasal.
48698
48699 2008-06-18  Bruno Haible  <bruno@clisp.org>
48700
48701         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48702         Reported by Eric Blake.
48703
48704 2008-06-18  Eric Blake  <ebb9@byu.net>
48705
48706         Work around cygwin 1.5.25 strsignal bug.
48707         * tests/test-strsignal.c: Allow for const char *.
48708         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48709
48710 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48711
48712         * users.txt: Update URL to article and add author/date
48713         information.
48714
48715 2008-06-17  Bruno Haible  <bruno@clisp.org>
48716
48717         New macro gl_DISABLE_THREADS.
48718         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48719         if the user did not pass --enable-threads or --disable-threads option.
48720         (gl_DISABLE_THREADS): New macro.
48721         Reported by Eric Blake <ebb9@byu.net>.
48722
48723 2008-06-17  Bruno Haible  <bruno@clisp.org>
48724
48725         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48726         when the macro ignores it.
48727         Based on a patch by Eric Blake <ebb9@byu.net>.
48728
48729 2008-06-17  Bruno Haible  <bruno@clisp.org>
48730
48731         * modules/tls (License): Change to LGPLv2+.
48732         Reported by Eric Blake.
48733
48734 2008-06-17  Eric Blake  <ebb9@byu.net>
48735
48736         Simplify c-stack prerequisites.
48737         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48738         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48739         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48740         check.
48741         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48742         <sys/resource.h>.
48743
48744         Move c-stack test into testsuite.
48745         * modules/c-stack-tests: New file.
48746         * lib/c-stack.c [DEBUG]: Move test program...
48747         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48748         fail test if sigaltstack is lacking.
48749         * tests/test-c-stack.sh: New driver file.
48750
48751 2008-06-16  Eric Blake  <ebb9@byu.net>
48752
48753         Use raise module consistently.
48754         * modules/fatal-signal (Depends-on): Add raise.
48755         * modules/sigprocmask (Depends-on): Likewise.
48756         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48757         * lib/sigprocmask.c (sigprocmask): Likewise.
48758         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48759         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48760
48761         Fix compliance bug in sigpending.
48762         * lib/sigprocmask.c (sigpending): Return pending array via
48763         parameter, not return value.
48764
48765 2008-06-14  Eric Blake  <ebb9@byu.net>
48766
48767         Improve obstack-printf test code.
48768         * tests/test-obstack-printf.c (test_function): Fix comment, and
48769         simplify usage of obstack_* in macros.  Add a test for coverage.
48770         Reported by Bruno Haible.
48771
48772 2008-06-14  Bruno Haible  <bruno@clisp.org>
48773
48774         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48775         array size as a constant, not as a const variable.
48776         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48777         AC_USE_SYSTEM_EXTENSIONS.
48778         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48779         Test whether the obstack_printf function actually exists.
48780         * modules/obstack-printf (Depends-on): Add extensions.
48781         (Include): Remove obstack.h.
48782         * modules/obstack-printf-posix (Depends-on): Add extensions.
48783         (Include): Remove obstack.h.
48784
48785 2008-06-13  Eric Blake  <ebb9@byu.net>
48786
48787         Add obstack-printf and obstack-printf-posix modules.
48788         * modules/obstack-printf: New file.
48789         * modules/obstack-printf-posix: Likewise.
48790         * MODULES.html.sh (Misc): Mention them.
48791         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48792         Likewise.
48793         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48794         Likewise.
48795         * modules/stdio (Makefile.am): Accomodate new modules.
48796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48797         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48798         Declare.
48799         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48800         functions.
48801         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48802         (gl_REPLACE_OBSTACK_PRINTF): New macros
48803         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48804         * tests/test-obstack-printf.c: New file.
48805         * modules/obstack-printf-tests: Likewise.
48806         * modules/obstack-printf-posix-tests: Likewise.
48807
48808 2008-06-11  Bruno Haible  <bruno@clisp.org>
48809
48810         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48811         * lib/open.c: Include errno.h.
48812         (open): Fail when attempting to write to a file that has a trailing
48813         slash.
48814         * tests/test-open.c (main): Test against trailing slash bug.
48815         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48816
48817 2008-06-10  Bruno Haible  <bruno@clisp.org>
48818
48819         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48820         for $? to work inside the trap command, with various /bin/sh-s.
48821         * tests/test-vc-list-files-cvs.sh: Likewise.
48822
48823 2008-06-10  Bruno Haible  <bruno@clisp.org>
48824
48825         * lib/acl-internal.h: Don't include gettext.h here.
48826         * lib/set-mode-acl.c: Include gettext.h here.
48827         * lib/copy-acl.c: Likewise.
48828
48829 2008-06-10  Bruno Haible  <bruno@clisp.org>
48830
48831         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48832         * lib/wait-process.c (wait_subprocess): Likewise.
48833         * lib/execute.h (execute): Add termsigp argument.
48834         * lib/execute.c (execute): Likewise.
48835         * lib/csharpcomp.c (compile_csharp_using_pnet,
48836         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48837         * lib/csharpexec.c (execute_csharp_using_pnet,
48838         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48839         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48840         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48841         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48842         is_jikes_present): Update.
48843         * lib/javaexec.c (execute_java_class): Update.
48844         * lib/javaversion.c (execute_and_read_line): Update.
48845         * NEWS: Document the changes.
48846         Reported by Eric Blake.
48847
48848 2008-06-10  Eric Blake  <ebb9@byu.net>
48849
48850         Add missing include.
48851         * tests/test-strstr.c (includes): Add <signal.h>.
48852         * tests/test-strcasestr.c (includes): Likewise.
48853         * tests/test-memmem.c (includes): Likewise.
48854
48855 2008-06-10  Bruno Haible  <bruno@clisp.org>
48856
48857         * lib/wait-process.c (wait_subprocess): Add an assertion.
48858
48859 2008-06-10  Bruno Haible  <bruno@clisp.org>
48860
48861         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48862
48863 2008-06-10  Bruno Haible  <bruno@clisp.org>
48864
48865         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48866         using alarm().
48867         * tests/test-strcasestr.c (main): Likewise.
48868         * tests/test-strstr.c (main): Likewise.
48869
48870 2008-06-09  Bruno Haible  <bruno@clisp.org>
48871
48872         Work around the Solaris 10 ACE ACLs ABI change.
48873         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48874         declare if ACL_NO_TRIVIAL is present.
48875         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48876         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48877         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48878         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48879         define if ACL_NO_TRIVIAL is present.
48880         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48881         and use the current ABI.
48882         (file_has_acl): Use same #if condition as elsewhere.
48883         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48884         in use, and use the current ABI.
48885         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48886         Reported by Jim Meyering.
48887
48888 2008-06-09  Eric Blake  <ebb9@byu.net>
48889
48890         Work around environments that (stupidly) ignore SIGALRM.
48891         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48892         before using alarm().
48893         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48894         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48895         Reported by Ian Beckwith <ianb@erislabs.net>.
48896
48897         Produce autobuild blurb earlier in log.
48898         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48899
48900 2008-06-09  Jim Meyering  <meyering@redhat.com>
48901         and OndÅ™ej Vašík  <ovasik@redhat.com>
48902
48903         utimens.c: correct kernel bug work-around
48904         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48905         failure, not success, and the kernel bug we're trying to work
48906         around affects not just the utimensat call, but also the fallback
48907         futimens call.
48908         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48909         not success.
48910         [HAVE_FUTIMENS]: Use the same work-around, here.
48911
48912 2008-06-09  Jim Meyering  <meyering@redhat.com>
48913
48914         add more guards around definition of ACE_-related code
48915         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48916         ALLOW and ACE_OWNER are also defined.
48917
48918 2008-06-08  Bruno Haible  <bruno@clisp.org>
48919
48920         * lib/acl-internal.h: Add me as co-author.
48921         * lib/file-has-acl.c: Likewise.
48922         * lib/set-mode-acl.c: Likewise.
48923         * lib/copy-acl.c: Likewise.
48924
48925 2008-06-08  Bruno Haible  <bruno@clisp.org>
48926
48927         Add support for AIX ACLs.
48928         * lib/acl-internal.h (acl_nontrivial): New declaration.
48929         * lib/file-has-acl.c (acl_nontrivial): New function.
48930         (file_has_acl): Add implementation using AIX 4 ACL API.
48931         * lib/set-mode-acl.c (qset_acl): Likewise.
48932         * lib/copy-acl.c (qcopy_acl): Likewise.
48933
48934 2008-06-08  Bruno Haible  <bruno@clisp.org>
48935
48936         Add support for HP-UX ACLs.
48937         * lib/acl-internal.h (acl_nontrivial): New declaration.
48938         * lib/file-has-acl.c (acl_nontrivial): New function.
48939         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48940         * lib/set-mode-acl.c (qset_acl): Likewise.
48941         * lib/copy-acl.c (qcopy_acl): Likewise.
48942
48943 2008-06-08  Bruno Haible  <bruno@clisp.org>
48944
48945         Add support for Cygwin ACLs.
48946         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48947         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48948         the chmod_or_fchmod call.
48949         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48950
48951 2008-06-08  Bruno Haible  <bruno@clisp.org>
48952
48953         Fix bug with setuid modes in Solaris 10+ code.
48954         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48955         succeeded, when the mode contains some special bits.
48956
48957 2008-06-08  Bruno Haible  <bruno@clisp.org>
48958
48959         Add support for Solaris 7..10 ACLs.
48960         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48961         declarations.
48962         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48963         functions.
48964         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48965         * lib/set-mode-acl.c (qset_acl): Likewise.
48966         * lib/copy-acl.c (qcopy_acl): Likewise.
48967
48968 2008-06-08  Bruno Haible  <bruno@clisp.org>
48969
48970         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48971         declaration.
48972         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48973         (acl_access_nontrivial): Remove MacOS X case.
48974         (file_has_acl): Use acl_extended_nontrivial.
48975         * lib/copy-acl.c (qcopy_acl): Likewise.
48976
48977 2008-06-08  Bruno Haible  <bruno@clisp.org>
48978
48979         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48980
48981 2008-06-08  Jim Meyering  <meyering@redhat.com>
48982
48983         * modules/acl (Maintainer): Add Bruno Haible.
48984
48985 2008-06-07  Bruno Haible  <bruno@clisp.org>
48986
48987         Improve support for Tru64 ACLs.
48988         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48989         ACL on OSF/1.
48990
48991 2008-06-07  Bruno Haible  <bruno@clisp.org>
48992
48993         Add support for MacOS X ACLs.
48994         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48995         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48996         * lib/set-mode-acl.c (qset_acl): Likewise.
48997         * lib/copy-acl.c (qcopy_acl): Likewise.
48998
48999 2008-06-07  Bruno Haible  <bruno@clisp.org>
49000
49001         Fix memory leak introduced on 2008-05-22.
49002         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49003         use.
49004
49005 2008-06-07  Bruno Haible  <bruno@clisp.org>
49006
49007         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49008         to construct an empty ACL.
49009
49010 2008-06-07  Bruno Haible  <bruno@clisp.org>
49011
49012         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49013         precisely.
49014         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49015
49016 2008-06-07  Bruno Haible  <bruno@clisp.org>
49017
49018         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49019         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49020
49021 2008-06-07  Bruno Haible  <bruno@clisp.org>
49022
49023         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49024         regardless of POSIX.
49025         * doc/posix-functions/_longjmp.texi: Likewise.
49026         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49027         SystemV platform in this case.
49028
49029 2008-06-06  Eric Blake  <ebb9@byu.net>
49030
49031         Document abort() bugs.
49032         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49033
49034         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49035         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49036         sigsetjmp.
49037         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49038         siglongjmp, but only as a macro.
49039         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49040         is obsolete.
49041         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49042
49043         Tweak documentation to cover cygwin argz bugs.
49044         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49045         argz bug fix; no code change needed since no cygwin releases
49046         occurred between the last fix and the bug being tested.
49047         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49048         module and recently fixed cygwin bugs.
49049         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49050         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49051         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49052         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49053         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49054         Likewise.
49055         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49056         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49057         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49058         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49059         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49060         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49061         Likewise.
49062
49063         Avoid gcc warning on cygwin.
49064         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49065         !ACL_NO_TRIVIAL]: Avoid unused variable.
49066
49067 2008-06-05  Eric Blake  <ebb9@byu.net>
49068
49069         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49070         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49071         git-version-gen fails to come up with a version.
49072         Reported by Simon Josefsson.
49073
49074 2008-06-05  Jim Meyering  <meyering@redhat.com>
49075             Paul Eggert  <eggert@cs.ucla.edu>
49076
49077         utimens.c: work around a probable Linux kernel bug
49078         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49079         appears to be a kernel bug that causes utimensat to return 280
49080         instead of 0, indicating success.
49081
49082 2008-06-04  Bruno Haible  <bruno@clisp.org>
49083
49084         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49085         2008-06-01 commit.
49086
49087 2008-06-04  Bruno Haible  <bruno@clisp.org>
49088
49089         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49090         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49091         (file_has_acl): Use it. Save errno afterwards.
49092         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49093
49094 2008-06-03  Bruno Haible  <bruno@clisp.org>
49095
49096         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49097         draft code. Simplify #ifs.
49098         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49099         Put Solaris code after POSIX-draft code. Fix comments regarding
49100         Solaris 10, HP-UX. Mention Cygwin.
49101         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49102
49103 2008-06-03  Eric Blake  <ebb9@byu.net>
49104
49105         Provide fallback for older kernels.
49106         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49107         Provide runtime fallback if kernel lacks support.
49108         Reported by Mike Frysinger.
49109
49110 2008-06-02  Bruno Haible  <bruno@clisp.org>
49111
49112         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49113         it exists.
49114
49115 2008-06-02  Bruno Haible  <bruno@clisp.org>
49116
49117         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49118         * lib/copy-acl.c (qcopy_acl): Update comment.
49119
49120 2008-06-02  Bruno Haible  <bruno@clisp.org>
49121
49122         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49123         like ACL APIs.
49124
49125 2008-06-02  Bruno Haible  <bruno@clisp.org>
49126
49127         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49128         * tests/test-set-mode-acl.sh: Likewise.
49129         * tests/test-copy-acl.sh: Likewise.
49130         * tests/test-copy-file.sh: Likewise.
49131
49132 2008-06-02  Bruno Haible  <bruno@clisp.org>
49133
49134         * tests/test-file-has-acl.sh: Remove unused code.
49135
49136 2008-06-01  Bruno Haible  <bruno@clisp.org>
49137
49138         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49139         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49140         messages.
49141         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49142
49143 2008-06-01  Bruno Haible  <bruno@clisp.org>
49144
49145         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49146         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49147         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49148         APIs.
49149         * modules/acl-tests (configure.ac): Remove tests now contained in
49150         m4/acl.m4.
49151
49152 2008-06-02  Jim Meyering  <meyering@redhat.com>
49153
49154         announce-gen: use a better key-server host name
49155         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49156         it may be more consistently reliable.  Suggested by Werner Koch
49157         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49158
49159 2008-06-01  Bruno Haible  <bruno@clisp.org>
49160
49161         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49162         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49163
49164 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49165
49166         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49167
49168 2008-06-01  Bruno Haible  <bruno@clisp.org>
49169
49170         New ACL tests.
49171         * tests/test-file-has-acl.sh: New file.
49172         * tests/test-file-has-acl.c: New file.
49173         * tests/test-set-mode-acl.sh: New file.
49174         * tests/test-set-mode-acl.c: New file.
49175         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49176         * tests/test-copy-acl.c: New file.
49177         * modules/acl-tests: New file, based on modules/copy-file-tests.
49178         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49179         (Depends-on): Add acl-tests.
49180         (configure.ac): Remove checks.
49181         (Makefile.am): Don't create test-sameacls program here any more.
49182
49183 2008-06-01  Bruno Haible  <bruno@clisp.org>
49184
49185         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49186         * tests/test-sameacls.c: Include progname.h.
49187         (main): Invoke set_program_name. Portability fixes for MacOS X,
49188         Solaris, HP-UX.
49189
49190 2008-06-01  Bruno Haible  <bruno@clisp.org>
49191
49192         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49193         function.
49194         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49195
49196 2008-06-01  Bruno Haible  <bruno@clisp.org>
49197
49198         * modules/rpmatch (Depends-on): Add strdup.
49199
49200 2008-06-01  Bruno Haible  <bruno@clisp.org>
49201
49202         * lib/pipe.c: Include unistd-safer.h.
49203         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49204         * modules/pipe (Depends-on): Add unistd-safer.
49205
49206 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49207
49208         * modules/autobuild (configure.ac): Call AB_INIT.
49209
49210 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49211
49212         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49213         Suggested by Bruno Haible <bruno@clisp.org>.
49214
49215 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49216
49217         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49218         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49219         <bruno@clisp.org>.
49220
49221 2008-05-29  Eric Blake  <ebb9@byu.net>
49222
49223         Prefer new POSIX 200x interfaces over futimesat.
49224         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49225         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49226         when available.
49227         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49228
49229 2008-05-28  Bruno Haible  <bruno@clisp.org>
49230
49231         * modules/stpcpy (License): Change to LGPLv2+.
49232         Requested by David Lutterkort <dlutter@redhat.com>.
49233
49234 2008-05-27  Bruno Haible  <bruno@clisp.org>
49235
49236         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49237         current mingw.
49238         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49239
49240 2008-05-27  Bruno Haible  <bruno@clisp.org>
49241
49242         * modules/iconv_open (Link): New section, from module 'iconv'.
49243         * modules/striconv (Link): Likewise.
49244         * modules/striconveh (Link): Likewise.
49245         * modules/xstriconv (Link): Likewise.
49246         * modules/unicodeio (Link): Likewise.
49247         * modules/propername (Link): Likewise.
49248         Reported by Jim Meyering.
49249
49250 2008-05-26  Jim Meyering  <meyering@redhat.com>
49251
49252         sha256: do not artificially restrict buffer length to be < 2^32
49253         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49254         uint32_t to size_t.
49255         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49256         to match.
49257
49258         avoid unaligned access errors, e.g., on sparc
49259         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49260         direct access through a possibly-unaligned uint64* pointer.
49261         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49262         direct access through a possibly-unaligned uint32* pointer.
49263         Prompted by this patch from Tom "spot" Callaway:
49264         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49265
49266         sha512.c: fix typo in comment
49267         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49268
49269 2008-05-25  Bruno Haible  <bruno@clisp.org>
49270
49271         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49272         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49273         (Makefile.am): Update lib_SOURCES.
49274
49275 2008-05-25  Bruno Haible  <bruno@clisp.org>
49276
49277         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49278
49279 2008-05-25  Jim Meyering  <meyering@redhat.com>
49280
49281         useless-if-before-free: freed expr may have white-space differences
49282         * build-aux/useless-if-before-free: Recognize cases in which the
49283         freed expression differs from the tested one in embedded white
49284         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49285         $1 was used, so we can't make any regexp shy.  Improved tests now
49286         detect this.
49287
49288         useless-if-before-free: accept white space in the expression.
49289         * build-aux/useless-if-before-free: For now, any white space
49290         in the expression must be identical in the free argument.
49291
49292         useless-if-before-free: efficiency tweak
49293         * build-aux/useless-if-before-free: Make the expression-matching
49294         regexp "shy".
49295         Make the *outer* regexp shy, not the expr-matching one.
49296
49297         update code-in-comment to accept cast of free arg
49298         * build-aux/useless-if-before-free: Update regexp.
49299
49300 2008-05-25  Bruno Haible  <bruno@clisp.org>
49301
49302         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49303         * modules/copy-file-tests (Files, Makefile.am): Update.
49304         * tests/test-copy-file.c (func_test_copy): Update.
49305
49306 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49307
49308         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49309
49310 2008-05-23  Bruno Haible  <bruno@clisp.org>
49311
49312         Improve support for ACLs on OSF/1.
49313         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49314         Remove fallback for unknown flavors of ACLs.
49315
49316 2008-05-22  Bruno Haible  <bruno@clisp.org>
49317
49318         Add support for ACLs on OSF/1.
49319         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49320         replacements.
49321         (acl_free_text): New macro fallback.
49322         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49323         acl_free.
49324         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49325         acl_free_text function. Require AC_C_INLINE.
49326
49327 2008-05-22  Bruno Haible  <bruno@clisp.org>
49328
49329         Make copy_acl work on MacOS X 10.5.
49330         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49331         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49332         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49333         If MODE_INSIDE_ACL, don't assume that every system has the same text
49334         representation for ACLs as FreeBSD.
49335         * lib/copy-acl.c (copy_acl): Add support for platforms with
49336         !MODE_INSIDE_ACL.
49337         * lib/file-has-acl.c (file_has_acl): Likewise.
49338         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49339         FreeBSD, MacOS X, or IRIX, respectively.
49340
49341 2008-05-22  Bruno Haible  <bruno@clisp.org>
49342
49343         * lib/acl.h: Don't include <sys/acl.h>.
49344         (GETACLCNT): Move fallback to lib/acl-internal.h.
49345         * lib/acl-internal.h: Include <sys/acl.h> here.
49346         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49347
49348 2008-05-22  Bruno Haible  <bruno@clisp.org>
49349
49350         Split off copy_acl function to separate file.
49351         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49352         * lib/acl.c (copy_acl): Moved function to separate file.
49353         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49354         * modules/acl (Files): Add lib/copy-acl.c.
49355         (Makefiles.am): Augment lib_SOURCES.
49356
49357 2008-05-22  Bruno Haible  <bruno@clisp.org>
49358
49359         * modules/copy-file-tests: New file.
49360         * tests/test-copy-file.sh: New file.
49361         * tests/test-copy-file.c: New file.
49362         * tests/test-copy-file-sameacls.c: New file.
49363
49364 2008-05-22  Eric Blake  <ebb9@byu.net>
49365
49366         Avoid gcc warning.
49367         * tests/test-memcmp.c (main): Pass NULL indirectly.
49368
49369 2008-05-21  Bruno Haible  <bruno@clisp.org>
49370
49371         Add reference doc about ACLs.
49372         * doc/acl-resources.txt: New file.
49373         * doc/acl-cygwin.txt: New file.
49374
49375 2008-05-21  Bruno Haible  <bruno@clisp.org>
49376
49377         Avoid one more warning from gcc.
49378         * lib/vasnprintf.c (IF_LINT): Update comments.
49379         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49380
49381 2008-05-21  Jim Meyering  <meyering@redhat.com>
49382
49383         avoid a warning from gcc
49384         * lib/vasnprintf.c (IF_LINT): Define.
49385         (scale10_round_decimal_long_double):
49386         Use it to avoid a "may be used uninitialized" warning.
49387         (scale10_round_decimal_double): Likewise.
49388
49389 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49390
49391         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49392         declared.
49393
49394 2008-05-20  Bruno Haible  <bruno@clisp.org>
49395
49396         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49397         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49398
49399 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49400
49401         * modules/memcmp-tests: New file.
49402         * tests/test-memcmp.c: New file.
49403
49404 2008-05-19  Bruno Haible  <bruno@clisp.org>
49405
49406         * modules/propername (Notice, configure.ac): Put quoted "..." into
49407         --keyword option.
49408         * lib/propername.h: Update comments accordingly.
49409         Reported by Eric Blake.
49410
49411 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49412
49413         * modules/getpass-gnu (Depends-on): Add fseeko.
49414
49415 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49416
49417         * modules/base64-tests: New file.
49418
49419 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49420
49421         * lib/base64.c (base64_decode_ctx): If a decode context structure
49422         was passed in use it to ignore newlines.  If a context structure
49423         was _not_ passed in, continue to treat newlines as garbage (this
49424         is the historical behavior).  Formerly base64_decode.
49425         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49426         takes a decode context structure.
49427         * lib/base64.h (base64_decode): Macro for four-argument calls.
49428         (base64_decode_alloc): Likewise.
49429         * lib/base64.c (base64_decode_ctx): If a decode context structure
49430         was passed in use it to ignore newlines.  If a context structure
49431         was _not_ passed in, continue to treat newlines as garbage (this
49432         is the historical behavior).  Formerly base64_decode.
49433         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49434         takes a decode context structure.
49435         * lib/base64.h (base64_decode): Macro for four-argument calls.
49436         (base64_decode_alloc): Likewise.
49437
49438 2008-05-19  Jim Meyering  <meyering@redhat.com>
49439
49440         avoid a warning from gcc
49441         * lib/trim.c (IF_LINT): Define.
49442         (trim2): Use it to avoid a "may be used uninitialized" warning.
49443
49444         Fix doc typo.
49445         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49446
49447 2008-05-19  Bruno Haible  <bruno@clisp.org>
49448
49449         * doc/glibc-functions/getpass.texi: Document limits of other
49450         implementations.
49451
49452 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49453             Bruno Haible <bruno@clisp.org>
49454
49455         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49456
49457 2008-05-18  Bruno Haible  <bruno@clisp.org>
49458
49459         * modules/propername: New file, from GNU gettext.
49460         * lib/propername.h: New file, from GNU gettext.
49461         * lib/propername.c: New file, from GNU gettext.
49462         * MODULES.html.sh (Internationalization functions): Add propername.
49463
49464 2008-05-16  Jim Meyering  <meyering@redhat.com>
49465             Bruno Haible  <bruno@clisp.org>
49466
49467         Avoid some warnings from "gcc -Wshadow".
49468         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49469
49470 2008-05-15  Eric Blake  <ebb9@byu.net>
49471
49472         Extend previous patch to cygwin 1.7.0.
49473         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49474         fast implementation in cygwin >= 1.7.0.
49475         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49477
49478 2008-05-15  Bruno Haible  <bruno@clisp.org>
49479
49480         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49481         implementation in glibc >= 2.9.
49482         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49483         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49484
49485 2008-05-15  Bruno Haible  <bruno@clisp.org>
49486
49487         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49488         (Unicode string functions): Add unilbrk/*.
49489         Reported by Karl Berry.
49490
49491 2008-05-15  Eric Blake  <ebb9@byu.net>
49492
49493         Fix violation of <stdbool.h> replacement in regex.
49494         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49495         * lib/regexec.c (re_search_internal): Likewise.
49496         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49497
49498 2008-05-15  Jim Meyering  <meyering@redhat.com>
49499
49500         avoid distracting test output when git or cvs is not found
49501         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49502         * tests/test-vc-list-files-git.sh: Likewise.
49503
49504 2008-05-15  Eric Blake  <ebb9@byu.net>
49505
49506         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49507         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49508         glibc version.
49509         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49510         * doc/posix-functions/strstr.texi (strstr): Likewise.
49511         * lib/str-two-way.h (MAX): Sychronize with glibc.
49512
49513 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49514
49515         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49516         opr.ctx_type.
49517         (calc_first): Initialize constraint field.
49518         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49519         Fix grammar.
49520         (duplicate_node): Merge constraint field for all node types.
49521         (calc_eclosure_iter): Look at constraint field for all node types.
49522         * lib/regex_internal.c (create_cd_newstate): Don't look at
49523         opr.ctx_type.
49524
49525 2008-05-14  Bruno Haible  <bruno@clisp.org>
49526
49527         Help GCC to do better code generation.
49528         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49529         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49530         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49531         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49532         Declare with attribute 'malloc' if supported.
49533
49534 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49535
49536         use "echo STR|wc -c" rather than unportable "expr length STR"
49537         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49538         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49539
49540 2008-05-14  Jim Meyering  <meyering@redhat.com>
49541
49542         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49543         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49544         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49545         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49546         via Collin Lasse.
49547
49548 2008-05-14  Eric Blake  <ebb9@byu.net>
49549
49550         Avoid quadratic growth in gl_LIBSOURCES.
49551         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49552         Suggested by Bruno Haible.
49553
49554         Test xmemdup0.
49555         * modules/xmemdup0-tests: New file.
49556         * tests/test-xmemdup0.c: Likewise.
49557
49558 2008-05-13  Eric Blake  <ebb9@byu.net>
49559
49560         Split xmemdup0 into its own module.
49561         * modules/xmemdup0: New file.
49562         * lib/xmemdup0.h: Likewise.
49563         * lib/xmemdup0.c: Likewise.
49564         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49565         * lib/xalloc.h (xmemdup0): Remove.
49566         * lib/xmalloc.c (xmemdup0): Likewise.
49567
49568 2008-05-13  Eric Blake  <ebb9@byu.net>
49569             Bruno Haible  <bruno@clisp.org>
49570
49571         Reduce number of forks required during autoconf.
49572         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49573         and gl_LIBSOURCES_DIR.
49574         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49575         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49576         m4_syscmd per file.
49577         <m4_foreach_w>: Move...
49578         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49579
49580 2008-05-13  Eric Blake  <ebb9@byu.net>
49581
49582         * gnulib-tool: Fix various comment typos.
49583
49584 2008-05-12  Bruno Haible  <bruno@clisp.org>
49585
49586         Tailor the linebreaking algorithm.
49587         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49588
49589 2008-05-12  Bruno Haible  <bruno@clisp.org>
49590
49591         Update to Unicode 5.0.0.
49592         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49593         LBP_JV, LBP_JT. Redistribute values.
49594         (unilbrk_table): Change size.
49595         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49596         Unicode TR#14 rev. 22.
49597         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49598         LBP_JV, LBP_JT. Redistribute values.
49599         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49600         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49601         Update.
49602         * lib/unilbrk/lbrkprop1.h: Regenerated.
49603         * lib/unilbrk/lbrkprop2.h: Regenerated.
49604         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49605         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49606         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49607         Likewise.
49608         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49609         Likewise.
49610         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49611         result.
49612         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49613         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49614         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49615         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49616         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49617         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49618
49619 2008-05-11  Bruno Haible  <bruno@clisp.org>
49620
49621         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49622
49623 2008-05-11  Bruno Haible  <bruno@clisp.org>
49624
49625         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49626         * modules/unilbrk/gen-lbrk: New file.
49627
49628 2008-05-11  Bruno Haible  <bruno@clisp.org>
49629
49630         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49631         * m4/sha512.m4 (gl_SHA512): Likewise.
49632
49633 2008-05-11  Jim Meyering  <meyering@redhat.com>
49634
49635         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49636         * modules/crypto/sha256: New file.
49637         * modules/crypto/sha512: Likewise.
49638         * lib/sha256.c: Likewise.
49639         * lib/sha256.h: Likewise.
49640         * lib/sha512.c: Likewise.
49641         * lib/sha512.h: Likewise.
49642         * lib/u64.h: Likewise.
49643         * m4/sha256.m4: Likewise.
49644         * m4/sha512.m4: Likewise.
49645         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49646
49647 2008-05-10  Bruno Haible  <bruno@clisp.org>
49648
49649         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49650         (Input/Output <stdio.h>): Add xprintf.
49651         (Signal handling <signal.h>): Add strsignal.
49652         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49653         (Core language properties): Add func.
49654         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49655         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49656         strings.
49657         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49658         (Input/output): New section.
49659         (File system functions): Add openat-die, stat-macros.
49660         (Networking functions): Add sockets.
49661         (Unicode string functions): Add unictype/*.
49662         (Support for building libraries and executables): Add gperf.
49663         (Support for building documentation): Add agpl-3.0.
49664         (Misc): Add nocrash.
49665
49666 2008-05-10  Bruno Haible  <bruno@clisp.org>
49667
49668         * modules/unictype/gen-ctype: New file.
49669
49670 2008-05-10  Jim Meyering  <meyering@redhat.com>
49671
49672         Make chdir-safer.c more efficient on a system with no symlinks.
49673         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49674         also if ELOOP is zero.  Suggested by Bruno Haible.
49675
49676         Make chdir-safer.c slightly safer.
49677         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49678         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49679
49680         Avoid compile failure on systems without ELOOP (like mingw).
49681         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49682         Reported by Bruno Haible.
49683
49684 2008-05-10  Bruno Haible  <bruno@clisp.org>
49685
49686         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49687         (is_utf8_encoding): Use a case-insensitive comparison.
49688         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49689         streq.
49690
49691 2008-05-10  Bruno Haible  <bruno@clisp.org>
49692
49693         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49694         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49695         * lib/unilbrk/ulc-common.h (iconv_string_length,
49696         iconv_string_keeping_offsets): Remove declarations.
49697         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49698         Don't include <iconv.h>, streq.h, xsize.h.
49699         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49700         conversion.
49701         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49702         <iconv.h>, streq.h, xsize.h.
49703         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49704         conversion.
49705         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49706         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49707         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49708         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49709
49710 2008-05-10  Bruno Haible  <bruno@clisp.org>
49711
49712         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49713         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49714
49715         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49716         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49717
49718         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49719         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49720
49721         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49722         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49723
49724         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49725         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49726
49727         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49728         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49729
49730         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49731         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49732
49733         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49734         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49735
49736 2008-05-10  Bruno Haible  <bruno@clisp.org>
49737
49738         Split up 'linebreak' module.
49739         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49740         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49741         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49742         modifications.
49743         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49744         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49745         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49746         lib/linebreak.c.
49747         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49748         lib/linebreak.c.
49749         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49750         lib/linebreak.c.
49751         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49752         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49753         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49754         lib/linebreak.c.
49755         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49756         lib/linebreak.c.
49757         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49758         lib/linebreak.c.
49759         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49760         lib/linebreak.c.
49761         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49762         lib/linebreak.c.
49763         * modules/unilbrk/base: New file.
49764         * modules/unilbrk/tables: New file.
49765         * modules/unilbrk/u8-possible-linebreaks: New file.
49766         * modules/unilbrk/u16-possible-linebreaks: New file.
49767         * modules/unilbrk/u32-possible-linebreaks: New file.
49768         * modules/unilbrk/ulc-common: New file.
49769         * modules/unilbrk/ulc-possible-linebreaks: New file.
49770         * modules/unilbrk/u8-width-linebreaks: New file.
49771         * modules/unilbrk/u16-width-linebreaks: New file.
49772         * modules/unilbrk/u32-width-linebreaks: New file.
49773         * modules/unilbrk/ulc-width-linebreaks: New file.
49774         * lib/linebreak.h: Remove file.
49775         * lib/linebreak.c: Remove file.
49776         * m4/linebreak.m4: Remove file.
49777         * modules/linebreak: Remove file.
49778         * NEWS: Mention the changes.
49779
49780 2008-05-09  Eric Blake  <ebb9@byu.net>
49781
49782         Add xmemdup0.
49783         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49784         implementation.
49785         * lib/xmalloc.c (xmemdup0): New C implementation.
49786
49787 2008-05-08  Bruno Haible  <bruno@clisp.org>
49788
49789         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49790
49791 2008-05-07  Eric Blake  <ebb9@byu.net>
49792
49793         Support cross-compilation of <wctype.h>.
49794         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49795         AC_CACHE_CHECK.
49796
49797 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49798
49799         * build-aux/vc-list-files: Add support for bzr.
49800
49801 2008-05-03  Jim Meyering  <meyering@redhat.com>
49802
49803         avoid failed assertion with tight malloc
49804         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49805
49806 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49807
49808         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49809         are needed from arpa/inet.h.
49810         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49811         Reported by Bruno Haible.
49812
49813 2008-05-02  Jim Meyering  <meyering@redhat.com>
49814
49815         avoid compilation error on FreeBSD 6
49816         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49817
49818 2008-05-01  Jim Meyering  <meyering@redhat.com>
49819
49820         useless-if-before-free: correct --help's exit status description
49821         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49822         for one or more matches, etc.  Reported by Bruno Haible.
49823
49824         vc-list-files: make the stand-alone gnulib test work
49825         * modules/vc-list-files-tests (configure.ac):
49826         Define and AC_SUBST abs_aux_dir.
49827         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49828         $(abs_top_srcdir) to each script and having each of them
49829         duplicate the work of setting PATH, set PATH here, using
49830         the new variable, abs_aux_dir instead.
49831         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49832         * tests/test-vc-list-files-git.sh: Likewise.
49833         Reported by Bruno Haible.
49834
49835 2008-05-01  Bruno Haible  <bruno@clisp.org>
49836
49837         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49838         reallocation. Rename 'done' to 'found_delimiter'.
49839
49840 2008-05-01  Jim Meyering  <meyering@redhat.com>
49841
49842         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49843         * build-aux/vc-list-files: Use `...`, not $(...).
49844
49845 2008-04-30  Jim Meyering  <meyering@redhat.com>
49846
49847         add tests for vc-list-files
49848         * modules/vc-list-files-tests: New module.
49849         * tests/test-vc-list-files-cvs.sh: New file.
49850         * tests/test-vc-list-files-git.sh: New file.
49851
49852         avoid a warning from gcc
49853         * lib/getndelim2.c (IF_LINT): Define.
49854         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49855
49856         vc-list-files: work properly with build-aux/cvsu, too
49857         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49858         to all cvs-based clauses.
49859
49860         vc-list-files: work properly in the CVS+awk case, too
49861         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49862
49863         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49864         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49865         take more than one file argument, so .  Add quotes, just in case $dir
49866         ever contains a shell meta-character.  Prompted by Soren Hansen in
49867         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49868
49869 2008-04-29  Eric Blake  <ebb9@byu.net>
49870
49871         Optimize getndelim2 to use block operations when possible.
49872         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49873         freadseek, and memchr2.
49874         * lib/getndelim2.c (getndelim2): Use them for block reads.
49875
49876 2008-04-29  Bruno Haible  <bruno@clisp.org>
49877
49878         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49879         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49880         * modules/inet_ntop (Depends-on): Add extensions.
49881         * modules/inet_pton (Depends-on): Likewise.
49882         Reported by Simon Josefsson.
49883
49884 2008-04-29  Jim Meyering  <meyering@redhat.com>
49885
49886         When the is more than one match in a block, match all of them.
49887         * build-aux/useless-if-before-free: Iterate through each block
49888         until there are no more matches.
49889
49890         Fix broken useless-if-before-free script.
49891         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49892         the expression to match cast of argument to free-like function.
49893
49894 2008-04-29  Eric Blake  <ebb9@byu.net>
49895
49896         Use new header.
49897         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49898
49899 2008-04-29  Jim Meyering  <meyering@redhat.com>
49900
49901         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49902         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49903         by gnulib to exist and to declare e.g., inet_ntop.
49904         Don't include "inet_ntop.h", now removed.
49905
49906         * m4/arpa_inet_h.m4: Remove trailing blanks.
49907
49908 2008-04-29  Eric Blake  <ebb9@byu.net>
49909
49910         Silence valgrind on safe reads beyond potential array bounds.
49911         * lib/rawmemchr.valgrind: New file.
49912         * lib/strchrnul.valgrind: Likewise.
49913         * modules/rawmemchr (Files): Distribute new file.
49914         * modules/strchrnul (Files): Likewise.
49915         Suggested by Bruno Haible.
49916
49917 2008-04-29  Bruno Haible  <bruno@clisp.org>
49918
49919         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49920         (inet_ntop, inet_pton): Change portability warning's wording.
49921         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49922         Invoke gl_CHECK_NEXT_HEADERS.
49923         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49924         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49925         set ARPA_INET_H.
49926         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49927         * modules/arpa_inet (Description): No longer only for systems that
49928         lack it.
49929         (Depends-on): Add include_next.
49930         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49931         HAVE_ARPA_INET_H.
49932
49933 2008-04-29  Jim Meyering  <meyering@redhat.com>
49934
49935         * modules/mkdir (License): Re-license as LGPLv2+.
49936
49937 2008-04-29  Bruno Haible  <bruno@clisp.org>
49938
49939         * modules/rawmemchr (Maintainer): Set to Eric.
49940         * modules/strchrnul (Maintainer): Likewise.
49941
49942 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49943
49944         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49945         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49946
49947         * modules/arpa_inet (arpa/inet.h): Use them.
49948
49949 2008-04-28  Eric Blake  <ebb9@byu.net>
49950
49951         Test getndelim2.
49952         * modules/getndelim2-tests: New file.
49953         * tests/test-getndelim2.c: Likewise.
49954         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49955         stream.
49956         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49957
49958         * MODULES.html.sh: Document new module.
49959
49960 2008-04-20  Bruno Haible  <bruno@clisp.org>
49961
49962         * lib/c-stack.c (die): Use raise.
49963         * modules/c-stack (Depends-on): Add raise.
49964
49965 2008-04-28  Bruno Haible  <bruno@clisp.org>
49966
49967         Expect rpmatch to be declared.
49968         * lib/yesno.c (rpmatch): Remove declaration.
49969
49970         Declare rpmatch.
49971         * lib/stdlib.in.h (rpmatch): New declaration.
49972         * lib/rpmatch.c: Include <stdlib.h> first.
49973         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49974         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49976         HAVE_RPMATCH.
49977         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49978         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49979         (Include): Set to <stdlib.h>.
49980         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49981         HAVE_RPMATCH.
49982         * NEWS: Document the change.
49983
49984 2008-04-28  Bruno Haible  <bruno@clisp.org>
49985
49986         Change rpmatch to use nl_langinfo when appropriate.
49987         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49988         (N_): New macro.
49989         (localized_pattern): New function/macro.
49990         (try): Remove match, nomatch arguments. Copy the pattern into safe
49991         memory before caching it.
49992         (rpmatch): Use localized_pattern. Add translator comments.
49993         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49994         Suggested by Eric Blake.
49995         * modules/rpmatch (Depends-on): Add stdbool.
49996
49997 2008-04-28  Eric Blake  <ebb9@byu.net>
49998
49999         Add rawmemchr module, matching glibc.
50000         * modules/string (Makefile.am): New indicator.
50001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50002         * lib/string.in.h (rawmemchr): Declare when appropriate.
50003         * modules/rawmemchr: New file.
50004         * m4/rawmemchr.m4: Likewise.
50005         * lib/rawmemchr.c: Likewise.
50006         * modules/rawmemchr-tests: Likewise.
50007         * tests/test-rawmemchr.c: Likewise.
50008         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50009         module.
50010         * modules/strchrnul (Depends-on): Add rawmemchr.
50011         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50012
50013         Whitespace cleanup.
50014         * tests/test-strchrnul.c: Reindent.
50015         * lib/strchrnul.c: Likewise.
50016
50017         Optimize and test strchrnul.
50018         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50019         * modules/strchrnul-tests: New file.
50020         * tests/test-strchrnul.c: Likewise.
50021
50022         Remove intprops dependency.
50023         * modules/memchr (Depends-on): Remove intprops.
50024         * modules/memrchr (Depends-on): Likewise.
50025         * modules/memchr2 (Depends-on): Likewise.
50026         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50027         * lib/memrchr.c (__memrchr): Likewise.
50028         * lib/memrchr2.c (memchr2): Likewise.
50029         Reported by Simon Josefsson.
50030
50031 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50032
50033         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50034         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50035
50036 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50037
50038         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50039
50040         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50041
50042         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50043
50044         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50045         declarations.
50046         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50047
50048         * m4/inet_pton.m4: Don't check for header files.
50049
50050         * m4/inet_ntop.m4: Don't check for header files.
50051
50052 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50053
50054         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50055         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50056         trigger for cygwin).
50057         Reported by Bruno Haible  <bruno@clisp.org>.
50058
50059 2008-04-28  Bruno Haible  <bruno@clisp.org>
50060
50061         * doc/posix-functions/strdup.texi: Mention mingw problem.
50062
50063 2008-04-27  Bruno Haible  <bruno@clisp.org>
50064
50065         * modules/stat-time-tests (Depends-on): Add sleep.
50066         * tests/test-stat-time.c (force_unlink): New function.
50067         (cleanup): Use it.
50068         (test_mtime): Remove the ctime related tests.
50069         (test_ctime): New function, containing the ctime related tests.
50070         (main): Call test_ctime, except on native Windows platforms.
50071
50072 2008-04-27  Bruno Haible  <bruno@clisp.org>
50073
50074         * lib/rpmatch.c (rpmatch): Add some comments.
50075         Reported by James Youngman <jay@gnu.org>.
50076
50077 2008-04-27  Bruno Haible  <bruno@clisp.org>
50078
50079         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50080         quiet NaNs.
50081
50082 2008-04-27  Bruno Haible  <bruno@clisp.org>
50083
50084         Make test-yesno.sh work on mingw.
50085         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50086         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50087         (main): Set stdin to binary mode.
50088         * modules/yesno-tests (Depends-on): Add binary-io.
50089
50090 2008-04-27  Bruno Haible  <bruno@clisp.org>
50091
50092         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50093         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50094         argument that lie outside the IEEE 854 domain.
50095         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50096         (gl_ISFINITE): Use it.
50097         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50098
50099 2008-04-27  Bruno Haible  <bruno@clisp.org>
50100
50101         Allow local renaming in config.h.
50102         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50103
50104 2008-04-27  Bruno Haible  <bruno@clisp.org>
50105
50106         * lib/memchr.c (__memchr): Change type of 'i'.
50107         * lib/memchr2.c (memchr2): Likewise.
50108
50109 2008-04-26  Eric Blake  <ebb9@byu.net>
50110         and Bruno Haible  <bruno@clisp.org>
50111
50112         Optimize and test memrchr.
50113         * modules/memrchr (Depends-on): Add intprops.
50114         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50115         * modules/memrchr-tests: New file.
50116         * tests/test-memrchr.c: New file.
50117
50118 2008-04-26  Bruno Haible  <bruno@clisp.org>
50119
50120         Add tentative support for DragonFly BSD.
50121         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50122         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50123         fp.
50124         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50125         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50126         * lib/fpurge.c (fpurge): Likewise.
50127         * lib/freadable.c (freaadable): Likewise.
50128         * lib/freadahead.c (freadahead): Likewise.
50129         * lib/freading.c (freading): Likewise.
50130         * lib/freadptr.c (freadptr): Likewise.
50131         * lib/freadseek.c (freadptrinc): Likewise.
50132         * lib/fseeko.c (fseeko): Likewise.
50133         * lib/fseterr.c (fseterr): Likewise.
50134         * lib/fwritable.c (fwritable): Likewise.
50135         * lib/fwriting.c (fwriting): Likewise.
50136
50137 2008-04-26  Bruno Haible  <bruno@clisp.org>
50138
50139         * lib/stdio-impl.h: New file.
50140         * lib/fbufmode.c: Include stdio-impl.h.
50141         (fbufmode): Use fp_, remove redundant #defines.
50142         * lib/fflush.c: Include stdio-impl.h.
50143         (clear_ungetc_buffer): Remove redundant #defines.
50144         * lib/fpurge.c: Include stdio-impl.h.
50145         (fpurge): Remove redundant #defines.
50146         * lib/freadable.c: Include stdio-impl.h.
50147         (freadable): Remove redundant #defines.
50148         * lib/freadahead.c: Include stdio-impl.h.
50149         (freadahead): Remove redundant #defines.
50150         * lib/freading.c: Include stdio-impl.h.
50151         (freading): Remove redundant #defines.
50152         * lib/freadptr.c: Include stdio-impl.h.
50153         (freadptr): Remove redundant #defines.
50154         * lib/freadseek.c: Include stdio-impl.h.
50155         (freadptrinc): Remove redundant #defines.
50156         * lib/fseeko.c: Include stdio-impl.h.
50157         (rpl_fseeko): Remove redundant #defines.
50158         * lib/fseterr.c: Include stdio-impl.h.
50159         (fseterr): Remove redundant #defines.
50160         * lib/fwritable.c: Include stdio-impl.h.
50161         (fwritable: Remove redundant #defines.
50162         * lib/fwriting.c: Include stdio-impl.h.
50163         (fwriting): Remove redundant #defines.
50164         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50165         * modules/fflush (Files): Likewise.
50166         * modules/fpurge (Files): Likewise.
50167         * modules/freadable (Files): Likewise.
50168         * modules/freadahead (Files): Likewise.
50169         * modules/freading (Files): Likewise.
50170         * modules/freadptr (Files): Likewise.
50171         * modules/freadseek (Files): Likewise.
50172         * modules/fseeko (Files): Likewise.
50173         * modules/fseterr (Files): Likewise.
50174         * modules/fwritable (Files): Likewise.
50175         * modules/fwriting (Files): Likewise.
50176
50177 2008-04-26  Bruno Haible  <bruno@clisp.org>
50178
50179         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50180         restore_seek_optimization, update_fpos_cache): New functions, extracted
50181         from rpl_fflush.
50182         (rpl_fflush): Use them.
50183         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50184         (gl_REPLACE_FFLUSH): Use it.
50185
50186 2008-04-26  Bruno Haible  <bruno@clisp.org>
50187
50188         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50189         on Solaris.
50190         * tests/test-xstrtoimax.sh: Likewise.
50191         * tests/test-xstrtoumax.sh: Likewise.
50192         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50193
50194 2008-04-26  Bruno Haible  <bruno@clisp.org>
50195
50196         * modules/memchr-tests: New file.
50197         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50198
50199 2008-04-26  Eric Blake  <ebb9@byu.net>
50200             Bruno Haible  <bruno@clisp.org>
50201
50202         * lib/memchr.c: Include intprops.h.
50203         (__memchr): Optimize parallel detection of matching bytes. Rename local
50204         variables. Add explanatory comments.
50205
50206 2008-04-26  Bruno Haible  <bruno@clisp.org>
50207
50208         Fix module 'memchr', broken since 2000-10-28.
50209         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50210
50211 2008-04-26  Bruno Haible  <bruno@clisp.org>
50212
50213         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50214         comments.
50215
50216 2008-04-25  Eric Blake  <ebb9@byu.net>
50217
50218         Use native fstatat on cygwin 1.7.0.
50219         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50220         first.
50221
50222 2008-04-23  Eric Blake  <ebb9@byu.net>
50223
50224         Improve memchr2 performance.
50225         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50226         NUL bytes.
50227         * modules/memchr2 (Depends-on): Use intprops.h.
50228
50229 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50230
50231         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50232         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50233         <blp@cs.stanford.edu>.
50234
50235 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50236
50237         * lib/arpa_inet.in.h: New file.
50238
50239         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50240         (Makefile.am): Sed in substitute header file.
50241
50242         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50243         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50244
50245         * modules/inet_ntop (configure.ac): Use
50246         gl_ARPA_INET_MODULE_INDICATOR.
50247
50248         * modules/inet_pton (configure.ac): Use
50249         gl_ARPA_INET_MODULE_INDICATOR.
50250
50251 2008-04-22  Jim Meyering  <meyering@redhat.com>
50252
50253         * modules/verify (License): Re-license as LGPLv2+.
50254
50255 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50256
50257         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50258         parameter to void* as per POSIX standard (MinGW uses char*).
50259
50260 2008-04-21  Bruno Haible  <bruno@clisp.org>
50261
50262         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50263         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50264         Define to replacements if REPLACE_ISWCNTRL is 1.
50265         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50266         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50267         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50268         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50269         what it fixes.
50270         * doc/posix-functions/iswalpha.texi: Likewise.
50271         * doc/posix-functions/iswblank.texi: Likewise.
50272         * doc/posix-functions/iswcntrl.texi: Likewise.
50273         * doc/posix-functions/iswdigit.texi: Likewise.
50274         * doc/posix-functions/iswgraph.texi: Likewise.
50275         * doc/posix-functions/iswlower.texi: Likewise.
50276         * doc/posix-functions/iswprint.texi: Likewise.
50277         * doc/posix-functions/iswpunct.texi: Likewise.
50278         * doc/posix-functions/iswspace.texi: Likewise.
50279         * doc/posix-functions/iswupper.texi: Likewise.
50280         * doc/posix-functions/iswxdigit.texi: Likewise.
50281         Reported by Alain Guibert.
50282
50283 2008-04-21  Bruno Haible  <bruno@clisp.org>
50284
50285         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50286         Patch by Alain Guibert.
50287
50288 2008-04-21  Bruno Haible  <bruno@clisp.org>
50289
50290         Fix test failures on mingw.
50291         * tests/test-xstrtol.c (print_no_progname): New function.
50292         (main): Install it in error_print_progname hook.
50293         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50294         * tests/test-xstrtoimax.sh: Likewise.
50295         * tests/test-xstrtoumax.sh: Likewise.
50296
50297 2008-04-21  Bruno Haible  <bruno@clisp.org>
50298
50299         Fix test failure on mingw.
50300         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50301
50302 2008-04-21  Bruno Haible  <bruno@clisp.org>
50303
50304         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50305         Actually assign a value.
50306
50307 2008-04-20  Bruno Haible  <bruno@clisp.org>
50308
50309         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50310         take 2.
50311         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50312         'canonicalize-lgpl' module is also used.
50313         * lib/canonicalize-lgpl.c: Undo last change.
50314         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50315
50316 2008-04-20  Bruno Haible  <bruno@clisp.org>
50317
50318         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50319         config.h. Provide _mkdir based fallback for mingw.
50320         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50321         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50322         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50323         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50324         rather than defining mkdir in config.h.
50325         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50326         (gl_SYS_STAT_H_DEFAULTS): New macro.
50327         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50328         HAVE_IO_H any more.
50329         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50330         HAVE_DECL_MKDIR and HAVE_IO_H.
50331
50332 2008-04-20  Bruno Haible  <bruno@clisp.org>
50333
50334         * lib/isapipe.c: Port to native Windows platforms.
50335
50336 2008-04-20  Bruno Haible  <bruno@clisp.org>
50337
50338         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50339
50340 2008-04-21  Eric Blake  <ebb9@byu.net>
50341
50342         Work around preprocessors that don't handle UINTMAX_MAX.
50343         * lib/memchr2.c (memchr2): Avoid embedded #if.
50344         Reported by Alain Guibert, fix suggested by Bruno Haible.
50345
50346 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50347
50348         * doc/posix-functions/strftime.texi (strftime): Explain better
50349         Windows incompatibility.  Suggested by Micah Cowan
50350         <micah@cowan.name>.
50351
50352 2008-04-20  Bruno Haible  <bruno@clisp.org>
50353
50354         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50355         unistr/u8-mblen.
50356
50357 2008-04-20  Bruno Haible  <bruno@clisp.org>
50358
50359         Fix test failure on platforms with non-GNU iconv.
50360         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50361         (U_TO_U8): Use it, rather than u16_to_u8.
50362         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50363         units at the end of the input string.
50364         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50365
50366 2008-04-20  Bruno Haible  <bruno@clisp.org>
50367
50368         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50369         when the resulting length is 0.
50370         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50371
50372 2008-04-20  Bruno Haible  <bruno@clisp.org>
50373
50374         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50375         works.
50376         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50377
50378 2008-04-20  Bruno Haible  <bruno@clisp.org>
50379
50380         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50381         * modules/tsearch-tests (configure.ac): Test for initstate function.
50382
50383 2008-04-20  Bruno Haible  <bruno@clisp.org>
50384
50385         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50386         for nlink_t if missing.
50387         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50388
50389 2008-04-19  Bruno Haible  <bruno@clisp.org>
50390
50391         Work around snprintf bug on Linux libc5.
50392         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50393         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50394         gl_SNPRINTF_SIZE1.
50395         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50396         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50397         that test failed.
50398         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50399         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50400         * modules/snprintf (Files): Add m4/printf.m4.
50401         * modules/vsnprintf (Files): Likewise.
50402         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50403         * doc/posix-functions/vsnprintf.texi: Likewise.
50404
50405 2008-04-19  Bruno Haible  <bruno@clisp.org>
50406
50407         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50408         from 0.0058 to less than 10^-7.
50409
50410 2008-04-19  Bruno Haible  <bruno@clisp.org>
50411
50412         Fix rounding when a precision is given.
50413         * lib/vasnprintf.c (is_borderline): New function.
50414         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50415         9...9x.
50416         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50417         %e, %g.
50418         * tests/test-vasprintf-posix.c (test_function): Likewise.
50419         * tests/test-snprintf-posix.h (test_function): Likewise.
50420         * tests/test-sprintf-posix.h (test_function): Likewise.
50421         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50422         * tests/test-printf-posix.h (test_function): Likewise.
50423         * tests/test-printf-posix.output: Update.
50424         Reported by John Darrington <john@darrington.wattle.id.au> via
50425         Ben Pfaff <blp@cs.stanford.edu>.
50426
50427 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50428
50429         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50430         Suggested by Bruno Haible <bruno@clisp.org>.
50431
50432 2008-04-17  Bruno Haible  <bruno@clisp.org>
50433
50434         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50435         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50436         implementation.
50437         Patch by Bruce Merry <bmerry@gmail.com>.
50438
50439 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50440
50441         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50442         doesn't work under Windows.
50443
50444 2008-04-16  Bruno Haible  <bruno@clisp.org>
50445
50446         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50447         New macros.
50448         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50449         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50450         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50451         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50452         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50453         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50454         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50455         macros.
50456         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50457         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50458         Northern Sotho, Uighur.
50459
50460 2008-04-16  Bruno Haible  <bruno@clisp.org>
50461
50462         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50463         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50464         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50465         Reported by Daniel Bergström <daniel@octocode.com>.
50466
50467 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50468             Bruno Haible  <bruno@clisp.org>
50469
50470         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50471         function.
50472         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50473         New functions, mostly extracted from gl_locale_name_default.
50474         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50475
50476 2008-04-16  Eric Blake  <ebb9@byu.net>
50477
50478         Adjust strtod detection to catch glibc 2.7 bug.
50479         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50480         Reported by John Gatewood Ham.
50481
50482 2008-04-16  Bruno Haible  <bruno@clisp.org>
50483
50484         Add tentative support for Linux libc5.
50485         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50486         * lib/fpurge.c (fpurge): Likewise.
50487         * lib/freadable.c (freadable): Likewise.
50488         * lib/freadahead.c (freadahead): Likewise.
50489         * lib/freading.c (freading): Likewise.
50490         * lib/freadptr.c (freadptr): Likewise.
50491         * lib/freadseek.c (freadptrinc): Likewise.
50492         * lib/fseeko.c (rpl_fseeko): Likewise.
50493         * lib/fseterr.c (fseterr): Likewise.
50494         * lib/fwritable.c (fwritable): Likewise.
50495         * lib/fwriting.c (fwriting): Likewise.
50496         Reported by Alain Guibert <alguibert+bts@free.fr>.
50497
50498 2008-04-15  Bruno Haible  <bruno@clisp.org>
50499
50500         * modules/mathl (configure.ac): Define module indicator.
50501
50502 2008-04-15  Bruno Haible  <bruno@clisp.org>
50503
50504         * lib/logl.c (logl): Remove unused variables.
50505
50506 2008-04-15  Bruno Haible  <bruno@clisp.org>
50507
50508         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50509         fails.
50510
50511 2008-04-15  Bruno Haible  <bruno@clisp.org>
50512
50513         * lib/trim.c (trim2): Fix argument of isspace() macro.
50514
50515 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50516
50517         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50518         to 0.
50519         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50520
50521 2008-04-14  Bruno Haible  <bruno@clisp.org>
50522
50523         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50524         AC_LANG_PROGRAM argument.
50525         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50526         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50527         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50528         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50529         * m4/math_h.m4 (gl_MATH_H): Likewise.
50530         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50531         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50532         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50533         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50534         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50535         * m4/regex.m4 (gl_REGEX): Likewise.
50536         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50537         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50538         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50539         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50540         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50541         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50542         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50543         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50544
50545 2008-04-14  Jim Meyering  <meyering@redhat.com>
50546
50547         test-strtod: fix typos: s/abs/fabs/
50548         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50549
50550 2008-04-13  Bruno Haible  <bruno@clisp.org>
50551
50552         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50553         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50554         module is also used and while not building the reloc-wrapper.
50555
50556 2008-04-13  Bruno Haible  <bruno@clisp.org>
50557
50558         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50559
50560 2008-04-13  Bruno Haible  <bruno@clisp.org>
50561
50562         Fix AIX compilation failure introduced on 2008-04-02.
50563         * tests/test-frexp.c (exp): Undefine before redefining.
50564         * tests/test-frexpl.c (exp): Likewise.
50565
50566 2008-04-13  Bruno Haible  <bruno@clisp.org>
50567
50568         Work around a HP-UX stdio bug.
50569         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50570         * tests/test-ftello.c (main): Likewise.
50571         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50572         * doc/posix-functions/ftello.texi: Likewise.
50573
50574 2008-04-13  Bruno Haible  <bruno@clisp.org>
50575
50576         Make test-signbit pass on HP-UX/hppa.
50577         * tests/test-signbit.c (minus_zerol): New variable.
50578         (test_signbitl): Use it.
50579
50580 2008-04-13  Bruno Haible  <bruno@clisp.org>
50581
50582         Make truncl work on OSF/1 4.0.
50583         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50584         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50585         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50587         HAVE_DECL_TRUNCL.
50588         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50589         HAVE_DECL_TRUNCL.
50590         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50591
50592 2008-04-13  Bruno Haible  <bruno@clisp.org>
50593
50594         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50595
50596 2008-04-13  Bruno Haible  <bruno@clisp.org>
50597
50598         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50599         expression, so as to avoid HP-UX 11 cc compiler bug.
50600
50601 2008-04-13  Bruno Haible  <bruno@clisp.org>
50602
50603         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50604
50605 2008-04-13  Bruno Haible  <bruno@clisp.org>
50606
50607         * lib/git-merge-changelog.c: Remove empty declaration outside of
50608         functions.
50609
50610 2008-04-13  Bruno Haible  <bruno@clisp.org>
50611
50612         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50613
50614 2008-04-13  Bruno Haible  <bruno@clisp.org>
50615
50616         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50617         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50618         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50619         also if it exists but lacks definitions of the SHUT_* macros.
50620         * modules/sys_socket (Description): Update.
50621         Reported by Elbert Pol <e.pol@chello.nl>.
50622
50623 2008-04-13  Bruno Haible  <bruno@clisp.org>
50624
50625         * lib/localcharset.c (OS2): Don't redefine if already defined.
50626         Reported by Elbert Pol <e.pol@chello.nl>.
50627
50628 2008-04-13  Bruno Haible  <bruno@clisp.org>
50629
50630         * lib/binary-io.h [__EMX__]: Include <io.h>.
50631         Reported by Elbert Pol <e.pol@chello.nl>.
50632
50633 2008-04-12  Bruno Haible  <bruno@clisp.org>
50634
50635         * lib/fpucw.h: Enable the definitions also for x86_64.
50636         Needed for NetBSD/x86_64.
50637         Reported by Thomas Klausner <tk@giga.or.at>.
50638
50639 2008-04-12  Bruno Haible  <bruno@clisp.org>
50640
50641         * tests/test-strtod.c: Include isnand.h.
50642         (main): Use isnand instead of isnan.
50643         Reported by Jim Meyering.
50644
50645 2008-04-12  Bruno Haible  <bruno@clisp.org>
50646
50647         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50648         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50649
50650 2008-04-12  Jim Meyering  <meyering@redhat.com>
50651
50652         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50653
50654 2008-04-12  Bruno Haible  <bruno@clisp.org>
50655
50656         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50657         Reported by Elbert Pol <e.pol@chello.nl>.
50658
50659 2008-04-12  Eric Blake  <ebb9@byu.net>
50660
50661         Work around Solaris 10 math.h bug.
50662         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50663         (gl_MATH_H_DEFAULTS): Set up default.
50664         * modules/math (Makefile.am): Replace new indicators.
50665         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50666         * tests/test-math.c (main): Test this.
50667         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50668         * doc/posix-headers/math.texi (math.h): Mention bug.
50669         Reported by Nelson H. F. Beebe and Jim Meyering.
50670
50671 2008-04-11  Bruno Haible  <bruno@clisp.org>
50672
50673         Adapt to future versions of Apple GCC.
50674         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50675         Reported by Peter O'Gorman <peter@pogma.com>.
50676
50677 2008-04-11  Bruno Haible  <bruno@clisp.org>
50678
50679         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50680
50681 2008-04-11  Bruno Haible  <bruno@clisp.org>
50682
50683         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50684
50685         * modules/getaddrinfo-tests (Makefile.am): Define
50686         test_getaddrinfo_LDADD.
50687
50688 2008-04-11  Bruno Haible  <bruno@clisp.org>
50689
50690         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50691         (init): Fix syntax error.
50692         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50693         is declared.
50694
50695 2008-04-11  Bruno Haible  <bruno@clisp.org>
50696
50697         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50698         * modules/glob (Depends-on): Add stdbool.
50699
50700 2008-04-11  Bruno Haible  <bruno@clisp.org>
50701
50702         * lib/trim.c: Include <string.h>.
50703
50704 2008-04-11  Eric Blake  <ebb9@byu.net>
50705
50706         Avoid compile failure on OS/2.
50707         * lib/regex_internal.h (internal_function): Disable optimization
50708         on OS/2 (__EMX__), where it caused compiler error.
50709         Reported by Elbert Pol.
50710
50711 2008-04-11  Bruno Haible  <bruno@clisp.org>
50712
50713         Flush the standard error stream before aborting. Needed on mingw.
50714         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50715         * tests/test-array_list.c (ASSERT): Likewise.
50716         * tests/test-array_oset.c (ASSERT): Likewise.
50717         * tests/test-avltree_list.c (ASSERT): Likewise.
50718         * tests/test-avltree_oset.c (ASSERT): Likewise.
50719         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50720         * tests/test-binary-io.c (ASSERT): Likewise.
50721         * tests/test-byteswap.c (ASSERT): Likewise.
50722         * tests/test-c-ctype.c (ASSERT): Likewise.
50723         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50724         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50725         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50726         * tests/test-c-strstr.c (ASSERT): Likewise.
50727         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50728         * tests/test-canonicalize.c (ASSERT): Likewise.
50729         * tests/test-carray_list.c (ASSERT): Likewise.
50730         * tests/test-ceilf1.c (ASSERT): Likewise.
50731         * tests/test-ceilf2.c (ASSERT): Likewise.
50732         * tests/test-ceill.c (ASSERT): Likewise.
50733         * tests/test-count-one-bits.c (ASSERT): Likewise.
50734         * tests/test-fbufmode.c (ASSERT): Likewise.
50735         * tests/test-fflush2.c (ASSERT): Likewise.
50736         * tests/test-floorf1.c (ASSERT): Likewise.
50737         * tests/test-floorf2.c (ASSERT): Likewise.
50738         * tests/test-floorl.c (ASSERT): Likewise.
50739         * tests/test-fopen.c (ASSERT): Likewise.
50740         * tests/test-fpending.c (ASSERT): Likewise.
50741         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50742         * tests/test-fpurge.c (ASSERT): Likewise.
50743         * tests/test-freadable.c (ASSERT): Likewise.
50744         * tests/test-freadahead.c (ASSERT): Likewise.
50745         * tests/test-freading.c (ASSERT): Likewise.
50746         * tests/test-freadptr.c (ASSERT): Likewise.
50747         * tests/test-freadptr2.c (ASSERT): Likewise.
50748         * tests/test-freadseek.c (ASSERT): Likewise.
50749         * tests/test-freopen.c (ASSERT): Likewise.
50750         * tests/test-frexp.c (ASSERT): Likewise.
50751         * tests/test-frexpl.c (ASSERT): Likewise.
50752         * tests/test-fseek.c (ASSERT): Likewise.
50753         * tests/test-fseeko.c (ASSERT): Likewise.
50754         * tests/test-fstrcmp.c (ASSERT): Likewise.
50755         * tests/test-ftell.c (ASSERT): Likewise.
50756         * tests/test-ftello.c (ASSERT): Likewise.
50757         * tests/test-func.c (ASSERT): Likewise.
50758         * tests/test-fwritable.c (ASSERT): Likewise.
50759         * tests/test-fwriting.c (ASSERT): Likewise.
50760         * tests/test-getdelim.c (ASSERT): Likewise.
50761         * tests/test-getline.c (ASSERT): Likewise.
50762         * tests/test-i-ring.c (ASSERT): Likewise.
50763         * tests/test-iconv-utf.c (ASSERT): Likewise.
50764         * tests/test-iconv.c (ASSERT): Likewise.
50765         * tests/test-isfinite.c (ASSERT): Likewise.
50766         * tests/test-isnand.c (ASSERT): Likewise.
50767         * tests/test-isnanf.c (ASSERT): Likewise.
50768         * tests/test-isnanl.h (ASSERT): Likewise.
50769         * tests/test-ldexpl.c (ASSERT): Likewise.
50770         * tests/test-linked_list.c (ASSERT): Likewise.
50771         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50772         * tests/test-localename.c (ASSERT): Likewise.
50773         * tests/test-lseek.c (ASSERT): Likewise.
50774         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50775         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50776         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50777         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50778         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50779         * tests/test-mbschr.c (ASSERT): Likewise.
50780         * tests/test-mbscspn.c (ASSERT): Likewise.
50781         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50782         * tests/test-mbspbrk.c (ASSERT): Likewise.
50783         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50784         * tests/test-mbsrchr.c (ASSERT): Likewise.
50785         * tests/test-mbsspn.c (ASSERT): Likewise.
50786         * tests/test-mbsstr1.c (ASSERT): Likewise.
50787         * tests/test-mbsstr2.c (ASSERT): Likewise.
50788         * tests/test-mbsstr3.c (ASSERT): Likewise.
50789         * tests/test-memchr2.c (ASSERT): Likewise.
50790         * tests/test-memmem.c (ASSERT): Likewise.
50791         * tests/test-open.c (ASSERT): Likewise.
50792         * tests/test-printf-frexp.c (ASSERT): Likewise.
50793         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50794         * tests/test-printf-posix.c (ASSERT): Likewise.
50795         * tests/test-quotearg.c (ASSERT): Likewise.
50796         * tests/test-rbtree_list.c (ASSERT): Likewise.
50797         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50798         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50799         * tests/test-round1.c (ASSERT): Likewise.
50800         * tests/test-roundf1.c (ASSERT): Likewise.
50801         * tests/test-roundl.c (ASSERT): Likewise.
50802         * tests/test-signbit.c (ASSERT): Likewise.
50803         * tests/test-sleep.c (ASSERT): Likewise.
50804         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50805         * tests/test-snprintf.c (ASSERT): Likewise.
50806         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50807         * tests/test-stat-time.c (ASSERT): Likewise.
50808         * tests/test-strcasestr.c (ASSERT): Likewise.
50809         * tests/test-strerror.c (ASSERT): Likewise.
50810         * tests/test-striconv.c (ASSERT): Likewise.
50811         * tests/test-striconveh.c (ASSERT): Likewise.
50812         * tests/test-striconveha.c (ASSERT): Likewise.
50813         * tests/test-strsignal.c (ASSERT): Likewise.
50814         * tests/test-strstr.c (ASSERT): Likewise.
50815         * tests/test-strtod.c (ASSERT): Likewise.
50816         * tests/test-trunc1.c (ASSERT): Likewise.
50817         * tests/test-trunc2.c (ASSERT): Likewise.
50818         * tests/test-truncf1.c (ASSERT): Likewise.
50819         * tests/test-truncf2.c (ASSERT): Likewise.
50820         * tests/test-truncl.c (ASSERT): Likewise.
50821         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50822         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50823         * tests/test-vasnprintf.c (ASSERT): Likewise.
50824         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50825         * tests/test-vasprintf.c (ASSERT): Likewise.
50826         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50827         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50828         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50829         * tests/test-vsnprintf.c (ASSERT): Likewise.
50830         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50831         * tests/test-wcwidth.c (ASSERT): Likewise.
50832         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50833         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50834         * tests/test-xvasprintf.c (ASSERT): Likewise.
50835         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50836         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50837         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50838         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50839         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50840         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50841         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50842         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50843         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50844         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50845         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50846         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50847         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50848         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50849         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50850         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50851         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50852         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50853         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50854         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50855         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50856         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50857         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50858         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50859         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50860         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50861         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50862         * tests/unictype/test-combining.c (ASSERT): Likewise.
50863         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50864         * tests/unictype/test-digit.c (ASSERT): Likewise.
50865         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50866         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50867         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50868         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50869         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50870         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50871         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50872         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50873         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50874         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50875         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50876         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50877         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50878         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50879         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50880         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50881         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50882         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50883         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50884         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50885         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50886         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50887         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50888         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50889         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50890         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50891         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50892         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50893         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50894         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50895         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50896         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50897         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50898         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50899         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50900         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50901         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50902         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50903         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50904         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50905         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50906         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50907         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50908         Reported by Eric Blake.
50909
50910 2008-04-11  Bruno Haible  <bruno@clisp.org>
50911
50912         * lib/wchar.in.h: Tweak comment.
50913
50914 2008-04-11  Bruno Haible  <bruno@clisp.org>
50915
50916         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50917         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50918         gl_COMMON.
50919         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50920
50921 2008-04-11  Bruno Haible  <bruno@clisp.org>
50922
50923         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50924
50925 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50926
50927         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50928         of attempting to use non-existing /dev/*random.  Based on patch
50929         from Adam Strzelecki <ono@java.pl> in
50930         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50931
50932 2008-04-08  Bruno Haible  <bruno@clisp.org>
50933
50934         Add tentative support for emx+gcc.
50935         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50936         * lib/fpurge.c (fpurge): Likewise.
50937         * lib/freadable.c (freadable): Likewise.
50938         * lib/freadahead.c (freadahead): Likewise.
50939         * lib/freading.c (freading): Likewise.
50940         * lib/freadptr.c (freadptr): Likewise.
50941         * lib/freadseek.c (freadptrinc): Likewise.
50942         * lib/fseeko.c (rpl_fseeko): Likewise.
50943         * lib/fseterr.c (fseterr): Likewise.
50944         * lib/fwritable.c (fwritable): Likewise.
50945         * lib/fwriting.c (fwriting): Likewise.
50946         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50947
50948 2008-04-09  Eric Blake  <ebb9@byu.net>
50949
50950         Avoid some autoconf warnings.
50951         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50952         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50953         * m4/afs.m4 (gl_AFS): Likewise.
50954         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50955         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50956         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50957         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50958         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50959         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50960         (AC_CHECK_DECLS_ONCE): Likewise.
50961         Rename file...
50962         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50963         gnulib-tool requires autoconf 2.59 or better.
50964         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50965
50966 2008-04-08  Eric Blake  <ebb9@byu.net>
50967
50968         Use 'git describe --match' if present (added in git 1.5.5).
50969         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50970         if possible.
50971
50972 2008-04-08  Bruno Haible  <bruno@clisp.org>
50973
50974         Add tentative support for OpenServer.
50975         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50976         _ptr, _cnt.
50977         * lib/fpurge.c (fpurge): Likewise.
50978         * lib/freadable.c (freadable): Likewise.
50979         * lib/freadahead.c (freadahead): Likewise.
50980         * lib/freading.c (freading): Likewise.
50981         * lib/freadptr.c (freadptr): Likewise.
50982         * lib/freadseek.c (freadptrinc): Likewise.
50983         * lib/fseeko.c (rpl_fseeko): Likewise.
50984         * lib/fseterr.c (fseterr): Likewise.
50985         * lib/fwritable.c (fwritable): Likewise.
50986         * lib/fwriting.c (fwriting): Likewise.
50987         Reported by Roger Cornelius <rac@tenzing.org> and
50988         Brian K. White <brian@aljex.com>.
50989
50990 2008-04-06  Jim Meyering  <meyering@redhat.com>
50991
50992         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50993
50994 2008-04-06  Bruno Haible  <bruno@clisp.org>
50995
50996         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50997         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50998         * tests/test-printf-posix.sh: Likewise.
50999         * tests/test-vfprintf-posix.sh: Likewise.
51000         * tests/test-vprintf-posix.sh: Likewise.
51001         * tests/test-xprintf-posix.sh: Likewise.
51002
51003 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51004
51005         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51006         hide error from 'ls', needed on OS/2.
51007         Report by Elbert Pol <elbert.pol@gmail.com>.
51008
51009 2008-04-04  Eric Blake  <ebb9@byu.net>
51010
51011         Make test-fseeko.c failures meaningful.
51012         * tests/test-fseeko.c: Print line number on failure.
51013         * tests/test-fseek.c: Likewise.
51014         Reported by Nelson H. F. Beebe.
51015
51016         Improve strtod bug detection check.
51017         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51018         required for Solaris 10.
51019         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51020
51021 2008-04-04  Bruno Haible  <bruno@clisp.org>
51022
51023         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51024         by m4/setenv.m4.
51025
51026 2008-04-03  Eric Blake  <ebb9@byu.net>
51027
51028         Ensure sane .version contents.
51029         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51030         version string.
51031         * build-aux/git-version-gen: Improve documentation.
51032
51033         Make GNU make output nicer.
51034         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51035         MAKECMDGOALS to enforce message for all command line targets.  Set
51036         srcdir for use in maint.mk.
51037
51038         Another maintainer tweak.
51039         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51040         a target that regenerates version.
51041
51042 2008-04-03  Jim Meyering  <meyering@redhat.com>
51043
51044         vc-list-files: don't cause coreutils "make po-check" failure
51045         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51046
51047 2008-04-03  Eric Blake  <ebb9@byu.net>
51048
51049         Allow VPATH usage of vc-list-files.
51050         * build-aux/vc-list-files (scriptversion): Add timestamp.
51051         (options): Add --help, --version, -C.
51052         (CVS): Support installed cvsu.
51053
51054 2008-04-02  Bruno Haible  <bruno@clisp.org>
51055
51056         Avoid some "statement with no effect" warnings from gcc.
51057         * tests/test-wctype.c (main): Explicitly ignore unused values.
51058         Reported by Jim Meyering.
51059
51060 2008-04-02  Jim Meyering  <meyering@redhat.com>
51061
51062         Avoid some warnings from "gcc -Wshadow".
51063         * tests/test-frexp.c (exp): Define to a different identifier.
51064         * tests/test-frexpl.c (exp): Likewise.
51065
51066 2008-04-03  Jim Meyering  <meyering@redhat.com>
51067
51068         bootstrap: remove dangling *.[ch] symlinks from lib
51069         * build-aux/bootstrap [dangling symlink removal]: Move find's
51070         -depth option to precede all others, to avoid a warning.
51071         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51072
51073 2008-04-02  Bruno Haible  <bruno@clisp.org>
51074
51075         Avoid some warnings from "gcc -Wshadow".
51076         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51077         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51078         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51079         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51080         Reported by Jim Meyering.
51081
51082 2008-04-01  Bruno Haible  <bruno@clisp.org>
51083
51084         Fix test to work on IRIX 6.5 with cc.
51085         * tests/test-math.c (numeric_equal): New function.
51086         (main): Use it.
51087
51088 2008-04-01  Bruno Haible  <bruno@clisp.org>
51089
51090         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51091
51092 2008-04-01  Bruno Haible  <bruno@clisp.org>
51093
51094         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51095         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51096         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51097         (Depends-on): Remove math.
51098
51099         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51100         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51101         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51102         (Depends-on): Remove math.
51103
51104         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51105         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51106         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51107         (Depends-on): Remove math.
51108         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51109         (Depends-on): Remove math.
51110
51111         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51112         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51113         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51114         (Depends-on): Remove math.
51115         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51116         (Depends-on): Remove math.
51117
51118         * tests/test-round1.c: Include nan.h.
51119         (main): Use NaNd instead of NAN.
51120         * modules/round-tests (Files): Add tests/nan.h.
51121
51122         * tests/test-trunc1.c: Include nan.h.
51123         (main): Use NaNd instead of NAN.
51124         * modules/trunc-tests (Files): Add tests/nan.h.
51125
51126         * tests/test-roundf1.c: Include nan.h.
51127         (main): Use NaNf instead of NAN.
51128         * modules/roundf-tests (Files): Add tests/nan.h.
51129
51130         * tests/test-truncf1.c: Include nan.h.
51131         (main): Use NaNf instead of NAN.
51132         * modules/truncf-tests (Files): Add tests/nan.h.
51133
51134         * tests/test-ceilf1.c: Include nan.h.
51135         (main): Use NaNf instead of NAN.
51136         * modules/ceilf-tests (Files): Add tests/nan.h.
51137
51138         * tests/test-floorf1.c: Include nan.h.
51139         (main): Use NaNf instead of NAN.
51140         * modules/floorf-tests (Files): Add tests/nan.h.
51141
51142         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51143         (main): Use NaNf instead of NAN.
51144         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51145
51146         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51147         (main): Use NaNd instead of NAN.
51148         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51149
51150         * tests/test-frexp.c: Include nan.h.
51151         (main): Use NaNd instead of NAN.
51152         * modules/frexp-tests (Files): Add tests/nan.h.
51153
51154         * lib/isnan.c: Don't include <math.h>.
51155         (FUNC): Don't use NAN macro.
51156         * modules/isnand-nolibm (Depends-on): Remove math.
51157         * modules/isnanf-nolibm (Depends-on): Remove math.
51158         * modules/isnanl (Depends-on): Remove math.
51159         * modules/isnanl-nolibm (Depends-on): Remove math.
51160
51161         * tests/nan.h: New file.
51162
51163 2008-04-01  Eric Blake  <ebb9@byu.net>
51164
51165         Fix typos.
51166         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51167         values to be the right type.
51168
51169         For now, cater to gnulib strtod inaccuracies.
51170         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51171         fractional results.  While not as nice from a QoI perspective, it
51172         is a quicker patch than correctly implementing decimal to binary
51173         rounding.
51174
51175 2008-03-31  Eric Blake  <ebb9@byu.net>
51176
51177         Guarantee a definition of NAN.
51178         * lib/math.in.h (NAN): Define if missing.
51179         * tests/test-math.c (main): Test it.
51180         * doc/posix-headers/math.texi (math.h): Document this.
51181         * lib/isnan.c (rpl_isnand): Use it.
51182         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51183         * tests/test-floorf1.c (NaN): Likewise.
51184         * tests/test-frexp.c (NaN): Likewise.
51185         * tests/test-isnand.c (NaN): Likewise.
51186         * tests/test-isnanf.c (NaN): Likewise.
51187         * tests/test-round1.c (NaN): Likewise.
51188         * tests/test-roundf1.c (NaN): Likewise.
51189         * tests/test-snprintf-posix.h (NaN): Likewise.
51190         * tests/test-sprintf-posix.h (NaN): Likewise.
51191         * tests/test-trunc1.c (NaN): Likewise.
51192         * tests/test-truncf1.c (NaN): Likewise.
51193         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51194         * tests/test-vasprintf-posix.c (NaN): Likewise.
51195         * modules/isnand-nolibm (Depends-on): Add math.
51196         * modules/isnanf-nolibm (Depends-on): Likewise.
51197         * modules/isnanl (Depends-on): Likewise.
51198         * modules/isnanl-nolibm (Depends-on): Likewise.
51199         * modules/snprintf-posix-tests (Depends-on): Likewise.
51200         * modules/sprintf-posix-tests (Depends-on): Likewise.
51201         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51202         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51203         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51204         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51205
51206 2008-03-31  Bruno Haible  <bruno@clisp.org>
51207
51208         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51209         * doc/posix-functions/strtod.texi: Likewise.
51210
51211 2008-03-31  Bruno Haible  <bruno@clisp.org>
51212
51213         * tests/test-strtod.c (main): Don't use C99 syntax.
51214
51215 2008-03-31  Bruno Haible  <bruno@clisp.org>
51216
51217         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51218         Reported by Eric Blake.
51219
51220 2008-03-31  Jim Meyering  <meyering@redhat.com>
51221
51222         Don't compare actual signbit return values.
51223         * tests/test-strtod.c (main): Rather, compare only their
51224         zero/non-zero nature.
51225
51226 2008-03-31  Eric Blake  <ebb9@byu.net>
51227
51228         More strtod documentation.
51229         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51230         failures as distinct bugs.
51231
51232 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51233
51234         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51235         Problem reported by Erik Benada in
51236         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51237
51238 2008-03-30  Bruno Haible  <bruno@clisp.org>
51239
51240         * tests/test-strtod.c: Add comments about which assertion fails on which
51241         platform.
51242         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51243
51244 2008-03-30  Eric Blake  <ebb9@byu.net>
51245
51246         Test signbit behavior on zeros.
51247         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51248         (test_signbitd, test_signbitl): Likewise.
51249
51250         More strtod touchups.
51251         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51252         sign of negative underflow, for now.  Use .5, not .1.
51253         * doc/posix-functions/strtod.texi (strtod): Mention these
51254         limitations.
51255         Reported by Jim Meyering.
51256
51257 2008-03-30  Bruno Haible  <bruno@clisp.org>
51258
51259         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51260         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51261
51262 2008-03-30  Bruno Haible  <bruno@clisp.org>
51263
51264         Avoid failure when attempting to return empty iconv results on some
51265         platforms.
51266         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51267         allocation, don't report ENOMEM when the resulting string is empty.
51268
51269 2008-03-30  Bruno Haible  <bruno@clisp.org>
51270
51271         Fix buffer overrun.
51272         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51273         Don't consider the width for tmp_length. Check count against tmp_length
51274         before doing the padding. Ensure enough allocation during padding.
51275
51276 2008-03-30  Eric Blake  <ebb9@byu.net>
51277
51278         strtod touchups.
51279         * lib/strtod.c (strtod): Avoid compiler warnings.
51280         Reported by Jim Meyering.
51281
51282 2008-03-30  Bruno Haible  <bruno@clisp.org>
51283
51284         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51285         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51286         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51287         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51288         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51289         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51290         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51291         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51292
51293         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51294         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51295         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51296         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51297         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51298         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51299         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51300         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51301
51302         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51303         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51304         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51305         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51306         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51307         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51308         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51309         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51310
51311         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51312         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51313
51314         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51315         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51316
51317         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51318         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51319
51320         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51321         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51322         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51323
51324         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51325         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51326         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51327
51328         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51329         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51330         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51331
51332         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51333         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51334         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51335
51336         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51337         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51338         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51339         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51340         (Depends-on): Add EOVERFLOW.
51341         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51342         (Depends-on): Add EOVERFLOW.
51343         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51344         (Depends-on): Add EOVERFLOW.
51345         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51346         (Depends-on): Add EOVERFLOW.
51347         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51348         (Depends-on): Add EOVERFLOW.
51349         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51350         (Depends-on): Add EOVERFLOW.
51351         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51352         (Depends-on): Add EOVERFLOW.
51353         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51354         (Depends-on): Add EOVERFLOW.
51355
51356         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51357         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51358         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51359
51360         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51361         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51362         * modules/snprintf (Depends-on): Add EOVERFLOW.
51363
51364         * lib/poll.c (EOVERFLOW): Remove fallback.
51365         * modules/poll (Depends-on): Add EOVERFLOW.
51366
51367         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51368         * modules/getugroups (Depends-on): Add EOVERFLOW.
51369
51370         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51371         * modules/getdelim (Depends-on): Add EOVERFLOW.
51372
51373         * lib/ftell.c (EOVERFLOW): Remove fallback.
51374         * modules/ftell (Depends-on): Add EOVERFLOW.
51375
51376         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51377         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51378         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51379
51380         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51381
51382         * modules/EOVERFLOW-tests: New file.
51383         * tests/test-EOVERFLOW.c: New file.
51384
51385         * modules/EOVERFLOW: New file.
51386         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51387
51388 2008-03-30  Bruno Haible  <bruno@clisp.org>
51389
51390         Fix bug introduced on 2007-06-10.
51391         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51392         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51393
51394 2008-03-30  Bruno Haible  <bruno@clisp.org>
51395
51396         Improve freadseek's efficiency after ungetc.
51397         * lib/freadseek.c: Include freadahead.h.
51398         (freadptrinc): New function, extracted from freadseek.
51399         (freadseek): Use it in a loop. Use freadahead to determine the number
51400         of loop iterations.
51401         * modules/freadseek (Depends-on): Add freadahead.
51402         (configure.ac): Require AC_C_INLINE.
51403
51404 2008-03-30  Bruno Haible  <bruno@clisp.org>
51405
51406         * lib/freadseek.c (freadseek): Don't ignore the return value of
51407         freadptr.
51408
51409 2008-03-29  Eric Blake  <ebb9@byu.net>
51410
51411         Add hex float support.
51412         * modules/strtod (Depends-on): Add c-ctype.
51413         (Link): Mention POW_LIB.
51414         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51415         whitespace between 'e' and exponent.
51416         * tests/test-strtod.c (main): Enable hex float tests.
51417         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51418         now provides.
51419
51420         Document various strtod bugs, with some fixes.
51421         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51422         "-0x", "inf", "nan", and hex constants.
51423         * doc/posix-functions/atof.texi (atof): Likewise.
51424         * modules/stdlib (Makefile.am): Support strtod.
51425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51426         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51427         detect additional strtod bugs.
51428         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51429         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51430         bool where appropriate.  Parse 'inf' and 'nan'.
51431         * tests/test-strtod.c: New file.
51432         * modules/strtod (Depends-on): Add stdbool, stdlib.
51433         (configure.ac): Turn on module indicator.
51434         * modules/strtod-tests: New module.
51435
51436 2008-03-29  Eric Blake  <ebb9@byu.net>
51437
51438         Fix ftell on mingw.
51439         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51440         * modules/ftell-tests (Depends-on): Add binary-io.
51441         * modules/ftello-tests (Depends-on): Likewise.
51442         * tests/test-ftell.c (main): Enhance test to cover behavior after
51443         ungetc.  Enforce binary mode.
51444         * tests/test-ftello.c (main): Likewise.
51445
51446         Pass test-freadseek on cygwin.
51447         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51448         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51449         ungetc buffer.
51450
51451         * tests/test-fflush2.c (main): Fix typo.
51452
51453 2008-03-29  Bruno Haible  <bruno@clisp.org>
51454
51455         * tests/test-fflush2.c (main): Temporarily disable the contents of
51456         this test.
51457         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51458         Reported by Eric Blake.
51459
51460 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51461
51462         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51463         (GC_SHA224_DIGEST_SIZE): Add.
51464
51465         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51466         (gc_hash_digest_length): Likewise.
51467         (gc_hash_buffer): Likewise.
51468
51469 2008-03-25  Bruno Haible  <bruno@clisp.org>
51470
51471         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51472         detail which gettext release to use.
51473         Reported by Simon Josefsson.
51474
51475 2008-03-26  Jim Meyering  <meyering@redhat.com>
51476
51477         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51478         * modules/gnumakefile (clean-GNUmakefile): Also, use
51479         test ... && ... || : syntax rather than if-then ... fi.
51480
51481         gnumakefile: Don't double-quote-expand $(VPATH) value.
51482         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51483
51484 2008-03-24  Eric Blake  <ebb9@byu.net>
51485
51486         Alter GNUmakefile to install into top directory.
51487         * modules/maintainer-makefile: Split, and add dependency...
51488         * modules/gnumakefile: to this new module.
51489         * build-aux/GNUmakefile: Move...
51490         * top/GNUmakefile: ...here.
51491         * build-aux/maint.mk: Move...
51492         * top/maint.mk: ...here.
51493         * MODULES.html.sh (Support for maintaining...): Document new
51494         module.
51495
51496 2008-03-23  Bruno Haible  <bruno@clisp.org>
51497
51498         * gnulib-tool: New options --vc-files, --no-vc-files.
51499         (func_usage): Document them.
51500         (vc_files): New variable.
51501         (func_import): Consider vc_files.
51502         (func_create_testdir): Set vc_files to empty.
51503         Suggested by Jim Meyering and Karl Berry.
51504
51505 2008-03-23  Bruno Haible  <bruno@clisp.org>
51506
51507         Fix regex compilation error on HP-UX 11.
51508         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51509         * modules/regex (Files): Add m4/mbstate_t.m4.
51510         Reported by Ton Voon <ton.voon@altinity.com>.
51511
51512 2008-03-23  Bruno Haible  <bruno@clisp.org>
51513
51514         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51515
51516 2008-03-23  Eric Blake  <ebb9@byu.net>
51517             Bruno Haible  <bruno@clisp.org>
51518
51519         Install files from top/ in the destination directory.
51520         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51521         augmentation also for the files from top/.
51522         (func_import, func_create_testdir): Rewrite file names:
51523         top/filename -> filename.
51524
51525 2008-03-23  Bruno Haible  <bruno@clisp.org>
51526
51527         Tweak "gnulib --version" output.
51528         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51529
51530 2008-03-23  Bruno Haible  <bruno@clisp.org>
51531
51532         Tweak "gnulib --version" output.
51533         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51534         rather than contents of ChangeLog, when possible.
51535
51536 2008-03-21  Eric Blake  <ebb9@byu.net>
51537
51538         More --version tweaks.
51539         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51540         date of last ChangeLog entry.
51541
51542 2008-03-21  Jim Meyering  <meyering@redhat.com>
51543
51544         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51545
51546 2008-03-20  Eric Blake  <ebb9@byu.net>
51547
51548         VPATH fix.
51549         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51550
51551 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51552
51553         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51554         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51555
51556 2008-03-20  Eric Blake  <ebb9@byu.net>
51557
51558         Sync GNUmakefile with coreutils.
51559         * build-aux/GNUmakefile (have-Makefile): Rename...
51560         (_have-Makefile): ...to this, for namespace consideration.
51561         (GNUmakefile.cfg): Include, if present.
51562         (_autoreconf): Define a default.
51563         (_is-dist-target): New rule for rebuilds to pick up intra-release
51564         version.
51565         (maint-cfg.mk): Rename...
51566         (cfg.mk): ...to this.
51567
51568 2008-03-18  Jim Meyering  <meyering@redhat.com>
51569
51570         New script and module: mktempd
51571         * MODULES.html.sh (maint+release support): Add mktempd.
51572         * build-aux/mktempd: New file.
51573         * modules/mktempd: New file.
51574
51575 2008-03-15  Jim Meyering  <meyering@redhat.com>
51576
51577         Undo last change.
51578         * lib/sha1.c, lib/md5.c: 63 != ~63.
51579         Reported by Andreas Schwab.
51580
51581         sha1.c, md5.c: Hoist a redundant expression.
51582         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51583         "ctx->buflen" only once, before calling *_process_block.
51584         * lib/md5.c (md5_process_bytes): Likewise.
51585
51586 2008-03-14  Eric Blake  <ebb9@byu.net>
51587
51588         Bump copyright year in files generated by gnulib-tool.
51589         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51590         gnulib-tool, rather than hard-coding it.
51591
51592         Fix 'gnulib-tool --version' output to work with git.
51593         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51594         (startup): ...here.
51595         (func_version): Use it to invoke git-version-gen, rather than
51596         relying on CVS keyword expansion.  Modernize wording.
51597         (cvsdatestamp, last_checkin_date, version): Kill unused
51598         variables.
51599
51600 2008-03-12  Jim Meyering  <meyering@redhat.com>
51601
51602         Recognize optional cast of the argument to free.
51603         * build-aux/useless-if-before-free: Update regexps.
51604
51605         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51606
51607 2008-03-11  Bruno Haible  <bruno@clisp.org>
51608
51609         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51610         by a single package.
51611         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51612         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51613         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51614         Reported by Sam Steingold <sds@gnu.org>.
51615
51616 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51617
51618         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51619         repositories.
51620
51621 2008-03-11  Bruno Haible  <bruno@clisp.org>
51622
51623         Avoid conflicts between local macro definitions.
51624         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51625         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51626
51627 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51628             Bruno Haible  <bruno@clisp.org>
51629
51630         Make va_copy work with some version of xlc on AIX 5.1.
51631         * lib/stdarg.in.h: New file.
51632         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51633         On AIX, use a <stdarg.h> file substitute.
51634         * modules/stdarg (Files): Add lib/stdarg.in.h.
51635         (Depends-on): Add include_next.
51636         (Makefile.am): Build a stdarg.h substitute if requested.
51637         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51638
51639 2008-03-10  Bruno Haible  <bruno@clisp.org>
51640
51641         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51642         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51643         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51644
51645 2008-03-10  Bruno Haible  <bruno@clisp.org>
51646
51647         * modules/stdlib (Depends-on): Add include_next, remove
51648         absolute-header.
51649
51650 2008-03-09  Bruno Haible  <bruno@clisp.org>
51651
51652         * lib/freadahead.h (freadahead): Document more precisely.
51653         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51654         the sum of both buffer sizes.
51655         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51656         * NEWS: Document the change.
51657
51658 2008-03-09  Bruno Haible  <bruno@clisp.org>
51659
51660         Extend freadptr to return also the buffer size.
51661         * lib/freadptr.h (freadptr): Add sizep argument.
51662         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51663         (freadptr): Add sizep argument. Determine buffer size like freadahead
51664         does.
51665         * tests/test-freadptr.c: Don't include freadahead.h.
51666         (main): Adapt for new calling convention of freadptr.
51667         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51668         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51669         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51670         tests/test-freadptr2.sh.
51671         (Depends): Remove freadahead.
51672         (TESTS): Add test-freadptr2.sh.
51673         (check_PROGRAMS): Add test-freadptr2.
51674
51675 2008-03-09  Bruno Haible  <bruno@clisp.org>
51676
51677         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51678         Report and solution by Simon Josefsson.
51679
51680 2008-03-06  Bruno Haible  <bruno@clisp.org>
51681
51682         Make fflush after ungetc work on BSD platforms.
51683         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51684         * tests/test-fflush2.c: New file.
51685         * tests/test-fflush2.sh: New file.
51686         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51687         tests/test-fflush2.c.
51688         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51689         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51690
51691 2008-03-06  Eric Blake  <ebb9@byu.net>
51692
51693         Likewise for ftello.
51694         * modules/ftello (Dependencies): Add extensions.
51695         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51696
51697 2008-03-06  Bruno Haible  <bruno@clisp.org>
51698
51699         * modules/fseeko (Dependencies): Add extensions.
51700         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51701         Needed on glibc systems.
51702
51703 2008-03-06  Bruno Haible  <bruno@clisp.org>
51704
51705         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51706         email address.
51707         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51708
51709 2008-03-06  Bruno Haible  <bruno@clisp.org>
51710
51711         * users.txt: Add libgnupdf.
51712
51713 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51714
51715         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51716         (Header File Substitutes, Function Substitutes,
51717         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51718         (Build robot for gnulib): Fix typo.
51719
51720 2008-03-06  Bruno Haible  <bruno@clisp.org>
51721
51722         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51723         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51724
51725 2008-03-06  Bruno Haible  <bruno@clisp.org>
51726
51727         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51728         * doc/gnulib.texi: Include it.
51729
51730 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51731
51732         * modules/func (License): Change license to unlimited; there was
51733         no LGPL parts in the module anyway.
51734
51735 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51736
51737         * modules/__func__: Renamed to modules/func.
51738         * modules/__func__-tests: Renamed to modules/func-tests.
51739         * tests/test-__func__.c: Renamed to tests/test-func.c.
51740         * m4/__func__.m4: Renamed to m4/func.m4.
51741         * doc/gnulib.texi (__func__): Section renamed to func.
51742         Suggested by Eric Blake <ebb9@byu.net>.
51743
51744 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51745
51746         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51747         about __func__.  Make example self-contained.  Suggested by Eric
51748         Blake <ebb9@byu.net>.
51749
51750         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51751         Suggested by Eric Blake <ebb9@byu.net>.
51752
51753 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51754
51755         * modules/__func__: New file.
51756         * modules/__func__-tests: New file.
51757         * tests/test-__func__.c: New file.
51758         * m4/__func__.m4: New file.
51759         * doc/gnulib.texi (__func__): Document __func__ module.
51760
51761 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51762
51763         * modules/byteswap (License): Re-license as LGPLv2+.
51764
51765 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51766
51767         * doc/Makefile: Add pdf target.
51768
51769 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51770
51771         * modules/inline (License): Use 'unlimited', since there are only
51772         *.m4 files in this module.
51773
51774 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51775             Bruno Haible  <bruno@clisp.org>
51776
51777         Add support for HP C 7.1 on OpenVMS 8.3.
51778         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51779
51780 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51781
51782         Update VMS specifics.
51783         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51784
51785 2008-03-02  Jim Meyering  <meyering@redhat.com>
51786
51787         Remove the last dependency on the "free" module.
51788         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51789         Reported by Bob Proulx.
51790
51791         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51792
51793         Remove useless "if" tests before free.  Deprecate "free" module.
51794         * doc/posix-functions/free.texi: Mention that this
51795         module is no longer useful.
51796         * modules/free (Notice): Say this module is obsolete.
51797         * modules/readutmp (Depends-on): Remove free.
51798         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51799         * lib/putenv.c (putenv): Likewise.
51800         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51801         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51802         * tests/test-c-strcasestr.c (main): Likewise.
51803         * tests/test-c-strstr.c (main): Likewise.
51804         * tests/test-mbscasestr1.c (main): Likewise.
51805         * tests/test-mbscasestr2.c (main): Likewise.
51806         * tests/test-mbsstr1.c (main): Likewise.
51807         * tests/test-mbsstr2.c (main): Likewise.
51808         * tests/test-memmem.c (main): Likewise.
51809         * tests/test-strcasestr.c (main): Likewise.
51810         * tests/test-striconv.c (main): Likewise.
51811         * tests/test-striconveh.c (main): Likewise.
51812         * tests/test-striconveha.c (main): Likewise.
51813         * tests/test-strstr.c (main): Likewise.
51814
51815         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51816
51817         bootstrap: sync from coreutils again
51818         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51819
51820 2008-03-01  Jim Meyering  <meyering@redhat.com>
51821
51822         bootstrap: sync from coreutils
51823         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51824         also when the target doesn't exist.
51825
51826 2008-03-01  Eric Blake  <ebb9@byu.net>
51827
51828         Fix bugs in last patch.
51829         * lib/memchr2.c (memchr2): Fix typo.
51830         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51831         extension.
51832         Reported by Bruce Korb.
51833
51834         New module 'memchr2'.
51835         * modules/memchr2: New file.
51836         * modules/memchr2-tests: Likewise.
51837         * lib/memchr2.h: Likewise.
51838         * lib/memchr2.c: Likewise, based on memchr.c.
51839         * tests/test-memchr2.c: New test.
51840         * MODULES.html.sh (String handling): Add memchr2.
51841
51842 2008-02-29  Bruno Haible  <bruno@clisp.org>
51843
51844         * modules/freadseek-tests: New file.
51845         * tests/test-freadseek.sh: New file.
51846         * tests/test-freadseek.c: New file.
51847
51848         New module 'freadseek'.
51849         * modules/freadseek: New file.
51850         * lib/freadseek.h: New file.
51851         * lib/freadseek.c: New file.
51852         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51853
51854 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51855
51856         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51857         wydawca.
51858
51859         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51860         program_invocation_name and program_invocation_short_name are
51861         present.
51862
51863 2008-02-28  Bruno Haible  <bruno@clisp.org>
51864
51865         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51866         * tests/test-freadptr.sh: Also test non-seekable stdin.
51867
51868 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51869
51870         * build-aux/bootstrap (source_base, m4_base)
51871         (doc_base, tests_base): New variables.
51872         (gnulib_tool_options): Do not hardcode base directories, use
51873         the above variables instead.
51874
51875 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51876
51877         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51878
51879 2008-02-28  Bruno Haible  <bruno@clisp.org>
51880
51881         * modules/freadptr-tests: New file.
51882         * tests/test-freadptr.sh: New file.
51883         * tests/test-freadptr.c: New file.
51884
51885         New module 'freadptr'.
51886         * modules/freadptr: New file.
51887         * lib/freadptr.h: New file.
51888         * lib/freadptr.c: New file.
51889         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51890
51891 2008-02-26  Karl Berry  <karl@freefriends.org>
51892
51893         Sync from Libtool:
51894         * libltdl/argz.c (argz_add, argz_count): New functions.
51895         * libltdl/argz.in.h: Declare them.
51896         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51897
51898 2008-02-22  Bruno Haible  <bruno@clisp.org>
51899
51900         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51901         is a pointer type.  Needed for HP-UX 10.
51902         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51903         * doc/posix-functions/gmtime_r.texi: Likewise.
51904         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51905
51906 2008-02-24  Bruno Haible  <bruno@clisp.org>
51907
51908         * modules/environ-tests: New file.
51909         * tests/test-environ.c: New file.
51910
51911         New module 'environ'.
51912         * modules/environ: New file.
51913         * lib/unistd.in.h (environ): New declaration.
51914         * m4/environ.m4: New file.
51915         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51916         after use.
51917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51918         HAVE_DECL_ENVIRON.
51919         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51920         HAVE_DECL_ENVIRON.
51921         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51922         wrong claim that 'environ' is missing on some systems.
51923         * modules/execute (Depends-on): Add environ.
51924         * lib/execute.c (environ): Remove fallback declaration.
51925         * modules/pipe (Depends-on): Add environ.
51926         * lib/pipe.c (environ): Remove fallback declaration.
51927         * modules/setenv (Depends-on): Add environ.
51928         * lib/setenv.c (environ): Remove fallback declaration.
51929         * modules/unsetenv (Depends-on): Add environ.
51930         * lib/unsetenv.c (environ): Remove fallback declaration.
51931         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51932         m4/environ.m4.
51933         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51934         (gl_PREREQ_UNSETENV): Likewise.
51935
51936 2008-02-24  Bruno Haible  <bruno@clisp.org>
51937
51938         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51939
51940 2008-02-20  Bob Proulx  <bob@proulx.com>
51941
51942         Enable use of older two part flavor 'git describe'.
51943         * build-aux/git-version-gen: If using the older two part flavor of
51944         git version then recreate the third part now present in the
51945         newer three part flavor of git describe.
51946
51947 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51948
51949         * lib/fts.c (fts_build): Typo correction to comment.
51950
51951 2008-02-17  Bruno Haible  <bruno@clisp.org>
51952
51953         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51954         generating no-op conflicts.
51955
51956 2008-02-17  Bruno Haible  <bruno@clisp.org>
51957
51958         Speed up by 10%.
51959         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51960         result_entries, rather than an index-based loop.
51961
51962 2008-02-17  Bruno Haible  <bruno@clisp.org>
51963
51964         Speed up by 25%.
51965         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51966         'hashcode_cached'.
51967         (entry_create): New function.
51968         (entry_hashcode): Use the cached hashcode if possible.
51969         (read_changelog_file, try_split_merged_entry): Use entry_create.
51970
51971 2008-02-17  Bruno Haible  <bruno@clisp.org>
51972
51973         Speed up from O(n^2) to O(n) for long ChangeLog files.
51974         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51975         (read_changelog_file): Change implementation of entries_reversed list
51976         to rbtreehash.
51977         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51978
51979 2008-02-17  Bruno Haible  <bruno@clisp.org>
51980
51981         New option --split-merged-entry.
51982         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51983         (find_paragraph_end, try_split_merged_entry): New functions.
51984         (long_options): Add option --split-merged-entry.
51985         (usage): Document option --split-merged-entry.
51986         (main): Implement option --split-merged-entry.
51987         Reported by Eric Blake.
51988
51989 2008-02-17  Bruno Haible  <bruno@clisp.org>
51990
51991         * lib/git-merge-changelog.c: Include c-strstr.h.
51992         (main): Support the "git pull --rebase" situation.
51993         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51994         Reported by Eric Blake.
51995
51996 2008-02-16  Eric Blake  <ebb9@byu.net>
51997
51998         Avoid doubling \ in common case of "c-maybe" quoting style.
51999         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52000         eliding outer quotes.
52001         * lib/quotearg.h: Document this.
52002         * tests/test-quotearg.c (result_strings, inputs, results_g)
52003         (flag_results, locale_results): Test it by adding a new string to
52004         each test group.
52005         (compare_strings): Test new string.
52006
52007 2008-02-13  Eric Blake  <ebb9@byu.net>
52008
52009         Avoid trigraph quoting in default output.
52010         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52011         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52012         unless explicitly requested.
52013         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52014
52015 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52016
52017         Don't rely on signed integer overflowing to negative value.
52018         * lib/getugroups.c (getugroups): Include <limits.h>.
52019         Instead, compare against INT_MAX, and increment only if the test passes.
52020
52021 2008-02-13  Jim Meyering  <meyering@redhat.com>
52022         and Eric Blake  <ebb9@byu.net>
52023
52024         Avoid shadowing warning and compile errors on Linux.
52025         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52026         forwarding macros on Linux.
52027         (dcgettext): Define a stub, for Linux.
52028         (results_g, main): Avoid warnings.
52029
52030 2008-02-12  Eric Blake  <ebb9@byu.net>
52031
52032         Silence warning in last patch.
52033         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52034
52035         Quotearg part 4: add tests, fix c-maybe colon quoting.
52036         * lib/quotearg.h: Improve documentation.
52037         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52038         escapes when adding outer quotes.  When quoting trigraphs, use
52039         valid C notation.  When quoting NUL, omit extra characters if next
52040         character is not digit.  Alter prototype.
52041         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52042         callers.
52043         * modules/quotearg-tests: New module.
52044         * tests/test-quotearg.c: New test.
52045
52046 2008-02-07  Eric Blake  <ebb9@byu.net>
52047
52048         Quotearg part 3: add flag to control outer quote elision.
52049         * lib/quotearg.h (c_maybe_quoting_style): New style.
52050         (enum quoting_flags): Better documentation of flags.
52051         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52052         c-maybe style.
52053         (quotearg_buffer_restyled): Handle new flag to elide outer
52054         quotes.
52055
52056         Quotearg part 2: add flag that can control NUL elision.
52057         * lib/quotearg.h (set_quoting_flags): New prototype.
52058         * lib/quotearg.c (struct quoting_options): Add flag field.
52059         (set_quoting_flags): New function.
52060         (quotearg_buffer_restyled): Add flags parameter.
52061         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52062         (quotearg_n_options): Set the flag, since length cannot be
52063         returned.
52064         (quoting_options_from_style): Default flags correctly.
52065
52066         Quotearg part 1: more wrappers, restore quotearg_char state.
52067         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52068         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52069         (quotearg_colon_mem): New wrappers.
52070         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52071         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52072         functions.
52073         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52074         (quotearg_colon_mem): New functions.
52075
52076 2008-02-11  Bruno Haible  <bruno@clisp.org>
52077
52078         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52079         library in the current directory: it does not work with parallel make.
52080         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52081
52082 2008-02-11  Bruno Haible  <bruno@clisp.org>
52083
52084         * .gitattributes: New file.
52085
52086 2008-02-11  Jim Meyering  <meyering@redhat.com>
52087
52088         useless-if-before-free: Fix reversed exit values.
52089         * build-aux/useless-if-before-free: Use correct values
52090         for EXIT_MATCH and EXIT_NO_MATCH.
52091
52092         * build-aux/useless-if-before-free: Close stdout carefully.
52093
52094 2008-02-10  Bruno Haible  <bruno@clisp.org>
52095
52096         New module 'git-merge-changelog'.
52097         * modules/git-merge-changelog: New file.
52098         * lib/git-merge-changelog.c: New file.
52099
52100 2008-02-10  Jim Meyering  <meyering@redhat.com>
52101
52102         useless-if-before-free: New option: --list (-l).
52103
52104         useless-if-before-free: Don't exit immediately upon open failure.
52105         * build-aux/useless-if-before-free: Exit 2 for errors.
52106         Upon failure to open a file, don't exit immediately.
52107         Rather, just warn and continue with any remaining files.
52108
52109 2008-02-10  Bruno Haible  <bruno@clisp.org>
52110
52111         New abstract list operation 'node_set_value'.
52112         * lib/gl_list.h (gl_list_node_set_value): New function.
52113         (struct gl_list_implementation): New field node_set_value.
52114         * lib/gl_list.c (gl_list_node_set_value): New function.
52115         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52116         (gl_array_list_implementation): Update.
52117         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52118         (gl_carray_list_implementation): Update.
52119         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52120         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52121         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52122         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52123         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52124         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52125         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52126         Update.
52127         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52128         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52129         (gl_sublist_list_implementation): Update.
52130
52131 2008-02-10  Bruno Haible  <bruno@clisp.org>
52132
52133         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52134         Needed when ELEMENT is #defined to 'some_type *'.
52135
52136 2008-02-10  Jim Meyering  <meyering@redhat.com>
52137
52138         New script and module: useless-if-before-free
52139         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52140         * build-aux/useless-if-before-free: New file.
52141         * modules/useless-if-before-free: New file.
52142
52143         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52144
52145         xstrtol_error: Fix typo.
52146         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52147         s/exit_failure/exit_status/.
52148
52149 2008-02-09  Jim Meyering  <meyering@redhat.com>
52150
52151         New script and module: gitlog-to-changelog
52152         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52153         * modules/gitlog-to-changelog: New file.
52154         * build-aux/gitlog-to-changelog: New file.
52155
52156 2008-02-08  Jim Meyering  <meyering@redhat.com>
52157
52158         Avoid two "parameter unused" warnings.
52159         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52160         Mark "st" as used.
52161
52162         Use "git COMMAND", not "git-COMMAND".
52163         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52164         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52165         * build-aux/git-version-gen: Use "git status", not "git-status".
52166
52167 2008-02-07  Bruno Haible  <bruno@clisp.org>
52168
52169         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52170         Avoids a crash on Windows Vista.
52171         Reported by Adam Strzelecki <ono@java.pl> via
52172         Simon Josefsson <simon@josefsson.org>.
52173
52174 2008-02-06  Bruno Haible  <bruno@clisp.org>
52175
52176         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52177         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52178         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52179         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52180         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52181         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52182         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52183         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52184         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52185         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52186         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52187         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52188         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52189         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52190         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52191         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52192         left-adjust flag.
52193         * tests/test-snprintf-posix.h (test_function): Likewise.
52194         * tests/test-sprintf-posix.h (test_function): Likewise.
52195         * tests/test-vasprintf-posix.c (test_function): Likewise.
52196         * doc/posix-functions/fprintf.texi: Update.
52197         * doc/posix-functions/printf.texi: Update.
52198         * doc/posix-functions/snprintf.texi: Update.
52199         * doc/posix-functions/sprintf.texi: Update.
52200         * doc/posix-functions/vfprintf.texi: Update.
52201         * doc/posix-functions/vprintf.texi: Update.
52202         * doc/posix-functions/vsnprintf.texi: Update.
52203         * doc/posix-functions/vsprintf.texi: Update.
52204         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52205
52206 2008-02-06  Bruno Haible  <bruno@clisp.org>
52207
52208         Fix bug introduced on 2008-01-26.
52209         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52210
52211 2008-02-06  Bruno Haible  <bruno@clisp.org>
52212
52213         Fix bug introduced on 2007-06-10.
52214         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52215         !NEED_PRINTF_FLAG_ZERO.
52216
52217 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52218
52219         getloadavg: use libperfstat on AIX5
52220         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52221
52222 2008-02-03  Bruno Haible  <bruno@clisp.org>
52223
52224         * lib/diffseq.h: Add comments about required #includes.
52225         Reported by Michael Biggs <gnulib@doubleplum.net>.
52226
52227 2008-02-01  Bruno Haible  <bruno@clisp.org>
52228
52229         * users.txt: Add gnuit.
52230
52231 2008-01-31  Bruno Haible  <bruno@clisp.org>
52232
52233         * lib/md4.c (set_uint32): Mark as inline.
52234         * lib/md5.c (set_uint32): Likewise.
52235         * lib/sha1.c (set_uint32): Likewise.
52236         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52237         * m4/md5.m4 (gl_MD5): Likewise.
52238         * m4/sha1.m4 (gl_SHA1): Likewise.
52239
52240 2008-01-31  Jim Meyering  <meyering@redhat.com>
52241
52242         Use "sizeof VAR", rather than a literal "4".
52243         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52244         * lib/md4.c (md4_read_ctx): Likewise.
52245         * lib/sha1.c (sha1_read_ctx): Likewise.
52246
52247 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52248
52249         * tests/test-sha1.c: New file, based on test-md5.c.
52250
52251         * modules/crypto/sha1-tests: New file.
52252
52253 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52254
52255         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52256
52257 2008-01-31  Jim Meyering  <meyering@redhat.com>
52258
52259         Prefer "sizeof v" over the equivalent "4".
52260         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52261         * lib/md5.c (set_uint32): Likewise.
52262         * lib/sha1.c (set_uint32): Likewise.
52263
52264 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52265
52266         * lib/sha1.c (set_uint32): Mark function as static.
52267
52268 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52269
52270         md2: clarify comments to say that alignment is not required.
52271         * lib/md2.h: Remove warning about alignment in comment.
52272         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52273         never been required.
52274
52275 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52276
52277         md4: adapt alignment constraint fix from sha1.
52278         * lib/md4.c (set_uint32): New function, from sha1.c
52279         (md4_read_ctx): Use it.
52280         (md4_finish_ctx): Doc fix.
52281         * lib/md4.h: Doc fix.
52282
52283 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52284
52285         md5: adapt alignment constraint fix from sha1.
52286         * lib/md5.c (set_uint32): New function, from sha1.c
52287         (md5_read_ctx): Use it.
52288         (md5_finish_ctx): Doc fix.
52289         * lib/md5.h: Doc fix.
52290
52291 2008-01-30  Peter Palfrader  <weasel@debian.org>
52292
52293         sha1: remove the result buffer alignment constraint
52294         * lib/sha1.c (set_uint32): New function.
52295         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52296         constraint.
52297         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52298         * lib/sha1.h: Likewise.
52299
52300 2008-01-30  Andreas Schwab  <schwab@suse.de>
52301             Bruno Haible  <bruno@clisp.org>
52302
52303         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52304         correct definition of LDBL_MIN_EXP.
52305
52306 2008-01-30  Karl Berry  <karl@gnu.org>
52307
52308         * config/srclist-update: try to preserve x bit on updates.
52309         * config/srclistvars.sh: update for karl.
52310
52311 2008-01-29  Jim Meyering  <meyering@redhat.com>
52312
52313         vasnprintf.c: Avoid warning about unused label
52314         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52315         "overflow" label definition and associated code with the
52316         same cpp condition that guards the sole use of that label.
52317
52318 2008-01-26  Bruno Haible  <bruno@clisp.org>
52319
52320         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52321         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52322         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52323         * lib/isnanl-nolibm.h (isnanl): Likewise.
52324         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52325
52326 2008-01-26  Bruno Haible  <bruno@clisp.org>
52327
52328         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52329         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52330
52331 2008-01-26  Bruno Haible  <bruno@clisp.org>
52332
52333         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52334         GCC >= 4.0 built-in.
52335         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52336
52337 2008-01-26  Bruno Haible  <bruno@clisp.org>
52338
52339         Rename isnan, applicable to 'double' only, to isnand.
52340         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52341         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52342         (configure.ac): Update.
52343         (Include): Replace "isnan.h" with "isnand.h".
52344         * m4/isnand.m4: Renamed from m4/isnan.m4.
52345         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52346         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52347         instead of isnan.c.
52348         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52349         instead of HAVE_ISNAN_IN_LIBC.
52350         (isnand): Renamed from isnan.
52351         * lib/isnand.c: New file.
52352         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52353         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52354         (Makefile.am): Update.
52355         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52356         Include isnand.h instead of isnan.h.
52357         (main): Test isnand instead of isnan.
52358         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52359         isnan-nolibm.
52360         * modules/frexp (Depends-on): Likewise.
52361         * modules/frexp-tests (Depends-on): Likewise.
52362         * modules/frexp-nolibm (Depends-on): Likewise.
52363         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52364         * modules/isfinite (Depends-on): Likewise.
52365         * modules/round-tests (Depends-on): Likewise.
52366         * modules/signbit (Depends-on): Likewise.
52367         * modules/signbit-tests (Depends-on): Likewise.
52368         * modules/snprintf-posix (Depends-on): Likewise.
52369         * modules/sprintf-posix (Depends-on): Likewise.
52370         * modules/trunc-tests (Depends-on): Likewise.
52371         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52372         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52373         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52374         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52375         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52376         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52377         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52378         * modules/vasnprintf-posix (Depends-on): Likewise.
52379         * modules/vasprintf-posix (Depends-on): Likewise.
52380         * modules/vfprintf-posix (Depends-on): Likewise.
52381         * modules/vsnprintf-posix (Depends-on): Likewise.
52382         * modules/vsprintf-posix (Depends-on): Likewise.
52383         * lib/frexp.c: Include isnand.h instead of isnan.h.
52384         (ISNAN): Set to isnand instead of isnan.
52385         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52386         (gl_isfinited): Use isnand instead of isnan.
52387         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52388         (gl_signbitd): Use isnand instead of isnan.
52389         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52390         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52391         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52392         (main): Use isnand instead of isnan.
52393         * tests/test-round1.c: Include isnand.h.
52394         (main): Use isnand instead of isnan.
52395         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52396         (ISNAN): Set to isnand instead of isnan.
52397         * tests/test-trunc1.c: Include isnand.h.
52398         (main): Use isnand instead of isnan.
52399         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52400         (equal): Use isnand instead of isnan.
52401         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52402         isnand-nolibm.
52403         * NEWS: Mention the change.
52404
52405 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52406             Bruno Haible  <bruno@clisp.org>
52407
52408         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52409         the GCC builtins for signbits are present and set
52410         REPLACE_SIGNBIT_USING_GCC if so.
52411         * lib/math.in.h (signbit): Define using GCC builtins if
52412         REPLACE_SIGNBIT_USING_GCC is set.
52413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52414         REPLACE_SIGNBIT_USING_GCC.
52415         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52416
52417 2008-01-25  Jim Meyering  <meyering@redhat.com>
52418
52419         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52420         * lib/poll.c: Include <config.h>, not "config.h".
52421         * tests/test-getaddrinfo.c: Likewise.
52422
52423 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52424
52425         * modules/sockets-tests: New file.
52426
52427 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52428
52429         * modules/sockets: New module, can be used to call WSA_Startup and
52430         WSA_Cleanup when needed.
52431
52432         * lib/sockets.h, lib/sockets.c: New files.
52433
52434         * m4/sockets.m4: New file.
52435
52436         * tests/test-sockets.c: New file.
52437
52438 2008-01-19  Bruno Haible  <bruno@clisp.org>
52439
52440         * doc/posix-headers: Renamed from doc/headers.
52441         * doc/posix-functions: Renamed from doc/functions.
52442         * doc/gnulib.texi: Update.
52443
52444 2008-01-19  Bruno Haible  <bruno@clisp.org>
52445
52446         * doc/glibc-functions/strcasestr.texi: Include contents of
52447         doc/functions/strcasestr.texi, fixing the list of platforms.
52448         * doc/functions/strcasestr.texi: Remove file.
52449
52450 2008-01-19  Bruno Haible  <bruno@clisp.org>
52451
52452         * doc/glibc-functions/memmem.texi: Include contents of
52453         doc/functions/memmem.texi.
52454         * doc/functions/memmem.texi: Remove file.
52455
52456 2008-01-18  Bruno Haible  <bruno@clisp.org>
52457
52458         * doc/glibc-functions/*.texi: New files.
52459         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52460         to use the new files.
52461
52462 2008-01-17  Bruno Haible  <bruno@clisp.org>
52463
52464         * tests/test-gethostname.c (main): Fix printf statement.
52465
52466 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52467
52468         * modules/gethostname-tests: New file.
52469
52470         * tests/test-gethostname.c: New file.
52471
52472 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52473
52474         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52475         used by the UNAME case.  Reported by Bruno Haible
52476         <bruno@clisp.org>.
52477
52478 2008-01-17  Eric Blake  <ebb9@byu.net>
52479
52480         Convert c-strcasestr to be more efficient.
52481         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52482         (Depends-on): Add c-strcase, remove malloca, strnlen.
52483         * tests/test-c-strcasestr.c (main): Enhance test.
52484         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52485
52486 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52487
52488         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52489         Use it in creating po/Makevars.
52490
52491 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52492
52493         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52494         Applications that requires it should initialize libgcrypt
52495         manually.
52496
52497 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52498
52499         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52500
52501 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52502
52503         Fix problem with getdate on mingw32 reported by Simon Josefsson
52504         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52505         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52506         tzname", when deciding whether to declare tzname.
52507         * lib/strftime.c (tzname): Likewise.
52508
52509 2008-01-15  Bruno Haible  <bruno@clisp.org>
52510
52511         Work around a MacOS X 10.5 bug in frexpl().
52512         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52513         * doc/functions/frexpl.texi: Document the bug.
52514         Reported by Elias Pipping <pipping@gentoo.org>.
52515
52516 2008-01-14  Eric Blake  <ebb9@byu.net>
52517
52518         Touch up previous patch.
52519         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52520         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52521
52522         Convert strcasestr module to use Two-Way algorithm.
52523         * modules/strcasestr-simple: New module, based on the old
52524         strcasestr, but with Two-Way rather than KMP.
52525         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52526         * lib/string.in.h (rpl_strcasestr): Declare.
52527         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52528         performance.
52529         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52530         * modules/string (Makefile.am): Support strcasestr.
52531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52532         * modules/strcasestr-tests (Depends-on): Check for alarm.
52533         * tests/test-strcasestr.c: Augment test.
52534         * lib/str-two-way.h: Clean up stray macro.
52535         * NEWS: Document new module.
52536         * MODULES.html.sh (string handling): Likewise.
52537         * doc/functions/strcasestr.texi: New file.
52538         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52539         here, since it is not a POSIX function.
52540
52541 2008-01-14  Colin Watson  <cjwatson@debian.org>
52542             Bruno Haible  <bruno@clisp.org>
52543
52544         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52545         works fine; if not, set REPLACE_STRSIGNAL.
52546         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52548         REPLACE_STRSIGNAL.
52549         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52550         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52551         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52552
52553 2008-01-14  Bruno Haible  <bruno@clisp.org>
52554
52555         * modules/strsignal (Include): Change to <string.h>.
52556
52557 2008-01-14  Colin Watson  <cjwatson@debian.org>
52558
52559         * modules/argp (Notice): Add a notice recommending to change
52560         XGETTEXT_OPTIONS.
52561         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52562
52563 2008-01-13  Colin Watson  <cjwatson@debian.org>
52564
52565         * modules/strsignal-tests: New file.
52566         * tests/test-strsignal.c: New file.
52567
52568         * lib/strsignal.c: New file, from glibc with modifications.
52569         * lib/siglist.h: New file, from glibc with modifications.
52570         * lib/string.in.h (strsignal): New declaration.
52571         * m4/strsignal.m4: New file.
52572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52573         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52574         * modules/strsignal: New file.
52575         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52576         HAVE_DECL_STRSIGNAL.
52577
52578 2008-01-13  Bruno Haible  <bruno@clisp.org>
52579
52580         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52581         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52582         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52583         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52584
52585 2008-01-13  Bruno Haible  <bruno@clisp.org>
52586
52587         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52588         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52589         * lib/argp.h (__attribute__): Likewise.
52590         * lib/c-stack.c (__attribute__): Likewise.
52591         * lib/error.h (__attribute__): Likewise.
52592         * lib/fts.c (__attribute__): Likewise.
52593         * lib/openat.h (__attribute__): Likewise.
52594         * lib/stdio.in.h (__attribute__): Likewise.
52595         * lib/string.in.h (__attribute__): Likewise.
52596         * lib/utimens.c (__attribute__): Likewise.
52597         * lib/vasnprintf.h (__attribute__): Likewise.
52598         * lib/xalloc.h (__attribute__): Likewise.
52599         * lib/xprintf.h (__attribute__): Likewise.
52600         * lib/xstrtol.h (__attribute__): Likewise.
52601         * lib/xvasprintf.h (__attribute__): Likewise.
52602
52603 2008-01-12  Bruno Haible  <bruno@clisp.org>
52604
52605         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52606         * doc/glibc-headers/a.out.texi: New file.
52607         * doc/glibc-headers/aliases.texi: New file.
52608         * doc/glibc-headers/alloca.texi: New file.
52609         * doc/glibc-headers/ar.texi: New file.
52610         * doc/glibc-headers/argp.texi: New file.
52611         * doc/glibc-headers/argz.texi: New file.
52612         * doc/glibc-headers/byteswap.texi: New file.
52613         * doc/glibc-headers/crypt.texi: New file.
52614         * doc/glibc-headers/endian.texi: New file.
52615         * doc/glibc-headers/envz.texi: New file.
52616         * doc/glibc-headers/err.texi: New file.
52617         * doc/glibc-headers/error.texi: New file.
52618         * doc/glibc-headers/execinfo.texi: New file.
52619         * doc/glibc-headers/fpu_control.texi: New file.
52620         * doc/glibc-headers/fstab.texi: New file.
52621         * doc/glibc-headers/fts.texi: New file.
52622         * doc/glibc-headers/getopt.texi: New file.
52623         * doc/glibc-headers/ieee754.texi: New file.
52624         * doc/glibc-headers/ifaddrs.texi: New file.
52625         * doc/glibc-headers/libintl.texi: New file.
52626         * doc/glibc-headers/mcheck.texi: New file.
52627         * doc/glibc-headers/mntent.texi: New file.
52628         * doc/glibc-headers/obstack.texi: New file.
52629         * doc/glibc-headers/paths.texi: New file.
52630         * doc/glibc-headers/printf.texi: New file.
52631         * doc/glibc-headers/pty.texi: New file.
52632         * doc/glibc-headers/resolv.texi: New file.
52633         * doc/glibc-headers/shadow.texi: New file.
52634         * doc/glibc-headers/sysexits.texi: New file.
52635         * doc/glibc-headers/ttyent.texi: New file.
52636
52637 2008-01-12  Jim Meyering  <meyering@redhat.com>
52638
52639         announce-gen: emit Gnulib's git-based version string.
52640         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52641         New option --gnulib-version=V, where V is expected to be
52642         the output of running git describe in the gnulib directory.
52643         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52644         not useful, and plan to stop publishing an xdelta file with each
52645         coreutils release.
52646
52647         * build-aux/announce-gen: Also check for lzma-compressed files.
52648
52649 2008-01-11  Bruno Haible  <bruno@clisp.org>
52650
52651         * tests/test-memmem.c (main): Increase maximum allowed time.
52652         * tests/test-strstr.c (main): Likewise.
52653
52654 2008-01-11  Bruno Haible  <bruno@clisp.org>
52655
52656         * doc/functions/memmem.texi: Add more precisions about platforms.
52657         * doc/functions/strstr.texi: Likewise.
52658
52659 2008-01-10  Eric Blake  <ebb9@byu.net>
52660
52661         * m4/strstr.m4: Delete cruft from copy-n-paste.
52662         Reported by Bruno Haible.
52663
52664 2008-01-10  Bruno Haible  <bruno@clisp.org>
52665
52666         Make c-strstr rely on strstr.
52667         * lib/c-strstr.c: Don't include str-kmp.h.
52668         (c_strstr): Define in terms of strstr.
52669         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52670         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52671
52672 2008-01-10  Bruno Haible  <bruno@clisp.org>
52673
52674         * doc/gnulib.texi (String Functions in C Locale): New section.
52675         * doc/c-ctype.texi: New file.
52676         * doc/c-strcase.texi: New file.
52677         * doc/c-strcaseeq.texi: New file.
52678         * doc/c-strcasestr.texi: New file.
52679         * doc/c-strstr.texi: New file.
52680         * doc/c-strtod.texi: New file.
52681         * doc/c-strtold.texi: New file.
52682
52683 2008-01-10  Eric Blake  <ebb9@byu.net>
52684
52685         * lib/relocatable.h: Fix a comment.
52686
52687 2008-01-10  Eric Blake  <ebb9@byu.net>
52688
52689         Share two-way algorithm.
52690         * lib/str-two-way.h: New file, merged from...
52691         * lib/memmem.c: ...here...
52692         * lib/strstr.c: ...and here.
52693         * modules/memmem (Files): Use it.
52694         * modules/strstr (Files): Likewise.
52695
52696         Avoid quadratic strstr implementations.
52697         * lib/strstr.c: New file.
52698         * m4/strstr.m4: Likewise.
52699         * modules/strstr: Likewise.
52700         * modules/strstr-tests: Likewise.
52701         * tests/test-strstr.c: Likewise.
52702         * lib/string.in.h (rpl_strstr): Declare.
52703         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52705         * modules/string (Makefile.am): Likewise.
52706         * MODULES.html.sh (string handling): Mention new module.
52707         * doc/functions/strstr.texi (strstr): Document the bug.
52708
52709 2008-01-10  Bruno Haible  <bruno@clisp.org>
52710
52711         * lib/relocatable.h (relocate): State whether result is freshly
52712         allocated or not.
52713         * lib/relocatable.c (relocate): Return a freshly allocated string
52714         instead of a pointer to a privately held string.
52715         Reported by Sylvain Beucler <beuc@gnu.org>.
52716
52717 2008-01-10  Colin Watson  <cjwatson@debian.org>
52718
52719         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52720         s/S_ISNLK/S_ISLNK/.
52721
52722 2008-01-09  Bruno Haible  <bruno@clisp.org>
52723
52724         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52725         and other files.
52726         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52727         if it's only a guess.
52728         * modules/memmem: Simplify by depending on memmem-simple.
52729
52730 2008-01-09  Bruno Haible  <bruno@clisp.org>
52731
52732         Work around OpenBSD 4.0 tdelete() bug.
52733         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52734         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52735         macros and don't redefine the enum values.
52736         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52737         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52738         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52739
52740 2008-01-09  Bruno Haible  <bruno@clisp.org>
52741
52742         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52743         (main): Don't perform the tests if setlocale did not install a UTF-8
52744         locale. Needed on OpenBSD 4.0.
52745         * modules/wcwidth-tests (Depends-on): Add localcharset.
52746
52747 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52748
52749         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52750         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52751         * NEWS: announce this.
52752         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52753
52754 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52755         and Eric Blake  <ebb9@byu.net>
52756
52757         Add memmem-simple module.
52758         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52759         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52760         * modules/memmem-simple: New file.
52761         * modules/memmem (Description): Tweak.
52762         * MODULES.html.sh (string handling): Mention new module.
52763         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52764         addressed by memmem-simple.
52765         * NEWS: Document the difference.
52766
52767 2008-01-09  Eric Blake  <ebb9@byu.net>
52768
52769         Give gcc some memmem optimization hints.
52770         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52771         (strcasestr): Declare as pure.
52772         * modules/memmem (Maintainer): Claim my implementation.
52773
52774 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52775
52776         Support AIX 6.1 and higher.
52777         * build-aux/config.libpath: Likewise.
52778         * build-aux/config.rpath: Likewise.
52779
52780 2008-01-08  Jim Meyering  <meyering@redhat.com>
52781             Bruno Haible  <bruno@clisp.org>
52782
52783         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52784         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52785         Reported by Peter Fales in
52786         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52787
52788 2008-01-08  Bruno Haible  <bruno@clisp.org>
52789
52790         * modules/unictype/category-of (Depends-on): Add
52791         unictype/category-none.
52792         * modules/unictype/category-and-tests (Depends-on): Add
52793         unictype/category-{L,N,Lu,Nd}.
52794         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52795         * modules/unictype/category-or-tests (Depends-on): Add
52796         unictype/category-{L,N}.
52797         * modules/unictype/category-name-tests (Depends-on): Add
52798         unictype/category-{Z,Nl}.
52799         Reported by Simon Josefsson.
52800
52801 2008-01-08  Bruno Haible  <bruno@clisp.org>
52802
52803         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52804         convention better.
52805         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52806         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52807         Reported by Peter Miller <millerp@canb.auug.org.au>.
52808
52809 2008-01-08  Eric Blake  <ebb9@byu.net>
52810
52811         Rewrite memmem to guarantee linear complexity without malloc.
52812         * lib/memmem.c (memmem): Use Two-Way rather than
52813         Knuth-Morris-Pratt, to allow O(1) space usage.
52814         (critical_factorization, two_way_short_needle)
52815         (two_way_long_needle): New functions.
52816         (knuth_morris_pratt): Delete.
52817         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52818         Add stdint.
52819         * tests/test-memmem.c (main): Add tests for periodic needle and
52820         sublinear performance.
52821         * doc/functions/memmem.texi (memmem): Document other deficiencies
52822         in cygwin and older glibc.
52823
52824 2008-01-08  Bruno Haible  <bruno@clisp.org>
52825
52826         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52827         augmentation.
52828
52829 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52830
52831         Add a configure time option: --disable-acl.
52832         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52833         AC_ARG_ENABLE(acl).
52834
52835 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52836
52837         * tests/test-localename.c: Don't include obsolete "setenv.h".
52838
52839         * modules/localename-tests (Depends-on): Need unsetenv.
52840
52841 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52842
52843         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52844
52845 2008-01-06  Colin Watson  <cjwatson@debian.org>
52846
52847         * users.txt: Add man-db.
52848
52849 2008-01-07  Bruno Haible  <bruno@clisp.org>
52850
52851         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52852         previous section name.
52853
52854 2008-01-07  Bruno Haible  <bruno@clisp.org>
52855
52856         * lib/progname.c (set_program_name): Don't strip off a leading
52857         "lt-" prefix outside a .libs directory.
52858         Suggested by Paul Eggert.
52859
52860 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52861             Bruno Haible  <bruno@clisp.org>
52862
52863         Improve memory cleanup in 'relocatable' module.
52864         * lib/relocatable.h (compute_curr_prefix): Change return type to
52865         'char *'.
52866         * lib/relocatable.c (compute_curr_prefix): Change return type to
52867         'char *'. Free curr_installdir after use.
52868         (relocate): Free curr_prefix_better after use.
52869         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52870
52871 2008-01-01  Bruno Haible  <bruno@clisp.org>
52872
52873         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52874         failure on older glibc systems.
52875         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52876
52877 2008-01-05  Eric Blake  <ebb9@byu.net>
52878
52879         Avoid quadratic system memmem.
52880         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52881         Reported by Ralf Wildenhues.
52882
52883         Fix memmem test for mingw.
52884         * modules/memmem-tests (configure.ac): Check for alarm.
52885         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52886         it.
52887         * doc/functions/memmem.texi: New file.
52888         * doc/gnulib.texi (Function Substitutes): Add memmem.
52889         Reported by Bruno Haible.
52890
52891 2008-01-04  Bruno Haible  <bruno@clisp.org>
52892
52893         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52894         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52895         gl_HEADER_STRING_H_DEFAULTS.
52896
52897 2008-01-04  Eric Blake  <ebb9@byu.net>
52898
52899         Shorten duration of memmem test.
52900         * tests/test-memmem.c (main): Use alarm to declare failure if test
52901         is taking too long.
52902         Reported by Ralf Wildenhues.
52903
52904 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52905
52906         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52907         string, needed by strerror.
52908
52909 2008-01-03  Colin Watson  <cjwatson@debian.org>
52910             Bruno Haible  <bruno@clisp.org>
52911
52912         * doc/gnulib-tool.texi (Localization): New section.
52913
52914 2008-01-02  Bruno Haible  <bruno@clisp.org>
52915
52916         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52917         variables to 'unsigned char *' type.
52918         Reported by Paul Eggert.
52919
52920 2008-01-02  Jim Meyering  <jim@meyering.net>
52921
52922         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52923
52924 2007-12-31  Jim Meyering  <jim@meyering.net>
52925
52926         Avoid use of private FTS type name.
52927         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52928
52929 2007-12-30  Karl Berry  <karl@gnu.org>
52930
52931         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52932         work around defect in Texinfo and/or the standalone Info browser.
52933
52934 2007-12-30  Bruno Haible  <bruno@clisp.org>
52935
52936         Unify 5 copies of the KMP code.
52937         * lib/str-kmp.h: New file.
52938         * lib/c-strcasestr.c: Include str-kmp.h.
52939         (knuth_morris_pratt): Remove function.
52940         (c_strcasestr): Update.
52941         * lib/c-strstr.c: Include str-kmp.h.
52942         (knuth_morris_pratt): Remove function.
52943         (c_strcasestr): Update.
52944         * lib/mbscasestr.c: Include str-kmp.h.
52945         (knuth_morris_pratt_unibyte): Remove function.
52946         * lib/mbsstr.c: Include str-kmp.h.
52947         (knuth_morris_pratt_unibyte): Remove function.
52948         * lib/strcasestr.c: Include str-kmp.h.
52949         (knuth_morris_pratt): Remove function.
52950         (strcasestr): Update.
52951         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52952         * modules/c-strstr (Files): Likewise.
52953         * modules/mbscasestr (Files): Likewise.
52954         * modules/mbsstr (Files): Likewise.
52955         * modules/strcasestr (Files): Likewise.
52956         Suggested by Paul Eggert.
52957
52958 2007-12-30  Bruno Haible  <bruno@clisp.org>
52959
52960         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52961         defined.
52962
52963 2007-12-30  Bruno Haible  <bruno@clisp.org>
52964
52965         * lib/xmalloca.h: Include xalloc.h.
52966         (xnmalloca): New macro.
52967
52968 2007-12-30  Bruno Haible  <bruno@clisp.org>
52969
52970         * lib/malloca.h (nmalloca): New macro.
52971         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52972         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52973         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52974         knuth_morris_pratt_multibyte): Likewise.
52975         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52976         knuth_morris_pratt_multibyte): Likewise.
52977         * lib/memmem.c (knuth_morris_pratt): Likewise.
52978         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52979
52980 2007-12-25  Bruno Haible  <bruno@clisp.org>
52981
52982         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52983         * lib/glob.c: Don't include openat.h.
52984         (link_exists2_p): Add back the code that deals with the
52985         !GLOB_ALTDIRFUNC case.
52986         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52987         let it do the filename concatenation.
52988         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52989         * modules/glob (Depends-on): Remove openat.
52990
52991 2007-12-31  Bruno Haible  <bruno@clisp.org>
52992
52993         * modules/dirfd (License): Change to LGPLv2+.
52994         Approved by Jim Meyering.
52995
52996 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52997
52998         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52999         when multiplying M by sizeof (size_t).
53000
53001 2007-12-10  Martin Lambers  <marlam@marlam.de>
53002
53003         Override getpagesize on mingw.
53004         * lib/getpagesize.c: New file.
53005         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53006         * modules/getpagesize (Files): Add lib/getpagesize.c.
53007         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53009         REPLACE_GETPAGESIZE.
53010         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53011
53012 2007-12-25  Bruno Haible  <bruno@clisp.org>
53013
53014         * modules/localcharset (Notice): New field.
53015         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53016         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53017
53018 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53019             Bruno Haible  <bruno@clisp.org>
53020
53021         Avoid using the syntax symbol() in formatted documentation.
53022         * MODULES.html.sh (func_module): When replacing symbol() with a
53023         hyperlink, remove the parentheses. Show an error if some remain.
53024         Recognize and render the '...' syntax.
53025         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53026         Rework. Add paragraph about GCC's inlining.
53027         * doc/alloca.texi: Likewise.
53028         * doc/error.texi: Remove parentheses from symbol reference.
53029         * doc/gnulib-intro.texi: Likewise.
53030         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53031         * modules/fnmatch (Description): Reword to say "the ... function".
53032         * modules/full-read (Description): Likewise.
53033         * modules/full-write (Description): Likewise.
53034         * modules/safe-read (Description): Likewise.
53035         * modules/safe-write (Description): Likewise.
53036         * modules/strchrnul (Description): Likewise.
53037         * modules/trim (Description): Likewise.
53038         * modules/error (Description): Remove parentheses from symbol
53039         references.
53040         * modules/verror (Description): Likewise.
53041         Reported by Karl Berry.
53042
53043 2007-12-25  Bruno Haible  <bruno@clisp.org>
53044
53045         Fixup after 2007-10-16 commit.
53046         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53047
53048 2007-12-24  Bruno Haible  <bruno@clisp.org>
53049
53050         Make --enable-relocatable work with DESTDIR.
53051         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53052         to compute installdir from destprog.
53053         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53054         also set the RELOC_DESTDIR variable.
53055         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53056
53057 2007-12-24  Bruno Haible  <bruno@clisp.org>
53058
53059         Fix link error due to xalloc_die().
53060         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53061         of xreadlink.
53062         * lib/relocwrapper.c: Update comments.
53063         * build-aux/install-reloc: Remove xreadlink.c from file list.
53064         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53065         xreadlink.c.
53066         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53067
53068 2007-12-24  Bruno Haible  <bruno@clisp.org>
53069
53070         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53071         * lib/setenv.h: Remove file.
53072         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53073         lib/setenv.h.
53074         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53075         (Depends-on): Add stdlib.
53076         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53077         gl_FUNC_UNSETENV.
53078         (Include): Replace setenv.h with <stdlib.h>.
53079         * modules/unsetenv: New file.
53080         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53081         * lib/unsetenv.c: Include <stdlib.h> first.
53082         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53083         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53084         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53085         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53086         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53087         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53089         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53090         * doc/functions/unsetenv.texi: Update.
53091         * modules/xsetenv (Depends-on): Add unsetenv.
53092         * modules/getdate (Depends-on): Likewise.
53093         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53094         * lib/xsetenv.c: Don't include setenv.h.
53095         * lib/getdate.y: Likewise.
53096         * lib/relocwrapper.c: Likewise.
53097         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53098         (Depends-on): Add stdlib.
53099         * NEWS: Mention the changes.
53100         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53101
53102 2007-12-23  Bruno Haible  <bruno@clisp.org>
53103
53104         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53105         indentation.
53106
53107 2007-12-23  Bruno Haible  <bruno@clisp.org>
53108
53109         * lib/c-strcasestr.c: Add more comments.
53110         * lib/c-strstr.c: Likewise.
53111         * lib/mbscasestr.c: Likewise.
53112         * lib/mbsstr.c: Likewise.
53113         * lib/strcasestr.c: Likewise.
53114         * lib/memmem.c: Likewise.
53115
53116 2007-12-23  Bruno Haible  <bruno@clisp.org>
53117
53118         * tests/test-memmem.c: Include <string.h> first.
53119
53120 2007-12-22  Bruno Haible  <bruno@clisp.org>
53121
53122         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53123         the contents of $testsbase.
53124         Reported by Ralf Wildenhues.
53125
53126 2007-12-22  Bruno Haible  <bruno@clisp.org>
53127
53128         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53129         two variables local_ldadd_before, local_ldadd_last.
53130
53131 2007-12-20  Eric Blake  <ebb9@byu.net>
53132
53133         Work around circular library issue when cross-compiling.
53134         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53135         that progname.o does not need to pull in rpl_memcmp.
53136
53137 2007-12-19  Eric Blake  <ebb9@byu.net>
53138
53139         Fix memmem to avoid O(n^2) worst-case complexity.
53140         * lib/memmem.c (knuth_morris_pratt): New function.
53141         (memmem): Use it if first few naive iterations fail.
53142         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53143         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53144         * modules/memchr (License): Likewise.
53145         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53146         malloca.
53147         * tests/test-memmem.c: Rewrite, borrowing ideas from
53148         test-mbsstr1.c; the old version wouldn't even compile!
53149         * modules/memmem-tests: New file.
53150         * lib/string.in.h (rpl_memmem): Add declaration.
53151         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53152         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53153         REPLACE_MEMMEM.
53154
53155 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53156
53157         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53158         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53159         before any system include files, and undef after them all.  This
53160         should fix a problem on VMS reported by John E. Malmberg in
53161         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53162
53163 2007-12-17  Eric Blake  <ebb9@byu.net>
53164
53165         Revert addition of verify, for BSD/OS.
53166         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53167         can't handle large files, for the sake of obsolete platforms.
53168         * modules/fseeko (Depends-on): Remove verify.
53169         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53170         * doc/functions/ftello.texi (ftello): Likewise.
53171         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53172         Reported by Larry Jones.
53173
53174 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53175
53176         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53177         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53178
53179 2007-12-17  Jim Meyering  <meyering@redhat.com>
53180
53181         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53182         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53183         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53184         * modules/getcwd (Depends-on): Add openat.
53185         Reported by Petr Salinger.
53186
53187 2007-12-17  Bruno Haible  <bruno@clisp.org>
53188
53189         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53190         avoid a segmentation fault of the configure test on x86_64 systems.
53191
53192 2007-12-15  Jim Meyering  <meyering@redhat.com>
53193
53194         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53195
53196 2007-12-13  Eric Blake  <ebb9@byu.net>
53197
53198         Another fseek test.
53199         * tests/test-fseek.c (main): Also test ungetc handling.
53200         * tests/test-fseeko.c (main): Likewise.
53201         * modules/fseeko (Depends-on): Add verify.
53202         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53203         large.
53204         Reported by Larry Jones.
53205
53206         Fix fseeko on mingw.
53207         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53208         seek.
53209
53210         Beef up fseek tests.
53211         * tests/test-fseek.c (main): Also test eof handling.
53212         * tests/test-fseeko.c (main): Likewise.
53213         Reported by Larry Jones.
53214
53215 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53216
53217         Fix fseeko on BSD-based platforms.
53218         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53219         successful seek.
53220
53221 2007-12-12  Eric Blake  <ebb9@byu.net>
53222
53223         Allow circular dependency of separate libtests.a
53224         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53225         when use_libtests.
53226
53227 2007-12-11  Eric Blake  <ebb9@byu.net>
53228
53229         Fix bug with -0.0L in previous patch.
53230         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53231         * tests/test-isnan.c (main): Also test on zeroes.
53232         * tests/test-isnanf.c (main): Likewise.
53233         * tests/test-isnanl.h (main): Likewise.
53234
53235         Detect pseudo-denormals on x86 even when cross-compiling.
53236         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53237         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53238         invalid bit patterns that happen to satisfy ==.
53239
53240         Avoid link failures with separate libtests.a.
53241         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53242         last, to satisfy circular dependencies.
53243
53244 2007-12-11  Eric Blake  <ebb9@byu.net>
53245         and Bruno Haible  <bruno@clisp.org>
53246
53247         Fix OpenBSD 4.0 <float.h> handling of long double.
53248         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53249         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53250         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53251
53252 2007-12-11  Jim Meyering  <meyering@redhat.com>
53253
53254         * users.txt: Add libvirt.
53255
53256         Support versions of autoconf prior to 2.59c.
53257         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53258         if it is not already defined.
53259
53260 2007-12-09  Bruno Haible  <bruno@clisp.org>
53261
53262         Let 'gnulib-tool --import' collect sources needed for the tests in
53263         tests/ rather than in lib/.
53264         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53265         argument. If true, add rules to generate libtests.a, and put libtests.a
53266         into $(LDADD). Consider source files in subdirectories and set
53267         uses_subdirs.
53268         (func_emit_initmacro_start, func_emit_initmacro_end,
53269         func_emit_initmacro_done): Pass all arguments explicitly.
53270         (func_import): Determine two module lists main_modules,
53271         testsrelated_modules. Determine use_libtests. Determine two variables
53272         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53273         instead of just sed_transform_lib_file. Determine two variables
53274         main_files and testsrelated_files. Compute 'files' as the union of
53275         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53276         func_add_or_update. In the generated gnulib-comp.m4, collect the
53277         object files for tests/ in different variables than those for lib/.
53278         Substitute LIBTESTS_LIBDEPS.
53279         (func_create_testdir): Combine the uses_subdirs results from
53280         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53281
53282 2007-12-09  Bruno Haible  <bruno@clisp.org>
53283
53284         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53285         the build-aux directory.
53286
53287 2007-12-09  Bruno Haible  <bruno@clisp.org>
53288
53289         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53290         introduced on 2006-09-09.
53291
53292 2007-12-07  Jim Meyering  <meyering@redhat.com>
53293
53294         Let these macros work also with autoconf-2.59.
53295         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53296         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53297         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53298
53299 2007-12-06  Jim Meyering  <meyering@redhat.com>
53300
53301         Avoid a configure-time syntax error in gl_FUNC_ACL.
53302         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53303         function in each branch, before testing the cache variable.
53304
53305 2007-12-04  Eric Blake  <ebb9@byu.net>
53306
53307         Make scripts executable.
53308         * build-aux/config.guess: Add execute permissions.
53309         * build-aux/config.sub: Likewise.
53310         * build-aux/gendocs.sh: Likewise.
53311
53312         Fix frexp on mingw.
53313         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53314         cross-compiling.
53315         * doc/functions/frexp.texi (frexp): Document the bug.
53316
53317         Make cygwin fseeko check more reliable.
53318         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53319         version numbers, rather than unrelated feature check.
53320         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53321         * doc/functions/ftello.texi (ftello): Likewise.
53322         Reported by Bruno Haible.
53323
53324         * m4/strerror.m4: Bump version number.
53325
53326 2007-12-03  Bruno Haible  <bruno@clisp.org>
53327
53328         * doc/functions/mprotect.texi: Mention the mingw problem.
53329
53330 2007-12-03  Eric Blake  <ebb9@byu.net>
53331
53332         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53333         REPLACE_STRERROR is initialized before this macro.
53334
53335 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53336
53337         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53338         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53339         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53340         put -lsec in even for programs other than 'ls'.  This fixes a problem
53341         for gettext reported by Bruno Haible in
53342         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53343         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53344         Add support for Solaris 10.  This isn't efficient, but should get the
53345         job done for now.
53346
53347 2007-12-03  James Youngman  <jay@gnu.org>
53348
53349         * doc/regexprops-generic.texi: change "an close-group" to "a
53350         close-group" and "illegal" to "not allowed".
53351
53352 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53353
53354         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53355         pr_byname.h. Needed for the rare case when the maintainer has done
53356         "make maintainer-clean" in the source directory and then attempts a
53357         build outside the source directory.
53358         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53359         scripts_byname.h.
53360
53361 2007-12-02  Martin Lambers <marlam@marlam.de>
53362             Bruno Haible  <bruno@clisp.org>
53363
53364         * lib/getpagesize.h: Remove file.
53365         * lib/unistd.in.h: Include declaration of getpagesize here.
53366         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53367         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53368         HAVE_SYS_PARAM_H.
53369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53370         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53371         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53372         (Depends-on): Add unistd.
53373         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53374         (Include): Use <unistd.h> instead of getpagesize.h.
53375         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53376         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53377         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53378         gl_GETPAGESIZE invocation, already handled by module dependency.
53379         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53380
53381 2007-12-02  Bruno Haible  <bruno@clisp.org>
53382
53383         * modules/strings-tests: New file.
53384         * tests/test-strings.c: New file.
53385
53386         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53387         * lib/strings.in.h: New file.
53388         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53389         * m4/strings_h.m4: New file.
53390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53391         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53392         * modules/strings: New file.
53393         * modules/string (Makefile.am): Update.
53394         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53395         Reported by Karl Berry.
53396
53397 2007-12-01  Eric Blake  <ebb9@byu.net>
53398
53399         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53400         accomodate fix in cygwin 1.5.25.
53401
53402 2007-12-01  Jim Meyering  <meyering@redhat.com>
53403
53404         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53405         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53406         that would inhibit utf8-optimization of a regexp containing line-
53407         or buffer-anchors, e.g., `^', `$'.
53408
53409 2007-11-30  Bruno Haible  <bruno@clisp.org>
53410
53411         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53412         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53413         glthread_recursive_lock_init.
53414         * lib/lock.c (glthread_recursive_lock_init)
53415         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53416         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53417
53418 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53419
53420         New function qset_acl, like set_acl but with syscall semantics.
53421         * lib/acl.h (qset_acl): New decl.
53422         * lib/acl.c (qset_acl): New function.
53423         (set_acl): Use new function.  Use more-consistent diagnostics.
53424
53425 2007-11-28  Jim Meyering  <meyering@redhat.com>
53426
53427         * modules/physmem (License): Change from GPL to LGPLv2+.
53428
53429 2007-11-26  Bruno Haible  <bruno@clisp.org>
53430
53431         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53432         'long double' type has excess precision.
53433         Reported by Jim Meyering in
53434         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53435
53436 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53437
53438         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53439         Sync from <http://gnu.org/licenses>.
53440         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53441         with license text from same location.
53442         * doc/maintain.texi, doc/standards.texi:  Sync from
53443         <http://savannah.gnu.org/projects/gnustandards>.
53444
53445 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53446         and Jim Meyering  <meyering@redhat.com>
53447
53448         Adjust getdate' grammar to accept a slightly more regular language.
53449         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53450         Before, the former was rejected.
53451         * lib/getdate.y (digits_to_date_time): New function, factored
53452         out of ...
53453         (number): ...here.  Just call digits_to_date_time.
53454         (hybrid): New non-terminal to handle an <unsigned number,
53455         signed relative offset> sequence consistently.
53456
53457 2007-11-18  Jim Meyering  <meyering@redhat.com>
53458
53459         Pull my changes from coreutils:
53460         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53461         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53462         use of $gnulib_tool_option_extras, so that it's separated from the
53463         preceding argument.
53464
53465         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53466         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53467         parent destination directories before copying a file into place.
53468
53469 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53470
53471         bootstrap: work also with 4-argument variant of AC_INIT
53472         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53473
53474 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53475
53476         Port test-getaddrinfo to Solaris.
53477         Problem reported by Bruno Haible in
53478         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53479         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53480         explanation of setting 'hints'.
53481         Don't reject an implementation merely because it returns EAI_SERVICE.
53482         (EAI_SERVICE): Define to 0 if not defined.
53483
53484 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53485
53486         The license of gnu-make and posix-shell is now "GPLed build tool".
53487         * modules/gnu-make (License): Likewise.
53488         * modules/posix-shell (License): Likewise.
53489
53490         New module posix-shell, for determining a POSIX shell
53491         or perhaps something that is close enough to a POSIX shell.
53492         * m4/posix-shell.m4: New file.
53493         * modules/posix-shell: New file.
53494
53495         * MODULES.html.sh: Mention new module.
53496
53497         New module gnu-make, for determining whether we're using GNU Make.
53498         * m4/gnu-make.m4: New file.
53499         * modules/gnu-make: New file.
53500         * MODULES.html.sh: Mention new module.
53501
53502 2007-11-14  Jim Meyering  <meyering@redhat.com>
53503
53504         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53505         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53506         use this macro to create a function _definition_.
53507         Remove useless "#undef ARGMATCH_DIE".
53508
53509 2007-11-14  Bruno Haible  <bruno@clisp.org>
53510
53511         * lib/config.charset: Update for OpenBSD 4.1.
53512         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53513
53514 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53515
53516         Document 64-bit #if problems in stdint.texi.
53517         * doc/headers/stdint.texi (stdint.h): Mention problems with
53518         64-bit-#if, and how to work around them.
53519
53520         Don't insist on 'long long int' support in the preprocessor.  It
53521         breaks too many things.  For example, PRIdMAX still uses a 'long
53522         long int' format with the latest Sun compiler, even though
53523         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53524         preprocessor problem.  This causes the latest coreutils to dump
53525         core on Solaris 10 sparc with the Sun C compiler.
53526         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53527         the troublesome expressions at configure-time, not at #if-time.
53528         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53529         preprocessor.
53530         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53531         compile-time C checks, done at 'configure'-time.
53532         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53533         * modules/inttypes (Makefile): Substitute the new symbols that
53534         gl_INTTYPES_H now generates.
53535         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53536
53537 2007-11-12  Bruno Haible  <bruno@clisp.org>
53538
53539         Tests for Unicode character classification functions.
53540
53541         * modules/unictype/bidicategory-byname-tests: New file.
53542         * modules/unictype/bidicategory-name-tests: New file.
53543         * modules/unictype/bidicategory-of-tests: New file.
53544         * modules/unictype/bidicategory-test-tests: New file.
53545         * modules/unictype/block-list-tests: New file.
53546         * modules/unictype/block-of-tests: New file.
53547         * modules/unictype/block-test-tests: New file.
53548         * modules/unictype/category-C-tests: New file.
53549         * modules/unictype/category-Cc-tests: New file.
53550         * modules/unictype/category-Cf-tests: New file.
53551         * modules/unictype/category-Cn-tests: New file.
53552         * modules/unictype/category-Co-tests: New file.
53553         * modules/unictype/category-Cs-tests: New file.
53554         * modules/unictype/category-L-tests: New file.
53555         * modules/unictype/category-Ll-tests: New file.
53556         * modules/unictype/category-Lm-tests: New file.
53557         * modules/unictype/category-Lo-tests: New file.
53558         * modules/unictype/category-Lt-tests: New file.
53559         * modules/unictype/category-Lu-tests: New file.
53560         * modules/unictype/category-M-tests: New file.
53561         * modules/unictype/category-Mc-tests: New file.
53562         * modules/unictype/category-Me-tests: New file.
53563         * modules/unictype/category-Mn-tests: New file.
53564         * modules/unictype/category-N-tests: New file.
53565         * modules/unictype/category-Nd-tests: New file.
53566         * modules/unictype/category-Nl-tests: New file.
53567         * modules/unictype/category-No-tests: New file.
53568         * modules/unictype/category-P-tests: New file.
53569         * modules/unictype/category-Pc-tests: New file.
53570         * modules/unictype/category-Pd-tests: New file.
53571         * modules/unictype/category-Pe-tests: New file.
53572         * modules/unictype/category-Pf-tests: New file.
53573         * modules/unictype/category-Pi-tests: New file.
53574         * modules/unictype/category-Po-tests: New file.
53575         * modules/unictype/category-Ps-tests: New file.
53576         * modules/unictype/category-S-tests: New file.
53577         * modules/unictype/category-Sc-tests: New file.
53578         * modules/unictype/category-Sk-tests: New file.
53579         * modules/unictype/category-Sm-tests: New file.
53580         * modules/unictype/category-So-tests: New file.
53581         * modules/unictype/category-Z-tests: New file.
53582         * modules/unictype/category-Zl-tests: New file.
53583         * modules/unictype/category-Zp-tests: New file.
53584         * modules/unictype/category-Zs-tests: New file.
53585         * modules/unictype/category-and-not-tests: New file.
53586         * modules/unictype/category-and-tests: New file.
53587         * modules/unictype/category-byname-tests: New file.
53588         * modules/unictype/category-name-tests: New file.
53589         * modules/unictype/category-none-tests: New file.
53590         * modules/unictype/category-of-tests: New file.
53591         * modules/unictype/category-or-tests: New file.
53592         * modules/unictype/category-test-withtable-tests: New file.
53593         * modules/unictype/combining-class-tests: New file.
53594         * modules/unictype/ctype-alnum-tests: New file.
53595         * modules/unictype/ctype-alpha-tests: New file.
53596         * modules/unictype/ctype-blank-tests: New file.
53597         * modules/unictype/ctype-cntrl-tests: New file.
53598         * modules/unictype/ctype-digit-tests: New file.
53599         * modules/unictype/ctype-graph-tests: New file.
53600         * modules/unictype/ctype-lower-tests: New file.
53601         * modules/unictype/ctype-print-tests: New file.
53602         * modules/unictype/ctype-punct-tests: New file.
53603         * modules/unictype/ctype-space-tests: New file.
53604         * modules/unictype/ctype-upper-tests: New file.
53605         * modules/unictype/ctype-xdigit-tests: New file.
53606         * modules/unictype/decimal-digit-tests: New file.
53607         * modules/unictype/digit-tests: New file.
53608         * modules/unictype/mirror-tests: New file.
53609         * modules/unictype/numeric-tests: New file.
53610         * modules/unictype/property-alphabetic-tests: New file.
53611         * modules/unictype/property-ascii-hex-digit-tests: New file.
53612         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53613         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53614         * modules/unictype/property-bidi-block-separator-tests: New file.
53615         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53616         * modules/unictype/property-bidi-common-separator-tests: New file.
53617         * modules/unictype/property-bidi-control-tests: New file.
53618         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53619         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53620         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53621         * modules/unictype/property-bidi-european-digit-tests: New file.
53622         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53623         * modules/unictype/property-bidi-left-to-right-tests: New file.
53624         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53625         * modules/unictype/property-bidi-other-neutral-tests: New file.
53626         * modules/unictype/property-bidi-pdf-tests: New file.
53627         * modules/unictype/property-bidi-segment-separator-tests: New file.
53628         * modules/unictype/property-bidi-whitespace-tests: New file.
53629         * modules/unictype/property-byname-tests: New file.
53630         * modules/unictype/property-combining-tests: New file.
53631         * modules/unictype/property-composite-tests: New file.
53632         * modules/unictype/property-currency-symbol-tests: New file.
53633         * modules/unictype/property-dash-tests: New file.
53634         * modules/unictype/property-decimal-digit-tests: New file.
53635         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53636         * modules/unictype/property-deprecated-tests: New file.
53637         * modules/unictype/property-diacritic-tests: New file.
53638         * modules/unictype/property-extender-tests: New file.
53639         * modules/unictype/property-format-control-tests: New file.
53640         * modules/unictype/property-grapheme-base-tests: New file.
53641         * modules/unictype/property-grapheme-extend-tests: New file.
53642         * modules/unictype/property-grapheme-link-tests: New file.
53643         * modules/unictype/property-hex-digit-tests: New file.
53644         * modules/unictype/property-hyphen-tests: New file.
53645         * modules/unictype/property-id-continue-tests: New file.
53646         * modules/unictype/property-id-start-tests: New file.
53647         * modules/unictype/property-ideographic-tests: New file.
53648         * modules/unictype/property-ids-binary-operator-tests: New file.
53649         * modules/unictype/property-ids-trinary-operator-tests: New file.
53650         * modules/unictype/property-ignorable-control-tests: New file.
53651         * modules/unictype/property-iso-control-tests: New file.
53652         * modules/unictype/property-join-control-tests: New file.
53653         * modules/unictype/property-left-of-pair-tests: New file.
53654         * modules/unictype/property-line-separator-tests: New file.
53655         * modules/unictype/property-logical-order-exception-tests: New file.
53656         * modules/unictype/property-lowercase-tests: New file.
53657         * modules/unictype/property-math-tests: New file.
53658         * modules/unictype/property-non-break-tests: New file.
53659         * modules/unictype/property-not-a-character-tests: New file.
53660         * modules/unictype/property-numeric-tests: New file.
53661         * modules/unictype/property-other-alphabetic-tests: New file.
53662         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53663         * modules/unictype/property-other-grapheme-extend-tests: New file.
53664         * modules/unictype/property-other-id-continue-tests: New file.
53665         * modules/unictype/property-other-id-start-tests: New file.
53666         * modules/unictype/property-other-lowercase-tests: New file.
53667         * modules/unictype/property-other-math-tests: New file.
53668         * modules/unictype/property-other-uppercase-tests: New file.
53669         * modules/unictype/property-paired-punctuation-tests: New file.
53670         * modules/unictype/property-paragraph-separator-tests: New file.
53671         * modules/unictype/property-pattern-syntax-tests: New file.
53672         * modules/unictype/property-pattern-white-space-tests: New file.
53673         * modules/unictype/property-private-use-tests: New file.
53674         * modules/unictype/property-punctuation-tests: New file.
53675         * modules/unictype/property-quotation-mark-tests: New file.
53676         * modules/unictype/property-radical-tests: New file.
53677         * modules/unictype/property-sentence-terminal-tests: New file.
53678         * modules/unictype/property-soft-dotted-tests: New file.
53679         * modules/unictype/property-space-tests: New file.
53680         * modules/unictype/property-terminal-punctuation-tests: New file.
53681         * modules/unictype/property-test-tests: New file.
53682         * modules/unictype/property-titlecase-tests: New file.
53683         * modules/unictype/property-unassigned-code-value-tests: New file.
53684         * modules/unictype/property-unified-ideograph-tests: New file.
53685         * modules/unictype/property-uppercase-tests: New file.
53686         * modules/unictype/property-variation-selector-tests: New file.
53687         * modules/unictype/property-white-space-tests: New file.
53688         * modules/unictype/property-xid-continue-tests: New file.
53689         * modules/unictype/property-xid-start-tests: New file.
53690         * modules/unictype/property-zero-width-tests: New file.
53691         * modules/unictype/scripts-tests: New file.
53692         * modules/unictype/syntax-c-ident-tests: New file.
53693         * modules/unictype/syntax-c-whitespace-tests: New file.
53694         * modules/unictype/syntax-java-ident-tests: New file.
53695         * modules/unictype/syntax-java-whitespace-tests: New file.
53696         * tests/unictype/test-bidi_byname.c: New file.
53697         * tests/unictype/test-bidi_name.c: New file.
53698         * tests/unictype/test-bidi_of.c: New file.
53699         * tests/unictype/test-bidi_test.c: New file.
53700         * tests/unictype/test-block_list.c: New file.
53701         * tests/unictype/test-block_of.c: New file.
53702         * tests/unictype/test-block_test.c: New file.
53703         * tests/unictype/test-categ_and.c: New file.
53704         * tests/unictype/test-categ_and_not.c: New file.
53705         * tests/unictype/test-categ_byname.c: New file.
53706         * tests/unictype/test-categ_name.c: New file.
53707         * tests/unictype/test-categ_none.c: New file.
53708         * tests/unictype/test-categ_of.c: New file.
53709         * tests/unictype/test-categ_or.c: New file.
53710         * tests/unictype/test-categ_test_withtable.c: New file.
53711         * tests/unictype/test-combining.c: New file.
53712         * tests/unictype/test-decdigit.c: New file.
53713         * tests/unictype/test-digit.c: New file.
53714         * tests/unictype/test-mirror.c: New file.
53715         * tests/unictype/test-numeric.c: New file.
53716         * tests/unictype/test-pr_byname.c: New file.
53717         * tests/unictype/test-pr_test.c: New file.
53718         * tests/unictype/test-predicate-part1.h: New file.
53719         * tests/unictype/test-predicate-part2.h: New file.
53720         * tests/unictype/test-scripts.c: New file.
53721         * tests/unictype/test-sy_c_ident.c: New file.
53722         * tests/unictype/test-sy_java_ident.c: New file.
53723
53724         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53725         for Unicode 5.0.0.
53726         * tests/unictype/test-categ_Cc.c: Likewise.
53727         * tests/unictype/test-categ_Cf.c: Likewise.
53728         * tests/unictype/test-categ_Cn.c: Likewise.
53729         * tests/unictype/test-categ_Co.c: Likewise.
53730         * tests/unictype/test-categ_Cs.c: Likewise.
53731         * tests/unictype/test-categ_L.c: Likewise.
53732         * tests/unictype/test-categ_Ll.c: Likewise.
53733         * tests/unictype/test-categ_Lm.c: Likewise.
53734         * tests/unictype/test-categ_Lo.c: Likewise.
53735         * tests/unictype/test-categ_Lt.c: Likewise.
53736         * tests/unictype/test-categ_Lu.c: Likewise.
53737         * tests/unictype/test-categ_M.c: Likewise.
53738         * tests/unictype/test-categ_Mc.c: Likewise.
53739         * tests/unictype/test-categ_Me.c: Likewise.
53740         * tests/unictype/test-categ_Mn.c: Likewise.
53741         * tests/unictype/test-categ_N.c: Likewise.
53742         * tests/unictype/test-categ_Nd.c: Likewise.
53743         * tests/unictype/test-categ_Nl.c: Likewise.
53744         * tests/unictype/test-categ_No.c: Likewise.
53745         * tests/unictype/test-categ_P.c: Likewise.
53746         * tests/unictype/test-categ_Pc.c: Likewise.
53747         * tests/unictype/test-categ_Pd.c: Likewise.
53748         * tests/unictype/test-categ_Pe.c: Likewise.
53749         * tests/unictype/test-categ_Pf.c: Likewise.
53750         * tests/unictype/test-categ_Pi.c: Likewise.
53751         * tests/unictype/test-categ_Po.c: Likewise.
53752         * tests/unictype/test-categ_Ps.c: Likewise.
53753         * tests/unictype/test-categ_S.c: Likewise.
53754         * tests/unictype/test-categ_Sc.c: Likewise.
53755         * tests/unictype/test-categ_Sk.c: Likewise.
53756         * tests/unictype/test-categ_Sm.c: Likewise.
53757         * tests/unictype/test-categ_So.c: Likewise.
53758         * tests/unictype/test-categ_Z.c: Likewise.
53759         * tests/unictype/test-categ_Zl.c: Likewise.
53760         * tests/unictype/test-categ_Zp.c: Likewise.
53761         * tests/unictype/test-categ_Zs.c: Likewise.
53762         * tests/unictype/test-ctype_alnum.c: Likewise.
53763         * tests/unictype/test-ctype_alpha.c: Likewise.
53764         * tests/unictype/test-ctype_blank.c: Likewise.
53765         * tests/unictype/test-ctype_cntrl.c: Likewise.
53766         * tests/unictype/test-ctype_digit.c: Likewise.
53767         * tests/unictype/test-ctype_graph.c: Likewise.
53768         * tests/unictype/test-ctype_lower.c: Likewise.
53769         * tests/unictype/test-ctype_print.c: Likewise.
53770         * tests/unictype/test-ctype_punct.c: Likewise.
53771         * tests/unictype/test-ctype_space.c: Likewise.
53772         * tests/unictype/test-ctype_upper.c: Likewise.
53773         * tests/unictype/test-ctype_xdigit.c: Likewise.
53774         * tests/unictype/test-decdigit.h: Likewise.
53775         * tests/unictype/test-digit.h: Likewise.
53776         * tests/unictype/test-numeric.h: Likewise.
53777         * tests/unictype/test-pr_alphabetic.c: Likewise.
53778         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53779         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53780         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53781         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53782         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53783         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53784         * tests/unictype/test-pr_bidi_control.c: Likewise.
53785         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53786         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53787         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53788         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53789         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53790         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53791         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53792         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53793         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53794         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53795         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53796         * tests/unictype/test-pr_combining.c: Likewise.
53797         * tests/unictype/test-pr_composite.c: Likewise.
53798         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53799         * tests/unictype/test-pr_dash.c: Likewise.
53800         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53801         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53802         * tests/unictype/test-pr_deprecated.c: Likewise.
53803         * tests/unictype/test-pr_diacritic.c: Likewise.
53804         * tests/unictype/test-pr_extender.c: Likewise.
53805         * tests/unictype/test-pr_format_control.c: Likewise.
53806         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53807         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53808         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53809         * tests/unictype/test-pr_hex_digit.c: Likewise.
53810         * tests/unictype/test-pr_hyphen.c: Likewise.
53811         * tests/unictype/test-pr_id_continue.c: Likewise.
53812         * tests/unictype/test-pr_id_start.c: Likewise.
53813         * tests/unictype/test-pr_ideographic.c: Likewise.
53814         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53815         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53816         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53817         * tests/unictype/test-pr_iso_control.c: Likewise.
53818         * tests/unictype/test-pr_join_control.c: Likewise.
53819         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53820         * tests/unictype/test-pr_line_separator.c: Likewise.
53821         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53822         * tests/unictype/test-pr_lowercase.c: Likewise.
53823         * tests/unictype/test-pr_math.c: Likewise.
53824         * tests/unictype/test-pr_non_break.c: Likewise.
53825         * tests/unictype/test-pr_not_a_character.c: Likewise.
53826         * tests/unictype/test-pr_numeric.c: Likewise.
53827         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53828         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53829         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53830         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53831         * tests/unictype/test-pr_other_id_start.c: Likewise.
53832         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53833         * tests/unictype/test-pr_other_math.c: Likewise.
53834         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53835         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53836         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53837         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53838         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53839         * tests/unictype/test-pr_private_use.c: Likewise.
53840         * tests/unictype/test-pr_punctuation.c: Likewise.
53841         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53842         * tests/unictype/test-pr_radical.c: Likewise.
53843         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53844         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53845         * tests/unictype/test-pr_space.c: Likewise.
53846         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53847         * tests/unictype/test-pr_titlecase.c: Likewise.
53848         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53849         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53850         * tests/unictype/test-pr_uppercase.c: Likewise.
53851         * tests/unictype/test-pr_variation_selector.c: Likewise.
53852         * tests/unictype/test-pr_white_space.c: Likewise.
53853         * tests/unictype/test-pr_xid_continue.c: Likewise.
53854         * tests/unictype/test-pr_xid_start.c: Likewise.
53855         * tests/unictype/test-pr_zero_width.c: Likewise.
53856         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53857         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53858
53859 2007-11-12  Bruno Haible  <bruno@clisp.org>
53860
53861         Unicode character classification functions.
53862         * lib/unictype.h: New file.
53863         * modules/unictype/base: New file.
53864         * modules/unictype/category-L: New file.
53865         * modules/unictype/category-Lu: New file.
53866         * modules/unictype/category-Ll: New file.
53867         * modules/unictype/category-Lt: New file.
53868         * modules/unictype/category-Lm: New file.
53869         * modules/unictype/category-Lo: New file.
53870         * modules/unictype/category-M: New file.
53871         * modules/unictype/category-Mn: New file.
53872         * modules/unictype/category-Mc: New file.
53873         * modules/unictype/category-Me: New file.
53874         * modules/unictype/category-N: New file.
53875         * modules/unictype/category-Nd: New file.
53876         * modules/unictype/category-Nl: New file.
53877         * modules/unictype/category-No: New file.
53878         * modules/unictype/category-P: New file.
53879         * modules/unictype/category-Pc: New file.
53880         * modules/unictype/category-Pd: New file.
53881         * modules/unictype/category-Ps: New file.
53882         * modules/unictype/category-Pe: New file.
53883         * modules/unictype/category-Pi: New file.
53884         * modules/unictype/category-Pf: New file.
53885         * modules/unictype/category-Po: New file.
53886         * modules/unictype/category-S: New file.
53887         * modules/unictype/category-Sm: New file.
53888         * modules/unictype/category-Sc: New file.
53889         * modules/unictype/category-Sk: New file.
53890         * modules/unictype/category-So: New file.
53891         * modules/unictype/category-Z: New file.
53892         * modules/unictype/category-Zs: New file.
53893         * modules/unictype/category-Zl: New file.
53894         * modules/unictype/category-Zp: New file.
53895         * modules/unictype/category-C: New file.
53896         * modules/unictype/category-Cc: New file.
53897         * modules/unictype/category-Cf: New file.
53898         * modules/unictype/category-Cs: New file.
53899         * modules/unictype/category-Co: New file.
53900         * modules/unictype/category-Cn: New file.
53901         * modules/unictype/category-or: New file.
53902         * modules/unictype/category-of: New file.
53903         * modules/unictype/category-test: New file.
53904         * modules/unictype/category-test-withtable: New file.
53905         * modules/unictype/category-byname: New file.
53906         * modules/unictype/category-none: New file.
53907         * modules/unictype/category-and: New file.
53908         * modules/unictype/category-and-not: New file.
53909         * modules/unictype/category-name: New file.
53910         * modules/unictype/combining-class: New file.
53911         * modules/unictype/category-all: New file.
53912         * modules/unictype/bidicategory-all: New file.
53913         * modules/unictype/bidicategory-byname: New file.
53914         * modules/unictype/bidicategory-name: New file.
53915         * modules/unictype/bidicategory-of: New file.
53916         * modules/unictype/bidicategory-test: New file.
53917         * modules/unictype/decimal-digit: New file.
53918         * modules/unictype/digit: New file.
53919         * modules/unictype/numeric: New file.
53920         * modules/unictype/mirror: New file.
53921         * modules/unictype/property-white-space: New file.
53922         * modules/unictype/property-alphabetic: New file.
53923         * modules/unictype/property-other-alphabetic: New file.
53924         * modules/unictype/property-not-a-character: New file.
53925         * modules/unictype/property-default-ignorable-code-point: New file.
53926         * modules/unictype/property-other-default-ignorable-code-point: New
53927         file.
53928         * modules/unictype/property-deprecated: New file.
53929         * modules/unictype/property-logical-order-exception: New file.
53930         * modules/unictype/property-variation-selector: New file.
53931         * modules/unictype/property-private-use: New file.
53932         * modules/unictype/property-unassigned-code-value: New file.
53933         * modules/unictype/property-uppercase: New file.
53934         * modules/unictype/property-other-uppercase: New file.
53935         * modules/unictype/property-lowercase: New file.
53936         * modules/unictype/property-other-lowercase: New file.
53937         * modules/unictype/property-titlecase: New file.
53938         * modules/unictype/property-soft-dotted: New file.
53939         * modules/unictype/property-id-start: New file.
53940         * modules/unictype/property-other-id-start: New file.
53941         * modules/unictype/property-id-continue: New file.
53942         * modules/unictype/property-other-id-continue: New file.
53943         * modules/unictype/property-xid-start: New file.
53944         * modules/unictype/property-xid-continue: New file.
53945         * modules/unictype/property-pattern-white-space: New file.
53946         * modules/unictype/property-pattern-syntax: New file.
53947         * modules/unictype/property-join-control: New file.
53948         * modules/unictype/property-grapheme-base: New file.
53949         * modules/unictype/property-grapheme-extend: New file.
53950         * modules/unictype/property-other-grapheme-extend: New file.
53951         * modules/unictype/property-grapheme-link: New file.
53952         * modules/unictype/property-bidi-control: New file.
53953         * modules/unictype/property-bidi-left-to-right: New file.
53954         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53955         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53956         * modules/unictype/property-bidi-european-digit: New file.
53957         * modules/unictype/property-bidi-eur-num-separator: New file.
53958         * modules/unictype/property-bidi-eur-num-terminator: New file.
53959         * modules/unictype/property-bidi-arabic-digit: New file.
53960         * modules/unictype/property-bidi-common-separator: New file.
53961         * modules/unictype/property-bidi-block-separator: New file.
53962         * modules/unictype/property-bidi-segment-separator: New file.
53963         * modules/unictype/property-bidi-whitespace: New file.
53964         * modules/unictype/property-bidi-non-spacing-mark: New file.
53965         * modules/unictype/property-bidi-boundary-neutral: New file.
53966         * modules/unictype/property-bidi-pdf: New file.
53967         * modules/unictype/property-bidi-embedding-or-override: New file.
53968         * modules/unictype/property-bidi-other-neutral: New file.
53969         * modules/unictype/property-hex-digit: New file.
53970         * modules/unictype/property-ascii-hex-digit: New file.
53971         * modules/unictype/property-ideographic: New file.
53972         * modules/unictype/property-unified-ideograph: New file.
53973         * modules/unictype/property-radical: New file.
53974         * modules/unictype/property-ids-binary-operator: New file.
53975         * modules/unictype/property-ids-trinary-operator: New file.
53976         * modules/unictype/property-zero-width: New file.
53977         * modules/unictype/property-space: New file.
53978         * modules/unictype/property-non-break: New file.
53979         * modules/unictype/property-iso-control: New file.
53980         * modules/unictype/property-format-control: New file.
53981         * modules/unictype/property-dash: New file.
53982         * modules/unictype/property-hyphen: New file.
53983         * modules/unictype/property-punctuation: New file.
53984         * modules/unictype/property-line-separator: New file.
53985         * modules/unictype/property-paragraph-separator: New file.
53986         * modules/unictype/property-quotation-mark: New file.
53987         * modules/unictype/property-sentence-terminal: New file.
53988         * modules/unictype/property-terminal-punctuation: New file.
53989         * modules/unictype/property-currency-symbol: New file.
53990         * modules/unictype/property-math: New file.
53991         * modules/unictype/property-other-math: New file.
53992         * modules/unictype/property-paired-punctuation: New file.
53993         * modules/unictype/property-left-of-pair: New file.
53994         * modules/unictype/property-combining: New file.
53995         * modules/unictype/property-composite: New file.
53996         * modules/unictype/property-decimal-digit: New file.
53997         * modules/unictype/property-numeric: New file.
53998         * modules/unictype/property-diacritic: New file.
53999         * modules/unictype/property-extender: New file.
54000         * modules/unictype/property-ignorable-control: New file.
54001         * modules/unictype/property-test: New file.
54002         * modules/unictype/property-byname: New file.
54003         * modules/unictype/property-all: New file.
54004         * modules/unictype/scripts: New file.
54005         * modules/unictype/scripts-all: New file.
54006         * modules/unictype/block-of: New file.
54007         * modules/unictype/block-test: New file.
54008         * modules/unictype/block-list: New file.
54009         * modules/unictype/block-all: New file.
54010         * modules/unictype/syntax-c-whitespace: New file.
54011         * modules/unictype/syntax-java-whitespace: New file.
54012         * modules/unictype/syntax-c-ident: New file.
54013         * modules/unictype/syntax-java-ident: New file.
54014         * modules/unictype/ctype-alnum: New file.
54015         * modules/unictype/ctype-alpha: New file.
54016         * modules/unictype/ctype-cntrl: New file.
54017         * modules/unictype/ctype-digit: New file.
54018         * modules/unictype/ctype-graph: New file.
54019         * modules/unictype/ctype-lower: New file.
54020         * modules/unictype/ctype-print: New file.
54021         * modules/unictype/ctype-punct: New file.
54022         * modules/unictype/ctype-space: New file.
54023         * modules/unictype/ctype-upper: New file.
54024         * modules/unictype/ctype-xdigit: New file.
54025         * modules/unictype/ctype-blank: New file.
54026         * lib/unictype/bidi_byname.c: New file.
54027         * lib/unictype/bidi_name.c: New file.
54028         * lib/unictype/bidi_of.c: New file.
54029         * lib/unictype/bidi_test.c: New file.
54030         * lib/unictype/bitmap.h: New file.
54031         * lib/unictype/block_test.c: New file.
54032         * lib/unictype/blocks.c: New file.
54033         * lib/unictype/categ_C.c: New file.
54034         * lib/unictype/categ_Cc.c: New file.
54035         * lib/unictype/categ_Cf.c: New file.
54036         * lib/unictype/categ_Cn.c: New file.
54037         * lib/unictype/categ_Co.c: New file.
54038         * lib/unictype/categ_Cs.c: New file.
54039         * lib/unictype/categ_L.c: New file.
54040         * lib/unictype/categ_Ll.c: New file.
54041         * lib/unictype/categ_Lm.c: New file.
54042         * lib/unictype/categ_Lo.c: New file.
54043         * lib/unictype/categ_Lt.c: New file.
54044         * lib/unictype/categ_Lu.c: New file.
54045         * lib/unictype/categ_M.c: New file.
54046         * lib/unictype/categ_Mc.c: New file.
54047         * lib/unictype/categ_Me.c: New file.
54048         * lib/unictype/categ_Mn.c: New file.
54049         * lib/unictype/categ_N.c: New file.
54050         * lib/unictype/categ_Nd.c: New file.
54051         * lib/unictype/categ_Nl.c: New file.
54052         * lib/unictype/categ_No.c: New file.
54053         * lib/unictype/categ_P.c: New file.
54054         * lib/unictype/categ_Pc.c: New file.
54055         * lib/unictype/categ_Pd.c: New file.
54056         * lib/unictype/categ_Pe.c: New file.
54057         * lib/unictype/categ_Pf.c: New file.
54058         * lib/unictype/categ_Pi.c: New file.
54059         * lib/unictype/categ_Po.c: New file.
54060         * lib/unictype/categ_Ps.c: New file.
54061         * lib/unictype/categ_S.c: New file.
54062         * lib/unictype/categ_Sc.c: New file.
54063         * lib/unictype/categ_Sk.c: New file.
54064         * lib/unictype/categ_Sm.c: New file.
54065         * lib/unictype/categ_So.c: New file.
54066         * lib/unictype/categ_Z.c: New file.
54067         * lib/unictype/categ_Zl.c: New file.
54068         * lib/unictype/categ_Zp.c: New file.
54069         * lib/unictype/categ_Zs.c: New file.
54070         * lib/unictype/categ_and.c: New file.
54071         * lib/unictype/categ_and_not.c: New file.
54072         * lib/unictype/categ_byname.c: New file.
54073         * lib/unictype/categ_name.c: New file.
54074         * lib/unictype/categ_none.c: New file.
54075         * lib/unictype/categ_of.c: New file.
54076         * lib/unictype/categ_or.c: New file.
54077         * lib/unictype/categ_test.c: New file.
54078         * lib/unictype/combining.c: New file.
54079         * lib/unictype/ctype_alnum.c: New file.
54080         * lib/unictype/ctype_alpha.c: New file.
54081         * lib/unictype/ctype_blank.c: New file.
54082         * lib/unictype/ctype_cntrl.c: New file.
54083         * lib/unictype/ctype_digit.c: New file.
54084         * lib/unictype/ctype_graph.c: New file.
54085         * lib/unictype/ctype_lower.c: New file.
54086         * lib/unictype/ctype_print.c: New file.
54087         * lib/unictype/ctype_punct.c: New file.
54088         * lib/unictype/ctype_space.c: New file.
54089         * lib/unictype/ctype_upper.c: New file.
54090         * lib/unictype/ctype_xdigit.c: New file.
54091         * lib/unictype/decdigit.c: New file.
54092         * lib/unictype/digit.c: New file.
54093         * lib/unictype/identsyntaxmap.h: New file.
54094         * lib/unictype/mirror.c: New file.
54095         * lib/unictype/numeric.c: New file.
54096         * lib/unictype/pr_alphabetic.c: New file.
54097         * lib/unictype/pr_ascii_hex_digit.c: New file.
54098         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54099         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54100         * lib/unictype/pr_bidi_block_separator.c: New file.
54101         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54102         * lib/unictype/pr_bidi_common_separator.c: New file.
54103         * lib/unictype/pr_bidi_control.c: New file.
54104         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54105         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54106         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54107         * lib/unictype/pr_bidi_european_digit.c: New file.
54108         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54109         * lib/unictype/pr_bidi_left_to_right.c: New file.
54110         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54111         * lib/unictype/pr_bidi_other_neutral.c: New file.
54112         * lib/unictype/pr_bidi_pdf.c: New file.
54113         * lib/unictype/pr_bidi_segment_separator.c: New file.
54114         * lib/unictype/pr_bidi_whitespace.c: New file.
54115         * lib/unictype/pr_byname.c: New file.
54116         * lib/unictype/pr_byname.gperf: New file.
54117         * lib/unictype/pr_combining.c: New file.
54118         * lib/unictype/pr_composite.c: New file.
54119         * lib/unictype/pr_currency_symbol.c: New file.
54120         * lib/unictype/pr_dash.c: New file.
54121         * lib/unictype/pr_decimal_digit.c: New file.
54122         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54123         * lib/unictype/pr_deprecated.c: New file.
54124         * lib/unictype/pr_diacritic.c: New file.
54125         * lib/unictype/pr_extender.c: New file.
54126         * lib/unictype/pr_format_control.c: New file.
54127         * lib/unictype/pr_grapheme_base.c: New file.
54128         * lib/unictype/pr_grapheme_extend.c: New file.
54129         * lib/unictype/pr_grapheme_link.c: New file.
54130         * lib/unictype/pr_hex_digit.c: New file.
54131         * lib/unictype/pr_hyphen.c: New file.
54132         * lib/unictype/pr_id_continue.c: New file.
54133         * lib/unictype/pr_id_start.c: New file.
54134         * lib/unictype/pr_ideographic.c: New file.
54135         * lib/unictype/pr_ids_binary_operator.c: New file.
54136         * lib/unictype/pr_ids_trinary_operator.c: New file.
54137         * lib/unictype/pr_ignorable_control.c: New file.
54138         * lib/unictype/pr_iso_control.c: New file.
54139         * lib/unictype/pr_join_control.c: New file.
54140         * lib/unictype/pr_left_of_pair.c: New file.
54141         * lib/unictype/pr_line_separator.c: New file.
54142         * lib/unictype/pr_logical_order_exception.c: New file.
54143         * lib/unictype/pr_lowercase.c: New file.
54144         * lib/unictype/pr_math.c: New file.
54145         * lib/unictype/pr_non_break.c: New file.
54146         * lib/unictype/pr_not_a_character.c: New file.
54147         * lib/unictype/pr_numeric.c: New file.
54148         * lib/unictype/pr_other_alphabetic.c: New file.
54149         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54150         * lib/unictype/pr_other_grapheme_extend.c: New file.
54151         * lib/unictype/pr_other_id_continue.c: New file.
54152         * lib/unictype/pr_other_id_start.c: New file.
54153         * lib/unictype/pr_other_lowercase.c: New file.
54154         * lib/unictype/pr_other_math.c: New file.
54155         * lib/unictype/pr_other_uppercase.c: New file.
54156         * lib/unictype/pr_paired_punctuation.c: New file.
54157         * lib/unictype/pr_paragraph_separator.c: New file.
54158         * lib/unictype/pr_pattern_syntax.c: New file.
54159         * lib/unictype/pr_pattern_white_space.c: New file.
54160         * lib/unictype/pr_private_use.c: New file.
54161         * lib/unictype/pr_punctuation.c: New file.
54162         * lib/unictype/pr_quotation_mark.c: New file.
54163         * lib/unictype/pr_radical.c: New file.
54164         * lib/unictype/pr_sentence_terminal.c: New file.
54165         * lib/unictype/pr_soft_dotted.c: New file.
54166         * lib/unictype/pr_space.c: New file.
54167         * lib/unictype/pr_terminal_punctuation.c: New file.
54168         * lib/unictype/pr_test.c: New file.
54169         * lib/unictype/pr_titlecase.c: New file.
54170         * lib/unictype/pr_unassigned_code_value.c: New file.
54171         * lib/unictype/pr_unified_ideograph.c: New file.
54172         * lib/unictype/pr_uppercase.c: New file.
54173         * lib/unictype/pr_variation_selector.c: New file.
54174         * lib/unictype/pr_white_space.c: New file.
54175         * lib/unictype/pr_xid_continue.c: New file.
54176         * lib/unictype/pr_xid_start.c: New file.
54177         * lib/unictype/pr_zero_width.c: New file.
54178         * lib/unictype/scripts.c: New file.
54179         * lib/unictype/sy_c_ident.c: New file.
54180         * lib/unictype/sy_c_whitespace.c: New file.
54181         * lib/unictype/sy_java_ident.c: New file.
54182         * lib/unictype/sy_java_whitespace.c: New file.
54183
54184         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54185         Unicode 5.0.0.
54186         * lib/unictype/blocks.h: Likewise.
54187         * lib/unictype/categ_C.h: Likewise.
54188         * lib/unictype/categ_Cc.h: Likewise.
54189         * lib/unictype/categ_Cf.h: Likewise.
54190         * lib/unictype/categ_Cn.h: Likewise.
54191         * lib/unictype/categ_Co.h: Likewise.
54192         * lib/unictype/categ_Cs.h: Likewise.
54193         * lib/unictype/categ_L.h: Likewise.
54194         * lib/unictype/categ_Ll.h: Likewise.
54195         * lib/unictype/categ_Lm.h: Likewise.
54196         * lib/unictype/categ_Lo.h: Likewise.
54197         * lib/unictype/categ_Lt.h: Likewise.
54198         * lib/unictype/categ_Lu.h: Likewise.
54199         * lib/unictype/categ_M.h: Likewise.
54200         * lib/unictype/categ_Mc.h: Likewise.
54201         * lib/unictype/categ_Me.h: Likewise.
54202         * lib/unictype/categ_Mn.h: Likewise.
54203         * lib/unictype/categ_N.h: Likewise.
54204         * lib/unictype/categ_Nd.h: Likewise.
54205         * lib/unictype/categ_Nl.h: Likewise.
54206         * lib/unictype/categ_No.h: Likewise.
54207         * lib/unictype/categ_P.h: Likewise.
54208         * lib/unictype/categ_Pc.h: Likewise.
54209         * lib/unictype/categ_Pd.h: Likewise.
54210         * lib/unictype/categ_Pe.h: Likewise.
54211         * lib/unictype/categ_Pf.h: Likewise.
54212         * lib/unictype/categ_Pi.h: Likewise.
54213         * lib/unictype/categ_Po.h: Likewise.
54214         * lib/unictype/categ_Ps.h: Likewise.
54215         * lib/unictype/categ_S.h: Likewise.
54216         * lib/unictype/categ_Sc.h: Likewise.
54217         * lib/unictype/categ_Sk.h: Likewise.
54218         * lib/unictype/categ_Sm.h: Likewise.
54219         * lib/unictype/categ_So.h: Likewise.
54220         * lib/unictype/categ_Z.h: Likewise.
54221         * lib/unictype/categ_Zl.h: Likewise.
54222         * lib/unictype/categ_Zp.h: Likewise.
54223         * lib/unictype/categ_Zs.h: Likewise.
54224         * lib/unictype/categ_of.h: Likewise.
54225         * lib/unictype/combining.h: Likewise.
54226         * lib/unictype/ctype_alnum.h: Likewise.
54227         * lib/unictype/ctype_alpha.h: Likewise.
54228         * lib/unictype/ctype_blank.h: Likewise.
54229         * lib/unictype/ctype_cntrl.h: Likewise.
54230         * lib/unictype/ctype_digit.h: Likewise.
54231         * lib/unictype/ctype_graph.h: Likewise.
54232         * lib/unictype/ctype_lower.h: Likewise.
54233         * lib/unictype/ctype_print.h: Likewise.
54234         * lib/unictype/ctype_punct.h: Likewise.
54235         * lib/unictype/ctype_space.h: Likewise.
54236         * lib/unictype/ctype_upper.h: Likewise.
54237         * lib/unictype/ctype_xdigit.h: Likewise.
54238         * lib/unictype/decdigit.h: Likewise.
54239         * lib/unictype/digit.h: Likewise.
54240         * lib/unictype/mirror.h: Likewise.
54241         * lib/unictype/numeric.h: Likewise.
54242         * lib/unictype/pr_alphabetic.h: Likewise.
54243         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54244         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54245         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54246         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54247         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54248         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54249         * lib/unictype/pr_bidi_control.h: Likewise.
54250         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54251         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54252         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54253         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54254         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54255         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54256         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54257         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54258         * lib/unictype/pr_bidi_pdf.h: Likewise.
54259         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54260         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54261         * lib/unictype/pr_combining.h: Likewise.
54262         * lib/unictype/pr_composite.h: Likewise.
54263         * lib/unictype/pr_currency_symbol.h: Likewise.
54264         * lib/unictype/pr_dash.h: Likewise.
54265         * lib/unictype/pr_decimal_digit.h: Likewise.
54266         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54267         * lib/unictype/pr_deprecated.h: Likewise.
54268         * lib/unictype/pr_diacritic.h: Likewise.
54269         * lib/unictype/pr_extender.h: Likewise.
54270         * lib/unictype/pr_format_control.h: Likewise.
54271         * lib/unictype/pr_grapheme_base.h: Likewise.
54272         * lib/unictype/pr_grapheme_extend.h: Likewise.
54273         * lib/unictype/pr_grapheme_link.h: Likewise.
54274         * lib/unictype/pr_hex_digit.h: Likewise.
54275         * lib/unictype/pr_hyphen.h: Likewise.
54276         * lib/unictype/pr_id_continue.h: Likewise.
54277         * lib/unictype/pr_id_start.h: Likewise.
54278         * lib/unictype/pr_ideographic.h: Likewise.
54279         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54280         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54281         * lib/unictype/pr_ignorable_control.h: Likewise.
54282         * lib/unictype/pr_iso_control.h: Likewise.
54283         * lib/unictype/pr_join_control.h: Likewise.
54284         * lib/unictype/pr_left_of_pair.h: Likewise.
54285         * lib/unictype/pr_line_separator.h: Likewise.
54286         * lib/unictype/pr_logical_order_exception.h: Likewise.
54287         * lib/unictype/pr_lowercase.h: Likewise.
54288         * lib/unictype/pr_math.h: Likewise.
54289         * lib/unictype/pr_non_break.h: Likewise.
54290         * lib/unictype/pr_not_a_character.h: Likewise.
54291         * lib/unictype/pr_numeric.h: Likewise.
54292         * lib/unictype/pr_other_alphabetic.h: Likewise.
54293         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54294         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54295         * lib/unictype/pr_other_id_continue.h: Likewise.
54296         * lib/unictype/pr_other_id_start.h: Likewise.
54297         * lib/unictype/pr_other_lowercase.h: Likewise.
54298         * lib/unictype/pr_other_math.h: Likewise.
54299         * lib/unictype/pr_other_uppercase.h: Likewise.
54300         * lib/unictype/pr_paired_punctuation.h: Likewise.
54301         * lib/unictype/pr_paragraph_separator.h: Likewise.
54302         * lib/unictype/pr_pattern_syntax.h: Likewise.
54303         * lib/unictype/pr_pattern_white_space.h: Likewise.
54304         * lib/unictype/pr_private_use.h: Likewise.
54305         * lib/unictype/pr_punctuation.h: Likewise.
54306         * lib/unictype/pr_quotation_mark.h: Likewise.
54307         * lib/unictype/pr_radical.h: Likewise.
54308         * lib/unictype/pr_sentence_terminal.h: Likewise.
54309         * lib/unictype/pr_soft_dotted.h: Likewise.
54310         * lib/unictype/pr_space.h: Likewise.
54311         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54312         * lib/unictype/pr_titlecase.h: Likewise.
54313         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54314         * lib/unictype/pr_unified_ideograph.h: Likewise.
54315         * lib/unictype/pr_uppercase.h: Likewise.
54316         * lib/unictype/pr_variation_selector.h: Likewise.
54317         * lib/unictype/pr_white_space.h: Likewise.
54318         * lib/unictype/pr_xid_continue.h: Likewise.
54319         * lib/unictype/pr_xid_start.h: Likewise.
54320         * lib/unictype/pr_zero_width.h: Likewise.
54321         * lib/unictype/scripts.h: Likewise.
54322         * lib/unictype/scripts_byname.gperf: Likewise.
54323         * lib/unictype/sy_c_ident.h: Likewise.
54324         * lib/unictype/sy_c_whitespace.h: Likewise.
54325         * lib/unictype/sy_java_ident.h: Likewise.
54326         * lib/unictype/sy_java_whitespace.h: Likewise.
54327
54328         * lib/unictype/Makefile: New file.
54329         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54330         glibc.
54331         * lib/unictype/3level.h: New file, copied from glibc.
54332         * lib/unictype/3levelbit.h: New file.
54333
54334 2007-11-11  Bruno Haible  <bruno@clisp.org>
54335
54336         * modules/gperf: New file.
54337         * modules/iconv_open (Depends-on): Add it.
54338         (Makefile.am): Remove the GPERF definition.
54339
54340 2007-11-11  Bruno Haible  <bruno@clisp.org>
54341
54342         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54343         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54344
54345 2007-11-11  Bruno Haible  <bruno@clisp.org>
54346
54347         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54348         (usage): Remove function.
54349
54350 2007-11-11  Bruno Haible  <bruno@clisp.org>
54351
54352         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54353         gl_FUNC_CEILF_LIBS.
54354         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54355         gl_FUNC_CEIL_LIBS.
54356         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54357         gl_FUNC_CEILL_LIBS.
54358         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54359         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54360         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54361
54362 2007-11-11  Bruno Haible  <bruno@clisp.org>
54363
54364         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54365         roundf were declared but do not exist on functions.
54366         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54367         roundl were declared but do not exist on functions.
54368         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54369         HAVE_FLOORL_AND_CEILL, respectively.
54370         Needed for Sun C on Solaris 10.
54371
54372 2007-11-11  Bruno Haible  <bruno@clisp.org>
54373
54374         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54375         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54376         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54377         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54378         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54379         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54380         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54381         HAVE_DECL_ROUNDF.
54382         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54383         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54385         of HAVE_DECL_ROUND*.
54386         * modules/math (Makefile.am): Update.
54387
54388 2007-11-10  Bruno Haible  <bruno@clisp.org>
54389
54390         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54391         ptrdiff_t as m4/intl.m4.
54392
54393 2007-11-10  Jim Meyering  <meyering@redhat.com>
54394
54395         Avoid link failure for the argmatch test.
54396         * tests/test-argmatch.c (usage): Define function to avoid a link
54397         failure: argmatch_die requires a usage function.
54398
54399 2007-11-09  Bruno Haible  <bruno@clisp.org>
54400
54401         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54402         * doc/functions/vsnprintf.texi: Likewise.
54403         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54404         with a size argument < 2.
54405
54406 2007-11-09  Bruno Haible  <bruno@clisp.org>
54407
54408         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54409         buffer. Fixes an inefficiency introduced on 2007-11-03.
54410
54411 2007-11-09  Bruno Haible  <bruno@clisp.org>
54412
54413         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54414         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54415
54416 2007-11-08  Jim Meyering  <meyering@redhat.com>
54417
54418         Change cache variable name prefix "jm_" to "gl_" everywhere.
54419         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54420         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54421         * m4/uptime.m4: s/gl_/jm_/
54422
54423 2007-11-07  Bruno Haible  <bruno@clisp.org>
54424
54425         Update to GNU gettext 0.17.
54426         * m4/intl.m4: Update to GNU gettext 0.17.
54427         * m4/po.m4: Likewise.
54428         * modules/gettext (Files): Remove m4/ulonglong.m4.
54429         (configure.ac): Require gettext infrastructure from version 0.17.
54430
54431 2007-11-06  Bruno Haible  <bruno@clisp.org>
54432
54433         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54434         symbolic values are not defined in a public header.
54435         * lib/freadable.c (freadable) [QNX]: Likewise.
54436         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54437         * lib/freading.c (freading) [QNX]: Likewise.
54438         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54439         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54440         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54441         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54442         Reported by Alain Magloire.
54443
54444         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54445
54446 2007-11-05  Bruno Haible  <bruno@clisp.org>
54447
54448         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54449         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54450         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54451         Reported by Eric Blake.
54452
54453 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54454             Bruno Haible  <bruno@clisp.org>
54455
54456         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54457         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54458         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54459         (malloc): Undefine also before including <stdlib.h>.
54460         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54461         Needed on OSF/1 4.0.
54462
54463 2007-11-05  Jim Meyering  <meyering@redhat.com>
54464
54465         git-version-gen: sync from coreutils.
54466         * build-aux/git-version-gen: Add comments.
54467         Change the first '-' to '.' in the snapshot version string,
54468         e.g., 6.9-377-08144 -> 6.9.377-08144
54469         Remove first parameter.
54470         Don't declare a version "-dirty" merely because a time
54471         stamp has changed.
54472
54473 2007-11-04  Bruno Haible  <bruno@clisp.org>
54474
54475         * lib/lock.h: Protect all macro definitions containing an 'if'
54476         statement through a "do { ... } while (0)".
54477         * lib/tls.h: Likewise.
54478
54479 2007-11-04  Bruno Haible  <bruno@clisp.org>
54480
54481         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54482
54483 2007-11-04  Bruno Haible  <bruno@clisp.org>
54484
54485         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54486         * modules/fprintf-posix (Depends-on): Add nocrash.
54487         * modules/snprintf-posix (Depends-on): Likewise.
54488         * modules/sprintf-posix (Depends-on): Likewise.
54489         * modules/vasnprintf-posix (Depends-on): Likewise.
54490         * modules/vasprintf-posix (Depends-on): Likewise.
54491         * modules/vfprintf-posix (Depends-on): Likewise.
54492         * modules/vsnprintf-posix (Depends-on): Likewise.
54493         * modules/vsprintf-posix (Depends-on): Likewise.
54494         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54495         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54496         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54497         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54498         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54499         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54500         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54501
54502 2007-11-04  Bruno Haible  <bruno@clisp.org>
54503
54504         * modules/nocrash: New file.
54505         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54506         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54507
54508 2007-11-04  Bruno Haible  <bruno@clisp.org>
54509
54510         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54511         precision handling.
54512         * tests/test-vasprintf-posix.c (test_function): Likewise.
54513         * tests/test-snprintf-posix.h (test_function): Likewise.
54514         * tests/test-sprintf-posix.h (test_function): Likewise.
54515
54516         Fix *printf behaviour for large precisions on mingw and BeOS.
54517         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54518         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54519         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54520         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54521         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54522         gl_PRINTF_PRECISION and test its result. Invoke
54523         gl_PREREQ_VASNPRINTF_PRECISION.
54524         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54525         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54526         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54527         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54528         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54529         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54530         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54531         * doc/functions/fprintf.texi: Update.
54532         * doc/functions/printf.texi: Update.
54533         * doc/functions/snprintf.texi: Update.
54534         * doc/functions/sprintf.texi: Update.
54535         * doc/functions/vfprintf.texi: Update.
54536         * doc/functions/vprintf.texi: Update.
54537         * doc/functions/vsnprintf.texi: Update.
54538         * doc/functions/vsprintf.texi: Update.
54539
54540 2007-11-04  Bruno Haible  <bruno@clisp.org>
54541
54542         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54543
54544 2007-11-04  Bruno Haible  <bruno@clisp.org>
54545
54546         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54547         Reported by Sylvain Beucler <beuc@gnu.org>.
54548
54549 2007-11-03  Bruno Haible  <bruno@clisp.org>
54550
54551         * tests/test-fprintf-posix2.sh: New file.
54552         * tests/test-fprintf-posix2.c: New file.
54553         * modules/fprintf-posix-tests (Files): Add them.
54554         (TESTS): Add test-fprintf-posix2.sh.
54555         (configure.ac): Check for getrlimit and setrlimit.
54556         (check_PROGRAMS): Add test-fprintf-posix2.
54557
54558         * tests/test-printf-posix2.sh: New file.
54559         * tests/test-printf-posix2.c: New file.
54560         * modules/printf-posix-tests (Files): Add them.
54561         (TESTS): Add test-printf-posix2.sh.
54562         (configure.ac): Check for getrlimit and setrlimit.
54563         (check_PROGRAMS): Add test-printf-posix2.
54564
54565         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54566         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54567         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54568         (decode_double): New function, copied from decode_long_double.
54569         (scale10_round_decimal_decoded): New function, extracted from
54570         scale10_round_decimal_long_double.
54571         (scale10_round_decimal_long_double): Use it.
54572         (scale10_round_decimal_double): New function.
54573         (floorlog10): New function.
54574         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54576         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54577         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54578         gl_PRINTF_ENOMEM and test its result. Invoke
54579         gl_PREREQ_VASNPRINTF_ENOMEM.
54580         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54581         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54582         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54584         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54586         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54587         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54588         * modules/snprintf-posix (Depends-on): Likewise.
54589         * modules/sprintf-posix (Depends-on): Likewise.
54590         * modules/vasnprintf-posix (Depends-on): Likewise.
54591         * modules/vasprintf-posix (Depends-on): Likewise.
54592         * modules/vfprintf-posix (Depends-on): Likewise.
54593         * modules/vsnprintf-posix (Depends-on): Likewise.
54594         * modules/vsprintf-posix (Depends-on): Likewise.
54595         * doc/functions/fprintf.texi: Update.
54596         * doc/functions/printf.texi: Update.
54597         * doc/functions/snprintf.texi: Update.
54598         * doc/functions/sprintf.texi: Update.
54599         * doc/functions/vfprintf.texi: Update.
54600         * doc/functions/vprintf.texi: Update.
54601         * doc/functions/vsnprintf.texi: Update.
54602         * doc/functions/vsprintf.texi: Update.
54603
54604 2007-11-03  Bruno Haible  <bruno@clisp.org>
54605
54606         * modules/frexp-nolibm-tests: New file.
54607
54608         * modules/frexp-nolibm: New file.
54609         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54610
54611 2007-11-03  Bruno Haible  <bruno@clisp.org>
54612
54613         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54614         value is C99 compliant.
54615         Needed for OSF/1 5.1.
54616
54617 2007-11-03  Bruno Haible  <bruno@clisp.org>
54618
54619         Fix out-of-memory handling of vasnprintf.
54620         * lib/printf-parse.c: Include <errno.h>.
54621         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54622         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54623         is already set.
54624
54625 2007-11-02  Eric Blake  <ebb9@byu.net>
54626
54627         Fix tests on cygwin.
54628         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54629
54630 2007-11-01  Bruno Haible  <bruno@clisp.org>
54631
54632         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54633         warning.
54634         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54635         needed for POSIX compatibility.
54636
54637 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54638
54639         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54640         for compatibility with GNU.
54641
54642 2007-11-01  Bruno Haible  <bruno@clisp.org>
54643
54644         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54645         (putenv): Renamed from rpl_putenv. Change argument type from
54646         'const char *' to 'char *'.
54647         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54648         of defining putenv in config.h, just set REPLACE_PUTENV.
54649         * modules/putenv (Depends-on): Add stdlib.
54650         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54651         (Include): Use <stdlib.h>.
54652         * lib/stdlib.in.h (putenv): New declaration.
54653         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54654         REPLACE_PUTENV.
54655         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54656         REPLACE_PUTENV.
54657         Needed for MacOS X 10.5.0.
54658         Reported by Peter O'Gorman <peter@pogma.com>.
54659
54660 2007-11-01  Jim Meyering  <meyering@redhat.com>
54661
54662         Treat an empty date string exactly like "0".
54663         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54664         if the remaining date string (to be parsed) is empty, use "0".
54665         Reported by Mischa Molhoek and discussed in this thread:
54666         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54667
54668 2007-10-31  Bruno Haible  <bruno@clisp.org>
54669
54670         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54671         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54672         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54673         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54674         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54675         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54676
54677 2007-10-31  Bruno Haible  <bruno@clisp.org>
54678
54679         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54680         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54681         (AC_TYPE_LONG_LONG_INT): Use it.
54682         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54683         it as well.
54684         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54685         to m4/longlong.m4.
54686         * modules/stdint (Files): Remove m4/ulonglong.m4.
54687         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54688         m4/ulonglong.m4.
54689         * modules/strtoumax (Files): Likewise.
54690
54691 2007-10-30  Bruno Haible  <bruno@clisp.org>
54692
54693         * modules/xvasprintf-posix: New file.
54694         Suggested by Eric Blake.
54695
54696 2007-10-30  Bruno Haible  <bruno@clisp.org>
54697
54698         * modules/xprintf-posix-tests: New file.
54699         * tests/test-xprintf-posix.sh: New file.
54700         * tests/test-xprintf-posix.c: New file.
54701         * tests/test-xfprintf-posix.c: New file.
54702
54703         * modules/xprintf-posix: New file.
54704
54705 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54706
54707         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54708         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54709         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54710
54711 2007-10-29  Bruno Haible  <bruno@clisp.org>
54712
54713         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54714         contain the special marker '_cv_'.
54715         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54716         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54717         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54718         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54719         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54720         Reported by Ralf Wildenhues.
54721
54722 2007-10-29  Bruno Haible  <bruno@clisp.org>
54723
54724         * gnulib-tool (func_import): When --lgpl is not specified, set
54725         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54726         GPLv3.
54727         Reported by Simon Josefsson.
54728
54729 2007-10-28  Bruno Haible  <bruno@clisp.org>
54730
54731         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54732         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54733         HAVE_DECL_ISFINITE.
54734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54735         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54736         HAVE_DECL_ISFINITE.
54737
54738 2007-10-28  Bruno Haible  <bruno@clisp.org>
54739
54740         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54741         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54742
54743 2007-10-28  Bruno Haible  <bruno@clisp.org>
54744
54745         Fix link errors with Sun C 5.0 on Solaris 10.
54746         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54747         function is declared but not present in the compiler's libm.
54748         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54749         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54750         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54751         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54752         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54753         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54754         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54756         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54757         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54758         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54759         HAVE_DECL_FLOORL.
54760
54761 2007-10-28  Bruno Haible  <bruno@clisp.org>
54762
54763         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54764         gl_FUNC_FLOORL. Cache the result.
54765         (gl_FUNC_FLOORL): Use it.
54766         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54767         gl_FUNC_CEILL. Cache the result.
54768         (gl_FUNC_CEILL): Use it.
54769
54770         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54771         gl_FUNC_FLOOR. Cache the result.
54772         (gl_FUNC_FLOOR): Use it.
54773         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54774         gl_FUNC_CEIL. Cache the result.
54775         (gl_FUNC_CEIL): Use it.
54776
54777         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54778         gl_FUNC_FLOORF. Cache the result.
54779         (gl_FUNC_FLOORF): Use it.
54780         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54781         gl_FUNC_CEILF. Cache the result.
54782         (gl_FUNC_CEILF): Use it.
54783
54784 2007-10-28  Bruno Haible  <bruno@clisp.org>
54785
54786         * gnulib-tool: Allow specifying the LGPL version number through
54787         --lgpl=2 or --lgpl=3.
54788         (func_usage): Document --lgpl with argument.
54789         Handle --lgpl=... arguments.
54790         (func_import): Recognize also gl_LGPL calls with an argument. When
54791         --lgpl=2 is used and the module's license is just LGPL, report an
54792         error. Set sed_transform_lib_file according to the lgpl variable. In
54793         the generated files, use --lgpl or gl_LGPL invocations with argument,
54794         if necessary.
54795         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54796         an LGPv2+ license.
54797         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54798         gl_LGPL macro.
54799
54800 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54801             Bruno Haible  <bruno@clisp.org>
54802
54803         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54804         (u16_uctomb_aux): Likewise.
54805         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54806         !HAVE_INLINE.
54807         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54808
54809 2007-10-28  Bruno Haible  <bruno@clisp.org>
54810
54811         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54812         Invoke AM_GETTEXT_OPTION if it exists.
54813         * modules/vasprintf: Likewise.
54814         * modules/verror: Likewise.
54815         * modules/xprintf: Likewise.
54816         * modules/xvasprintf: Likewise.
54817
54818 2007-10-27  Ben Pfaff  <blp@gnu.org>
54819
54820         * lib/math.in.h: Define isfinite macro and prototypes for
54821         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54822         implementations.
54823         * m4/math_h.m4: New substitutions for isfinite module.
54824         * lib/isfinite.c: New file.
54825         * m4/isfinite.m4: New file.
54826         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54827         * modules/isfinite: New file.
54828         * modules/isfinite-tests: New file.
54829         * tests/tests-isfinite.c: New file.
54830         * doc/functions/isfinite.texi: Mention isfinite module.
54831         * MODULES.html.sh: Mention new module.
54832
54833 2007-10-27  Ben Pfaff  <blp@gnu.org>
54834
54835         Ralf Wildenhues reported that Tru64 4.0D declares the round
54836         functions but does not have definitions.
54837         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54838         cannot be found in any library, set the output variable to
54839         "missing" instead of "".
54840         * m4/round.m4: Also use our substitute if we cannot find round in
54841         any library, even if it is declared.
54842         * m4/roundf.m4: Likewise for roundf.
54843         * m4/roundl.m4: Likewise for roundl.
54844         * lib/math.in.h: Undefine roundf, round, roundl before defining
54845         their replacements, to allow for hypothetical systems where these
54846         may be defined as macros but not available in libraries.
54847
54848 2007-10-27  Bruno Haible  <bruno@clisp.org>
54849
54850         * doc/gnulib.texi: Invoke @firstparagraphindent.
54851         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54852         changes in gnulib.
54853         (Source changes): New section.
54854
54855 2007-10-26  Bruno Haible  <bruno@clisp.org>
54856
54857         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54858         borrowed from autoconf.
54859
54860 2007-10-26  Bruno Haible  <bruno@clisp.org>
54861
54862         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54863         strerror returned the empty string. Needed on HP-UX 11.00.
54864
54865 2007-10-24  Micah Cowan  <micah@cowan.name>
54866
54867         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54868         * build-aux/bootstrap: Remove support for now-unnecessary option,
54869         --cvs-user, and envvars CVS_USER, CVS_RSH.
54870
54871 2007-10-24  Jim Meyering  <meyering@redhat.com>
54872
54873         Avoid diagnostics from sha1sum when there is no cached checksum.
54874         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54875         if the po.s1 file hasn't been created yet.
54876
54877         * build-aux/bootstrap: Sync from coreutils:
54878         2007-10-24  Jim Meyering  <meyering@redhat.com>
54879         Get gnulib from the git repository, not from an obsolete cvs one.
54880         * build-aux/bootstrap: Suggestion from Micah Cowan.
54881         2007-10-04  Jim Meyering  <jim@meyering.net>
54882         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54883         (update_po_files): Work also when there are no .po files in po/.
54884
54885 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54886
54887         * README: Append ".git" to git and cg examples.
54888         Problem reported by Benoit Sigoure.
54889
54890 2007-10-23  Micah Cowan  <micah@cowan.name>
54891
54892         * users.txt: Add wget.
54893
54894 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54895
54896         Fix linking of some unistdio tests on FreeBSD.
54897         * modules/unistdio/u16-vsnprintf-tests
54898         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54899         * modules/unistdio/u16-vsprintf-tests
54900         (test_u16_vsnprintf1_LDADD): Likewise.
54901         * modules/unistdio/u32-vsnprintf-tests
54902         (test_u32_vsnprintf1_LDADD): Likewise.
54903         * modules/unistdio/u32-vsprintf-tests
54904         (test_u32_vsprintf1_LDADD): Likewise.
54905         * modules/unistdio/u8-vsnprintf-tests
54906         (test_u8_vsnprintf1_LDADD): Likewise.
54907         * modules/unistdio/u8-vsprintf-tests
54908         (test_u8_vsprintf1_LDADD): Likewise.
54909         * modules/unistdio/ulc-vsnprintf-tests
54910         (test_ulc_vsnprintf1_LDADD): Likewise.
54911         * modules/unistdio/ulc-vsprintf-tests
54912         (test_ulc_vsprintf1_LDADD): Likewise.
54913
54914         Fix linking of some uniconv tests on FreeBSD.
54915         * modules/uniconv/u16-conv-from-enc-tests
54916         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54917         * modules/uniconv/u16-conv-to-enc-tests
54918         (test_u16_conv_to_enc_LDADD): Likewise.
54919         * modules/uniconv/u16-strconv-from-enc-tests
54920         (test_u16_strconv_from_enc_LDADD): Likewise.
54921         * modules/uniconv/u16-strconv-to-enc-tests
54922         (test_u16_strconv_to_enc_LDADD): Likewise.
54923         * modules/uniconv/u32-conv-from-enc-tests
54924         (test_u32_conv_from_enc_LDADD): Likewise.
54925         * modules/uniconv/u32-conv-to-enc-tests
54926         (test_u32_conv_to_enc_LDADD): Likewise.
54927         * modules/uniconv/u32-strconv-from-enc-tests
54928         (test_u32_strconv_from_enc_LDADD): Likewise.
54929         * modules/uniconv/u32-strconv-to-enc-tests
54930         (test_u32_strconv_to_enc_LDADD): Likewise.
54931         * modules/uniconv/u8-conv-from-enc-tests
54932         (test_u8_conv_from_enc_LDADD): Likewise.
54933         * modules/uniconv/u8-conv-to-enc-tests
54934         (test_u8_conv_to_enc_LDADD): Likewise.
54935         * modules/uniconv/u8-strconv-from-enc-tests
54936         (test_u8_strconv_from_enc_LDADD): Likewise.
54937         * modules/uniconv/u8-strconv-to-enc-tests
54938         (test_u8_strconv_to_enc_LDADD): Likewise.
54939
54940 2007-10-22  Bruno Haible  <bruno@clisp.org>
54941
54942         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54943         size.
54944
54945 2007-10-22  Eric Blake  <ebb9@byu.net>
54946
54947         Tweak x*printf documentation.
54948         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54949         variable name and comments.
54950         Suggested by Bruno Haible.
54951
54952 2007-10-22  Bruno Haible  <bruno@clisp.org>
54953
54954         * lib/acl.c (copy_acl): Fix file name in comment.
54955
54956 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54957
54958         Fix Tru64 problem with stdbool.h.
54959         * lib/stdbool.in.h (false, true):
54960         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54961         Don't declare as an enum in this situation; it runs afoul of Tru64.
54962         Problem reported by Steven M. Schweda in
54963         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54964
54965 2007-10-22  Eric Blake  <ebb9@byu.net>
54966
54967         Also wrap vf?printf.
54968         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54969         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54970         (xvprintf, xvfprintf): New functions.
54971
54972 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54973
54974         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54975         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54976
54977         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54978         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54979
54980 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54981
54982         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54983         by Bruno Haible.
54984
54985 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54986
54987         * lib/getloadavg.c
54988         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54989         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54990
54991         * tests/test-i-ring.c: Work for C89.
54992
54993 2007-10-22  Bruno Haible  <bruno@clisp.org>
54994
54995         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54996         -1u, in preprocessor expression, so that we don't test for the bug
54997         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54998         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54999
55000 2007-10-22  Eric Blake  <ebb9@byu.net>
55001
55002         * tests/test-yesno.sh: Silence stderr during test.
55003
55004 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55005
55006         * modules/crypto/gc-camellia: New file.
55007
55008         * m4/gc-camellia.m4: New file.
55009
55010         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55011
55012         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55013
55014 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55015
55016         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55017         --help to stdout.  Reported by sms@antinode.org (Steven
55018         M. Schweda).
55019
55020 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55021
55022         * users.txt: Fix link to libksba.
55023
55024 2007-10-21  Ben Pfaff  <blp@gnu.org>
55025
55026         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55027         round.c roundf implementation that depends on floorf and ceilf to
55028         be tested unconditionally.
55029
55030 2007-10-21  Ben Pfaff  <blp@gnu.org>
55031
55032         * m4/check-libm-func.m4: Removed.
55033         * m4/check-math-lib.m4: New file.
55034         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55035         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55036         definition and lack of AC_LIBOBJ([roundf]).
55037         * m4/roundl.m4: Ditto, and similarly for roundl.
55038         * modules/round: Reference new m4 file.
55039         * modules/roundf: Ditto.
55040         * modules/roundl: Ditto.
55041         * tests/test-round2.c (main): Use ROUND instead of round.
55042         Bug report from Bruno Haible.
55043
55044 2007-10-21  Bruno Haible  <bruno@clisp.org>
55045
55046         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55047         context.
55048
55049 2007-10-21  Bruno Haible  <bruno@clisp.org>
55050
55051         * tests/test-wcwidth.c (main): Allow negative result for some control
55052         characters.
55053
55054         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55055         Needed on OSF/1 5.1.
55056
55057 2007-10-21  Bruno Haible  <bruno@clisp.org>
55058
55059         * tests/test-floorf1.c: Include isnanf.h.
55060         (main): Use isnanf() instead of isnan().
55061         * tests/test-ceilf1.c: Include isnanf.h.
55062         (main): Use isnanf() instead of isnan().
55063         * tests/test-truncf1.c: Include isnanf.h.
55064         (main): Use isnanf() instead of isnan().
55065         * tests/test-roundf1.c: Include isnanf.h.
55066         (main): Use isnanf() instead of isnan().
55067
55068 2007-10-21  Eric Blake  <ebb9@byu.net>
55069
55070         * users.txt: Update URL for m4.
55071
55072 2007-10-21  Bruno Haible  <bruno@clisp.org>
55073
55074         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55075
55076 2007-10-21  Bruno Haible  <bruno@clisp.org>
55077
55078         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55079         Git's management files if the CVS files are not present.
55080
55081 2007-10-20  Bruno Haible  <bruno@clisp.org>
55082
55083         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55084         gcc-3.4.x.
55085
55086 2007-10-20  Ben Pfaff  <blp@gnu.org>
55087
55088         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55089         implementations.
55090         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55091         * lib/round.c: New file.
55092         * lib/roundf.c: New file.
55093         * lib/roundl.c: New file.
55094         * m4/round.m4: New file.
55095         * m4/roundf.m4: New file.
55096         * m4/roundl.m4: New file.
55097         * m4/check-libm-func-m4: New file.
55098         * modules/math: Replace round, roundf, roundl related @VARS@ in
55099         math.in.h.
55100         * modules/round: New file.
55101         * modules/round-tests: New file.
55102         * modules/roundf: New file.
55103         * modules/roundf-tests: New file.
55104         * modules/roundl: New file.
55105         * modules/roundl-tests: New file.
55106         * tests/test-round1.c: New file.
55107         * tests/test-round2.c: New file.
55108         * tests/test-roundf1.c: New file.
55109         * tests/test-roundf2.c: New file.
55110         * tests/test-roundl.c: New file.
55111         * doc/functions/round.texi: Mention round module.
55112         * doc/functions/roundf.texi: Mention roundf module.
55113         * doc/functions/roundl.texi: Mention roundl module.
55114         * MODULES.html.sh: Mention new modules.
55115         Thanks to Bruno Haible for suggestions.
55116
55117 2007-10-20  Jim Meyering  <meyering@redhat.com>
55118
55119         * lib/xprintf.c: Include <config.h> unconditionally.
55120
55121         Change xprintf's license to GPL.
55122         * modules/xprintf (License): s/LGPL/GPL/, since this module
55123         depends on modules (exit and exitfail) which are GPL.
55124         Suggestion from Bruno Haible.
55125
55126         xprintf fixes.
55127         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55128         Use a clearer diagnostic.
55129         Patch from Bruno Haible.
55130
55131 2007-10-20  Bruno Haible  <bruno@clisp.org>
55132
55133         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55134         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55135         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55136
55137 2007-10-20  Bruno Haible  <bruno@clisp.org>
55138
55139         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55140         precision in the comparison result > x - 1 or similar.
55141         * tests/test-ceilf2.c (correct_result_p): Likewise.
55142         * tests/test-truncf2.c (correct_result_p): Likewise.
55143         * tests/test-trunc2.c (correct_result_p): Likewise.
55144         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55145
55146 2007-10-20  Bruno Haible  <bruno@clisp.org>
55147
55148         * modules/ceil: New file.
55149         * m4/ceil.m4: New file.
55150         * doc/functions/ceil.texi: Mention the 'ceil' module.
55151
55152 2007-10-20  Bruno Haible  <bruno@clisp.org>
55153
55154         * modules/floor: New file.
55155         * m4/floor.m4: New file.
55156         * doc/functions/floor.texi: Mention the 'floor' module.
55157
55158 2007-10-20  Bruno Haible  <bruno@clisp.org>
55159
55160         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55161         of %a.
55162         * modules/floorf-tests (Depends-on): Likewise.
55163         * modules/truncf-tests (Depends-on): Likewise.
55164         * modules/trunc-tests (Depends-on): Likewise.
55165         Reported by Ben Pfaff.
55166
55167 2007-10-19  Jim Meyering  <meyering@redhat.com>
55168
55169         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55170         Don't bother testing specific errno values.  Just test ferror.
55171
55172         New module: xprintf
55173         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55174
55175 2007-10-19  Bruno Haible  <bruno@clisp.org>
55176
55177         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55178         syntax.
55179         * modules/javaexec (Makefile.am): Likewise.
55180         * modules/relocatable-prog (Makefile.am): Likewise.
55181         Suggested by Jim Meyering.
55182
55183 2007-10-18  Bruno Haible  <bruno@clisp.org>
55184
55185         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55186         Reported by Jim Meyering.
55187
55188 2007-10-18  Eric Blake  <ebb9@byu.net>
55189
55190         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55191
55192 2007-10-18  Bruno Haible  <bruno@clisp.org>
55193
55194         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55195         the format string into writable memory. Needed in Fortify conditions.
55196
55197 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55198             Bruno Haible  <bruno@clisp.org>
55199
55200         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55201         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55202         * modules/trim (Depends-on): Add mbchar.
55203         (configure.ac): Add gl_FUNC_MBRTOWC.
55204         (Makefile.am): Augment lib_SOURCES.
55205
55206 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55207
55208         Modify glob.c to use fstatat and dirfd, to simplify it.
55209         Suggested by Eric Blake.
55210         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55211         Don't include <stdbool.h>; not used.
55212         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55213         (link_exists_p): Simplify implementation, since we can now assume
55214         dirfd and fstatat.
55215         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55216
55217 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55218
55219         * gnulib-tool (func_get_dependencies): Fix sed script to
55220         match only tests.
55221
55222 2007-10-17  Bruno Haible  <bruno@clisp.org>
55223
55224         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55225         allow locale names without encoding suffix.
55226         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55227         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55228
55229 2007-10-16  Bruno Haible  <bruno@clisp.org>
55230
55231         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55232         * lib/getgroups.c (getgroups): Likewise.
55233         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55234
55235 2007-10-16  Bruno Haible  <bruno@clisp.org>
55236
55237         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55238         * modules/malloc-posix (License): Likewise.
55239         * modules/realloc-posix (License): Likewise.
55240         * modules/calloc-posix (License): Likewise.
55241         * modules/intprops (License): Change from GPL to LGPL, with
55242         Paul Eggert's approval.
55243
55244 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55245
55246         Merge glibc changes into lib/glob.c.
55247
55248         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55249         2007-10-15 04:59:03 UTC.  Here are the changes:
55250
55251         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55252
55253         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55254
55255         * lib/glob.c: Add some branch prediction throughout.
55256
55257         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55258
55259         [BZ #5103]
55260         * lib/glob.c (glob): Recognize patterns starting \/.
55261
55262         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55263
55264         [BZ #3996]
55265         * lib/glob.c (attribute_hidden): Define if not defined.
55266         (glob): Unescape dirname, filename or username when needed and not
55267         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55268         is NULL.  Handle unescaped [ in pattern without closing ].
55269         Don't pass GLOB_CHECK down to recursive glob for directories.
55270         (__glob_pattern_type): New function.
55271         (__glob_pattern_p): Implement using __glob_pattern_type.
55272         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55273         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55274         Remove unreachable code.
55275
55276         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55277
55278         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55279         explain why there are no leaks.
55280
55281         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55282
55283         [BZ #3253]
55284         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55285         time, rather allocate increasingly bigger arrays of pointers, if
55286         possible with alloca, if too large with malloc.
55287
55288 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55289
55290         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55291         Problem reported by H.Merijn Brand in
55292         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55293         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55294         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55295
55296 2007-10-15  Bruno Haible  <bruno@clisp.org>
55297
55298         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55299         with explicit rpl_ prefix.
55300         * lib/fopen.c (fopen): Likewise.
55301         * lib/freopen.c (freopen): Likewise.
55302         * lib/iconv.c (iconv): Likewise.
55303         * lib/iconv_close.c (iconv_close): Likewise.
55304
55305 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55306
55307         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55308
55309 2007-10-15  Bruno Haible  <bruno@clisp.org>
55310
55311         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55312         <stddef.h> instead of <stdlib.h> since we only need NULL.
55313         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55314
55315 2007-10-15  Bruno Haible  <bruno@clisp.org>
55316
55317         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55318         Replace paragraph talking about LIBOBJS.
55319         Reported by Colin Watson <cjwatson@debian.org>.
55320
55321 2007-10-15  Bruno Haible  <bruno@clisp.org>
55322
55323         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55324         <stdlib.h> before using NULL.
55325
55326 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55327
55328         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55329         Reported by Albert Chin <china@thewrittenword.com>.
55330
55331 2007-10-14  Bruno Haible  <bruno@clisp.org>
55332
55333         * modules/iconv_open-utf-tests: New file.
55334         * tests/test-iconv-utf.c: New file.
55335
55336         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55337         * modules/iconv_open-utf: New file.
55338         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55339         (iconv, iconv_close): New declarations.
55340         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55341         be defined.
55342         (iconv_open): Add special handling of conversion between UTF-8 and
55343         UTF-{16,32}{BE,LE}.
55344         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55345         * lib/iconv_close.c: New file.
55346         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55347         gl_FUNC_ICONV_OPEN.
55348         (gl_FUNC_ICONV_OPEN): Use it.
55349         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55350         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55351         and REPLACE_ICONV_UTF.
55352         * modules/iconv_open (Depends-on): Add c-strcase.
55353         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55354         ICONV_CONST.
55355         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55356
55357 2007-10-13  Albert Chin  <china@thewrittenword.com>
55358             Bruno Haible  <bruno@clisp.org>
55359
55360         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55361         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55362
55363 2007-10-13  Bruno Haible  <bruno@clisp.org>
55364
55365         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55366         defined, use the ISO C99 inline semantics.
55367         * lib/argp.h (ARGP_EI): Likewise.
55368
55369 2007-10-13  Bruno Haible  <bruno@clisp.org>
55370
55371         Handle 'inline' change in gcc 4.3.0.
55372         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55373         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55374         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55375         argp_fmtstream_point): Disable 'extern' declaration if the function
55376         definition is going to be provided inline.
55377         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55378         semantics, not the ISO C99 inline semantics.
55379         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55380         'extern' declaration if the function definition is going to be provided
55381         inline.
55382         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55383         the GNU C inline semantics, not the ISO C99 inline semantics. With
55384         GCC 4.2, avoid a warning.
55385
55386 2007-10-13  Bruno Haible  <bruno@clisp.org>
55387
55388         * lib/freading.h (freading): Enable the use of __freading for
55389         glibc >= 2.7.
55390         * lib/freading.c (freading): Likewise.
55391
55392 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55393
55394         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55395         "warning: C99 inline functions are not supported; using GNU89".
55396
55397 2007-10-12  Bruno Haible  <bruno@clisp.org>
55398
55399         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55400         of 2.
55401         * tests/test-ceilf2.c: New file.
55402         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55403
55404         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55405         * modules/ceilf-tests: Update.
55406
55407 2007-10-12  Bruno Haible  <bruno@clisp.org>
55408
55409         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55410         of 2.
55411         * tests/test-floorf2.c: New file.
55412         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55413
55414         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55415         * modules/floorf-tests: Update.
55416
55417 2007-10-12  Bruno Haible  <bruno@clisp.org>
55418
55419         * tests/test-trunc2.c: New file.
55420         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55421
55422         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55423         * modules/trunc-tests: Update.
55424
55425 2007-10-12  Bruno Haible  <bruno@clisp.org>
55426
55427         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55428         of 2.
55429         * tests/test-truncf2.c: New file.
55430         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55431
55432         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55433         * modules/truncf-tests: Update.
55434
55435 2007-10-11  Eric Blake  <ebb9@byu.net>
55436
55437         Don't claim strerror is broken on Interix.
55438         * doc/functions/strerror.texi (strerror): Known broken systems are
55439         now Solaris 8, and not Interix.
55440         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55441         Interix on cross-compile.
55442         Reported by Martin Koeppe in
55443         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55444
55445 2007-10-11  Bruno Haible  <bruno@clisp.org>
55446
55447         * modules/i-ring-tests: New file.
55448         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55449         instead of assert.
55450
55451 2007-10-11  Bruno Haible  <bruno@clisp.org>
55452
55453         * modules/filenamecat-tests: New file.
55454         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55455         * lib/filenamecat.c: Remove test code.
55456
55457 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55458
55459         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55460
55461         * lib/strerror.c: Include <string.h> always, to test interface,
55462         and to remove the need for the dummy.
55463         Include intprops.h to compute width instead of doing it ourselves
55464         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55465         (strerror): Define it to return NULL if there's no system strerror.
55466         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55467         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55468         ancient pre-strerror Unix systems well any more.  Saying "unknown
55469         system error" is enough.
55470         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55471         simpler strerror.c implementation.
55472         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55473         Simplify the tests to reflect the simpler strerror implementation.
55474         * modules/strerror (Depends-on): Add intprops.
55475
55476 2007-10-09  Eric Blake  <ebb9@byu.net>
55477
55478         Silence test-fpending.
55479         * modules/fpending-tests (Files): Add wrapper script.
55480         * tests/test-fpending.sh: New file.
55481
55482 2007-10-09  Bruno Haible  <bruno@clisp.org>
55483
55484         * MODULES.html.sh (func_module): Don't create a hyperlink for
55485         function names like 'printf_frexp'.
55486         (Misc): Add crc, memxor.
55487         (Characteristics of floating types): New section.
55488         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55489         isnanf-nolibm, signbit, trunc, truncf, truncl.
55490         (Enhancements for ISO C 99 functions): New subsection Input/output.
55491         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55492         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55493         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55494         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55495         (Enhancements for POSIX:2001 functions): Add chdir-long.
55496         (File system functions): Add areadlink, chdir-safer, read-file.
55497         Remove cycle-check.
55498         (File system as inode set): New section.
55499         (Date and time): Add gethrxtime.
55500         (Multithreading): Add openmp.
55501         (Internationalization functions): Add localename.
55502         (Unicode string functions): Add unistr/u*-mbsnlen.
55503         (Support for maintaining and releasing projects): Add git-version-gen.
55504         (Lone files): Remove directories.
55505
55506 2007-10-08  Ben Pfaff  <blp@gnu.org>
55507
55508         * lib/xmalloca.h: Fix typo in comment.
55509
55510 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55511
55512         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55513         when avoiding problems with integer overflow.  Use a portable test
55514         instead.
55515
55516 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55517
55518         * modules/dummy (License): Change to LGPLv2+.
55519         * modules/float (License): Likewise
55520         * modules/realloc (License): Likewise
55521         * modules/stdlib (License): Likewise
55522
55523 2007-10-07  Bruno Haible  <bruno@clisp.org>
55524
55525         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55526         * floor.c (TWO_MANT_DIG): Likewise.
55527         * ceil.c (TWO_MANT_DIG): Likewise.
55528         Reported by Ben Pfaff.
55529
55530 2007-10-07  Bruno Haible  <bruno@clisp.org>
55531
55532         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55533         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55534         * lib/frexp.c (FUNC): Likewise.
55535         * lib/printf-frexp.h (printf_frexp): Likewise.
55536         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55537         * lib/printf-frexp.c (FUNC): Likewise.
55538         Suggested by Jim Meyering.
55539
55540 2007-10-07  Jim Meyering  <meyering@redhat.com>
55541
55542         Make xnanosleep's integer overflow test more robust.
55543         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55544         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55545
55546 2007-10-07  Bruno Haible  <bruno@clisp.org>
55547
55548         * NEWS: Mention the license change.
55549
55550         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55551         abbreviations in the modules files.
55552
55553         Change copyright notice from GPLv2+ to GPLv3+.
55554         * README: Change copyright notice.
55555         * MODULES.html.sh: Likewise.
55556         * build-aux/bootstrap.conf: Likewise.
55557         * build-aux/config.libpath: Likewise.
55558         * build-aux/csharpcomp.sh.in: Likewise.
55559         * build-aux/csharpexec.sh.in: Likewise.
55560         * build-aux/install-reloc: Likewise.
55561         * build-aux/javacomp.sh.in: Likewise.
55562         * build-aux/javaexec.sh.in: Likewise.
55563         * build-aux/ldd.sh.in: Likewise.
55564         * build-aux/reloc-ldflags: Likewise.
55565         * build-aux/relocatable.sh.in: Likewise.
55566         * build-aux/x-to-1.in: Likewise.
55567         * check-module: Likewise.
55568         * config/srclistvars.sh: Likewise.
55569         * gnulib-tool: Likewise.
55570         * lib/acl-internal.h: Likewise.
55571         * lib/acl.c: Likewise.
55572         * lib/acl.h: Likewise.
55573         * lib/acl_entries.c: Likewise.
55574         * lib/areadlink-with-size.c: Likewise.
55575         * lib/areadlink.c: Likewise.
55576         * lib/areadlink.h: Likewise.
55577         * lib/argmatch.c: Likewise.
55578         * lib/argmatch.h: Likewise.
55579         * lib/argp-ba.c: Likewise.
55580         * lib/argp-eexst.c: Likewise.
55581         * lib/argp-fmtstream.c: Likewise.
55582         * lib/argp-fmtstream.h: Likewise.
55583         * lib/argp-fs-xinl.c: Likewise.
55584         * lib/argp-help.c: Likewise.
55585         * lib/argp-namefrob.h: Likewise.
55586         * lib/argp-parse.c: Likewise.
55587         * lib/argp-pin.c: Likewise.
55588         * lib/argp-pv.c: Likewise.
55589         * lib/argp-pvh.c: Likewise.
55590         * lib/argp-xinl.c: Likewise.
55591         * lib/argp.h: Likewise.
55592         * lib/at-func.c: Likewise.
55593         * lib/atanl.c: Likewise.
55594         * lib/backupfile.c: Likewise.
55595         * lib/backupfile.h: Likewise.
55596         * lib/basename.c: Likewise.
55597         * lib/binary-io.h: Likewise.
55598         * lib/byteswap.in.h: Likewise.
55599         * lib/c-stack.c: Likewise.
55600         * lib/c-stack.h: Likewise.
55601         * lib/c-strcasestr.c: Likewise.
55602         * lib/c-strcasestr.h: Likewise.
55603         * lib/c-strstr.c: Likewise.
55604         * lib/c-strstr.h: Likewise.
55605         * lib/c-strtod.c: Likewise.
55606         * lib/calloc.c: Likewise.
55607         * lib/canon-host.c: Likewise.
55608         * lib/canon-host.h: Likewise.
55609         * lib/canonicalize-lgpl.c: Likewise.
55610         * lib/canonicalize.c: Likewise.
55611         * lib/canonicalize.h: Likewise.
55612         * lib/ceil.c: Likewise.
55613         * lib/ceilf.c: Likewise.
55614         * lib/ceill.c: Likewise.
55615         * lib/chdir-long.c: Likewise.
55616         * lib/chdir-long.h: Likewise.
55617         * lib/chdir-safer.c: Likewise.
55618         * lib/chdir-safer.h: Likewise.
55619         * lib/chown.c: Likewise.
55620         * lib/classpath.c: Likewise.
55621         * lib/classpath.h: Likewise.
55622         * lib/clean-temp.c: Likewise.
55623         * lib/clean-temp.h: Likewise.
55624         * lib/cloexec.c: Likewise.
55625         * lib/close-stream.c: Likewise.
55626         * lib/closein.c: Likewise.
55627         * lib/closein.h: Likewise.
55628         * lib/closeout.c: Likewise.
55629         * lib/closeout.h: Likewise.
55630         * lib/concat-filename.c: Likewise.
55631         * lib/copy-file.c: Likewise.
55632         * lib/copy-file.h: Likewise.
55633         * lib/count-one-bits.h: Likewise.
55634         * lib/crc.c: Likewise.
55635         * lib/crc.h: Likewise.
55636         * lib/creat-safer.c: Likewise.
55637         * lib/csharpcomp.c: Likewise.
55638         * lib/csharpcomp.h: Likewise.
55639         * lib/csharpexec.c: Likewise.
55640         * lib/csharpexec.h: Likewise.
55641         * lib/cycle-check.c: Likewise.
55642         * lib/cycle-check.h: Likewise.
55643         * lib/diacrit.c: Likewise.
55644         * lib/diacrit.h: Likewise.
55645         * lib/diffseq.h: Likewise.
55646         * lib/dirchownmod.c: Likewise.
55647         * lib/dirent.in.h: Likewise.
55648         * lib/dirfd.c: Likewise.
55649         * lib/dirfd.h: Likewise.
55650         * lib/dirname.c: Likewise.
55651         * lib/dirname.h: Likewise.
55652         * lib/dummy.c: Likewise.
55653         * lib/dup-safer.c: Likewise.
55654         * lib/dup2.c: Likewise.
55655         * lib/eealloc.h: Likewise.
55656         * lib/error.c: Likewise.
55657         * lib/error.h: Likewise.
55658         * lib/euidaccess.c: Likewise.
55659         * lib/exclude.c: Likewise.
55660         * lib/exclude.h: Likewise.
55661         * lib/execute.c: Likewise.
55662         * lib/execute.h: Likewise.
55663         * lib/exitfail.c: Likewise.
55664         * lib/exitfail.h: Likewise.
55665         * lib/expl.c: Likewise.
55666         * lib/fatal-signal.c: Likewise.
55667         * lib/fatal-signal.h: Likewise.
55668         * lib/fbufmode.c: Likewise.
55669         * lib/fbufmode.h: Likewise.
55670         * lib/fchdir.c: Likewise.
55671         * lib/fchmodat.c: Likewise.
55672         * lib/fchownat.c: Likewise.
55673         * lib/fcntl--.h: Likewise.
55674         * lib/fcntl-safer.h: Likewise.
55675         * lib/fcntl.in.h: Likewise.
55676         * lib/fd-safer.c: Likewise.
55677         * lib/fflush.c: Likewise.
55678         * lib/file-has-acl.c: Likewise.
55679         * lib/file-set.c: Likewise.
55680         * lib/file-type.c: Likewise.
55681         * lib/file-type.h: Likewise.
55682         * lib/fileblocks.c: Likewise.
55683         * lib/filemode.c: Likewise.
55684         * lib/filemode.h: Likewise.
55685         * lib/filename.h: Likewise.
55686         * lib/filenamecat.c: Likewise.
55687         * lib/filenamecat.h: Likewise.
55688         * lib/findprog.c: Likewise.
55689         * lib/findprog.h: Likewise.
55690         * lib/float.in.h: Likewise.
55691         * lib/floor.c: Likewise.
55692         * lib/floorf.c: Likewise.
55693         * lib/floorl.c: Likewise.
55694         * lib/fopen-safer.c: Likewise.
55695         * lib/fopen.c: Likewise.
55696         * lib/fpending.c: Likewise.
55697         * lib/fpending.h: Likewise.
55698         * lib/fprintf.c: Likewise.
55699         * lib/fprintftime.h: Likewise.
55700         * lib/fpucw.h: Likewise.
55701         * lib/fpurge.c: Likewise.
55702         * lib/fpurge.h: Likewise.
55703         * lib/freadable.c: Likewise.
55704         * lib/freadable.h: Likewise.
55705         * lib/freadahead.c: Likewise.
55706         * lib/freadahead.h: Likewise.
55707         * lib/freading.c: Likewise.
55708         * lib/freading.h: Likewise.
55709         * lib/free.c: Likewise.
55710         * lib/freopen.c: Likewise.
55711         * lib/frexp.c: Likewise.
55712         * lib/frexpl.c: Likewise.
55713         * lib/fseek.c: Likewise.
55714         * lib/fseterr.c: Likewise.
55715         * lib/fseterr.h: Likewise.
55716         * lib/fstatat.c: Likewise.
55717         * lib/fstrcmp.c: Likewise.
55718         * lib/fstrcmp.h: Likewise.
55719         * lib/fsusage.c: Likewise.
55720         * lib/fsusage.h: Likewise.
55721         * lib/ftell.c: Likewise.
55722         * lib/ftello.c: Likewise.
55723         * lib/fts-cycle.c: Likewise.
55724         * lib/fts.c: Likewise.
55725         * lib/fts_.h: Likewise.
55726         * lib/full-read.c: Likewise.
55727         * lib/full-read.h: Likewise.
55728         * lib/full-write.c: Likewise.
55729         * lib/full-write.h: Likewise.
55730         * lib/fwritable.c: Likewise.
55731         * lib/fwritable.h: Likewise.
55732         * lib/fwriteerror.c: Likewise.
55733         * lib/fwriteerror.h: Likewise.
55734         * lib/fwriting.c: Likewise.
55735         * lib/fwriting.h: Likewise.
55736         * lib/gcd.c: Likewise.
55737         * lib/gcd.h: Likewise.
55738         * lib/getcwd.c: Likewise.
55739         * lib/getdate.h: Likewise.
55740         * lib/getdate.y: Likewise.
55741         * lib/getdomainname.c: Likewise.
55742         * lib/getdomainname.h: Likewise.
55743         * lib/getgroups.c: Likewise.
55744         * lib/gethostname.c: Likewise.
55745         * lib/gethrxtime.c: Likewise.
55746         * lib/gethrxtime.h: Likewise.
55747         * lib/getloadavg.c: Likewise.
55748         * lib/getndelim2.c: Likewise.
55749         * lib/getndelim2.h: Likewise.
55750         * lib/getnline.c: Likewise.
55751         * lib/getnline.h: Likewise.
55752         * lib/getopt.c: Likewise.
55753         * lib/getopt.in.h: Likewise.
55754         * lib/getopt1.c: Likewise.
55755         * lib/getopt_int.h: Likewise.
55756         * lib/getpagesize.h: Likewise.
55757         * lib/getsubopt.c: Likewise.
55758         * lib/gettime.c: Likewise.
55759         * lib/getugroups.c: Likewise.
55760         * lib/getugroups.h: Likewise.
55761         * lib/getusershell.c: Likewise.
55762         * lib/gl_anyavltree_list1.h: Likewise.
55763         * lib/gl_anyavltree_list2.h: Likewise.
55764         * lib/gl_anyhash_list1.h: Likewise.
55765         * lib/gl_anyhash_list2.h: Likewise.
55766         * lib/gl_anylinked_list1.h: Likewise.
55767         * lib/gl_anylinked_list2.h: Likewise.
55768         * lib/gl_anyrbtree_list1.h: Likewise.
55769         * lib/gl_anyrbtree_list2.h: Likewise.
55770         * lib/gl_anytree_list1.h: Likewise.
55771         * lib/gl_anytree_list2.h: Likewise.
55772         * lib/gl_anytree_oset.h: Likewise.
55773         * lib/gl_anytreehash_list1.h: Likewise.
55774         * lib/gl_anytreehash_list2.h: Likewise.
55775         * lib/gl_array_list.c: Likewise.
55776         * lib/gl_array_list.h: Likewise.
55777         * lib/gl_array_oset.c: Likewise.
55778         * lib/gl_array_oset.h: Likewise.
55779         * lib/gl_avltree_list.c: Likewise.
55780         * lib/gl_avltree_list.h: Likewise.
55781         * lib/gl_avltree_oset.c: Likewise.
55782         * lib/gl_avltree_oset.h: Likewise.
55783         * lib/gl_avltreehash_list.c: Likewise.
55784         * lib/gl_avltreehash_list.h: Likewise.
55785         * lib/gl_carray_list.c: Likewise.
55786         * lib/gl_carray_list.h: Likewise.
55787         * lib/gl_linked_list.c: Likewise.
55788         * lib/gl_linked_list.h: Likewise.
55789         * lib/gl_linkedhash_list.c: Likewise.
55790         * lib/gl_linkedhash_list.h: Likewise.
55791         * lib/gl_list.c: Likewise.
55792         * lib/gl_list.h: Likewise.
55793         * lib/gl_oset.c: Likewise.
55794         * lib/gl_oset.h: Likewise.
55795         * lib/gl_rbtree_list.c: Likewise.
55796         * lib/gl_rbtree_list.h: Likewise.
55797         * lib/gl_rbtree_oset.c: Likewise.
55798         * lib/gl_rbtree_oset.h: Likewise.
55799         * lib/gl_rbtreehash_list.c: Likewise.
55800         * lib/gl_rbtreehash_list.h: Likewise.
55801         * lib/gl_sublist.c: Likewise.
55802         * lib/gl_sublist.h: Likewise.
55803         * lib/group-member.c: Likewise.
55804         * lib/group-member.h: Likewise.
55805         * lib/hard-locale.c: Likewise.
55806         * lib/hard-locale.h: Likewise.
55807         * lib/hash-pjw.c: Likewise.
55808         * lib/hash-pjw.h: Likewise.
55809         * lib/hash-triple.c: Likewise.
55810         * lib/hash.c: Likewise.
55811         * lib/hash.h: Likewise.
55812         * lib/human.c: Likewise.
55813         * lib/human.h: Likewise.
55814         * lib/i-ring.c: Likewise.
55815         * lib/i-ring.h: Likewise.
55816         * lib/idcache.c: Likewise.
55817         * lib/imaxabs.c: Likewise.
55818         * lib/imaxdiv.c: Likewise.
55819         * lib/inet_pton.c: Likewise.
55820         * lib/inet_pton.h: Likewise.
55821         * lib/intprops.h: Likewise.
55822         * lib/inttostr.c: Likewise.
55823         * lib/inttostr.h: Likewise.
55824         * lib/inttypes.in.h: Likewise.
55825         * lib/isapipe.c: Likewise.
55826         * lib/isdir.c: Likewise.
55827         * lib/isnan.c: Likewise.
55828         * lib/isnan.h: Likewise.
55829         * lib/isnanf.c: Likewise.
55830         * lib/isnanf.h: Likewise.
55831         * lib/isnanl-nolibm.h: Likewise.
55832         * lib/isnanl.c: Likewise.
55833         * lib/isnanl.h: Likewise.
55834         * lib/javacomp.c: Likewise.
55835         * lib/javacomp.h: Likewise.
55836         * lib/javaexec.c: Likewise.
55837         * lib/javaexec.h: Likewise.
55838         * lib/javaversion.c: Likewise.
55839         * lib/javaversion.h: Likewise.
55840         * lib/javaversion.java: Likewise.
55841         * lib/lbrkprop.h: Likewise.
55842         * lib/lchmod.h: Likewise.
55843         * lib/lchown.c: Likewise.
55844         * lib/ldexpl.c: Likewise.
55845         * lib/linebreak.c: Likewise.
55846         * lib/linebreak.h: Likewise.
55847         * lib/linebuffer.c: Likewise.
55848         * lib/linebuffer.h: Likewise.
55849         * lib/locale.in.h: Likewise.
55850         * lib/logl.c: Likewise.
55851         * lib/long-options.c: Likewise.
55852         * lib/long-options.h: Likewise.
55853         * lib/lstat.c: Likewise.
55854         * lib/lstat.h: Likewise.
55855         * lib/math.in.h: Likewise.
55856         * lib/mbchar.c: Likewise.
55857         * lib/mbchar.h: Likewise.
55858         * lib/mbfile.h: Likewise.
55859         * lib/mbiter.h: Likewise.
55860         * lib/mbscasecmp.c: Likewise.
55861         * lib/mbscasestr.c: Likewise.
55862         * lib/mbschr.c: Likewise.
55863         * lib/mbscspn.c: Likewise.
55864         * lib/mbslen.c: Likewise.
55865         * lib/mbsncasecmp.c: Likewise.
55866         * lib/mbsnlen.c: Likewise.
55867         * lib/mbspbrk.c: Likewise.
55868         * lib/mbspcasecmp.c: Likewise.
55869         * lib/mbsrchr.c: Likewise.
55870         * lib/mbssep.c: Likewise.
55871         * lib/mbsspn.c: Likewise.
55872         * lib/mbsstr.c: Likewise.
55873         * lib/mbstok_r.c: Likewise.
55874         * lib/mbswidth.c: Likewise.
55875         * lib/mbswidth.h: Likewise.
55876         * lib/mbuiter.h: Likewise.
55877         * lib/memcasecmp.c: Likewise.
55878         * lib/memcasecmp.h: Likewise.
55879         * lib/memchr.c: Likewise.
55880         * lib/memcmp.c: Likewise.
55881         * lib/memcoll.c: Likewise.
55882         * lib/memcoll.h: Likewise.
55883         * lib/memcpy.c: Likewise.
55884         * lib/memrchr.c: Likewise.
55885         * lib/mkancesdirs.c: Likewise.
55886         * lib/mkdir-p.c: Likewise.
55887         * lib/mkdir-p.h: Likewise.
55888         * lib/mkdir.c: Likewise.
55889         * lib/mkdirat.c: Likewise.
55890         * lib/mkdtemp.c: Likewise.
55891         * lib/mkstemp-safer.c: Likewise.
55892         * lib/mkstemp.c: Likewise.
55893         * lib/modechange.c: Likewise.
55894         * lib/modechange.h: Likewise.
55895         * lib/mountlist.c: Likewise.
55896         * lib/mountlist.h: Likewise.
55897         * lib/mpsort.c: Likewise.
55898         * lib/nanosleep.c: Likewise.
55899         * lib/obstack.c: Likewise.
55900         * lib/obstack.h: Likewise.
55901         * lib/open-safer.c: Likewise.
55902         * lib/open.c: Likewise.
55903         * lib/openat-die.c: Likewise.
55904         * lib/openat-priv.h: Likewise.
55905         * lib/openat-proc.c: Likewise.
55906         * lib/openat.c: Likewise.
55907         * lib/openat.h: Likewise.
55908         * lib/pagealign_alloc.c: Likewise.
55909         * lib/pagealign_alloc.h: Likewise.
55910         * lib/physmem.c: Likewise.
55911         * lib/physmem.h: Likewise.
55912         * lib/pipe-safer.c: Likewise.
55913         * lib/pipe.c: Likewise.
55914         * lib/pipe.h: Likewise.
55915         * lib/posixtm.c: Likewise.
55916         * lib/posixtm.h: Likewise.
55917         * lib/posixver.c: Likewise.
55918         * lib/printf-frexp.c: Likewise.
55919         * lib/printf-frexp.h: Likewise.
55920         * lib/printf-frexpl.c: Likewise.
55921         * lib/printf-frexpl.h: Likewise.
55922         * lib/printf.c: Likewise.
55923         * lib/progname.c: Likewise.
55924         * lib/progname.h: Likewise.
55925         * lib/progreloc.c: Likewise.
55926         * lib/putenv.c: Likewise.
55927         * lib/quote.c: Likewise.
55928         * lib/quote.h: Likewise.
55929         * lib/quotearg.c: Likewise.
55930         * lib/quotearg.h: Likewise.
55931         * lib/raise.c: Likewise.
55932         * lib/readline.c: Likewise.
55933         * lib/readline.h: Likewise.
55934         * lib/readlink.c: Likewise.
55935         * lib/readtokens.c: Likewise.
55936         * lib/readtokens.h: Likewise.
55937         * lib/readtokens0.c: Likewise.
55938         * lib/readtokens0.h: Likewise.
55939         * lib/readutmp.c: Likewise.
55940         * lib/readutmp.h: Likewise.
55941         * lib/realloc.c: Likewise.
55942         * lib/relocwrapper.c: Likewise.
55943         * lib/rename-dest-slash.c: Likewise.
55944         * lib/rename.c: Likewise.
55945         * lib/rmdir.c: Likewise.
55946         * lib/rpmatch.c: Likewise.
55947         * lib/safe-read.c: Likewise.
55948         * lib/safe-read.h: Likewise.
55949         * lib/safe-write.c: Likewise.
55950         * lib/safe-write.h: Likewise.
55951         * lib/same-inode.h: Likewise.
55952         * lib/same.c: Likewise.
55953         * lib/same.h: Likewise.
55954         * lib/save-cwd.c: Likewise.
55955         * lib/save-cwd.h: Likewise.
55956         * lib/savedir.c: Likewise.
55957         * lib/savedir.h: Likewise.
55958         * lib/savewd.c: Likewise.
55959         * lib/savewd.h: Likewise.
55960         * lib/search.in.h: Likewise.
55961         * lib/setenv.c: Likewise.
55962         * lib/setenv.h: Likewise.
55963         * lib/settime.c: Likewise.
55964         * lib/sh-quote.c: Likewise.
55965         * lib/sh-quote.h: Likewise.
55966         * lib/sig2str.c: Likewise.
55967         * lib/sig2str.h: Likewise.
55968         * lib/signal.in.h: Likewise.
55969         * lib/signbitd.c: Likewise.
55970         * lib/signbitf.c: Likewise.
55971         * lib/signbitl.c: Likewise.
55972         * lib/sigprocmask.c: Likewise.
55973         * lib/sincosl.c: Likewise.
55974         * lib/sleep.c: Likewise.
55975         * lib/sprintf.c: Likewise.
55976         * lib/sqrtl.c: Likewise.
55977         * lib/stat-time.h: Likewise.
55978         * lib/stdio--.h: Likewise.
55979         * lib/stdio-safer.h: Likewise.
55980         * lib/stdlib--.h: Likewise.
55981         * lib/stdlib-safer.h: Likewise.
55982         * lib/stdlib.in.h: Likewise.
55983         * lib/stpcpy.c: Likewise.
55984         * lib/stpncpy.c: Likewise.
55985         * lib/strchrnul.c: Likewise.
55986         * lib/strcspn.c: Likewise.
55987         * lib/strerror.c: Likewise.
55988         * lib/strftime.c: Likewise.
55989         * lib/strftime.h: Likewise.
55990         * lib/striconveh.c: Likewise.
55991         * lib/striconveh.h: Likewise.
55992         * lib/striconveha.c: Likewise.
55993         * lib/striconveha.h: Likewise.
55994         * lib/stripslash.c: Likewise.
55995         * lib/strnlen1.c: Likewise.
55996         * lib/strnlen1.h: Likewise.
55997         * lib/strtod.c: Likewise.
55998         * lib/strtoimax.c: Likewise.
55999         * lib/strtok_r.c: Likewise.
56000         * lib/strtol.c: Likewise.
56001         * lib/strtoll.c: Likewise.
56002         * lib/strtoul.c: Likewise.
56003         * lib/strtoull.c: Likewise.
56004         * lib/sysexits.in.h: Likewise.
56005         * lib/tempname.c: Likewise.
56006         * lib/tempname.h: Likewise.
56007         * lib/timespec.h: Likewise.
56008         * lib/tls.c: Likewise.
56009         * lib/tls.h: Likewise.
56010         * lib/tmpdir.c: Likewise.
56011         * lib/tmpdir.h: Likewise.
56012         * lib/tmpfile-safer.c: Likewise.
56013         * lib/tmpfile.c: Likewise.
56014         * lib/trigl.c: Likewise.
56015         * lib/trigl.h: Likewise.
56016         * lib/trim.c: Likewise.
56017         * lib/trim.h: Likewise.
56018         * lib/trunc.c: Likewise.
56019         * lib/truncf.c: Likewise.
56020         * lib/truncl.c: Likewise.
56021         * lib/tsearch.c: Likewise.
56022         * lib/unicodeio.c: Likewise.
56023         * lib/unicodeio.h: Likewise.
56024         * lib/unistd--.h: Likewise.
56025         * lib/unistd-safer.h: Likewise.
56026         * lib/unistdio/ulc-fprintf.c: Likewise.
56027         * lib/unistdio/ulc-vfprintf.c: Likewise.
56028         * lib/unlinkdir.c: Likewise.
56029         * lib/unlinkdir.h: Likewise.
56030         * lib/unlocked-io.h: Likewise.
56031         * lib/unsetenv.c: Likewise.
56032         * lib/userspec.c: Likewise.
56033         * lib/utime.c: Likewise.
56034         * lib/utimecmp.c: Likewise.
56035         * lib/utimecmp.h: Likewise.
56036         * lib/utimens.c: Likewise.
56037         * lib/verify.h: Likewise.
56038         * lib/verror.c: Likewise.
56039         * lib/verror.h: Likewise.
56040         * lib/version-etc-fsf.c: Likewise.
56041         * lib/version-etc.c: Likewise.
56042         * lib/version-etc.h: Likewise.
56043         * lib/vfprintf.c: Likewise.
56044         * lib/vprintf.c: Likewise.
56045         * lib/vsprintf.c: Likewise.
56046         * lib/w32spawn.h: Likewise.
56047         * lib/wait-process.c: Likewise.
56048         * lib/wait-process.h: Likewise.
56049         * lib/wcwidth.c: Likewise.
56050         * lib/write-any-file.c: Likewise.
56051         * lib/xalloc-die.c: Likewise.
56052         * lib/xalloc.h: Likewise.
56053         * lib/xasprintf.c: Likewise.
56054         * lib/xgetcwd.c: Likewise.
56055         * lib/xgetcwd.h: Likewise.
56056         * lib/xgetdomainname.c: Likewise.
56057         * lib/xgetdomainname.h: Likewise.
56058         * lib/xgethostname.c: Likewise.
56059         * lib/xmalloc.c: Likewise.
56060         * lib/xmalloca.c: Likewise.
56061         * lib/xmalloca.h: Likewise.
56062         * lib/xmemcoll.c: Likewise.
56063         * lib/xnanosleep.c: Likewise.
56064         * lib/xreadlink.c: Likewise.
56065         * lib/xreadlink.h: Likewise.
56066         * lib/xsetenv.c: Likewise.
56067         * lib/xsetenv.h: Likewise.
56068         * lib/xstriconv.c: Likewise.
56069         * lib/xstriconv.h: Likewise.
56070         * lib/xstrndup.c: Likewise.
56071         * lib/xstrndup.h: Likewise.
56072         * lib/xstrtod.c: Likewise.
56073         * lib/xstrtod.h: Likewise.
56074         * lib/xstrtol-error.c: Likewise.
56075         * lib/xstrtol.c: Likewise.
56076         * lib/xstrtol.h: Likewise.
56077         * lib/xtime.h: Likewise.
56078         * lib/xvasprintf.c: Likewise.
56079         * lib/xvasprintf.h: Likewise.
56080         * lib/yesno.c: Likewise.
56081         * lib/yesno.h: Likewise.
56082         * posix-modules: Likewise.
56083         * tests/test-alloca-opt.c: Likewise.
56084         * tests/test-arcfour.c: Likewise.
56085         * tests/test-arctwo.c: Likewise.
56086         * tests/test-argmatch.c: Likewise.
56087         * tests/test-argp-2.sh: Likewise.
56088         * tests/test-argp.c: Likewise.
56089         * tests/test-arpa_inet.c: Likewise.
56090         * tests/test-array_list.c: Likewise.
56091         * tests/test-array_oset.c: Likewise.
56092         * tests/test-atexit.c: Likewise.
56093         * tests/test-avltree_list.c: Likewise.
56094         * tests/test-avltree_oset.c: Likewise.
56095         * tests/test-avltreehash_list.c: Likewise.
56096         * tests/test-base64.c: Likewise.
56097         * tests/test-binary-io.c: Likewise.
56098         * tests/test-byteswap.c: Likewise.
56099         * tests/test-c-ctype.c: Likewise.
56100         * tests/test-c-strcasecmp.c: Likewise.
56101         * tests/test-c-strcasestr.c: Likewise.
56102         * tests/test-c-strncasecmp.c: Likewise.
56103         * tests/test-c-strstr.c: Likewise.
56104         * tests/test-canonicalize-lgpl.c: Likewise.
56105         * tests/test-canonicalize.c: Likewise.
56106         * tests/test-carray_list.c: Likewise.
56107         * tests/test-ceilf.c: Likewise.
56108         * tests/test-ceill.c: Likewise.
56109         * tests/test-count-one-bits.c: Likewise.
56110         * tests/test-crc.c: Likewise.
56111         * tests/test-dirname.c: Likewise.
56112         * tests/test-fbufmode.c: Likewise.
56113         * tests/test-fcntl.c: Likewise.
56114         * tests/test-fflush.c: Likewise.
56115         * tests/test-floorf.c: Likewise.
56116         * tests/test-floorl.c: Likewise.
56117         * tests/test-fopen.c: Likewise.
56118         * tests/test-fprintf-posix.c: Likewise.
56119         * tests/test-fprintf-posix.h: Likewise.
56120         * tests/test-fpurge.c: Likewise.
56121         * tests/test-freadable.c: Likewise.
56122         * tests/test-freadahead.c: Likewise.
56123         * tests/test-freading.c: Likewise.
56124         * tests/test-freopen.c: Likewise.
56125         * tests/test-frexp.c: Likewise.
56126         * tests/test-frexpl.c: Likewise.
56127         * tests/test-fseek.c: Likewise.
56128         * tests/test-fseeko.c: Likewise.
56129         * tests/test-fseterr.c: Likewise.
56130         * tests/test-fstrcmp.c: Likewise.
56131         * tests/test-ftell.c: Likewise.
56132         * tests/test-ftello.c: Likewise.
56133         * tests/test-fwritable.c: Likewise.
56134         * tests/test-fwriting.c: Likewise.
56135         * tests/test-getaddrinfo.c: Likewise.
56136         * tests/test-getpass.c: Likewise.
56137         * tests/test-gettimeofday.c: Likewise.
56138         * tests/test-hmac-md5.c: Likewise.
56139         * tests/test-hmac-sha1.c: Likewise.
56140         * tests/test-iconv.c: Likewise.
56141         * tests/test-iconvme.c: Likewise.
56142         * tests/test-inttypes.c: Likewise.
56143         * tests/test-isnan.c: Likewise.
56144         * tests/test-isnanf.c: Likewise.
56145         * tests/test-isnanl-nolibm.c: Likewise.
56146         * tests/test-isnanl.c: Likewise.
56147         * tests/test-isnanl.h: Likewise.
56148         * tests/test-ldexpl.c: Likewise.
56149         * tests/test-linked_list.c: Likewise.
56150         * tests/test-linkedhash_list.c: Likewise.
56151         * tests/test-locale.c: Likewise.
56152         * tests/test-localename.c: Likewise.
56153         * tests/test-lock.c: Likewise.
56154         * tests/test-lseek.c: Likewise.
56155         * tests/test-malloca.c: Likewise.
56156         * tests/test-math.c: Likewise.
56157         * tests/test-mbscasecmp.c: Likewise.
56158         * tests/test-mbscasestr1.c: Likewise.
56159         * tests/test-mbscasestr2.c: Likewise.
56160         * tests/test-mbscasestr3.c: Likewise.
56161         * tests/test-mbscasestr4.c: Likewise.
56162         * tests/test-mbschr.c: Likewise.
56163         * tests/test-mbscspn.c: Likewise.
56164         * tests/test-mbsncasecmp.c: Likewise.
56165         * tests/test-mbspbrk.c: Likewise.
56166         * tests/test-mbspcasecmp.c: Likewise.
56167         * tests/test-mbsrchr.c: Likewise.
56168         * tests/test-mbsspn.c: Likewise.
56169         * tests/test-mbsstr1.c: Likewise.
56170         * tests/test-mbsstr2.c: Likewise.
56171         * tests/test-mbsstr3.c: Likewise.
56172         * tests/test-md5.c: Likewise.
56173         * tests/test-memmem.c: Likewise.
56174         * tests/test-netinet_in.c: Likewise.
56175         * tests/test-open.c: Likewise.
56176         * tests/test-printf-frexp.c: Likewise.
56177         * tests/test-printf-frexpl.c: Likewise.
56178         * tests/test-printf-posix.c: Likewise.
56179         * tests/test-printf-posix.h: Likewise.
56180         * tests/test-rbtree_list.c: Likewise.
56181         * tests/test-rbtree_oset.c: Likewise.
56182         * tests/test-rbtreehash_list.c: Likewise.
56183         * tests/test-read-file.c: Likewise.
56184         * tests/test-rijndael.c: Likewise.
56185         * tests/test-search.c: Likewise.
56186         * tests/test-signbit.c: Likewise.
56187         * tests/test-sleep.c: Likewise.
56188         * tests/test-snprintf-posix.c: Likewise.
56189         * tests/test-snprintf-posix.h: Likewise.
56190         * tests/test-snprintf.c: Likewise.
56191         * tests/test-sprintf-posix.c: Likewise.
56192         * tests/test-sprintf-posix.h: Likewise.
56193         * tests/test-stat-time.c: Likewise.
56194         * tests/test-stdbool.c: Likewise.
56195         * tests/test-stdint.c: Likewise.
56196         * tests/test-stdio.c: Likewise.
56197         * tests/test-stdlib.c: Likewise.
56198         * tests/test-stpncpy.c: Likewise.
56199         * tests/test-strcasestr.c: Likewise.
56200         * tests/test-striconv.c: Likewise.
56201         * tests/test-striconveh.c: Likewise.
56202         * tests/test-striconveha.c: Likewise.
56203         * tests/test-string.c: Likewise.
56204         * tests/test-sys_select.c: Likewise.
56205         * tests/test-sys_socket.c: Likewise.
56206         * tests/test-sys_stat.c: Likewise.
56207         * tests/test-sys_time.c: Likewise.
56208         * tests/test-sysexits.c: Likewise.
56209         * tests/test-time.c: Likewise.
56210         * tests/test-tls.c: Likewise.
56211         * tests/test-trunc.c: Likewise.
56212         * tests/test-truncf.c: Likewise.
56213         * tests/test-truncl.c: Likewise.
56214         * tests/test-unistd.c: Likewise.
56215         * tests/test-vasnprintf-posix.c: Likewise.
56216         * tests/test-vasnprintf-posix2.c: Likewise.
56217         * tests/test-vasnprintf.c: Likewise.
56218         * tests/test-vasprintf-posix.c: Likewise.
56219         * tests/test-vasprintf.c: Likewise.
56220         * tests/test-verify.c: Likewise.
56221         * tests/test-vfprintf-posix.c: Likewise.
56222         * tests/test-vprintf-posix.c: Likewise.
56223         * tests/test-vsnprintf-posix.c: Likewise.
56224         * tests/test-vsnprintf.c: Likewise.
56225         * tests/test-vsprintf-posix.c: Likewise.
56226         * tests/test-wchar.c: Likewise.
56227         * tests/test-wctype.c: Likewise.
56228         * tests/test-wcwidth.c: Likewise.
56229         * tests/test-xstrtol.c: Likewise.
56230         * tests/test-xvasprintf.c: Likewise.
56231         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56232         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56233         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56234         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56235         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56236         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56237         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56238         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56239         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56240         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56241         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56242         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56243         * tests/uniname/test-uninames.c: Likewise.
56244         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56245         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56246         * tests/unistdio/test-u16-printf1.h: Likewise.
56247         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56248         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56249         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56250         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56251         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56252         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56253         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56254         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56255         * tests/unistdio/test-u32-printf1.h: Likewise.
56256         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56257         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56258         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56259         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56260         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56261         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56262         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56263         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56264         * tests/unistdio/test-u8-printf1.h: Likewise.
56265         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56266         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56267         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56268         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56269         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56270         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56271         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56272         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56273         * tests/unistdio/test-ulc-printf1.h: Likewise.
56274         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56275         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56276         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56277         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56278         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56279         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56280         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56281         * tests/uniwidth/test-u16-width.c: Likewise.
56282         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56283         * tests/uniwidth/test-u32-width.c: Likewise.
56284         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56285         * tests/uniwidth/test-u8-width.c: Likewise.
56286         * tests/uniwidth/test-uc_width.c: Likewise.
56287         * config/srclist-update: Likewise.
56288         (fixlicense): Update to GPLv3+.
56289
56290         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56291         * tests/test-tsearch.c: Change copyright notice.
56292
56293         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56294         * lib/c-strcaseeq.h: Change copyright notice.
56295         * lib/streq.h: Likewise.
56296         * lib/uniconv.h: Likewise.
56297         * lib/uniconv/u-conv-from-enc.h: Likewise.
56298         * lib/uniconv/u-conv-to-enc.h: Likewise.
56299         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56300         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56301         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56302         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56303         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56304         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56305         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56306         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56307         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56308         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56309         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56310         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56311         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56312         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56313         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56314         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56315         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56316         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56317         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56318         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56319         * lib/uniname.h: Likewise.
56320         * lib/uniname/uniname.c: Likewise.
56321         * lib/unistdio.h: Likewise.
56322         * lib/unistdio/u-asnprintf.h: Likewise.
56323         * lib/unistdio/u-asprintf.h: Likewise.
56324         * lib/unistdio/u-printf-args.c: Likewise.
56325         * lib/unistdio/u-printf-args.h: Likewise.
56326         * lib/unistdio/u-printf-parse.h: Likewise.
56327         * lib/unistdio/u-snprintf.h: Likewise.
56328         * lib/unistdio/u-sprintf.h: Likewise.
56329         * lib/unistdio/u-vasprintf.h: Likewise.
56330         * lib/unistdio/u-vsnprintf.h: Likewise.
56331         * lib/unistdio/u-vsprintf.h: Likewise.
56332         * lib/unistdio/u16-asnprintf.c: Likewise.
56333         * lib/unistdio/u16-asprintf.c: Likewise.
56334         * lib/unistdio/u16-printf-parse.c: Likewise.
56335         * lib/unistdio/u16-snprintf.c: Likewise.
56336         * lib/unistdio/u16-sprintf.c: Likewise.
56337         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56338         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56339         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56340         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56341         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56342         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56343         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56344         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56345         * lib/unistdio/u16-vasnprintf.c: Likewise.
56346         * lib/unistdio/u16-vasprintf.c: Likewise.
56347         * lib/unistdio/u16-vsnprintf.c: Likewise.
56348         * lib/unistdio/u16-vsprintf.c: Likewise.
56349         * lib/unistdio/u32-asnprintf.c: Likewise.
56350         * lib/unistdio/u32-asprintf.c: Likewise.
56351         * lib/unistdio/u32-printf-parse.c: Likewise.
56352         * lib/unistdio/u32-snprintf.c: Likewise.
56353         * lib/unistdio/u32-sprintf.c: Likewise.
56354         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56355         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56356         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56357         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56358         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56359         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56360         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56361         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56362         * lib/unistdio/u32-vasnprintf.c: Likewise.
56363         * lib/unistdio/u32-vasprintf.c: Likewise.
56364         * lib/unistdio/u32-vsnprintf.c: Likewise.
56365         * lib/unistdio/u32-vsprintf.c: Likewise.
56366         * lib/unistdio/u8-asnprintf.c: Likewise.
56367         * lib/unistdio/u8-asprintf.c: Likewise.
56368         * lib/unistdio/u8-printf-parse.c: Likewise.
56369         * lib/unistdio/u8-snprintf.c: Likewise.
56370         * lib/unistdio/u8-sprintf.c: Likewise.
56371         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56372         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56373         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56374         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56375         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56376         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56377         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56378         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56379         * lib/unistdio/u8-vasnprintf.c: Likewise.
56380         * lib/unistdio/u8-vasprintf.c: Likewise.
56381         * lib/unistdio/u8-vsnprintf.c: Likewise.
56382         * lib/unistdio/u8-vsprintf.c: Likewise.
56383         * lib/unistdio/ulc-asnprintf.c: Likewise.
56384         * lib/unistdio/ulc-asprintf.c: Likewise.
56385         * lib/unistdio/ulc-printf-parse.c: Likewise.
56386         * lib/unistdio/ulc-snprintf.c: Likewise.
56387         * lib/unistdio/ulc-sprintf.c: Likewise.
56388         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56389         * lib/unistdio/ulc-vasprintf.c: Likewise.
56390         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56391         * lib/unistdio/ulc-vsprintf.c: Likewise.
56392         * lib/unistr.h: Likewise.
56393         * lib/unistr/u-cpy-alloc.h: Likewise.
56394         * lib/unistr/u-cpy.h: Likewise.
56395         * lib/unistr/u-endswith.h: Likewise.
56396         * lib/unistr/u-move.h: Likewise.
56397         * lib/unistr/u-set.h: Likewise.
56398         * lib/unistr/u-startswith.h: Likewise.
56399         * lib/unistr/u-stpcpy.h: Likewise.
56400         * lib/unistr/u-stpncpy.h: Likewise.
56401         * lib/unistr/u-strcat.h: Likewise.
56402         * lib/unistr/u-strcpy.h: Likewise.
56403         * lib/unistr/u-strcspn.h: Likewise.
56404         * lib/unistr/u-strdup.h: Likewise.
56405         * lib/unistr/u-strlen.h: Likewise.
56406         * lib/unistr/u-strncat.h: Likewise.
56407         * lib/unistr/u-strncpy.h: Likewise.
56408         * lib/unistr/u-strnlen.h: Likewise.
56409         * lib/unistr/u-strpbrk.h: Likewise.
56410         * lib/unistr/u-strspn.h: Likewise.
56411         * lib/unistr/u-strstr.h: Likewise.
56412         * lib/unistr/u-strtok.h: Likewise.
56413         * lib/unistr/u16-check.c: Likewise.
56414         * lib/unistr/u16-chr.c: Likewise.
56415         * lib/unistr/u16-cmp.c: Likewise.
56416         * lib/unistr/u16-cpy-alloc.c: Likewise.
56417         * lib/unistr/u16-cpy.c: Likewise.
56418         * lib/unistr/u16-endswith.c: Likewise.
56419         * lib/unistr/u16-mblen.c: Likewise.
56420         * lib/unistr/u16-mbsnlen.c: Likewise.
56421         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56422         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56423         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56424         * lib/unistr/u16-mbtouc.c: Likewise.
56425         * lib/unistr/u16-mbtoucr.c: Likewise.
56426         * lib/unistr/u16-move.c: Likewise.
56427         * lib/unistr/u16-next.c: Likewise.
56428         * lib/unistr/u16-prev.c: Likewise.
56429         * lib/unistr/u16-set.c: Likewise.
56430         * lib/unistr/u16-startswith.c: Likewise.
56431         * lib/unistr/u16-stpcpy.c: Likewise.
56432         * lib/unistr/u16-stpncpy.c: Likewise.
56433         * lib/unistr/u16-strcat.c: Likewise.
56434         * lib/unistr/u16-strchr.c: Likewise.
56435         * lib/unistr/u16-strcmp.c: Likewise.
56436         * lib/unistr/u16-strcpy.c: Likewise.
56437         * lib/unistr/u16-strcspn.c: Likewise.
56438         * lib/unistr/u16-strdup.c: Likewise.
56439         * lib/unistr/u16-strlen.c: Likewise.
56440         * lib/unistr/u16-strmblen.c: Likewise.
56441         * lib/unistr/u16-strmbtouc.c: Likewise.
56442         * lib/unistr/u16-strncat.c: Likewise.
56443         * lib/unistr/u16-strncmp.c: Likewise.
56444         * lib/unistr/u16-strncpy.c: Likewise.
56445         * lib/unistr/u16-strnlen.c: Likewise.
56446         * lib/unistr/u16-strpbrk.c: Likewise.
56447         * lib/unistr/u16-strrchr.c: Likewise.
56448         * lib/unistr/u16-strspn.c: Likewise.
56449         * lib/unistr/u16-strstr.c: Likewise.
56450         * lib/unistr/u16-strtok.c: Likewise.
56451         * lib/unistr/u16-to-u32.c: Likewise.
56452         * lib/unistr/u16-to-u8.c: Likewise.
56453         * lib/unistr/u16-uctomb-aux.c: Likewise.
56454         * lib/unistr/u16-uctomb.c: Likewise.
56455         * lib/unistr/u32-check.c: Likewise.
56456         * lib/unistr/u32-chr.c: Likewise.
56457         * lib/unistr/u32-cmp.c: Likewise.
56458         * lib/unistr/u32-cpy-alloc.c: Likewise.
56459         * lib/unistr/u32-cpy.c: Likewise.
56460         * lib/unistr/u32-endswith.c: Likewise.
56461         * lib/unistr/u32-mblen.c: Likewise.
56462         * lib/unistr/u32-mbsnlen.c: Likewise.
56463         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56464         * lib/unistr/u32-mbtouc.c: Likewise.
56465         * lib/unistr/u32-mbtoucr.c: Likewise.
56466         * lib/unistr/u32-move.c: Likewise.
56467         * lib/unistr/u32-next.c: Likewise.
56468         * lib/unistr/u32-prev.c: Likewise.
56469         * lib/unistr/u32-set.c: Likewise.
56470         * lib/unistr/u32-startswith.c: Likewise.
56471         * lib/unistr/u32-stpcpy.c: Likewise.
56472         * lib/unistr/u32-stpncpy.c: Likewise.
56473         * lib/unistr/u32-strcat.c: Likewise.
56474         * lib/unistr/u32-strchr.c: Likewise.
56475         * lib/unistr/u32-strcmp.c: Likewise.
56476         * lib/unistr/u32-strcpy.c: Likewise.
56477         * lib/unistr/u32-strcspn.c: Likewise.
56478         * lib/unistr/u32-strdup.c: Likewise.
56479         * lib/unistr/u32-strlen.c: Likewise.
56480         * lib/unistr/u32-strmblen.c: Likewise.
56481         * lib/unistr/u32-strmbtouc.c: Likewise.
56482         * lib/unistr/u32-strncat.c: Likewise.
56483         * lib/unistr/u32-strncmp.c: Likewise.
56484         * lib/unistr/u32-strncpy.c: Likewise.
56485         * lib/unistr/u32-strnlen.c: Likewise.
56486         * lib/unistr/u32-strpbrk.c: Likewise.
56487         * lib/unistr/u32-strrchr.c: Likewise.
56488         * lib/unistr/u32-strspn.c: Likewise.
56489         * lib/unistr/u32-strstr.c: Likewise.
56490         * lib/unistr/u32-strtok.c: Likewise.
56491         * lib/unistr/u32-to-u16.c: Likewise.
56492         * lib/unistr/u32-to-u8.c: Likewise.
56493         * lib/unistr/u32-uctomb.c: Likewise.
56494         * lib/unistr/u8-check.c: Likewise.
56495         * lib/unistr/u8-chr.c: Likewise.
56496         * lib/unistr/u8-cmp.c: Likewise.
56497         * lib/unistr/u8-cpy-alloc.c: Likewise.
56498         * lib/unistr/u8-cpy.c: Likewise.
56499         * lib/unistr/u8-endswith.c: Likewise.
56500         * lib/unistr/u8-mblen.c: Likewise.
56501         * lib/unistr/u8-mbsnlen.c: Likewise.
56502         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56503         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56504         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56505         * lib/unistr/u8-mbtouc.c: Likewise.
56506         * lib/unistr/u8-mbtoucr.c: Likewise.
56507         * lib/unistr/u8-move.c: Likewise.
56508         * lib/unistr/u8-next.c: Likewise.
56509         * lib/unistr/u8-prev.c: Likewise.
56510         * lib/unistr/u8-set.c: Likewise.
56511         * lib/unistr/u8-startswith.c: Likewise.
56512         * lib/unistr/u8-stpcpy.c: Likewise.
56513         * lib/unistr/u8-stpncpy.c: Likewise.
56514         * lib/unistr/u8-strcat.c: Likewise.
56515         * lib/unistr/u8-strchr.c: Likewise.
56516         * lib/unistr/u8-strcmp.c: Likewise.
56517         * lib/unistr/u8-strcpy.c: Likewise.
56518         * lib/unistr/u8-strcspn.c: Likewise.
56519         * lib/unistr/u8-strdup.c: Likewise.
56520         * lib/unistr/u8-strlen.c: Likewise.
56521         * lib/unistr/u8-strmblen.c: Likewise.
56522         * lib/unistr/u8-strmbtouc.c: Likewise.
56523         * lib/unistr/u8-strncat.c: Likewise.
56524         * lib/unistr/u8-strncmp.c: Likewise.
56525         * lib/unistr/u8-strncpy.c: Likewise.
56526         * lib/unistr/u8-strnlen.c: Likewise.
56527         * lib/unistr/u8-strpbrk.c: Likewise.
56528         * lib/unistr/u8-strrchr.c: Likewise.
56529         * lib/unistr/u8-strspn.c: Likewise.
56530         * lib/unistr/u8-strstr.c: Likewise.
56531         * lib/unistr/u8-strtok.c: Likewise.
56532         * lib/unistr/u8-to-u16.c: Likewise.
56533         * lib/unistr/u8-to-u32.c: Likewise.
56534         * lib/unistr/u8-uctomb-aux.c: Likewise.
56535         * lib/unistr/u8-uctomb.c: Likewise.
56536         * lib/unitypes.h: Likewise.
56537         * lib/uniwidth.h: Likewise.
56538         * lib/uniwidth/cjk.h: Likewise.
56539         * lib/uniwidth/u16-strwidth.c: Likewise.
56540         * lib/uniwidth/u16-width.c: Likewise.
56541         * lib/uniwidth/u32-strwidth.c: Likewise.
56542         * lib/uniwidth/u32-width.c: Likewise.
56543         * lib/uniwidth/u8-strwidth.c: Likewise.
56544         * lib/uniwidth/u8-width.c: Likewise.
56545         * lib/uniwidth/width.c: Likewise.
56546
56547 2007-10-07  Bruno Haible  <bruno@clisp.org>
56548
56549         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56550         The file is still under LGPL (see modules/inttypes).
56551
56552 2007-10-06  Bruno Haible  <bruno@clisp.org>
56553
56554         * modules/trunc (Dependencies): Add 'extensions'.
56555         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56556         Reported by Ben Pfaff <blp@gnu.org>.
56557
56558 2007-10-06  Bruno Haible  <bruno@clisp.org>
56559
56560         * modules/freopen-tests: New file.
56561         * tests/test-freopen.c: New file.
56562
56563         * modules/fopen-tests: New file.
56564         * tests/test-fopen.c: New file.
56565
56566         * modules/fopen: New file.
56567         * lib/fopen.c: New file.
56568         * m4/fopen.m4: New file.
56569         * modules/freopen: New file.
56570         * lib/freopen.c: New file.
56571         * m4/freopen.m4: New file.
56572         * lib/stdio.in.h (fopen, freopen): New declarations.
56573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56574         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56575         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56576         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56577         * doc/functions/fopen.texi: Mention the 'fopen' module.
56578         * doc/functions/freopen.texi: Mention the 'freopen' module.
56579
56580 2007-10-06  Bruno Haible  <bruno@clisp.org>
56581
56582         * modules/open-tests: New file.
56583         * tests/test-open.c: New file.
56584
56585         * modules/open: New file.
56586         * lib/open.c: New file.
56587         * m4/open.m4: New file.
56588         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56589         lib/open.c does.
56590         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56591         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56592         macros.
56593         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56594         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56595         REPLACE_OPEN.
56596         * doc/functions/open.texi: Mention the 'open' module.
56597
56598 2007-10-04  Bruno Haible  <bruno@clisp.org>
56599
56600         * modules/ceill-tests: New file.
56601         * tests/test-ceill.c: New file.
56602
56603         * modules/ceill: New file.
56604         * lib/ceill.c: Replace entire file.
56605         * m4/ceill.m4: New file.
56606         * lib/math.in.h (ceill): Replace declaration.
56607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56608         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56609         * doc/functions/ceill.texi: Mention the 'ceill' module.
56610         * modules/mathl (Files): Remove lib/ceill.c.
56611         (Depends-on): Add ceill.
56612
56613 2007-10-04  Bruno Haible  <bruno@clisp.org>
56614
56615         * modules/ceilf-tests: New file.
56616         * tests/test-ceilf.c: New file.
56617
56618         * modules/ceilf: New file.
56619         * lib/ceil.c: New file.
56620         * lib/ceilf.c: New file.
56621         * m4/ceilf.m4: New file.
56622         * lib/math.in.h (ceilf): New declaration.
56623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56624         HAVE_DECL_CEILF.
56625         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56626         HAVE_DECL_CEILF.
56627         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56628
56629 2007-10-04  Bruno Haible  <bruno@clisp.org>
56630
56631         * modules/floorl-tests: New file.
56632         * tests/test-floorl.c: New file.
56633
56634         * modules/floorl: New file.
56635         * lib/floorl.c: Replace entire file.
56636         * m4/floorl.m4: New file.
56637         * lib/math.in.h (floorl): Replace declaration.
56638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56639         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56640         * doc/functions/floorl.texi: Mention the 'floorl' module.
56641         * modules/mathl (Files): Remove lib/floorl.c.
56642         (Depends-on): Add floorl.
56643
56644 2007-10-04  Bruno Haible  <bruno@clisp.org>
56645
56646         * modules/floorf-tests: New file.
56647         * tests/test-floorf.c: New file.
56648
56649         * modules/floorf: New file.
56650         * lib/floor.c: New file.
56651         * lib/floorf.c: New file.
56652         * m4/floorf.m4: New file.
56653         * lib/math.in.h (floorf): New declaration.
56654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56655         HAVE_DECL_FLOORF.
56656         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56657         HAVE_DECL_FLOORF.
56658         * doc/functions/floorf.texi: Mention the 'floorf' module.
56659
56660 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56661             Bruno Haible  <bruno@clisp.org>
56662
56663         Advertise for the Git server instead of the CVS server.
56664         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56665         repository instead of the CVS one.
56666         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56667         about all VCS systems generically.
56668         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56669
56670 2007-10-04  Bruno Haible  <bruno@clisp.org>
56671
56672         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56673         means.
56674         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56675
56676 2007-10-04  Bruno Haible  <bruno@clisp.org>
56677
56678         * modules/truncl-tests: New file.
56679         * tests/test-truncl.c: New file.
56680
56681         * modules/truncl: New file.
56682         * lib/truncl.c: New file.
56683         * m4/truncl.m4: New file.
56684         * lib/math.in.h (truncl): New declaration.
56685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56686         HAVE_DECL_TRUNCL.
56687         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56688         HAVE_DECL_TRUNCL.
56689         * doc/functions/truncl.texi: Mention the 'truncl' module.
56690
56691 2007-10-04  Bruno Haible  <bruno@clisp.org>
56692
56693         * modules/truncf-tests: New file.
56694         * tests/test-truncf.c: New file.
56695
56696         * modules/truncf: New file.
56697         * lib/trunc.c: Make paramerizable through USE_* macros.
56698         * lib/truncf.c: New file.
56699         * m4/truncf.m4: New file.
56700         * lib/math.in.h (truncf): New declaration.
56701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56702         HAVE_DECL_TRUNCF.
56703         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56704         HAVE_DECL_TRUNCF.
56705         * doc/functions/truncf.texi: Mention the 'truncf' module.
56706
56707 2007-10-03  Bruno Haible  <bruno@clisp.org>
56708
56709         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56710         augmentation also for tests modules.
56711         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56712         * modules/atexit-tests (Makefile.am): Likewise.
56713         * modules/binary-io-tests (Makefile.am): Likewise.
56714         * modules/c-strcase-tests (Makefile.am): Likewise.
56715         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56716         * modules/canonicalize-tests (Makefile.am): Likewise.
56717         * modules/closein-tests (Makefile.am): Likewise.
56718         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56719         * modules/freadahead-tests (Makefile.am): Likewise.
56720         * modules/fseek-tests (Makefile.am): Likewise.
56721         * modules/fseeko-tests (Makefile.am): Likewise.
56722         * modules/ftell-tests (Makefile.am): Likewise.
56723         * modules/ftello-tests (Makefile.am): Likewise.
56724         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56725         * modules/isnanl-tests (Makefile.am): Likewise.
56726         * modules/lseek-tests (Makefile.am): Likewise.
56727         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56728         * modules/mbscasestr-tests (Makefile.am): Likewise.
56729         * modules/mbschr-tests (Makefile.am): Likewise.
56730         * modules/mbscspn-tests (Makefile.am): Likewise.
56731         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56732         * modules/mbspbrk-tests (Makefile.am): Likewise.
56733         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56734         * modules/mbsrchr-tests (Makefile.am): Likewise.
56735         * modules/mbsspn-tests (Makefile.am): Likewise.
56736         * modules/mbsstr-tests (Makefile.am): Likewise.
56737         * modules/printf-posix-tests (Makefile.am): Likewise.
56738         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56739         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56740         * modules/tsearch-tests (Makefile.am): Likewise.
56741         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56742         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56743         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56744         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56745         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56746         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56747         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56748         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56749         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56750         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56751         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56752         * modules/xstrtol-tests (Makefile.am): Likewise.
56753         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56754         * modules/yesno-tests (Makefile.am): Likewise.
56755
56756 2007-10-03  Bruno Haible  <bruno@clisp.org>
56757
56758         * modules/trunc-tests: New file.
56759         * tests/test-trunc.c: New file.
56760
56761         * modules/trunc: New file.
56762         * lib/trunc.c: New file.
56763         * m4/trunc.m4: New file.
56764         * lib/math.in.h (trunc): New declaration.
56765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56766         HAVE_DECL_TRUNC.
56767         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56768         HAVE_DECL_TRUNC.
56769         * doc/functions/trunc.texi: Mention the 'trunc' module.
56770
56771 2007-10-03  Bruno Haible  <bruno@clisp.org>
56772
56773         * tests/test-fpending.c: New file, mostly copied
56774         from coreutils/lib/t-fpending.c.
56775         * modules/fpending-tests: New file.
56776
56777 2007-10-03  Bruno Haible  <bruno@clisp.org>
56778
56779         Port the stdio extensions to QNX (untested).
56780         * lib/fseterr.c (fseterr): Add support for QNX.
56781         * lib/fbufmode.c (fbufmode): Likewise.
56782         * lib/freadable.c (freadable): Likewise.
56783         * lib/fwritable.c (fwritable): Likewise.
56784         * lib/freading.c (freading): Likewise.
56785         * lib/fwriting.c (fwriting): Likewise.
56786         * lib/freadahead.c (freadahed): Likewise.
56787         * lib/fpurge.c (fpurge): Likewise.
56788         * lib/fseeko.c (rpl_fseeko): Likewise.
56789
56790 2007-10-03  Bruno Haible  <bruno@clisp.org>
56791             Jim Meyering  <jim@meyering.net>
56792             Eric Blake  <ebb9@byu.net>
56793
56794         * doc/relocatable.texi: Use @command instead of @program.
56795
56796 2007-10-02  Jim Meyering  <jim@meyering.net>
56797
56798         Perform one more "_.h" -> ".in.h" substitution.
56799         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56800         instead of unistd_.h here, too.
56801
56802 2007-10-01  Bruno Haible  <bruno@clisp.org>
56803
56804         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56805         Needed for the alloca-opt module.
56806
56807 2007-09-30  Bruno Haible  <bruno@clisp.org>
56808
56809         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56810         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56811         alloca_.h.
56812         * lib/argz.in.h: Renamed from lib/argz_.h.
56813         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56814         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56815         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56816         byteswap_.h.
56817         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56818         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56819         dirent_.h.
56820         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56821         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56822         fcntl_.h.
56823         * lib/float.in.h: Renamed from lib/float_.h.
56824         * modules/float (Files, Makefile.am): Use float.in.h instead of
56825         float_.h.
56826         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56827         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56828         fnmatch_.h.
56829         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56830         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56831         getopt_.h.
56832         * lib/glob.in.h: Renamed from lib/glob_.h.
56833         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56834         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56835         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56836         iconv_.h.
56837         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56838         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56839         inttypes_.h.
56840         * lib/locale.in.h: Renamed from lib/locale_.h.
56841         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56842         locale_.h.
56843         * lib/math.in.h: Renamed from lib/math_.h.
56844         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56845         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56846         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56847         of netinet_in_.h. Add dependency.
56848         * lib/poll.in.h: Renamed from lib/poll_.h.
56849         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56850         * lib/search.in.h: Renamed from lib/search_.h.
56851         * modules/search (Files, Makefile.am): Use search.in.h instead of
56852         search_.h.
56853         * lib/signal.in.h: Renamed from lib/signal_.h.
56854         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56855         _signal.h.
56856         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56857         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56858         stdbool_.h.
56859         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56860         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56861         stdint_.h.
56862         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56863         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56864         stdio_.h.
56865         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56866         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56867         stdlib_.h.
56868         * lib/string.in.h: Renamed from lib/string_.h.
56869         * modules/string (Files, Makefile.am): Use string.in.h instead of
56870         string_.h.
56871         * doc/gnulib-tool.texi (Initial import): Update.
56872         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56873         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56874         of sys_select_.h. Add dependency.
56875         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56876         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56877         of sys_socket_.h.
56878         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56879         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56880         sys_stat_.h.
56881         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56882         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56883         sys_time_.h.
56884         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56885         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56886         sysexits_.h.
56887         * lib/time.in.h: Renamed from lib/time_.h.
56888         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56889         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56890         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56891         unistd_.h.
56892         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56893         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56894         wchar_.h.
56895         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56896         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56897         wctype_.h.
56898         * build-aux/bootstrap (slurp): Update.
56899         * lib/.cppi-disable: Update.
56900
56901 2007-09-30  Bruno Haible  <bruno@clisp.org>
56902
56903         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56904         Needed on BeOS.
56905
56906 2007-09-30  Bruno Haible  <bruno@clisp.org>
56907
56908         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56909
56910 2007-09-29  Bruno Haible  <bruno@clisp.org>
56911
56912         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56913
56914 2007-09-29  Bruno Haible  <bruno@clisp.org>
56915
56916         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56917         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56918         * build-aux/install-reloc: Compile also areadlink.c.
56919         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56920
56921 2007-09-29  Bruno Haible  <bruno@clisp.org>
56922
56923         * gnulib-tool (func_emit_initmacro_done): Indentation.
56924
56925 2007-09-29  Bruno Haible  <bruno@clisp.org>
56926
56927         * README: Add CVS checkout update instructions.
56928         Info from Bob Proulx <bob@proulx.com>.
56929
56930 2007-09-28  Eric Blake  <ebb9@byu.net>
56931
56932         Provide move-if-change.
56933         * build-aux/move-if-change: New file, based on best practice
56934         rather than any canonical upstream location.
56935
56936 2007-09-28  Jim Meyering  <jim@meyering.net>
56937
56938         Fix canonicalize loop-detection corner case.
56939         Do not attempt to stat the symlink values stored via seen_triple.
56940         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56941         on linux-2.6.18, (but not 2.6.22).
56942         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56943         triple_compare.  The former compares dev,ino,filename, while the latter
56944         would actually stat dirname(filename) when dev and ino were equal.
56945         * lib/hash-triple.c: Install <string.h>.
56946         (STREQ): Define.
56947         (triple_compare_ino_str): New function.
56948         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56949
56950 2007-09-28  Eric Blake  <ebb9@byu.net>
56951
56952         Enforce that AC_REPLACE_FUNCS files exist.
56953         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56954         override check for typos.
56955
56956         Fix test-closein on Solaris 10.
56957         * tests/test-closein.c (main): Don't assume stdin can be inherited
56958         closed on all systems.
56959         * tests/test-closein.sh: Likewise.
56960         Reported by Piotr Tarnowski.
56961
56962 2007-09-28  Jim Meyering  <jim@meyering.net>
56963
56964         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56965
56966 2007-09-27  Jim Meyering  <jim@meyering.net>
56967
56968         canonicalize: Avoid a false-positive cycle failure.
56969         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56970         Sort.  Remove cycle-check.
56971         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56972         not cycle-check.h.
56973         (seen_triple): New function.
56974         (canonicalize_filename_mode): Use it instead of cycle-check.
56975         * tests/test-canonicalize.c: Add a test for this bug.
56976         * tests/test-canonicalize.sh: Set up and run the test.
56977
56978         New module, file-set, from coreutils.
56979         * modules/file-set: Define it.
56980         * lib/file-set.c, lib/file-set.h: Implement.
56981
56982         New module, hash-triple, from coreutils.
56983         * modules/hash-triple: Define it.
56984         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56985
56986 2007-09-25  Eric Blake  <ebb9@byu.net>
56987
56988         Fix strerror on Interix.
56989         * lib/string_.h (strerror): Declare replacement.
56990         * doc/functions/strerror.texi (strerror): Document the Interix
56991         shortcoming.
56992         * modules/string (Makefile.am): Support new hooks.
56993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56994         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56995         gl_FUNC_STRERROR_SEPARATE.
56996         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56997         * lib/strerror.c (rpl_strerror): Provide replacement.
56998         * modules/strerror (Depends-on): Add string.
56999         (configure.ac): Detect use of module.
57000         * tests/test-strerror.c: New file.
57001         * modules/strerror-tests: New test module.
57002         * modules/argp (Depends-on): Add strerror.
57003         * modules/error (Depends-on): Likewise.
57004         Reported by Martin Koeppe.
57005
57006 2007-09-24  Bruno Haible  <bruno@clisp.org>
57007
57008         * README: Update git instructions.
57009
57010 2007-09-24  Eric Blake  <ebb9@byu.net>
57011
57012         Revert fpending breakage from 2007-09-08.
57013         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57014         __fpending.c.
57015
57016 2007-09-24  Jim Meyering  <jim@meyering.net>
57017
57018         filenamecat.c: Add a test.
57019         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57020         showing how the function works when DIR is the empty string.
57021
57022 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57023
57024         * tests/test-canonicalize.sh: Turn on executable bit.
57025
57026 2007-09-19  Eric Blake  <ebb9@byu.net>
57027
57028         * README: Update CVS instructions.
57029
57030 2007-09-18  Bruno Haible  <bruno@clisp.org>
57031
57032         * modules/areadlink: New file.
57033         * lib/areadlink.h (areadlink): New declaration.
57034         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57035
57036 2007-09-17  Jim Meyering  <jim@meyering.net>
57037
57038         * lib/savewd.c (ESTALE) [!defined]: Define.
57039         Reported to be required on Interix by Martin Koeppe.
57040
57041 2007-09-17  Bruno Haible  <bruno@clisp.org>
57042
57043         * gnulib-tool (func_version): Use $version.
57044
57045 2007-09-16  Bruno Haible  <bruno@clisp.org>
57046
57047         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57048         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57049         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57050         Reported by Greg Schafer <gschafer@zip.com.au>.
57051
57052 2007-09-15  Bruno Haible  <bruno@clisp.org>
57053
57054         * gnulib-tool (sed): Try a little harder to make bash understand the
57055         alias.
57056         Reported by Bruce Korb <bruce.korb@gmail.com>.
57057
57058 2007-09-13  Eric Blake  <ebb9@byu.net>
57059
57060         * ChangeLog: Remove conflict markers.
57061
57062 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57063
57064         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57065         Reported by Bruno Haible <bruno@clisp.org>.
57066
57067 2007-09-12  Bruno Haible  <bruno@clisp.org>
57068
57069         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57070         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57071         is not defined.
57072
57073 2007-09-12  Eric Blake  <ebb9@byu.net>
57074
57075         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57076         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57077         Autoconf definition.
57078         * modules/euidaccess (Depends-on): Add extensions, for
57079         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57080         * modules/fnmatch (Depends-on): Likewise.
57081         * modules/getaddrinfo (Depends-on): Likewise.
57082         * modules/getdelim (Depends-on): Likewise.
57083         * modules/getline (Depends-on): Likewise.
57084         * modules/getsubopt (Depends-on): Likewise.
57085         * modules/gettext (Depends-on): Likewise.
57086         * modules/group-member (Depends-on): Likewise.
57087         * modules/mbchar (Depends-on): Likewise.
57088         * modules/memmem (Depends-on): Likewise.
57089         * modules/mempcpy (Depends-on): Likewise.
57090         * modules/memrchr (Depends-on): Likewise.
57091         * modules/pagealign_alloc (Depends-on): Likewise.
57092         * modules/readutmp (Depends-on): Likewise.
57093         * modules/stpcpy (Depends-on): Likewise.
57094         * modules/stpncpy (Depends-on): Likewise.
57095         * modules/strchrnul (Depends-on): Likewise.
57096         * modules/strndup (Depends-on): Likewise.
57097         * modules/strsep (Depends-on): Likewise.
57098         * modules/strverscmp (Depends-on): Likewise.
57099         * modules/vasprintf (Depends-on): Likewise.
57100         * modules/wcwidth (Depends-on): Likewise.
57101         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57102         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57103         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57104         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57105         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57106         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57107         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57108         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57109         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57110         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57111         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57112         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57113         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57114         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57115         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57116         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57117         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57118         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57119         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57120         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57121         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57122         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57123         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57124         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57125         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57127         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57128         so that lock.m4 can be used in gettext without extensions module.
57129
57130 2007-09-11  Bruno Haible  <bruno@clisp.org>
57131
57132         * m4/isc-posix.m4: Remove file.
57133         Suggested by Eric Blake.
57134
57135 2007-09-11  Eric Blake  <ebb9@byu.net>
57136
57137         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57138
57139 2007-09-10  Bruno Haible  <bruno@clisp.org>
57140
57141         * posix-modules: Fix typo in error message.
57142         Reported by Matt <mkraai@beckman.com>.
57143
57144 2007-09-09  Bruno Haible  <bruno@clisp.org>
57145
57146         * doc/functions/getdelim.texi: Update list of platforms lacking the
57147         function.
57148         * doc/functions/getline.texi: Likewise.
57149
57150 2007-09-09  Jim Meyering  <jim@meyering.net>
57151
57152         * lib/hash.c (hash_initialize): Detect calloc failure.
57153         Reported by Bruno Haible.
57154
57155 2007-09-09  Bruno Haible  <bruno@clisp.org>
57156
57157         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57158         malloc or realloc fails.
57159
57160 2007-09-09  Bruno Haible  <bruno@clisp.org>
57161
57162         * modules/getcwd (Depends-on): Add malloc-posix.
57163         * modules/glob (Depends-on): Likewise.
57164         * modules/putenv (Depends-on): Likewise.
57165         * modules/strdup (Depends-on): Likewise.
57166         * modules/getdelim (Depends-on): Add realloc-posix.
57167         * modules/read-file (Depends-on): Likewise.
57168
57169 2007-09-09  Bruno Haible  <bruno@clisp.org>
57170
57171         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57172         (gl_FUNC_MALLOC_POSIX): Require it.
57173         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57174         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57175         * modules/realloc (Files): Add m4/malloc.m4.
57176         * modules/calloc (Files): Likewise.
57177
57178 2007-09-09  Bruno Haible  <bruno@clisp.org>
57179
57180         * modules/malloc-posix: New file.
57181         * modules/malloc (Depends-on): Add malloc-posix.
57182         * lib/malloc.c: Include errno.h.
57183         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57184         and a POSIX-compatible malloc into a single function. Set ENOMEM
57185         when returning NULL.
57186         * m4/malloc.m4: New file.
57187         * doc/functions/malloc.texi: Mention the malloc-posix module.
57188         * lib/stdlib_.h (malloc): New declaration.
57189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57190         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57191         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57192         and HAVE_MALLOC_POSIX.
57193
57194 2007-09-09  Bruno Haible  <bruno@clisp.org>
57195
57196         * modules/realloc-posix: New file.
57197         * modules/realloc (Depends-on): Add realloc-posix.
57198         * lib/realloc.c: Include errno.h.
57199         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57200         and a POSIX-compatible realloc into a single function. Set ENOMEM
57201         when returning NULL.
57202         * m4/realloc.m4: New file.
57203         * doc/functions/realloc.texi: Mention the realloc-posix module.
57204         * lib/stdlib_.h (realloc): New declaration.
57205         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57206         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57207         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57208         and HAVE_REALLOC_POSIX.
57209
57210 2007-09-09  Bruno Haible  <bruno@clisp.org>
57211
57212         * modules/calloc-posix: New file.
57213         * modules/calloc (Depends-on): Add calloc-posix.
57214         * lib/calloc.c: Include errno.h.
57215         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57216         and a POSIX-compatible calloc into a single function. Set ENOMEM
57217         when returning NULL.
57218         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57219         * doc/functions/calloc.texi: Mention the calloc-posix module.
57220         * lib/stdlib_.h (calloc): New declaration.
57221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57222         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57223         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57224         and HAVE_CALLOC_POSIX.
57225
57226 2007-09-09  Bruno Haible  <bruno@clisp.org>
57227
57228         Allow for modules to show an arbitrary notice.
57229         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57230         * gnulib-tool: New option --extract-notice.
57231         (func_usage): Document it.
57232         (sed_extract_prog): Update.
57233         (func_get_notice): New function.
57234         (func_modules_notice): New function.
57235         (func_import, func_create_testdir): Invoke it.
57236         Suggested by Jim Meyering.
57237
57238 2007-09-09  Bruno Haible  <bruno@clisp.org>
57239
57240         * gnulib-tool: New options --verbose, --quiet.
57241         (func_usage): Document them.
57242         (verbose): New variable.
57243         (func_execute_command): New function.
57244         (func_import): Don't show the module list and the file list if
57245         $verbose < 0.
57246         (func_create_testdir): Likewise. Use func_execute_command.
57247         (func_create_megatestdir): Use func_execute_command.
57248
57249 2007-09-08  Bruno Haible  <bruno@clisp.org>
57250
57251         * gnulib-tool (func_import): Prefer rsync over wget when available,
57252         for fetching the PO files.
57253
57254 2007-09-08  Bruno Haible  <bruno@clisp.org>
57255
57256         * posix-modules: New file. Portions copied from gnulib-tool.
57257         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57258
57259 2007-09-08  Jim Meyering  <jim@meyering.net>
57260
57261         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57262         * lib/fpending.h: Rename from __fpending.h.
57263         * lib/fpending.c: Rename from __fpending.c.
57264         Include "fpending.h", not "__fpending.h".
57265         * lib/__fpending.h, lib/__fpending.c: Remove files.
57266         * modules/fpending (Files): Reflect new file names.
57267         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57268
57269 2007-09-08  Bruno Haible  <bruno@clisp.org>
57270
57271         * m4/inttypes-h.m4: Remove stub file.
57272
57273 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57274
57275         * doc/headers/stdint.texi: Discuss #include_next issue.
57276
57277 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57278
57279         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57280
57281 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57282
57283         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57284         in variable name.
57285
57286 2007-09-03  Jim Meyering  <jim@meyering.net>
57287
57288         New module: git-version-gen.
57289         * modules/git-version-gen: New file.
57290
57291         Import changes from coreutils for bootstrap script.
57292
57293         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57294
57295         bootstrap: uses rsync to download the .po files
57296         * build-aux/bootstrap (po_download_command_format): New global.
57297         (download_po_files): Use rsync.
57298         (update_po_files): Don't remove .po files after download,
57299         so future rsync runs can take advantage of the copies.
57300
57301         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57302
57303         Solve the unnecessary-.po-file-regeneration problem once and for all.
57304         * build-aux/bootstrap (download_po_files): New function, renamed from
57305         get_translations.  Now, downloads, but doesn't update LINGUAS.
57306         (update_po_files): New function.
57307
57308         bootstrap: Ignore more.
57309         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57310         uniwidth to e.g., lib/.gitignore.
57311         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57312
57313         * build-aux/bootstrap: New setting: vc_ignore.
57314         (insert_sorted_if_absent): Create $file if absent.
57315         Adapt to new, possibly empty, list: $vc_ignore.
57316
57317         bootstrap: generate more ignorable names
57318         * build-aux/bootstrap (slurp): When generating ignorable names,
57319         also map .sin to .sed, .gperf to .c, and .y to .c.
57320
57321 2007-09-03  Jim Meyering  <jim@meyering.net>
57322
57323         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57324         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57325
57326 2007-09-02  Bruno Haible  <bruno@clisp.org>
57327
57328         Fix mis-recognition of 'mcs' on QNX 6.
57329         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57330         output contains the string "Mono".
57331         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57332         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57333
57334 2007-09-01  Bruno Haible  <bruno@clisp.org>
57335
57336         Fix collision between uniwidth/* and linebreak modules.
57337         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57338         u32_width): Remove declarations.
57339         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57340         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57341         streq3, streq2, streq1, streq0): Remove functions.
57342         (STREQ): Remove macro.
57343         (is_cjk_encoding): Remove function.
57344         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57345         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57346         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57347         * NEWS: Document the change.
57348
57349 2007-09-01  Bruno Haible  <bruno@clisp.org>
57350
57351         * lib/streq.h: Add double-inclusion guard.
57352
57353 2007-09-01  Karl Berry  <karl@gnu.org>
57354
57355         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57356
57357 2007-08-28  Jim Meyering  <jim@meyering.net>
57358
57359         Rename mreadlink_with_size to areadlink_with_size.
57360         * NEWS: Document the change.
57361         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57362         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57363         * lib/mreadlink.h: Rename this to...
57364         * lib/areadlink.h: ...this.
57365         * modules/mreadlink-with-size: Rename this to...
57366         * modules/areadlink-with-size: ...this.
57367         * lib/canonicalize.c: Reflect the renaming.
57368         * modules/canonicalize: Likewise.
57369
57370 2007-08-26  Bruno Haible  <bruno@clisp.org>
57371
57372         * gnulib-tool (func_import): When deciding which files to remove,
57373         consider also dangling symbolic links.
57374         Reported by Eric Blake.
57375
57376 2007-08-26  Bruno Haible  <bruno@clisp.org>
57377
57378         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57379
57380 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57381
57382         * lib/readline.c: Don't include getline.h, the prototype is now
57383         found in stdio.h.
57384
57385 2007-08-23  Jim Meyering  <jim@meyering.net>
57386
57387         Getdelim touchup.
57388         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57389         around the funlockfile call, since funlockfile never sets errno.
57390         Don't set errno upon failed realloc.
57391
57392 2007-08-22  Eric Blake  <ebb9@byu.net>
57393
57394         Getline touchups.
57395         * lib/getdelim.c (getdelim): Revert regression that required *n to
57396         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57397         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57398         getdelim, rather than whether implementation is missing.
57399         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57400         * lib/stdio_.h (getline): Also declare if replacement is
57401         required.
57402         * doc/functions/getdelim.texi: New file.
57403         * doc/functions/getline.texi: Likewise.
57404         * doc/gnulib.texi (Function Substitutes): Add new files.
57405         Reported by Bruno Haible.
57406
57407 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57408
57409         * users.txt: Add Guile.
57410
57411 2007-08-22  Eric Blake  <ebb9@byu.net>
57412
57413         * tests/test-getdelim.c (main): Use remove, not unlink.
57414         * tests/test-getline.c (main): Likewise.
57415
57416         Move getline and getdelim into stdio.h, per POSIX 200x.
57417         * modules/getline (Files): Remove getline.h.
57418         (Depends-on): Add stdio.
57419         (configure.ac): Add module indicator.
57420         * modules/getdelim (Files): Remove getdelim.h.
57421         (Depends-on): Add stdio.
57422         (configure.ac): Add module indicator.
57423         * modules/stdio (Makefile.am): Work with new indicators.
57424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57425         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57426         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57427         * lib/getdelim.h: Delete.
57428         * lib/getline.h: Delete.
57429         * lib/stdio_.h (getdelim, getline): Declare.
57430         * modules/getdelim-tests: New module.
57431         * modules/getline-tests: Likewise.
57432         * tests/test-getdelim.c: New file.
57433         * tests/test-getline.c: Likewise.
57434         * NEWS: Document the change.
57435         * lib/getline.c: Update choice of header.
57436         * lib/csharpcomp.c: Likewise.
57437         * lib/getpass.c: Likewise.
57438         * lib/javacomp.c: Likewise.
57439         * lib/javaversion.c: Likewise.
57440         * lib/yesno.c: Likewise.
57441         * lib/getdelim.c: Likewise.
57442         (getdelim): Set errno on failure, and avoid memory leak.
57443
57444 2007-08-19  Bruno Haible  <bruno@clisp.org>
57445
57446         * modules/closein (Depends-on): Add freadahead.
57447         * lib/closein.c: Include freadahead.h.
57448         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57449         is zero.
57450
57451 2007-08-19  Bruno Haible  <bruno@clisp.org>
57452
57453         * modules/freadahead-tests: New file.
57454         * tests/test-freadahead.sh: New file.
57455         * tests/test-freadahead.c: New file.
57456
57457         * modules/freadahead: New file.
57458         * lib/freadahead.h: New file.
57459         * lib/freadahead.c: New file.
57460         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57461         fbufmode, fpurge, freadable, fwritable.
57462
57463 2007-08-19  Eric Blake  <ebb9@byu.net>
57464
57465         Test yesno in combination with closein.
57466         * lib/yesno.c (yesno): Document use of stdin.
57467         * modules/yesno-tests (Files): New module.
57468         * tests/test-yesno.c (main): New file.
57469         * tests/test-yesno.sh: Likewise.
57470
57471 2007-08-19  Bruno Haible  <bruno@clisp.org>
57472
57473         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57474         * lib/fseeko.c (rpl_fseeko): Likewise.
57475         * lib/fseterr.c (fseterr): Likewise.
57476
57477 2007-08-19  Bruno Haible  <bruno@clisp.org>
57478
57479         * tests/test-lseek.c (main): Disable a test for BeOS.
57480         * doc/functions/lseek.texi: Document the BeOS bug.
57481
57482 2007-08-19  Bruno Haible  <bruno@clisp.org>
57483             Eric Blake  <ebb9@byu.net>
57484
57485         * lib/lseek.c: Include <sys/stat.h>.
57486         (rpl_lseek): Add workaround code also for Unix platforms.
57487         Needed for BeOS.
57488         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57489         * doc/functions/lseek.texi: Document BeOS definiency.
57490
57491 2007-08-18  Bruno Haible  <bruno@clisp.org>
57492
57493         * modules/fstrcmp-tests: New file.
57494         * tests/test-fstrcmp.c: New file.
57495
57496 2007-08-18  Bruno Haible  <bruno@clisp.org>
57497
57498         * modules/fstrcmp: New file, from GNU gettext with modifications.
57499         * lib/fstrcmp.h: New file, from GNU gettext.
57500         * lib/fstrcmp.c: New file, from GNU gettext.
57501         * MODULES.html.sh (String handling): Add fstrcmp.
57502
57503 2007-08-18  Bruno Haible  <bruno@clisp.org>
57504
57505         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57506         'bool'.
57507         (diag, compareseq): Remove const from the ctxt argument.
57508         (USE_HEURISTIC): Undefine at the end.
57509
57510 2007-08-18  Jim Meyering  <jim@meyering.net>
57511
57512         New file: lib/idcache.h
57513         * NEWS: Mention the addition.
57514         * modules/idcache (Files): Add lib/idcache.h
57515         * lib/idcache.c: Include "idcache.h".
57516         Don't include <sys/types.h>.
57517         Add a FIXME comment.
57518         Move file-scoped "static" declarations to the top.
57519         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57520
57521 2007-08-17  Bruno Haible  <bruno@clisp.org>
57522         and Paul Eggert  <eggert@cs.ucla.edu>
57523
57524         * MODULES.html.sh: Add diffseq.
57525         * modules/diffseq: New file.
57526         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57527         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57528
57529 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57530
57531         Import changes from coreutils for bootstrap script.
57532
57533         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57534
57535         * build-aux/bootstrap (slurp): Work even in environments where
57536         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57537         current code does not slurp files whose names start with ".", and
57538         this looks like it might be a troublesome area.
57539
57540         2007-07-11  Jim Meyering  <jim@meyering.net>
57541
57542         If there's a GPL vN copyright comment, require that N == 3.
57543
57544         2007-07-08  Jim Meyering  <jim@meyering.net>
57545
57546         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57547         * build-aux/bootstrap (mam_template): Move definition out of loop.
57548
57549         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57550
57551         * build-aux/bootstrap (symlink_to_dir): Rename function from
57552         symlink_to_gnulib.  Add a directory parameter.  Update all
57553         callers.
57554         (cp_mark_as_generated): Also check for -- and link to -- files in
57555         gl/.
57556
57557         2007-07-08  Jim Meyering  <jim@meyering.net>
57558
57559         Adapt to deeper hierarchy in gnulib.
57560         * build-aux/bootstrap (symlink_to_dir): If the destination
57561         directory doesn't exist, create it. This is required at least for
57562         "lib/uniwidth/cjk.h".
57563
57564         2007-05-15  Jim Meyering  <jim@meyering.net>
57565
57566         * build-aux/bootstrap: Now that generated Makefile.am files
57567         are no longer under version control, they must be created at
57568         bootstrap time.
57569
57570 2007-08-14  Ben Pfaff  <blp@gnu.org>
57571
57572         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57573
57574 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57575
57576         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57577         given the changes below.
57578         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57579         even on hosts that have padding bits beyond the supported 64.
57580
57581 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57582
57583         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57584         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57585         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57586         depends on it.
57587         (xstrtol_error): Remove.
57588         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57589         but with a different signature.
57590         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57591         * lib/xstrtol-error.c: Include exitfail.h.
57592         (xstrtol_fatal): New function, with a different signature from the
57593         old xstrtol_error, so that the caller need not worry about passing
57594         in an exit status, or about storage management of the option argument.
57595         (xstrtol_error): Now a static function.  Redo signature to
57596         implement xstrtol_fatal.  Output the correct number of hyphens in
57597         front of the option so that the caller need not worry about
57598         storage management.
57599         (N_): New macro.
57600         (_): Remove; not used now.
57601         * modules/xstrtol: Depend on getopt.
57602         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57603         of old STRTOL_FATAL_ERROR macro.
57604         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57605         of test program.
57606         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57607         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57608
57609 2007-08-08  Eric Blake  <ebb9@byu.net>
57610
57611         * lib/xstrtol-error.c: Add missing include.
57612
57613         Move xstrtol messages into gnulib domain, when --pobase is used.
57614         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57615         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57616         * modules/xstrtol (Files): Distribute new file.
57617         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57618         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57619         * tests/test-xstrtol.c: ...into new file.
57620         * tests/test-xstrtoul.c: Also test xstrtoul.
57621         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57622         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57623         * tests/test-xstrtol.sh: Drive the tests.
57624         * tests/test-xstrtoimax.sh: Likewise.
57625         * tests/test-xstrtoumax.sh: Likewise.
57626         * modules/xstrtol-tests: New module.
57627         * modules/xstrtoimax-tests: Likewise.
57628         * modules/xstrtoumax-tests: Likewise.
57629
57630 2007-08-08  Jim Meyering  <jim@meyering.net>
57631
57632         New function: mfile_name_concat.
57633         * lib/filenamecat.c (mfile_name_concat): New function, just like
57634         file_name_concat, but return NULL upon failure rather than exiting
57635         with a diagnostic.
57636         * lib/filenamecat.h: Declare it.
57637
57638 2007-08-07  Bruno Haible  <bruno@clisp.org>
57639
57640         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57641         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57642         warning from gcc.
57643         Reported by Eric Blake.
57644
57645 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57646
57647         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57648         * modules/crypto/arcfour (License): Likewise.
57649         * modules/crypto/des-tests (License): Likewise.
57650         * modules/crypto/gc-arctwo-tests (License): Likewise.
57651         * modules/crypto/gc-des-tests (License): Likewise.
57652         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57653         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57654         * modules/crypto/gc-md2-tests (License): Likewise.
57655         * modules/crypto/gc-md4-tests (License): Likewise.
57656         * modules/crypto/gc-md5-tests (License): Likewise.
57657         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57658         * modules/crypto/gc-rijndael-tests (License): Likewise.
57659         * modules/crypto/gc-sha1-tests (License): Likewise.
57660         * modules/crypto/gc-tests (License): Likewise.
57661         * modules/crypto/hmac-md5 (License): Likewise.
57662         * modules/crypto/hmac-sha1 (License): Likewise.
57663         * modules/crypto/md2-tests (License): Likewise.
57664         * modules/crypto/md4-tests (License): Likewise.
57665         * modules/crypto/md5 (License): Likewise.
57666         * modules/crypto/rijndael (License): Likewise.
57667         * modules/crypto/sha1 (License): Likewise.
57668         * modules/memxor (License): Likewise.
57669
57670 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57671         and Bruno Haible  <bruno@clisp.org>
57672
57673         * NEWS: Describe interface changes to human, xstrtol.
57674         * lib/human.h: Include <xstrtol.h>.
57675         (human_options): Return enum strtol_error, not int.  Remove
57676         bool arg; take int * instead.
57677         * lib/human.c: Don't include "gettext.h".
57678         (_): Remove; no longer used.
57679         Don't include <xstrtol.h>, since human.h does it.
57680         (human_options): Adjust to abovementioned interface changes.
57681         Do not report error to stderr; that's now the caller's
57682         responsibility.
57683         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57684         interface change.
57685         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57686         Str, Argument_type_string.  All uses changed.  Put " argument"
57687         in diagnostics to make them clearer.  Change wording of suffix
57688         message for clarity.
57689         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57690         Argument_type_string.
57691         (STRTOL_FATAL_WARN): Remove; no longer used.
57692         * modules/human (Depends-on): Remove gettext-h.
57693
57694 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57695
57696         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57697
57698 2007-07-31  Bruno Haible  <bruno@clisp.org>
57699
57700         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57701         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57702         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57703
57704 2007-07-31  Bruno Haible  <bruno@clisp.org>
57705
57706         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57707         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57708
57709 2007-07-30  Bruno Haible  <bruno@clisp.org>
57710
57711         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57712         * modules/c-ctype (License): Likewise.
57713         * modules/c-strcase (License): Likewise.
57714         * modules/check-version (License): Likewise.
57715         * modules/iconv (License): Likewise.
57716         * modules/iconv_open (License): Likewise.
57717         * modules/read-file (License): Likewise.
57718         * modules/striconv (License): Likewise.
57719         * modules/strverscmp (License): Likewise.
57720         * modules/vasprintf (License): Likewise.
57721         * modules/crypto/des (License): Likewise.
57722         * modules/crypto/gc (License): Likewise.
57723         * modules/crypto/gc-arcfour (License): Likewise.
57724         * modules/crypto/gc-arctwo (License): Likewise.
57725         * modules/crypto/gc-des (License): Likewise.
57726         * modules/crypto/gc-hmac-md5 (License): Likewise.
57727         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57728         * modules/crypto/gc-md2 (License): Likewise.
57729         * modules/crypto/gc-md4 (License): Likewise.
57730         * modules/crypto/gc-md5 (License): Likewise.
57731         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57732         * modules/crypto/gc-random (License): Likewise.
57733         * modules/crypto/gc-rijndael (License): Likewise.
57734         * modules/crypto/gc-sha1 (License): Likewise.
57735         * modules/crypto/md2 (License): Likewise.
57736         * modules/crypto/md4 (License): Likewise.
57737
57738 2007-07-30  Jim Meyering  <jim@meyering.net>
57739
57740         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57741         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57742         it has valid stat data.  This bug would cause du not to count the
57743         sizes of inaccessible directories.
57744         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57745         in <http://bugzilla.redhat.com/250077>.
57746
57747 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57748             Bruno Haible  <bruno@clisp.org>
57749
57750         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57751         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57752         #include_next, gives a diagnostic about it, but reports no error in
57753         the exit code.
57754         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57755
57756 2007-07-24  Ben Pfaff  <blp@gnu.org>
57757
57758         Improve name: "count-one-bits" is better than "popcount".
57759         * MODULES.html.sh: Update name.
57760         * lib/popcount.h: Renamed lib/count-one-bits.h.
57761         (popcount): Renamed count_one_bits.
57762         (popcountl): Renamed count_one_bits_l.
57763         (popcountll): Renamed count_one_bits_ll.
57764         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57765         * modules/popcount: Renamed module/count-one-bits.
57766         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57767         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57768
57769 2007-07-23  Ben Pfaff  <blp@gnu.org>
57770
57771         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57772         better code generation, and add U to large constants to avoid
57773         warnings, in non-GCC case.
57774         Suggested by Bruno Haible.
57775
57776 2007-07-23  Ben Pfaff  <blp@gnu.org>
57777
57778         * lib/popcount.h: Use verify_true instead of if...abort.
57779         * modules/popcount: Depend on verify module.
57780         Suggested by Jim Meyering.
57781
57782 2007-07-23  Bruno Haible  <bruno@clisp.org>
57783
57784         * gnulib-tool (func_import): Create a .cvsignore file also when the
57785         directory is not yet in CVS but the toplevel directory is. When
57786         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57787         Reported by Karl Berry.
57788
57789 2007-07-22  Ben Pfaff  <blp@gnu.org>
57790
57791         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57792         case.
57793         Suggested by Eric Blake.
57794
57795 2007-07-22  Ben Pfaff  <blp@gnu.org>
57796
57797         New module: popcount.
57798         * MODULES.html.sh: Add popcount.
57799         * modules/popcount: New file.
57800         * modules/popcount-tests: New file.
57801         * tests/test-popcount.c: New file.
57802         * lib/popcount.h: New file.
57803         * m4/popcount.m4: New file.
57804
57805 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57806
57807         * build-aux/announce-gen: Update to GPLv3.
57808
57809         * build-aux/config.guess: Update from config.
57810
57811 2007-07-21  Bruno Haible  <bruno@clisp.org>
57812
57813         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57814         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57815
57816 2007-07-20  Jim Meyering  <jim@meyering.net>
57817
57818         * check-module: Diagnose a self-dependency.
57819
57820 2007-07-19  Bruno Haible  <bruno@clisp.org>
57821
57822         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57823         empty.
57824         Reported by Eric Blake.
57825
57826 2007-07-18  Bruno Haible  <bruno@clisp.org>
57827
57828         * gnulib-tool: New options --po-base, --po-domain.
57829         (func_usage): Document them.
57830         (pobase, po_domain): New variables.
57831         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57832         DEFAULT_TEXT_DOMAIN.
57833         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57834         (func_import): Consider pobase and po_domain. Create a po/ directory.
57835         (func_create_testdir): Set pobase and po_domain to empty.
57836         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57837         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57838
57839 2007-07-18  Bruno Haible  <bruno@clisp.org>
57840
57841         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57842         EXTRA_DIST augmentation for files in build-aux/.
57843
57844 2007-07-16  Bruno Haible  <bruno@clisp.org>
57845
57846         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57847         * modules/getdelim (License): Likewise.
57848
57849 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57850
57851         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57852         * modules/d-type (License): Likewise.
57853         * modules/extensions (License): Likewise.
57854         * modules/fnmatch (License): Likewise.
57855         * modules/fseeko (License): Likewise.
57856         * modules/getaddrinfo (License): Likewise.
57857         * modules/getline (License): Likewise.
57858         * modules/getlogin_r (License): Likewise.
57859         * modules/getpass (License): Likewise.
57860         * modules/gettimeofday (License): Likewise.
57861         * modules/glob (License): Likewise.
57862         * modules/inet_ntop (License): Likewise.
57863         * modules/malloc (License): Likewise.
57864         * modules/malloca (License): Likewise.
57865         * modules/memmem (License): Likewise.
57866         * modules/mempcpy (License): Likewise.
57867         * modules/memset (License): Likewise.
57868         * modules/minmax (License): Likewise.
57869         * modules/mktime (License): Likewise.
57870         * modules/netinet_in (License): Likewise.
57871         * modules/pathmax (License): Likewise.
57872         * modules/poll (License): Likewise.
57873         * modules/regex (License): Likewise.
57874         * modules/snprintf (License): Likewise.
57875         * modules/stdbool (License): Likewise.
57876         * modules/stdint (License): Likewise.
57877         * modules/stdio (License): Likewise.
57878         * modules/strcase (License): Likewise.
57879         * modules/strcasestr (License): Likewise.
57880         * modules/strdup (License): Likewise.
57881         * modules/string (License): Likewise.
57882         * modules/strndup (License): Likewise.
57883         * modules/strnlen (License): Likewise.
57884         * modules/strpbrk (License): Likewise.
57885         * modules/strptime (License): Likewise.
57886         * modules/strsep (License): Likewise.
57887         * modules/sys_select (License): Likewise.
57888         * modules/sys_socket (License): Likewise.
57889         * modules/sys_stat (License): Likewise.
57890         * modules/sys_time (License): Likewise.
57891         * modules/time (License): Likewise.
57892         * modules/time_r (License): Likewise.
57893         * modules/timegm (License): Likewise.
57894         * modules/unistd (License): Likewise.
57895         * modules/vsnprintf (License): Likewise.
57896         * modules/wctype (License): Likewise.
57897
57898 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57899
57900         * modules/argz (License): LGPLv2+.
57901
57902 2007-07-15  Karl Berry  <karl@gnu.org>
57903
57904         * doc/gnulib.texi: revise node structure per new fdl.texi.
57905
57906 2007-07-14  Bruno Haible  <bruno@clisp.org>
57907
57908         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57909         the output file.
57910         * lib/uniname/uninames.h: Regenerated.
57911
57912 2007-07-14  Karl Berry  <karl@gnu.org>
57913
57914         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57915         omitting sectioning and index commands.
57916
57917 2007-07-13  Bruno Haible  <bruno@clisp.org>
57918
57919         New gnulib-tool option --more-symlinks.
57920         * gnulib-tool (func_usage): Document --more-symlinks.
57921         (do_copyrights): New variable.
57922         Recognize option --more-symlinks.
57923         (func_import): Don't add a copyright notice transform to
57924         sed_transform_lib_file if do_copyrights is empty.
57925
57926 2007-07-13  Bruno Haible  <bruno@clisp.org>
57927
57928         * lib/vasnprintf.c (decimal_point_char): Define also if
57929         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57930         && !NEED_PRINTF_DIRECTIVE_A.
57931         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57932         Gary V. Vaughan <gary@gnu.org>.
57933
57934 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57935
57936         * lib/inttypes_.h: Undo previous change, since it was fixed
57937         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57938
57939 2007-07-13  Bruno Haible  <bruno@clisp.org>
57940
57941         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57942         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57943
57944 2007-07-13  Jim Meyering  <jim@meyering.net>
57945
57946         df: Don't fail for Tru64's "file-on-file mount".
57947         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57948         so we fall through and use statfs instead.  Details here:
57949         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57950         Reported by Albert Chin.
57951
57952 2007-07-13  Bruno Haible  <bruno@clisp.org>
57953
57954         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57955         * modules/configmake (License): Likewise.
57956         * modules/gettext (License): Likewise.
57957         * modules/gettext-h (License): Likewise.
57958         * modules/include_next (License): Likewise.
57959         * modules/link-warning (License): Likewise.
57960         * modules/localcharset (License): Likewise.
57961         * modules/localename (License): Likewise.
57962         * modules/lock (License): Likewise.
57963         * modules/relocatable-lib-lgpl (License): Likewise.
57964         * modules/size_max (License): Likewise.
57965         * modules/vasnprintf (License): Likewise.
57966         * modules/wchar (License): Likewise.
57967         * modules/xsize (License): Likewise.
57968
57969 2007-07-13  Bruno Haible  <bruno@clisp.org>
57970
57971         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57972         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57973
57974 2007-07-12  Bruno Haible  <bruno@clisp.org>
57975
57976         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57977         in the modules files.
57978
57979 2007-07-11  Karl Berry  <karl@gnu.org>
57980
57981         * MODULES.html.sh (func_module): use
57982          sed -e '\|^'"${includefile}"'$|d'
57983          instead of /.../d, to avoid errors on $includefile's containing /.
57984
57985 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57986
57987         * gnulib-tool (func_import): Avoid duplication of --avoid
57988         statements
57989         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57990         names to `_' in variable names.
57991
57992 2007-07-10  Eric Blake  <ebb9@byu.net>
57993
57994         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57995         * NEWS: Document this change.
57996
57997 2007-07-08  Bruno Haible  <bruno@clisp.org>
57998
57999         Update to Unicode 5.0.
58000         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58001         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58002         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58003         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58004         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58005         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58006         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58007         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58008         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58009         U+10A3F, U+1D242..U+1D244.
58010         (nonspacing_table_ind): Update.
58011         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58012         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58013
58014 2007-07-08  Bruno Haible  <bruno@clisp.org>
58015
58016         Update to Unicode 5.0.
58017         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58018         code transform. Extend the name index field of unicode_name_to_code and
58019         unicode_code_to_name from 16 to 24 bits.
58020         * lib/uniname/uniname.c (unicode_character_name,
58021         unicode_name_character): Add the range 0x12xxx to the code transform.
58022         * lib/uniname/uninames.h: Regenerated.
58023         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58024
58025 2007-07-07  Bruno Haible  <bruno@clisp.org>
58026
58027         * modules/wcwidth-tests: New file.
58028         * tests/test-wcwidth.c: New file.
58029
58030         Work around MacOS X wcwidth() bug.
58031         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58032         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58033         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58034         original wcwidth in non-UTF-8 locales.
58035         * modules/wcwidth (Depends-on): Add localcharset, streq,
58036         uniwidth/width.
58037         * doc/functions/wcwidth.texi: Update.
58038
58039 2007-07-07  Bruno Haible  <bruno@clisp.org>
58040
58041         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58042         (wcwidth): New declaration.
58043         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58044         macros.
58045         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58046         here. Prepare for creating <wchar.h> unconditionally.
58047         * modules/wchar (Depends-on): Add link-warning.
58048         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58049         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58050         * lib/wcwidth.h: Remove file.
58051         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58052         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58053         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58054         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58055         (Include): Replace wcwidth.h with <wchar.h>.
58056         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58057         * lib/mbchar.h: Don't include wcwidth.h.
58058         * lib/mbswidth.c: Likewise.
58059         * NEWS: Mention the change.
58060
58061 2007-07-07  Bruno Haible  <bruno@clisp.org>
58062
58063         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58064         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58065         definition with an external declaration.
58066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58067         defined as a function. Remove AC_C_INLINE requirement.
58068         * modules/wcwidth (Files): Add lib/wcwidth.c.
58069         (Makefile.am): Remove redundant statement.
58070
58071 2007-07-07  Bruno Haible  <bruno@clisp.org>
58072
58073         * MODULES.html.sh (Unicode string functions): Add the new modules.
58074
58075         * tests/uniwidth/test-u32-strwidth.c: New file.
58076         * modules/uniwidth/u32-strwidth-tests: New file.
58077
58078         * lib/uniwidth/u32-strwidth.c: New file.
58079         * modules/uniwidth/u32-strwidth: New file.
58080
58081         * tests/uniwidth/test-u16-strwidth.c: New file.
58082         * modules/uniwidth/u16-strwidth-tests: New file.
58083
58084         * lib/uniwidth/u16-strwidth.c: New file.
58085         * modules/uniwidth/u16-strwidth: New file.
58086
58087         * tests/uniwidth/test-u8-strwidth.c: New file.
58088         * modules/uniwidth/u8-strwidth-tests: New file.
58089
58090         * lib/uniwidth/u8-strwidth.c: New file.
58091         * modules/uniwidth/u8-strwidth: New file.
58092
58093         * tests/uniwidth/test-u32-width.c: New file.
58094         * modules/uniwidth/u32-width-tests: New file.
58095
58096         * lib/uniwidth/u32-width.c: New file.
58097         * modules/uniwidth/u32-width: New file.
58098
58099         * tests/uniwidth/test-u16-width.c: New file.
58100         * modules/uniwidth/u16-width-tests: New file.
58101
58102         * lib/uniwidth/u16-width.c: New file.
58103         * modules/uniwidth/u16-width: New file.
58104
58105         * tests/uniwidth/test-u8-width.c: New file.
58106         * modules/uniwidth/u8-width-tests: New file.
58107
58108         * lib/uniwidth/u8-width.c: New file.
58109         * modules/uniwidth/u8-width: New file.
58110
58111         * tests/uniwidth/test-uc_width.c: New file.
58112         * modules/uniwidth/width-tests: New file.
58113
58114         * lib/uniwidth/width.c: New file, from GNU libiconv.
58115         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58116         * modules/uniwidth/width: New file.
58117
58118         * lib/uniwidth.h: New file, from GNU libiconv.
58119         * modules/uniwidth/base: New file.
58120
58121 2007-07-07  Bruno Haible  <bruno@clisp.org>
58122
58123         * lib/uniname.h: New file, from GNU gettext.
58124         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58125         * lib/uniname/uninames.h: New file, from GNU gettext.
58126         * lib/uniname/uniname.c: New file, from GNU gettext.
58127         * tests/uniname/test-uninames.sh: New file.
58128         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58129         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58130         * modules/uniname/base: New file.
58131         * modules/uniname/uniname: New file.
58132         * modules/uniname/uniname-tests: New file.
58133         * MODULES.html.sh (Unicode string functions): Add the new modules.
58134
58135 2007-07-06  Bruno Haible  <bruno@clisp.org>
58136
58137         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58138
58139 2007-07-06  Bruno Haible  <bruno@clisp.org>
58140
58141         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58142         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58143         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58144         include <sys/time.h>.
58145         Reported by Eric Blake.
58146
58147 2007-07-06  Eric Blake  <ebb9@byu.net>
58148
58149         Fix testing canonicalize on cygwin.
58150         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58151         Revert patch from 2007-06-19.
58152         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58153         canonicalize module is also in use.
58154         * tests/test-canonicalize.c: New file.
58155         * tests/test-canonicalize.sh: Likewise.
58156         * modules/canonicalize-tests: Likewise.
58157
58158 2007-07-06  Jim Meyering  <jim@meyering.net>
58159
58160         * lib/getugroups.c (getugroups): Detect getgrent failure.
58161         Adjust comment to reflect reality: this function may return -1.
58162
58163 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58164
58165         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58166         the new TP address.
58167         (usage): Fix typo
58168         (gnulib_mk): New variable.
58169
58170 2007-07-05  Jim Meyering  <jim@meyering.net>
58171
58172         Don't let endgrent clobber errno, no matter how improbable.
58173         * lib/getugroups.c (getugroups): Save and restore errno around
58174         endgrent call.
58175
58176         Close the group DB even when failing with 2^31 or more members.
58177         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58178
58179 2007-07-04  Jim Meyering  <jim@meyering.net>
58180
58181         * lib/getugroups.h: New file.
58182         * lib/getugroups.c: Include "getugroups.h".
58183         Remove uses of "register" keyword.
58184         Move local variable, "cp", down into scope where used.
58185         Give "username" parameter the "const" attribute.
58186         * modules/getugroups (Files): Add lib/getugroups.h
58187
58188 2007-07-04  Karl Berry  <karl@gnu.org>
58189
58190         * MODULES.html.sh (func_all_modules): Complete rename of
58191         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58192
58193 2007-07-02  Bruno Haible  <bruno@clisp.org>
58194
58195         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58196         mode, when inttypes.h comes from gnulib.
58197         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58198
58199 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58200
58201         * NEWS: Mention lgpl module name change.
58202
58203         * modules/lgpl-2.1: Renamed from lgpl.
58204
58205         * NEWS: Mention gpl module name change.
58206
58207         * modules/gpl-3.0: New file, based on gpl-2.0.
58208
58209         * modules/gpl-2.0: Renamed from gpl.
58210
58211         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58212         doc/gpl-2.0.texi.
58213
58214 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58215
58216         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58217         #define __STDC_LIMIT_MACROS temporarily while including
58218         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58219         Problem reported by Joel E. Denny in
58220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58221
58222 2007-07-01  Bruno Haible  <bruno@clisp.org>
58223
58224         * lib/unistdio.h: New file.
58225         * lib/unistdio/u-asnprintf.h: New file.
58226         * lib/unistdio/u-asprintf.h: New file.
58227         * lib/unistdio/u-printf-args.c: New file.
58228         * lib/unistdio/u-printf-args.h: New file.
58229         * lib/unistdio/u-printf-parse.h: New file.
58230         * lib/unistdio/u-snprintf.h: New file.
58231         * lib/unistdio/u-sprintf.h: New file.
58232         * lib/unistdio/u-vasprintf.h: New file.
58233         * lib/unistdio/u-vsnprintf.h: New file.
58234         * lib/unistdio/u-vsprintf.h: New file.
58235         * lib/unistdio/ulc-asnprintf.c: New file.
58236         * lib/unistdio/ulc-asprintf.c: New file.
58237         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58238         * lib/unistdio/ulc-printf-parse.c: New file.
58239         * lib/unistdio/ulc-snprintf.c: New file.
58240         * lib/unistdio/ulc-sprintf.c: New file.
58241         * lib/unistdio/ulc-vasnprintf.c: New file.
58242         * lib/unistdio/ulc-vasprintf.c: New file.
58243         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58244         * lib/unistdio/ulc-vsnprintf.c: New file.
58245         * lib/unistdio/ulc-vsprintf.c: New file.
58246         * lib/unistdio/u8-asnprintf.c: New file.
58247         * lib/unistdio/u8-asprintf.c: New file.
58248         * lib/unistdio/u8-printf-parse.c: New file.
58249         * lib/unistdio/u8-snprintf.c: New file.
58250         * lib/unistdio/u8-sprintf.c: New file.
58251         * lib/unistdio/u8-vasnprintf.c: New file.
58252         * lib/unistdio/u8-vasprintf.c: New file.
58253         * lib/unistdio/u8-vsnprintf.c: New file.
58254         * lib/unistdio/u8-vsprintf.c: New file.
58255         * lib/unistdio/u8-u8-asnprintf.c: New file.
58256         * lib/unistdio/u8-u8-asprintf.c: New file.
58257         * lib/unistdio/u8-u8-snprintf.c: New file.
58258         * lib/unistdio/u8-u8-sprintf.c: New file.
58259         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58260         * lib/unistdio/u8-u8-vasprintf.c: New file.
58261         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58262         * lib/unistdio/u8-u8-vsprintf.c: New file.
58263         * lib/unistdio/u16-asnprintf.c: New file.
58264         * lib/unistdio/u16-asprintf.c: New file.
58265         * lib/unistdio/u16-printf-parse.c: New file.
58266         * lib/unistdio/u16-snprintf.c: New file.
58267         * lib/unistdio/u16-sprintf.c: New file.
58268         * lib/unistdio/u16-vasnprintf.c: New file.
58269         * lib/unistdio/u16-vasprintf.c: New file.
58270         * lib/unistdio/u16-vsnprintf.c: New file.
58271         * lib/unistdio/u16-vsprintf.c: New file.
58272         * lib/unistdio/u16-u16-asnprintf.c: New file.
58273         * lib/unistdio/u16-u16-asprintf.c: New file.
58274         * lib/unistdio/u16-u16-snprintf.c: New file.
58275         * lib/unistdio/u16-u16-sprintf.c: New file.
58276         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58277         * lib/unistdio/u16-u16-vasprintf.c: New file.
58278         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58279         * lib/unistdio/u16-u16-vsprintf.c: New file.
58280         * lib/unistdio/u32-asnprintf.c: New file.
58281         * lib/unistdio/u32-asprintf.c: New file.
58282         * lib/unistdio/u32-printf-parse.c: New file.
58283         * lib/unistdio/u32-snprintf.c: New file.
58284         * lib/unistdio/u32-sprintf.c: New file.
58285         * lib/unistdio/u32-vasnprintf.c: New file.
58286         * lib/unistdio/u32-vasprintf.c: New file.
58287         * lib/unistdio/u32-vsnprintf.c: New file.
58288         * lib/unistdio/u32-vsprintf.c: New file.
58289         * lib/unistdio/u32-u32-asnprintf.c: New file.
58290         * lib/unistdio/u32-u32-asprintf.c: New file.
58291         * lib/unistdio/u32-u32-snprintf.c: New file.
58292         * lib/unistdio/u32-u32-sprintf.c: New file.
58293         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58294         * lib/unistdio/u32-u32-vasprintf.c: New file.
58295         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58296         * lib/unistdio/u32-u32-vsprintf.c: New file.
58297         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58298         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58299         * tests/unistdio/test-ulc-printf1.h: New file.
58300         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58301         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58302         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58303         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58304         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58305         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58306         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58307         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58308         * tests/unistdio/test-u8-asnprintf1.c: New file.
58309         * tests/unistdio/test-u8-asnprintf1.h: New file.
58310         * tests/unistdio/test-u8-printf1.h: New file.
58311         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58312         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58313         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58314         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58315         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58316         * tests/unistdio/test-u8-vasprintf1.c: New file.
58317         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58318         * tests/unistdio/test-u8-vsprintf1.c: New file.
58319         * tests/unistdio/test-u16-asnprintf1.c: New file.
58320         * tests/unistdio/test-u16-asnprintf1.h: New file.
58321         * tests/unistdio/test-u16-printf1.h: New file.
58322         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58323         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58324         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58325         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58326         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58327         * tests/unistdio/test-u16-vasprintf1.c: New file.
58328         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58329         * tests/unistdio/test-u16-vsprintf1.c: New file.
58330         * tests/unistdio/test-u32-asnprintf1.c: New file.
58331         * tests/unistdio/test-u32-asnprintf1.h: New file.
58332         * tests/unistdio/test-u32-printf1.h: New file.
58333         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58334         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58335         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58336         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58337         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58338         * tests/unistdio/test-u32-vasprintf1.c: New file.
58339         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58340         * tests/unistdio/test-u32-vsprintf1.c: New file.
58341         * modules/unistdio/base: New file.
58342         * modules/unistdio/u-printf-args: New file.
58343         * modules/unistdio/ulc-asnprintf: New file.
58344         * modules/unistdio/ulc-asprintf: New file.
58345         * modules/unistdio/ulc-fprintf: New file.
58346         * modules/unistdio/ulc-printf-parse: New file.
58347         * modules/unistdio/ulc-snprintf: New file.
58348         * modules/unistdio/ulc-sprintf: New file.
58349         * modules/unistdio/ulc-vasnprintf: New file.
58350         * modules/unistdio/ulc-vasprintf: New file.
58351         * modules/unistdio/ulc-vfprintf: New file.
58352         * modules/unistdio/ulc-vsnprintf: New file.
58353         * modules/unistdio/ulc-vsprintf: New file.
58354         * modules/unistdio/u8-asnprintf: New file.
58355         * modules/unistdio/u8-asprintf: New file.
58356         * modules/unistdio/u8-printf-parse: New file.
58357         * modules/unistdio/u8-snprintf: New file.
58358         * modules/unistdio/u8-sprintf: New file.
58359         * modules/unistdio/u8-vasnprintf: New file.
58360         * modules/unistdio/u8-vasprintf: New file.
58361         * modules/unistdio/u8-vsnprintf: New file.
58362         * modules/unistdio/u8-vsprintf: New file.
58363         * modules/unistdio/u8-u8-asnprintf: New file.
58364         * modules/unistdio/u8-u8-asprintf: New file.
58365         * modules/unistdio/u8-u8-snprintf: New file.
58366         * modules/unistdio/u8-u8-sprintf: New file.
58367         * modules/unistdio/u8-u8-vasnprintf: New file.
58368         * modules/unistdio/u8-u8-vasprintf: New file.
58369         * modules/unistdio/u8-u8-vsnprintf: New file.
58370         * modules/unistdio/u8-u8-vsprintf: New file.
58371         * modules/unistdio/u16-asnprintf: New file.
58372         * modules/unistdio/u16-asprintf: New file.
58373         * modules/unistdio/u16-printf-parse: New file.
58374         * modules/unistdio/u16-snprintf: New file.
58375         * modules/unistdio/u16-sprintf: New file.
58376         * modules/unistdio/u16-vasnprintf: New file.
58377         * modules/unistdio/u16-vasprintf: New file.
58378         * modules/unistdio/u16-vsnprintf: New file.
58379         * modules/unistdio/u16-vsprintf: New file.
58380         * modules/unistdio/u16-u16-asnprintf: New file.
58381         * modules/unistdio/u16-u16-asprintf: New file.
58382         * modules/unistdio/u16-u16-snprintf: New file.
58383         * modules/unistdio/u16-u16-sprintf: New file.
58384         * modules/unistdio/u16-u16-vasnprintf: New file.
58385         * modules/unistdio/u16-u16-vasprintf: New file.
58386         * modules/unistdio/u16-u16-vsnprintf: New file.
58387         * modules/unistdio/u16-u16-vsprintf: New file.
58388         * modules/unistdio/u32-asnprintf: New file.
58389         * modules/unistdio/u32-asprintf: New file.
58390         * modules/unistdio/u32-printf-parse: New file.
58391         * modules/unistdio/u32-snprintf: New file.
58392         * modules/unistdio/u32-sprintf: New file.
58393         * modules/unistdio/u32-vasnprintf: New file.
58394         * modules/unistdio/u32-vasprintf: New file.
58395         * modules/unistdio/u32-vsnprintf: New file.
58396         * modules/unistdio/u32-vsprintf: New file.
58397         * modules/unistdio/u32-u32-asnprintf: New file.
58398         * modules/unistdio/u32-u32-asprintf: New file.
58399         * modules/unistdio/u32-u32-snprintf: New file.
58400         * modules/unistdio/u32-u32-sprintf: New file.
58401         * modules/unistdio/u32-u32-vasnprintf: New file.
58402         * modules/unistdio/u32-u32-vasprintf: New file.
58403         * modules/unistdio/u32-u32-vsnprintf: New file.
58404         * modules/unistdio/u32-u32-vsprintf: New file.
58405         * modules/unistdio/ulc-asnprintf-tests: New file.
58406         * modules/unistdio/ulc-vasnprintf-tests: New file.
58407         * modules/unistdio/ulc-vasprintf-tests: New file.
58408         * modules/unistdio/ulc-vsnprintf-tests: New file.
58409         * modules/unistdio/ulc-vsprintf-tests: New file.
58410         * modules/unistdio/u8-asnprintf-tests: New file.
58411         * modules/unistdio/u8-vasnprintf-tests: New file.
58412         * modules/unistdio/u8-vasprintf-tests: New file.
58413         * modules/unistdio/u8-vsnprintf-tests: New file.
58414         * modules/unistdio/u8-vsprintf-tests: New file.
58415         * modules/unistdio/u16-asnprintf-tests: New file.
58416         * modules/unistdio/u16-vasnprintf-tests: New file.
58417         * modules/unistdio/u16-vasprintf-tests: New file.
58418         * modules/unistdio/u16-vsnprintf-tests: New file.
58419         * modules/unistdio/u16-vsprintf-tests: New file.
58420         * modules/unistdio/u32-asnprintf-tests: New file.
58421         * modules/unistdio/u32-vasnprintf-tests: New file.
58422         * modules/unistdio/u32-vasprintf-tests: New file.
58423         * modules/unistdio/u32-vsnprintf-tests: New file.
58424         * modules/unistdio/u32-vsprintf-tests: New file.
58425         * MODULES.html.sh (Unicode string functions): Add the new modules.
58426
58427 2007-07-01  Bruno Haible  <bruno@clisp.org>
58428
58429         * lib/sprintf.c (sprintf): Limit the available length estimation,
58430         to avoid address wraparound.
58431         * lib/vsprintf.c (vsprintf): Likewise.
58432         * modules/sprintf-posix (Dependencies): Add stdint.
58433         * modules/vsprintf-posix (Dependencies): Likewise.
58434
58435 2007-07-01  Bruno Haible  <bruno@clisp.org>
58436
58437         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58438         Windows PATH as well. Conservative double-quoting. Comments.
58439
58440 2007-07-01  Bruno Haible  <bruno@clisp.org>
58441             Eric Blake  <ebb9@byu.net>
58442             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58443
58444         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58445         empty components in $PATH, denoting '.'.
58446
58447 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58448
58449         * gnulib-tool: Fix indentation.
58450         (func_create_megatestdir): Likewise.
58451         Report by Bruno Haible.
58452
58453 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58454
58455         Sync from Automake.
58456         * build-aux/gnupload: Fix shell portability issues with for loops.
58457         Report by Karl Berry.
58458
58459 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58460
58461         * build-aux/maint.mk (POURL): Use translationproject.org.
58462
58463 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58464             Bruno Haible  <bruno@clisp.org>
58465
58466         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58467         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58468         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58469         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58470         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58471
58472 2007-06-27  Bruno Haible  <bruno@clisp.org>
58473
58474         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58475         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58476
58477 2007-06-26  Karl Berry  <karl@gnu.org>
58478
58479         * MODULES.html.sh: remove xreadlink-with-size.
58480
58481 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58482
58483         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58484         method that I hope also handles the double-include problem noted
58485         by Bruno Haible in
58486         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58487
58488 2007-06-23  Bruno Haible  <bruno@clisp.org>
58489
58490         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58491         Don't let the 'mostlyclean' target fail if the last subdirectory could
58492         not be removed.
58493         Reported by Karl Berry.
58494
58495 2007-06-23  Bruno Haible  <bruno@clisp.org>
58496
58497         * gnulib-tool (echo): Add a speedier workaround for ksh.
58498         * tests/test-echo.sh: Likewise.
58499
58500 2007-06-23  Bruno Haible  <bruno@clisp.org>
58501
58502         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58503         * tests/test-echo.sh: Likewise.
58504
58505 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58506
58507         * gnulib-tool (IFS): Initialize early, so we don't set it to
58508         empty later.
58509         (self_abspathname): Rewrite algorithm to set it, reindent.
58510         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58511         (func_create_megatestdir): Merge some sed scripts.
58512
58513 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58514
58515         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58516         exposed by Sun Studio 11 cc on Solaris 8.
58517
58518 2007-06-22  Bruno Haible  <bruno@clisp.org>
58519
58520         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58521         backslashes.
58522         * tests/test-echo.sh: New file.
58523
58524 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58525
58526         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58527         simplify `sed_replace_build_aux' scripts, they are portable but
58528         echoing them with `echo' is not.
58529         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58530
58531 2007-06-21  Karl Berry  <karl@gnu.org>
58532
58533         * config/srclist.txt: guess we can't handle the licenses via
58534         srclist at the moment.
58535
58536 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58537
58538         * MODULES.html.sh: Add include_next.
58539         * modules/include_next: New file.
58540
58541 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58542
58543         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58544         INCLUDE_NEXT.
58545         (gl_CHECK_NEXT_HEADERS): New macro.
58546         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58547         the obsolescent gl_ABSOLUTE_HEADER.
58548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58549         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58550         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58551         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58552         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58553         * m4/math_h.m4 (gl_MATH_H): Likewise.
58554         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58555         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58556         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58557         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58558         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58559         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58560         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58561         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58562         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58563         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58564         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58565         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58566         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58567         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58568         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58569         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58570         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58571         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58572         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58573         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58574         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58575         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58576         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58577         * lib/float_.h: Likewise.
58578         * lib/inttypes_.h: Likewise.
58579         * lib/math_.h: Likewise.
58580         * lib/search_.h: Likewise.
58581         * lib/signal_.h: Likewise.
58582         * lib/stdint_.h: Likewise.
58583         * lib/stdio_.h: Likewise.
58584         * lib/stdlib_.h: Likewise.
58585         * lib/string_.h: Likewise.
58586         * lib/sys_stat_.h: Likewise.
58587         * lib/sys_time_.h: Likewise.
58588         * lib/time_.h: Likewise.
58589         * lib/unistd_.h: Likewise.
58590         * lib/wchar_.h: Likewise.
58591         * lib/wctype_.h: Likewise.
58592         * lib/dirent_.h: Likewise.
58593         * lib/iconv_.h: Likewise.
58594         * lib/locale_.h: Likewise.
58595         * lib/netinet_in_.h: Likewise.
58596         * lib/sys_select_.h: Likewise.
58597         * lib/sys_socket_.h: Likewise.
58598         * lib/sysexits_.h: Likewise.
58599         * modules/fcntl (Depends-on): Depend on include_next, not
58600         absolute_header.
58601         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58602         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58603         * modules/fchdir: Likewise.
58604         * modules/float: Likewise.
58605         * modules/iconv_open: Likewise.
58606         * modules/inttypes: Likewise.
58607         * modules/locale: Likewise.
58608         * modules/math: Likewise.
58609         * modules/netinet_in: Likewise.
58610         * modules/search: Likewise.
58611         * modules/signal: Likewise.
58612         * modules/stdint: Likewise.
58613         * modules/stdio: Likewise.
58614         * modules/stdlib: Likewise.
58615         * modules/string: Likewise.
58616         * modules/sys_select: Likewise.
58617         * modules/sys_socket: Likewise.
58618         * modules/sys_stat: Likewise.
58619         * modules/sys_time: Likewise.
58620         * modules/sysexits: Likewise.
58621         * modules/time: Likewise.
58622         * modules/unistd: Likewise.
58623         * modules/wchar: Likewise.
58624         * modules/wctype: Likewise.
58625         * modules/sys_stat: Change maintainer to "all".
58626         * modules/unistd: Likewise.
58627
58628 2007-06-20  Karl Berry  <karl@gnu.org>
58629
58630         * config/srclist.txt: track www changes in license files.
58631
58632 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58633
58634         * build-aux/bootstrap: Remove stray dot.
58635         Make sure build_aux settings are honored when linking
58636         gnulib_extra_files.
58637
58638 2007-06-19  Eric Blake  <ebb9@byu.net>
58639
58640         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58641         Allow compilation on cygwin.
58642
58643 2007-06-19  Jim Meyering  <jim@meyering.net>
58644
58645         xreadlink-with-size: Remove module.  No longer used.
58646         Ex-callers now use xreadlink or mreadlink-with-size.
58647         * modules/xreadlink-with-size: Remove module.
58648         * lib/xreadlink-with-size.c: Remove file.
58649         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58650         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58651         just before the function definition *is* accurate.
58652
58653         Eliminate one way canonicalize_filename_mode could exit.
58654         * lib/canonicalize.c (canonicalize_filename_mode):
58655         Use mreadlink_with_size, not xreadlink_with_size.
58656
58657 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58658
58659         Detect porting problems to FreeBSD/arm, which has time_t wider than
58660         long int.  Original problem reported for GNU diff by Xin Li in
58661         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58662         * modules/getdate (Depends-on): Add intprops, verify.
58663         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58664         is an integer type no wider than long int.
58665
58666 2007-06-18  Jim Meyering  <jim@meyering.net>
58667
58668         New module: mreadlink-with-size.
58669         * MODULES.html.sh: Add mreadlink-with-size.
58670         * modules/mreadlink-with-size: New module
58671         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58672         not xreadlink-with-size.
58673         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58674
58675 2007-06-16  Bruno Haible  <bruno@clisp.org>
58676
58677         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58678         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58679         Reported by Gary V. Vaughan <gary@gnu.org>.
58680
58681 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58682
58683         Revamp lchown so that it lives in unistd.h where it belongs.
58684         * lib/lchown.h: Remove.
58685         * lib/dirchownmod.c: Don't include lib/lchown.h.
58686         * lib/fchownat.c: Likewise.
58687         * lib/openat.c: Likewise.
58688         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58689         does not follow symlinks.
58690         (EOPNOTSUPP): Define if not defined.
58691         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58692         is defined to 0.
58693         (lchown): New decl.
58694         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58695         Do not check for lchown decl.
58696         Set REPLACE_LCHOWN.
58697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58698         REPLACE_LCHOWN.
58699         * modules/chown: Make it clear it follows symlinks.
58700         * modules/lchown: Make it clear it doesn't follow symlinks.
58701         (Files): Remove lib/lchown.h
58702         (Depends-on): Add unistd.
58703         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58704         (Include): Include <unistd.h>, not "lchown.h".
58705         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58706         REPLACE_LCHOWN.
58707
58708 2007-06-15  Jim Meyering  <jim@meyering.net>
58709
58710         Change license (GPL to LGPL) of fsusage and dependents.
58711         * modules/fsusage (License): Change to LGPL.
58712         * modules/full-read (License): Likewise.
58713         * modules/full-write (License): Likewise.
58714         * modules/safe-read (License): Likewise.
58715         * modules/safe-write (License): Likewise.
58716
58717 2007-06-14  Ben Pfaff  <blp@gnu.org>
58718
58719         Missing part of allocsa -> malloca transition.
58720         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58721         gl_MALLOCA.
58722
58723 2007-06-12  Bruno Haible  <bruno@clisp.org>
58724
58725         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58726         to ia64, x86_64, i386.
58727         Reported by Eric Blake.
58728
58729 2007-06-12  Bruno Haible  <bruno@clisp.org>
58730
58731         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58732         cross-compiling to x86_64.
58733
58734 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58735
58736         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58737         glitch reported by Ralf Wildenhues in
58738         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58739
58740         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58741         Vin Shelton.
58742
58743 2007-06-11  Bruno Haible  <bruno@clisp.org>
58744
58745         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58746         replacement string.
58747         Reported by Eric Blake.
58748
58749 2007-06-10  Bruno Haible  <bruno@clisp.org>
58750
58751         Prepare vasnprintf code for use with Unicode strings.
58752         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58753         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58754         TYPE_U32_STRING.
58755         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58756         a_u32_string variants.
58757         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58758         * lib/printf-args.c: Don't include config.h and the specification
58759         header if PRINTF_FETCHARGS is already defined.
58760         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58761         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58762         TYPE_U16_STRING, TYPE_U32_STRING.
58763         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58764         u16_directive, u16_directives, u32_directive, u32_directives): New
58765         types.
58766         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58767         New declarations.
58768         * lib/printf-parse.c: Don't include config.h and the specification
58769         header if PRINTF_PARSE is already defined. Eliminate the set of
58770         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58771         them now. Include c-ctype.h.
58772         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58773         directive and CHAR_T_ONLY_ASCII.
58774         * lib/vasnprintf.c: Don't include config.h and the specification header
58775         if VASNPRINTF is already defined.
58776         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58777         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58778         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58779         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58780         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58781         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58782         code accordingly.
58783         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58784         pad_ourselves also in this case, with the 'c' and 's' directives, and
58785         with a different notion of "width".
58786         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58787
58788 2007-06-10  Bruno Haible  <bruno@clisp.org>
58789
58790         * modules/unistr/u32-mbsnlen: New file.
58791         * lib/unistr/u32-mbsnlen.c: New file.
58792
58793         * modules/unistr/u16-mbsnlen: New file.
58794         * lib/unistr/u16-mbsnlen.c: New file.
58795
58796         * modules/unistr/u8-mbsnlen: New file.
58797         * lib/unistr/u8-mbsnlen.c: New file.
58798
58799         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58800         declarations.
58801
58802 2007-06-10  Bruno Haible  <bruno@clisp.org>
58803
58804         * lib/string_.h (mbsnlen): New declaration.
58805         * lib/mbsnlen.c: New file.
58806         * m4/mbsnlen.m4: New file.
58807         * modules/mbsnlen: New file.
58808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58809         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58810         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58811
58812 2007-06-10  Bruno Haible  <bruno@clisp.org>
58813
58814         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58815
58816 2007-06-10  Bruno Haible  <bruno@clisp.org>
58817
58818         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58819         * lib/mbuiter.h: Likewise.
58820
58821 2007-06-10  Bruno Haible  <bruno@clisp.org>
58822
58823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58824         declaration.
58825
58826 2007-06-10  Karl Berry  <karl@gnu.org>
58827
58828         * config/srclist.txt: remove gettext entries, Bruno prefers
58829         to update individually.
58830
58831 2007-06-10  Bruno Haible  <bruno@clisp.org>
58832
58833         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58834         'maxlen'. Ensure only length + width bytes are allocated, not
58835         length + 1 + width.
58836
58837 2007-06-09  Bruno Haible  <bruno@clisp.org>
58838
58839         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58840         (CHAR_T): Remove macro.
58841         (VASNPRINTF): Update.
58842
58843 2007-06-09  Bruno Haible  <bruno@clisp.org>
58844
58845         * MODULES.html.sh (Unicode string functions): Add the new modules.
58846
58847         * modules/uniconv/u32-conv-to-enc: New file.
58848         * lib/uniconv/u32-conv-to-enc.c: New file.
58849         * modules/uniconv/u32-conv-to-enc-tests: New file.
58850         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58851
58852         * modules/uniconv/u16-conv-to-enc: New file.
58853         * lib/uniconv/u16-conv-to-enc.c: New file.
58854         * lib/uniconv/u-conv-to-enc.h: New file.
58855         * modules/uniconv/u16-conv-to-enc-tests: New file.
58856         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58857
58858         * modules/uniconv/u8-conv-to-enc: New file.
58859         * lib/uniconv/u8-conv-to-enc.c: New file.
58860         * modules/uniconv/u8-conv-to-enc-tests: New file.
58861         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58862
58863         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58864         u32_conv_to_encoding): New declarations.
58865
58866 2007-06-09  Bruno Haible  <bruno@clisp.org>
58867
58868         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58869
58870 2007-06-09  Bruno Haible  <bruno@clisp.org>
58871
58872         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58873         * modules/malloca: Renamed from modules/allocsa, updated.
58874         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58875         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58876         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58877         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58878         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58879         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58880         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58881         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58882         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58883         * modules/c-strcasestr (Depends-on): Update.
58884         * lib/c-strcasestr.c: Update.
58885         * modules/c-strstr (Depends-on): Update.
58886         * lib/c-strstr.c: Update.
58887         * modules/canonicalize-lgpl (Depends-on): Update.
58888         * lib/canonicalize-lgpl.c: Update.
58889         * modules/clean-temp (Depends-on): Update.
58890         * lib/clean-temp.c: Update.
58891         * modules/csharpcomp (Depends-on): Update.
58892         * lib/csharpcomp.c: Update.
58893         * modules/csharpexec (Depends-on): Update.
58894         * lib/csharpexec.c: Update.
58895         * modules/javacomp (Depends-on): Update.
58896         * lib/javacomp.c: Update.
58897         * modules/javaexec (Depends-on): Update.
58898         * lib/javaexec.c: Update.
58899         * modules/mbscasestr (Depends-on): Update.
58900         * lib/mbscasestr.c: Update.
58901         * modules/mbsstr (Depends-on): Update.
58902         * lib/mbsstr.c: Update.
58903         * modules/setenv (Depends-on): Update.
58904         * lib/setenv.c: Update.
58905         * modules/strcasestr (Depends-on): Update.
58906         * lib/strcasestr.c: Update.
58907         * modules/striconveha (Depends-on): Update.
58908         * lib/striconveha.c: Update.
58909         * modules/relocatable-prog-wrapper (Files): Update.
58910         * lib/relocwrapper.c: Update.
58911         * build-aux/install-reloc: Update.
58912         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58913
58914 2007-06-08  Bruno Haible  <bruno@clisp.org>
58915
58916         Port to uClibc.
58917         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58918         * lib/fpurge.c (fpurge): Likewise.
58919         * lib/freading.c (freading): Likewise.
58920         * lib/fseeko.c (rpl_fseeko): Likewise.
58921         * lib/fseterr.c (fseterr): Likewise.
58922         * lib/fwriting.c (fwriting): Likewise.
58923         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58924
58925 2007-06-08  Bruno Haible  <bruno@clisp.org>
58926
58927         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58928         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58929         * modules/gettext (Files): Add m4/intlmacosx.m4.
58930
58931 2007-06-07  Bruno Haible  <bruno@clisp.org>
58932
58933         * modules/localename-tests: New file.
58934         * tests/test-localename.c: New file.
58935
58936         New module 'localename'.
58937         * lib/localename.h: New file.
58938         * lib/localename.c: New file, from GNU gettext.
58939         * m4/localename.m4: New file.
58940         * modules/localename: New file.
58941
58942 2007-06-07  Bruno Haible  <bruno@clisp.org>
58943
58944         Work around the lack of <wchar.h> on some builds of uClibc.
58945         * doc/headers/wchar.texi: Update.
58946         * lib/wchar_.h: Include <wchar.h> only if it exists.
58947         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58948         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58949         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58950         doesn't exist.
58951         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58952         * modules/mbfile (Depends-on): Add wchar.
58953         * modules/mbiter (Depends-on): Likewise.
58954         * modules/mbuiter (Depends-on): Likewise.
58955         Reported by Simon Josefsson.
58956
58957 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58958
58959         Work around problem reported by Steven M. Schweda in
58960         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58961         Tru64 5.1B with the Compaq compiler environment installed declares
58962         an 'isblank' function but does not define it in the C library.
58963         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58964         * lib/regex_internal.h (isblank): Likewise.
58965         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58966         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58967
58968 2007-06-05  Bruno Haible  <bruno@clisp.org>
58969
58970         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58971         ia64.
58972         * modules/printf-safe: New file.
58973         * modules/fprintf-posix (Depends-on): Add printf-safe.
58974         * modules/printf-posix (Depends-on): Likewise.
58975         * modules/snprintf-posix (Depends-on): Likewise.
58976         * modules/sprintf-posix (Depends-on): Likewise.
58977         * modules/vasnprintf-posix (Depends-on): Likewise.
58978         * modules/vasprintf-posix (Depends-on): Likewise.
58979         * modules/vfprintf-posix (Depends-on): Likewise.
58980         * modules/vprintf-posix (Depends-on): Likewise.
58981         * modules/vsnprintf-posix (Depends-on): Likewise.
58982         * modules/vsprintf-posix (Depends-on): Likewise.
58983         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58984         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58985         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58986         "no" on i386, x86_64, ia64.
58987         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58988         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58989         on i386, x86_64, ia64.
58990         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58991         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58992         on i386, x86_64, ia64.
58993         * tests/test-vasnprintf-posix.c: Include float.h.
58994         (LDBL80_WORDS): New macro.
58995         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58996         on i386, x86_64, ia64.
58997         * tests/test-vasprintf-posix.c: Include float.h.
58998         (LDBL80_WORDS): New macro.
58999         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59000         on i386, x86_64, ia64.
59001         * tests/test-snprintf-posix.c: Include float.h.
59002         * tests/test-sprintf-posix.c: Likewise.
59003         * tests/test-vsnprintf-posix.c: Likewise.
59004         * tests/test-vsprintf-posix.c: Likewise.
59005
59006 2007-06-05  Bruno Haible  <bruno@clisp.org>
59007
59008         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59009         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59010         non-IEEE numbers on i386, x86_64, ia64.
59011         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59012         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59013         * tests/test-isnanl.h: Include float.h.
59014         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59015
59016 2007-06-05  Bruno Haible  <bruno@clisp.org>
59017
59018         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59019         also the %a / %A. Handle the %a / %A code before this extra handling.
59020
59021 2007-06-05  Bruno Haible  <bruno@clisp.org>
59022
59023         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59024         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59025
59026 2007-06-05  Bruno Haible  <bruno@clisp.org>
59027
59028         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59029         typo in variable name.
59030
59031 2007-06-05  Eric Blake  <ebb9@byu.net>
59032
59033         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59034         Reported by Simon Josefsson.
59035
59036 2007-06-04  Bruno Haible  <bruno@clisp.org>
59037
59038         Avoid test failures on some PowerPC platforms.
59039         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59040         Define differently for PowerPC.
59041         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59042         Reported by Gary V. Vaughan <gary@gnu.org>.
59043
59044 2007-06-02  Bruno Haible  <bruno@clisp.org>
59045
59046         Fix test-stdint failure on FreeBSD/ia64.
59047         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59048         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59049         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59050         * doc/headers/stdint.texi: Update.
59051
59052 2007-06-01  Bruno Haible  <bruno@clisp.org>
59053
59054         * tests/test-binary-io.c (main): Pass a third argument to open().
59055         Reported by Gary V. Vaughan <gary@gnu.org>.
59056
59057 2007-06-01  Bruno Haible  <bruno@clisp.org>
59058
59059         * doc/functions/frexpl.texi: Update for mingw.
59060
59061 2007-06-01  Bruno Haible  <bruno@clisp.org>
59062
59063         * tests/test-lseek.c (main): Disable test of errno for invalid third
59064         argument.
59065         * doc/functions/lseek.texi: Update.
59066         Reported by Gary V. Vaughan <gary@gnu.org>.
59067
59068 2007-05-28  Bruno Haible  <bruno@clisp.org>
59069
59070         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59071
59072 2007-05-31  Eric Blake  <ebb9@byu.net>
59073
59074         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59075         cross compiling.
59076
59077 2007-05-30  Eric Blake  <ebb9@byu.net>
59078         and Bruno Haible  <bruno@clisp.org>
59079
59080         Work around mingw test failures exposed by m4-1.4.9b.
59081         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59082         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59083         moment.
59084
59085 2007-05-30  Bruno Haible  <bruno@clisp.org>
59086
59087         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59088         assuming that they are closed. Needed on HP-UX 11.
59089
59090 2007-05-29  Bruno Haible  <bruno@clisp.org>
59091
59092         Fix a problem with #include_next.
59093         * lib/dirent_.h: Split the double-inclusion guard.
59094         * lib/fcntl_.h: Likewise.
59095         * lib/float_.h: Likewise.
59096         * lib/iconv_.h: Likewise.
59097         * lib/inttypes_.h: Likewise.
59098         * lib/locale_.h: Likewise.
59099         * lib/math_.h: Likewise.
59100         * lib/netinet_in_.h: Likewise.
59101         * lib/search_.h: Likewise.
59102         * lib/signal_.h: Likewise.
59103         * lib/stdint_.h: Likewise.
59104         * lib/stdio_.h: Likewise.
59105         * lib/stdlib_.h: Likewise.
59106         * lib/string_.h: Likewise.
59107         * lib/sys_select_.h: Likewise.
59108         * lib/sys_socket_.h: Likewise.
59109         * lib/sys_stat_.h: Likewise.
59110         * lib/sys_time_.h: Likewise.
59111         * lib/sysexits_.h: Likewise.
59112         * lib/time_.h: Likewise.
59113         * lib/unistd_.h: Likewise.
59114         * lib/wchar_.h: Likewise.
59115         * lib/wctype_.h: Likewise.
59116
59117 2007-05-29  Bruno Haible  <bruno@clisp.org>
59118
59119         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59120         for the moment.
59121
59122 2007-05-29  Bruno Haible  <bruno@clisp.org>
59123
59124         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59125         invocation.
59126         Reported by Eric Blake.
59127
59128 2007-05-29  Bruno Haible  <bruno@clisp.org>
59129
59130         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59131         compiling case.
59132
59133 2007-05-29  Eric Blake  <ebb9@byu.net>
59134             Bruno Haible  <bruno@clisp.org>
59135
59136         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59137         cross compiles.
59138
59139 2007-05-28  Eric Blake  <ebb9@byu.net>
59140
59141         * modules/closein-tests (test_closein_LDADD): Support test on
59142         cygwin with libtool.
59143
59144 2007-05-28  Bruno Haible  <bruno@clisp.org>
59145
59146         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59147         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59148         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59149         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59150         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59151         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59152         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59153         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59154         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59155
59156 2007-05-28  Eric Blake  <ebb9@byu.net>
59157
59158         Unconditionally include <config.h> in unit tests.
59159         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59160         * tests/test-allocsa.c, tests/test-arcfour.c,
59161         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59162         tests/test-array_list.c, tests/test-array_oset.c,
59163         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59164         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59165         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59166         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59167         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59168         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59169         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59170         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59171         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59172         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59173         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59174         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59175         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59176         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59177         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59178         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59179         test-md5.c, test-memmem.c, test-printf-posix.c,
59180         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59181         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59182         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59183         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59184         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59185         test-vasnprintf-posix2.c, test-vasnprintf.c,
59186         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59187         test-vfprintf-posix.c, test-vprintf-posix.c,
59188         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59189         test-xvasprintf.c: Likewise.
59190
59191 2007-05-28  Bruno Haible  <bruno@clisp.org>
59192
59193         * gnulib-tool (func_import): Remember the --with-tests command-line
59194         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59195         Reported by Eric Blake.
59196
59197 2007-05-28  Bruno Haible  <bruno@clisp.org>
59198
59199         * modules/ftell-tests: New file.
59200         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59201         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59202
59203         * lib/ftell.c: New file.
59204         * modules/ftell: New file.
59205         * m4/ftell.m4: New file.
59206         * doc/functions/ftell.texi: Update.
59207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59208         REPLACE_FTELL.
59209         * lib/stdio_.h (rpl_ftell): New declaration.
59210         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59211         REPLACE_FTELL.
59212
59213 2007-05-28  Eric Blake  <ebb9@byu.net>
59214
59215         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59216
59217 2007-05-28  Bruno Haible  <bruno@clisp.org>
59218
59219         * modules/fseek-tests: New file.
59220         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59221         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59222
59223         * lib/fseek.c: New file.
59224         * modules/fseek: New file.
59225         * m4/fseek.m4: New file.
59226         * doc/functions/fseek.texi: Update.
59227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59228         REPLACE_FSEEK.
59229         * lib/stdio_.h (rpl_fseek): New declaration.
59230         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59231         REPLACE_FSEEK.
59232
59233 2007-05-28  Bruno Haible  <bruno@clisp.org>
59234
59235         * lib/stdio_.h (fflush): More comments.
59236
59237 2007-05-28  Bruno Haible  <bruno@clisp.org>
59238
59239         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59240         runtime test.
59241
59242 2007-05-28  Eric Blake  <ebb9@byu.net>
59243
59244         Improve lseek module.
59245         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59246         * lib/unistd_.h (lseek): Scale back link warning message.
59247         * tests/test-lseek.c: Beef up test.
59248         * tests/test-lseek.sh: Exercise more facets of lseek.
59249         Reported by Bruno Haible.
59250
59251 2007-05-28  Bruno Haible  <bruno@clisp.org>
59252
59253         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59254         to define.
59255
59256 2007-05-27  Bruno Haible  <bruno@clisp.org>
59257
59258         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59259
59260 2007-05-27  Bruno Haible  <bruno@clisp.org>
59261
59262         * modules/openmp: New file.
59263         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59264         Noah Misch.
59265
59266 2007-05-26  Bruno Haible  <bruno@clisp.org>
59267
59268         * modules/chdir-long (Depends-on): Add fchdir.
59269         * modules/chdir-safer (Depends-on): Likewise.
59270         * modules/fts (Depends-on): Likewise.
59271         * modules/fts-lgpl (Depends-on): Likewise.
59272         * modules/openat (Depends-on): Likewise.
59273         * modules/savewd (Depends-on): Likewise.
59274
59275 2007-05-24  Eric Blake  <ebb9@byu.net>
59276
59277         Fix lseek on mingw.
59278         * modules/lseek: New module.
59279         * m4/lseek.m4: New file.
59280         * lib/lseek.c: New file.
59281         * modules/lseek-tests: New file.
59282         * tests/test-lseek.c: New file.
59283         * tests/test-lseek.sh: New file.
59284         * MODULES.html.sh: Document lseek module.
59285         * modules/fflush (Depends-on): Add lseek, fseeko.
59286         * modules/fseeko (Depends-on): Likewise.
59287         * modules/ftello (Depends-on): Likewise.
59288         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59289         broken.
59290         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59291         broken.
59292         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59293         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59294         * lib/ftello.c (rpl_ftello): Likewise.
59295         * tests/test-fseeko.c (main): Test this.
59296         * tests/test-fseeko.sh: Likewise.
59297         * tests/test-ftello.c (main): Likewise.
59298         * tests/test-ftello.sh: Likewise.
59299         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59300         implies replacing fseek.
59301         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59302         HAVE_FTELLO.
59303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59304         * modules/unistd (Makefile.am): Likewise.
59305         * lib/unistd_.h (lseek): Declare a replacement.
59306         * doc/functions/lseek.texi (lseek): Document this fix.
59307         * doc/functions/fseek.texi (fseek): Likewise.
59308         * doc/functions/ftell.texi (ftell): Likewise.
59309
59310 2007-05-24  Bruno Haible  <bruno@clisp.org>
59311
59312         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59313         in the printed representation of a NaN.
59314         * tests/test-vasprintf-posix.c (test_function): Likewise.
59315         * tests/test-snprintf-posix.h (test_function): Likewise.
59316         * tests/test-sprintf-posix.h (test_function): Likewise.
59317         Reported by Eric Blake.
59318
59319 2007-05-23  Eric Blake  <ebb9@byu.net>
59320
59321         Fix fseeko/ftello on cygwin 1.5.24.
59322         * doc/functions/fseeko.texi (fseeko): Document the fix.
59323         * doc/functions/ftello.texi (ftello): Document the fix.
59324         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59325         * doc/functions/stdout.text (stdout): New file.
59326         * doc/functions/stderr.text (stderr): New file.
59327         * doc/gnulib.texi (Function Substitutes): Use new files.
59328         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59329         prior to 1.7.0.
59330         * tests/test-ftello.c (main): Likewise for ftello.
59331         * tests/test-fseeko.sh: New file.
59332         * tests/test-ftello.sh: New file.
59333         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59334         with seekable stdin.
59335         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59336         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59337         (gl_REPLACE_FSEEKO): New macro.
59338         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59339         * modules/fseeko (Files): Distribute fseeko.c.
59340         * modules/ftello (Files): Distribute ftello.c.
59341         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59342         mode.
59343         * lib/ftello.c (rpl_ftello): New file.
59344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59345         fseeko, ftello.
59346         (gl_STDIN_LARGE_OFFSET): New macro.
59347         * modules/stdio (Makefile.am): Perform the replacement.
59348         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59349
59350 2007-05-23  Bruno Haible  <bruno@clisp.org>
59351
59352         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59353         GNULIB_POSIXCHECK is defined.
59354
59355 2007-05-21  Bruno Haible  <bruno@clisp.org>
59356
59357         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59358         Check also the output for NaN arguments. When cross-compiling, guess
59359         no on IRIX.
59360         * lib/vasnprintf.c: Update comments.
59361         * tests/test-vasnprintf-posix.c (strisnan): New function.
59362         (test_function): Use it.
59363         * tests/test-vasprintf-posix.c (strisnan): New function.
59364         (test_function): Use it.
59365         * tests/test-snprintf-posix.h (strisnan): New function.
59366         (test_function): Use it.
59367         * tests/test-sprintf-posix.h (strisnan): New function.
59368         (test_function): Use it.
59369         Reported by Eric Blake.
59370
59371 2007-05-20  Bruno Haible  <bruno@clisp.org>
59372
59373         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59374         numbers that fails on BeOS.
59375         * doc/functions/frexpl.texi: Update.
59376
59377 2007-05-20  Jim Meyering  <jim@meyering.net>
59378
59379         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59380         forced upon us by glibc-2.6.
59381
59382 2007-05-20  Bruno Haible  <bruno@clisp.org>
59383
59384         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59385         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59386         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59387         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59388         NEED_PRINTF_INFINITE.
59389         (is_infinitel): New function.
59390         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59391         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59392         gl_PREREQ_VASNPRINTF_INFINITE.
59393         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59394         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59395         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59396         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59397         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59398         gl_PREREQ_VASNPRINTF_INFINITE.
59399         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59400         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59401         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59402         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59403         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59404         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59405         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59406         * doc/functions/fprintf.texi: Update.
59407         * doc/functions/printf.texi: Update.
59408         * doc/functions/snprintf.texi: Update.
59409         * doc/functions/sprintf.texi: Update.
59410         * doc/functions/vfprintf.texi: Update.
59411         * doc/functions/vprintf.texi: Update.
59412         * doc/functions/vsnprintf.texi: Update.
59413         * doc/functions/vsprintf.texi: Update.
59414
59415 2007-05-20  Bruno Haible  <bruno@clisp.org>
59416
59417         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59418         was not found in libc.
59419         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59420
59421 2007-05-20  Bruno Haible  <bruno@clisp.org>
59422
59423         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59424         printed as "-nan" instead of "nan".
59425         * tests/test-vasprintf-posix.c (test_function): Likewise.
59426         * tests/test-snprintf-posix.h (test_function): Likewise.
59427         * tests/test-sprintf-posix.h (test_function): Likewise.
59428         Needed for HP-UX 11.
59429
59430 2007-05-20  Jim Meyering  <jim@meyering.net>
59431
59432         Fix buggy test for the fchownat-deref bug.
59433         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59434         symlink required for the run-test.  Without it, this test would
59435         always declare that fchownat doesn't work, and client code would
59436         unnecessarily use the replacement function with fixed libc.
59437         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59438         Reported by Greg Schafer.
59439
59440 2007-05-19  Bruno Haible  <bruno@clisp.org>
59441
59442         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59443         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59444         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59445         Needed for IRIX 6.5 and Solaris 2.5.1.
59446
59447 2007-05-19  Bruno Haible  <bruno@clisp.org>
59448
59449         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59450         (test_function): Skip tests involving -0.0 on platforms where
59451         -0.0 = 0.0.
59452         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59453         (test_function): Skip tests involving -0.0 on platforms where
59454         -0.0 = 0.0.
59455         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59456         (test_function): Skip tests involving -0.0 on platforms where
59457         -0.0 = 0.0.
59458         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59459         (test_function): Skip tests involving -0.0 on platforms where
59460         -0.0 = 0.0.
59461         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59462         tests.
59463         * tests/test-printf-posix.h (test_function): Likewise.
59464         * tests/test-printf-posix.output: Remove all -0.0 related results.
59465         Needed for IRIX 6.5.
59466
59467 2007-05-19  Bruno Haible  <bruno@clisp.org>
59468
59469         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59470         printed as "nan0x7fffffff" instead of "nan".
59471         * tests/test-vasprintf-posix.c (test_function): Likewise.
59472         * tests/test-snprintf-posix.h (test_function): Likewise.
59473         * tests/test-sprintf-posix.h (test_function): Likewise.
59474         * tests/test-fprintf-posix.h (NaN): Remove macro.
59475         (test_function): Remove all NaN related tests.
59476         * tests/test-printf-posix.h (NaN): Remove macro.
59477         (test_function): Remove all NaN related tests.
59478         * tests/test-printf-posix.output: Remove all NaN related results.
59479         Needed for IRIX 6.5.
59480
59481 2007-05-19  Bruno Haible  <bruno@clisp.org>
59482
59483         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59484         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59485
59486 2007-05-19  Bruno Haible  <bruno@clisp.org>
59487
59488         * lib/float_.h: New file.
59489         * m4/float_h.m4: New file.
59490         * modules/float: New file.
59491         * modules/isnanl (Dependencies): Add float.
59492         * modules/isnanl-nolibm (Dependencies): Likewise.
59493         * modules/mathl (Dependencies): Likewise.
59494         * modules/printf-frexpl (Dependencies): Likewise.
59495         * modules/signbit (Dependencies): Likewise.
59496         * modules/vasnprintf (Dependencies): Likewise.
59497         * doc/headers/float.texi: Update.
59498
59499 2007-05-19  Jim Meyering  <jim@meyering.net>
59500
59501         * lib/utimens.c (gl_futimens): Rename from futimens,
59502         now that glibc-2.6 declares futimens.
59503         * lib/utimens.h: Likewise.
59504
59505 2007-05-19  Bruno Haible  <bruno@clisp.org>
59506
59507         Avoid test failures on mingw.
59508         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59509         * tests/test-printf-posix.sh: Likewise.
59510         * tests/test-vfprintf-posix.sh: Likewise.
59511         * tests/test-vprintf-posix.sh: Likewise.
59512
59513 2007-05-19  Bruno Haible  <bruno@clisp.org>
59514
59515         Fix *printf result for NaN, Inf, -0.0 on mingw.
59516         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59517         * lib/vasnprintf.c: Include math.h and isnan.h.
59518         (is_infinite_or_zero): New function.
59519         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59520         values in the %f, %F, %e, %E, %g, %G directives.
59521         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59522         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59523         gl_PRINTF_INFINITE and test its result. Invoke
59524         gl_PREREQ_VASNPRINTF_INFINITE.
59525         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59526         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59527         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59528         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59529         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59530         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59531         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59532         * doc/functions/fprintf.texi: Update.
59533         * doc/functions/printf.texi: Update.
59534         * doc/functions/snprintf.texi: Update.
59535         * doc/functions/sprintf.texi: Update.
59536         * doc/functions/vfprintf.texi: Update.
59537         * doc/functions/vprintf.texi: Update.
59538         * doc/functions/vsnprintf.texi: Update.
59539         * doc/functions/vsprintf.texi: Update.
59540
59541 2007-05-19  Bruno Haible  <bruno@clisp.org>
59542
59543         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59544         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59545         Instead of multiplying with 10^k, set extra_zeroes to k.
59546         (scale10_round_long_double): Remove function.
59547
59548 2007-05-18  Bruno Haible  <bruno@clisp.org>
59549
59550         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59551         introduced on 2007-05-06.
59552
59553 2007-05-18  Bruno Haible  <bruno@clisp.org>
59554
59555         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59556         %g directives.
59557         * tests/test-vasprintf-posix.c (test_function): Likewise.
59558         * tests/test-snprintf-posix.h (test_function): Likewise.
59559         * tests/test-sprintf-posix.h (test_function): Likewise.
59560
59561 2007-05-18  Bruno Haible  <bruno@clisp.org>
59562
59563         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59564         (strmatch): New function.
59565         (test_function): Test the %f directive on numbers of various exponents.
59566         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59567         (strmatch): New function.
59568         (test_function): Test the %f directive on numbers of various exponents.
59569         * tests/test-snprintf-posix.h (strmatch): New function.
59570         (test_function): Test the %f directive on numbers of various exponents.
59571         * tests/test-sprintf-posix.h (strmatch): New function.
59572         (test_function): Test the %f directive on numbers of various exponents.
59573         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59574         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59575         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59576         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59577
59578 2007-05-18  Bruno Haible  <bruno@clisp.org>
59579
59580         Add support for 'long double' number output.
59581         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59582         * lib/vasnprintf.c: Include math.h and float+.h.
59583         (mp_limb_t): New type.
59584         (GMP_LIMB_BITS): New macro.
59585         (mp_twolimb_t): New type.
59586         (GMP_TWOLIMB_BITS): New macro.
59587         (mpn_t): New type.
59588         (multiply, divide, convert_to_decimal, decode_long_double,
59589         scale10_round_long_double, scale10_round_decimal_long_double,
59590         floorlog10l): New functions.
59591         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59592         for the %f, %F, %e, %E, %g, %G directives.
59593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59594         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59595         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59596         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59597         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59598         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59599         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59600         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59601         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59602         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59603         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59604         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59605         * modules/snprintf-posix (Depends-on): Likewise.
59606         * modules/sprintf-posix (Depends-on): Likewise.
59607         * modules/vasnprintf-posix (Depends-on): Likewise.
59608         * modules/vasprintf-posix (Depends-on): Likewise.
59609         * modules/vfprintf-posix (Depends-on): Likewise.
59610         * modules/vsnprintf-posix (Depends-on): Likewise.
59611         * modules/vsprintf-posix (Depends-on): Likewise.
59612         * modules/vasnprintf (Files): Add lib/float+.h.
59613         * doc/functions/fprintf.texi: Update.
59614         * doc/functions/printf.texi: Update.
59615         * doc/functions/snprintf.texi: Update.
59616         * doc/functions/sprintf.texi: Update.
59617         * doc/functions/vfprintf.texi: Update.
59618         * doc/functions/vprintf.texi: Update.
59619         * doc/functions/vsnprintf.texi: Update.
59620         * doc/functions/vsprintf.texi: Update.
59621
59622 2007-05-18  Bruno Haible  <bruno@clisp.org>
59623
59624         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59625
59626 2007-05-18  Bruno Haible  <bruno@clisp.org>
59627
59628         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59629         for printing 64-bit integers. Needed for mingw.
59630
59631 2007-05-18  Bruno Haible  <bruno@clisp.org>
59632
59633         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59634         gl_FUNC_FREXPL_WORKS.
59635         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59636
59637 2007-05-18  Bruno Haible  <bruno@clisp.org>
59638
59639         * modules/frexpl-nolibm-tests: New file.
59640
59641         * modules/frexpl-nolibm: New file.
59642         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59643
59644 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59645
59646         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59647         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59648         GCC 4.2, which otherwise issues a lot of warnings.
59649         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59650         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59651         Likewise.
59652         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59653         * modules/iconv_open (iconv.h): Likewise.
59654         * modules/locale (locale.h): Likewise.
59655         * modules/netinet_in (netinet/in.h): Likewise.
59656         * modules/sys_select (sys_select.h): Likewise.
59657         * modules/sys_socket (sys/socket.h): Likewise.
59658         * modules/sys_stat (sys/stat.h): Likewise.
59659         * modules/sysexits (sysexits.h): Likewise.
59660         * modules/unistd (unistd.h): Likewise.
59661
59662 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59663
59664         * modules/closein-tests (Makefile.am): Distribute
59665         `test-closein.sh'.
59666
59667 2007-05-17  Bruno Haible  <bruno@clisp.org>
59668
59669         * tests/test-printf-posix.output: Renamed from
59670         tests/test-fprintf-posix.out.
59671         * modules/fprintf-posix-tests: Update.
59672         * modules/printf-posix-tests: Update.
59673         * modules/vfprintf-posix-tests: Update.
59674         * modules/vprintf-posix-tests: Update.
59675         * tests/test-fprintf-posix.sh: Update.
59676         * tests/test-printf-posix.sh: Update.
59677         * tests/test-vfprintf-posix.sh: Update.
59678         * tests/test-vprintf-posix.sh: Update.
59679         Reported by Ralf Wildenhues.
59680
59681 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59682
59683         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59684         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59685         GCC 4.2, which otherwise issues a lot of warnings.
59686         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59687         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59688         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59689         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59690         it should no longer be needed.
59691         * lib/string_.h: Likewise.
59692         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59693         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59694         * modules/inttypes (inttypes.h): Likewise.
59695         * modules/math (math.h): Likewise.
59696         * modules/search (search.h): Likewise.
59697         * modules/signal (signal.h): Likewise.
59698         * modules/stdint (stdint.h): Likewise.
59699         * modules/stdio (stdio.h): Likewise.
59700         * modules/stdlib (stdlib.h): Likewise.
59701         * modules/string (string.h): Likewise.
59702         * modules/sys_time (sys/time.h): Likewise.
59703         * modules/time (time.h): Likewise.
59704         * modules/wchar (wchar.h): Likewise.
59705         * modules/wctype (wtype.h): Likewise.
59706
59707 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59708
59709         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59710
59711 2007-05-13  Bruno Haible  <bruno@clisp.org>
59712
59713         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59714         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59715         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59716         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59717         (gl_PREREQ_STRTOK_R): Don't require it here.
59718
59719 2007-05-13  Bruno Haible  <bruno@clisp.org>
59720
59721         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59722         when used in C++ mode.
59723
59724 2007-05-12  Bruno Haible  <bruno@clisp.org>
59725
59726         * lib/linebuffer.h: Tweak doc.
59727         * lib/linebuffer.c: Likewise.
59728
59729 2007-05-12  James Youngman  <jay@gnu.org>
59730
59731         * lib/linebuffer.c (readlinebuffer_delim): New function,
59732         like readlinebuffer, but use a caller-specified delimiter.
59733         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59734         as the delimiter.
59735         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59736
59737 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59738
59739         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59740         * modules/openat (Files): Remove openat-die.c.
59741         (Depends-on): Add openat-die.
59742         * modules/openat-die: New module.
59743
59744 2007-05-06  Bruno Haible  <bruno@clisp.org>
59745
59746         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59747         Update with info about Cygwin.
59748         * doc/functions/fprintf.texi: Update.
59749         * doc/functions/printf.texi: Update.
59750         * doc/functions/snprintf.texi: Update.
59751         * doc/functions/sprintf.texi: Update.
59752         * doc/functions/vfprintf.texi: Update.
59753         * doc/functions/vprintf.texi: Update.
59754         * doc/functions/vsnprintf.texi: Update.
59755         * doc/functions/vsprintf.texi: Update.
59756         Reported by Eric Blake.
59757
59758 2007-05-06  Bruno Haible  <bruno@clisp.org>
59759
59760         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59761         padding ourselves for the floating-point directives.
59762         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59763         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59764         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59765         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59766         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59767         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59768         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59769         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59770         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59771         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59772         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59773         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59774         * tests/test-snprintf-posix.h (test_function): Also check the width
59775         and some flags in the %f directive.
59776         * tests/test-sprintf-posix.h (test_function): Likewise.
59777         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59778         * tests/test-vasprintf-posix.c (test_function): Likewise.
59779         * doc/functions/fprintf.texi: Update.
59780         * doc/functions/printf.texi: Update.
59781         * doc/functions/snprintf.texi: Update.
59782         * doc/functions/sprintf.texi: Update.
59783         * doc/functions/vfprintf.texi: Update.
59784         * doc/functions/vprintf.texi: Update.
59785         * doc/functions/vsnprintf.texi: Update.
59786         * doc/functions/vsprintf.texi: Update.
59787
59788 2007-05-06  Bruno Haible  <bruno@clisp.org>
59789
59790         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59791         pass the ' flag character to sprintf or snprintf.
59792         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59793         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59794         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59795         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59796         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59797         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59798         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59799         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59800         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59801         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59802         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59803         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59804         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59805         flag.
59806         * tests/test-sprintf-posix.h (test_function): Likewise.
59807         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59808         * tests/test-vasprintf-posix.c (test_function): Likewise.
59809         * doc/functions/fprintf.texi: Update.
59810         * doc/functions/printf.texi: Update.
59811         * doc/functions/snprintf.texi: Update.
59812         * doc/functions/sprintf.texi: Update.
59813         * doc/functions/vfprintf.texi: Update.
59814         * doc/functions/vprintf.texi: Update.
59815         * doc/functions/vsnprintf.texi: Update.
59816         * doc/functions/vsprintf.texi: Update.
59817
59818 2007-05-01  Bruno Haible  <bruno@clisp.org>
59819
59820         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59821
59822 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59823
59824         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59825         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59826
59827 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59828
59829         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59830         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59831         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59832
59833 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59834
59835         * lib/argp-help.c (struct hol_entry): New member `ord'.
59836         (HOL_ENTRY_PTRCMP): Use ord for comparison
59837         (hol_sort): Initialize ord.
59838
59839 2007-05-01  Bruno Haible  <bruno@clisp.org>
59840
59841         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59842         Reported by Eric Blake.
59843         * doc/gnulib.texi (Function Substitutes): Update.
59844
59845 2007-05-01  Bruno Haible  <bruno@clisp.org>
59846
59847         * doc/functions.texi: Remove file, now redundant through
59848         doc/functions/*.texi.
59849
59850 2007-05-01  Bruno Haible  <bruno@clisp.org>
59851
59852         * modules/argp (Depends-on): Add sleep.
59853
59854 2007-05-01  Bruno Haible  <bruno@clisp.org>
59855
59856         * modules/sleep-tests: New file.
59857         * tests/test-sleep.c: New file.
59858
59859         * modules/sleep: New file.
59860         * lib/sleep.c: New file.
59861         * m4/sleep.m4: New file.
59862         * lib/unistd_.h (sleep): New declaration.
59863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59864         HAVE_SLEEP.
59865         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59866         * doc/functions/sleep.texi: Document the sleep module.
59867
59868 2007-05-01  Bruno Haible  <bruno@clisp.org>
59869
59870         * lib/sigprocmask.h: Remove file.
59871         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59872         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59873         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59874         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59875         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59876         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59877         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59878         HAVE_SIGSET_T as a shell variable.
59879         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59880         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59881         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59882         (Depends-on): Add signal. Remove verify.
59883         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59884         (Include): Mention <signal.h> instead of sigprocmask.h.
59885         * NEWS: Mention the change.
59886         * lib/fatal-signal.c: Don't include sigprocmask.h.
59887
59888 2007-05-01  Bruno Haible  <bruno@clisp.org>
59889
59890         * modules/signal: New file.
59891         * lib/signal_.h: New file.
59892         * m4/signal_h.m4: New file.
59893
59894 2007-05-01  Bruno Haible  <bruno@clisp.org>
59895
59896         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59897         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59898         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59899         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59900
59901 2007-05-01  Bruno Haible  <bruno@clisp.org>
59902
59903         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59904         configure time.
59905         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59906         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59907         * modules/sys_stat (Makefile.am): Substitute their values into
59908         sys/stat.h.
59909
59910 2007-05-01  Bruno Haible  <bruno@clisp.org>
59911
59912         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59913         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59914         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59915
59916 2007-05-01  Bruno Haible  <bruno@clisp.org>
59917
59918         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59919         'assert' module here.
59920
59921 2007-05-01  Bruno Haible  <bruno@clisp.org>
59922
59923         * doc/functions/*.texi: New files.
59924         * doc/functions/google-ranking.txt: New file.
59925         * doc/gnulib.texi (Function Substitutes): New chapter.
59926         (ctime, inet_ntoa): Remove sections.
59927         * doc/ctime.texi: Remove file.
59928         * doc/inet_ntoa.texi: Remove file.
59929         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59930         dependencies.
59931         (%.info): New rule, specifying a --reference-limit.
59932
59933 2007-05-01  Bruno Haible  <bruno@clisp.org>
59934
59935         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59936
59937 2007-05-01  Bruno Haible  <bruno@clisp.org>
59938
59939         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59940         the portability of 'mkdir' to mingw systems.
59941
59942 2007-05-01  Bruno Haible  <bruno@clisp.org>
59943
59944         * doc/headers/google-ranking.txt: New file.
59945
59946 2007-04-30  Eric Blake  <ebb9@byu.net>
59947
59948         Prefer fseeko to fseek.
59949         * modules/getpass (Depends-on): Add fseeko.
59950         * lib/getpass.c (getpass): Use fseeko, not fseek.
59951
59952 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59953
59954         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59955         assumes the sorting is stable, while most qsort implementations
59956         are not.  Use argument addresses to ensure they never compare as
59957         equal.
59958
59959         * tests/test-argp-2.sh (usage-indent test): Fix output
59960         (func_compare): Restore diff options
59961         * tests/test-argp.c: Restore #include "progname.h"
59962
59963 2007-04-29  Bruno Haible  <bruno@clisp.org>
59964
59965         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59966         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59967         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59968         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59969         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59970         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59971         (TESTS, check_PROGRAMS): Add test-snprintf.
59972         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59973         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59974         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59975         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59976         assertions that fail on HP-UX, OSF/1, or IRIX.
59977         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59978
59979 2007-04-29  Bruno Haible  <bruno@clisp.org>
59980
59981         * MODULES.html.sh (posix_functions): Remove 'contents'.
59982
59983 2007-04-29  Karl Berry  <karl@gnu.org>
59984
59985         * config/srclist.txt (gendocs_template_min): new entry.
59986
59987 2007-04-29  Bruno Haible  <bruno@clisp.org>
59988
59989         Work around fpurge bug on BSD systems.
59990         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59991         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59992         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59993         fpurge to rpl_fpurge if the system already has this function.
59994         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59995         the case where the system already has this function. Correct invariants
59996         on BSD systems.
59997         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59998         BSD systems.
59999
60000 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60001
60002         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60003         proposed by Sven Verdoolaege.
60004
60005         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60006         options.
60007         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60008         (usage and help tests): Update
60009
60010 2007-04-29  Bruno Haible  <bruno@clisp.org>
60011
60012         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60013         Print more information in case of failure. Disable a test on BeOS.
60014
60015 2007-04-29  Bruno Haible  <bruno@clisp.org>
60016
60017         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60018         This helps debugging on systems on which no gdb is available.
60019
60020 2007-04-29  Bruno Haible  <bruno@clisp.org>
60021
60022         * lib/freading.h: Improve comments.
60023         * lib/fwriting.h: Likewise.
60024         * tests/test-freading.c (main): Don't check freading immediately after
60025         repositioning. Needed for glibc.
60026
60027 2007-04-29  Bruno Haible  <bruno@clisp.org>
60028
60029         * lib/freading.c (freading): Trivial simplification.
60030
60031 2007-04-28  Bruno Haible  <bruno@clisp.org>
60032
60033         * tests/test-fwriting.c (main): Also test the interaction between
60034         fflush and fwriting.
60035         * modules/fwriting-tests (Depends-on): Add fflush.
60036
60037         * tests/test-freading.c (main): Also test the interaction between
60038         fflush and freading.
60039         * modules/freading-tests (Depends-on): Add fflush.
60040
60041 2007-04-28  Bruno Haible  <bruno@clisp.org>
60042
60043         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60044         fseeko and ftello.
60045         Suggested by Eric Blake.
60046
60047 2007-04-28  Jim Meyering  <jim@meyering.net>
60048
60049         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60050         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60051         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60052
60053 2007-04-27  Eric Blake  <ebb9@byu.net>
60054
60055         * doc/headers/assert.texi (assert.h): Document assert module use.
60056
60057 2007-04-27  Bruno Haible  <bruno@clisp.org>
60058
60059         * doc/headers/*.texi: New files.
60060         * doc/gnulib.texi (Header File Substitutes): New chapter.
60061         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60062         dependencies.
60063         (standards.info ,standards.html, standards.dvi): Update dependencies.
60064         (mostlyclean, clean): New targets.
60065
60066 2007-04-27  Bruno Haible  <bruno@clisp.org>
60067
60068         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60069         * modules/sysexits (Files, Makefile.am): Update.
60070
60071         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60072         * modules/sys_socket (Files, Makefile.am): Update.
60073
60074         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60075         * modules/sys_stat (Files, Makefile.am): Update.
60076
60077 2007-04-27  Eric Blake  <ebb9@byu.net>
60078
60079         * lib/freading.h: Improve comments.
60080         * lib/fwriting.h: Likewise.
60081         * lib/fflush.c: Likewise.
60082
60083         Fix closein for mingw.
60084         * modules/closein-tests: Add tests for closein.
60085         * tests/test-closein.c: New file.
60086         * tests/test-closein.sh: Likewise.
60087         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60088         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60089
60090 2007-04-27  Bruno Haible  <bruno@clisp.org>
60091
60092         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60093         version is < 6.
60094         * lib/math_.h [__DECC]: Likewise.
60095         * lib/stdio_.h [__DECC]: Likewise.
60096         * lib/stdlib_.h [__DECC]: Likewise.
60097         * lib/string_.h [__DECC]: Likewise.
60098         * lib/time_.h [__DECC]: Likewise.
60099         * lib/wchar_.h [__DECC]: Likewise.
60100         * lib/wctype_.h [__DECC]: Likewise.
60101
60102 2007-04-27  Bruno Haible  <bruno@clisp.org>
60103
60104         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60105
60106 2007-04-27  Bruno Haible  <bruno@clisp.org>
60107
60108         * lib/fflush.c: Add comments.
60109         * modules/fpurge-tests (Depends-on): Add fflush.
60110         * modules/freadable-tests (Depends-on): Likewise.
60111         * modules/fwritable-tests (Depends-on): Likewise.
60112
60113 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60114
60115         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60116         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60117         Report by Bruno Haible <bruno@clisp.org>.
60118
60119 2007-04-26  Eric Blake  <ebb9@byu.net>
60120
60121         Fix fflush on mingw.
60122         * modules/fflush (Depends-on): Add freading.
60123         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60124         but unread data.
60125
60126 2007-04-26  Eric Blake  <ebb9@byu.net>
60127         and Bruno Haible  <bruno@clisp.org>
60128
60129         Implement freading and fwriting.
60130         * lib/freading.c: New file.
60131         * lib/freading.h: Likewise.
60132         * m4/freading.m4: Likewise.
60133         * modules/freading: Likewise.
60134         * modules/freading-tests: Likewise.
60135         * tests/test-freading.c: Likewise.
60136         * lib/fwriting.c: New file.
60137         * lib/fwriting.h: Likewise.
60138         * m4/fwriting.m4: Likewise.
60139         * modules/fwriting: Likewise.
60140         * modules/fwriting-tests: Likewise.
60141         * tests/test-fwriting.c: Likewise.
60142         * MODULES.html.sh (File stream based Input/Output): Mention them.
60143
60144 2007-04-26  Bruno Haible  <bruno@clisp.org>
60145
60146         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60147         'long' when we assume it.
60148         Suggested by Eric Blake.
60149
60150 2007-04-26  Bruno Haible  <bruno@clisp.org>
60151
60152         Ensure fseeko, ftello are declared on glibc systems.
60153         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60154         * modules/fseeko (configure.ac-early): Likewise.
60155         * modules/ftello (configure.ac-early): Likewise.
60156         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60157         AC_FUNC_FSEEKO for this.
60158         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60159         (gl_CHECK_FSEEKO): Remove macro.
60160
60161 2007-04-26  Bruno Haible  <bruno@clisp.org>
60162
60163         * tests/test-fflush.c (main): Also check the ftell result after
60164         fflush and fseek/fseeko.
60165         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60166         file descriptor position cache in the stream.
60167         * lib/fseeko.c (rpl_fseeko): Likewise.
60168
60169 2007-04-26  Bruno Haible  <bruno@clisp.org>
60170
60171         * modules/fflush-tests (Depends-on): Add fseeko.
60172
60173 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60174             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60175
60176         * lib/argz_.h: ensure error_t definition is obtained in same
60177         mechanism system argz.h would have.
60178         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60179         argz facilities are known bad.  Err on the side of caution if
60180         cross-compiling.
60181
60182 2007-04-25  Eric Blake  <ebb9@byu.net>
60183
60184         * lib/fpurge.c (includes): Use stdlib.h for free.
60185         * tests/test-fflush.c (main): Also test fflush-fseeko.
60186
60187 2007-04-25  Bruno Haible  <bruno@clisp.org>
60188
60189         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60190         * lib/fseeko.c: New file.
60191         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60192         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60193         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60194         gl_FUNC_FSEEKO.
60195         (gl_FUNC_FSEEKO): Invoke it.
60196         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60197         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60198         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60199
60200 2007-04-25  Bruno Haible  <bruno@clisp.org>
60201
60202         * modules/fflush (Depends-on): Add ftello.
60203
60204 2007-04-25  Bruno Haible  <bruno@clisp.org>
60205
60206         * modules/ftello-tests: New file.
60207         * tests/test-ftello.c: New file.
60208
60209         * modules/ftello: New file.
60210         * m4/ftello.m4: New file.
60211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60212         HAVE_FTELLO.
60213         * lib/stdio_.h (ftello): New declaration.
60214         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60215         HAVE_FTELLO.
60216
60217 2007-04-25  Bruno Haible  <bruno@clisp.org>
60218
60219         * modules/fseeko-tests: New file.
60220         * tests/test-fseeko.c: New file.
60221
60222         * modules/fseeko: New file.
60223         * m4/fseeko.m4: New file.
60224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60225         HAVE_FSEEKO.
60226         * lib/stdio_.h (fseeko): New declaration.
60227         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60228         HAVE_FSEEKO.
60229
60230 2007-04-25  Bruno Haible  <bruno@clisp.org>
60231
60232         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60233
60234 2007-04-25  Bruno Haible  <bruno@clisp.org>
60235
60236         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60237         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60238         * tests/test-unistd.c: Likewise.
60239         * tests/test-fcntl.c: Likewise.
60240
60241 2007-04-23  Eric Blake  <ebb9@byu.net>
60242
60243         * lib/fflush.c: Fix missing include.
60244         Reported by Bruno Haible.
60245
60246 2007-04-23  Bruno Haible  <bruno@clisp.org>
60247
60248         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60249         Reported by Eric Blake.
60250
60251 2007-04-23  Bruno Haible  <bruno@clisp.org>
60252
60253         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60254
60255 2007-04-23  Bruno Haible  <bruno@clisp.org>
60256
60257         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60258
60259 2007-04-23  Bruno Haible  <bruno@clisp.org>
60260
60261         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60262         Needed on HP-UX 11.
60263
60264 2007-04-16  Eric Blake  <ebb9@byu.net>
60265
60266         Make fflush rely on fpurge.
60267         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60268         open coding all variants.
60269         * modules/fflush (Depends-on): Add fpurge and unistd.
60270         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60271         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60272
60273         Fix --with-tests compilation on cygwin.
60274         * modules/argmatch-tests (Makefile.am): List gnulib library first
60275         in LDADD.
60276         * modules/argp-tests (Makefile.am): Likewise.
60277         * modules/array-list-tests (Makefile.am): Likewise.
60278         * modules/array-oset-tests (Makefile.am): Likewise.
60279         * modules/avltree-list-tests (Makefile.am): Likewise.
60280         * modules/avltree-oset-tests (Makefile.am): Likewise.
60281         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60282         * modules/carray-list-tests (Makefile.am): Likewise.
60283         * modules/dirname-tests (Makefile.am): Likewise.
60284         * modules/frexp-tests (Makefile.am): Likewise.
60285         * modules/isnanl-tests (Makefile.am): Likewise.
60286         * modules/linked-list-tests (Makefile.am): Likewise.
60287         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60288         * modules/lock-tests (Makefile.am): Likewise.
60289         * modules/rbtree-list-tests (Makefile.am): Likewise.
60290         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60291         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60292         * modules/tls-tests (Makefile.am): Likewise.
60293         * modules/tsearch-tests (Makefile.am): Likewise.
60294         * modules/xvasprintf-tests (Makefile.am): Likewise.
60295
60296         Fix fpurge for cygwin.
60297         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60298         value.
60299         * modules/fpurge-tests (Depends-on): Clean up trash.
60300
60301 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60302
60303         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60304
60305         * m4/autobuild.m4: Re-indent.
60306
60307 2007-04-13  Bruno Haible  <bruno@clisp.org>
60308
60309         * modules/fpurge-tests: New file.
60310         * tests/test-fpurge.c: New file.
60311
60312         * modules/fpurge: New file.
60313         * lib/fpurge.h: New file.
60314         * lib/fpurge.c: New file.
60315         * m4/fpurge.m4: New file.
60316
60317 2007-04-13  Bruno Haible  <bruno@clisp.org>
60318
60319         * modules/fbufmode-tests: New file.
60320         * tests/test-fbufmode.c: New file.
60321
60322         * modules/fbufmode: New file.
60323         * lib/fbufmode.h: New file.
60324         * lib/fbufmode.c: New file.
60325         * m4/fbufmode.m4: New file.
60326
60327 2007-04-13  Bruno Haible  <bruno@clisp.org>
60328
60329         * modules/fwritable-tests: New file.
60330         * tests/test-fwritable.c: New file.
60331
60332         * modules/fwritable: New file.
60333         * lib/fwritable.h: New file.
60334         * lib/fwritable.c: New file.
60335         * m4/fwritable.m4: New file.
60336
60337 2007-04-13  Bruno Haible  <bruno@clisp.org>
60338
60339         * modules/freadable-tests: New file.
60340         * tests/test-freadable.c: New file.
60341
60342         * modules/freadable: New file.
60343         * lib/freadable.h: New file.
60344         * lib/freadable.c: New file.
60345         * m4/freadable.m4: New file.
60346
60347 2007-04-13  Bruno Haible  <bruno@clisp.org>
60348
60349         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60350         MOSTLYCLEANFILES.
60351
60352 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60353
60354         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60355         gzip bootstrap.conf to avoid dragging in i18n machinery.
60356         (gnulib_tool_option): Use it.
60357
60358 2007-04-13  Bruno Haible  <bruno@clisp.org>
60359
60360         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60361         %F directives.
60362         * tests/test-vasprintf-posix.c (test_function): Likewise.
60363         * tests/test-snprintf-posix.h (test_function): Likewise.
60364         * tests/test-sprintf-posix.h (test_function): Likewise.
60365         * tests/test-fprintf-posix.h (test_function): Likewise.
60366         * tests/test-printf-posix.h (test_function): Likewise.
60367         * tests/test-fprintf-posix.out: Likewise.
60368
60369 2007-04-13  Bruno Haible  <bruno@clisp.org>
60370
60371         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60372         * modules/tls-tests (configure.ac): Likewise.
60373         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60374
60375 2007-04-13  Bruno Haible  <bruno@clisp.org>
60376
60377         * lib/tls.c (glthread_tls_get): Fix return type.
60378         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60379
60380 2007-04-12  Eric Blake  <ebb9@byu.net>
60381
60382         * modules/gettime (Depends-on): Remove gettime.
60383         Reported by Dmitry V. Levin.
60384
60385 2007-04-12  Bruno Haible  <bruno@clisp.org>
60386
60387         * modules/fflush (Include): Mention <stdio.h>.
60388         * modules/strtoimax (Include): Mention <inttypes.h>.
60389         * modules/strtoumax (Include): Likewise.
60390
60391 2007-04-12  Eric Blake  <ebb9@byu.net>
60392
60393         * .cvsignore: New file.
60394         * .gitignore: Likewise.
60395
60396 2007-04-12  Bruno Haible  <bruno@clisp.org>
60397
60398         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60399         not before, since $(LDADD) often contains libgnu.a.
60400         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60401         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60402         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60403         Needed on Cygwin.
60404
60405 2007-04-12  Eric Blake  <ebb9@byu.net>
60406
60407         Work around glibc's failure to flush stdin on fclose.
60408         * lib/closein.c (close_stdin): Flush stdin before closing.
60409
60410         Work around glibc's failure to reset seekable stdin on exit.
60411         * modules/closein: New module.
60412         * lib/closein.c: New file.
60413         * lib/closein.h: Likewise.
60414         * m4/closein.m4: Likewise.
60415         * MODULES.html.sh (File stream based Input/Output): Document it.
60416
60417 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60418
60419         * gnulib-tool: Rename generated 'autobuild' script to
60420         'do-autobuild' in --create-megatestdir output.
60421
60422         * doc/gnulib.texi (Build robot for gnulib): Fix.
60423
60424 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60425
60426         * modules/sysexits (Depends-on): Add absolute-header.
60427
60428 2007-04-12  Eric Blake  <ebb9@byu.net>
60429
60430         No need to preserve errno on success.
60431         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60432         Reported by Bruno Haible.
60433
60434 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60435
60436         * MODULES.html.sh (Support for maintaining and releasing
60437         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60438
60439 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60440
60441         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60442
60443 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60444
60445         * modules/autobuild: New module.
60446
60447         * m4/autobuild.m4: New file.
60448
60449 2007-04-11  Bruno Haible  <bruno@clisp.org>
60450
60451         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60452         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60453         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60454         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60455         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60456         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60457         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60458         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60459         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60460         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60461         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60462         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60463         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60464         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60465         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60466         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60467         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60468         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60469         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60470         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60471         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60472         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60473         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60474         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60475         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60476         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60477         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60478         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60479         Reported by Eric Blake.
60480
60481 2007-04-11  Bruno Haible  <bruno@clisp.org>
60482
60483         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60484
60485 2007-04-10  Bruno Haible  <bruno@clisp.org>
60486
60487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60488         for NaN and Infinity. Needed on FreeBSD 6.1.
60489         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60490         regarding results for "%010a" of Infinity and NaN.
60491         * tests/test-vasprintf-posix.c (test_function): Likewise.
60492         * tests/test-snprintf-posix.h (test_function): Likewise.
60493         * tests/test-sprintf-posix.h (test_function): Likewise.
60494         * tests/test-fprintf-posix.h (test_function): Likewise.
60495         * tests/test-printf-posix.h (test_function): Likewise.
60496         * tests/test-fprintf-posix.out: Likewise.
60497
60498 2007-04-10  Bruno Haible  <bruno@clisp.org>
60499
60500         * modules/locale-tests: New file.
60501         * tests/test-locale.c: New file.
60502
60503         * modules/locale: New file.
60504         * lib/locale_.h: New file.
60505         * m4/locale_h.m4: New file.
60506
60507 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60508             Bruno Haible  <bruno@clisp.org>
60509
60510         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60511         be determined, test for availability of the copysignf, copysign,
60512         copysignl functions.
60513         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60514         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60515         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60516
60517 2007-04-09  Eric Blake  <ebb9@byu.net>
60518
60519         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60520         * modules/stdio (Makefile.am): Support fflush.
60521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60522         * modules/fflush: New file.
60523         * lib/fflush.c: Likewise.
60524         * m4/fflush.m4: Likewise.
60525         * modules/fflush-tests: New test.
60526         * tests/test-fflush.c: Likewise.
60527         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60528
60529 2007-04-06  Bruno Haible  <bruno@clisp.org>
60530
60531         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60532         (VASNPRINTF): Use signbit for faster determination whether to print a
60533         minus sign.
60534         * modules/vasnprintf (Files): Remove lib/float+.h.
60535         * modules/fprintf-posix (Depends-on): Add signbit.
60536         * modules/snprintf-posix (Depends-on): Likewise.
60537         * modules/sprintf-posix (Depends-on): Likewise.
60538         * modules/vasnprintf-posix (Depends-on): Likewise.
60539         * modules/vasprintf-posix (Depends-on): Likewise.
60540         * modules/vfprintf-posix (Depends-on): Likewise.
60541         * modules/vsnprintf-posix (Depends-on): Likewise.
60542         * modules/vsprintf-posix (Depends-on): Likewise.
60543
60544 2007-04-06  Bruno Haible  <bruno@clisp.org>
60545
60546         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60547         * tests/test-frexpl.c (main): Likewise.
60548         * tests/test-ldexpl.c (main): Likewise.
60549         * modules/frexp-tests (Depends-on): Add signbit.
60550         * modules/frexpl-tests (Depdends-on): Likewise.
60551         * modules/ldexpl-tests (Depdends-on): Likewise.
60552
60553 2007-04-06  Bruno Haible  <bruno@clisp.org>
60554
60555         * modules/signbit-tests: New file.
60556         * tests/test-signbit.c: New file.
60557
60558         * modules/signbit: New file.
60559         * lib/signbitf.c: New file.
60560         * lib/signbitd.c: New file.
60561         * lib/signbitl.c: New file.
60562         * m4/signbit.m4: New file.
60563         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60564         (signbit): New macro.
60565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60566         REPLACE_SIGNBIT.
60567         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60568         REPLACE_FREXPL into math.h.
60569
60570 2007-04-06  Bruno Haible  <bruno@clisp.org>
60571
60572         * modules/isnanf-nolibm-tests: New file.
60573         * tests/test-isnanf.c: New file.
60574
60575         * modules/isnanf-nolibm: New file.
60576         * lib/isnanf.h: New file.
60577         * lib/isnanf.c: New file.
60578         * lib/isnan.c: Consider the USE_FLOAT macro.
60579         * m4/isnanf.m4: New file.
60580
60581 2007-04-06  Bruno Haible  <bruno@clisp.org>
60582
60583         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60584         (Link): New section.
60585
60586         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60587
60588 2007-04-06  Bruno Haible  <bruno@clisp.org>
60589
60590         Assume the 'long double' type.
60591         * m4/longdouble.m4: Remove file.
60592         * config/srclist.txt: Don't mention longdouble.m4.
60593         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60594         * lib/float+.h: Likewise.
60595         * lib/frexp.c: Likewise.
60596         * lib/printf-args.h: Likewise.
60597         * lib/printf-args.c: Likewise.
60598         * lib/printf-frexp.c: Likewise.
60599         * lib/printf-parse.c: Likewise.
60600         * lib/vasnprintf.c: Likewise.
60601         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60602         * m4/intl.m4: Likewise.
60603         * m4/isnanl.m4: Likewise.
60604         * m4/printf.m4: Likewise.
60605         * m4/printf-frexpl.m4: Likewise.
60606         * m4/vasnprintf.m4: Likewise.
60607         * modules/allocsa (Files): Remove m4/longdouble.m4.
60608         * modules/gettext (Files): Likewise.
60609         * modules/relocatable-prog-wrapper (Files): Likewise.
60610         * modules/vasnprintf (Files): Likewise.
60611         * modules/isnanl (Files): Likewise.
60612         (Include): Simplify.
60613         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60614         (Include): Simplify.
60615         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60616         (Include): Simplify.
60617         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60618         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60619         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60620         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60621         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60622         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60623         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60624         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60625         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60626         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60627         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60628         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60629         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60630         * tests/test-isnanl.c: Likewise.
60631         * tests/test-snprintf-posix.h: Likewise.
60632         * tests/test-sprintf-posix.h: Likewise.
60633         * tests/test-vasnprintf-posix.c: Likewise.
60634         * tests/test-vasnprintf-posix2.c: Likewise.
60635         * tests/test-vasprintf-posix.c: Likewise.
60636
60637 2007-04-06  Bruno Haible  <bruno@clisp.org>
60638
60639         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60640         * lib/math_.h [__DECC]: Include the overridden include file through
60641         #include_next, outside the double-inclusion guard.
60642         * lib/stdio_.h [__DECC]: Likewise.
60643         * lib/stdlib_.h [__DECC]: Likewise.
60644         * lib/string_.h [__DECC]: Likewise.
60645         * lib/time_.h [__DECC]: Likewise.
60646         * lib/wchar_.h [__DECC]: Likewise.
60647         * lib/wctype_.h [__DECC]: Likewise.
60648         * lib/inttypes_.h [__DECC]: Likewise.
60649         Reported by Albert Chin <china@thewrittenword.com> in
60650         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60651
60652 2007-04-04  Eric Blake  <ebb9@byu.net>
60653
60654         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60655         1.5.x.
60656
60657 2007-04-04  Bruno Haible  <bruno@clisp.org>
60658
60659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60660         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60661
60662 2007-04-04  Bruno Haible  <bruno@clisp.org>
60663
60664         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60665         results for "%010a" of Infinity and NaN.
60666         * tests/test-vasprintf-posix.c (test_function): Likewise.
60667         * tests/test-snprintf-posix.h (test_function): Likewise.
60668         * tests/test-sprintf-posix.h (test_function): Likewise.
60669         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60670         * tests/test-printf-posix.h (test_function): Likewise.
60671         * tests/test-fprintf-posix.out: Update.
60672         Needed for FreeBSD 6.1.
60673
60674 2007-04-04  Bruno Haible  <bruno@clisp.org>
60675
60676         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60677         directly used by the gnulib modules nor by gnulib-tool.
60678
60679 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60680
60681         * DEPENDENCIES: Give overall description of version dependency
60682         desirability.  Use more-typical names for apps.
60683         Add shell, coreutils, diffutils, grep, tar, gzip.
60684
60685 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60686
60687         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60688
60689 2007-04-04  Karl Berry  <karl@gnu.org>
60690
60691         * MODULES.html.sh (func_module): missing '.
60692
60693 2007-04-03  Bruno Haible  <bruno@clisp.org>
60694
60695         * modules/argmatch-tests (Makefile.am): New variable
60696         test_argmatch_LDADD.
60697         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60698         * modules/array-list-tests (Makefile.am): New variable
60699         test_array_list_LDADD.
60700         * modules/array-oset-tests (Makefile.am): New variable
60701         test_array_oset_LDADD.
60702         * modules/avltree-list-tests (Makefile.am): New variable
60703         test_avltree_list_LDADD.
60704         * modules/avltree-oset-tests (Makefile.am): New variable
60705         test_avltree_oset_LDADD.
60706         * modules/avltreehash-list-tests (Makefile.am): New variable
60707         test_avltreehash_list_LDADD.
60708         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60709         test_canonicalize_lgpl_LDADD.
60710         * modules/carray-list-tests (Makefile.am): New variable
60711         test_carray_list_LDADD.
60712         * modules/dirname-tests (Makefile.am): New variable
60713         test_dirname_LDADD.
60714         * modules/linked-list-tests (Makefile.am): New variable
60715         test_linked_list_LDADD.
60716         * modules/linkedhash-list-tests (Makefile.am): New variable
60717         test_linkedhash_list_LDADD.
60718         * modules/rbtree-list-tests (Makefile.am): New variable
60719         test_rbtree_list_LDADD.
60720         * modules/rbtree-oset-tests (Makefile.am): New variable
60721         test_rbtree_oset_LDADD.
60722         * modules/rbtreehash-list-tests (Makefile.am): New variable
60723         test_rbtreehash_list_LDADD.
60724         * modules/xvasprintf-tests (Makefile.am): New variable
60725         test_xvasprintf_LDADD.
60726         Reported by Eric Blake.
60727
60728 2007-04-03  Eric Blake  <ebb9@byu.net>
60729
60730         * DEPENDENCIES: Weaken m4 requirements.
60731
60732 2007-04-03  Bruno Haible  <bruno@clisp.org>
60733
60734         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60735         * modules/isnanl-tests (configure.ac): Likewise.
60736
60737 2007-04-03  Ben Pfaff  <blp@gnu.org>
60738
60739         * modules/iconv_open: Add $(srcdir)/ to source directory
60740         references in Makefile fragments that call gperf, to fix VPATH
60741         builds.
60742
60743 2007-04-03  Bruno Haible  <bruno@clisp.org>
60744
60745         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60746         * lib/ldexpl.c: Undo last change.
60747
60748 2007-04-03  Bruno Haible  <bruno@clisp.org>
60749
60750         * modules/printf-frexpl (Depends-on): Undo last change.
60751         (Files): Add m4/ldexpl.m4.
60752
60753 2007-04-03  Bruno Haible  <bruno@clisp.org>
60754
60755         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60756         * modules/isnanl (Link): New section.
60757
60758         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60759         * modules/frexp (Link): New section.
60760
60761         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60762         * modules/frexpl (Link): New section.
60763
60764         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60765         * modules/ldexpl (Link): New section.
60766
60767 2007-04-03  Bruno Haible  <bruno@clisp.org>
60768
60769         * modules/TEMPLATE-EXTENDED: New file.
60770         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60771
60772 2007-04-03  Bruno Haible  <bruno@clisp.org>
60773
60774         * DEPENDENCIES: New file.
60775         Suggested by Simon Josefsson.
60776
60777 2007-04-03  Bruno Haible  <bruno@clisp.org>
60778
60779         * doc/gnulib.texi: Escape @.
60780
60781 2007-04-03  James Youngman  <jay@gnu.org>
60782         and Paul Eggert  <eggert@cs.ucla.edu>
60783
60784         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60785         birthtime on all systems that have birthtime, not just those which
60786         use st_birthtimensec rather than st_birthtim.  Putting zero in
60787         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60788         that the birth time is not available for files on an NFS mount.
60789
60790 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60791
60792         * modules/memxor: Move back from crypto/, suggested by Bruno.
60793         * modules/crypto/hmac-sha1: Fix memxor dependency.
60794
60795         * modules/crypto/gc: Moved from ../.
60796
60797 2007-04-02  Eric Blake  <ebb9@byu.net>
60798
60799         * lib/ldexpl.c (includes): Avoid libm.
60800
60801         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60802
60803 2007-04-02  Bruno Haible  <bruno@clisp.org>
60804
60805         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60806         on IRIX.
60807
60808 2007-04-02  Bruno Haible  <bruno@clisp.org>
60809
60810         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60811         x86 or x86_64 platforms running MacOS X.
60812         Reported by Ryan Schmidt <@ryandesign.com>.
60813
60814 2007-04-02  Bruno Haible  <bruno@clisp.org>
60815
60816         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60817         i386.
60818
60819 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60820
60821         * modules/crypto/arcfour: Moved from ../.
60822         * modules/crypto/arcfour-tests: Moved from ../.
60823         * modules/crypto/arctwo: Moved from ../.
60824         * modules/crypto/arctwo-tests: Moved from ../.
60825         * modules/crypto/des: Moved from ../.
60826         * modules/crypto/des-tests: Moved from ../.
60827         * modules/crypto/gc-arcfour: Moved from ../.
60828         * modules/crypto/gc-arcfour-tests: Moved from ../.
60829         * modules/crypto/gc-arctwo: Moved from ../.
60830         * modules/crypto/gc-arctwo-tests: Moved from ../.
60831         * modules/crypto/gc-des: Moved from ../.
60832         * modules/crypto/gc-des-tests: Moved from ../.
60833         * modules/crypto/gc-hmac-md5: Moved from ../.
60834         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60835         * modules/crypto/gc-hmac-sha1: Moved from ../.
60836         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60837         * modules/crypto/gc-md2: Moved from ../.
60838         * modules/crypto/gc-md2-tests: Moved from ../.
60839         * modules/crypto/gc-md4: Moved from ../.
60840         * modules/crypto/gc-md4-tests: Moved from ../.
60841         * modules/crypto/gc-md5: Moved from ../.
60842         * modules/crypto/gc-md5-tests: Moved from ../.
60843         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60844         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60845         * modules/crypto/gc-random: Moved from ../.
60846         * modules/crypto/gc-rijndael: Moved from ../.
60847         * modules/crypto/gc-rijndael-tests: Moved from ../.
60848         * modules/crypto/gc-sha1: Moved from ../.
60849         * modules/crypto/gc-sha1-tests: Moved from ../.
60850         * modules/crypto/gc-tests: Moved from ../.
60851         * modules/crypto/hmac-md5: Moved from ../.
60852         * modules/crypto/hmac-md5-tests: Moved from ../.
60853         * modules/crypto/hmac-sha1: Moved from ../.
60854         * modules/crypto/hmac-sha1-tests: Moved from ../.
60855         * modules/crypto/md2: Moved from ../.
60856         * modules/crypto/md2-tests: Moved from ../.
60857         * modules/crypto/md4: Moved from ../.
60858         * modules/crypto/md4-tests: Moved from ../.
60859         * modules/crypto/md5: Moved from ../.
60860         * modules/crypto/md5-tests: Moved from ../.
60861         * modules/crypto/memxor: Moved from ../.
60862         * modules/crypto/rijndael: Moved from ../.
60863         * modules/crypto/rijndael-tests: Moved from ../.
60864         * modules/crypto/sha1: Moved from ../.
60865
60866 2007-03-30  James Youngman  <jay@gnu.org>
60867
60868         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60869         rename() to change the ctime of a file (because ctime is unaffected
60870         by rename on jfs2 on AIX 5.1).
60871         (main): Start by doing cleanup, in case a previous run failed leaving
60872         test files behind.
60873
60874 2007-03-31  Bruno Haible  <bruno@clisp.org>
60875
60876         Support old proprietary implementations of iconv.
60877         * modules/iconv_open: New file.
60878         * lib/iconv_.h: New file.
60879         * m4/iconv_h.m4: New file.
60880         * lib/iconv_open.c: New file.
60881         * lib/iconv_open-aix.gperf: New file.
60882         * lib/iconv_open-hpux.gperf: New file.
60883         * lib/iconv_open-irix.gperf: New file.
60884         * lib/iconv_open-osf.gperf: New file.
60885         * m4/iconv_open.m4: New file.
60886         * modules/linebreak (Depends-on): Add iconv_open.
60887         * modules/striconv (Depends-on): Likewise.
60888         * modules/striconveh (Depends-on): Likewise.
60889         * modules/unicodeio (Depends-on): Likewise.
60890         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60891         (iconv_t)(-1).
60892         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60893         conversion if cd is (iconv_t)(-1).
60894         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60895         is not possible.
60896
60897 2007-03-31  Bruno Haible  <bruno@clisp.org>
60898
60899         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60900         work on Solaris either. Protect also second use of "autodetect_jp".
60901
60902 2007-03-31  Bruno Haible  <bruno@clisp.org>
60903
60904         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60905         the function is not present.
60906
60907 2007-03-31  Bruno Haible  <bruno@clisp.org>
60908
60909         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60910         the function is not present.
60911
60912 2007-03-31  Bruno Haible  <bruno@clisp.org>
60913
60914         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60915         a bug in HP-UX iconv_open().
60916
60917 2007-03-31  Bruno Haible  <bruno@clisp.org>
60918
60919         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60920         (Mathematics <math.h>): New section, add fpieee.
60921         (Input/output <stdio.h>): Add fseterr.
60922         (Mathematics <math.h>): New section, add printf-frexp.
60923         (Container data structures): Add sublist.
60924         (Core language properties): Add fpucw, inline.
60925         (Functions for greatest-width integer types <inttypes.h>): Add
60926         imaxabs, imaxdiv, inttypes.
60927         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60928         isnanl-nolibm, ldexp.
60929         (Mathematics <math.h>): New section, add printf-frexpl.
60930         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60931         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60932         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60933         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60934         (Unicode string functions): Add unistr/u*-mbtoucr.
60935         (Java): Add javacomp-script, javaexec-script.
60936         (C#): Add csharpcomp-script, csharpexec-script.
60937         (Support for building libraries and executables): Add havelib,
60938         relocatable-*.
60939         (Support for maintaining and releasing projects): Renamed from
60940         'Support for maintaining and release projects'. Add announce-gen.
60941
60942 2007-03-31  Bruno Haible  <bruno@clisp.org>
60943
60944         * README: Talk primarily about git.
60945         (git and CVS): Renamed from CVS.
60946         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60947         gnulib is available through git.
60948         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60949
60950 2007-03-30  Bruno Haible  <bruno@clisp.org>
60951
60952         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60953         * lib/poll_.h: Likewise.
60954         * lib/stat_.h: Likewise.
60955         * lib/sys_time_.h: Likewise.
60956         * lib/sysexit_.h: Likewise.
60957         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60958         * lib/stdbool_.h: Likewise.
60959         * lib/byteswap_.h: Add double-inclusion guard.
60960
60961 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60962
60963         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60964
60965 2007-03-30  Karl Berry  <karl@gnu.org>
60966
60967         * config/srclist-update: double space after USA in the license
60968         substitution, since that's how it's usually (?) written.
60969
60970 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60971
60972         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60973         reported by Bruno Haible.
60974
60975 2007-03-29  Bruno Haible  <bruno@clisp.org>
60976
60977         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60978         a bug in AIX iconv().
60979
60980 2007-03-29  Bruno Haible  <bruno@clisp.org>
60981
60982         * modules/ldexpl-tests: New file.
60983         * tests/test-ldexpl.c: New file.
60984
60985 2007-03-29  Bruno Haible  <bruno@clisp.org>
60986
60987         * lib/ldexpl.c: Include fpucw.h.
60988         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60989         multiplication.
60990         * modules/ldexpl (Depends-on): Add fpucw.
60991
60992 2007-03-29  Bruno Haible  <bruno@clisp.org>
60993
60994         * modules/ldexpl: New file.
60995         * m4/ldexpl.m4: New file.
60996         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60997         set.
60998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60999         REPLACE_LDEXPL.
61000         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61001         REPLACE_LDEXPL.
61002         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61003         gl_FUNC_LDEXPL_WORKS.
61004         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61005         * modules/mathl (Files): Remove lib/ldexpl.c.
61006         (Depends-on): Add ldexpl.
61007
61008 2007-03-29  Bruno Haible  <bruno@clisp.org>
61009
61010         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61011
61012 2007-03-29  Bruno Haible  <bruno@clisp.org>
61013
61014         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61015         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61016         and possibly also HP-UX.
61017         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61018         work on AIX, IRIX, HP-UX, OSF/1.
61019         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61020         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61021         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61022         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61023         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61024         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61025
61026 2007-03-29  Bruno Haible  <bruno@clisp.org>
61027
61028         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61029
61030 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61031
61032         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61033         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61034
61035 2007-03-29  Eric Blake  <ebb9@byu.net>
61036
61037         * lib/acl-internal.h: Remove redundant include.
61038         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61039         Cygwin when a file is locked.
61040
61041 2007-03-29  Bruno Haible  <bruno@clisp.org>
61042
61043         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61044         file.
61045         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61046
61047 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61048
61049         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61050         try to remove a parent directory if the child couldn't be removed
61051         (except for the first rmdir, which could fail because the child
61052         doesn't exist).  Problem reported by Jeff Blaine in
61053         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61054
61055 2007-03-28  Bruno Haible  <bruno@clisp.org>
61056
61057         * lib/striconveh.c (utf8conv_carefully): New function.
61058         (mem_cd_iconveh_internal): Invoke it.
61059
61060 2007-03-28  Bruno Haible  <bruno@clisp.org>
61061
61062         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61063         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61064         input.
61065         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61066         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61067         unistr/u8-uctomb.
61068
61069 2007-03-28  Bruno Haible  <bruno@clisp.org>
61070
61071         * modules/unistr/u8-mbtoucr: New file.
61072         * lib/unistr/u8-mbtoucr.c: New file.
61073         * modules/unistr/u16-mbtoucr: New file.
61074         * lib/unistr/u16-mbtoucr.c: New file.
61075         * modules/unistr/u16-mbtoucr: New file.
61076         * lib/unistr/u16-mbtoucr.c: New file.
61077         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61078
61079 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61080             Bruno Haible  <bruno@clisp.org>
61081
61082         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61083         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61084         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61085
61086         * m4/stdio_h.m4: Add stubs for vasprintf too.
61087
61088         * modules/stdio: Support vasprintf in sed command.
61089
61090         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61091         vasprintf.h.  Add stdio module indicator.
61092
61093         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61094         vasprintf.h.
61095
61096         * lib/vasprintf.h: File removed.
61097
61098         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61099         * lib/vasprintf.c: Ditto.
61100         * lib/xvasprintf.c: Ditto.
61101         * tests/test-vasprintf-posix.c: Ditto.
61102         * tests/test-vasprintf.c: Ditto.
61103
61104 2007-03-27  Bruno Haible  <bruno@clisp.org>
61105
61106         Make vasnprintf multithread-safe.
61107         * lib/vasnprintf.c (decimal_point_char): New function.
61108         (VASNPRINTF): Use it.
61109         Suggested by Simon Josefsson.
61110
61111 2007-03-27  Eric Blake  <ebb9@byu.net>
61112
61113         Support sub-second birthtime on cygwin.
61114         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61115         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61116         (get_stat_birthtime): Also work with st_birthtim.
61117
61118 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61119
61120         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61121         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61122         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61123         (get_stat_birthtime_ns): Simplify compile-time tests.
61124         (get_stat_birthtime): Change the API to look like
61125         get_stat_mtime etc., except return a negative tv_nsec on error.
61126         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61127         Don't check for "spare" fields.
61128         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61129         or for struct stat.st_birthtime, as these tests aren't used.
61130         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61131
61132 2007-03-27  Bruno Haible  <bruno@clisp.org>
61133
61134         * lib/stat-time.h: Include <sys/stat.h>.
61135
61136 2007-03-27  James Youngman  <jay@gnu.org>
61137
61138         * lib/stat-time.h (get_stat_birthtime): New function for
61139           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61140         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61141           and its variants.
61142         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61143         * modules/stat-time-test: New file.
61144         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61145
61146 2007-03-26  Bruno Haible  <bruno@clisp.org>
61147
61148         Better support of signalling NaNs.
61149         * lib/atanl.c: Include isnanl.h.
61150         (atanl): Perform test for NaN at the beginning of the function and
61151         through a call to isnanl.
61152         * lib/cosl.c: Include isnanl.h.
61153         (cosl): Perform test for NaN at the beginning of the function and
61154         through a call to isnanl.
61155         * lib/ldexpl.c: Include isnanl.h.
61156         (ldexpl): Perform test for NaN through a call to isnanl.
61157         * lib/logl.c: Include isnanl.h.
61158         (logl): Perform test for NaN at the beginning of the function and
61159         through a call to isnanl.
61160         * lib/sinl.c: Include isnanl.h.
61161         (sinl): Perform test for NaN at the beginning of the function and
61162         through a call to isnanl.
61163         * lib/sqrtl.c: Include isnanl.h.
61164         (sqrtl): Perform test for NaN at the beginning of the function and
61165         through a call to isnanl.
61166         * lib/tanl.c: Include isnanl.h.
61167         (tanl): Perform test for NaN at the beginning of the function and
61168         through a call to isnanl.
61169         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61170         * modules/mathl (Depends-on): Add isnanl.
61171
61172 2007-03-26  Eric Blake  <ebb9@byu.net>
61173
61174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61175         regression in logic sense of previous patch.
61176
61177 2007-03-26  Bruno Haible  <bruno@clisp.org>
61178
61179         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61180         unportable shell command "if ! ...".
61181         Reported by Ralf Wildenhues.
61182
61183 2007-03-25  Bruno Haible  <bruno@clisp.org>
61184
61185         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61186         <sysexits.h> file, and only add EX_CONFIG.
61187         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61188         absolute file name and whether it is sufficient. Substitute also
61189         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61190         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61191         ABSOLUTE_SYSEXITS_H into sysexits.h.
61192
61193 2007-03-25  Bruno Haible  <bruno@clisp.org>
61194
61195         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61196         hints is NULL.
61197
61198 2007-03-25  Bruno Haible  <bruno@clisp.org>
61199
61200         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61201         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61202
61203 2007-03-25  Bruno Haible  <bruno@clisp.org>
61204
61205         * lib/vasnprintf.c: Include langinfo.h.
61206         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61207         multithread-safe.
61208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61210         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61211         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61213         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61214         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61216         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61217         Reported by Simon Josefsson.
61218
61219 2007-03-25  Bruno Haible  <bruno@clisp.org>
61220
61221         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61222         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61223         * modules/vasnprintf (Depends-on): Add stdint.
61224
61225 2007-03-25  Bruno Haible  <bruno@clisp.org>
61226
61227         * modules/fpieee: New file.
61228         * m4/fpieee.m4: New file.
61229         * modules/isnan-nolibm (Depends-on): Add fpieee.
61230         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61231         * modules/isnanl (Depends-on): Add fpieee.
61232
61233 2007-03-25  Bruno Haible  <bruno@clisp.org>
61234
61235         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61236
61237 2007-03-25  Bruno Haible  <bruno@clisp.org>
61238
61239         Avoid test failures on IRIX 6.5.
61240         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61241         (main): Use it.
61242         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61243         macros.
61244         (main): Use them.
61245
61246 2007-03-25  Bruno Haible  <bruno@clisp.org>
61247
61248         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61249         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61250         exists but doesn't work.
61251         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61252         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61254         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61255         math.h.
61256
61257 2007-03-25  Bruno Haible  <bruno@clisp.org>
61258
61259         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61260         returns inf. Needed on IRIX 6.5.
61261
61262 2007-03-25  Bruno Haible  <bruno@clisp.org>
61263
61264         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61265         (main): Use isnanl instead of x != x idiom.
61266         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61267
61268         * tests/test-frexp.c: Include isnan.h.
61269         (main): Use isnan instead of x != x idiom.
61270         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61271
61272 2007-03-25  Bruno Haible  <bruno@clisp.org>
61273
61274         * tests/test-frexp.c (NaN): New function/macro.
61275         (main): Use it instead of 0.0 / 0.0.
61276         * tests/test-isnan.c (NaN): New function/macro.
61277         (main): Use it instead of 0.0 / 0.0.
61278         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61279         (test_function): Use it instead of 0.0 / 0.0.
61280         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61281         (test_function): Use it instead of 0.0 / 0.0.
61282         * tests/test-snprintf-posix.h (NaN): New function/macro.
61283         (test_function): Use it instead of 0.0 / 0.0.
61284         * tests/test-sprintf-posix.h (NaN): New function/macro.
61285         (test_function): Use it instead of 0.0 / 0.0.
61286         * tests/test-fprintf-posix.h (NaN): New function/macro.
61287         (test_function): Use it instead of 0.0 / 0.0.
61288         * tests/test-printf-posix.h (NaN): New function/macro.
61289         (test_function): Use it instead of 0.0 / 0.0.
61290
61291         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61292
61293 2007-03-25  Bruno Haible  <bruno@clisp.org>
61294
61295         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61296
61297 2007-03-25  Bruno Haible  <bruno@clisp.org>
61298
61299         * lib/regexec.c (merge_state_with_log): Make static.
61300
61301 2007-03-25  Bruno Haible  <bruno@clisp.org>
61302
61303         * lib/trigl.c (kernel_rem_pio2): Make static.
61304
61305 2007-03-25  Bruno Haible  <bruno@clisp.org>
61306
61307         * lib/sincosl.c (sincosl_table): Make static.
61308
61309 2007-03-25  Bruno Haible  <bruno@clisp.org>
61310
61311         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61312         if the compiler does not support C99.
61313
61314 2007-03-25  Bruno Haible  <bruno@clisp.org>
61315
61316         * modules/time (Makefile.am): Ensure all rule action lines start with a
61317         tab.
61318
61319 2007-03-24  Bruno Haible  <bruno@clisp.org>
61320
61321         * modules/tsearch-tests: New file.
61322         * tests/test-tsearch.sh: New file.
61323         * tests/test-tsearch.c: New file, mostly copied from glibc.
61324
61325         * modules/search-tests: New file.
61326         * tests/test-search.c: New file.
61327
61328         * modules/search: New file.
61329         * lib/search_.h: New file, incorporating lib/tsearch.h.
61330         * m4/search_h.m4: New file.
61331         * lib/tsearch.h: Remove file.
61332         * lib/tsearch.c: Include search.h instead of tsearch.h.
61333         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61334         HAVE_TSEARCH.
61335         * modules/tsearch (Files): Remove lib/tsearch.h.
61336         (Depends-on): Add search.
61337         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61338         (Include): Change tsearch.h into search.h.
61339
61340 2007-03-24  Bruno Haible  <bruno@clisp.org>
61341
61342         * modules/fpucw: New file.
61343         * lib/fpucw.h: New file.
61344         * lib/frexp.c: Include fpucw.h.
61345         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61346         (FUNC): Use them.
61347         * lib/printf-frexp.c: Include fpucw.h.
61348         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61349         (FUNC): Use them.
61350         * lib/vasnprintf.c: Include fpucw.h.
61351         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61352         'long double' calculations.
61353         * tests/test-frexpl.c: Include fpucw.h.
61354         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61355         * tests/test-printf-frexpl.c: Include fpucw.h.
61356         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61357         * modules/frexpl (Depends-on): Add fpucw.
61358         * modules/printf-frexpl (Depends-on): Likewise.
61359         * modules/fprintf-posix (Depends-on): Likewise.
61360         * modules/snprintf-posix (Depends-on): Likewise.
61361         * modules/sprintf-posix (Depends-on): Likewise.
61362         * modules/vasnprintf-posix (Depends-on): Likewise.
61363         * modules/vasprintf-posix (Depends-on): Likewise.
61364         * modules/vfprintf-posix (Depends-on): Likewise.
61365         * modules/vsnprintf-posix (Depends-on): Likewise.
61366         * modules/vsprintf-posix (Depends-on): Likewise.
61367         * modules/frexpl-tests (Depends-on): Likewise.
61368         * modules/printf-frexpl-tests (Depends-on): Likewise.
61369
61370 2007-03-24  Bruno Haible  <bruno@clisp.org>
61371
61372         * lib/float+.h: New file.
61373         * lib/isnan.c: Include float+.h.
61374         (SIZE): New macro.
61375         (FUNC): Compare only SIZE bytes of the value.
61376         * lib/vasnprintf.c: Include float+.h.
61377         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61378         SIZEOF_LDBL or SIZEOF_DBL bytes.
61379         * modules/isnan-nolibm (Files): Add lib/float+.h.
61380         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61381         * modules/isnanl (Files): Add lib/float+.h.
61382         * modules/vasnprintf (Files): Add lib/float+.h.
61383
61384 2007-03-24  Bruno Haible  <bruno@clisp.org>
61385
61386         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61387         include isnanl-nolibm.h.
61388
61389 2007-03-24  Bruno Haible  <bruno@clisp.org>
61390
61391         * tests/test-read-file.c (main): Don't produce spurious output for
61392         expected situations. Make the test fail if it encountered unexpected
61393         results.
61394
61395 2007-03-24  Bruno Haible  <bruno@clisp.org>
61396
61397         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61398         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61399
61400 2007-03-24  Bruno Haible  <bruno@clisp.org>
61401
61402         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61403
61404 2007-03-24  Bruno Haible  <bruno@clisp.org>
61405
61406         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61407         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61408
61409         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61410         * modules/utf8-ucs4: Turn into a symbolic link to module
61411         unistr/u8-mbtouc.
61412
61413         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61414         utf8-ucs4-unsafe.
61415         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61416         unistr/u8-mbtouc-unsafe.
61417
61418         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61419         * modules/utf16-ucs4: Turn into a symbolic link to module
61420         unistr/u16-mbtouc.
61421
61422         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61423         utf16-ucs4-unsafe.
61424         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61425         unistr/u16-mbtouc-unsafe.
61426
61427         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61428         * modules/ucs4-utf8: Turn into a symbolic link to module
61429         unistr/u8-ubtomb.
61430
61431         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61432         * modules/ucs4-utf16: Turn into a symbolic link to module
61433         unistr/u16-ubtomb.
61434
61435 2007-03-24  Bruno Haible  <bruno@clisp.org>
61436
61437         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61438         Enable the function only if HAVE_INLINE.
61439         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61440         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61441         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61442         Enable the function only if HAVE_INLINE.
61443         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61444         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61445         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61446         Enable the function only if HAVE_INLINE.
61447         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61448         Enable the function only if HAVE_INLINE.
61449         * modules/utf8-ucs4: Update.
61450         * modules/utf8-ucs4-unsafe: Update.
61451         * modules/utf16-ucs4: Update.
61452         * modules/utf16-ucs4-unsafe: Update.
61453         * modules/ucs4-utf8: Update.
61454         * modules/ucs4-utf16: Update.
61455
61456 2007-03-24  Bruno Haible  <bruno@clisp.org>
61457
61458         * lib/utf8-ucs4.h: Remove file.
61459         * lib/utf8-ucs4-unsafe.h: Remove file.
61460         * lib/utf16-ucs4.h: Remove file.
61461         * lib/utf16-ucs4-unsafe.h: Remove file.
61462         * lib/ucs4-utf8.h: Remove file.
61463         * lib/ucs4-utf16.h: Remove file.
61464         * lib/unistr.h: Include their previous contents.
61465         * m4/utf-ucs4.m4: Remove file.
61466         * m4/ucs4-utf.m4: Remove file.
61467         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61468         (Depends-on): Add unistr/base.
61469         (configure.ac): Remove gl_UTF_UCS4.
61470         (Makefile.am): Update.
61471         (Include): Change to unistr.h.
61472         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61473         (Depends-on): Add unistr/base.
61474         (configure.ac): Remove gl_UTF_UCS4.
61475         (Makefile.am): Update.
61476         (Include): Change to unistr.h.
61477         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61478         (Depends-on): Add unistr/base.
61479         (configure.ac): Remove gl_UTF_UCS4.
61480         (Makefile.am): Update.
61481         (Include): Change to unistr.h.
61482         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61483         (Depends-on): Add unistr/base.
61484         (configure.ac): Remove gl_UTF_UCS4.
61485         (Makefile.am): Update.
61486         (Include): Change to unistr.h.
61487         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61488         (Depends-on): Add unistr/base.
61489         (configure.ac): Remove gl_UCS4_UTF.
61490         (Makefile.am): Update.
61491         (Include): Change to unistr.h.
61492         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61493         (Depends-on): Add unistr/base.
61494         (configure.ac): Remove gl_UCS4_UTF.
61495         (Makefile.am): Update.
61496         (Include): Change to unistr.h.
61497         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61498         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61499         utf8-ucs4-unsafe.h.
61500         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61501         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61502         utf16-ucs4-unsafe.h.
61503         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61504         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61505         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61506         * lib/unistr/u8-strchr.c: Likewise.
61507         * lib/unistr/u8-strrchr.c: Likewise.
61508         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61509         * lib/unistr/u16-strchr.c: Likewise.
61510         * lib/unistr/u16-strrchr.c: Likewise.
61511         * lib/striconveh.c: Update.
61512         * lib/linebreak.c: Update.
61513
61514 2007-03-24  Bruno Haible  <bruno@clisp.org>
61515
61516         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61517         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61518
61519 2007-03-22  Bruno Haible  <bruno@clisp.org>
61520
61521         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61522
61523 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61524
61525         * MODULES.html.sh (File system functions): New module write-any-file.
61526         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61527         * m4/write-any-file.m4: New files.
61528
61529 2007-03-23  Eric Blake  <ebb9@byu.net>
61530
61531         * gnulib-tool: Rearrange space-tab sequences, since some editors
61532         like to eat them.
61533
61534 2007-03-23  Eric Blake  <ebb9@byu.net>
61535
61536         * lib/version-etc.c (version_etc_va): Update license wording to
61537         be more concise.  Recommended by Richard Stallman.
61538
61539 2007-03-22  Bruno Haible  <bruno@clisp.org>
61540
61541         * lib/poll.c (MSG_PEEK): New fallback definition.
61542
61543 2007-03-22  Bruno Haible  <bruno@clisp.org>
61544
61545         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61546         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61547         (main): Update.
61548         Fixes a compilation error on BeOS.
61549
61550 2007-03-22  Bruno Haible  <bruno@clisp.org>
61551
61552         * modules/frexpl-tests: New file.
61553         * tests/test-frexpl.c: New file.
61554
61555         * modules/frexpl: New file.
61556         * m4/frexpl.m4: New file.
61557         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61558         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61560         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61561         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61562         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61563
61564 2007-03-22  Bruno Haible  <bruno@clisp.org>
61565
61566         * lib/frexpl.c: Share code with lib/frexp.c.
61567         * modules/mathl (Files): Add lib/frexp.c.
61568         (Depends-on): Add isnanl-nolibm.
61569
61570 2007-03-22  Bruno Haible  <bruno@clisp.org>
61571
61572         * modules/printf-frexp (Files): Add m4/frexp.m4.
61573         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61574         only if the found frexp function actually works.
61575
61576 2007-03-22  Bruno Haible  <bruno@clisp.org>
61577
61578         * lib/frexp.c: Remove older implementation that uses divisions.
61579
61580 2007-03-21  Bruno Haible  <bruno@clisp.org>
61581
61582         * modules/frexp-tests: New file.
61583         * tests/test-frexp.c: New file.
61584
61585         * modules/frexp: New file.
61586         * lib/frexp.c: New file.
61587         * m4/frexp.m4: New file.
61588         * lib/math_.h (frexp): New declaration.
61589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61590         REPLACE_FREXP.
61591         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61592
61593 2007-03-21  Bruno Haible  <bruno@clisp.org>
61594
61595         * modules/isnanl-tests: New file.
61596         * tests/test-isnanl.c: New file.
61597
61598         * modules/isnanl: New file.
61599         * lib/isnanl.h: New file.
61600         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61601         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61602         gl_FUNC_ISNANL_WORKS.
61603         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61604         New macros.
61605
61606 2007-03-21  Bruno Haible  <bruno@clisp.org>
61607
61608         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61609         lib/isnanl.h.
61610         (Include): Update.
61611         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61612         * lib/vasnprintf.c: Update.
61613         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61614         tests/test-isnanl.h, remove tests/test-isnanl.c.
61615         (Makefile.am): Update.
61616         * tests/test-isnanl-nolibm.c: New file.
61617         * tests/test-isnanl.h: New file.
61618         * tests/test-isnanl.c: Remove file.
61619
61620 2007-03-21  Jim Meyering  <jim@meyering.net>
61621
61622         When trying to open ".", treat ESTALE like EACCES.
61623         * lib/savewd.c (savewd_save): Resort to forking not just upon
61624         failure with EACCES, but also when errno is ESTALE.
61625
61626 2007-03-20  Bruno Haible  <bruno@clisp.org>
61627
61628         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61629         Needed on AIX 5.1. Reported by Matthew Woehlke.
61630
61631 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61632
61633         Suggestions by Bruno Haible:
61634         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61635         our own.
61636         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61637         * modules/acl (Depends-on): Add gettext.
61638
61639 2007-03-19  Bruno Haible  <bruno@clisp.org>
61640
61641         * modules/iconvme: Remove file.
61642         * lib/iconvme.h: Remove file.
61643         * lib/iconvme.c: Remove file.
61644         * m4/iconvme.m4: Remove file.
61645
61646 2007-03-19  Bruno Haible  <bruno@clisp.org>
61647
61648         * doc/relocatable-maint.texi: Break long shell script line.
61649         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61650
61651 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61652
61653         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61654         handle file_has_acl.
61655         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61656         * lib/acl.c: Move header inclusions and related macro defns into
61657         lib/acl-internal.h.
61658         (S_ISLNK): Remove defn, since that's now done for us.
61659         (file_has_acl): Move to lib/file-has-acl.c.
61660         Call acl_trivial if available.  This is the crucial part of the fix.
61661         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61662         shared within the library.  Rewrite a bit, partly to make it compatible
61663         with the GNU coding style.
61664         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61665         Remove unnecessary double-quotes.
61666         Don't test for acl_to_text; the build will catch that.
61667         Replace acl_entries if it doesn't exist and it is needed.
61668         Check for -lsec and acl_trivial (as used on Solaris 10).
61669         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61670         lib/file-has-acl.c.
61671         (Depends-on): Add sys_stat, for S_ISLNK.
61672
61673 2007-03-19  Ben Pfaff  <blp@gnu.org>
61674
61675         * doc/gnulib.texi: Fix typos.
61676         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61677
61678 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61679
61680         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61681         If size is zero here, buf must be zero.
61682
61683 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61684
61685         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61686         <bruno@clisp.org>.
61687
61688 2007-03-18  Bruno Haible  <bruno@clisp.org>
61689
61690         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61691         Suggested by Eric Blake.
61692
61693 2007-03-18  Ben Pfaff  <blp@gnu.org>
61694
61695         * doc/relocatable.texi: Recommend using as prefix a directory
61696         that does not exist and will never be created.  Based on
61697         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61698         and others.
61699
61700 2007-03-17  Bruno Haible  <bruno@clisp.org>
61701
61702         * lib/fchownat.c: Include lchown.h.
61703
61704 2007-03-17  Bruno Haible  <bruno@clisp.org>
61705
61706         Fix endless loop when the given allocated size was > INT_MAX.
61707         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61708         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61709         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61710         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61711         * lib/sprintf.c (sprintf): Likewise.
61712
61713 2007-03-17  Bruno Haible  <bruno@clisp.org>
61714
61715         * tests/test-argp-2.sh (func_compare): Output a context diff.
61716
61717 2007-03-17  Bruno Haible  <bruno@clisp.org>
61718
61719         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61720         locale's decimal-point character.
61721
61722 2007-03-17  Bruno Haible  <bruno@clisp.org>
61723
61724         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61725         before comparing it. Needed because on some platforms (e.g. x86) a
61726         'long double' occupies less bytes than sizeof (long double).
61727
61728 2007-03-17  Bruno Haible  <bruno@clisp.org>
61729
61730         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61731         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61732         * tests/test-getaddrinfo.c (simple): Likewise.
61733         * tests/test-read-file.c (main): Likewise.
61734
61735 2007-03-17  Bruno Haible  <bruno@clisp.org>
61736
61737         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61738
61739 2007-03-17  Bruno Haible  <bruno@clisp.org>
61740
61741         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61742         unused variable.
61743
61744 2007-03-17  Bruno Haible  <bruno@clisp.org>
61745
61746         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61747         * tests/test-c-strncasecmp.c: Likewise.
61748
61749 2007-03-17  Bruno Haible  <bruno@clisp.org>
61750
61751         * modules/stdlib (Depends-on): Add unistd.
61752         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61753         Needed for MacOS X 10.3.
61754
61755 2007-03-17  Bruno Haible  <bruno@clisp.org>
61756
61757         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61758
61759 2007-03-17  Bruno Haible  <bruno@clisp.org>
61760
61761         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61762
61763 2007-03-17  Bruno Haible  <bruno@clisp.org>
61764
61765         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61766         to reflect files copied from gnulib (with or without modifications).
61767         Suggested by Jim Meyering.
61768
61769 2007-03-17  Eric Blake  <ebb9@byu.net>
61770
61771         * NEWS: Document stdlib change from 2007-02-18.
61772
61773 2007-03-17  Jim Meyering  <jim@meyering.net>
61774
61775         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61776         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61777         someone uses a name containing shell meta-characters.
61778         Reported by Alfred M. Szmidt.
61779
61780         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61781
61782 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61783
61784         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61785         and copy gettext configuration files only if configure.ac contains
61786         a use of AM_GNU_GETTEXT_VERSION.
61787
61788 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61789
61790         * build-aux/bootstrap (gnulib_name): New variable.
61791         (gnulib_tool_options): Use it.
61792
61793 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61794
61795         * tests/test-des.c: Use new namespace.
61796
61797 2007-03-15  Bruno Haible  <bruno@clisp.org>
61798
61799         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61800         Reported by James Youngman <jay@gnu.org>.
61801
61802 2007-03-15  Bruno Haible  <bruno@clisp.org>
61803
61804         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61805         declared prototype. Needed with cc on OSF/1 5.1.
61806
61807 2007-03-15  Bruno Haible  <bruno@clisp.org>
61808
61809         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61810         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61811         (struct gl_list_implementation): Add dispose_fn argument to the
61812         'create_empty', 'create' methods.
61813         (struct gl_list_impl_base): Add field 'dispose_fn'.
61814         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61815         argument.
61816         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61817         dispose_fn argument.
61818         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61819         dispose_fn on the dropped values.
61820         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61821         dispose_fn argument.
61822         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61823         dropped values.
61824         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61825         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61826         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61827         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61828         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61829         argument.
61830         (gl_tree_list_free): Call dispose_fn on the dropped values.
61831         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61832         the dropped values.
61833         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61834         Add dispose_fn argument.
61835         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61836         Call dispose_fn on the dropped values.
61837         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61838         Add dispose_fn argument.
61839         (gl_sublist_create): Initialize the 'dispose_fn' field.
61840         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61841         * tests/test-array_list.c (main): Update.
61842         * tests/test-carray_list.c (main): Update.
61843         * tests/test-avltree_list.c (main): Update.
61844         * tests/test-rbtree_list.c (main): Update.
61845         * tests/test-avltreehash_list.c (main): Update.
61846         * tests/test-rbtreehash_list.c (main): Update.
61847         * tests/test-linked_list.c (main): Update.
61848         * tests/test-linkedhash_list.c (main): Update.
61849         * tests/test-array_oset.c (main): Update.
61850
61851 2007-03-15  Bruno Haible  <bruno@clisp.org>
61852
61853         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61854         (gl_oset_create_empty): Add dispose_fn argument.
61855         (struct gl_oset_implementation): Add dispose_fn argument to
61856         'create_empty' method.
61857         (struct gl_oset_impl_base): Add dispose_fn field.
61858         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61859         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61860         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61861         values.
61862         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61863         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61864         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61865         dropped value.
61866         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61867         dropped value.
61868         * tests/test-array_oset.c (main): Update.
61869         * tests/test-avltree_oset.c (main): Update.
61870         * tests/test-rbtree_oset.c (main): Update.
61871         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61872
61873 2007-03-13  Bruno Haible  <bruno@clisp.org>
61874
61875         * tests/test-stdbool.c (i): Update after last patch.
61876
61877 2007-03-12  Bruno Haible  <bruno@clisp.org>
61878
61879         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61880         the iswprint macro. Needed on Solaris 2.5.1.
61881
61882 2007-03-12  Bruno Haible  <bruno@clisp.org>
61883
61884         * tests/test-printf-frexp.c (main): Declare x as volatile.
61885
61886 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61887
61888         * doc/gnulib.texi (Build robot for gnulib): New section.
61889
61890 2007-03-12  Jim Meyering  <jim@meyering.net>
61891
61892         * build-aux/bootstrap: New file.
61893         * build-aux/bootstrap.conf: New file, from coreutils.
61894
61895 2007-03-11  Bruno Haible  <bruno@clisp.org>
61896
61897         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61898
61899 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61900
61901         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61902         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61903         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61904
61905 2007-03-11  Bruno Haible  <bruno@clisp.org>
61906
61907         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61908         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61909
61910 2007-03-11  Bruno Haible  <bruno@clisp.org>
61911
61912         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61913         formula. Needed for SunPRO C 5.0.
61914
61915 2007-03-11  Bruno Haible  <bruno@clisp.org>
61916
61917         * modules/long-options (Depends-on): Add getopt.
61918
61919 2007-03-11  Bruno Haible  <bruno@clisp.org>
61920
61921         * modules/modechange (Depends-on): Add stdbool.
61922
61923 2007-03-11  Bruno Haible  <bruno@clisp.org>
61924
61925         * modules/i-ring (Depends-on): Add stdbool.
61926
61927 2007-03-11  Bruno Haible  <bruno@clisp.org>
61928
61929         * modules/gc-des (Depends-on): Add stdbool.
61930
61931 2007-03-11  Bruno Haible  <bruno@clisp.org>
61932
61933         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61934
61935 2007-03-11  Bruno Haible  <bruno@clisp.org>
61936
61937         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61938
61939 2007-03-11  Bruno Haible  <bruno@clisp.org>
61940
61941         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61942
61943 2007-03-11  Bruno Haible  <bruno@clisp.org>
61944
61945         * lib/vasnprintf.c (sprintf): Undefine.
61946
61947 2007-03-11  Bruno Haible  <bruno@clisp.org>
61948
61949         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61950         initializers in SunPRO C and Compaq C compilers.
61951
61952 2007-03-11  Bruno Haible  <bruno@clisp.org>
61953
61954         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61955         decrementing code ANSI C compliant.
61956
61957 2007-03-11  Bruno Haible  <bruno@clisp.org>
61958
61959         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61960         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61961
61962 2007-03-11  Bruno Haible  <bruno@clisp.org>
61963
61964         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61965         <stdbool.h> substitute doesn't pass.
61966
61967 2007-03-11  Bruno Haible  <bruno@clisp.org>
61968
61969         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61970
61971 2007-03-11  Bruno Haible  <bruno@clisp.org>
61972
61973         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61974         script, for submission to autobuild.josefsson.org.
61975
61976 2007-03-10  Bruno Haible  <bruno@clisp.org>
61977
61978         * modules/canonicalize-lgpl-tests: New file.
61979         * tests/test-canonicalize-lgpl.sh: New file.
61980         * tests/test-canonicalize-lgpl.c: New file.
61981
61982         * modules/c-strcase-tests: New file.
61983         * tests/test-c-strcase.sh: New file.
61984         * tests/test-c-strcasecmp.c: New file.
61985         * tests/test-c-strncasecmp.c: New file.
61986
61987         * modules/atexit-tests: New file.
61988         * tests/test-atexit.sh: New file.
61989         * tests/test-atexit.c: New file.
61990
61991 2007-03-10  Bruno Haible  <bruno@clisp.org>
61992
61993         * tests/test-binary-io.sh: Use temporary filenames that are not so
61994         likely to clash with those of other tests (in a parallel make).
61995         * tests/test-binary-io.c: Likewise.
61996
61997 2007-03-10  Bruno Haible  <bruno@clisp.org>
61998
61999         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62000         fallback; use #error instead.
62001         Suggested by Simon Josefsson.
62002
62003 2007-03-10  Bruno Haible  <bruno@clisp.org>
62004
62005         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62006         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62007         first and the last.
62008
62009 2007-03-10  Bruno Haible  <bruno@clisp.org>
62010
62011         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62012
62013 2007-03-10  Bruno Haible  <bruno@clisp.org>
62014
62015         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62016         "make distcheck".
62017         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62018         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62019         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62020
62021 2007-03-10  Bruno Haible  <bruno@clisp.org>
62022
62023         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62024         variable.
62025         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62026         variable.
62027
62028 2007-03-09  Eric Blake  <ebb9@byu.net>
62029         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62030
62031         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62032         types are not being provided by gnulib.
62033         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62034         types are supported.
62035
62036 2007-03-10  Bruno Haible  <bruno@clisp.org>
62037
62038         * lib/stdio_.h (__attribute__): New macro.
62039         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62040         vsprintf): Specify __attribute__ __format__ for GCC.
62041         Suggested by Eric Blake.
62042
62043 2007-03-09  Bruno Haible  <bruno@clisp.org>
62044
62045         * modules/printf-posix-tests: New file.
62046         * tests/test-printf-posix.sh: New file.
62047         * tests/test-printf-posix.c: New file.
62048
62049         * modules/printf-posix: New file.
62050         * lib/printf.c: New file.
62051         * m4/printf-posix-rpl.m4: New file.
62052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62053         REPLACE_PRINTF.
62054         * lib/stdio_.h (printf): New declaration.
62055         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62056         ____strfmon____): New macros.
62057         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62058         REPLACE_PRINTF.
62059
62060 2007-03-09  Bruno Haible  <bruno@clisp.org>
62061
62062         * tests/test-vasnprintf-posix2.sh: New file.
62063         * tests/test-vasnprintf-posix2.c: New file.
62064         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62065         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62066         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62067
62068         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62069         a locale dependent decimal point, rather than always '.'.
62070
62071 2007-03-09  Eric Blake  <ebb9@byu.net>
62072
62073         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62074         spite of platforms like Tandem/NSK that define it to -1.
62075
62076 2007-03-08  Bruno Haible  <bruno@clisp.org>
62077
62078         * modules/vprintf-posix-tests: New file.
62079         * tests/test-vprintf-posix.sh: New file.
62080         * tests/test-vprintf-posix.c: New file.
62081         * tests/test-printf-posix.h: New file.
62082
62083         * modules/vprintf-posix: New file.
62084         * lib/vprintf.c: New file.
62085         * m4/vprintf-posix.m4: New file.
62086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62087         REPLACE_VPRINTF.
62088         * lib/stdio_.h (vprintf): New declaration.
62089         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62090         REPLACE_VPRINTF.
62091
62092 2007-03-08  Bruno Haible  <bruno@clisp.org>
62093
62094         * modules/fprintf-posix-tests: New file.
62095         * tests/test-fprintf-posix.sh: New file.
62096         * tests/test-fprintf-posix.c: New file.
62097
62098         * modules/fprintf-posix: New file.
62099         * lib/fprintf.c: New file.
62100         * m4/fprintf-posix.m4: New file.
62101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62102         REPLACE_FPRINTF.
62103         * lib/stdio_.h (fprintf): New declaration.
62104         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62105         REPLACE_FPRINTF.
62106
62107 2007-03-08  Bruno Haible  <bruno@clisp.org>
62108
62109         * modules/vfprintf-posix-tests: New file.
62110         * tests/test-vfprintf-posix.sh: New file.
62111         * tests/test-vfprintf-posix.c: New file.
62112         * tests/test-fprintf-posix.h: New file.
62113         * tests/test-fprintf-posix.out: New file.
62114
62115         * modules/vfprintf-posix: New file.
62116         * lib/vfprintf.c: New file.
62117         * m4/vfprintf-posix.m4: New file.
62118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62119         REPLACE_VFPRINTF.
62120         * lib/stdio_.h (vfprintf): New declaration.
62121         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62122         REPLACE_VFPRINTF.
62123
62124 2007-03-08  Bruno Haible  <bruno@clisp.org>
62125
62126         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62127
62128 2007-03-08  Bruno Haible  <bruno@clisp.org>
62129
62130         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62131         instead of 'expr' invocations.
62132         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62133         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62134         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62135         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62136         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62137         Suggested by Paul Eggert.
62138
62139 2007-03-08  Bruno Haible  <bruno@clisp.org>
62140
62141         * modules/fseterr-tests: New file.
62142         * tests/test-fseterr.c: New file.
62143
62144         * modules/fseterr: New file.
62145         * lib/fseterr.h: New file.
62146         * lib/fseterr.c: New file.
62147
62148 2007-03-08  Bruno Haible  <bruno@clisp.org>
62149
62150         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62151         * lib/getopt_.h: Likewise.
62152         * lib/mbswidth.h: Likewise.
62153         * lib/setenv.h: Likewise.
62154         * lib/vasnprintf.h: Likewise.
62155         * lib/vasprintf.h: Likewise.
62156         * lib/verror.h: Likewise.
62157         * lib/xsetenv.h: Likewise.
62158         * lib/xvasprintf.h: Likewise.
62159
62160 2007-03-08  Jim Meyering  <jim@meyering.net>
62161
62162         * users.txt: Add parted.
62163
62164         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62165
62166 2007-03-07  Bruno Haible  <bruno@clisp.org>
62167
62168         * m4/printf.m4: Make the shell script snippets copy&pastable.
62169
62170 2007-03-02  Bruno Haible  <bruno@clisp.org>
62171
62172         * lib/netinet_in_.h: New file.
62173         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62174         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62175         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62176         (Depends-on): Add absolute-header.
62177         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62178         into netinet/in.h.
62179
62180 2007-03-03  Bruno Haible  <bruno@clisp.org>
62181
62182         * lib/sys_select_.h: New file.
62183         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62184         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62185         * modules/sys_select (Files): Add lib/sys_select_.h.
62186         (Depends-on): Add absolute-header.
62187         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62188         into sys/select.h.
62189
62190 2007-03-02  Bruno Haible  <bruno@clisp.org>
62191
62192         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62193         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62194         values.
62195         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62196         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62197         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62198         * modules/sys_socket (Depends-on): Add absolute-header.
62199         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62200         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62201         (Include): Remove requirement of inclusion of <sys/types.h>.
62202
62203 2007-03-02  Bruno Haible  <bruno@clisp.org>
62204
62205         * lib/byteswap_.h (bswap_32): Fix formula.
62206
62207 2007-03-06  Bruno Haible  <bruno@clisp.org>
62208
62209         * modules/sprintf-posix-tests: New file.
62210         * tests/test-sprintf-posix.c: New file.
62211
62212         * modules/sprintf-posix: New file.
62213         * lib/sprintf.c: New file.
62214         * m4/sprintf-posix.m4: New file.
62215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62216         REPLACE_SPRINTF.
62217         * lib/stdio_.h (sprintf): New declaration.
62218         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62219         REPLACE_SPRINTF.
62220
62221 2007-03-06  Bruno Haible  <bruno@clisp.org>
62222
62223         * modules/vsprintf-posix-tests: New file.
62224         * tests/test-vsprintf-posix.c: New file.
62225         * tests/test-sprintf-posix.h: New file.
62226
62227         * modules/vsprintf-posix: New file.
62228         * lib/vsprintf.c: New file.
62229         * m4/vsprintf-posix.m4: New file.
62230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62231         REPLACE_VSPRINTF.
62232         * lib/stdio_.h (vsprintf): New declaration.
62233         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62234         REPLACE_VSPRINTF.
62235
62236 2007-03-06  Bruno Haible  <bruno@clisp.org>
62237
62238         * modules/vsnprintf (Depend-on): Remove minmax.
62239
62240 2007-03-06  Bruno Haible  <bruno@clisp.org>
62241
62242         * modules/snprintf-posix-tests: New file.
62243         * tests/test-snprintf-posix.c: New file.
62244
62245         * modules/snprintf-posix: New file.
62246         * m4/snprintf-posix.m4: New file.
62247         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62248         gl_FUNC_SNPRINTF.
62249         (gl_FUNC_SNPRINTF): Invoke it.
62250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62251         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62252         is set.
62253         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62254
62255 2007-03-06  Bruno Haible  <bruno@clisp.org>
62256
62257         * modules/vsnprintf-posix-tests: New file.
62258         * tests/test-vsnprintf-posix.c: New file.
62259         * tests/test-snprintf-posix.h: New file.
62260
62261         * modules/vsnprintf-posix: New file.
62262         * m4/vsnprintf-posix.m4: New file.
62263         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62264         gl_FUNC_VSNPRINTF.
62265         (gl_FUNC_VSNPRINTF): Invoke it.
62266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62267         * lib/stdio_.h (vsnprintf): Define as a replacement if
62268         REPLACE_VSNPRINTF is set.
62269         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62270
62271 2007-03-06  Bruno Haible  <bruno@clisp.org>
62272
62273         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62274         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62275
62276 2007-03-06  Bruno Haible  <bruno@clisp.org>
62277
62278         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62279         (asinl): Declare also if HAVE_DECL_ASINL is set.
62280         (atanl): Declare also if HAVE_DECL_ATANL is set.
62281         (ceill): Declare also if HAVE_DECL_CEILL is set.
62282         (cosl): Declare also if HAVE_DECL_COSL is set.
62283         (expl): Declare also if HAVE_DECL_EXPL is set.
62284         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62285         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62286         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62287         (logl): Declare also if HAVE_DECL_LOGL is set.
62288         (sinl): Declare also if HAVE_DECL_SINL is set.
62289         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62290         (tanl): Declare also if HAVE_DECL_TANL is set.
62291         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62293         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62294         declaration of frexpl, ldexpl.
62295         * modules/printf-frexpl (Depends-on): Add math.
62296         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62297
62298 2007-03-05  Bruno Haible  <bruno@clisp.org>
62299
62300         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62301         frexpl and ldexpl are declared.
62302         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62303
62304 2007-03-05  Bruno Haible  <bruno@clisp.org>
62305
62306         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62307         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62308
62309 2007-03-05  Bruno Haible  <bruno@clisp.org>
62310
62311         * lib/stdio_.h: Include <stddef.h>.
62312
62313 2007-03-05  Bruno Haible  <bruno@clisp.org>
62314
62315         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62316
62317 2007-03-05  Bruno Haible  <bruno@clisp.org>
62318
62319         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62320         NetBSD 4, from Ralf Wildenhues.
62321
62322 2007-03-04  Bruno Haible  <bruno@clisp.org>
62323
62324         * lib/vasprintf.h: Update #if logic for the case when the functions
62325         exist but are overridden.
62326
62327 2007-03-04  Bruno Haible  <bruno@clisp.org>
62328
62329         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62330         implementations: glibc-2.4 and MacOS X 10.3.
62331         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62332         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62333         * tests/test-vasprintf-posix.c (test_function): Likewise.
62334
62335 2007-03-04  Bruno Haible  <bruno@clisp.org>
62336
62337         * modules/vasprintf-posix-tests: New file.
62338         * tests/test-vasprintf-posix.c: New file.
62339
62340         * modules/vasprintf-posix: New file.
62341         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62342         defined.
62343         * m4/vasprintf-posix.m4: New file.
62344         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62345         gl_FUNC_VASPRINTF.
62346         (gl_FUNC_VASPRINTF): Invoke it.
62347         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62348         here.
62349         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62350
62351 2007-03-04  Bruno Haible  <bruno@clisp.org>
62352
62353         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62354         REPLACE_GETTIMEOFDAY.
62355         * modules/sys_time (Makefile.am): Likewise.
62356         * m4/sys_time_h.m4: Likewise.
62357         * m4/gettimeofday.m4: Likewise.
62358
62359 2007-03-04  Bruno Haible  <bruno@clisp.org>
62360
62361         * modules/vasnprintf-posix-tests: New file.
62362         * tests/test-vasnprintf-posix.c: New file.
62363
62364         * modules/vasnprintf-posix: New file.
62365         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62366         printf-frexpl.h.
62367         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62368         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62369         REPLACE_VASNPRINTF is defined.
62370         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62371         gl_FUNC_VASNPRINTF.
62372         (gl_FUNC_VASNPRINTF): Invoke it.
62373         * m4/vasnprintf-posix.m4: New file.
62374         * m4/printf.m4: New file.
62375
62376 2007-03-04  Bruno Haible  <bruno@clisp.org>
62377
62378         Compile progreloc.c only if --enable-relocatable is specified.
62379         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62380         if --enable-relocatable was specified.
62381         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62382         lib_SOURCES.
62383
62384 2007-03-04  Jim Meyering  <jim@meyering.net>
62385
62386         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62387         Use it consistently, rather than enumerating errno constants.
62388
62389 2007-03-04  Bruno Haible  <bruno@clisp.org>
62390
62391         * modules/xvasprintf-tests: New file.
62392         * tests/test-xvasprintf.c: New file.
62393
62394         * modules/vasprintf-tests: New file.
62395         * tests/test-vasprintf.c: New file.
62396
62397         * modules/vasnprintf-tests: New file.
62398         * tests/test-vasnprintf.c: New file.
62399
62400         * modules/vsnprintf-tests: New file.
62401         * tests/test-vsnprintf.c: New file.
62402
62403         * modules/snprintf-tests: New file.
62404         * tests/test-snprintf.c: New file.
62405
62406 2007-03-04  Bruno Haible  <bruno@clisp.org>
62407
62408         Compile relocatable.c only if --enable-relocatable is specified.
62409         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62410         gl_RELOCATABLE_LIBRARY.
62411         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62412         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62413         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62414         gl_RELOCATABLE_LIBRARY.
62415         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62416         (Makefile.am): Remove lib_SOURCES.
62417         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62418         gl_RELOCATABLE_LIBRARY.
62419         (Makefile.am): Remove lib_SOURCES.
62420         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62421         always.
62422         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62423         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62424
62425 2007-03-04  Bruno Haible  <bruno@clisp.org>
62426
62427         * modules/argmatch-tests: New file.
62428         * tests/test-argmatch.c: New file.
62429
62430         * tests/test-allocsa.c (main): Halve the number of loop runs.
62431
62432         * modules/alloca-opt-tests: New file.
62433         * tests/test-alloca-opt.c: New file.
62434
62435 2007-03-04  Jim Meyering  <jim@meyering.net>
62436
62437         Work around difference between Linux ACLs and Solaris 10 ZFS.
62438         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62439         for EINVAL.
62440
62441 2007-03-03  Bruno Haible  <bruno@clisp.org>
62442
62443         * modules/relocatable-prog (Depends-on): Add back progreloc's
62444         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62445
62446 2007-03-03  Bruno Haible  <bruno@clisp.org>
62447
62448         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62449         * modules/relocatable-lib: New file.
62450
62451 2007-03-03  Bruno Haible  <bruno@clisp.org>
62452
62453         * modules/relocatable-prog: Renamed from modules/relocatable.
62454         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62455
62456 2007-03-03  Bruno Haible  <bruno@clisp.org>
62457
62458         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62459         m4/relocatable-lib.m4.
62460         (Depends-on): Remove 'relocatable'.
62461         (configure.ac): Add gl_RELOCATABLE_NOP.
62462
62463 2007-03-03  Bruno Haible  <bruno@clisp.org>
62464
62465         * modules/relocatable-prog-wrapper: New file.
62466         * modules/relocatable (Depends-on): Add it. Remove all other
62467         dependencies except progname.
62468         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62469
62470         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62471         (gl_FUNC_STRERROR): Nop.
62472         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62473
62474         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62475         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62476
62477         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62478         (gl_FUNC_READLINK): Update.
62479
62480         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62481
62482 2007-03-03  Bruno Haible  <bruno@clisp.org>
62483
62484         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62485         * modules/xreadlink (Depends-on): Add unistd.
62486         * modules/xreadlink-with-size (Depends-on): Likewise.
62487
62488 2007-03-03  Bruno Haible  <bruno@clisp.org>
62489
62490         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62491         extracted from gt_FUNC_SETENV.
62492         (gt_FUNC_SETENV): Remove macro.
62493         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62494         remove gt_FUNC_SETENV.
62495
62496 2007-03-03  Bruno Haible  <bruno@clisp.org>
62497
62498         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62499         ENABLE_RELOCATABLE here.
62500         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62501
62502 2007-03-03  Bruno Haible  <bruno@clisp.org>
62503
62504         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62505         * tests/test-rbtreehash_list.c: Include progname.h.
62506         (main): Call set_program_name.
62507
62508         * modules/rbtree-oset-tests (Depends-on): Add progname.
62509         * tests/test-rbtree_oset.c: Include progname.h.
62510         (main): Call set_program_name.
62511
62512         * modules/rbtree-list-tests (Depends-on): Add progname.
62513         * tests/test-rbtree_list.c: Include progname.h.
62514         (main): Call set_program_name.
62515
62516         * modules/linked-list-tests (Depends-on): Add progname.
62517         * tests/test-linked_list.c: Include progname.h.
62518         (main): Call set_program_name.
62519
62520 2007-03-03  Bruno Haible  <bruno@clisp.org>
62521
62522         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62523         All uses of __restrict changed to _Restrict_.
62524         * lib/glob_.h (__restrict): Remove macro.
62525
62526 2007-03-02  Bruno Haible  <bruno@clisp.org>
62527
62528         * modules/gettext (configure.ac): Require gettext infrastructure
62529         from version 0.16.1.
62530
62531 2007-03-02  Bruno Haible  <bruno@clisp.org>
62532
62533         * modules/linkedhash-list-tests (Depends-on): Add progname.
62534         * tests/test-linkedhash_list.c: Include progname.h.
62535         (main): Call set_program_name.
62536
62537         * modules/carray-list-tests (Depends-on): Add progname.
62538         * tests/test-carray_list.c: Include progname.h.
62539         (main): Call set_program_name.
62540
62541         * modules/avltreehash-list-tests (Depends-on): Add progname.
62542         * tests/test-avltreehash_list.c: Include progname.h.
62543         (main): Call set_program_name.
62544
62545         * modules/avltree-oset-tests (Depends-on): Add progname.
62546         * tests/test-avltree_oset.c: Include progname.h.
62547         (main): Call set_program_name.
62548
62549         * modules/avltree-list-tests (Depends-on): Add progname.
62550         * tests/test-avltree_list.c: Include progname.h.
62551         (main): Call set_program_name.
62552
62553         * modules/array-oset-tests (Depends-on): Add progname.
62554         * tests/test-array_oset.c: Include progname.h.
62555         (main): Call set_program_name.
62556
62557         * modules/array-list-tests (Depends-on): Add progname.
62558         * tests/test-array_list.c: Include progname.h.
62559         (main): Call set_program_name.
62560
62561         * modules/argp-tests (Depends-on): Add progname.
62562         * tests/test-argp.c: Include argp.h first. Include progname.h.
62563         (main): Call set_program_name.
62564
62565 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62566
62567         * doc/gnulib-tool.texi (Initial import): Reword description of
62568         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62569         limited effect even if defined after the first system include.
62570
62571 2007-03-01  Bruno Haible  <bruno@clisp.org>
62572
62573         * build-aux/config.libpath: Update to libtool-1.5.22.
62574         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62575
62576 2007-03-01  Bruno Haible  <bruno@clisp.org>
62577
62578         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62579         foo_CFLAGS.
62580         Reported by Ralf Wildenhues.
62581
62582 2007-03-01  Bruno Haible  <bruno@clisp.org>
62583
62584         * build-aux/install-reloc: Remove object files left over by some
62585         compilers.
62586         Reported by Ralf Wildenhues.
62587
62588 2007-03-01  Bruno Haible  <bruno@clisp.org>
62589
62590         * build-aux/install-reloc: Break long lines.
62591
62592 2007-03-01  Bruno Haible  <bruno@clisp.org>
62593
62594         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62595         Reported by Ralf Wildenhues.
62596
62597 2007-03-01  Bruno Haible  <bruno@clisp.org>
62598
62599         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62600         include ordering constraints.
62601
62602 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62603
62604         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62606         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62607         as another example.
62608         * lib/time_.h: Fix misspelling.
62609         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62610         Require gl_HEADER_TIME_H_DEFAULTS.
62611         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62612         * m4/time_r.m4 (gl_TIME_R): Likewise.
62613         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62614
62615 2007-03-01  Bruno Haible  <bruno@clisp.org>
62616
62617         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62618         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62619
62620 2007-03-01  Jim Meyering  <jim@meyering.net>
62621
62622         * modules/xreadlink (Maintainer): Add my name.
62623         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62624
62625 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62626             Bruno Haible  <bruno@clisp.org>
62627
62628         * build-aux/install-reloc: Compile also c-ctype.c.
62629         * build-aux/relocatable.sh.in: New file.
62630         * doc/relocatable.texi: New file.
62631         * doc/relocatable-maint.texi: New file.
62632         * doc/gnulib.texi: Include relocatable-maint.texi.
62633         * lib/progreloc.c: Include unistd.h unconditionally.
62634         * lib/relocwrapper.c: Include unistd.h unconditionally.
62635         Include c-ctype.h.
62636         (add_dotbin): Use c_tolower.
62637         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62638         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62639         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62640         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62641         to m4/relocatable-lib.m4.
62642         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62643         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62644         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62645         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62646         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62647         * modules/relocatable: New file.
62648         * modules/relocatable-lib: New file.
62649         * modules/relocatable-script: New file.
62650
62651 2007-02-28  Bruno Haible  <bruno@clisp.org>
62652
62653         Import --enable-relocatable infrastructure.
62654         * build-aux/config.libpath: New file, from GNU gettext.
62655         * build-aux/install-reloc: New file, from GNU gettext.
62656         * build-aux/reloc-ldflags: New file, from GNU gettext.
62657         * lib/relocatable.h: New file, from GNU gettext.
62658         * lib/relocatable.c: New file, from GNU gettext.
62659         * lib/relocwrapper.c: New file, from GNU gettext.
62660         * m4/relocatable.m4: New file, from GNU gettext.
62661
62662 2007-02-28  Bruno Haible  <bruno@clisp.org>
62663
62664         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62665
62666         * modules/xreadlink: New file, from GNU gettext with modifications.
62667         * lib/xreadlink.c: New file, from GNU gettext.
62668         * lib/xreadlink.h: Add comments.
62669         (xreadlink): New declaration.
62670
62671         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62672         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62673         lib/xreadlink-with-size.c.
62674         (configure.ac): Remove gl_XREADLINK invocation.
62675         (Makefile.am): Augment lib_SOURCES.
62676         * m4/xreadlink.m4: Remove file.
62677         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62678         (xreadlink_with_size): Renamed from xreadink.
62679         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62680         * modules/canonicalize (Depends-on): Replace xreadlink with
62681         xreadlink-with-size.
62682         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62683
62684 2007-02-25  Jim Meyering  <jim@meyering.net>
62685
62686         * build-aux/announce-gen: When complaining about excess arguments,
62687         list them.
62688
62689 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62690
62691         * README: Document signed integer overflow situation more
62692         accurately.
62693
62694 2007-02-25  Bruno Haible  <bruno@clisp.org>
62695
62696         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62697         'a' or 'A' conversion.
62698
62699 2007-02-25  Bruno Haible  <bruno@clisp.org>
62700
62701         * modules/filename: Renamed from modules/pathname.
62702         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62703         lib/concatpath.c with lib/concat-filename.c.
62704         (Makefile.am): Update.
62705         (Include): Replace pathname.h with filename.h.
62706         * lib/filename.h: Renamed from lib/pathname.h.
62707         (concatenated_filename): Renamed from concatenated_pathname.
62708         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62709         (concatenated_filename): Renamed from concatenated_pathname.
62710         * lib/findprog.c: Include filename.h instead of pathname.h.
62711         (find_in_path): Update.
62712         * lib/javacomp.c: Include filename.h instead of pathname.h.
62713         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62714         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62715         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62716         is_oldgcj_14_13_usable, is_javac_usable): Update.
62717         * lib/javaexec.c: Include filename.h instead of pathname.h.
62718         (execute_java_class): Update.
62719         * modules/findprog: Update.
62720         * modules/javacomp: Update.
62721         * modules/javaexec: Update.
62722         * MODULES.html.sh (File system functions): Add 'filename', remove
62723         'pathname'.
62724
62725 2007-02-25  Bruno Haible  <bruno@clisp.org>
62726
62727         * modules/printf-frexpl-tests: New file.
62728         * tests/test-printf-frexpl.c: New file.
62729
62730         * modules/printf-frexpl: New file.
62731         * lib/printf-frexpl.h: New file.
62732         * lib/printf-frexpl.c: New file.
62733         * m4/printf-frexpl.m4: New file.
62734
62735 2007-02-25  Bruno Haible  <bruno@clisp.org>
62736
62737         * modules/printf-frexp-tests: New file.
62738         * tests/test-printf-frexp.c: New file.
62739
62740         * modules/printf-frexp: New file.
62741         * lib/printf-frexp.h: New file.
62742         * lib/printf-frexp.c: New file.
62743         * m4/printf-frexp.m4: New file.
62744
62745 2007-02-25  Bruno Haible  <bruno@clisp.org>
62746
62747         Assume automake >= 1.10 for the tests.
62748         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62749         * modules/arctwo-tests: Likewise.
62750         * modules/argp-tests: Likewise.
62751         * modules/avltree-list-tests: Likewise.
62752         * modules/avltree-oset-tests: Likewise.
62753         * modules/avltreehash-list-tests: Likewise.
62754         * modules/carray-list-tests: Likewise.
62755         * modules/crc-tests: Likewise.
62756         * modules/des-tests: Likewise.
62757         * modules/gc-arcfour-tests: Likewise.
62758         * modules/gc-arctwo-tests: Likewise.
62759         * modules/gc-des-tests: Likewise.
62760         * modules/gc-hmac-md5-tests: Likewise.
62761         * modules/gc-hmac-sha1-tests: Likewise.
62762         * modules/gc-md2-tests: Likewise.
62763         * modules/gc-md4-tests: Likewise.
62764         * modules/gc-md5-tests: Likewise.
62765         * modules/gc-pbkdf2-sha1-tests: Likewise.
62766         * modules/gc-rijndael-tests: Likewise.
62767         * modules/gc-sha1-tests: Likewise.
62768         * modules/gc-tests: Likewise.
62769         * modules/getaddrinfo-tests: Likewise.
62770         * modules/hmac-md5-tests: Likewise.
62771         * modules/hmac-sha1-tests: Likewise.
62772         * modules/linked-list-tests: Likewise.
62773         * modules/linkedhash-list-tests: Likewise.
62774         * modules/lock-tests: Likewise.
62775         * modules/md2-tests: Likewise.
62776         * modules/md4-tests: Likewise.
62777         * modules/md5-tests: Likewise.
62778         * modules/rbtree-list-tests: Likewise.
62779         * modules/rbtree-oset-tests: Likewise.
62780         * modules/rbtreehash-list-tests: Likewise.
62781         * modules/read-file-tests: Likewise.
62782         * modules/rijndael-tests: Likewise.
62783         * modules/stdint-tests: Likewise.
62784         * modules/tls-tests: Likewise.
62785
62786 2007-02-24  Bruno Haible  <bruno@clisp.org>
62787
62788         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62789         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62790         function; instead check whether isnan with a double argument links.
62791         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62792         function; instead check whether isnan with a 'long double' argument
62793         links.
62794         Reported by Eric Blake <ebb9@byu.net>.
62795
62796 2007-02-24  Bruno Haible  <bruno@clisp.org>
62797
62798         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62799         defined.
62800         * lib/isnanl.c: Remove all code. Just include isnan.c.
62801         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62802
62803 2007-02-25  Jim Meyering  <jim@meyering.net>
62804
62805         Avoid conflicting types for 'unsetenv' on FreeBSD.
62806         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62807         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62808         in stdlib.h.
62809
62810 2007-02-24  Bruno Haible  <bruno@clisp.org>
62811
62812         * modules/isnanl-nolibm-tests: New file.
62813         * tests/test-isnanl.c: New file.
62814
62815         * modules/isnanl-nolibm: New file.
62816         * lib/isnanl.h: New file.
62817         * lib/isnanl.c: New file.
62818         * m4/isnanl.m4: New file.
62819
62820 2007-02-24  Bruno Haible  <bruno@clisp.org>
62821
62822         * modules/isnan-nolibm-tests: New file.
62823         * tests/test-isnan.c: New file.
62824
62825         * modules/isnan-nolibm: New file.
62826         * lib/isnan.h: New file.
62827         * lib/isnan.c: New file.
62828         * m4/isnan.m4: New file.
62829
62830 2007-02-24  Bruno Haible  <bruno@clisp.org>
62831
62832         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62833         assume that an exponent fits in 20 bits.
62834
62835 2007-02-24  Jim Meyering  <jim@meyering.net>
62836
62837         * m4/regex.m4: Update the description of the configure-time option,
62838         --without-included-regex, to state accurately what the defaults are,
62839         and perhaps to give people an idea why using this option is risky.
62840
62841 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62842
62843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62844         loops on small arguments.  This attempts to avoid the problem
62845         Bruno Haible reported for AIX 4.3.2 in
62846         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62847
62848 2007-02-23  Bruno Haible  <bruno@clisp.org>
62849
62850         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62851         Needed for help2man.
62852
62853 2007-02-23  Karl Berry  <karl@gnu.org>
62854
62855         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62856         exists, foo.h should be cvs-ignored, not committed.
62857
62858 2007-02-23  Eric Blake  <ebb9@byu.net>
62859
62860         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62861         * lib/stat-time.h (includes): Likewise.
62862         * lib/utimecmp.c (includes): Likewise.
62863         * lib/utimens.h (includes): Likewise.
62864         * lib/getdate.y (includes): Also include "timespec.h" for use
62865         internal to the module.
62866         * modules/utimens (Depends-on): Revert yesterday's patch.
62867         * modules/nanosleep (Depends-on): Add missing dependency.
62868
62869 2007-02-22  Bruno Haible  <bruno@clisp.org>
62870
62871         * lib/glob.c: Don't include getlogin_r.h.
62872
62873 2007-02-22  Jim Meyering  <jim@meyering.net>
62874
62875         * modules/utimens (Depends-on): Add timespec, required for
62876         utimens.h's inclusion of timespec.h.
62877
62878 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62879
62880         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62881         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62882         Schwab in
62883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62884         I'll try to think of a better way to fix the Solaris problem.
62885
62886         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62887         like glibc; on Solaris 10, it fails with errno == EINVAL.
62888         POSIX says the behavior is unspecified if the first argument is NULL,
62889         so play it safe and never pass NULL to the system getcwd.
62890
62891 2007-02-21  Jim Meyering  <jim@meyering.net>
62892
62893         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62894         of gettimeofday.  It would conflict with the one now always
62895         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62896         an IRIX 6.5 build failure.
62897
62898 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62899
62900         Minor fixups to port to Solaris 10 with Sun C 5.8.
62901         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62902         * modules/getcwd (Depends-on): Add dirfd.
62903         * lib/putenv.c (putenv): #undef it.
62904         (rpl_putenv): New decl.
62905         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62906
62907 2007-02-20  Bruno Haible  <bruno@clisp.org>
62908
62909         * modules/stdio-tests: New file.
62910         * tests/test-stdio.c: New file.
62911
62912         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62913         (Depends-on): Add stdio.
62914         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62915         (Include): Use <stdio.h> instead of vsnprintf.h.
62916         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62917         HAVE_DECL_VSNPRINTF.
62918         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62919
62920         * modules/snprintf (Files): Remove lib/snprintf.h.
62921         (Depends-on): Add stdio.
62922         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62923         (Include): Use <stdio.h> instead of snprintf.h.
62924         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62925         HAVE_DECL_SNPRINTF.
62926         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62927         * lib/getaddrinfo.c: Likewise.
62928
62929         * modules/stdio: New file.
62930         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62931         * lib/snprintf.h: Remove file.
62932         * lib/vsnprintf.h: Remove file.
62933         * lib/.cppi-disable: Remove snprintf.h.
62934         * m4/stdio_h.m4: New file.
62935         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62936
62937 2007-02-20  Jim Meyering  <jim@meyering.net>
62938
62939         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62940         used by e.g., mingw.  From Bruno Haible.
62941
62942 2007-02-19  Bruno Haible  <bruno@clisp.org>
62943
62944         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62945         warnings.
62946         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62947
62948 2007-02-19  Bruno Haible  <bruno@clisp.org>
62949
62950         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62951         from mingw users.
62952
62953 2007-02-19  Bruno Haible  <bruno@clisp.org>
62954
62955         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62956         warnings.
62957         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62958
62959 2007-02-19  Jim Meyering  <jim@meyering.net>
62960
62961         Don't use FD after a successful "fdopendir (fd)".
62962         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62963         Reset it by calling dirfd on the just-obtained DIR*.
62964
62965         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62966         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62967
62968 2007-02-18  Bruno Haible  <bruno@clisp.org>
62969
62970         * lib/readlink.c: Include <unistd.h>.
62971         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62972         HAVE_READLINK.
62973         * modules/readlink (Depends-on): Add unistd.
62974         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62975         (Include): Add <unistd.h>.
62976
62977         * lib/getlogin_r.h: Remove file.
62978         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62979         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62980         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62981         HAVE_DECL_GETLOGIN_R.
62982         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62983         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62984         (Include): Use <unistd.h> instead of getlogin_r.h.
62985
62986         * lib/getcwd.h: Remove file.
62987         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62988         * lib/xgetcwd.c: Likewise.
62989         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62990         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62991         * modules/getcwd (Files): Remove lib/getcwd.h.
62992         (Depends-on): Add unistd.
62993         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62994         (Include): Use <unistd.h> instad of getcwd.h.
62995
62996         * lib/ftruncate.c: Include <unistd.h> first.
62997         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62998         Set HAVE_FTRUNCATE.
62999         * modules/ftruncate (Depends-on): Add unistd.
63000         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63001
63002         * lib/fchdir.c: Include <unistd.h> first.
63003         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63004         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63005         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63006         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63007         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63008
63009         * lib/dup2.c: Include <unistd.h> first.
63010         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63011         HAVE_DUP2.
63012         * modules/dup2 (Depends-on): Add unistd.
63013         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63014
63015         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63016         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63017         REPLACE_CHOWN. Don't define chown as a macro here.
63018         * modules/chown (Depends-on): Add unistd.
63019         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63020
63021         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63022         Add definition for GL_LINK_WARNING.
63023         (chown, dup2): New declarations.
63024         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63025         link warning.
63026         (ftruncate): New declaration.
63027         (getcwd): New declaration, taken from old getcwd.h.
63028         (getlogin_r): New declaration, taken from old getlogin_r.h.
63029         (readlink): New declaration.
63030         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63031         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63032         (gl_PREREQ_UNISTD): Remove macro.
63033         (gl_UNISTD_MODULE_INDICATOR): New macro.
63034         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63035         many new variables. Don't set UNISTD_H.
63036         * modules/unistd (Description): Change.
63037         (Depends-on): Add link-warning.
63038         (configure.ac): Update.
63039         (Makefile.am): Create unistd.h always. Substitute many new variables
63040         into it.
63041
63042 2007-02-18  Bruno Haible  <bruno@clisp.org>
63043
63044         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63045         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63046         HAVE_GETSUBOPT.
63047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63048         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63049         * lib/getsubopt.h: Remove file.
63050         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63051         (Depends-on): Add stdlib.
63052         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63053         (Includes): Use <stdlib.h> instead of getsubopt.h.
63054         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63055         Set HAVE_GETSUBOPT.
63056         * lib/getsubopt.c: Don't include getsubopt.h.
63057
63058 2007-02-18  Bruno Haible  <bruno@clisp.org>
63059
63060         * modules/fchdir (Depends-on): Add dup2.
63061
63062 2007-02-18  Bruno Haible  <bruno@clisp.org>
63063
63064         * lib/stdlib_.h: Handle glibc's special invocation convention
63065         specially.
63066
63067 2007-02-18  Bruno Haible  <bruno@clisp.org>
63068
63069         * modules/stdlib-tests: New file.
63070         * tests/test-stdlib.c: New file.
63071
63072         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63073         (Depends-on): Add stdlib.
63074         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63075         (Includes): Use <stdlib.h> instead of mkstemp.h.
63076         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63077         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63078         * lib/mkstemp.c: Don't include mkstemp.h.
63079         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63080         * lib/stdlib--.h: Don't include mkstemp.h.
63081
63082         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63083         (Depends-on): Add stdlib.
63084         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63085         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63086         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63087         HAVE_MKDTEMP.
63088         * lib/mkdtemp.c: Don't include mkdtemp.h.
63089         * lib/clean-temp.c: Don't include mkdtemp.h.
63090
63091         * modules/exit (Files): Remove lib/exit.h.
63092         (Depends-on): Add stdlib.
63093         (Makefile.am): Remove lib_SOURCES.
63094         (Include): Use <stdlib.h> instead of exit.h.
63095         * lib/argmatch.c: Don't include exit.h.
63096         * lib/execute.c: Likewise.
63097         * lib/pagealign_alloc.c: Likewise.
63098         * lib/pipe.c: Likewise.
63099         * lib/wait-process.c: Likewise.
63100         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63101         * lib/exitfail.c: Likewise.
63102         * lib/savewd.c: Likewise.
63103         * lib/xsetenv.c: Likewise.
63104
63105         * modules/stdlib: New file.
63106         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63107         and extra comments about mkstemp().
63108         * lib/exit.h: Remove file.
63109         * lib/mkdtemp.h: Remove file.
63110         * lib/mkstemp.h: Remove file.
63111         * m4/stdlib_h.m4: New file.
63112         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63113
63114 2007-02-18  Bruno Haible  <bruno@clisp.org>
63115
63116         * modules/math-tests: New file.
63117         * tests/test-math.c: New file.
63118
63119         * modules/math: New file.
63120         * modules/mathl (Files): Remove lib/mathl.h.
63121         (Depends-on): Add math.
63122         (Makefile.am): Don't mention mathl.h.
63123         (Include): Use <math.h> instead of mathl.h.
63124         * lib/math_.h: New file.
63125         * lib/mathl.h: Remove file.
63126         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63127         mathl.h.
63128         * lib/asinl.c: Likewise.
63129         * lib/atanl.c: Likewise.
63130         * lib/ceill.c: Likewise.
63131         * lib/cosl.c: Likewise.
63132         * lib/expl.c: Likewise.
63133         * lib/floorl.c: Likewise.
63134         * lib/frexpl.c: Likewise.
63135         * lib/ldexpl.c: Likewise.
63136         * lib/logl.c: Likewise.
63137         * lib/sincosl.c: Likewise.
63138         * lib/sinl.c: Likewise.
63139         * lib/sqrtl.c: Likewise.
63140         * lib/tanl.c: Likewise.
63141         * lib/trigl.c: Likewise.
63142         * m4/math_h.m4: New file.
63143         * MODULES.html.sh (Mathematics): Add math.
63144
63145 2007-02-17  Bruno Haible  <bruno@clisp.org>
63146
63147         * modules/wctype-tests: New file.
63148         * tests/test-wctype.c: New file.
63149
63150         * modules/wchar-tests: New file.
63151         * tests/test-wchar.c: New file.
63152
63153         * modules/unistd-tests: New file.
63154         * tests/test-unistd.c: New file.
63155
63156         * modules/time-tests: New file.
63157         * tests/test-time.c: New file.
63158
63159         * modules/sysexits-tests: New file.
63160         * tests/test-sysexits.c: New file.
63161
63162         * modules/sys_time-tests: New file.
63163         * tests/test-sys_time.c: New file.
63164
63165         * modules/sys_stat-tests: New file.
63166         * tests/test-sys_stat.c: New file.
63167
63168         * modules/sys_socket-tests: New file.
63169         * tests/test-sys_socket.c: New file.
63170
63171         * modules/sys_select-tests: New file.
63172         * tests/test-sys_select.c: New file.
63173
63174         * modules/string-tests: New file.
63175         * tests/test-string.c: New file.
63176
63177         * modules/stdbool-tests: New file.
63178         * tests/test-stdbool.c: New file.
63179
63180         * modules/netinet_in-tests: New file.
63181         * tests/test-netinet_in.c: New file.
63182
63183         * modules/inttypes-tests: New file.
63184         * tests/test-inttypes.c: New file.
63185
63186         * modules/fcntl-tests: New file.
63187         * tests/test-fcntl.c: New file.
63188
63189         * modules/byteswap-tests: New file.
63190         * tests/test-byteswap.c: New file.
63191
63192         * modules/arpa_inet-tests: New file.
63193         * tests/test-arpa_inet.c: New file.
63194
63195 2007-02-17  Bruno Haible  <bruno@clisp.org>
63196
63197         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63198         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63199         if the corresponding module is not enabled. Emit link warnings if
63200         the function is used nevertheless.
63201         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63202         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63203         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63204         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63205         * modules/inttypes (Depends-on): Add link-warning.
63206         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63207         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63208         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63209         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63210         * modules/imaxdiv (configure.ac): Likewise.
63211         * modules/strtoimax (configure.ac): Likewise.
63212         * modules/strtoumax (configure.ac): Likewise.
63213
63214 2007-02-17  Bruno Haible  <bruno@clisp.org>
63215
63216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63217         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63218         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63219         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63220
63221 2007-02-17  Bruno Haible  <bruno@clisp.org>
63222
63223         * modules/link-warning: New file.
63224         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63225         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63226         * modules/string (Depends-on): Add link-warning.
63227         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63228         string.h.
63229         * MODULES.html.sh (Support for building libraries and executables): Add
63230         link-warning.
63231
63232 2007-02-17  Bruno Haible  <bruno@clisp.org>
63233
63234         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63235         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63236         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63237         long lines.
63238
63239 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63240             Bruno Haible  <bruno@clisp.org>
63241
63242         * modules/tmpfile: New file.
63243         * lib/tmpfile.c: New file.
63244         * m4/tmpfile.m4: New file.
63245         * MODULES.html.sh (func_all_modules): New section "Input/output".
63246
63247 2007-02-15  Bruno Haible  <bruno@clisp.org>
63248
63249         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63250         (supports_delete_on_close): New function.
63251         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63252
63253 2007-02-14  Bruno Haible  <bruno@clisp.org>
63254
63255         * modules/mbspcasecmp-tests: New file.
63256         * tests/test-mbspcasecmp.sh: New file.
63257         * tests/test-mbspcasecmp.c: New file.
63258
63259         New module mbspcasecmp.
63260         * modules/mbspcasecmp: New file.
63261         * lib/mbspcasecmp.c: New file.
63262         * lib/string_.h (strncasecmp): Change warning message.
63263         (mbspcasecmp): New declaration.
63264         * m4/mbspcasecmp.m4: New file.
63265         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63266         GNULIB_MBSPCASECMP.
63267         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63268         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63269
63270 2007-02-14  Bruno Haible  <bruno@clisp.org>
63271
63272         * modules/mbsncasecmp-tests: New file.
63273         * tests/test-mbsncasecmp.sh: New file.
63274         * tests/test-mbsncasecmp.c: New file.
63275
63276         New module mbsncasecmp.
63277         * modules/mbsncasecmp: New file.
63278         * lib/mbsncasecmp.c: New file.
63279         * lib/string_.h (mbsncasecmp): New declaration.
63280         * m4/mbsncasecmp.m4: New file.
63281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63282         GNULIB_MBSNCASECMP.
63283         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63284         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63285
63286 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63287
63288         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63289         Verify that it doesn't overlap with our flags.
63290         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63291         do not have the desired effect in multibyte locales; instead, use
63292         mbscasecmp.
63293         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63294         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63295         we don't require GNU fnmatch ourselves (if our users require it, they
63296         should do so explicitly).
63297
63298         Fix regex code so it doesn't rely on strcasecmp.
63299         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63300         Otherwise, include gnulib's langinfo.h.
63301         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63302         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63303         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63304         * modules/regex (FILES): Remove m4/codeset.m4.
63305         (Depends-on): Add localcharset.  Remove strcase.
63306
63307 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63308
63309         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63310         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63311
63312 2007-02-13  Bruno Haible  <bruno@clisp.org>
63313
63314         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63315         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63316
63317 2007-02-12  Bruno Haible  <bruno@clisp.org>
63318
63319         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63320         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63321         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63322         time warning rather than a link error.
63323
63324 2007-02-12  Bruno Haible  <bruno@clisp.org>
63325
63326         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63327         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63329
63330 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63331
63332         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63333         args, not 2.
63334
63335 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63336
63337         New module 'time', so that apps can include <time.h> as per
63338         POSIX and GNU instead of separate include files like time_r.h
63339         and timegm.h.  This implementation tries out a simpler approach
63340         for replacing decls in standard include files (as compared to
63341         the string module), somewhat as an experiment.
63342
63343         * config/srclist.txt: Comment out mktime.c for now.
63344         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63345         since it doesn't apply any more.  Use generic wording instead.
63346         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63347         'time'.
63348         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63349         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63350         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63351         Don't include <sys/types.h>; no longer needed since we assume C89.
63352         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63353         * lib/strftime.c: Likewise.
63354         * lib/time_r.c: Likewise.
63355         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63356         * lib/nanosleep.c: Include <time.h> first, to check interface.
63357         * lib/strptime.c: Likewise.
63358         * lib/time_r.c: Likewise.
63359         * lib/timegm.c: Likewise.
63360         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63361         needed.
63362         * lib/timegm.c: Don't include timegm.h; no longer needed.
63363         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63364         time.h now handles any problems in that area.
63365         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63366         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63367         that time.h defines struct timespec.
63368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63369         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63370         handles that.
63371         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63372         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63373         needed.  Set REPLACE_LOCALTIME.
63374         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63375         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63376         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63377         nanosleep; time_h.m4 now does that.  Don't require
63378         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63379         module handles this now.
63380         * modules/getdate (Depends-on): Remove timespec.  Add time.
63381         * modules/nanosleep (Depends-on): Likewise.
63382         * modules/stat-time (Depends-on): Likewise.
63383         * modules/nanosleep (Include): Include time.h, not timespec.h.
63384         * modules/strptime (Files): Remove lib/strptime.h.
63385         (Depends-on): Add extensions, time.
63386         (Include): Include time.h, not strptime.h.
63387         * modules/time_r (Files): Remove lib/time_r.h.
63388         (Depends-on): Add time.
63389         (Include): Include time.h, not time_r.h.
63390         * modules/timegm: Likewise.
63391         * modules/timespec (Description): Now does timespec-related decls
63392         of our own, instead of struct timespec itself.
63393         (Depends-on): Add time; remove extensions.
63394         (Maintainer): Add self.
63395         * modules/utimecmp (Depends-on): Add time; remove timespec.
63396         * modules/utimens (Depends-on): Likewise.
63397         * modules/xnanosleep (Depends-on): Likewise.
63398
63399 2007-02-11  Bruno Haible  <bruno@clisp.org>
63400
63401         * lib/c-strstr.c: Include allocsa.h.
63402         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63403         * lib/c-strcasestr.c: Include allocsa.h.
63404         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63405         * lib/strcasestr.c: Include allocsa.h.
63406         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63407         * lib/mbsstr.c: Include allocsa.h.
63408         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63409         allocsa/freesa instead of malloc/free.
63410         * lib/mbscasestr.c: Include allocsa.h.
63411         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63412         allocsa/freesa instead of malloc/free.
63413         * modules/c-strstr (Depends-on): Add allocsa.
63414         * modules/c-strcasestr (Depends-on): Likewise.
63415         * modules/strcasestr (Depends-on): Likewise.
63416         * modules/mbsstr (Depends-on): Likewise.
63417         * modules/mbscasestr (Depends-on): Likewise.
63418
63419 2007-02-11  Bruno Haible  <bruno@clisp.org>
63420
63421         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63422
63423         * modules/mbsspn-tests: New file.
63424         * tests/test-mbsspn.sh: New file.
63425         * tests/test-mbsspn.c: New file.
63426
63427 2007-02-11  Bruno Haible  <bruno@clisp.org>
63428
63429         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63430
63431         * modules/mbspbrk-tests: New file.
63432         * tests/test-mbspbrk.sh: New file.
63433         * tests/test-mbspbrk.c: New file.
63434
63435 2007-02-11  Bruno Haible  <bruno@clisp.org>
63436
63437         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63438         unneeded cast.
63439
63440         * modules/mbscspn-tests: New file.
63441         * tests/test-mbscspn.sh: New file.
63442         * tests/test-mbscspn.c: New file.
63443
63444 2007-02-11  Bruno Haible  <bruno@clisp.org>
63445
63446         * modules/mbscasecmp-tests: New file.
63447         * tests/test-mbscasecmp.sh: New file.
63448         * tests/test-mbscasecmp.c: New file.
63449
63450 2007-02-11  Bruno Haible  <bruno@clisp.org>
63451
63452         Ensure O(n) worst-case complexity of mbscasestr.
63453         * lib/mbscasestr.c: Include stdbool.h.
63454         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63455         functions.
63456         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63457         the bookkeeping indicates that it's worth it.
63458         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63459
63460         * modules/mbscasestr-tests: New file.
63461         * tests/test-mbscasestr1.c: New file.
63462         * tests/test-mbscasestr2.sh: New file.
63463         * tests/test-mbscasestr2.c: New file.
63464         * tests/test-mbscasestr3.sh: New file.
63465         * tests/test-mbscasestr3.c: New file.
63466         * tests/test-mbscasestr4.sh: New file.
63467         * tests/test-mbscasestr4.c: New file.
63468         * m4/locale-tr.m4: New file.
63469
63470 2007-02-11  Bruno Haible  <bruno@clisp.org>
63471
63472         Ensure O(n) worst-case complexity of mbsstr.
63473         * lib/mbsstr.c: Include stdbool.h.
63474         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63475         functions.
63476         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63477         bookkeeping indicates that it's worth it.
63478         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63479
63480         * modules/mbsstr-tests: New file.
63481         * tests/test-mbsstr1.c: New file.
63482         * tests/test-mbsstr2.sh: New file.
63483         * tests/test-mbsstr2.c: New file.
63484         * tests/test-mbsstr3.sh: New file.
63485         * tests/test-mbsstr3.c: New file.
63486         * m4/locale-fr.m4: New file.
63487
63488 2007-02-11  Bruno Haible  <bruno@clisp.org>
63489
63490         * lib/mbsrchr.c (mbsrchr): Fix bug.
63491
63492         * modules/mbsrchr-tests: New file.
63493         * tests/test-mbsrchr.sh: New file.
63494         * tests/test-mbsrchr.c: New file.
63495
63496 2007-02-11  Bruno Haible  <bruno@clisp.org>
63497
63498         * lib/mbschr.c (mbschr): Fix bug.
63499
63500         * modules/mbschr-tests: New file.
63501         * tests/test-mbschr.sh: New file.
63502         * tests/test-mbschr.c: New file.
63503         * m4/locale-zh.m4: New file.
63504
63505 2007-02-11  Bruno Haible  <bruno@clisp.org>
63506
63507         Support for copying multibyte string iterators.
63508         * lib/mbiter.h: Include <string.h>.
63509         (mbiter_multi_copy): New function.
63510         (mbi_copy): New macro.
63511         * lib/mbuiter.h: Include <string.h>.
63512         (mbuiter_multi_copy): New function.
63513         (mbui_copy): New macro.
63514
63515 2007-02-11  Bruno Haible  <bruno@clisp.org>
63516
63517         New module mbslen.
63518         * modules/mbslen: New file.
63519         * lib/mbslen.c: New file.
63520         * lib/string_.h (mbslen): New declaration.
63521         * m4/mbslen.m4: New file.
63522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63523         GNULIB_MBSLEN.
63524         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63525         * MODULES.html.sh (Internationalization functions): Add mbslen.
63526
63527 2007-02-11  Bruno Haible  <bruno@clisp.org>
63528
63529         Ensure O(n) worst-case complexity of strcasestr substitute.
63530         * lib/strcasestr.c: Include stdbool.h.
63531         (knuth_morris_pratt): New function.
63532         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63533         bookkeeping indicates that it's worth it.
63534         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63535
63536         * modules/strcasestr-tests: New file.
63537         * tests/test-strcasestr.c: New file.
63538
63539 2007-02-11  Bruno Haible  <bruno@clisp.org>
63540
63541         Ensure O(n) worst-case complexity of c_strcasestr.
63542         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63543         (knuth_morris_pratt): New function.
63544         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63545         the bookkeeping indicates that it's worth it.
63546         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63547
63548         * modules/c-strcasestr-tests: New file.
63549         * tests/test-c-strcasestr.c: New file.
63550
63551 2007-02-11  Bruno Haible  <bruno@clisp.org>
63552
63553         Ensure O(n) worst-case complexity of c_strstr.
63554         * lib/c-strstr.c: Include stdbool.h, string.h.
63555         (knuth_morris_pratt): New function.
63556         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63557         bookkeeping indicates that it's worth it.
63558         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63559
63560         * lib/c-strstr.c: Complete rewrite for maintainability.
63561
63562         * modules/c-strstr-tests: New file.
63563         * tests/test-c-strstr.c: New file.
63564
63565 2007-02-11  Bruno Haible  <bruno@clisp.org>
63566
63567         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63568         5.2.1 and earlier, whereby \055 was treated just like the range
63569         delimiter '-'.
63570         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63571
63572 2007-02-08  Bruno Haible  <bruno@clisp.org>
63573
63574         * modules/regex (Depends-on): Add stdbool.
63575         Reported by Dalibor Topic <robilad@kaffe.org>.
63576
63577 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63578
63579         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63580         Prefer returning from main to exiting from it.
63581         Remove unnecessary parens after sizeof.
63582
63583 2007-02-05  Bruno Haible  <bruno@clisp.org>
63584
63585         New module mbssep.
63586         * modules/mbssep: New file.
63587         * lib/mbssep.c: New file.
63588         * lib/string_.h (strsep): Add a conditional link warning.
63589         (mbssep): New declaration.
63590         * m4/mbssep.m4: New file.
63591         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63592         GNULIB_MBSSEP.
63593         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63594         * MODULES.html.sh (Internationalization functions): Add mbssep.
63595
63596 2007-02-05  Bruno Haible  <bruno@clisp.org>
63597
63598         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63599         Optimize search in case of 1 delimiter.
63600
63601 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63602
63603         * lib/acl.h: Include sys/types.h before sys/acl.h.
63604
63605 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63606
63607         Merge upstream fix for glibc bugzilla #3957:
63608
63609         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63610
63611         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63612         bit for RE_HAT_LISTS_NOT_NEWLINE.
63613         (build_charclass_op): Remove bogus comment.
63614
63615 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63616
63617         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63618
63619 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63620
63621         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63622         * lib/memmem.c [!defined _LIBC]: Include config.h.
63623
63624 2007-02-04  Bruno Haible  <bruno@clisp.org>
63625
63626         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63627         warning message.
63628
63629 2007-02-04  Bruno Haible  <bruno@clisp.org>
63630
63631         New module mbstok_r.
63632         * modules/mbstok_r: New file.
63633         * lib/mbstok_r.c: New file.
63634         * lib/string_.h (strtok_r): Change argument names to match the
63635         comments. Add a conditional link warning.
63636         (mbstok_r): New declaration.
63637         * m4/mbstok_r.m4: New file.
63638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63639         GNULIB_MBSTOK_R.
63640         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63641         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63642
63643 2007-02-04  Bruno Haible  <bruno@clisp.org>
63644
63645         New module mbsspn.
63646         * modules/mbsspn: New file.
63647         * lib/mbsspn.c: New file.
63648         * lib/string_.h (strspn): Add a conditional link warning.
63649         (mbsspn): New declaration.
63650         * m4/mbsspn.m4: New file.
63651         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63652         GNULIB_MBSSPN.
63653         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63654         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63655
63656 2007-02-04  Bruno Haible  <bruno@clisp.org>
63657
63658         New module mbspbrk.
63659         * modules/mbspbrk: New file.
63660         * lib/mbspbrk.c: New file.
63661         * lib/string_.h (strpbrk): Add a conditional link warning.
63662         (mbspbrk): New declaration.
63663         * m4/mbspbrk.m4: New file.
63664         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63665         GNULIB_MBSPBRK.
63666         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63667         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63668
63669 2007-02-04  Bruno Haible  <bruno@clisp.org>
63670
63671         New module mbscspn.
63672         * modules/mbscspn: New file.
63673         * lib/mbscspn.c: New file.
63674         * lib/string_.h (strcspn): Add a conditional link warning.
63675         (mbscspn): New declaration.
63676         * m4/mbscspn.m4: New file.
63677         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63678         GNULIB_MBSCSPN.
63679         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63680         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63681
63682 2007-02-04  Bruno Haible  <bruno@clisp.org>
63683
63684         New module mbscasestr, reduced goal of strcasestr.
63685         * modules/mbscasestr: New file.
63686         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63687         (mbscasestr): Renamed from strcasestr.
63688         * lib/strcasestr.c: Don't include mbuiter.h.
63689         (strcasestr): Remove support for multibyte locales.
63690         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63691         Change the conditional link warning.
63692         (mbscasestr): New declaration.
63693         * m4/mbscasestr.m4: New file.
63694         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63695         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63696         REPLACE_STRCASESTR.
63697         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63699         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63700         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63701         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63702         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63703         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63704         (Depends-on): Remove mbuiter.
63705         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63706
63707 2007-02-04  Bruno Haible  <bruno@clisp.org>
63708
63709         Simplify handling of strncasecmp.
63710         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63711         the conditional link warning.
63712         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63713         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63714         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63715         * modules/strcase (configure.ac): Don't invoke
63716         gl_STRING_MODULE_INDICATOR.
63717         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63718
63719 2007-02-04  Bruno Haible  <bruno@clisp.org>
63720
63721         New module mbscasecmp, reduced goal of strcasecmp.
63722         * modules/mbscasecmp: New file.
63723         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63724         (mbscasecmp): Renamed from strcasecmp.
63725         * lib/strcasecmp.c: Don't include mbuiter.h.
63726         (strcasecmp): Remove support for multibyte locales.
63727         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63728         Change the conditional link warning.
63729         (mbscasecmp): New declaration.
63730         * m4/mbscasecmp.m4: New file.
63731         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63732         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63733         REPLACE_STRCASECMP.
63734         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63735         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63736         GNULIB_MBSCASECMP.
63737         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63738         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63739         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63740         (Depends-on): Remove mbuiter.
63741         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63742
63743 2007-02-04  Bruno Haible  <bruno@clisp.org>
63744
63745         New module mbsstr. Remove module strstr.
63746         * modules/mbsstr: New file.
63747         * modules/strstr: Remove file.
63748         * lib/mbsstr.c: Renamed from lib/strstr.c.
63749         (mbsstr): Renamed from strstr.
63750         * lib/string_.h (strstr): Remove declaration. Change the conditional
63751         link warning.
63752         (mbsstr): New declaration.
63753         * m4/mbsstr.m4: New file.
63754         * m4/strstr.m4: Remove file.
63755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63756         REPLACE_STRSTR.
63757         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63758         Don't initialize GNULIB_STRSTR.
63759         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63760         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63761         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63762         (Support for systems lacking ANSI C 89): Remove strstr.
63763
63764 2007-02-04  Bruno Haible  <bruno@clisp.org>
63765
63766         New module mbsrchr.
63767         * modules/mbsrchr: New file.
63768         * lib/mbsrchr.c: New file.
63769         * lib/string_.h (strrchr): Add a conditional link warning.
63770         (mbsrchr): New declaration.
63771         * m4/mbsrchr.m4: New file.
63772         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63773         GNULIB_MBSRCHR.
63774         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63775         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63776
63777 2007-02-04  Bruno Haible  <bruno@clisp.org>
63778
63779         New module mbschr.
63780         * modules/mbschr: New file.
63781         * lib/mbschr.c: New file.
63782         * lib/string_.h (strchr): Add a conditional link warning.
63783         (mbschr): New declaration.
63784         * m4/mbschr.m4: New file.
63785         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63786         GNULIB_MBSCHR.
63787         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63788         * MODULES.html.sh (Internationalization functions): Add mbschr.
63789
63790 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63791
63792         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63793
63794         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63795
63796 2007-02-04  Bruno Haible  <bruno@clisp.org>
63797
63798         New module description section 'configure.ac-early'.
63799         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63800         (func_get_autoconf_early_snippet): New function.
63801         (func_import, func_create_testdir): Use it. Remove special cases for
63802         modules 'extensions' and 'lock'.
63803         * modules/extensions (configure.ac-early): Require
63804         gl_USE_SYSTEM_EXTENSIONS.
63805         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63806
63807 2007-02-04  Bruno Haible  <bruno@clisp.org>
63808
63809         Make use of gcj-4.3's -fsource and -ftarget option.
63810         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63811         and if so try the options -fsource and -ftarget.
63812         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63813         source_version, ftarget_option, target_version arguments.
63814         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63815         (is_envjavac_oldgcj_14_14_usable): Renamed from
63816         is_envjavac_gcj_14_14_usable.
63817         (is_envjavac_oldgcj_14_13_usable): Renamed from
63818         is_envjavac_gcj_14_13_usable.
63819         (is_gcj_present): Update.
63820         (is_gcj_43, is_gcj43_usable): New functions.
63821         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63822         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63823         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63824         try the options -fsource and -ftarget.
63825
63826 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63827
63828         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63829         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63830         larger value.
63831
63832 2007-02-03  Jim Meyering  <jim@meyering.net>
63833
63834         Give tools a better chance to allocate space for very large buffers.
63835         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63836
63837         Make pwd and readlink work also when run with an unreadable parent dir
63838         on systems with openat support.
63839         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63840         provided getcwd function, even when we have openat support.
63841         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63842
63843 2007-02-02  Bruno Haible  <bruno@clisp.org>
63844
63845         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63846         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63847         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63848         portability problems if one of these functions is only used on specific
63849         platforms.
63850         Reported by Paul Eggert.
63851
63852 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63853
63854         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63855         is causing more trouble than it's curing.
63856         * lib/regex_internal.h (__mempcpy): Remove.
63857         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63858         (and make the code a tad smaller to boot).
63859         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63860
63861 2007-02-02  Jim Meyering  <jim@meyering.net>
63862
63863         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63864         section, not in the Makefile.am: one.
63865
63866 2007-02-02  Eric Blake  <ebb9@byu.net>
63867
63868         * lib/strchrnul.c: Always include config.h first.
63869
63870         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63871         gnulib strstr is not necessary here.
63872
63873 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63874
63875         * m4/socklen.m4: Fix typo.
63876
63877 2007-02-02  Eric Blake  <ebb9@byu.net>
63878
63879         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63880         * modules/netinet_in (Makefile.am): Likewise.
63881
63882 2007-02-01  Bruno Haible  <bruno@clisp.org>
63883
63884         * lib/string_.h (GL_LINK_WARNING): New macro.
63885         (strcasecmp, strstr, strcasestr): If provided by the system,
63886         conditionally define as a macro that leads to a warning instead of to
63887         an error.
63888         (strncasecmp): Conditionally define as a macro that leads to a warning.
63889
63890 2007-02-01  Karl Berry  <karl@gnu.org>
63891
63892         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63893
63894 2007-02-01  Bruno Haible  <bruno@clisp.org>
63895
63896         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63897         renamings.
63898
63899 2007-02-01  Eric Blake  <ebb9@byu.net>
63900
63901         * modules/regex (Depends-on): Revert dependence on mempcpy.
63902         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63903         module's definition of mempcpy.
63904         Reported by Paul Eggert.
63905
63906 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63907
63908         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63909         the symbol XYZ before redefining it.  This fixes a problem with
63910         programs that don't use XYZ, when compiled on systems that define
63911         XYZ to something else.
63912
63913 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63914
63915         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63916         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63917         writeable to group or other and (2) is intended to have a special
63918         mode bit that is set or cleared.  In such a case, the directory
63919         should be neither group- nor other-writeable until the special
63920         mode bits are right.
63921
63922 2007-01-31  Eric Blake  <ebb9@byu.net>
63923
63924         * modules/mountlist (Depends-on): Add strstr.
63925
63926         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63927         bug.
63928         * modules/string (Makefile.am): Remove redundant replacement.
63929         * modules/regex (Depends-on): Add mempcpy.
63930
63931 2007-01-31  Bruno Haible  <bruno@clisp.org>
63932
63933         New module description field 'Link'.
63934         * gnulib-tool (func_usage): Document --extract-link-directive.
63935         (sed_extract_prog): Recognize 'Link' directive.
63936         (func_get_link_directive): New function.
63937         (func_import): Show summary of link directives.
63938         Handle --extract-link-directive option.
63939         * modules/acl (Link): New section.
63940         * modules/clock-time (Link): New section.
63941         * modules/euidaccess (Link): New section.
63942         * modules/gettext (Link): New section.
63943         * modules/iconv (Link): New section.
63944         * modules/lock (Link): New section.
63945         * modules/nanosleep (Link): New section.
63946         * modules/readline (Link): New section.
63947
63948 2007-01-27  Bruno Haible  <bruno@clisp.org>
63949
63950         Enforce the use of gnulib modules for unportable <string.h> functions.
63951         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63952         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63953         (gl_HEADER_STRING_H_BODY): Require it.
63954         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63955         the symbol XYZ to one that gives a link error.
63956         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63957         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63958         * modules/mempcpy (configure.ac): Likewise.
63959         * modules/memrchr (configure.ac): Likewise.
63960         * modules/stpcpy (configure.ac): Likewise.
63961         * modules/stpncpy (configure.ac): Likewise.
63962         * modules/strcase (configure.ac): Likewise.
63963         * modules/strcasestr (configure.ac): Likewise.
63964         * modules/strchrnul (configure.ac): Likewise.
63965         * modules/strdup (configure.ac): Likewise.
63966         * modules/strndup (configure.ac): Likewise.
63967         * modules/strnlen (configure.ac): Likewise.
63968         * modules/strpbrk (configure.ac): Likewise.
63969         * modules/strsep (configure.ac): Likewise.
63970         * modules/strstr (configure.ac): Likewise.
63971         * modules/strtok_r (configure.ac): Likewise.
63972
63973 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63974
63975         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63976
63977 2007-01-30  Jim Meyering  <jim@meyering.net>
63978
63979         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63980
63981 2007-01-29  Bruno Haible  <bruno@clisp.org>
63982
63983         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63984         * lib/execute.c: Likewise.
63985         * lib/pipe.c: Likewise.
63986         * lib/printf-args.h: Likewise.
63987         * lib/printf-args.c: Likewise.
63988         * lib/printf-parse.c: Likewise.
63989         * lib/vasnprintf.c: Likewise.
63990
63991 2007-01-29  Eric Blake  <ebb9@byu.net>
63992
63993         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63994         declaration.
63995
63996 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63997
63998         * lib/strptime.h (strptime): Use 'restrict' for args where
63999         POSIX requires this.
64000         * lib/strptime.c (strptime): Likewise.
64001         Change license notice from LGPL to GPL, since gnulib-tool will
64002         change this as needed.
64003         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64004         defined.
64005         Include "strptime.h" first, to check interface.
64006         Do not #undef _LIBC and _NL_CURRENT.
64007         Do not include <stdlib.h>; no longer needed.
64008         Include "time_r.h" and declare ptime_locale_status
64009         only if _LIBC is not defined.
64010         (__P): Remove unused macro.
64011         (match_string): Bring back glibc version, but use it only if _LIBC
64012         is defined.
64013         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64014         Remove unnecessary assertion and abort() call.
64015         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64016         * m4/strptime.m4: Fix serial number comment.
64017         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64018         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64019         (Depends-on): Add time_r.
64020
64021 2007-01-29  Bruno Haible  <bruno@clisp.org>
64022
64023         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64024         strptime.
64025         * modules/strptime (Depends-on): Add stdbool.
64026         * lib/strptime.h: Include <time.h> always. Add comments.
64027
64028 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64029
64030         * modules/strptime: New file.
64031         * lib/strptime.h: New file.
64032         * lib/strptime.c: New file.
64033         * m4/strptime.m4: New file.
64034
64035 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64036
64037         * MODULES.html.sh: New module mpsort.
64038         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64039
64040         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64041         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64042         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64043         All uses changed.
64044         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64045         All uses changed.
64046         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64047         to _Restrict_.
64048         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64049         the parameter matches the prototype.
64050
64051 2007-01-28  Jim Meyering  <jim@meyering.net>
64052
64053         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64054         sys/time.h here, reverting that part of the previous patch:
64055         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64056
64057 2007-01-28  Bruno Haible  <bruno@clisp.org>
64058
64059         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64060         value of $(SYS_TIME_H).
64061         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64062         remove it conditionally, too. [added by Jim Meyering]
64063         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64064         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64065         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64066         GETTIMEOFDAY_REPLACEMENT to 1.
64067
64068 2007-01-28  Bruno Haible  <bruno@clisp.org>
64069
64070         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64071         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64073         Set UNISTD_H instead of UNISTD_H2.
64074         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64075
64076 2007-01-28  Bruno Haible  <bruno@clisp.org>
64077
64078         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64079         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64080
64081 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64082
64083         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64084         (func_create_testdir): Ensure C locale for `grep' and `tr'
64085         character ranges.
64086         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64087         ACLOCAL_AMFLAGS parsing state machine.
64088
64089 2007-01-27  Bruno Haible  <bruno@clisp.org>
64090
64091         * modules/unistr/base: Update.
64092
64093 2007-01-27  Bruno Haible  <bruno@clisp.org>
64094
64095         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64096         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64097         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64098         modules/unistr/u32-mbtouc.
64099         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64100         * lib/unistr.h: Update.
64101         * lib/linebreak.c: Update.
64102         * modules/unistr/u32-mbtouc: Renamed from
64103         modules/unistr/u32-mbtouc-safe.
64104         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64105         * lib/unistr.h: Update.
64106         * lib/unistr/u32-to-u8.c: Update.
64107         * lib/unistr/u32-to-u16.c: Update.
64108
64109 2007-01-27  Bruno Haible  <bruno@clisp.org>
64110
64111         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64112         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64113         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64114         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64115         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64116         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64117         modules/unistr/u16-mbtouc.
64118         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64119         * lib/unistr.h: Update.
64120         * lib/linebreak.c: Update.
64121         * modules/linebreak: Update.
64122         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64123         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64124         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64125         * modules/unistr/u16-mbtouc: Renamed from
64126         modules/unistr/u16-mbtouc-safe.
64127         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64128         * lib/unistr.h: Update.
64129         * lib/unistr/u16-to-u8.c: Update.
64130         * modules/unistr/u16-to-u8: Update.
64131         * lib/unistr/u16-to-u32.c: Update.
64132         * modules/unistr/u16-to-u32: Update.
64133
64134 2007-01-27  Bruno Haible  <bruno@clisp.org>
64135
64136         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64137         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64138         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64139         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64140         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64141         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64142         modules/unistr/u8-mbtouc.
64143         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64144         * lib/unistr.h: Update.
64145         * lib/striconveh.c: Update.
64146         * modules/striconveh: Update.
64147         * lib/linebreak.c: Update.
64148         * modules/linebreak: Update.
64149         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64150         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64151         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64152         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64153         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64154         * lib/unistr.h: Update.
64155         * lib/striconveh.c: Update.
64156         * modules/striconveh: Update.
64157         * lib/unistr/u8-to-u16.c: Update.
64158         * modules/unistr/u8-to-u16: Update.
64159         * lib/unistr/u8-to-u32.c: Update.
64160         * modules/unistr/u8-to-u32: Update.
64161
64162 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64163
64164         Sync from Libtool.
64165         * lib/argz.c: Do not include strings.h nor memory.h, include
64166         string.h unconditionally.  Patch by Simon Josefsson.
64167
64168 2007-01-27  Bruno Haible  <bruno@clisp.org>
64169
64170         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64171         from gl_HEADER_STRING_H_BODY.
64172         (gl_HEADER_STRING_H_BODY): Require it.
64173         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64174         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64175         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64176         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64177         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64178         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64180         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64181         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64182         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64183         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64184         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64185         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64186         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64187         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64188
64189 2007-01-27  Bruno Haible  <bruno@clisp.org>
64190
64191         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64192         check_PROGRAMS into noinst_PROGRAMS.
64193         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64194         check_PROGRAMS in this case.
64195         (func_import): Set for_test to false.
64196         (func_create_testdir): Set for_test to true.
64197
64198 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64199             Bruno Haible  <bruno@clisp.org>
64200
64201         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64202         (Depends-on): Add string.
64203         (Includes): Use <string.h> instead of strcasestr.h.
64204         * modules/string (Makefile.am): Also substitute the value of
64205         REPLACE_STRCASESTR.
64206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64207         assume strcasestr is declared in <string.h> not <strings.h>. Also
64208         set REPLACE_STRCASESTR.
64209         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64210         REPLACE_STRCASESTR.
64211         * lib/strcasestr.h: Remove file.
64212         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64213         * lib/string_.h (strcasestr): New declaration.
64214
64215 2007-01-27  Bruno Haible  <bruno@clisp.org>
64216
64217         * lib/string_.h: Use 'extern'.
64218
64219 2007-01-27  Jim Meyering  <jim@meyering.net>
64220
64221         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64222         of set-but-not-used local, "q".
64223
64224         * lib/mempcpy.c: Include <config.h> before <string.h>.
64225         This fixes a compilation error on HP-UX, due to the system's
64226         "restrict"-using mempcpy prototype.
64227
64228 2007-01-26  Bruno Haible  <bruno@clisp.org>
64229
64230         Small optimization.
64231         * lib/javacomp.c: Include c-strstr.h.
64232          (is_envjavac_gcj): Use c_strstr instead of strstr.
64233         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64234
64235 2007-01-26  Bruno Haible  <bruno@clisp.org>
64236
64237         * MODULES.html.sh (Unicode string functions): Add the new modules.
64238
64239         * modules/uniconv/u32-strconv-to-locale: New file.
64240         * lib/uniconv/u32-strconv-to-locale.c: New file.
64241
64242         * modules/uniconv/u16-strconv-to-locale: New file.
64243         * lib/uniconv/u16-strconv-to-locale.c: New file.
64244
64245         * modules/uniconv/u8-strconv-to-locale: New file.
64246         * lib/uniconv/u8-strconv-to-locale.c: New file.
64247
64248         * modules/uniconv/u32-strconv-from-locale: New file.
64249         * lib/uniconv/u32-strconv-from-locale.c: New file.
64250
64251         * modules/uniconv/u16-strconv-from-locale: New file.
64252         * lib/uniconv/u16-strconv-from-locale.c: New file.
64253
64254         * modules/uniconv/u8-strconv-from-locale: New file.
64255         * lib/uniconv/u8-strconv-from-locale.c: New file.
64256
64257         * modules/uniconv/u32-strconv-to-enc: New file.
64258         * lib/uniconv/u32-strconv-to-enc.c: New file.
64259         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64260         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64261
64262         * modules/uniconv/u16-strconv-to-enc: New file.
64263         * lib/uniconv/u16-strconv-to-enc.c: New file.
64264         * lib/uniconv/u-strconv-to-enc.h: New file.
64265         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64266         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64267
64268         * modules/uniconv/u8-strconv-to-enc: New file.
64269         * lib/uniconv/u8-strconv-to-enc.c: New file.
64270         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64271         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64272
64273         * modules/uniconv/u32-strconv-from-enc: New file.
64274         * lib/uniconv/u32-strconv-from-enc.c: New file.
64275         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64276         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64277
64278         * modules/uniconv/u16-strconv-from-enc: New file.
64279         * lib/uniconv/u16-strconv-from-enc.c: New file.
64280         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64281         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64282
64283         * modules/uniconv/u8-strconv-from-enc: New file.
64284         * lib/uniconv/u8-strconv-from-enc.c: New file.
64285         * lib/uniconv/u-strconv-from-enc.h: New file.
64286         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64287         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64288
64289         * modules/uniconv/u32-conv-from-enc: New file.
64290         * lib/uniconv/u32-conv-from-enc.c: New file.
64291         * modules/uniconv/u32-conv-from-enc-tests: New file.
64292         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64293
64294         * modules/uniconv/u16-conv-from-enc: New file.
64295         * lib/uniconv/u16-conv-from-enc.c: New file.
64296         * lib/uniconv/u-conv-from-enc.h: New file.
64297         * modules/uniconv/u16-conv-from-enc-tests: New file.
64298         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64299
64300         * modules/uniconv/u8-conv-from-enc: New file.
64301         * lib/uniconv/u8-conv-from-enc.c: New file.
64302         * modules/uniconv/u8-conv-from-enc-tests: New file.
64303         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64304
64305         * modules/uniconv/base: New file.
64306         * lib/uniconv.h: New file.
64307
64308 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64309
64310         * doc/gnulib-tool.texi (Initial import): Update to match current
64311         behavior with strdup module.
64312         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64313         * lib/memmem.h: Remove; all uses removed.  This is now done
64314         by <string.h>.
64315         * lib/mempcpy.h: Likewise.
64316         * lib/memrchr.h: Likewise.
64317         * lib/stpcpy.h: Likewise.
64318         * lib/stpncpy.h: Likewise.
64319         * lib/strcase.h: Likewise.
64320         * lib/strchrnul.h: Likewise.
64321         * lib/strdup.h: Likewise.
64322         * lib/strndup.h: Likewise.
64323         * lib/strnlen.h: Likewise.
64324         * lib/strpbrk.h: Likewise.
64325         * lib/strsep.h: Likewise.
64326         * lib/strstr.h: Likewise.
64327         * lib/strtok_r.h: Likewise.
64328         * lib/string_.h: New file.
64329         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64330         Rely on <string.h> instead.
64331         * lib/canon-host.c: Likewise.
64332         * lib/chdir-long.c: Likewise.
64333         * lib/concatpath.c: Likewise.
64334         * lib/exclude.c: Likewise.
64335         * lib/fchdir.c: Likewise.
64336         * lib/getaddrinfo.c: Likewise.
64337         * lib/getcwd.c: Likewise.
64338         * lib/getsubopt.c: Likewise.
64339         * lib/glob.c: Likewise.
64340         * lib/hard-locale.c: Likewise.
64341         * lib/iconvme.c: Likewise.
64342         * lib/javacomp.c: Likewise.
64343         * lib/mempcpy.c: Likewise.
64344         * lib/memrchr.c: Likewise.
64345         * lib/regex_internal.h: Likewise.
64346         * lib/stpncpy.c: Likewise.
64347         * lib/strcasecmp.c: Likewise.
64348         * lib/strchrnul.c: Likewise.
64349         * lib/strdup.c: Likewise.
64350         * lib/striconv.c: Likewise.
64351         * lib/striconveh.c: Likewise.
64352         * lib/striconveha.c: Likewise.
64353         * lib/strncasecmp.c: Likewise.
64354         * lib/strndup.c: Likewise.
64355         * lib/strnlen.c: Likewise.
64356         * lib/strsep.c: Likewise.
64357         * lib/strstr.c: Likewise.
64358         * lib/strtok_r.c: Likewise.
64359         * lib/userspec.c: Likewise.
64360         * lib/w32spawn.h: Likewise.
64361         * lib/xstrndup.c: Likewise.
64362         * lib/mountlist.c (strstr): Remove decl.
64363         * m4/string_h.m4: New file.
64364         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64365         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64366         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64367         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64368         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64369         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64370         Set REPLACE_STRCASECMP if necessary.
64371         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64372         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64373         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64374         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64375         HAVE_DECL_STRDUP if necessary.
64376         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64377         since gl_FUNC_STRNDUP does that now.
64378         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64379         Check for decl here...
64380         (gl_PREREQ_STRNLEN): ... not here.
64381         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64382         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64383         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64384         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64385         necessary.
64386         * modules/string: New file.
64387         * modules/memmem (Files): Remove special-purpose include file.
64388         (Depends-on): Add string.
64389         (Include): Include <string.h>, not the removed file.
64390         * modules/mempcpy: Likewise.
64391         * modules/memrchr: Likewise.
64392         * modules/stpcpy: Likewise.
64393         * modules/stpncpy: Likewise.
64394         * modules/strcase: Likewise.
64395         * modules/strchrnul: Likewise.
64396         * modules/strdup: Likewise.
64397         * modules/strndup: Likewise.
64398         * modules/strnlen: Likewise.
64399         * modules/strpbrk: Likewise.
64400         * modules/strsep: Likewise.
64401         * modules/strstr: Likewise.
64402         * modules/strtok_r: Likewise.
64403         * tests/test-dirname.c: Don't include "strdup.h", since
64404         <string.h> now suffices.
64405         * tests/test-memmem.c: Don't include "memmem.h", since
64406         <string.h> now suffices.
64407
64408 2007-01-25  Bruno Haible  <bruno@clisp.org>
64409
64410         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64411         *resultp is 0.
64412
64413         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64414         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64415         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64416         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64417
64418         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64419         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64420         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64421         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64422         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64423         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64424
64425 2007-01-24  Bruno Haible  <bruno@clisp.org>
64426
64427         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64428         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64429         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64430         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64431         gl_FUNC_FTS_CORE.
64432         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64433         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64434         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64435         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64436         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64437         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64438         gl_FUNC_FCHOWNAT.
64439         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64440         gl_FUNC_STRFTIME.
64441         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64442         Reported by Ralf Wildenhues.
64443
64444 2007-01-24  Bruno Haible  <bruno@clisp.org>
64445
64446         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64447         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64448         gl_GETADDRINFO.
64449         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64450         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64451         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64452
64453 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64454
64455         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64456         Don't use 'exit'; just return from 'main'.
64457         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64458
64459         * lib/fnmatch_.h: Readjust white space and comments to match
64460         glibc, to avoid spurious diffs.
64461
64462 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64463
64464         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64465         2004-12-01 change by Jakub Jelinek, since this code won't compile
64466         if !LIBC.  Problem reported by Bob Proulx.
64467
64468 2007-01-23  Bruno Haible  <bruno@clisp.org>
64469
64470         * lib/striconveh.c: Include c-strcaseeq.h.
64471         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64472         * modules/striconveh (Depends-on): Add c-strcaseeq.
64473
64474 2007-01-23  Bruno Haible  <bruno@clisp.org>
64475
64476         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64477
64478         * modules/c-strcaseeq: New file.
64479         * lib/c-strcaseeq.h: New file.
64480
64481         * modules/streq: New file.
64482         * lib/streq.h: New file.
64483
64484 2007-01-23  Bruno Haible  <bruno@clisp.org>
64485
64486         * modules/striconveha-tests: New file.
64487         * tests/test-striconveha.c: New file.
64488
64489         * lib/striconveha.h: Include <stdbool.h>.
64490         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64491         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64492         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64493         (mem_iconveha): New function.
64494         (str_iconveha_notranslit): Renamed from str_iconveha.
64495         (str_iconveha): New function.
64496         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64497         c-strcase.
64498
64499 2007-01-23  Bruno Haible  <bruno@clisp.org>
64500
64501         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64502         encodings without forgiving before trying any encoding with handler.
64503         (str_iconveha): Try all encodings without forgiving before trying any
64504         encoding with handler.
64505
64506 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64507
64508         Import the following changes from libc.
64509
64510         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64511
64512         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64513
64514         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64515
64516         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64517         normal_bracket label.
64518
64519         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64520
64521         [BZ #361]
64522         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64523         to normal_bracket after fetching the next character.
64524
64525 2007-01-22  Bruno Haible  <bruno@clisp.org>
64526
64527         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64528         argument.
64529         * lib/striconveh.c (iconv_carefully_1): New function.
64530         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64531         argument.
64532         (str_cd_iconveh): Update.
64533         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64534         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64535         * tests/test-striconveh.c (MAGIC): New macro.
64536         (new_offsets): New function.
64537         (main): Test call with and without offsets.
64538
64539 2007-01-22  Bruno Haible  <bruno@clisp.org>
64540
64541         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64542         * modules/sys_select (Makefile.am): Likewise.
64543         * modules/sys_socket (Makefile.am): Likewise.
64544         * modules/sys_time (Makefile.am): Likewise.
64545
64546 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64547
64548         * modules/gettimeofday (License): Change from GPL to LGPL, since
64549         gettimeofday is a library function.
64550
64551 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64552
64553         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64554
64555 2007-01-21  Bruno Haible  <bruno@clisp.org>
64556
64557         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64558
64559 2007-01-21  Bruno Haible  <bruno@clisp.org>
64560
64561         * modules/striconveha: New file.
64562         * lib/striconveha.h: New file.
64563         * lib/striconveha.c: New file.
64564         * MODULES.html.sh (Internationalization functions): Add striconveha.
64565         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64566         string.
64567         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64568
64569 2007-01-21  Bruno Haible  <bruno@clisp.org>
64570
64571         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64572         * lib/striconveh.c (str_iconveh): Likewise.
64573
64574 2007-01-21  Bruno Haible  <bruno@clisp.org>
64575
64576         * lib/striconveh.h (mem_iconveh): New declaration.
64577         * lib/striconveh.c (mem_iconveh): New function.
64578         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64579
64580 2007-01-21  Bruno Haible  <bruno@clisp.org>
64581
64582         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64583
64584         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64585         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64586         original result buffer.
64587         (str_cd_iconveh): Update.
64588         * tests/test-striconveh.c (main): Update.
64589
64590         * lib/striconv.h (mem_cd_iconv): Change specification.
64591         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64592         result buffer.
64593         (str_cd_iconv): Update.
64594         * tests/test-striconv.c (main): Update.
64595
64596 2007-01-21  Bruno Haible  <bruno@clisp.org>
64597
64598         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64599
64600 2007-01-20  Jim Meyering  <jim@meyering.net>
64601
64602         * lib/userspec.c (parse_with_separator): If a user or group string
64603         starts with "+", skip the corresponding name-to-ID look-up, since
64604         such a look-up must fail: user and group names may not include "+".
64605
64606 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64607
64608         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64609         since we now assume the sys_time module.
64610         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64611         check for sys/time.h; no longer needed.
64612         * modules/poll (Depends-on): Depend on sys_time.
64613
64614 2007-01-18  Bruno Haible  <bruno@clisp.org>
64615
64616         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64617         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64618
64619         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64620         gettimeofday.
64621
64622         * tests/test-gettimeofday.c: Include <time.h>.
64623         (dummy): Remove variable.
64624
64625         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64626         gl_HEADER_SYS_TIME_H.
64627         (gl_HEADER_SYS_TIME_H): New macro.
64628
64629         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64630         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64631         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64632         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64633         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64634         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64635         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64636         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64637         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64638         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64639         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64640
64641         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64642         last change; it caused a compilation error when cross-compiling to
64643         Cygwin.
64644
64645 2007-01-18  Jim Meyering  <jim@meyering.net>
64646
64647         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64648         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64649         than the race-prone "test -d sys || mkdir sys".
64650         (configure.ac): Use AC_PROG_MKDIR_P.
64651         * modules/sys_select: Likewise.
64652         * modules/sys_socket: Likewise.
64653         * modules/sys_time: Likewise.
64654
64655 2007-01-18  Eric Blake  <ebb9@byu.net>
64656
64657         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64658         replace gettimeofday.
64659         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64660         name, to avoid infinite recursion.
64661
64662 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64663
64664         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64665         module sys_time.
64666         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64667         assume timespec.h defines struct timeval.
64668         * lib/settime.c: Likewise.
64669         * lib/utimens.c: Likewise.
64670         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64671         since we now assume the gettimeofday module.
64672         * lib/tempname.c (__gen_tempname): Likewise.
64673         * lib/gettimeofday.h: Remove.
64674         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64675         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64676         Include <time.h>, for 'time()'.
64677         (localtime_buffer_addr): Also use this workaround if
64678         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64679         to simplify the uses.  All uses changed.
64680         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64681         that #undef is inside {}, and 'const' follows type name consistently.
64682         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64683         (gettimeofday): Do not use the maximum possible value for
64684         tv->tv_usec, since that might break usages other than ls.c.
64685         Instead, we'll leave ls.c alone.  This undoes today's patch
64686         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64687         we've never observed the problem but might as well keep the
64688         canary.
64689         * lib/nanosleep.c: Include timespec.h first, for interface check.
64690         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64691         now assume the sys_time module.
64692         * lib/tempname.c: Likewise.
64693         * lib/timespec.h: Likewise.
64694         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64695         needed.
64696         * lib/strftime.c: Likewise.
64697         * lib/timespec.h: Likewise.
64698         * lib/posixtm.c: Include posixtm.h first, for interface check.
64699         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64700         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64701         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64702         * lib/sys_time_.h: New file.
64703         * lib/timespec.h (struct timespec): Use long int, not long.
64704         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64705         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64706         Remove obsolescent call to AC_HEADER_TIME.
64707         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64708         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64709         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64710         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64711         Likewise.
64712         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64713         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64714         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64715         into the sys_time module.  Check for gettimeofday just once.
64716         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64717         for gettimeofday signature to just check the signature.  Merely
64718         compile it, since linking doesn't test signature.  Improve test for
64719         whether gettimeofday.o is actually needed.
64720         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64721         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64722         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64723         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64724         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64725         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64726         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64727         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64728         than worrying about sys/time.h.
64729         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64730         Don't bother worrying about TIME_WITH_SYS_TIME.
64731         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64732         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64733         * m4/sys_time_h.m4: New file.
64734         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64735         Don't include sys/time.h.  Return from main rather than exiting.
64736         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64737         all uses changed.
64738         * modules/gethrxtime (Depends-on): Add sys_time.
64739         * modules/gettime (Depends-on): Likewise.
64740         * modules/gettimeofday (Depends-on): Likewise.
64741         * modules/nanosleep (Depends-on): Likewise.
64742         * modules/settime (Depends-on): Likewise.
64743         * modules/tempname (Depends-on): Likewise.
64744         * modules/utimens (Depends-on): Likewise.
64745         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64746         (Include): Change back to <sys/time.h>.
64747         (Maintainer): Add self.
64748         * modules/sys_time: New file.
64749         * modules/tempname (Depends-on): Add gettimeofday.
64750         * tests/test-gettimeofday.c: Include <sys/time.h>
64751         rather than gettimeofday.h.
64752
64753 2007-01-17  Bruno Haible  <bruno@clisp.org>
64754
64755         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64756         the license default to GPL.
64757         (func_create_testdir): Don't complain if a module is LGPL and its
64758         tests module depends on GPLed modules.
64759
64760 2007-01-17  Bruno Haible  <bruno@clisp.org>
64761
64762         * lib/gettimeofday.c (gettimeofday): Add code for the case
64763         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64764         maximum possible value for tv->tv_usec, rather than the minimum one.
64765
64766 2005-10-08  Martin Lambers  <marlam@marlam.de>
64767 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64768 2007-01-16  Bruno Haible  <bruno@clisp.org>
64769
64770         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64771         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64772         gl_FUNC_GETTIMEOFDAY.
64773         (Include): Add gettimeofday.h.
64774         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64775         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64776         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64777         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64778         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64779         * lib/gettimeofday.h: New file.
64780         * lib/gettimeofday.c: Include <sys/timeb.h>.
64781         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64782         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64783         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64784         fall back on time().
64785
64786         * tests/test-gettimeofday.c: New file.
64787         * modules/gettimeofday-tests: New file.
64788
64789 2007-01-16  Eric Blake  <ebb9@byu.net>
64790
64791         * modules/fnmatch (Depends-on): Depend on wchar.
64792         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64793         * m4/fnmatch.m4: Likewise.
64794         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64795         * m4/mbchar.m4: Likewise.
64796         * modules/mbswidth (Depends-on): Depend on wchar.
64797         * lib/mbswidth.c: Assume <wchar.h>.
64798         * m4/mbswidth.m4: Likewise.
64799         * modules/quotearg (Depends-on): Depend on wchar.
64800         * lib/quotearg.c: Assume <wchar.h>.
64801         * m4/quotearg.m4: Likewise.
64802         * modules/regex (Depends-on): Depend on wchar.
64803         * lib/regex_internal.h: Assume <wchar.h>.
64804         * m4/regex.m4: Likewise.
64805         * modules/stdint (Depends-on): Depend on wchar.
64806         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64807         * m4/stdint.m4: Likewise.
64808         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64809         * modules/strftime (Depends-on): Depend on wchar.
64810         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64811         * modules/strtol (Depends-on): Depend on wchar.
64812         * lib/strtol.c: Assume <wchar.h>.
64813         * modules/wcwidth (Depends-on): Depend on wchar.
64814         * lib/wcwidth.h: Assume <wchar.h>.
64815         * m4/wcwidth.m4: Likewise.
64816
64817 2007-01-16  Bruno Haible  <bruno@clisp.org>
64818
64819         * modules/csharpexec-script: New, created from...
64820         * modules/csharpexec: ... this.
64821
64822 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64823
64824         * modules/javaexec-script: New, created from...
64825         * modules/javaexec: ... this.
64826
64827 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64828
64829         * modules/poll (Dependencies): Add sys_select.
64830
64831 2007-01-15  Jim Meyering  <jim@meyering.net>
64832
64833         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64834         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64835         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64836         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64837
64838 2007-01-15  Bruno Haible  <bruno@clisp.org>
64839
64840         * modules/striconveh: New file.
64841         * lib/striconveh.h: New file.
64842         * lib/striconveh.c: New file.
64843         * MODULES.html.sh (Internationalization functions): Add striconveh.
64844
64845         * modules/striconveh-tests: New file.
64846         * tests/test-striconveh.c: New file.
64847
64848 2007-01-15  Bruno Haible  <bruno@clisp.org>
64849
64850         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64851         not from GNU libiconv or GNU libc.
64852
64853 2007-01-15  Bruno Haible  <bruno@clisp.org>
64854
64855         * doc/gnulib-intro.texi (Copyright): Explain the different license
64856         terms for module descriptions, autoconf macros, tests, documentation.
64857
64858 2007-01-14  Bruno Haible  <bruno@clisp.org>
64859
64860         * modules/striconv-tests: New file.
64861         * tests/test-striconv.c: New file.
64862
64863 2007-01-14  Bruno Haible  <bruno@clisp.org>
64864
64865         * modules/iconv-tests: New file.
64866         * tests/test-iconv.c: New file.
64867
64868 2007-01-14  Bruno Haible  <bruno@clisp.org>
64869
64870         * gnulib-tool (func_get_license): For test modules, use the license of
64871         the main module.
64872
64873 2007-01-14  Bruno Haible  <bruno@clisp.org>
64874
64875         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64876         if iconv is found to exist.
64877
64878 2007-01-14  Bruno Haible  <bruno@clisp.org>
64879
64880         * modules/c-ctype-tests: New file.
64881         * tests/test-c-ctype.c: New file.
64882
64883 2007-01-14  Bruno Haible  <bruno@clisp.org>
64884
64885         * modules/binary-io-tests: New file.
64886         * tests/test-binary-io.sh: New file.
64887         * tests/test-binary-io.c: New file.
64888
64889 2007-01-14  Bruno Haible  <bruno@clisp.org>
64890
64891         * modules/array-oset-tests: New file.
64892         * tests/test-array_oset.c: New file.
64893
64894 2007-01-14  Bruno Haible  <bruno@clisp.org>
64895
64896         * modules/array-list-tests: New file.
64897         * tests/test-array_list.c: New file.
64898
64899 2007-01-14  Bruno Haible  <bruno@clisp.org>
64900
64901         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64902         and make.
64903         Reported by Simon Josefsson in
64904         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64905
64906 2007-01-14  Bruno Haible  <bruno@clisp.org>
64907
64908         * modules/allocsa-tests: New file.
64909         * tests/test-allocsa.c: New file.
64910
64911 2007-01-14  Bruno Haible  <bruno@clisp.org>
64912
64913         * modules/fchdir (Depends-on): Add absolute-header.
64914         * modules/unistd (Depends-on): Likewise.
64915
64916 2006-12-30  Bruno Haible  <bruno@clisp.org>
64917
64918         * modules/fchdir: New file.
64919         * modules/unistd (Files): Add lib/unistd_.h.
64920         (Makefile.am): Generate unistd.h from unistd_.h.
64921         * lib/fchdir.c: New file.
64922         * lib/dirent_.h: New file.
64923         * lib/unistd_.h: New file.
64924         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64925         * m4/fchdir.m4: New file.
64926         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64927         (gl_HEADER_UNISTD): Invoke it.
64928         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64929         function.
64930         * lib/backupfile.c (opendir, closedir): Undefine.
64931         * lib/chown.c (open, close): Undefine.
64932         * lib/clean-temp.c (open, close): Undefine.
64933         * lib/copy-file.c (open, close): Undefine.
64934         * lib/execute.c (open, close): Undefine.
64935         * lib/fsusage.c (open, close): Undefine.
64936         * lib/gc-gnulib.c (open, close): Undefine.
64937         * lib/getcwd.c (opendir, closedir): Undefine.
64938         * lib/glob.c (opendir, closedir): Undefine.
64939         * lib/javacomp.c (open, close): Undefine.
64940         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64941         * lib/openat-proc.c (open, close): Undefine.
64942         * lib/pagealign_alloc.c (open, close): Undefine.
64943         * lib/pipe.c (open, close): Undefine.
64944         * lib/progreloc.c (open, close): Undefine.
64945         * lib/savedir.c (opendir, closedir): Undefine.
64946         * lib/utime.c (open, close): Undefine.
64947         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64948
64949 2007-01-10  Bruno Haible  <bruno@clisp.org>
64950
64951         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64952
64953 2007-01-12  Eric Blake  <ebb9@byu.net>
64954
64955         Provide a robust <wchar.h>.  Further simplifications are now
64956         possible in other modules, but not included here.
64957         * modules/wchar: New module.
64958         * m4/wchar.m4: New file.
64959         * lib/wchar_.h: Likewise.
64960         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64961         of the new module.
64962         * MODULES.html.sh (Extended multibyte and wide character utilities):
64963         New section.
64964
64965 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64966
64967         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64968         to a reasonable default for memory allocation.
64969         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64970         file system that reports garbage st_size values for symlinks.
64971         Problem reported by Liyang Hu.
64972
64973 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64974
64975         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64976         Emacs .#* auto-save files).
64977
64978 2007-01-11  Bruno Haible  <bruno@clisp.org>
64979
64980         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64981         directory.
64982
64983 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64984
64985         Use @...@ consistently in lib/wctype_.h.
64986         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64987         on it being set to 1 or 0.
64988         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64989         go back to AC_SUBSTing it.
64990         * modules/wctype (Makefile.am): Undo previous change.
64991
64992 2007-01-10  Eric Blake  <ebb9@byu.net>
64993
64994         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64995         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64996         * modules/wctype (Makefile.am): Likewise.
64997         Reported by Chris McGuire.
64998
64999 2007-01-10  Jim Meyering  <jim@meyering.net>
65000
65001         fts.c: a small readability/maintainability improvement
65002         * lib/fts.c (fts_read): Make this code slightly more readable and
65003         maintainable by hoisting the "sp->fts_cur = p" assignments to
65004         immediately follow the statements that set P.  Derived from
65005         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65006
65007 2007-01-10  Eric Blake  <ebb9@byu.net>
65008
65009         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65010         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65011         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65012         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65013         Reported by Chris McGuire.
65014
65015 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65016
65017         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65018         in sed script.
65019
65020 2007-01-09  Bruno Haible  <bruno@clisp.org>
65021
65022         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65023         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65024         variables.
65025         (func_module): Use them.
65026
65027 2007-01-09  Bruno Haible  <bruno@clisp.org>
65028
65029         * modules/unistr/base: New file.
65030         * lib/unistr.h: New file.
65031
65032         * modules/unistr/u8-to-u16: New file.
65033         * lib/unistr/u8-to-u16.c: New file.
65034
65035         * modules/unistr/u8-to-u32: New file.
65036         * lib/unistr/u8-to-u32.c: New file.
65037
65038         * modules/unistr/u16-to-u8: New file.
65039         * lib/unistr/u16-to-u8.c: New file.
65040
65041         * modules/unistr/u16-to-u32: New file.
65042         * lib/unistr/u16-to-u32.c: New file.
65043
65044         * modules/unistr/u32-to-u8: New file.
65045         * lib/unistr/u32-to-u8.c: New file.
65046
65047         * modules/unistr/u32-to-u16: New file.
65048         * lib/unistr/u32-to-u16.c: New file.
65049
65050         * modules/unistr/u8-check: New file.
65051         * modules/unistr/u16-check: New file.
65052         * modules/unistr/u32-check: New file.
65053         * lib/unistr/u8-check.c: New file.
65054         * lib/unistr/u16-check.c: New file.
65055         * lib/unistr/u32-check.c: New file.
65056
65057         * modules/unistr/u8-chr: New file.
65058         * modules/unistr/u16-chr: New file.
65059         * modules/unistr/u32-chr: New file.
65060         * lib/unistr/u8-chr.c: New file.
65061         * lib/unistr/u16-chr.c: New file.
65062         * lib/unistr/u32-chr.c: New file.
65063
65064         * modules/unistr/u8-cmp: New file.
65065         * modules/unistr/u16-cmp: New file.
65066         * modules/unistr/u32-cmp: New file.
65067         * lib/unistr/u8-cmp.c: New file.
65068         * lib/unistr/u16-cmp.c: New file.
65069         * lib/unistr/u32-cmp.c: New file.
65070
65071         * modules/unistr/u8-cpy: New file.
65072         * modules/unistr/u16-cpy: New file.
65073         * modules/unistr/u32-cpy: New file.
65074         * lib/unistr/u8-cpy.c: New file.
65075         * lib/unistr/u16-cpy.c: New file.
65076         * lib/unistr/u32-cpy.c: New file.
65077         * lib/unistr/u-cpy.h: New file.
65078
65079         * modules/unistr/u8-cpy-alloc: New file.
65080         * modules/unistr/u16-cpy-alloc: New file.
65081         * modules/unistr/u32-cpy-alloc: New file.
65082         * lib/unistr/u8-cpy-alloc.c: New file.
65083         * lib/unistr/u16-cpy-alloc.c: New file.
65084         * lib/unistr/u32-cpy-alloc.c: New file.
65085         * lib/unistr/u-cpy-alloc.h: New file.
65086
65087         * modules/unistr/u8-endswith: New file.
65088         * modules/unistr/u16-endswith: New file.
65089         * modules/unistr/u32-endswith: New file.
65090         * lib/unistr/u8-endswith.c: New file.
65091         * lib/unistr/u16-endswith.c: New file.
65092         * lib/unistr/u32-endswith.c: New file.
65093         * lib/unistr/u-endswith.h: New file.
65094
65095         * modules/unistr/u8-mblen: New file.
65096         * modules/unistr/u16-mblen: New file.
65097         * modules/unistr/u32-mblen: New file.
65098         * lib/unistr/u8-mblen.c: New file.
65099         * lib/unistr/u16-mblen.c: New file.
65100         * lib/unistr/u32-mblen.c: New file.
65101
65102         * modules/unistr/u8-mbtouc: New file.
65103         * modules/unistr/u16-mbtouc: New file.
65104         * modules/unistr/u32-mbtouc: New file.
65105         * lib/unistr/u8-mbtouc.c: New file.
65106         * lib/unistr/u16-mbtouc.c: New file.
65107         * lib/unistr/u32-mbtouc.c: New file.
65108
65109         * modules/unistr/u8-mbtouc-safe: New file.
65110         * modules/unistr/u16-mbtouc-safe: New file.
65111         * modules/unistr/u32-mbtouc-safe: New file.
65112         * lib/unistr/u8-mbtouc-safe.c: New file.
65113         * lib/unistr/u16-mbtouc-safe.c: New file.
65114         * lib/unistr/u32-mbtouc-safe.c: New file.
65115
65116         * modules/unistr/u8-move: New file.
65117         * modules/unistr/u16-move: New file.
65118         * modules/unistr/u32-move: New file.
65119         * lib/unistr/u8-move.c: New file.
65120         * lib/unistr/u16-move.c: New file.
65121         * lib/unistr/u32-move.c: New file.
65122         * lib/unistr/u-move.h: New file.
65123
65124         * modules/unistr/u8-next: New file.
65125         * modules/unistr/u16-next: New file.
65126         * modules/unistr/u32-next: New file.
65127         * lib/unistr/u8-next.c: New file.
65128         * lib/unistr/u16-next.c: New file.
65129         * lib/unistr/u32-next.c: New file.
65130
65131         * modules/unistr/u8-prev: New file.
65132         * modules/unistr/u16-prev: New file.
65133         * modules/unistr/u32-prev: New file.
65134         * lib/unistr/u8-prev.c: New file.
65135         * lib/unistr/u16-prev.c: New file.
65136         * lib/unistr/u32-prev.c: New file.
65137
65138         * modules/unistr/u8-set: New file.
65139         * modules/unistr/u16-set: New file.
65140         * modules/unistr/u32-set: New file.
65141         * lib/unistr/u8-set.c: New file.
65142         * lib/unistr/u16-set.c: New file.
65143         * lib/unistr/u32-set.c: New file.
65144         * lib/unistr/u-set.h: New file.
65145
65146         * modules/unistr/u8-startswith: New file.
65147         * modules/unistr/u16-startswith: New file.
65148         * modules/unistr/u32-startswith: New file.
65149         * lib/unistr/u8-startswith.c: New file.
65150         * lib/unistr/u16-startswith.c: New file.
65151         * lib/unistr/u32-startswith.c: New file.
65152         * lib/unistr/u-startswith.h: New file.
65153
65154         * modules/unistr/u8-stpcpy: New file.
65155         * modules/unistr/u16-stpcpy: New file.
65156         * modules/unistr/u32-stpcpy: New file.
65157         * lib/unistr/u8-stpcpy.c: New file.
65158         * lib/unistr/u16-stpcpy.c: New file.
65159         * lib/unistr/u32-stpcpy.c: New file.
65160         * lib/unistr/u-stpcpy.h: New file.
65161
65162         * modules/unistr/u8-stpncpy: New file.
65163         * modules/unistr/u16-stpncpy: New file.
65164         * modules/unistr/u32-stpncpy: New file.
65165         * lib/unistr/u8-stpncpy.c: New file.
65166         * lib/unistr/u16-stpncpy.c: New file.
65167         * lib/unistr/u32-stpncpy.c: New file.
65168         * lib/unistr/u-stpncpy.h: New file.
65169
65170         * modules/unistr/u8-strcat: New file.
65171         * modules/unistr/u16-strcat: New file.
65172         * modules/unistr/u32-strcat: New file.
65173         * lib/unistr/u8-strcat.c: New file.
65174         * lib/unistr/u16-strcat.c: New file.
65175         * lib/unistr/u32-strcat.c: New file.
65176         * lib/unistr/u-strcat.h: New file.
65177
65178         * modules/unistr/u8-strchr: New file.
65179         * modules/unistr/u16-strchr: New file.
65180         * modules/unistr/u32-strchr: New file.
65181         * lib/unistr/u8-strchr.c: New file.
65182         * lib/unistr/u16-strchr.c: New file.
65183         * lib/unistr/u32-strchr.c: New file.
65184
65185         * modules/unistr/u8-strcmp: New file.
65186         * modules/unistr/u16-strcmp: New file.
65187         * modules/unistr/u32-strcmp: New file.
65188         * lib/unistr/u8-strcmp.c: New file.
65189         * lib/unistr/u16-strcmp.c: New file.
65190         * lib/unistr/u32-strcmp.c: New file.
65191
65192         * modules/unistr/u8-strcpy: New file.
65193         * modules/unistr/u16-strcpy: New file.
65194         * modules/unistr/u32-strcpy: New file.
65195         * lib/unistr/u8-strcpy.c: New file.
65196         * lib/unistr/u16-strcpy.c: New file.
65197         * lib/unistr/u32-strcpy.c: New file.
65198         * lib/unistr/u-strcpy.h: New file.
65199
65200         * modules/unistr/u8-strcspn: New file.
65201         * modules/unistr/u16-strcspn: New file.
65202         * modules/unistr/u32-strcspn: New file.
65203         * lib/unistr/u8-strcspn.c: New file.
65204         * lib/unistr/u16-strcspn.c: New file.
65205         * lib/unistr/u32-strcspn.c: New file.
65206         * lib/unistr/u-strcspn.h: New file.
65207
65208         * modules/unistr/u8-strdup: New file.
65209         * modules/unistr/u16-strdup: New file.
65210         * modules/unistr/u32-strdup: New file.
65211         * lib/unistr/u8-strdup.c: New file.
65212         * lib/unistr/u16-strdup.c: New file.
65213         * lib/unistr/u32-strdup.c: New file.
65214         * lib/unistr/u-strdup.h: New file.
65215
65216         * modules/unistr/u8-strlen: New file.
65217         * modules/unistr/u16-strlen: New file.
65218         * modules/unistr/u32-strlen: New file.
65219         * lib/unistr/u8-strlen.c: New file.
65220         * lib/unistr/u16-strlen.c: New file.
65221         * lib/unistr/u32-strlen.c: New file.
65222         * lib/unistr/u-strlen.h: New file.
65223
65224         * modules/unistr/u8-strmblen: New file.
65225         * modules/unistr/u16-strmblen: New file.
65226         * modules/unistr/u32-strmblen: New file.
65227         * lib/unistr/u8-strmblen.c: New file.
65228         * lib/unistr/u16-strmblen.c: New file.
65229         * lib/unistr/u32-strmblen.c: New file.
65230
65231         * modules/unistr/u8-strmbtouc: New file.
65232         * modules/unistr/u16-strmbtouc: New file.
65233         * modules/unistr/u32-strmbtouc: New file.
65234         * lib/unistr/u8-strmbtouc.c: New file.
65235         * lib/unistr/u16-strmbtouc.c: New file.
65236         * lib/unistr/u32-strmbtouc.c: New file.
65237
65238         * modules/unistr/u8-strncat: New file.
65239         * modules/unistr/u16-strncat: New file.
65240         * modules/unistr/u32-strncat: New file.
65241         * lib/unistr/u8-strncat.c: New file.
65242         * lib/unistr/u16-strncat.c: New file.
65243         * lib/unistr/u32-strncat.c: New file.
65244         * lib/unistr/u-strncat.h: New file.
65245
65246         * modules/unistr/u8-strncmp: New file.
65247         * modules/unistr/u16-strncmp: New file.
65248         * modules/unistr/u32-strncmp: New file.
65249         * lib/unistr/u8-strncmp.c: New file.
65250         * lib/unistr/u16-strncmp.c: New file.
65251         * lib/unistr/u32-strncmp.c: New file.
65252
65253         * modules/unistr/u8-strncpy: New file.
65254         * modules/unistr/u16-strncpy: New file.
65255         * modules/unistr/u32-strncpy: New file.
65256         * lib/unistr/u8-strncpy.c: New file.
65257         * lib/unistr/u16-strncpy.c: New file.
65258         * lib/unistr/u32-strncpy.c: New file.
65259         * lib/unistr/u-strncpy.h: New file.
65260
65261         * modules/unistr/u8-strnlen: New file.
65262         * modules/unistr/u16-strnlen: New file.
65263         * modules/unistr/u32-strnlen: New file.
65264         * lib/unistr/u8-strnlen.c: New file.
65265         * lib/unistr/u16-strnlen.c: New file.
65266         * lib/unistr/u32-strnlen.c: New file.
65267         * lib/unistr/u-strnlen.h: New file.
65268
65269         * modules/unistr/u8-strpbrk: New file.
65270         * modules/unistr/u16-strpbrk: New file.
65271         * modules/unistr/u32-strpbrk: New file.
65272         * lib/unistr/u8-strpbrk.c: New file.
65273         * lib/unistr/u16-strpbrk.c: New file.
65274         * lib/unistr/u32-strpbrk.c: New file.
65275         * lib/unistr/u-strpbrk.h: New file.
65276
65277         * modules/unistr/u8-strrchr: New file.
65278         * modules/unistr/u16-strrchr: New file.
65279         * modules/unistr/u32-strrchr: New file.
65280         * lib/unistr/u8-strrchr.c: New file.
65281         * lib/unistr/u16-strrchr.c: New file.
65282         * lib/unistr/u32-strrchr.c: New file.
65283
65284         * modules/unistr/u8-strspn: New file.
65285         * modules/unistr/u16-strspn: New file.
65286         * modules/unistr/u32-strspn: New file.
65287         * lib/unistr/u8-strspn.c: New file.
65288         * lib/unistr/u16-strspn.c: New file.
65289         * lib/unistr/u32-strspn.c: New file.
65290         * lib/unistr/u-strspn.h: New file.
65291
65292         * modules/unistr/u8-strstr: New file.
65293         * modules/unistr/u16-strstr: New file.
65294         * modules/unistr/u32-strstr: New file.
65295         * lib/unistr/u8-strstr.c: New file.
65296         * lib/unistr/u16-strstr.c: New file.
65297         * lib/unistr/u32-strstr.c: New file.
65298         * lib/unistr/u-strstr.h: New file.
65299
65300         * modules/unistr/u8-strtok: New file.
65301         * modules/unistr/u16-strtok: New file.
65302         * modules/unistr/u32-strtok: New file.
65303         * lib/unistr/u8-strtok.c: New file.
65304         * lib/unistr/u16-strtok.c: New file.
65305         * lib/unistr/u32-strtok.c: New file.
65306         * lib/unistr/u-strtok.h: New file.
65307
65308         * modules/unistr/u8-uctomb: New file.
65309         * modules/unistr/u16-uctomb: New file.
65310         * modules/unistr/u32-uctomb: New file.
65311         * lib/unistr/u8-uctomb.c: New file.
65312         * lib/unistr/u16-uctomb.c: New file.
65313         * lib/unistr/u32-uctomb.c: New file.
65314
65315         * MODULES.html.sh (Unicode string functions): Add the new modules.
65316
65317 2007-01-08  Bruno Haible  <bruno@clisp.org>
65318
65319         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65320         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65321         subdirectories.
65322
65323 2007-01-08  Karl Berry  <karl@gnu.org>
65324
65325         * doc/error.texi: mention that main() fns must set program_name
65326         when progname is used.
65327
65328 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65329
65330         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65331         WCTYPE_H is empty, for the benefit of builds from non-distclean
65332         directories.  Problem reported by Eric Blake in
65333         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65334
65335 2007-01-08  Bruno Haible  <bruno@clisp.org>
65336
65337         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65338         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65339         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65340         PROVIDE_CANONICALIZE_FILENAME_MODE.
65341         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65342
65343 2007-01-08  Bruno Haible  <bruno@clisp.org>
65344
65345         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65346         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65347         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65348         * lib/fts.c: Likewise.
65349         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65350
65351 2006-12-25  Bruno Haible  <bruno@clisp.org>
65352
65353         * modules/utf8-ucs4-safe: New file.
65354         * lib/utf8-ucs4-safe.h: New file.
65355         * lib/unistr/utf8-ucs4-safe.c: New file.
65356
65357         * modules/utf16-ucs4-safe: New file.
65358         * lib/utf16-ucs4-safe.h: New file.
65359         * lib/unistr/utf16-ucs4-safe.c: New file.
65360
65361         * MODULES.html.sh (Unicode string functions): Add the new modules.
65362
65363 2007-01-08  Bruno Haible  <bruno@clisp.org>
65364
65365         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65366         (Depends-on): Add unitypes.
65367         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65368         (u8_mbtouc_aux): Move out to separate file.
65369         (u8_mbtouc): Use ucs4_t, uint8_t types.
65370         * lib/unistr/utf8-ucs4.c: New file.
65371
65372         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65373         (Depends-on): Add unitypes.
65374         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65375         (u16_mbtouc_aux): Move out to separate file.
65376         (u16_mbtouc): Use ucs4_t, uint16_t types.
65377         * lib/unistr/utf16-ucs4.c: New file.
65378
65379         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65380         (Depends-on): Add unitypes.
65381         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65382         (u8_uctomb_aux): Move out to separate file.
65383         (u8_uctomb): Use ucs4_t, uint8_t types.
65384         * lib/unistr/ucs4-utf8.c: New file.
65385
65386         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65387         (Depends-on): Add unitypes.
65388         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65389         (u16_uctomb_aux): Move out to separate file.
65390         (u16_uctomb): Use ucs4_t, uint16_t types.
65391         * lib/unistr/ucs4-utf16.c: New file.
65392
65393 2006-12-25  Bruno Haible  <bruno@clisp.org>
65394
65395         * modules/unitypes: New file.
65396         * lib/unitypes.h: New file.
65397         * MODULES.html.sh (func_all_modules): New section "Unicode string
65398         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65399         this section. Add unitypes.
65400
65401 2007-01-08  Bruno Haible  <bruno@clisp.org>
65402
65403         Avoid variable names that conflict with those from libtool.
65404         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65405         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65406         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65407         library_names_spec to acl_library_names_spec, hardcode_* to
65408         acl_hardcode_*.
65409         Reported by Ralf Wildenhues.
65410
65411 2007-01-08  Bruno Haible  <bruno@clisp.org>
65412
65413         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65414         definition.
65415         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65416         definition.
65417         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65418         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65419         definition.
65420         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65421         definition.
65422         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65423         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65424         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65425         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65426         definition.
65427         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65428         definition.
65429         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65430         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65431         GC_USE_<algorithm>.
65432         * lib/gc-libgcrypt.c: Likewise.
65433         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65434         * modules/gc-arctwo (configure.ac): Likewise.
65435         * modules/gc-des (configure.ac): Likewise.
65436         * modules/gc-hmac-md5 (configure.ac): Likewise.
65437         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65438         * modules/gc-md2 (configure.ac): Likewise.
65439         * modules/gc-md4 (configure.ac): Likewise.
65440         * modules/gc-md5 (configure.ac): Likewise.
65441         * modules/gc-random (configure.ac): Likewise.
65442         * modules/gc-rijndael (configure.ac): Likewise.
65443         * modules/gc-sha1 (configure.ac): Likewise.
65444
65445 2007-01-08  Bruno Haible  <bruno@clisp.org>
65446
65447         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65448         macro definition.
65449         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65450         definition.
65451         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65452         definition.
65453         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65454         * modules/fcntl-safer (configure.ac): Likewise.
65455         * modules/fopen-safer (configure.ac): Likewise.
65456         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65457         GNULIB_FWRITEERROR macro definition.
65458
65459 2007-01-08  Bruno Haible  <bruno@clisp.org>
65460
65461         * m4/gnulib-common.m4: New file.
65462         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65463         (func_get_filelist): Add m4/gnulib-common.m4.
65464
65465 2007-01-08  Bruno Haible  <bruno@clisp.org>
65466
65467         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65468         command.
65469
65470 2007-01-08  Jim Meyering  <jim@meyering.net>
65471
65472         Use a more robust test for a "can't happen" condition.
65473         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65474         narrowed the st_size value.  Presuming the "can't happen" condition
65475         is true, that narrowing could conceivably convert an invalid st_size
65476         value into a valid one.  Instead, use a change based on Matthew
65477         Woehlke's original patch.
65478
65479         Slight readability improvement: use an assert-like macro
65480         in place of literal "abort ()" uses.
65481         * lib/fts.c (fts_assert): Define.
65482         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65483         Use this macro instead of a bare 'abort'.
65484
65485 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65486
65487         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65488         simply work around them.
65489         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65490         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65491         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65492         declaring.
65493         Don't bother to define as macros, since the standard doesn't require it.
65494         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65495         longer worry about IRIX 5.3.
65496         (HAVE_WCTYPE_CTMP_BUG): Remove.
65497
65498 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65499
65500         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65501         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65502         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65503         Problems reported by Georg Schwarz for IRIX 5.3.
65504
65505         * gnulib-tool (autoconf_minversion): Take the maximum version number
65506         found, not the minimum.  Problem reported by James Youngman.
65507
65508 2007-01-03  Karl Berry  <karl@gnu.org>
65509
65510         * doc/error.texi: new file, explaining interaction with progname.
65511         * doc/gnulib.texi: include it.  Update copyright.
65512
65513 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65514
65515         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65516         AC_CANONICAL_HOST, to improve autobuild outputs.
65517
65518 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65519             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65520
65521         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65522         sockets, server sockets, and other file descriptors.  Count errors
65523         to compute the return value.  Reorder the code a bit to be easier
65524         to follow.  Don't set event bits that were not requested (except
65525         POLLERR and POLLHUP).
65526
65527 2007-01-01  Bruno Haible  <bruno@clisp.org>
65528
65529         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65530
65531 2007-01-03  Jim Meyering  <jim@meyering.net>
65532
65533         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65534
65535 2007-01-02  Bruno Haible  <bruno@clisp.org>
65536
65537         * modules/settime (Include): Require timespec.h.
65538         * modules/nanosleep (Include): Likewise.
65539
65540 2007-01-01  Bruno Haible  <bruno@clisp.org>
65541
65542         * gnulib-tool (func_emit_copyright_notice): Bump year.
65543         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65544
65545 2007-01-01  Bruno Haible  <bruno@clisp.org>
65546
65547         Improve support for OpenBSD.
65548         * build-aux/config.rpath (libname_spec): Export.
65549         (library_names_spec): New variable. Export.
65550         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65551         library_names_spec from the config.rpath output. Locate shared library
65552         through the name pattern in library_names_spec.
65553
65554 2007-01-01  Eric Blake  <ebb9@byu.net>
65555
65556         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65557
65558 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65559
65560         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65561         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65562         assume the C locale, and avoid an "eval" that could cause trouble.
65563         Problem with SORT reported by Bob Proulx.
65564
65565         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65566         Define.  Trivial patch from Henning Nielsen Lund, originally
65567         sent to bug-grep@gnu.org today.
65568
65569 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65570
65571         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65572         struct stat.  Problem reported by Henning Nielsen Lund.
65573         * lib/acl.c: Include acl.h first, to check interface.  Don't
65574         bother to include sys/types.h and sys/stat.h again.
65575
65576 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65577
65578         Import the following change from libc; problem reported by
65579         Sven Verdoolaege.
65580
65581         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65582
65583         [BZ #1373]
65584         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65585
65586 2006-12-28  Jim Meyering  <jim@meyering.net>
65587
65588         * build-aux/announce-gen: Do not assume that the package
65589         builds any of tar.gz, tar.bz2, and .xdelta files.
65590         Suggestion from Simon Josefsson.
65591
65592 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65593
65594         * modules/announce-gen: New file.
65595
65596 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65597
65598         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65599         handles its gotchas now.
65600         * lib/mbswidth.c: Likewise.
65601         * lib/wcwidth.h: Likewise.
65602         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65603         and iswcntrl; the wctype module does this stuff now.
65604         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65606         * modules/mbchar (Depends-on): Add wctype.
65607         * modules/mbswidth (Depends-on): Likewise.
65608         * modules/wcwidth (Depends-on): Likewise.
65609
65610 2006-12-27  Eric Blake  <ebb9@byu.net>
65611
65612         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65613         module uses more than what <wctype.h> is required to provide.
65614
65615 2006-12-26  Eric Blake  <ebb9@byu.net>
65616
65617         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65618
65619 2006-12-26  Eric Blake  <ebb9@byu.net>
65620
65621         * modules/absolute-header: New module.
65622         * modules/fcntl (Depends-on): Depend on it.
65623         * modules/inttypes (Depends-on): Likewise.
65624         * modules/stdint (Depends-on): Likewise.
65625         * modules/sys_stat (Depends-on): Likewise.
65626         * modules/wctype (Depends-on): Likewise.
65627         * MODULES.html.sh (Support for building libraries and
65628         executables): Document it.
65629
65630 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65631
65632         * gnulib-tool (SED): Remove, undoing previous change.
65633         The problem was that it broke coreutils on Solaris, because
65634         "sed --posix" leaked into a makefile.
65635         (sed): New alias, if 'alias' and GNU sed.
65636
65637 2006-12-24  Jim Meyering  <jim@meyering.net>
65638
65639         Work around an fchownat bug in glibc-2.4:
65640         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65641         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65642         in spite of the -P option.
65643         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65644         New macros.
65645         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65646         * modules/openat (Files): Add lib/fchownat.c.
65647         * lib/openat.c (fchownat): Don't define here.  Move to...
65648         * lib/fchownat.c: ...this new file.
65649
65650 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65651
65652         Fix bug reported by Bruno Haible in
65653         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65654         where quotearg.c didn't compile on Mac OS X 10.2 because it
65655         lacks <wchar.h> and wint_t.
65656         * lib/wctype_.h (__wctype_wint_t): New type.
65657         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65658         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65659         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65660         Arg is now of type __wctype_wint_t, not wint_t.
65661         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65662         substitute HAVE_WINT_T.
65663         * modules/wctype (Files): Add m4/wint_t.m4.
65664         (wctype.h): Substitute HAVE_WINT_T.
65665
65666 2006-12-23  Bruno Haible  <bruno@clisp.org>
65667
65668         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65669
65670 2006-12-23  Bruno Haible  <bruno@clisp.org>
65671
65672         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65673         S_ISLNK.
65674         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65675         mingw.
65676
65677 2006-12-22  Bruno Haible  <bruno@clisp.org>
65678
65679         * lib/copy-file.c: Include acl.h.
65680         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65681         Close the file descriptors only after being done with copy_acl.
65682         * modules/copy-file (Depends-on): Add acl.
65683
65684 2006-12-22  Bruno Haible  <bruno@clisp.org>
65685
65686         * gnulib-tool (SED): New variable.
65687         Use $SED instead of sed everywhere.
65688
65689 2006-12-22  Bruno Haible  <bruno@clisp.org>
65690
65691         * modules/no-c++: New file.
65692         * m4/no-c++.m4: New file.
65693         * MODULES.html.sh (Support for building libraries and executables):
65694         Add no-c++.
65695
65696 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65697
65698         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65699         Include <limits.h>, and use its INT_MAX to rewrite the
65700         j loop so that it does not overflow 'int'.  Problem reported by
65701         Ralf Wildenhues in
65702         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65703         Play it safe by shifting left by 1 rather than multiplying by 2,
65704         as GCC is less likely to optimize this away when the value
65705         is signed (when it assumes overflow leads to undefined behavior).
65706         Also, don't assume time_t uses two's complement.
65707
65708 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65709
65710         * MODULES.html.sh: New module wctype.
65711         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65712         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65713         <wctype.h>, since the new wctype module should fix this.
65714         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65715         the wctype module should arrange for it.
65716         * lib/regex_internal.h: Likewise.
65717         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65718         since the wctype module should handle this now.
65719         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65720         * modules/fnmatch (Depends-on): Add wctype.
65721         * modules/quotearg (Depends-on): Likewise.
65722         * modules/regex (Depends-on): Likewise.
65723
65724 2006-12-19  Bruno Haible  <bruno@clisp.org>
65725
65726         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65727         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65728
65729 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65730
65731         * modules/savewd (Depends-on): Fix dependency on fcntl.
65732
65733 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65734
65735         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65736         conforms to C99, rather than relying on the user's environment
65737         setting of STDINT_H.
65738
65739 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65740         and Eric Blake  <ebb9@byu.net>
65741
65742         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65743         This is more consistent with the other defines here.
65744         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65745         Port to z/OS.  Problem reported by Paul Gilmartin.
65746         Change local vars to use gl_ prefix rather than ac_.
65747         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65748         with other defines.
65749         * modules/double-slash-root: New module.
65750         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65751         (Depends-on): Add double-slash-root.
65752         * MODULES.html.sh (File system functions): Mention new module.
65753
65754 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65755
65756         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65757         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65758         This is for the benefit of gzip, which doesn't do i18n.
65759
65760 2006-12-12  Jim Meyering  <jim@meyering.net>
65761
65762         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65763         Reported by Andreas Schwab <schwab@suse.de>.
65764
65765 2006-12-12  Bruno Haible  <bruno@clisp.org>
65766
65767         Merge these changes.
65768         2006-09-05  Bruno Haible  <bruno@clisp.org>
65769         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65770         iconv_alloc succeeded.
65771         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65772         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65773         test for " && dest " at the end - dest is always != NULL there. Call
65774         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65775         with 2xNULL arguments, also to flush the state storage. Handle the
65776         IRIX iconv behaviour. Realloc the final result, to throw away unused
65777         memory.
65778
65779 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65780
65781         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65782         and fchmodat unconditionally, since glibc 2.4 has them.
65783         Problem reported by Arkadiusz Miskiewicz.
65784
65785 2006-12-10  Bruno Haible  <bruno@clisp.org>
65786
65787         * gnulib-tool (func_import): Show the include files only for those
65788         modules that are copied and specified.
65789         Reported by Karl Berry.
65790
65791 2006-12-08  Jim Meyering  <jim@meyering.net>
65792
65793         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65794         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65795
65796         * build-aux/announce-gen: Add two new options, both optional:
65797         --bootstrap-tools=TOOL_LIST
65798               a comma-separated list of tools, e.g.,
65799               autoconf,automake,bison,gnulib
65800         --gnulib-snapshot-date=DATE
65801               if gnulib is in the bootstrap tool list,
65802               then report this as the snapshot date.
65803               If not specified, use the current date/time.
65804               If you specify a date here, be sure it's UTC.
65805
65806 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65807
65808         * tests/test-argp-2.sh: Fix test to match actual output.
65809         (func_compare): Fix sed script to be portable.
65810
65811 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65812
65813         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65814         workaround for this case.  It is not autoconfigured now; offhand
65815         it's hard to see how to autoconfigure it.
65816
65817 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65818
65819         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65820         a directory that is about to be chowned.  Such a directory's
65821         initial file permissions should permit the owner only and this
65822         should not be changed until after the chown, since the group and
65823         other bits would be incorrect if they granted permission before
65824         the chown.
65825
65826         Fix porting problem for iswctype reported by Georg Schwarz in:
65827         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65828         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65829         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65830         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65831         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65832
65833 2006-12-03  Jim Meyering  <jim@meyering.net>
65834
65835         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65836         p->fts_statp may not yet be defined.
65837         (fts_read): Instead, set it in the caller, once p->fts_statp is
65838         sure to be defined, and corresponds to a top-level directory.
65839         This bug made du -x fail.  Here's the coreutils test case:
65840         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65841         Reported by Mike Frysinger.
65842
65843 2006-12-01  Jim Meyering  <jim@meyering.net>
65844
65845         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65846         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65847         Reported by Simon Josefsson.
65848
65849 2006-11-30  Jim Meyering  <jim@meyering.net>
65850
65851         * m4/warning.m4: Use the all-permissive copyright notice
65852         recommended by RMS (rather than LGPL).
65853         * m4/vararrays.m4: Likewise.
65854         * m4/flexmember.m4: Likewise.
65855
65856 2006-11-29  Bruno Haible  <bruno@clisp.org>
65857
65858         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65859         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65860         using +=.
65861         Reported by Simon Josefsson <simon@josefsson.org>.
65862
65863 2006-11-28  James Youngman <jay@gnu.org>
65864
65865         * README: Advise users that they might find the bug-gnulib@gnu.org
65866         and autotools-announce@gnu.org mailing lists useful.
65867
65868 2006-11-28  Bruno Haible  <bruno@clisp.org>
65869
65870         * m4/ptrdiff_max.m4: Remove file.
65871
65872 2006-11-21  Bruno Haible  <bruno@clisp.org>
65873
65874         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65875         _AC_COMPUTE_INT.
65876         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65877         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65878         _AC_COMPUTE_INT.
65879         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65880         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65881         _AC_COMPUTE_INT.
65882         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65883
65884 2006-11-28  Jim Meyering  <jim@meyering.net>
65885
65886         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65887         warning from "gcc -Wshadow" about shadowing the builtin.
65888
65889 2006-11-27  Bruno Haible  <bruno@clisp.org>
65890
65891         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65892         _AC_COMPUTE_INT.
65893         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65894
65895 2006-11-27  Bruno Haible  <bruno@clisp.org>
65896             Paul Eggert  <eggert@cs.ucla.edu>
65897
65898         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65899
65900 2006-11-26  Bruno Haible  <bruno@clisp.org>
65901
65902         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65903         noinst_LTLIBRARIES.
65904
65905 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65906             Bruno Haible  <bruno@clisp.org>
65907
65908         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65909         if compiling with "gcc -ansi".
65910
65911 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65912
65913         Fix some incompatibilities with gcc -ansi -pedantic.
65914         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65915         if compiling pedantically with GCC, unless it's C99 or later.
65916         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65917         it mishandles gcc -ansi -pedantic as well.
65918         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65919         if gcc -pedantic.
65920         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65921         initializers for struct if -pedantic, unless it's C99 or later.
65922
65923 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65924
65925         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65926         Don't close an fd more than once. Identical atimes indicate
65927         success, not failure.
65928
65929 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65930
65931         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65932
65933 2006-11-23  Jim Meyering  <jim@meyering.net>
65934
65935         * build-aux/announce-gen: New file.  From coreutils.
65936
65937 2006-11-22  Jim Meyering  <jim@meyering.net>
65938
65939         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65940         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65941         (fts_read): Use a temporary to narrow the overused st_size member
65942         before using it in a switch statement.  Reported by Matthew Woehlke.
65943
65944         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65945         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65946
65947 2006-11-20  Bruno Haible  <bruno@clisp.org>
65948
65949         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65950         changequote instead of pairs of brackets.
65951         Reported by Andreas Schwab <schwab@suse.de>.
65952
65953 2006-11-21  Jim Meyering  <jim@meyering.net>
65954
65955         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65956         so as to remain compatible with older compilers.
65957         Patch from Michael Deutschmann.
65958
65959 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65960
65961         * MODULES.html.sh (File system functions): Add openat.
65962
65963         * lib/openat.h (rpl_fstatat): New macro, if
65964         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65965         (fstatat): Define to rpl_fstatat under the same conditions,
65966         unless COMPILING_FSTATAT.
65967         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65968         seems to have the bug.
65969         * lib/fstatat.c: New file.
65970         * modules/openat (Files): Add it.
65971
65972 2006-11-20  Bruno Haible  <bruno@clisp.org>
65973
65974         * Makefile: New file.
65975
65976 2006-11-20  Jim Meyering  <jim@meyering.net>
65977
65978         The beginnings of syntax-related checks for gnulib.
65979         * lib/Makefile: New file.
65980         * lib/t-idcache: New script.  Ensure that the two halves of
65981         idcache.c stay in sync.
65982
65983         * lib/idcache.c: Adjust comments in user- and group- portions to
65984         be more accurate, and to be consistent with one another.
65985
65986 2006-11-20  Jim Meyering  <jim@meyering.net>
65987
65988         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65989         continue using the flexible array member (thus, this module performs
65990         half as many malloc calls), with the addition that...
65991         (getgroup, getuser): Consistently record a non-match via an empty
65992         "name" string, and map an empty string match to a NULL return value.
65993         * modules/idcache (Depends-on): Re-add flexmember.
65994
65995         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65996         (getuidbyname, getgroup, getgidbyname): Likewise.
65997
65998         Use cleaner syntax: NULL rather than 0.
65999         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66000
66001 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66002
66003         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66004         It mishandled the case where the group was missing.
66005         Problem reported by Greg Schafer.
66006         * modules/idcache: Likewise.
66007
66008 2006-11-18  Jim Meyering  <jim@meyering.net>
66009
66010         * check-module (%exempt_header): Add exception for some
66011         conditionally-included headers.
66012
66013         * modules/i-ring (Depends-on): Add verify.
66014         (License): Change to LGPL.
66015
66016 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66017
66018         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66019         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66020         and inttostr.h.  Use snprintf rather than uinttostr, so that
66021         LGPLed code doesn't depend on GPLed.
66022
66023 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66024
66025         * modules/inline (License): Change from GPL to LGPL.
66026
66027 2006-11-17  Jim Meyering  <jim@meyering.net>
66028
66029         * modules/d-type (License): Switch to LGPL.
66030
66031 2006-11-15  Bruno Haible  <bruno@clisp.org>
66032
66033         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66034
66035 2006-11-15  Eric Blake  <ebb9@byu.net>
66036
66037         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66038         the module dependency.
66039
66040 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66041             Bruno Haible  <bruno@clisp.org>
66042
66043         * gnulib-tool (func_create_testdir): Add license consistency check.
66044
66045 2006-11-15  Eric Blake  <ebb9@byu.net>
66046
66047         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66048         random "(cached)" in configure output.
66049
66050 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66051
66052         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66053         test for conforming inttypes.h is both announced and cached.
66054
66055         * MODULES.html.sh (seen_modules, seen_files): New variables.
66056         (func_module): Rewrite to use a few less gnulib-tool and sed
66057         invocations.  Avoid a couple of quadratic algorithms for ...
66058         (missed_modules, missed_files): ... these, with ...
66059         (func_append, func_tmpdir): ... these new functions, from
66060         gnulib-tool.  Analogously, install traps for cleanup.
66061
66062         * tests/test-gc.c (main): Remove unused variables.
66063         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66064
66065 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66066
66067         * modules/inttostr (License): Change to LGPL.
66068
66069 2006-11-14  Eric Blake  <ebb9@byu.net>
66070
66071         * modules/tempname (License): Change to LGPL.
66072
66073 2006-11-14  Eric Blake  <ebb9@byu.net>
66074
66075         * doc/functions.texi (Function Portability): *printf functions on
66076         Cygwin now understand all POSIX size specifiers.
66077
66078 2006-11-14  Bruno Haible  <bruno@clisp.org>
66079
66080         * modules/c-ctype (License): Change to LGPL.
66081
66082 2006-11-12  Bruno Haible  <bruno@clisp.org>
66083
66084         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66085         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66086         for GNOME libraries, for which the include files are installed in
66087         subdirectories of $prefix/include.
66088
66089 2006-11-12  Bruno Haible  <bruno@clisp.org>
66090
66091         * m4/lib-link.m4: Require at least autoconf-2.54.
66092         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66093         name to underscores for the --with option.
66094
66095 2006-11-13  Bruno Haible  <bruno@clisp.org>
66096
66097         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66098         the tests directory.
66099         Reported by Ralf Wildenhues.
66100
66101 2006-11-13  Bruno Haible  <bruno@clisp.org>
66102
66103         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66104         (func_emit_initmacro_end): Undo the override here.
66105         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66106         Works around the famous automake error in coreutils.
66107
66108 2006-11-13  Eric Blake  <ebb9@byu.net>
66109
66110         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66111         element, not its node.
66112
66113 2006-11-12  Bruno Haible  <bruno@clisp.org>
66114
66115         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66116         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66117
66118 2006-11-12  Bruno Haible  <bruno@clisp.org>
66119
66120         * gnulib-tool: New option --local-symlink.
66121         (func_usage): Document it.
66122         (lsymbolic): New variable.
66123         (func_import, func_create_testdir): If --symlink was not specified,
66124         test whether --local-symlink was specified and the file comes from
66125         the local_gnulib_dir.
66126
66127 2006-11-12  Bruno Haible  <bruno@clisp.org>
66128
66129         * gnulib-tool (func_ln): New function.
66130         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66131
66132 2006-11-12  Bruno Haible  <bruno@clisp.org>
66133
66134         Finish support for source files in subdirectories.
66135         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66136         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66137         AUTOMAKE_OPTIONS.
66138         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66139
66140 2006-11-12  Bruno Haible  <bruno@clisp.org>
66141
66142         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66143         EXTRA_lib_SOURCES augmentation.
66144         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66145
66146 2006-11-12  Jim Meyering  <jim@meyering.net>
66147
66148         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66149         file descriptors.  This also averts a failure on systems with
66150         native openat support when a traversed directory lacks "x" access.
66151         * lib/fts_.h: Include "i-ring.h"
66152         (struct FTS) [fts_fd_ring]: New member.
66153         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66154         (FCHDIR): Add parentheses.
66155         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66156         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66157         When descending, rather than simply closing the previous
66158         fts_cwd_fd value, push that file descriptor onto the ring.
66159         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66160         (fts_open): Initialize the new fd_ring member.
66161         (fts_close): Clear the ring.
66162         (fts_safe_changedir): When possible, use our new fd_ring to skip
66163         the diropen and fstat and dev/ino comparison that would normally
66164         accompany a virtual `chdir ("..")'.
66165
66166         * modules/fts (Depends-on): Add i-ring.
66167         * modules/i-ring: New module.
66168         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66169         * m4/i-ring.m4: New file.
66170
66171 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66172
66173         * gnulib-tool (func_create_testdir): Fix replacement of
66174         `build-aux' in configure.ac.  Run autotools in gltests
66175         subdirectory.
66176         (func_create_testdir, func_create_megatestdir, test): There is
66177         no need for '--force' in most autotool invocations in a new
66178         tree.  Actually fail the whole test if any of the tools, or the
66179         configure or make stages fail.
66180
66181         Sync from Automake.
66182         * build-aux/gnupload: Revert last change.  Add pointer to upload
66183         instructions of the GNU Maintenance Instructions.
66184         Suggestion by Karl Berry.
66185
66186 2006-11-10  Jim Meyering  <jim@meyering.net>
66187
66188         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66189
66190 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66191
66192         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66193         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66194         (bind_textdomain_codeset) [! ENABLE_NLS]:
66195         Evaluate all the arguments.  That way, callers get compatible behavior
66196         if the arguments have side effects.  Also, it avoids some GCC
66197         diagnostics in some cases; Joel E. Denny reported problems when Bison
66198         was configured with --enable-gcc-warnigs.
66199
66200 2006-11-10  Jim Meyering  <jim@meyering.net>
66201
66202         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66203         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66204         account.
66205
66206 2006-11-10  Jim Meyering  <jim@meyering.net>
66207
66208         * modules/inline: New file/module.
66209         * modules/xalloc (Files): Remove m4/inline.m4.
66210         (Depends-on): Add inline, instead.
66211         * modules/oset: Likewise.
66212         * modules/list: Likewise.
66213
66214 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66215
66216         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66217         Problem reported by Matthew Woehlke.
66218
66219 2006-11-09  Bruno Haible  <bruno@clisp.org>
66220
66221         * lib/tempname.c (gen_tempname): Remove variant that invokes
66222         __gen_tempname.
66223         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66224         __gen_tempname.
66225
66226 2006-11-08  Bruno Haible  <bruno@clisp.org>
66227
66228         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66229         to 'yes' instead of 'cross-compiling'.
66230
66231 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66232
66233         * lib/quotearg.h (quotearg_free): New decl.
66234         * lib/quotearg.c (quotearg_free): New function.
66235         (slot0, nslots, slotvec0, slotvec):
66236         Now file-scope so that quotearg_free can get at them.
66237
66238 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66239
66240         Sync from Automake.
66241         * build-aux/gnupload: Add missing 'gnu' to example URL.
66242         Report by Karl Berry.
66243
66244 2006-11-08  Bruno Haible  <bruno@clisp.org>
66245
66246         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66247         Suggested by Paul Eggert.
66248
66249 2006-11-08  Jim Meyering  <jim@meyering.net>
66250
66251         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66252         It's already included if !_LIBC.
66253         (fts_safe_changedir): Add a comment.
66254
66255 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66256
66257         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66258         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66259         Matthew Woehlke.
66260
66261         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66262         definitions up, to avoid colliding with change below.
66263         (static_inline) [HAVE_INLINE]: New macro.
66264         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66265         Provide extern decls when !HAVE_INLINE.  Do not define unless
66266         static_inline is defined, either by us or by xmalloc.c.  Use
66267         static_inline rather than static inline.
66268         (XCALLOC): Optimize sizeof(T) = 1 case.
66269         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66270
66271 2006-11-07  Bruno Haible  <bruno@clisp.org>
66272
66273         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66274         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66275         AC_C_INLINE.
66276         * modules/xalloc (Files): Add m4/inline.m4.
66277
66278 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66279
66280         * README: Fix typo.
66281         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66282         (Miscellanous Notes): ...from this.
66283
66284 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66285
66286         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66287         Mention that offsetof should be used instead of sizeof.
66288         From Bruno Haible.
66289
66290 2006-11-07  Bruno Haible  <bruno@clisp.org>
66291
66292         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66293
66294 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66295
66296         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66297         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66298         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66299         (gl_tree_add_before, gl_tree_add_after):
66300         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66301         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66302         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66303         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66304         (gl_linked_add_after, gl_linked_add_at): Likewise.
66305         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66306         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66307         (gl_tree_add_before, gl_tree_add_after): Likewise.
66308         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66309         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66310         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66311
66312 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66313
66314         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66315
66316 2006-11-06  Bruno Haible  <bruno@clisp.org>
66317
66318         * m4/inline.m4: New file.
66319         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66320         * modules/list (Files): Add m4/inline.m4.
66321         * modules/oset (Files): Likewise.
66322
66323 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66324
66325         * lib/idcache.c: Include <stddef.h>, for offsetof.
66326         (struct userid.name): Change from char * to a flexible array member.
66327         All uses changed.
66328         * modules/idcache (Depends-on): Add flexmember.
66329
66330         * MODULES.html.sh (Core language properties): New module flexmember.
66331         * modules/flexmember, m4/flexmember.m4: New files.
66332
66333         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66334         inline functions that are identical with the old xnmalloc_inline,
66335         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66336         that we can avoid some unnecessary integer multiplications and
66337         divisions in the common case where the element size is known at
66338         compile time.
66339         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66340         needed.
66341         (xnboundedmalloc): Remove.
66342         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66343         arguments, for consistency with rest of this header.
66344         (xcharalloc): Rewrite using XNMALLOC.
66345         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66346         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66347         versions have been moved to lib/xalloc.h and renamed to be the
66348         non-*_inline versions.
66349         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66350         and xnrealloc functions, since those functions are now inline and
66351         now call us.
66352         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66353         renaming described above.
66354         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66355         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66356         captures the dependency in AC_C_INLINE.
66357
66358         New module canonicalize-lgpl, proposed by Charles Wilson in
66359         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66360         with a few small changes afterwards.
66361         * MODULES.html.sh (File system functions): New module
66362         canonicalize-lgpl.
66363         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66364         and canonicalize_file_name.
66365         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66366         * modules/canonicalize-lgpl: New files.
66367
66368 2006-11-05  Bruno Haible  <bruno@clisp.org>
66369
66370         * gnulib-tool (func_import, func_create_testdir): Create directories
66371         also for files in subdirectories of lib/.
66372
66373 2006-11-05  Bruno Haible  <bruno@clisp.org>
66374
66375         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66376         ANSI C compliant.
66377
66378 2006-11-03  Bruno Haible  <bruno@clisp.org>
66379
66380         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66381         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66382         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66383         (xnboundedmalloc): New inline function.
66384         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66385         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66386         xmalloc.
66387         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66388         xmalloc.
66389         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66390         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66391         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66392         xmalloc.
66393         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66394         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66395         xmalloc.
66396         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66397         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66398         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66399         xmalloc.
66400         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66401         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66402         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66403         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66404         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66405         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66406         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66407
66408 2006-11-03  Bruno Haible  <bruno@clisp.org>
66409
66410         * lib/c-ctype.h [C++]: Define functions without name mangling.
66411         * lib/fwriteerror.h [C++]: Likewise.
66412         * lib/gcd.h [C++]: Likewise.
66413         * lib/linebreak.h [C++]: Likewise.
66414
66415 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66416
66417         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66418         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66419         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66420         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66421         Check for functions and headers just once.
66422         Check for declaration of canonicalize_file_name.
66423         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66424
66425 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66426
66427         * gnulib-tool (func_import): Fix typo in actioncmd.
66428
66429 2006-11-02  Bruno Haible  <bruno@clisp.org>
66430
66431         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66432         newline sequence in the Makefile.am snippet as a space, like "make"
66433         does.
66434         Reported by Roger Persson <perrog@gmail.com>.
66435
66436 2006-11-01  Bruno Haible  <bruno@clisp.org>
66437
66438         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66439         already declared in <string.h>.
66440         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66441
66442 2006-11-01  Bruno Haible  <bruno@clisp.org>
66443
66444         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66445         * lib/strcase.h: Include <string.h>.
66446         (strcasecmp): Define to rpl_strcasecmp here.
66447
66448 2006-11-01  Bruno Haible  <bruno@clisp.org>
66449
66450         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66451
66452 2006-11-01  Eric Blake  <ebb9@byu.net>
66453
66454         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66455
66456         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66457
66458 2006-10-29  Bruno Haible  <bruno@clisp.org>
66459
66460         Make it compile in C++ mode.
66461         * lib/full-write.c (full_rw): Add a cast.
66462
66463 2006-11-01  Bruno Haible  <bruno@clisp.org>
66464
66465         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66466         be POSIX compliant.
66467         Reported by Roger Persson <perrog@gmail.com>.
66468
66469 2006-11-01  Eric Blake  <ebb9@byu.net>
66470
66471         * lib/getopt_.h: Fix comments.
66472
66473 2006-10-31  Eric Blake  <ebb9@byu.net>
66474
66475         * modules/tmpdir (Depends-on): Add sys_stat.
66476         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66477         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66478         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66479         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66480         tempname.
66481
66482 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66483
66484         Avoid some C++ diagnostics reported by Bruno Haible.
66485         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66486         xmalloc.
66487         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66488         (struct slotvec): Move to top level.
66489         (quotearg_n_options): Rewrite to avoid xmalloc.
66490         * lib/xalloc.h (xcharalloc): New function.
66491         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66492         [defined __cplusplus]: Add function template that provides result
66493         type propagation.  This part of the change is from Bruno Haible.
66494
66495 2006-10-29  Bruno Haible  <bruno@clisp.org>
66496
66497         Make it compile in C++ mode.
66498         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66499         * lib/strnlen1.c (strnlen1): Cast memchr result.
66500         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66501         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66502         (create_temp_dir): Rename local variable 'template'.
66503         (compile_csharp_using_sscli): Add cast.
66504         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66505         * lib/findprog.c (find_in_path): Likewise.
66506         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66507         * lib/wait-process.c (register_slave_subprocess): Likewise.
66508
66509 2006-10-22  Bruno Haible  <bruno@clisp.org>
66510
66511         * modules/tsearch: New file.
66512         * lib/tsearch.h: New file.
66513         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66514         * m4/tsearch.m4: New file.
66515         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66516
66517 2006-10-29  Eric Blake  <ebb9@byu.net>
66518
66519         * lib/arcfour.c: Assume config.h.
66520         * lib/arctwo.c: Likewise.
66521         * lib/base64.c: Likewise.
66522         * lib/check-version.c: Likewise.
66523         * lib/crc.c: Likewise.
66524         * lib/des.c: Likewise.
66525         * lib/gc-gnulib.c: Likewise.
66526         * lib/gc-libgcrypt.c: Likewise.
66527         * lib/gc-pbkdf2-sha1.c: Likewise.
66528         * lib/getaddrinfo.c: Likewise.
66529         * lib/getdelim.c: Likewise.
66530         * lib/getline.c: Likewise.
66531         * lib/hmac-md5.c: Likewise.
66532         * lib/hmac-sha1.c: Likewise.
66533         * lib/iconvme.c: Likewise.
66534         * lib/md2.c: Likewise.
66535         * lib/md4.c: Likewise.
66536         * lib/memxor.c: Likewise.
66537         * lib/read-file.c: Likewise.
66538         * lib/readline.c: Likewise.
66539         * lib/rijndael-alg-fst.c: Likewise.
66540         * lib/rijndael-api-fst.c: Likewise.
66541         * lib/xgetdomainname.c: Likewise.
66542
66543 2006-10-28  Eric Blake  <ebb9@byu.net>
66544
66545         * lib/xstrndup.c: Assume config.h.
66546
66547 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66548
66549         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66550         stat-macros.h is now for our own macros, whereas stat_h is for
66551         macros in the <sys/stat.h> name space.
66552         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66553         (STAT_MACROS_H): Remove.
66554         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66555         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66556         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66557         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66558         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66559         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66560         Move these macros to ...
66561         * lib/stat_.h: here.  Don't include stat-macros.h.
66562         * lib/canonicalize.c: Don't include stat-macros.h.
66563         * lib/chown.c: Likewise.
66564         * lib/euidaccess.c: Likewise.
66565         * lib/file-type.c: Likewise.
66566         * lib/filemode.c: Likewise.
66567         * lib/glob.c: Likewise.
66568         * lib/isapipe.c: Likewise.
66569         * lib/lchown.c: Likewise.
66570         * lib/lstat.c: Likewise.
66571         * lib/mkdir-p.c: Likewise.
66572         * lib/rmdir.c: Likewise.
66573         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66574         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66575         unless mkdir isn't declared, to speed up 'configure'.
66576         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66577         would define all the S_* symbols.
66578         * modules/canonicalize (Depends-on):
66579         Depend on sys_stat, not stat-macros.
66580         * modules/chown: Likewise.
66581         * modules/euidaccess: Likewise.
66582         * modules/filemode: Likewise.
66583         * modules/file-type: Likewise.
66584         * modules/glob: Likewise.
66585         * modules/isapipe: Likewise.
66586         * modules/lchown: Likewise.
66587         * modules/lstat: Likewise.
66588         * modules/mkancesdirs: Likewise.
66589         * modules/rmdir: Likewise.
66590         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66591         * modules/modechange: Likewise.
66592         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66593         (configure.ac): Remove gl_STAT_MACROS.
66594         * modules/sys_stat (Depends-on): Remove stat-macros.
66595
66596 2006-10-27  Bruno Haible  <bruno@clisp.org>
66597
66598         * m4/signed.m4: Remove file.
66599         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66600         invocation.
66601         * modules/vasnprintf (Files): Remove m4/signed.m4.
66602
66603 2006-10-27  Bruno Haible  <bruno@clisp.org>
66604
66605         Update to GNU gettext 0.16.
66606         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66607         m4/inttypes-h.m4, m4/signed.m4.
66608         * m4/gettext.m4: Update to GNU gettext 0.16.
66609         * m4/intl.m4: New file, from GNU gettext.
66610         * m4/intldir.m4: New file, from GNU gettext.
66611         * config/srclist.txt: Update
66612
66613 2006-10-27  Eric Blake  <ebb9@byu.net>
66614
66615         * MODULES.html.sh: Document tempname.
66616         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66617         dependencies.
66618         (Files): Move lib/tempname.c...
66619         * modules/tempname: ...to this new module.
66620         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66621         (gl_PREREQ_TEMPNAME): Move...
66622         * m4/tempname.m4: ...to this new file.
66623         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66624         * modules/sys_stat (Depends-on): Add stat-macros.
66625         * lib/stat_.h (includes): Pick up stat macros.
66626         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66627         if stat macros are broken.
66628         * lib/tempname.c (includes): No need to include "stat-macros.h".
66629         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66630         (direxists, __path_search) [!_LIBC]: Don't compile these in
66631         gnulib; the tmpdir module covers that.
66632         * lib/tempname.h: New file.
66633
66634 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66635
66636         * COPYING: Explain how gnulib-tool converts licence headers.
66637         Almost all wording by Eric Blake.
66638
66639 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66640
66641         * lib/mbchar.h (is_basic_table): Make read-only.
66642         * lib/mbchar.c (is_basic_table): Likewise.
66643         Reported by John Darrington.
66644
66645 2006-10-25  Bruno Haible  <bruno@clisp.org>
66646
66647         * lib/progname.h (set_program_name): Undefine before defining.
66648
66649 2006-10-25  Bruno Haible  <bruno@clisp.org>
66650
66651         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66652         false for non-gcc C++ compilers.
66653         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66654
66655 2006-10-24  Bruno Haible  <bruno@clisp.org>
66656
66657         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66658         iconv implementations like Irix iconv.
66659
66660 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66661
66662         * modules/vararrays: New file.
66663         * m4/vararrays.m4: New file, taken from diffutils.
66664         * MODULES.html.sh: New module vararrays.
66665
66666 2006-10-24  Karl Berry  <karl@gnu.org>
66667
66668         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66669         Don't call GNU Unix.
66670
66671 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66672
66673         * users.txt: Add Libtool.
66674
66675         Sync from Libtool:
66676
66677         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66678
66679         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66680         to gnulib's policy of including config.h unconditionally.
66681
66682 2006-10-24  Bruno Haible  <bruno@clisp.org>
66683
66684         * modules/wcwidth (Files): Add m4/wint_t.m4.
66685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66686         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66687
66688 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66689
66690         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66691         to pacify GCC with some -W flags enabled.  Problem reported by
66692         Bruno Haible.
66693
66694 2006-10-24  Jim Meyering  <jim@meyering.net>
66695
66696         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66697         Reported by Karl Berry.
66698
66699 2006-10-23  Bruno Haible  <bruno@clisp.org>
66700
66701         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66702
66703 2006-10-24  Bruno Haible  <bruno@clisp.org>
66704
66705         * lib/gl_list.h: Use C comment style, not C++ comment style.
66706
66707 2006-10-23  Eric Blake  <ebb9@byu.net>
66708
66709         * lib/getaddrinfo.c (includes): Add missing include.
66710
66711 2006-10-23  Bruno Haible  <bruno@clisp.org>
66712             Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         Ability to rename obstack_free.
66715         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66716         obstack_free.
66717         (obstack_free): Invoke the __obstack_free macro.
66718         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66719
66720 2006-10-23  Bruno Haible  <bruno@clisp.org>
66721             Paul Eggert  <eggert@cs.ucla.edu>
66722
66723         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66724         __argc, __argv from the declaration. (They are defined as macros on
66725         mingw.)
66726
66727 2006-10-22  Bruno Haible  <bruno@clisp.org>
66728
66729         * doc/gnulib-intro.texi: New file.
66730         * doc/gnulib.texi: Include it.
66731
66732 2006-10-21  Bruno Haible  <bruno@clisp.org>
66733
66734         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66735         "Introduction", "Miscellanous Notes", "Particular Modules".
66736
66737 2006-10-21  Bruno Haible  <bruno@clisp.org>
66738
66739         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66740         Change mostlyclean-local rule to avoid sh syntax error from bash
66741         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66742
66743 2006-10-23  Jim Meyering  <jim@meyering.net>
66744
66745         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66746         in place of snprintf.
66747
66748         * modules/inttostr (Files): Add lib/uinttostr.c.
66749         * lib/uinttostr.c (inttostr): New file/function.
66750         * lib/inttostr.h (uinttostr): Declare.
66751         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66752         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66753         Add uinttostr.
66754         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66755
66756 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66757
66758         * lib/canonicalize.c (ELOOP): Define if not already defined.
66759         Problem reported by Bruno Haible in
66760         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66761
66762 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66763
66764         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66765         Problem reported by Perry Smith and Ville Laurikari.
66766
66767         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66768         uses.
66769
66770 2006-10-19  Bruno Haible  <bruno@clisp.org>
66771
66772         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66773         for mingw.
66774
66775 2006-10-19  Bruno Haible  <bruno@clisp.org>
66776
66777         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66778         Needed for mingw.
66779
66780 2006-10-19  Bruno Haible  <bruno@clisp.org>
66781
66782         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66783
66784 2006-10-19  Bruno Haible  <bruno@clisp.org>
66785
66786         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66787         it.
66788
66789 2006-10-19  Bruno Haible  <bruno@clisp.org>
66790
66791         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66792         invocation.
66793
66794 2006-10-19  Bruno Haible  <bruno@clisp.org>
66795
66796         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66797         mountlist by default.
66798
66799 2006-10-16  Bruno Haible  <bruno@clisp.org>
66800
66801         * lib/c-strstr.c: Include c-strstr.h.
66802
66803 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66804
66805         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66806         in a slash.
66807
66808 2006-10-18  Bruno Haible  <bruno@clisp.org>
66809
66810         * lib/lock.h [C++]: Wrap definitions in extern "C".
66811
66812 2006-10-18  Bruno Haible  <bruno@clisp.org>
66813
66814         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66815         gl_LIBOBJS list.
66816
66817 2006-10-18  Bruno Haible  <bruno@clisp.org>
66818
66819         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66820
66821 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66822
66823         * lib/xstrtol.h: Include gettext.h.
66824         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66825         Problem reported by Eric Blake.
66826         * modules/xstrtol (Depends-on): Add gettext-h.
66827
66828 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66829
66830         * lib/strftime.c (advance): New macro.
66831         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66832         incomplete type, so you can't add 0 to it.  Problem and patch
66833         reported by Eelco Dolstra for dietlibc.
66834
66835 2006-10-18  Jim Meyering  <jim@meyering.net>
66836
66837         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66838         type for a local, and rename it: s/up/user_proc/.
66839
66840 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66841
66842         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66843         READ_UTMP_USER_PROCESS.
66844         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66845
66846 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66847
66848         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66849         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66850
66851 2006-10-17  Eric Blake  <ebb9@byu.net>
66852
66853         * lib/sigprocmask.c (sigprocmask): Fix typo.
66854
66855         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66856
66857         * modules/clean-temp (Makefile.am): Don't add to make output...
66858         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66859         config.h.
66860
66861 2006-10-17  Bruno Haible  <bruno@clisp.org>
66862
66863         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66864         differently if DEFAULT_TEXT_DOMAIN is set.
66865
66866 2006-10-16  Bruno Haible  <bruno@clisp.org>
66867
66868         * lib/clean-temp.c: Include fwriteerror.h.
66869
66870 2006-10-16  Bruno Haible  <bruno@clisp.org>
66871
66872         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66873
66874 2006-10-16  Bruno Haible  <bruno@clisp.org>
66875
66876         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66877         * lib/sigprocmask.h: Include <sys/types.h>.
66878         (sigset_t): Use the system's definition if present.
66879
66880 2006-10-17  Eric Blake  <ebb9@byu.net>
66881
66882         * lib/xvasprintf.c (includes): Assume config.h.
66883         * lib/xasprintf.c (includes): Likewise.
66884
66885 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66886
66887         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66888         at least as wide as intmax_t.
66889
66890 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66891
66892         (Imported from Automake.)
66893         * build-aux/gnupload: Update to version 1.1 of directive file.
66894
66895 2006-10-16  Eric Blake  <ebb9@byu.net>
66896
66897         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66898         match Automake 1.10a.
66899
66900 2006-10-14  Bruno Haible  <bruno@clisp.org>
66901
66902         * modules/sigprocmask: New file.
66903         * lib/sigprocmask.h: New file.
66904         * lib/sigprocmask.c: New file.
66905         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66906         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66907         request sigprocmask.o.
66908         (gl_PREREQ_SIGPROCMASK): New macro.
66909         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66910         (Depends-on): Add sigprocmask.
66911         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66912         gt_SIGNALBLOCKING. Test for 'raise' only once.
66913         * lib/fatal-signal.c: Include sigprocmask.h.
66914         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66915         unblock_fatal_signals): Define always.
66916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66917         sigprocmask.
66918
66919 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66920
66921         Sync from Automake.
66922         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66923         which incorrectly sets the mode of an existing destination
66924         directory.  In some cases the unpatched install-sh could do the
66925         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66926         system.  We hope this is rare in practice, but it's clearly worth
66927         fixing.  Problem reported by Alex Unleashed in
66928         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66929         Also, don't bother to check for -m bugs unless we're using -m;
66930         suggested by Stepan Kasal.
66931
66932 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66933
66934         Sync from Automake.
66935         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66936         `-c' flag, so they appear at the same position as in %FASTDEP%
66937         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66938         which ignores unknown options only after the first non-option.
66939         Bug report against M4 by Nelson H. F. Beebe.
66940
66941 2006-10-13  Jim Meyering  <jim@meyering.net>
66942
66943         Fix a bug in yesterday's change.
66944         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66945         p->fts_statp->st_dev would be used uninitialized.
66946         Ensures that we always call fts_stat on the very first entry.
66947         Miklos Szeredi reported that find -xdev stopped working.
66948
66949 2006-10-12  Bruno Haible  <bruno@clisp.org>
66950
66951         * gnulib-tool (func_get_automake_snippet): Append an automatically
66952         computed EXTRA_DIST augmentation.
66953         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66954         * modules/alloca-opt (Makefile.am): Likewise.
66955         * modules/allocsa (Makefile.am): Likewise.
66956         * modules/arcfour (Makefile.am): Likewise.
66957         * modules/arctwo (Makefile.am): Likewise.
66958         * modules/argmatch (Makefile.am): Likewise.
66959         * modules/argz (Makefile.am): Likewise.
66960         * modules/atexit (Makefile.am): Likewise.
66961         * modules/backupfile (Makefile.am): Likewise.
66962         * modules/byteswap (Makefile.am): Likewise.
66963         * modules/c-strtod (Makefile.am): Likewise.
66964         * modules/c-strtold (Makefile.am): Likewise.
66965         * modules/calloc (Makefile.am): Likewise.
66966         * modules/canon-host (Makefile.am): Likewise.
66967         * modules/canonicalize (Makefile.am): Likewise.
66968         * modules/chdir-long (Makefile.am): Likewise.
66969         * modules/chdir-safer (Makefile.am): Likewise.
66970         * modules/check-version (Makefile.am): Likewise.
66971         * modules/chown (Makefile.am): Likewise.
66972         * modules/cloexec (Makefile.am): Likewise.
66973         * modules/close-stream (Makefile.am): Likewise.
66974         * modules/closeout (Makefile.am): Likewise.
66975         * modules/crc (Makefile.am): Likewise.
66976         * modules/csharpexec (Makefile.am): Likewise.
66977         * modules/cycle-check (Makefile.am): Likewise.
66978         * modules/des (Makefile.am): Likewise.
66979         * modules/dev-ino (Makefile.am): Likewise.
66980         * modules/dirfd (Makefile.am): Likewise.
66981         * modules/dirname (Makefile.am): Likewise.
66982         * modules/dup2 (Makefile.am): Likewise.
66983         * modules/eealloc (Makefile.am): Likewise.
66984         * modules/error (Makefile.am): Likewise.
66985         * modules/euidaccess (Makefile.am): Likewise.
66986         * modules/exclude (Makefile.am): Likewise.
66987         * modules/exitfail (Makefile.am): Likewise.
66988         * modules/fcntl-safer (Makefile.am): Likewise.
66989         * modules/fcntl (Makefile.am): Likewise.
66990         * modules/file-type (Makefile.am): Likewise.
66991         * modules/fileblocks (Makefile.am): Likewise.
66992         * modules/filemode (Makefile.am): Likewise.
66993         * modules/filenamecat (Makefile.am): Likewise.
66994         * modules/fnmatch (Makefile.am): Likewise.
66995         * modules/fopen-safer (Makefile.am): Likewise.
66996         * modules/fpending (Makefile.am): Likewise.
66997         * modules/fprintftime (Makefile.am): Likewise.
66998         * modules/free (Makefile.am): Likewise.
66999         * modules/fsusage (Makefile.am): Likewise.
67000         * modules/ftruncate (Makefile.am): Likewise.
67001         * modules/fts (Makefile.am): Likewise.
67002         * modules/gc-arcfour (Makefile.am): Likewise.
67003         * modules/gc-des (Makefile.am): Likewise.
67004         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67005         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67006         * modules/gc-md4 (Makefile.am): Likewise.
67007         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67008         * modules/gc-sha1 (Makefile.am): Likewise.
67009         * modules/gc (Makefile.am): Likewise.
67010         * modules/getaddrinfo (Makefile.am): Likewise.
67011         * modules/getcwd (Makefile.am): Likewise.
67012         * modules/getdelim (Makefile.am): Likewise.
67013         * modules/getdomainname (Makefile.am): Likewise.
67014         * modules/getgroups (Makefile.am): Likewise.
67015         * modules/gethostname (Makefile.am): Likewise.
67016         * modules/gethrxtime (Makefile.am): Likewise.
67017         * modules/getline (Makefile.am): Likewise.
67018         * modules/getloadavg (Makefile.am): Likewise.
67019         * modules/getlogin_r (Makefile.am): Likewise.
67020         * modules/getndelim2 (Makefile.am): Likewise.
67021         * modules/getopt (Makefile.am): Likewise.
67022         * modules/getpagesize (Makefile.am): Likewise.
67023         * modules/getpass-gnu (Makefile.am): Likewise.
67024         * modules/getpass (Makefile.am): Likewise.
67025         * modules/getsubopt (Makefile.am): Likewise.
67026         * modules/gettime (Makefile.am): Likewise.
67027         * modules/gettimeofday (Makefile.am): Likewise.
67028         * modules/getugroups (Makefile.am): Likewise.
67029         * modules/getusershell (Makefile.am): Likewise.
67030         * modules/glob (Makefile.am): Likewise.
67031         * modules/group-member (Makefile.am): Likewise.
67032         * modules/hard-locale (Makefile.am): Likewise.
67033         * modules/hash (Makefile.am): Likewise.
67034         * modules/hmac-md5 (Makefile.am): Likewise.
67035         * modules/hmac-sha1 (Makefile.am): Likewise.
67036         * modules/human (Makefile.am): Likewise.
67037         * modules/idcache (Makefile.am): Likewise.
67038         * modules/imaxabs (Makefile.am): Likewise.
67039         * modules/imaxdiv (Makefile.am): Likewise.
67040         * modules/inet_ntop (Makefile.am): Likewise.
67041         * modules/inet_pton (Makefile.am): Likewise.
67042         * modules/intprops (Makefile.am): Likewise.
67043         * modules/inttostr (Makefile.am): Likewise.
67044         * modules/inttypes (Makefile.am): Likewise.
67045         * modules/isapipe (Makefile.am): Likewise.
67046         * modules/javaversion (Makefile.am): Likewise.
67047         * modules/lchmod (Makefile.am): Likewise.
67048         * modules/lchown (Makefile.am): Likewise.
67049         * modules/localcharset (Makefile.am): Likewise.
67050         * modules/long-options (Makefile.am): Likewise.
67051         * modules/lstat (Makefile.am): Likewise.
67052         * modules/malloc (Makefile.am): Likewise.
67053         * modules/mathl (Makefile.am): Likewise.
67054         * modules/mbchar (Makefile.am): Likewise.
67055         * modules/md2 (Makefile.am): Likewise.
67056         * modules/md4 (Makefile.am): Likewise.
67057         * modules/md5 (Makefile.am): Likewise.
67058         * modules/memcasecmp (Makefile.am): Likewise.
67059         * modules/memchr (Makefile.am): Likewise.
67060         * modules/memcmp (Makefile.am): Likewise.
67061         * modules/memcoll (Makefile.am): Likewise.
67062         * modules/memcpy (Makefile.am): Likewise.
67063         * modules/memmem (Makefile.am): Likewise.
67064         * modules/memmove (Makefile.am): Likewise.
67065         * modules/mempcpy (Makefile.am): Likewise.
67066         * modules/memrchr (Makefile.am): Likewise.
67067         * modules/memset (Makefile.am): Likewise.
67068         * modules/memxor (Makefile.am): Likewise.
67069         * modules/mkancesdirs (Makefile.am): Likewise.
67070         * modules/mkdir-p (Makefile.am): Likewise.
67071         * modules/mkdir (Makefile.am): Likewise.
67072         * modules/mkdtemp (Makefile.am): Likewise.
67073         * modules/mkstemp (Makefile.am): Likewise.
67074         * modules/mktime (Makefile.am): Likewise.
67075         * modules/modechange (Makefile.am): Likewise.
67076         * modules/mountlist (Makefile.am): Likewise.
67077         * modules/nanosleep (Makefile.am): Likewise.
67078         * modules/obstack (Makefile.am): Likewise.
67079         * modules/openat (Makefile.am): Likewise.
67080         * modules/pagealign_alloc (Makefile.am): Likewise.
67081         * modules/pathmax (Makefile.am): Likewise.
67082         * modules/physmem (Makefile.am): Likewise.
67083         * modules/poll (Makefile.am): Likewise.
67084         * modules/posixtm (Makefile.am): Likewise.
67085         * modules/posixver (Makefile.am): Likewise.
67086         * modules/putenv (Makefile.am): Likewise.
67087         * modules/quote (Makefile.am): Likewise.
67088         * modules/quotearg (Makefile.am): Likewise.
67089         * modules/raise (Makefile.am): Likewise.
67090         * modules/read-file (Makefile.am): Likewise.
67091         * modules/readline (Makefile.am): Likewise.
67092         * modules/readlink (Makefile.am): Likewise.
67093         * modules/readtokens (Makefile.am): Likewise.
67094         * modules/readutmp (Makefile.am): Likewise.
67095         * modules/realloc (Makefile.am): Likewise.
67096         * modules/regex (Makefile.am): Likewise.
67097         * modules/rename-dest-slash (Makefile.am): Likewise.
67098         * modules/rename (Makefile.am): Likewise.
67099         * modules/rijndael (Makefile.am): Likewise.
67100         * modules/rmdir (Makefile.am): Likewise.
67101         * modules/rpmatch (Makefile.am): Likewise.
67102         * modules/safe-read (Makefile.am): Likewise.
67103         * modules/safe-write (Makefile.am): Likewise.
67104         * modules/same-inode (Makefile.am): Likewise.
67105         * modules/same (Makefile.am): Likewise.
67106         * modules/save-cwd (Makefile.am): Likewise.
67107         * modules/savedir (Makefile.am): Likewise.
67108         * modules/setenv (Makefile.am): Likewise.
67109         * modules/settime (Makefile.am): Likewise.
67110         * modules/sha1 (Makefile.am): Likewise.
67111         * modules/sig2str (Makefile.am): Likewise.
67112         * modules/snprintf (Makefile.am): Likewise.
67113         * modules/stat-macros (Makefile.am): Likewise.
67114         * modules/stat-time (Makefile.am): Likewise.
67115         * modules/stdbool (Makefile.am): Likewise.
67116         * modules/stdint (Makefile.am): Likewise.
67117         * modules/stdlib-safer (Makefile.am): Likewise.
67118         * modules/stpcpy (Makefile.am): Likewise.
67119         * modules/stpncpy (Makefile.am): Likewise.
67120         * modules/strcase (Makefile.am): Likewise.
67121         * modules/strcasestr (Makefile.am): Likewise.
67122         * modules/strchrnul (Makefile.am): Likewise.
67123         * modules/strcspn (Makefile.am): Likewise.
67124         * modules/strdup (Makefile.am): Likewise.
67125         * modules/strerror (Makefile.am): Likewise.
67126         * modules/strftime (Makefile.am): Likewise.
67127         * modules/strndup (Makefile.am): Likewise.
67128         * modules/strnlen (Makefile.am): Likewise.
67129         * modules/strpbrk (Makefile.am): Likewise.
67130         * modules/strsep (Makefile.am): Likewise.
67131         * modules/strstr (Makefile.am): Likewise.
67132         * modules/strtod (Makefile.am): Likewise.
67133         * modules/strtoimax (Makefile.am): Likewise.
67134         * modules/strtok_r (Makefile.am): Likewise.
67135         * modules/strtol (Makefile.am): Likewise.
67136         * modules/strtoll (Makefile.am): Likewise.
67137         * modules/strtoul (Makefile.am): Likewise.
67138         * modules/strtoull (Makefile.am): Likewise.
67139         * modules/strtoumax (Makefile.am): Likewise.
67140         * modules/strverscmp (Makefile.am): Likewise.
67141         * modules/sys_socket (Makefile.am): Likewise.
67142         * modules/sys_stat (Makefile.am): Likewise.
67143         * modules/sysexits (Makefile.am): Likewise.
67144         * modules/time_r (Makefile.am): Likewise.
67145         * modules/timegm (Makefile.am): Likewise.
67146         * modules/timespec (Makefile.am): Likewise.
67147         * modules/tmpfile-safer (Makefile.am): Likewise.
67148         * modules/trim (Makefile.am): Likewise.
67149         * modules/unistd-safer (Makefile.am): Likewise.
67150         * modules/unlinkdir (Makefile.am): Likewise.
67151         * modules/unlocked-io (Makefile.am): Likewise.
67152         * modules/userspec (Makefile.am): Likewise.
67153         * modules/utime (Makefile.am): Likewise.
67154         * modules/utimecmp (Makefile.am): Likewise.
67155         * modules/utimens (Makefile.am): Likewise.
67156         * modules/vasnprintf (Makefile.am): Likewise.
67157         * modules/vasprintf (Makefile.am): Likewise.
67158         * modules/vsnprintf (Makefile.am): Likewise.
67159         * modules/xalloc (Makefile.am): Likewise.
67160         * modules/xgetcwd (Makefile.am): Likewise.
67161         * modules/xnanosleep (Makefile.am): Likewise.
67162         * modules/xreadlink (Makefile.am): Likewise.
67163         * modules/xstrtod (Makefile.am): Likewise.
67164         * modules/xstrtol (Makefile.am): Likewise.
67165         * modules/xstrtold (Makefile.am): Likewise.
67166         * modules/yesno (Makefile.am): Likewise.
67167         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67168
67169 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67170
67171         * modules/error (Makefile.am): Distribute files through
67172         EXTRA_DIST, not lib_SOURCES.
67173
67174 2006-10-12  Eric Blake  <ebb9@byu.net>
67175
67176         * modules/error (Makefile.am): Distribute files in /lib.
67177         * modules/obstack (Makefile.am): Likewise.
67178
67179 2006-10-12  Bruno Haible  <bruno@clisp.org>
67180
67181         * modules/acl (Makefile.am): Distribute all files in lib/ through
67182         EXTRA_DIST.
67183         * modules/arcfour (Makefile.am): Likewise.
67184         * modules/arctwo (Makefile.am): Likewise.
67185         * modules/argmatch (Makefile.am): Likewise.
67186         * modules/argz (Makefile.am): Likewise.
67187         * modules/atexit (Makefile.am): Likewise.
67188         * modules/backupfile (Makefile.am): Likewise.
67189         * modules/c-strtod (Makefile.am): Likewise.
67190         * modules/c-strtold (Makefile.am): Likewise.
67191         * modules/calloc (Makefile.am): Likewise.
67192         * modules/canon-host (Makefile.am): Likewise.
67193         * modules/canonicalize (Makefile.am): Likewise.
67194         * modules/chdir-long (Makefile.am): Likewise.
67195         * modules/chdir-safer (Makefile.am): Likewise.
67196         * modules/check-version (Makefile.am): Likewise.
67197         * modules/chown (Makefile.am): Likewise.
67198         * modules/cloexec (Makefile.am): Likewise.
67199         * modules/close-stream (Makefile.am): Likewise.
67200         * modules/closeout (Makefile.am): Likewise.
67201         * modules/crc (Makefile.am): Likewise.
67202         * modules/cycle-check (Makefile.am): Likewise.
67203         * modules/des (Makefile.am): Likewise.
67204         * modules/dirfd (Makefile.am): Likewise.
67205         * modules/dirname (Makefile.am): Likewise.
67206         * modules/dup2 (Makefile.am): Likewise.
67207         * modules/euidaccess (Makefile.am): Likewise.
67208         * modules/exclude (Makefile.am): Likewise.
67209         * modules/exitfail (Makefile.am): Likewise.
67210         * modules/fcntl-safer (Makefile.am): Likewise.
67211         * modules/file-type (Makefile.am): Likewise.
67212         * modules/fileblocks (Makefile.am): Likewise.
67213         * modules/filemode (Makefile.am): Likewise.
67214         * modules/filenamecat (Makefile.am): Likewise.
67215         * modules/fnmatch (Makefile.am): Likewise.
67216         * modules/fopen-safer (Makefile.am): Likewise.
67217         * modules/fpending (Makefile.am): Likewise.
67218         * modules/fprintftime (Makefile.am): Likewise.
67219         * modules/free (Makefile.am): Likewise.
67220         * modules/fsusage (Makefile.am): Likewise.
67221         * modules/ftruncate (Makefile.am): Likewise.
67222         * modules/fts (Makefile.am): Likewise.
67223         * modules/gc (Makefile.am): Likewise.
67224         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67225         * modules/getaddrinfo (Makefile.am): Likewise.
67226         * modules/getcwd (Makefile.am): Likewise.
67227         * modules/getdelim (Makefile.am): Likewise.
67228         * modules/getdomainname (Makefile.am): Likewise.
67229         * modules/getgroups (Makefile.am): Likewise.
67230         * modules/gethostname (Makefile.am): Likewise.
67231         * modules/gethrxtime (Makefile.am): Likewise.
67232         * modules/getline (Makefile.am): Likewise.
67233         * modules/getloadavg (Makefile.am): Likewise.
67234         * modules/getlogin_r (Makefile.am): Likewise.
67235         * modules/getopt (Makefile.am): Likewise.
67236         * modules/getpass (Makefile.am): Likewise.
67237         * modules/getpass-gnu (Makefile.am): Likewise.
67238         * modules/getsubopt (Makefile.am): Likewise.
67239         * modules/gettime (Makefile.am): Likewise.
67240         * modules/gettimeofday (Makefile.am): Likewise.
67241         * modules/getugroups (Makefile.am): Likewise.
67242         * modules/getusershell (Makefile.am): Likewise.
67243         * modules/glob (Makefile.am): Likewise.
67244         * modules/group-member (Makefile.am): Likewise.
67245         * modules/hard-locale (Makefile.am): Likewise.
67246         * modules/hash (Makefile.am): Likewise.
67247         * modules/hmac-md5 (Makefile.am): Likewise.
67248         * modules/hmac-sha1 (Makefile.am): Likewise.
67249         * modules/human (Makefile.am): Likewise.
67250         * modules/idcache (Makefile.am): Likewise.
67251         * modules/imaxabs (Makefile.am): Likewise.
67252         * modules/imaxdiv (Makefile.am): Likewise.
67253         * modules/inet_ntop (Makefile.am): Likewise.
67254         * modules/inet_pton (Makefile.am): Likewise.
67255         * modules/inttostr (Makefile.am): Likewise.
67256         * modules/isapipe (Makefile.am): Likewise.
67257         * modules/lchown (Makefile.am): Likewise.
67258         * modules/long-options (Makefile.am): Likewise.
67259         * modules/lstat (Makefile.am): Likewise.
67260         * modules/malloc (Makefile.am): Likewise.
67261         * modules/mathl (Makefile.am): Likewise.
67262         * modules/mbchar (Makefile.am): Likewise.
67263         * modules/md2 (Makefile.am): Likewise.
67264         * modules/md4 (Makefile.am): Likewise.
67265         * modules/md5 (Makefile.am): Likewise.
67266         * modules/memcasecmp (Makefile.am): Likewise.
67267         * modules/memchr (Makefile.am): Likewise.
67268         * modules/memcmp (Makefile.am): Likewise.
67269         * modules/memcoll (Makefile.am): Likewise.
67270         * modules/memcpy (Makefile.am): Likewise.
67271         * modules/memmem (Makefile.am): Likewise.
67272         * modules/memmove (Makefile.am): Likewise.
67273         * modules/mempcpy (Makefile.am): Likewise.
67274         * modules/memrchr (Makefile.am): Likewise.
67275         * modules/memset (Makefile.am): Likewise.
67276         * modules/memxor (Makefile.am): Likewise.
67277         * modules/mkancesdirs (Makefile.am): Likewise.
67278         * modules/mkdir (Makefile.am): Likewise.
67279         * modules/mkdir-p (Makefile.am): Likewise.
67280         * modules/mkdtemp (Makefile.am): Likewise.
67281         * modules/mkstemp (Makefile.am): Likewise.
67282         * modules/mktime (Makefile.am): Likewise.
67283         * modules/modechange (Makefile.am): Likewise.
67284         * modules/mountlist (Makefile.am): Likewise.
67285         * modules/nanosleep (Makefile.am): Likewise.
67286         * modules/openat (Makefile.am): Likewise.
67287         * modules/pagealign_alloc (Makefile.am): Likewise.
67288         * modules/physmem (Makefile.am): Likewise.
67289         * modules/poll (Makefile.am): Likewise.
67290         * modules/posixtm (Makefile.am): Likewise.
67291         * modules/posixver (Makefile.am): Likewise.
67292         * modules/putenv (Makefile.am): Likewise.
67293         * modules/quote (Makefile.am): Likewise.
67294         * modules/quotearg (Makefile.am): Likewise.
67295         * modules/raise (Makefile.am): Likewise.
67296         * modules/read-file (Makefile.am): Likewise.
67297         * modules/readline (Makefile.am): Likewise.
67298         * modules/readlink (Makefile.am): Likewise.
67299         * modules/readtokens (Makefile.am): Likewise.
67300         * modules/readutmp (Makefile.am): Likewise.
67301         * modules/realloc (Makefile.am): Likewise.
67302         * modules/regex (Makefile.am): Likewise.
67303         * modules/rename (Makefile.am): Likewise.
67304         * modules/rename-dest-slash (Makefile.am): Likewise.
67305         * modules/rijndael (Makefile.am): Likewise.
67306         * modules/rmdir (Makefile.am): Likewise.
67307         * modules/rpmatch (Makefile.am): Likewise.
67308         * modules/safe-read (Makefile.am): Likewise.
67309         * modules/safe-write (Makefile.am): Likewise.
67310         * modules/same (Makefile.am): Likewise.
67311         * modules/save-cwd (Makefile.am): Likewise.
67312         * modules/savedir (Makefile.am): Likewise.
67313         * modules/setenv (Makefile.am): Likewise.
67314         * modules/settime (Makefile.am): Likewise.
67315         * modules/sha1 (Makefile.am): Likewise.
67316         * modules/sig2str (Makefile.am): Likewise.
67317         * modules/snprintf (Makefile.am): Likewise.
67318         * modules/stdlib-safer (Makefile.am): Likewise.
67319         * modules/stpcpy (Makefile.am): Likewise.
67320         * modules/stpncpy (Makefile.am): Likewise.
67321         * modules/strcase (Makefile.am): Likewise.
67322         * modules/strcasestr (Makefile.am): Likewise.
67323         * modules/strchrnul (Makefile.am): Likewise.
67324         * modules/strcspn (Makefile.am): Likewise.
67325         * modules/strdup (Makefile.am): Likewise.
67326         * modules/strerror (Makefile.am): Likewise.
67327         * modules/strftime (Makefile.am): Likewise.
67328         * modules/strndup (Makefile.am): Likewise.
67329         * modules/strnlen (Makefile.am): Likewise.
67330         * modules/strpbrk (Makefile.am): Likewise.
67331         * modules/strsep (Makefile.am): Likewise.
67332         * modules/strstr (Makefile.am): Likewise.
67333         * modules/strtod (Makefile.am): Likewise.
67334         * modules/strtoimax (Makefile.am): Likewise.
67335         * modules/strtok_r (Makefile.am): Likewise.
67336         * modules/strtol (Makefile.am): Likewise.
67337         * modules/strtoll (Makefile.am): Likewise.
67338         * modules/strtoul (Makefile.am): Likewise.
67339         * modules/strtoull (Makefile.am): Likewise.
67340         * modules/strtoumax (Makefile.am): Likewise.
67341         * modules/strverscmp (Makefile.am): Likewise.
67342         * modules/time_r (Makefile.am): Likewise.
67343         * modules/timegm (Makefile.am): Likewise.
67344         * modules/tmpfile-safer (Makefile.am): Likewise.
67345         * modules/unistd-safer (Makefile.am): Likewise.
67346         * modules/unlinkdir (Makefile.am): Likewise.
67347         * modules/userspec (Makefile.am): Likewise.
67348         * modules/utime (Makefile.am): Likewise.
67349         * modules/utimecmp (Makefile.am): Likewise.
67350         * modules/utimens (Makefile.am): Likewise.
67351         * modules/vasnprintf (Makefile.am): Likewise.
67352         * modules/vasprintf (Makefile.am): Likewise.
67353         * modules/vsnprintf (Makefile.am): Likewise.
67354         * modules/xalloc (Makefile.am): Likewise.
67355         * modules/xgetcwd (Makefile.am): Likewise.
67356         * modules/xnanosleep (Makefile.am): Likewise.
67357         * modules/xreadlink (Makefile.am): Likewise.
67358         * modules/xstrtod (Makefile.am): Likewise.
67359         * modules/xstrtol (Makefile.am): Likewise.
67360         * modules/xstrtold (Makefile.am): Likewise.
67361         * modules/yesno (Makefile.am): Likewise.
67362
67363 2006-10-12  Jim Meyering  <jim@meyering.net>
67364
67365         * m4/getloadavg.m4: Revert the change below.
67366
67367         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67368         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67369         fail with a symlink, which is what coreutils' ./bootstrap now
67370         creates by default.
67371
67372 2006-10-12  Bruno Haible  <bruno@clisp.org>
67373
67374         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67375         mingw.
67376         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67377         MSVC and mingw explicitly.
67378
67379 2006-10-11  Simon Josefsson  <jas@extundo.com>
67380             Bruno Haible  <bruno@clisp.org>
67381
67382         Add support for multiple gnulib-tool invocations in the scope of a
67383         single configure.ac file.
67384         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67385         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67386         with the same contents as the _LIBADD variable.
67387         (func_emit_initmacro_start, func_emit_initmacro_end,
67388         func_emit_initmacro_done): New functions.
67389         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67390         gl_LIBOBJS and gl_LTLIBOBJS.
67391
67392 2006-10-11  Bruno Haible  <bruno@clisp.org>
67393
67394         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67395         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67396         autoreconf. Instead, invoke autopoint explicitly but move back the
67397         *.m4 files from gnulib.
67398
67399 2006-10-11  Bruno Haible  <bruno@clisp.org>
67400
67401         * gnulib-tool (func_usage): Make module names after --create-testdir
67402         optional.
67403         (func_create_testdir): If no module was specified, use nearly all
67404         modules.
67405
67406 2006-10-12  Jim Meyering  <jim@meyering.net>
67407
67408         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67409         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67410         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67411         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67412         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67413         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67414         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67415         (fts_set_stat_required): New function.
67416         (fts_open): Defer the calls to fts_stat, if possible or requested.
67417         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67418         into fts_stat itself.
67419         (fts_read): Perform any required (deferred) fts_stat call.
67420         (fts_build): Likewise, for the directory we're about to open and read.
67421         In the readdir loop, carefully decide whether each entry will require
67422         an eventual call to fts_stat, using dirent.d_type info if available.
67423         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67424         a command line argument into this function.  Update all callers.
67425         Map a return value of FTS_DOT to FTS_D for a command line argument.
67426         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67427         Thanks to Miklos Szeredi for his tenacity and for the initial
67428         bug report about "find" failing on a FUSE-based file system.
67429
67430         * lib/fts.c (fts_open): Use consistent indentation.
67431
67432 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67433
67434         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67435         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67436         reported by Jim Meyering.  All uses of cache variables renamed
67437         to match Autoconf's.
67438         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67439         the other one.
67440
67441         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67442         Fix misspelling in diagnostic.
67443
67444 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67445
67446         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67447         defined.  Problem reported by Matthew Woehlke.
67448
67449         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67450         Add support for Tandem NonStop R series.
67451         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67452         Use new macro.
67453
67454         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67455         (has_trailing_slash): Omit size arg; all callers changed.
67456         Omit 'inline', since it doesn't help performance and we'd
67457         need to configure it.
67458         Don't count //, ///, etc. as having a trailing slash.
67459         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67460         (rpl_rename_dest_slash): On failure, use rename's errno rather
67461         than (in some cases) an incorrect or junk errno.
67462         Simplify code by removing need to compute length; this does
67463         cause it to make two passes instead of one over the file name,
67464         but it's worth it.
67465
67466         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67467         change, since Autoconf's version may no longer be appropriate now
67468         that we are using CVS Autoconf's version.  Add support for Tandem.
67469
67470 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67471             Bruno Haible  <bruno@clisp.org>
67472
67473         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67474         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67475         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67476         gl_AC_TYPE_LONG_LONG.
67477
67478         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67479         instead of HAVE_LONG_LONG.
67480         * lib/printf-args.c (printf_fetchargs): Likewise.
67481         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67482         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67483         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67484         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67485         gl_AC_TYPE_LONG_LONG.
67486
67487 2006-10-11  Bruno Haible  <bruno@clisp.org>
67488
67489         * m4/longlong.m4: Add comments.
67490         * m4/ulonglong.m4: Likewise.
67491
67492 2006-10-10  Bruno Haible  <bruno@clisp.org>
67493
67494         Make it possible to #define stpcpy, strdup to aliases.
67495         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67496         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67497
67498 2006-10-10  Bruno Haible  <bruno@clisp.org>
67499
67500         Make it possible to #define gcd to an alias.
67501         * lib/gcd.c: Include config.h.
67502
67503 2006-10-10  Bruno Haible  <bruno@clisp.org>
67504
67505         Make it possible to #define c_isascii to an alias.
67506         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67507         defined. Undefine the macros before defining them, to avoid gcc
67508         warnings.
67509         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67510         define NO_C_CTYPE_MACROS early.
67511
67512 2006-10-10  Bruno Haible  <bruno@clisp.org>
67513
67514         Make it possible to #define set_program_name to an alias.
67515         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67516         ENABLE_RELOCATABLE early.
67517
67518 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67519
67520         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67521         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67522         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67523         More generally, don't assume that 64-bit signed int is available
67524         if unsigned int is, and vice versa.
67525         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67526         unsigned symbols, not on their signed counterparts.
67527         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67528         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67529         (UINT64_C, UINTMAX_C):
67530         Likewise.
67531         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67532         unsigned counterparts.
67533         (Have_long_long, Unsigned): New macros.
67534         (Int): Renamed from INT.
67535         (strtoimax): Use the new macros.
67536         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67537         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67538         * modules/inttypes (inttypes.h): Substitute
67539         HAVE_UNSIGNED_LONG_LONG_INT.
67540         * modules/stdint (stdint.h): Likewise.
67541         (Files): Add m4/ulonglong.m4.
67542
67543 2006-10-10  Bruno Haible  <bruno@clisp.org>
67544
67545         Fix a gcc -Wshadow warning.
67546         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67547         to 'bucket'.
67548         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67549         gl_linked_indexof_from_to): Likewise.
67550         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67551         Likewise.
67552         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67553         Likewise.
67554         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67555         Reported by Eric Blake.
67556
67557 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67558
67559         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67560         for NetBSD.  Problem reported by Bruno Haible.
67561
67562 2006-10-09  Jim Meyering  <jim@meyering.net>
67563
67564         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67565         Patch from Bruno Haible.
67566
67567 2006-10-09  Jim Meyering  <jim@meyering.net>
67568
67569         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67570         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67571         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67572
67573 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67574
67575         Don't include <config.h> twice; this doesn't work in some cases,
67576         e.g., when config.h has "#define intmax_t long long int" and
67577         we include <config.h>, <inttypes.h>, <config.h> in that order.
67578         Problem reported by Matthew Woehlke in:
67579         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67580         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67581         * lib/fts-cycle.c: Don't include config.h.
67582         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67583         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67584         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67585         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67586         inttypes.h.
67587         * lib/xstrtoumax.c: Likewise.
67588         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67589         __strtol and the like, so that this module is more like its siblings.
67590         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67591         Remove; no longer needed now that we assume gnulib inttypes.h.
67592
67593 2006-10-08  Bruno Haible  <bruno@clisp.org>
67594
67595         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67596         option.
67597
67598 2006-10-07  Jim Meyering  <jim@meyering.net>
67599
67600         * modules/inttypes (inttypes.h): Revert what seems to have been
67601         an inadvertent part of today's change: use "|", not "/" in the
67602         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67603
67604 2006-10-07  Bruno Haible  <bruno@clisp.org>
67605
67606         * modules/sublist: New file.
67607
67608 2006-10-07  Bruno Haible  <bruno@clisp.org>
67609
67610         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67611         * modules/argz (argz.h): Likewise.
67612         * modules/arpa_inet (arpa/inet.h): Likewise.
67613         * modules/byteswap (byteswap.h): Likewise.
67614         * modules/configmake (configmake.h): Likewise.
67615         * modules/fcntl (fcntl.h): Likewise.
67616         * modules/fnmatch (fnmatch.h): Likewise.
67617         * modules/getopt (getopt.h): Likewise.
67618         * modules/glob (glob.h): Likewise.
67619         * modules/inttypes (inttypes.h): Likewise.
67620         * modules/netinet_in (netinet/in.h): Likewise.
67621         * modules/poll (poll.h): Likewise.
67622         * modules/stdbool (stdbool.h): Likewise.
67623         * modules/stdint (stdint.h): Likewise.
67624         * modules/sys_select (sys/select.h): Likewise.
67625         * modules/sys_socket (sys/socket.h): Likewise.
67626         * modules/sys_stat (sys/stat.h): Likewise.
67627         * modules/sysexits (sysexits.h): Likewise.
67628         * modules/unistd (unistd.h): Likewise.
67629         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67630         Add a "DO NOT EDIT" comment to the generated file.
67631         (func_import): Likewise for gnulib-comp.m4.
67632
67633 2006-10-07  Bruno Haible  <bruno@clisp.org>
67634
67635         * lib/gl_sublist.h: New file.
67636         * lib/gl_sublist.c: New file.
67637
67638 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67639
67640         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67641         name (relative to the original working directory) and the file
67642         name component (relative to the temporary working directory).  All
67643         callers changed.
67644         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67645         * lib/mkdir-p.c (make_dir_parents): Likewise.
67646         * lib/mkdir-p.h (make_dir_parents): Likewise.
67647
67648 2006-10-06  Eric Blake  <ebb9@byu.net>
67649
67650         Define several macros for use by the clean-temp module.
67651         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67652         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67653         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67654
67655         * lib/clean-temp.h (close_stream_temp): New declaration.
67656         * lib/clean-temp.c (includes): Pull in headers according to what
67657         other modules are in use.
67658         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67659
67660 2006-10-06  Bruno Haible  <bruno@clisp.org>
67661
67662         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67663         instead of fopen, fwriteerror.
67664
67665 2006-10-06  Bruno Haible  <bruno@clisp.org>
67666
67667         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67668         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67669         int.
67670         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67671         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67672         Return an error indicator.
67673         Suggested by Eric Blake.
67674
67675 2006-10-06  Bruno Haible  <bruno@clisp.org>
67676
67677         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67678         Reported by Eric Blake.
67679
67680 2006-10-06  Bruno Haible  <bruno@clisp.org>
67681
67682         * modules/closeout (Description): Mention stderr too.
67683
67684 2006-10-06  Bruno Haible  <bruno@clisp.org>
67685         and Paul Eggert  <eggert@cs.ucla.edu>
67686
67687         * lib/closeout.c (close_stdout): Also close stderr.
67688         * lib/closeout.h: Update comment.
67689
67690 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67693         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67694         * lib/dirchownmod.c: Include lchown.h.
67695         * lib/lchown.c: Don't include files that lchown.h now includes.
67696         Don't declare chown, since lchown.h now does that.
67697         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67698         (lchown): Define to rpl_chown if lchown is declared but
67699         does not exist.  Declare using a prototype if lchown is not
67700         declared.  Add a copyright notice.
67701         * lib/mkstemp.h: Include <unistd.h>.
67702         * lib/openat.c: Include lchown.h.
67703
67704         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67705         we now test for that separately.
67706         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67707         rather than O_NOFOLLOW, when testing whether it's possible to
67708         avoid a race condition reliably.
67709         * lib/savewd.c (savewd_chdir): Likewise.
67710
67711         Remove macros that are no longer needed now that stdint.h is
67712         reliable.
67713         * lib/fsusage.c (UINTMAX_MAX): Remove.
67714         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67715         * lib/utimecmp.c (SIZE_MAX): Remove.
67716
67717         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67718
67719         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67720         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67721         O_NOATIME works.
67722
67723 2006-10-05  Bruno Haible  <bruno@clisp.org>
67724
67725         * lib/gl_list.h (gl_sortedlist_search_from_to,
67726         gl_sortedlist_indexof_from_to): New declarations.
67727         (gl_list_implementation): New fields sortedlist_search_from_to,
67728         sortedlist_indexof_from_to.
67729         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67730         inline functions.
67731         * lib/gl_list.c (gl_sortedlist_search_from_to,
67732         gl_sortedlist_indexof_from_to): New functions.
67733         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67734         function.
67735         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67736         (gl_array_sortedlist_search_from_to): New function.
67737         (gl_array_list_implementation): Update.
67738         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67739         function.
67740         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67741         (gl_carray_sortedlist_search_from_to): New function.
67742         (gl_carray_list_implementation): Update.
67743         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67744         gl_linked_sortedlist_indexof_from_to): New functions.
67745         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67746         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67747         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67748         gl_tree_sortedlist_indexof_from_to): New functions.
67749         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67750         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67751         Update.
67752         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67753         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67754         Update.
67755
67756 2006-10-05  Bruno Haible  <bruno@clisp.org>
67757
67758         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67759         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67760         (struct gl_list_implementation): Add fields search_from_to,
67761         indexof_from_to. Remove fields search, indexof.
67762         (gl_list_search): Use the search_from_to method.
67763         (gl_list_search_from, gl_list_search_from_to): New functions.
67764         (gl_list_indexof): Use the indexof_from_to method.
67765         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67766         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67767         (gl_list_search_from, gl_list_search_from_to): New functions.
67768         (gl_list_indexof): Use the indexof_from_to method.
67769         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67770         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67771         gl_array_indexof. Add start_index, end_index arguments.
67772         (gl_array_search_from_to): Renamed from gl_array_search. Add
67773         start_index, end_index arguments.
67774         (gl_array_remove, gl_array_list_implementation): Update.
67775         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67776         gl_carray_indexof. Add start_index, end_index arguments.
67777         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67778         start_index, end_index arguments.
67779         (gl_carray_remove, gl_carray_list_implementation): Update.
67780         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67781         gl_linked_search. Add start_index, end_index arguments.
67782         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67783         start_index, end_index arguments.
67784         (gl_linked_remove): Update.
67785         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67786         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67787         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67788         field to 'size_t'.
67789         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67790         gl_tree_search. Add start_index, end_index arguments.
67791         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67792         start_index, end_index arguments.
67793         (gl_tree_remove): Update.
67794         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67795         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67796         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67797         function.
67798         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67799         gl_tree_search. Add start_index, end_index arguments.
67800         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67801         start_index, end_index arguments.
67802         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67803         Update.
67804         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67805
67806 2006-10-05  Bruno Haible  <bruno@clisp.org>
67807
67808         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67809
67810         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67811         fwriteerror_temp): New declarations.
67812         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67813         (descriptors): New variable.
67814         (cleanup): First, close the descriptors.
67815         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67816         fclose_temp, fwriteerror_temp): New functions.
67817
67818 2006-10-04  Jim Meyering  <jim@meyering.net>
67819
67820         * lib/fts.c (fts_open): Tiny comment change.
67821
67822 2006-10-04  Bruno Haible  <bruno@clisp.org>
67823
67824         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67825         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67826         gl_LOCK_BODY.
67827         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67828         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67829         gl_LOCK_EARLY_BODY.
67830         (gl_LOCK): Require gl_LOCK_BODY.
67831
67832 2006-10-04  Bruno Haible  <bruno@clisp.org>
67833
67834         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67835         (gl_oset_search_atleast): New declaration.
67836         (struct gl_oset_implementation): Add field 'search_atleast'.
67837         (gl_oset_search_atleast): New inline function.
67838         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67839         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67840         (gl_array_oset_implementation): Update.
67841         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67842         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67843         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67844
67845 2006-10-04  Bruno Haible  <bruno@clisp.org>
67846
67847         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67848
67849 2006-10-03  Bruno Haible  <bruno@clisp.org>
67850
67851         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67852         from gl_avltreehash_list_implementation.
67853
67854 2006-10-03  Bruno Haible  <bruno@clisp.org>
67855
67856         * lib/gl_oset.c (gl_oset_add): Fix return type.
67857
67858 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67859
67860         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67861
67862 2006-10-02  Eric Blake  <ebb9@byu.net>
67863
67864         * modules/strnlen (Depends-on): Add extensions.
67865
67866 2006-10-02  Eric Blake  <ebb9@byu.net>
67867
67868         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67869         definition in 2.60+.
67870
67871 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67872
67873         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67874         checks.
67875
67876 2006-10-02  Bruno Haible  <bruno@clisp.org>
67877
67878         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67879         to the AUTOMAKE_OPTIONS.
67880         Reported by Jim Meyering.
67881
67882 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67883
67884         Work around bug in Solaris 10 /proc file system:
67885         /proc/self/fd/NNN/.. isn't the parent directory of
67886         the directory whose file descriptor is NNN.  This needs to
67887         be worked around at run time, not compile time, since a
67888         program might be built on Solaris 8, where things work, and
67889         run on Solaris 10.
67890         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67891         to use the following interface instead:
67892         (OPENAT_BUFFER_SIZE): New macro.
67893         (openat_proc_name): New function.
67894         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67895         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67896         Likewise.
67897         * lib/openat-proc.c: New file.
67898         * modules/openat (Files): Add lib/openat-proc.c.
67899         (Depends-on): Add same-inode, stdbool.
67900         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67901
67902 2006-09-29  Bruno Haible  <bruno@clisp.org>
67903
67904         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67905         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67906         argument. Set stdout_closed before testing for ferror, not after.
67907         (fwriteerror, fwriteerror_no_ebadf): New functions.
67908
67909 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67910
67911         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67912
67913 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67914
67915         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67916         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67917
67918 2006-09-28  Jim Meyering  <jim@meyering.net>
67919
67920         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67921         Include <unistd.h>.
67922
67923 2006-09-28  Bruno Haible  <bruno@clisp.org>
67924
67925         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67926         * modules/linkedhash-list (Depends-on): Likewise.
67927         * modules/rbtreehash-list (Depends-on): Likewise.
67928
67929 2006-09-28  Bruno Haible  <bruno@clisp.org>
67930
67931         * lib/strndup.h: Simplify the redefinition of strndup.
67932         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67933         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67934
67935 2006-09-28  Bruno Haible  <bruno@clisp.org>
67936
67937         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67938         * lib/gl_linkedhash_list.c: Likewise.
67939         * lib/gl_rbtreehash_list.c: Likewise.
67940
67941 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67942
67943         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67944         getaddrinfo.
67945
67946         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67947         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67948         it causes <stdio_ext.h> to cause a compile-time error.
67949         Problem reported by Nelson H. F. Beebe.
67950         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67951         of HAVE_DECL___PENDING.
67952
67953         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67954         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67955         declaration.
67956
67957 2006-09-27  Jim Meyering  <jim@meyering.net>
67958
67959         This file could end up with a definition for a function
67960         named __strndup, rather than rpl_strndup on a system with
67961         incomplete weak_alias support.
67962         * lib/strndup.c (strndup): Rename from __strndup.
67963         Remove #defines that used to map __strndup to strndup.
67964         Don't use K&R prototypes.
67965         Remove LIBC-related code, since this file is not sync'd with glibc.
67966         * lib/strndup.h: Revamp, accordingly.
67967         * m4/strndup.m4: Modernize.
67968
67969 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67970
67971         * modules/savewd (Depends-on): Add 'raise'.
67972         * lib/savewd.c: Include <signal.h>, for 'raise'.
67973
67974 2006-09-26  Jim Meyering  <jim@meyering.net>
67975
67976         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67977         when we detect Darwin 8.7.0's acl_get_file bug.
67978         Rearrange to perform the new (below) run-test while $LIBS
67979         contains any acl-related library.  Set USE_ACL at the end.
67980         (gl_ACL_GET_FILE): New function.
67981
67982 2006-09-26  Eric Blake  <ebb9@byu.net>
67983
67984         * lib/verror.c: Include <config.h> unconditionally.
67985
67986 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67987
67988         * modules/clock-time (Maintainer): Add self.
67989         * modules/getlogin_r (Depends-on): Add extensions.
67990
67991 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67992
67993         * modules/clock-time: New module.
67994         * modules/nanosleep (Depends-on): Add clock-time.
67995         * modules/gethrxtime (Depends-on): Likewise.
67996         * modules/gettime (Depends-on): Likewise.
67997         * modules/settime (Depends-on): Likewise.
67998
67999         * modules/fts-lgpl: Depend on openat.
68000         * modules/mkancesdirs: Depend on savewd.
68001         * modules/mkdir-p: Likewise.
68002
68003 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68004
68005         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68006
68007         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68008         `gl_have_arbitrary_file_name_length_limit' to
68009         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68010         actually works between configure runs.
68011
68012 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68013             Bruno Haible  <bruno@clisp.org>
68014
68015         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68016
68017 2006-09-25  Jim Meyering  <jim@meyering.net>
68018
68019         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68020         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68021
68022 2006-09-25  Eric Blake  <ebb9@byu.net>
68023
68024         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68025         exec's in 2006-09-18 patch when shuffling fds.
68026
68027 2006-09-25  Bruno Haible  <bruno@clisp.org>
68028
68029         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68030         Reported by Jim Meyering.
68031
68032 2006-09-24  Jim Meyering  <jim@meyering.net>
68033
68034         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68035         compare a pointer against a literal "0".  That caused failures with
68036         at least HP-UX's hpcc.
68037
68038 2006-09-22  Simon Josefsson  <jas@extundo.com>
68039
68040         * modules/gc-sha1:
68041         * modules/gc-md4:
68042         * modules/gc-hmac-sha1:
68043         * modules/gc-hmac-md5:
68044         * modules/gc-des:
68045         * modules/gc-arcfour: Distribute more files.
68046
68047 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68048
68049         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68050         (gl_linked_iterator_from_to): Initialize struct completely.
68051         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68052         (gl_tree_iterator_from_to): Likewise
68053         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68054         * lib/gl_array_list.c [lint] (gl_array_iterator)
68055         (gl_array_iterator_from_to): Likewise.
68056         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68057         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68058         (gl_carray_iterator_from_to): Likewise.
68059
68060         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68061         * lib/md4.c (md4_process_block): Remove unused variable.
68062         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68063         parentheses for clarity.
68064
68065 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68066
68067         * modules/bison-i18n (Depends-on): Add gettext.
68068
68069 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68070
68071         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68072         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68073         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68074         also add missing comma that caused broken test.
68075         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68076         stdlib.h, for `abort'.
68077         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68078         variables.
68079         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68080         include unistd.h if present, for `rmdir'.
68081         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68082         variables.
68083         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68084         in the process include standard headers for prototypes.
68085         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68086         gets declared on GNU/Linux.
68087         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68088         unistd.h, for `rmdir'.
68089         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68090
68091         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68092         always true.
68093         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68094
68095         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68096
68097 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68098
68099         * gnulib-tool (func_version): Create output all at once.  This
68100         may help avoid triggering unnecessary SIGPIPEs, and at any
68101         rate it doesn't hurt.
68102
68103 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68104             Bruno Haible  <bruno@clisp.org>
68105
68106         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68107         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68108         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68109
68110         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68111         (gl_FUNC_VASPRINTF): Invoke it.
68112
68113 2006-09-22  Bruno Haible  <bruno@clisp.org>
68114
68115         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68116         getloadavg.c as first argument.
68117
68118 2006-09-22  Bruno Haible  <bruno@clisp.org>
68119
68120         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68121         at the beginning of the gl_INIT macro.
68122         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68123         gl_GETLOADAVG.
68124
68125 2006-09-22  Bruno Haible  <bruno@clisp.org>
68126
68127         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68128         module.
68129         Suggested by Ralf Wildenhues.
68130
68131 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68132
68133         Import this patch from libc:
68134
68135         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68136
68137         * lib/regex_internal.c (re_string_reconstruct): Handle
68138         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68139         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68140         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68141         re_string_context_at.
68142
68143         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68144         now requires it.
68145         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68146         gl_REGEX now does it for us.
68147         (gl_REGEX): Add test taken from
68148         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68149
68150         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68151         Check that large offsets work.  Modernize Autoconf usages.
68152         Prefer "yes" to mean a good thing rather than a bad.
68153         Don't put "#define mkstemp" in config.h, as this might interfere
68154         with standard system headers that "#define mkstemp mkstemp64".
68155
68156         * modules/mkstemp (Depends-on): Add extensions, so that
68157         mkstemp is visible on some platforms.
68158         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68159         (Include): Change to "mkstemp.h" from <stdlib.h>.
68160         (Files): Add mkstemp.h.
68161
68162         * lib/mkstemp.h: New file, since some standard headers
68163         #define mkstemp.
68164         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68165         Include "mkstemp.h".
68166         Make the _LIBC code resemble glibc original more,
68167         e.g., use K&R style.
68168         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68169         (mkstemp): Remove, since mkstemp.h does this for us.
68170         * lib/stdlib--.h: Include mkstemp.h.
68171
68172         Import this patch from libc:
68173
68174         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68175
68176         * lib/tempname.c (__gen_tempname): Change attempts_min
68177         into a macro.  Use preprocessor to decide how to initialize
68178         attempts [Coverity CID 67].
68179
68180 2006-09-20  Bruno Haible  <bruno@clisp.org>
68181
68182         * lib/mkdtemp.c: Import from libc.
68183         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68184                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68185                 attempts_min into a macro.  Use preprocessor to decide how to
68186                 initialize attempts [Coverity CID 67].
68187         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68188                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68189                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68190
68191 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68192
68193         * gnulib-tool (func_exit): New function, to allow to pass the
68194         exit status portably through the trap.  Use everywhere.
68195         (--help, --version): Signal a write error.
68196         (trap): catch SIGPIPE, for write errors.
68197         Exit at the end of the trap, with the correct exit status.
68198
68199 2006-09-19  Karl Berry  <karl@gnu.org>
68200
68201         * doc/gnulib.texi: note about the license texinfo files.
68202
68203 2006-09-19  Eric Blake  <ebb9@byu.net>
68204
68205         * gnulib-tool: Avoid space-tab.
68206
68207 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68208
68209         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68210         that prevented coreutils 6.1 from building.  Problem reported
68211         by Petter Reinholdtsen.
68212
68213 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68214
68215         * gnulib-tool (avoidlist): Fix typo that broke options like
68216         --avoid=lock that are used by coreutils bootstrap.
68217
68218 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68219
68220         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68221         more systematically.
68222
68223 2006-09-18  Jim Meyering  <jim@meyering.net>
68224
68225         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68226
68227 2006-09-18  Bruno Haible  <bruno@clisp.org>
68228
68229         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68230
68231 2006-09-18  Bruno Haible  <bruno@clisp.org>
68232
68233         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68234         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68235         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68236         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68237         * m4/gettext.m4: Require autoconf >= 2.52.
68238         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68239         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68240         of gl_cv_header_inttypes_h.
68241
68242 2006-09-18  Bruno Haible  <bruno@clisp.org>
68243
68244         * lib/javaversion.c: Include configmake.h.
68245
68246 2006-09-18  Bruno Haible  <bruno@clisp.org>
68247
68248         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68249         avoid that the while loops be executed in a subshell.
68250
68251 2006-09-18  Bruno Haible  <bruno@clisp.org>
68252
68253         * MODULES.html.sh (func_module): Break long lines.
68254         Suggested by Bruce Korb <bkorb@gnu.org>.
68255
68256 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68257
68258         Speed up by a factor of 1.12.
68259         * gnulib-tool (nl): New variable.
68260         (func_import): Rewrite include directive extraction to only read each
68261         directive once.
68262
68263 2006-09-17  Bruno Haible  <bruno@clisp.org>
68264
68265         * modules/javaversion (Makefile.am): Remove DEFS setting.
68266         (Depends-on): Add configmake, for PKGDATADIR definition.
68267
68268 2006-09-17  Bruno Haible  <bruno@clisp.org>
68269
68270         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68271
68272 2006-09-17  Bruno Haible  <bruno@clisp.org>
68273
68274         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68275         (func_modules_transitive_closure, func_modules_add_dummy,
68276         func_modules_to_filelist, func_import, func_create_testdir,
68277         func_create_megatestdir, ...): Use it wherever possible.
68278         Suggested by Ralf Wildenhues.
68279
68280 2006-09-16  Karl Berry  <karl@gnu.org>
68281
68282         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68283         to avoid sectioning errors.
68284         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68285         [ifinfo]: blank line after @center-ed titles.
68286         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68287         Spell FSF address consistently with others.
68288         (These changes approved by rms.)
68289
68290 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68291
68292         Speed up by a factor of 1.61.
68293         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68294         already checked module names again.
68295
68296 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68297
68298         Speed up by a factor of 1.13.
68299         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68300         for new_files, and the input to func_add_or_update.
68301
68302 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68303
68304         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68305         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68306
68307 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         * modules/mkancesdirs (Depends-on): Add fcntl.
68310         * modules/savewd: New file.
68311         * MODULES.html.sh (File system functions): Add savewd.
68312
68313         * modules/configmake (Makefile.am): Add support for the
68314         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68315
68316 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * m4/savewd.m4: New file.
68319
68320 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68321
68322         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68323         (dirchownmod): New arg FD.  All callers changed.
68324         Use FD rather than opening the directory ourself, as opening is
68325         now the caller's responsibility.
68326         * lib/dirchownmod.h: Likewise.
68327         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68328         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68329         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68330         (test_dir): Remove.
68331         (mkancesdirs): Return length of prefix of FILE that has already
68332         been made, or -2 if there is a child doing the work.  Redo
68333         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68334         ".", and treat ".." specially since it might stray back into
68335         already-created areas.  Use a subprocess if necessary.  New arg
68336         WD; all users changed.  MAKE_DIR function should now return 1
68337         if it creates a directory that is not readable.  Return -2 if
68338         a child process is spun off.
68339         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68340         Adjust signature to match code.
68341         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68342         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68343         all users changed.
68344         * lib/savewd.c, lib/savewd.h: New files.
68345
68346 2006-09-15  Jim Meyering  <jim@meyering.net>
68347
68348         * modules/rename-dest-slash: New module.
68349         * MODULES.html.sh (posix_compat): Add it here.
68350
68351         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68352
68353 2006-09-15  Jim Meyering  <jim@meyering.net>
68354
68355         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68356         file.
68357
68358         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68359
68360 2006-09-15  Jim Meyering  <jim@meyering.net>
68361
68362         * lib/rename-dest-slash.c (has_trailing_slash): Use
68363         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68364         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68365         test before testing whether SRC is a directory.
68366         Suggestions from Bruno Haible.
68367
68368         Avoid a warning about an unused variable.
68369         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68370         into the #ifdef block where it's used.
68371
68372         * lib/rename-dest-slash.c: New file.
68373
68374 2006-09-14  Bruno Haible  <bruno@clisp.org>
68375
68376         * lib/allocsa.c: Include <config.h> unconditionally.
68377         * lib/asnprintf.c: Likewise.
68378         * lib/asprintf.c: Likewise.
68379         * lib/c-strcasecmp.c: Likewise.
68380         * lib/c-strcasestr.c: Likewise.
68381         * lib/c-strncasecmp.c: Likewise.
68382         * lib/c-strstr.c: Likewise.
68383         * lib/classpath.c: Likewise.
68384         * lib/clean-temp.c: Likewise.
68385         * lib/concatpath.c: Likewise.
68386         * lib/copy-file.c: Likewise.
68387         * lib/csharpcomp.c: Likewise.
68388         * lib/csharpexec.c: Likewise.
68389         * lib/execute.c: Likewise.
68390         * lib/fatal-signal.c: Likewise.
68391         * lib/findprog.c: Likewise.
68392         * lib/fwriteerror.c: Likewise.
68393         * lib/gl_array_list.c: Likewise.
68394         * lib/gl_array_oset.c: Likewise.
68395         * lib/gl_avltree_list.c: Likewise.
68396         * lib/gl_avltree_oset.c: Likewise.
68397         * lib/gl_avltreehash_list.c: Likewise.
68398         * lib/gl_carray_list.c: Likewise.
68399         * lib/gl_linked_list.c: Likewise.
68400         * lib/gl_linkedhash_list.c: Likewise.
68401         * lib/gl_list.c: Likewise.
68402         * lib/gl_oset.c: Likewise.
68403         * lib/gl_rbtree_list.c: Likewise.
68404         * lib/gl_rbtree_oset.c: Likewise.
68405         * lib/gl_rbtreehash_list.c: Likewise.
68406         * lib/imaxabs.c: Likewise.
68407         * lib/imaxdiv.c: Likewise.
68408         * lib/javacomp.c: Likewise.
68409         * lib/javaexec.c: Likewise.
68410         * lib/javaversion.c: Likewise.
68411         * lib/linebreak.c: Likewise.
68412         * lib/localcharset.c: Likewise.
68413         * lib/lock.c: Likewise.
68414         * lib/mbchar.c: Likewise.
68415         * lib/mbswidth.c: Likewise.
68416         * lib/mkdtemp.c: Likewise.
68417         * lib/pipe.c: Likewise.
68418         * lib/printf-args.c: Likewise.
68419         * lib/printf-parse.c: Likewise.
68420         * lib/progname.c: Likewise.
68421         * lib/progreloc.c: Likewise.
68422         * lib/readlink.c: Likewise.
68423         * lib/sh-quote.c: Likewise.
68424         * lib/stpcpy.c: Likewise.
68425         * lib/stpncpy.c: Likewise.
68426         * lib/strcasecmp.c: Likewise.
68427         * lib/strcasestr.c: Likewise.
68428         * lib/strcspn.c: Likewise.
68429         * lib/striconv.c: Likewise.
68430         * lib/strncasecmp.c: Likewise.
68431         * lib/strnlen1.c: Likewise.
68432         * lib/strstr.c: Likewise.
68433         * lib/strtok_r.c: Likewise.
68434         * lib/tls.c: Likewise.
68435         * lib/tmpdir.c: Likewise.
68436         * lib/unicodeio.c: Likewise.
68437         * lib/unsetenv.c: Likewise.
68438         * lib/vasnprintf.c: Likewise.
68439         * lib/vasprintf.c: Likewise.
68440         * lib/wait-process.c: Likewise.
68441         * lib/xallocsa.c: Likewise.
68442         * lib/xsetenv.c: Likewise.
68443         * lib/xstriconv.c: Likewise.
68444
68445 2006-09-13  Simon Josefsson  <jas@extundo.com>
68446
68447         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68448         that internally, suggested by Ralf Wildenhues
68449         <Ralf.Wildenhues@gmx.de>.
68450
68451 2006-09-13  Simon Josefsson  <jas@extundo.com>
68452
68453         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68454         @LIBOBJS@.
68455         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68456
68457 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68458
68459         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68460         longer worry about uses that don't define HAVE_CONFIG_H.
68461         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68462         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68463         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68464         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68465         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68466         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68467         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68468         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68469         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68470         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68471         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68472         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68473         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68474         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68475         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68476         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68477         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68478         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68479         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68480         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68481         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68482         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68483         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68484         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68485         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68486         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68487         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68488         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68489         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68490         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68491         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68492         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68493         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68494         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68495         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68496         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68497         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68498         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68499         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68500         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68501         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68502         Likewise.
68503
68504 2006-09-13  Eric Blake  <ebb9@byu.net>
68505
68506         * lib/getopt.c: Fix typo in last commit.
68507
68508 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68509
68510         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68511         dgettext.
68512
68513 2006-09-12  Jim Meyering  <jim@meyering.net>
68514
68515         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68516         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68517         Reported by Nelson H. F. Beebe.
68518
68519 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68520
68521         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68522         program_invocation_name and program_invocation_short_name are
68523         initialized.
68524         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68525         and program_invocation_short_name to argp.h, so they are visible
68526         to user programs.
68527         * lib/argp.h: Likewise
68528
68529 2006-09-10  Bruno Haible  <bruno@clisp.org>
68530
68531         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68532         m4/inttypes_h.m4, m4/uintmax_t.m4.
68533
68534 2006-09-10  Bruno Haible  <bruno@clisp.org>
68535
68536         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68537         gl_AC_TYPE_UINTMAX_T.
68538
68539 2006-09-10  Bruno Haible  <bruno@clisp.org>
68540
68541         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68542
68543 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68544
68545         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68546         convention.  Text proposed by Bruno Haible.
68547         (struct argp_option): Document the use of N_() wrappers.
68548
68549         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68550         '\v', and translate the two parts separately, instead of feeding
68551         the whole string to gettext.  This allows to exclude
68552         '\v' from the strings visible to the translator by writing doc
68553         strings as N_("..") "\v" N_("..").
68554
68555 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68556
68557         * config/srclist.txt: Undo latest change; the bug was fixed.
68558
68559 2006-09-09  Bruno Haible  <bruno@clisp.org>
68560
68561         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68562         assignments if building a library without libtool.
68563         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68564         in func_emit_lib_Makefile_am.
68565         (func_import): When building a static library libfoo.a, arrange to
68566         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68567         (func_create_testdir): Likewise.
68568         * modules/gc (configure.ac, Makefile.am): If building statically,
68569         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68570         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68571         * modules/striconv (configure.ac, Makefile.am): Likewise.
68572         Based on a suggestion by Ralf Wildenhues.
68573
68574 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68575
68576         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68577         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68578         Also:
68579
68580         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68581         Add year_2050_test to catch glibc bug 2821
68582         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68583
68584         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68585         Prefer #ifdef to #if.
68586
68587         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68588         Return from 'main' instead of calling 'exit'.
68589
68590 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68591
68592         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68593         returned the maximum time_t value rather than (time_t) -1.
68594         Problem originally reported by William Bardwell
68595         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68596
68597         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68598         Moved to here ...
68599         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68600         ... from here.
68601
68602 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68603
68604         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68605         2821 is fixed.
68606
68607 2006-09-08  Jim Meyering  <jim@meyering.net>
68608
68609         Don't make generated files read-only.  That would bother too many
68610         people.  However, do retain the ability to work when targets are
68611         read-only: remove the destination and temporary files before writing
68612         them (when generated via sed or echo), or by using the -f option for
68613         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68614         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68615         * modules/byteswap, modules/configmake, modules/fcntl:
68616         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68617         * modules/localcharset, modules/netinet_in, modules/poll:
68618         * modules/stdbool, modules/stdint, modules/sys_select:
68619         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68620
68621 2006-09-08  Jim Meyering  <jim@meyering.net>
68622
68623         Avoid new build failure on FreeBSD 6.0.
68624         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68625         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68626         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68627
68628 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68629
68630         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68631
68632 2006-09-07  Jim Meyering  <jim@meyering.net>
68633
68634         Fix global typo in last change: use chmod u-w, not chmod u-x.
68635         Spotted by Paul Eggert and Bruce Korb.
68636         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68637         * modules/byteswap, modules/configmake, modules/fcntl:
68638         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68639         * modules/localcharset, modules/netinet_in, modules/poll:
68640         * modules/stdbool, modules/stdint, modules/sys_select:
68641         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68642
68643 2006-09-06  Jim Meyering  <jim@meyering.net>
68644
68645         Make generated files be read-only.
68646         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68647         Ensure that each generated file is now read-only.
68648         * modules/argz: Likewise.
68649         * modules/arpa_inet: Likewise.
68650         * modules/byteswap: Likewise.
68651         * modules/configmake: Likewise.
68652         * modules/fcntl: Likewise.
68653         * modules/fnmatch: Likewise.
68654         * modules/getopt: Likewise.
68655         * modules/glob: Likewise.
68656         * modules/inttypes: Likewise.
68657         * modules/netinet_in: Likewise.
68658         * modules/poll: Likewise.
68659         * modules/stdbool: Likewise.
68660         * modules/stdint: Likewise.
68661         * modules/sys_select: Likewise.
68662         * modules/sys_socket: Likewise.
68663         * modules/sys_stat: Likewise.
68664         * modules/sysexits: Likewise.
68665         * modules/localcharset: Same as above, but continue using temporary
68666         file named "t-$@" (why different?) rather than the "$@-t" used
68667         everywhere else.
68668
68669         * modules/sysexits (Makefile.am): Replace literal occurrences
68670         of "sysexit.h" more readable, and more consistent, "$@".
68671
68672 2006-09-06  Bruno Haible  <bruno@clisp.org>
68673
68674         * modules/striconv: New file.
68675         * modules/xstriconv: New file.
68676         * MODULES.html.sh (Internationalization functions): Add striconv,
68677         xstriconv.
68678
68679 2006-09-06  Bruno Haible  <bruno@clisp.org>
68680
68681         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68682         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68683         not using libtool correctly.
68684
68685 2006-09-06  Bruno Haible  <bruno@clisp.org>
68686
68687         * lib/striconv.h: New file.
68688         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68689         iconvstring.c.
68690         * lib/xstriconv.h: New file.
68691         * lib/xstriconv.c: New file.
68692
68693 2006-09-06  Bruno Haible  <bruno@clisp.org>
68694
68695         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68696         lib_..._LDFLAGS.
68697
68698 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68699
68700         * lib/argz_.h: Sync from Libtool.
68701
68702         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68703                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68704
68705         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68706
68707 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68708
68709         * modules/trim: New file.
68710
68711 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68712
68713         * lib/trim.h: New file.
68714         * lib/trim.c: New file.
68715
68716 2006-09-05  Bruno Haible  <bruno@clisp.org>
68717
68718         * MODULES.html.sh (String handling): Add trim.
68719
68720 2006-09-04  Karl Berry  <karl@gnu.org>
68721
68722         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68723         until next release.
68724
68725 2006-09-03  Bruno Haible  <bruno@clisp.org>
68726
68727         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68728         correctly.
68729
68730 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68731
68732         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68733         not gl_GETLOADAVG.  Omit unneeded semicolons.
68734         Problems reported by Ralf Wildenhues in
68735         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68736         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68737         at the end, which is the usual gnulib style.
68738
68739         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68740         of doing all the work ourselves.
68741         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68742         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68743
68744 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68745
68746         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68747         Problem reported by Ralf Wildenhues in
68748         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68749
68750         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68751         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68752
68753 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68754
68755         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68756         yesterday's patch by changing test -n to test -z.
68757
68758 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68759
68760         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68761         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68762         the former is now obsolescent.
68763
68764         * modules/chdir-long (Depends-on): Add fcntl.
68765
68766 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68767
68768         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68769         obsolescent, and programs should use gnulib instead.
68770         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68771         but with prefixes changed.
68772
68773 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68774
68775         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68776         or stdbool.h, because they might not exist while configuring.
68777
68778         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68779         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68780         does that for us.
68781         (O_DIRECTORY): Remove.
68782
68783 2006-08-31  Eric Blake  <ebb9@byu.net>
68784
68785         * gnulib-tool: Don't let emacs change spaces to TAB.
68786
68787 2006-08-31  Bruno Haible  <bruno@clisp.org>
68788
68789         * gnulib-tool: When calling func_import more than once, do it in a
68790         subshell.
68791         Reported by Eric Blake <ebb9@byu.net>.
68792
68793 2006-08-31  Bruno Haible  <bruno@clisp.org>
68794
68795         * gnulib-tool (nl): Remove variable.
68796         (sed_transform_lib_file): Use more robust test for config-h module.
68797         (func_import): Fix typo in 2006-08-25 patch.
68798
68799 2006-08-31  Bruno Haible  <bruno@clisp.org>
68800
68801         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68802         specified, augment Makefile.am variables instead of assigning them.
68803
68804 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         Work around a bug in both the Linux and SunOS 64-bit kernels:
68807         nanosleep mishandles sleeps for longer than 2**31 seconds.
68808         Problem reported by Frank v Waveren in
68809         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68811         Check for nanosleep bug.
68812         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68813
68814 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68815
68816         Work around a bug in both the Linux and SunOS 64-bit kernels:
68817         nanosleep mishandles sleeps for longer than 2**31 seconds.
68818         Problem reported by Frank v Waveren in
68819         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68820         * lib/nanosleep.c (BILLION): New constant.
68821         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68822         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68823         implementation.
68824
68825 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68826
68827         * modules/nanosleep (Depends-on): Add gettime.
68828
68829 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68830         and Simon Josefsson  <jas@extundo.com>
68831         and Oskar Liljeblad  <oskar@osk.mine.nu>
68832
68833         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68834         * gnulib-tool (func_import): New license type 'unmodifiable license
68835         text'.
68836         * modules/fdl: Use it.  Longer description.
68837         * module/gpl, module/lgpl: New files.
68838
68839 2006-08-30  Jim Meyering  <jim@meyering.net>
68840
68841         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68842         shadowing the parameter.
68843
68844 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68845
68846         Sync from Libtool:
68847
68848         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68849
68850         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68851         sharing with gnulib.  Report by Eric Blake.
68852
68853 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68854
68855         * modules/isapipe: New file.
68856         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68857
68858 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68859
68860         * modules/configmake (Makefile.am): Add a comment, and omit
68861         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68862         by Bruno Haible.
68863
68864 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68865
68866         * m4/isapipe.m4: New file.
68867
68868 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68869
68870         * lib/isapipe.c, lib/isapipe.h: New files.
68871
68872 2006-08-29  Jim Meyering  <jim@meyering.net>
68873
68874         * modules/configmake (Makefile.am): Make configmake.h depend on
68875         Makefile.  Otherwise, a stale configmake.h could hang around.
68876
68877 2006-08-29  Eric Blake  <ebb9@byu.net>
68878
68879         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68880         resolution of upstream bug 3044.
68881
68882 2006-08-29  Bruno Haible  <bruno@clisp.org>
68883
68884         * modules/localcharset (Depends-on): Add configmake.
68885         (Makefile.am): Remove setting of LIBDIR through DEFS.
68886
68887 2006-08-29  Bruno Haible  <bruno@clisp.org>
68888
68889         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68890         defined.
68891
68892 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68893
68894         * modules/fcntl: New file.
68895         * modules/chdir-safer (Depends-on): Add fcntl.
68896         * modules/fts: Likewise.
68897         * modules/mkdir-p: Likewise.
68898
68899         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68900         This undoes the most recent change, since we're now addressing the
68901         problem in a different way.
68902
68903         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68904         into output, since the output might be called Makefile.am even
68905         if $makefile_name is something different.
68906         (func_import): Use $makefile_am rather than
68907         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68908         empty.
68909
68910         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68911
68912 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68915         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68916         recent change to stdint.m4, since we're now addressing the problem in a
68917         different way.
68918
68919 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68920
68921         * m4/fcntl_h.m4: New file.
68922
68923 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         * lib/fcntl_.h: New file.
68926         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68927         the fcntl module.
68928         * lib/dirchownmod.c: Likewise.
68929         * lib/fts.c: Likewise.
68930
68931         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68932         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68933         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68934         just before including <inttypes.h>, to avoid circular inclusion.
68935
68936 2006-08-28  Jim Meyering  <jim@meyering.net>
68937
68938         * doc/visibility.texi: Actually read and correct the grammar of the
68939         sentence affected by yesterday's change.
68940
68941 2006-08-28  Eric Blake  <ebb9@byu.net>
68942
68943         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68944         needs wrapper.
68945
68946 2006-08-28  Eric Blake  <ebb9@byu.net>
68947
68948         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68949
68950 2006-08-28  Eric Blake  <ebb9@byu.net>
68951
68952         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68953
68954 2006-08-28  Bruno Haible  <bruno@clisp.org>
68955
68956         * modules/c-strstr: New file, from GNU gettext.
68957         * MODULES.html.sh (String handling): Add c-strstr.
68958
68959 2006-08-28  Bruno Haible  <bruno@clisp.org>
68960
68961         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68962         macros.
68963         Reported by Eric Blake.
68964
68965 2006-08-28  Bruno Haible  <bruno@clisp.org>
68966
68967         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68968         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68969         * lib/vasprintf.c: Include errno.h, limits.h.
68970         (EOVERFLOW): New fallback definition.
68971         (vasprintf): Test here whether the string length is > INT_MAX.
68972         * lib/vsnprintf.c: Include errno.h, limits.h.
68973         (EOVERFLOW): New fallback definition.
68974         (vsnprintf): Fix bug when generated string was too long for the buffer.
68975         Test here whether the string length is > INT_MAX.
68976
68977 2006-08-28  Bruno Haible  <bruno@clisp.org>
68978
68979         * lib/inttypes_.h (SCNX*): Remove definitions.
68980         Reported by Eric Blake.
68981
68982 2006-08-28  Bruno Haible  <bruno@clisp.org>
68983
68984         * lib/c-strstr.h: New file, from GNU gettext.
68985         * lib/c-strstr.c: New file, from GNU gettext.
68986
68987 2006-08-28  Bruno Haible  <bruno@clisp.org>
68988
68989         * gnulib-tool: Reorder some statements.
68990
68991 2006-08-28  Bruno Haible  <bruno@clisp.org>
68992
68993         * gnulib-tool: New option --makefile-name.
68994         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68995         $makefile_name.
68996         (func_import): Write $makefile_name to the cache file, and read it from
68997         there unless explicitly specified. Use $makefile_name as file name
68998         instead of Makefile.am. Adjust the recommendations accordingly.
68999
69000 2006-08-28  Bruno Haible  <bruno@clisp.org>
69001
69002         * gnulib-tool (func_verify_module): Check against misapplying patch.
69003
69004 2006-08-28  Bruno Haible  <bruno@clisp.org>
69005
69006         * gnulib-tool (func_relativize, func_relconcat): New functions.
69007         Give an error if --local-dir is given with --update.
69008         Remove trailing slashes from $local_gnulib_dir.
69009         (func_import): Store the relativized $local_gnulib_dir in
69010         gnulib-cache.m4, and read it from there if not specified explicitly.
69011
69012 2006-08-28  Bruno Haible  <bruno@clisp.org>
69013
69014         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69015         is the current directory. Respect also $local_gnulib_dir.
69016
69017 2006-08-28  Bruno Haible  <bruno@clisp.org>
69018             Simon Josefsson  <jas@extundo.com>
69019
69020         BeOS portability.
69021         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69022
69023 2006-08-27  Jim Meyering  <jim@meyering.net>
69024
69025         * doc/visibility.texi: Remove duplicate word: "pointer".
69026
69027 2006-08-26  Bruno Haible  <bruno@clisp.org>
69028
69029         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69030         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69031         (Makefile.am): Create inttypes.h from inttypes_.h.
69032         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69033
69034         * modules/imaxabs: New file.
69035
69036         * modules/imaxdiv: New file.
69037
69038 2006-08-26  Bruno Haible  <bruno@clisp.org>
69039
69040         * m4/inttypes.m4: New file.
69041         * m4/_inttypes_h.m4: Remove file.
69042         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69043         PRI_MACROS_BROKEN.
69044         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69045
69046         * m4/imaxabs.m4: New file.
69047
69048         * m4/imaxdiv.m4: New file.
69049
69050 2006-08-26  Bruno Haible  <bruno@clisp.org>
69051
69052         * lib/inttypes_.h: New file.
69053         * lib/inttypes.h: Remove file.
69054         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69055
69056         * lib/imaxabs.c: New file.
69057
69058         * lib/imaxdiv.c: New file.
69059
69060 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         New config-h module, so that "make" output needn't be cluttered
69063         by -DHAVE_CONFIG_H.
69064         * MODULES.html.sh (Support for building libraries and executables):
69065         Add config-h.
69066         * modules/config-h: New file.
69067         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69068         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69069         the config-h module is used.
69070
69071         New configmake module, so that "make" output needn't be cluttered
69072         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69073         * MODULES.html.sh (Support for building libraries and executables):
69074         Add configmake.
69075         * modules/configmake: New file.
69076
69077 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69078
69079         * m4/config-h.m4: New file.
69080
69081 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         * config/srclist.txt: Add elisp-comp.
69084
69085 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69086
69087         * MODULES.html.sh (Support for building libraries and executables):
69088         Add elisp-comp.
69089         * build-aux/elisp-comp: New file.
69090         * modules/elisp-comp: New file.
69091
69092 2006-08-24  Bruno Haible  <bruno@clisp.org>
69093
69094         * gnulib-tool (func_create_testdir): Use non-default values of
69095         sourcebase and m4base.
69096
69097 2006-08-24  Bruno Haible  <bruno@clisp.org>
69098
69099         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69100         HTML structure.
69101
69102 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69103
69104         * modules/openat (Depends-on): Add lchown.
69105
69106 2006-08-23  Bruno Haible  <bruno@clisp.org>
69107
69108         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69109         of gl_LOCK_EARLY instead of gl_LOCK.
69110
69111 2006-08-23  Bruno Haible  <bruno@clisp.org>
69112
69113         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69114         on OSF/1 to no.
69115         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69116
69117 2006-08-23  Bruno Haible  <bruno@clisp.org>
69118
69119         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69120         as unusable.
69121
69122         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69123         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69124         (gl_LOCK): New macro.
69125
69126 2006-08-22  Simon Josefsson  <jas@extundo.com>
69127
69128         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69129         to md5 module.
69130
69131 2006-08-22  Simon Josefsson  <jas@extundo.com>
69132
69133         * MODULES.html.sh: Add "Support for maintaining and release
69134         projects".
69135
69136         * build-aux/gnupload: New file, from coreutils.
69137
69138 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         Avoid the need for AC_LIBSOURCES in m4 macros.
69141         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69142         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69143         * modules/check-version (EXTRA_DIST): Add check-version.h.
69144         * modules/crc (EXTRA_DIST): Add crc.h.
69145         * modules/des (EXTRA_DIST): Add des.h.
69146         * modules/gc (EXTRA_DIST): Add gc.h.
69147         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69148         * modules/getline (EXTRA_DIST): Add getline.h.
69149         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69150         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69151         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69152         * modules/md2 (EXTRA_DIST): Add md2.h.
69153         * modules/md4 (EXTRA_DIST): Add md4.h.
69154         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69155         * modules/read-file (EXTRA_DIST): Add read-file.h.
69156         * modules/readline (EXTRA_DIST): Add readline.h.
69157         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69158         rijndael-api-fst.h.
69159
69160 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69161
69162         * m4/rijndael.m4 (gl_ARCFOUR):
69163         * m4/arctwo.m4 (gl_ARCTWO):
69164         * m4/check-version.m4 (gl_CHECK_VERSION):
69165         * m4/crc.m4 (gl_CRC):
69166         * m4/des.m4 (gl_DES):
69167         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69168         * m4/gc.m4 (gl_GC):
69169         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69170         * m4/getline.m4 (gl_FUNC_GETLINE):
69171         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69172         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69173         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69174         * m4/md2.m4 (gl_MD2):
69175         * m4/md4.m4 (gl_MD4):
69176         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69177         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69178         * m4/readline.m4 (gl_FUNC_READLINE):
69179         * m4/rijndael.m4 (gl_RIJNDAEL):
69180         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69181         to get the necessary .h files and whatnot.
69182
69183 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69184
69185         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69186         gnulib rather than the other way around.
69187         * config/srclistvars.sh (COREUTILS): Remove.
69188
69189 2006-08-22  Jim Meyering  <jim@meyering.net>
69190
69191         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69192
69193         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69194
69195 2006-08-22  Eric Blake  <ebb9@byu.net>
69196
69197         * modules/regexprops-generic: New file.
69198         * MODULES.html.sh (Support for building documentation): List it.
69199
69200 2006-08-22  Eric Blake  <ebb9@byu.net>
69201
69202         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69203         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69204         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69205         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69206
69207 2006-08-22  Bruno Haible  <bruno@clisp.org>
69208
69209         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69210         and lib_LTLIBRARIES like the other lib_* variables.
69211
69212 2006-08-22  Bruno Haible  <bruno@clisp.org>
69213
69214         * build-aux/x-to-1.in: New file, from GNU gettext.
69215
69216 2006-08-22  Bruno Haible  <bruno@clisp.org>
69217
69218         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69219         <utmpx.h> exists.
69220
69221 2006-08-22  Bruno Haible  <bruno@clisp.org>
69222
69223         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69224         <utmpx.h> exists.
69225
69226 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69227
69228         BeOS portability.
69229         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69230         exist.
69231         Problem reported by Bruno Haible.
69232
69233 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69234
69235         Avoid the need for AC_LIBSOURCES in m4 macros.
69236         * modules/acl (EXTRA_DIST): Add acl.h.
69237         * modules/argmatch (Files): Add m4/argmatch.m4.
69238         (configure.ac): Add gl_ARGMATCH.
69239         (EXTRA_DIST): Renamed from lib_SOURCES, for
69240         consistency with the other modules.  Remove argmatch.c.
69241         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69242         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69243         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69244         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69245         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69246         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69247         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69248         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69249         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69250         * modules/closeout (EXTRA_DIST): Add closeout.h.
69251         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69252         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69253         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69254         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69255         dirname.h; remove basename.c and stripslash.c.
69256         * modules/exclude (EXTRA_DIST): Add exclude.h.
69257         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69258         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69259         * modules/file-type (EXTRA_DIST): Add file-type.h.
69260         * modules/filemode (EXTRA_DIST): Add filemode.h.
69261         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69262         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69263         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69264         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69265         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69266         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69267         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69268         * modules/getdate (EXTRA_DIST): Add getdate.c.
69269         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69270         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69271         * modules/getpass (EXTRA_DIST): Add getpass.h.
69272         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69273         * modules/group-member (EXTRA_DIST): Add group-member.h.
69274         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69275         * modules/hash (EXTRA_DIST): Add hash.h.
69276         * modules/human (EXTRA_DIST): Add human.h.
69277         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69278         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69279         * modules/lchown (EXTRA_DIST): Add lchown.h.
69280         * modules/long-options (EXTRA_DIST): Add long-options.h.
69281         * modules/lstat (EXTRA_DIST): Add lstat.h.
69282         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69283         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69284         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69285         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69286         * modules/memxor (EXTRA_DIST): Add memxor.h.
69287         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69288         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69289         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69290         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69291         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69292         * modules/physmem (EXTRA_DIST): Add physmem.h.
69293         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69294         * modules/posixver (EXTRA_DIST): Add posixver.h.
69295         * modules/quote (EXTRA_DIST): Add quote.h.
69296         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69297         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69298         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69299         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69300         regex_internal.h regexec.c.
69301         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69302         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69303         * modules/same (EXTRA_DIST): Add same.h.
69304         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69305         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69306         * modules/savedir (EXTRA_DIST): Add savedir.h.
69307         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69308         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69309         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69310         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69311         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69312         * modules/strdup (EXTRA_DIST): Add strdup.h.
69313         * modules/strftime (EXTRA_DIST): Add strftime.h.
69314         * modules/strndup (EXTRA_DIST): Add strndup.h.
69315         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69316         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69317         * modules/time_r (EXTRA_DIST): Add time_r.h.
69318         * modules/timespec (EXTRA_DIST): Add timespec.h.
69319         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69320         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69321         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69322         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69323         * modules/userspec (EXTRA_DIST): Add userspec.h.
69324         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69325         * modules/utimens (EXTRA_DIST): Add utimens.h.
69326         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69327         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69328         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69329         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69330         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69331         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69332         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69333         * modules/yesno (EXTRA_DIST): Add yesno.h.
69334
69335 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69336
69337         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69338
69339         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69340         * m4/dev-ino.m4, same-inode.m4: Remove.
69341
69342         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69343         * m4/acl.m4 (AC_FUNC_ACL):
69344         * m4/backupfile.m4 (gl_BACKUPFILE):
69345         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69346         * m4/canon-host.m4 (gl_CANON_HOST):
69347         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69348         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69349         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69350         * m4/cloexec.m4 (gl_CLOEXEC):
69351         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69352         * m4/closeout.m4 (gl_CLOSEOUT):
69353         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69354         * m4/dirname.m4 (gl_DIRNAME):
69355         * m4/exclude.m4 (gl_EXCLUDE):
69356         * m4/exitfail.m4 (gl_EXITFAIL):
69357         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69358         * m4/file-type.m4 (gl_FILE_TYPE):
69359         * m4/filemode.m4 (gl_FILEMODE):
69360         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69361         * m4/fpending.m4 (gl_FUNC_FPENDING):
69362         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69363         * m4/fts.m4 (gl_FUNC_FTS):
69364         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69365         * m4/getdate.m4 (gl_GETDATE):
69366         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69367         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69368         * m4/getpass.m4 (gl_FUNC_GETPASS):
69369         * m4/gettime.m4 (gl_GETTIME):
69370         * m4/getugroups.m4 (gl_GETUGROUPS):
69371         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69372         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69373         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69374         * m4/hash.m4 (gl_HASH):
69375         * m4/idcache.m4 (gl_IDCACHE):
69376         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69377         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69378         * m4/long-options.m4 (gl_LONG_OPTIONS):
69379         * m4/lstat.m4 (gl_FUNC_LSTAT):
69380         * m4/md5.m4 (gl_MD5):
69381         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69382         * m4/memcoll.m4 (gl_MEMCOLL):
69383         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69384         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69385         * m4/memxor.m4 (gl_MEMXOR):
69386         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69387         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69388         * m4/modechange.m4 (gl_MODECHANGE):
69389         * m4/mountlist.m4 (gl_MOUNTLIST):
69390         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69391         * m4/openat.m4 (gl_FUNC_OPENAT):
69392         * m4/pathmax.m4 (gl_PATHMAX):
69393         * m4/physmem.m4 (gl_PHYSMEM):
69394         * m4/posixtm.m4 (gl_POSIXTM):
69395         * m4/posixver.m4 (gl_POSIXVER):
69396         * m4/quote.m4 (gl_QUOTE):
69397         * m4/quotearg.m4 (gl_QUOTEARG):
69398         * m4/readtokens.m4 (gl_READTOKENS):
69399         * m4/readutmp.m4 (gl_READUTMP):
69400         * m4/regex.m4 (gl_REGEX):
69401         * m4/safe-read.m4 (gl_SAFE_READ):
69402         * m4/safe-write.m4 (gl_SAFE_WRITE):
69403         * m4/same.m4 (gl_SAME):
69404         * m4/save-cwd.m4 (gl_SAVE_CWD):
69405         * m4/savedir.m4 (gl_SAVEDIR):
69406         * m4/settime.m4 (gl_SETTIME):
69407         * m4/sha1.m4 (gl_SHA1):
69408         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69409         * m4/stat-macros.m4 (gl_STAT_MACROS):
69410         * m4/stat-time.m4 (gl_STAT_TIME):
69411         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69412         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69413         * m4/strdup.m4 (gl_FUNC_STRDUP):
69414         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69415         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69416         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69417         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69418         * m4/time_r.m4 (gl_TIME_R):
69419         * m4/timespec.m4 (gl_TIMESPEC):
69420         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69421         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69422         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69423         * m4/userspec.m4 (gl_USERSPEC):
69424         * m4/utimecmp.m4 (gl_UTIMECMP):
69425         * m4/utimens.m4 (gl_UTIMENS):
69426         * m4/xalloc.m4 (gl_XALLOC):
69427         * m4/xgetcwd.m4 (gl_XGETCWD):
69428         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69429         * m4/xreadlink.m4 (gl_XREADLINK):
69430         * m4/xstrtod.m4 (gl_XSTRTOD):
69431         * m4/yesno.m4 (gl_YESNO):
69432         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69433         to get the necessary .h files and whatnot.
69434
69435 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69436             Bruno Haible  <bruno@clisp.org>
69437
69438         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69439         /bin/sh understanding of '!' conditional negation.
69440
69441 2006-08-21  Jim Meyering  <jim@meyering.net>
69442
69443         * modules/openat (Depends-on): Really alphabetize.
69444
69445         * modules/acl (Depends-on): Add error and quote.
69446
69447         * check-module (find_included_lib_files): Add at-func.c to the
69448         ok-to-include-more-than-once white list.
69449
69450         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69451
69452 2006-08-21  Bruno Haible  <bruno@clisp.org>
69453
69454         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69455         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69456         Reported by Martin Lambers <marlam@marlam.de>.
69457
69458 2006-08-21  Bruno Haible  <bruno@clisp.org>
69459
69460         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69461         specify an installation location, don't emit a noinst_LIBRARIES or
69462         noinst_LTLIBRARIES assignment.
69463
69464 2006-08-21  Bruno Haible  <bruno@clisp.org>
69465
69466         BeOS portability.
69467         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69468         BeOS has mbrtowc() but no <wctype.h>.
69469
69470 2006-08-21  Bruno Haible  <bruno@clisp.org>
69471
69472         BeOS portability.
69473         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69474         exist.
69475
69476 2006-08-21  Bruno Haible  <bruno@clisp.org>
69477
69478         BeOS portability.
69479         * lib/mbchar.h: Include <wctype.h> only if it exists.
69480
69481 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69482
69483         Remove files that are no longer needed by their respective modules.
69484         * m4/obstack.m4: Remove.
69485         * m4/strerror_r.m4: Remove.
69486         * m4/uint32_t.m4: Remove.
69487         * m4/uintptr_t.m4: Remove.
69488         * m4/ullong_max.m4: Remove.
69489         * m4/xstrtoimax.m4: Remove.
69490         * m4/xstrtoumax.m4: Remove.
69491
69492         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69493         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69494         dependencies now capture this.
69495
69496         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69497         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69498         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69499         * m4/human.m4 (gl_HUMAN): Likewise.
69500         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69501         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69502
69503         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69504
69505         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69506         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69507         stdint.
69508         * m4/human.m4 (gl_HUMAN): Likewise.
69509         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69510         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69511         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69512         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69513         * m4/xstrtol (gl_XSTRTOL): Likewise.
69514
69515         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69516         AC_TYPE_LONG_LONG_INT.
69517         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69518         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69519         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69520         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69521
69522         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69523         on stdbool.
69524
69525         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69526         (gl_PREREQ_XSTRTOUL): Remove.
69527
69528         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69529
69530         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69531         mode.
69532
69533 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69534
69535         Add and change modules to make it easier for coreutils to use
69536         gnulib-tool.
69537         * modules/backupfile (Files): Remove m4/d-ino.m4.
69538         (Depends-on): Add d-ino.
69539         * modules/cycle-check (Depends-on): Add stdint.
69540         (lib_SOURCES): Add cycle-check.h.
69541         * modules/d-ino: New module.
69542         * modules/d-type: New module.
69543         * modules/error (Files): Remove m4/strerror_r.m4.
69544         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69545         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69546         m4/inttypes_h.m4, m4/uintmax_t.m4.
69547         (Depends-on): Add stdint.
69548         (lib_SOURCES): Add fsusage.h.
69549         * modules/getcwd (Files): Remove d-ino.m4.
69550         (Depends-on): Add d-ino.
69551         * modules/getndelim2 (Depends-on): Add stdint.
69552         * modules/glob (Files): Remove m4/d-type.m4.
69553         (Depends-on): Add d-type.
69554         * modules/host-os: New module.
69555         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69556         m4/inttypes_h.m4, m4/uintmax_t.m4.
69557         * Depends-on: Add stdint.
69558         (lib_SOURCES): Add human.h.
69559         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69560         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69561         m4/uintmax_t.m4, m4/ulonglong.m4.
69562         (Depends-on): Add stdint.
69563         (EXTRA_DIST): Add inttostr.h.
69564         * modules/lchmod: New module.
69565         * modules/link-follow: New module.
69566         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69567         (Depends-on): Add lchmod.
69568         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69569         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69570         (Depends-on): Add stdint.
69571         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69572         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69573         (Depends-on): Add stdint.
69574         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69575         * modules/perl: New module.
69576         * modules/regex (Depends-on): Add stdint.
69577         * modules/rmdir-errno: New module.
69578         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69579         m4/intmax_t.m4.
69580         (Depends-on): Add stdint.
69581         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69582         m4/uintmax_t.m4.
69583         (Depends-on): Add stdint.
69584         * modules/unlink-busy: New module.
69585         * modules/utimecmp (Depends-on): Add stdint.
69586         * modules/uptime: New module.
69587         * modules/winsz-ioctl: New module.
69588         * modules/winsz-termios: New module.
69589         * modules/xnanosleep (Depends-on): Add nanosleep.
69590         * modules/ullong_max: Remove.
69591         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69592         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69593         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69594         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69595         (Depends-on): Add inttypes.
69596         (lib_SOURCES): Add xstrtol.h.
69597         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69598         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69599         * MODULES.html.sh: Move 'assert' into the assert section.
69600         Move 'dummy' into the linking section.
69601         Remove ullong_max.
69602         Add section for compatibility checks for POSIX:2001 functions,
69603         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69604         winsz-ioctl, and winsz-termios into it.
69605         Add lchmod.
69606         Add top-level Misc section and put host-os, perl, and uptime
69607         into it.
69608
69609 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69610
69611         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69612         now assume the stdint module.  Do not include inttypes.h.
69613         * lib/fsusage.h: Likewise.
69614         * lib/getndelim2.c: Likewise.
69615         * lib/human.h: Likewise.
69616         * lib/inttostr.h: Likewise.
69617         * lib/obstack.c: Likewise.
69618         * lib/regex_internal.h: Likewise.
69619         * lib/tempname.c: Likewise.
69620         * lib/utimecmp.c: Likewise.
69621         * lib/xstrtol.h: Likewise.
69622
69623         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69624
69625         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69626         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69627         * lib/xtime.h: Likewise.
69628
69629 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69630
69631         * modules/openat (Files): Add lib/fchmodat.c.
69632         Fixes problem reported by Jay Youngman.
69633
69634 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69635
69636         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69637         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69638
69639 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69640             Bruno Haible  <bruno@clisp.org>
69641
69642         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69643         and is a script that invokes bison. Tighten the code. Add comments.
69644
69645 2006-08-18  Jim Meyering  <jim@meyering.net>
69646
69647         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69648         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69649         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69650         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69651
69652 2006-08-18  Bruno Haible  <bruno@clisp.org>
69653
69654         * modules/bison-i18n: New file.
69655         * MODULES.html.sh (Internationalization functions): Add it.
69656
69657 2006-08-18  Bruno Haible  <bruno@clisp.org>
69658
69659         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69660         sys/statvfs.h. When getmntinfo was found, check its declaration and
69661         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69662
69663 2006-08-18  Bruno Haible  <bruno@clisp.org>
69664
69665         * m4/bison-i18n.m4: New file, from bison.
69666
69667 2006-08-18  Bruno Haible  <bruno@clisp.org>
69668
69669         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69670         (ME_DUMMY): Treat "kernfs" as a dummy.
69671         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69672
69673 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69674
69675         Update from coreutils.
69676
69677         2006-08-15  Jim Meyering  <jim@meyering.net>
69678
69679         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69680
69681         2006-01-17  Jim Meyering  <jim@meyering.net>
69682
69683         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69684
69685         2006-01-11  Jim Meyering  <jim@meyering.net>
69686
69687         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69688         Check for the lchmod function.
69689
69690 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69691
69692         Update from coreutils.
69693
69694         * lib/__fpending.h: Add copyright notice.
69695         * lib/fprintftime.h: Likewise.
69696         * lib/savedir.c: Use (C) in copyright notice.
69697         * lib/savedir.h: Likewise.
69698
69699         2006-08-15  Jim Meyering  <jim@meyering.net>
69700
69701         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69702         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69703         in support of the EXPECTED_ERRNO macro.
69704         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69705         definitions.  Instead, define the appropriate symbols and include
69706         "at-func.c".
69707         * lib/mkdirat.c (mkdirat): Likewise.
69708         * lib/fchmodat.c (fchmodat): Likewise.
69709         (ENOSYS): Remove definition.
69710         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69711         it.  Don't include "unistd--.h" -- it wasn't ever used.
69712
69713         2006-01-17  Jim Meyering  <jim@meyering.net>
69714
69715         Rewrite fts.c not to change the current working directory,
69716         by using openat, fstatat, fdopendir, etc..
69717
69718         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69719         (HAVE_OPENAT_SUPPORT): Define.
69720         [_LIBC] (fchdir): Don't undef or define; no longer used.
69721         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69722         Now, this `function' always succeeds, and consumes its file descriptor
69723         parameter -- so callers must not close such FDs.  Update callers.
69724         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69725         (diropen): Add parameter, SP.  Adjust all callers.
69726         Implement using diropen_fd, rather than open.
69727         (fts_open): Initialize new member, fts_cwd_fd.
69728         Remove fts_rft-setting code.
69729         (fts_close): Close fts_cwd_fd, if necessary.
69730         (__opendir2): Define in terms of opendir or opendirat,
69731         depending on whether the FST_NOCHDIR flag is set.
69732         (fts_build): Since fts_safe_changedir consumes its FD, and since
69733         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69734         and close the dup'd file descriptor upon failure.
69735         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69736         (fts_safe_changedir): Tweak semantics to reflect that this function
69737         now calls cwd_advance_fd and hence consumes its FD argument.
69738         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69739         [struct FTS] (fts_rft): Remove now-unused member.
69740         [struct FTS] (fts_cycle.state): Improve comment.
69741
69742         * lib/openat.c (openat_needs_fchdir): New function.
69743         * lib/openat.h (openat_needs_fchdir): Declare it.
69744
69745 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69748         Problem and fix reported by Pádraig Brady in
69749         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69750
69751 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69752
69753         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69754
69755 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69756
69757         * lib/memcoll.c (memcoll): Optimize for the common case where the
69758         arguments are bytewise equal.
69759
69760 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69761
69762         * doc/regexprops-generic.texi: Add a copyright notice.
69763
69764 2006-08-15  Bruno Haible  <bruno@clisp.org>
69765
69766         * modules/tmpdir (License): Change to LGPL.
69767
69768 2006-08-15  Bruno Haible  <bruno@clisp.org>
69769
69770         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69771         module.
69772
69773 2006-08-14  Simon Josefsson  <jas@extundo.com>
69774
69775         * config/srclist.txt: Add gnupload.
69776
69777 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69778
69779         Change copyright notice from LGPL 2 to GPL 2, since that's the
69780         standard form used in the gnulib repository.
69781         * tests/test-lock.c: Likewise.
69782         * tests/test-stdint.c: Likewise.
69783         * tests/test-tls.c: Likewise.
69784
69785         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69786         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69787         Add copyright notice.
69788
69789         * check-module: Add copyright notice.  Output a copyright
69790         notice if "--version" is specified.
69791         * modules/COPYING: New file.
69792         * tests/test-getaddrinfo.c: Add copyright notice.
69793         * tests/test-verify.c: Likewise.
69794
69795 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69796
69797         Change copyright notice from LGPL 2 to GPL 2, since that's the
69798         standard form used in the gnulib repository.
69799         * lib/lock.c: LGPL -> GPL.
69800         * lib/lock.h: Likewise.
69801         * lib/strnlen1.c: Likewise.
69802         * lib/strnlen1.h: Likewise.
69803         * lib/tls.c: Likewise.
69804         * lib/tls.h: Likewise.
69805         * lib/tmpdir.c: Likewise.
69806
69807         * lib/TODO: Remove; this belongs only in coreutils.
69808
69809 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69810
69811         Add copyright notices to long-enough files that lack them, since
69812         otherwise the files aren't clearly free.  Use the same notice that
69813         getdate.texi already uses.
69814         * doc/alloca-opt.texi: Add copyright notice.
69815         * doc/alloca.texi: Likewise.
69816         * doc/ctime.texi: Likewise.
69817         * doc/functions.texi: Likewise.
69818         * doc/gcd.texi: Likewise.
69819         * doc/gnulib-tool.texi: Likewise.
69820         * doc/inet_ntoa.texi: Likewise.
69821         * doc/visibility.texi: Likewise.
69822
69823         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69824         * doc/quote.texi: Add copyright notice.
69825
69826         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69827         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69828         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69829         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69830         is now obsolete, and give a pointer to the Sun list.
69831         Add copyright notice.
69832
69833 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69834
69835         * config/srclistvars.sh: Add copyright notice.
69836
69837 2006-08-14  Eric Blake  <ebb9@byu.net>
69838
69839         Import the following change from libc:
69840
69841         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69842
69843         Upstream bug 2997.
69844         * lib/misc/error.c: Add space between program name and message if file
69845         name is missing.
69846
69847 2006-08-12  Karl Berry  <karl@gnu.org>
69848
69849         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69850         remove, these originate in gnulib now.
69851
69852 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69853
69854         * doc/Makefile (standards.info standards.html standards.dvi):
69855         Also depend on make-stds.texi.
69856
69857 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69858
69859         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69860         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69861
69862         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69863         in wchar_t.  Problem reported by Eric Blake.
69864
69865         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69866         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69867         Also, help the compiler to keep LEN in a register.
69868
69869 2006-08-11  Eric Blake  <ebb9@byu.net>
69870
69871         * users.txt: Sort.  Add tar.
69872
69873 2006-08-11  Bruno Haible  <bruno@clisp.org>
69874
69875         * users.txt: New file.
69876
69877 2006-08-11  Bruno Haible  <bruno@clisp.org>
69878
69879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69880         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69881
69882 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69883
69884         * modules/snprintf (Depends-on): Remove minmax.
69885         (Maintainer): Add self and Bruno.
69886
69887 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69888
69889         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69890         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69891         (EOVERFLOW): Define if the system does not.
69892         Do not include "minmax.h"; it wasn't used.
69893         (snprintf): Don't assume size_t promotes to an unsigned type.
69894         Fix bug when generated string was too long for the buffer: the
69895         buffer's contents are supposed to be the initial prefix of the
69896         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69897         exceeds INT_MAX; do the check ourselves.
69898
69899         Import the following changes from libc:
69900
69901         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69902
69903         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69904         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69905         set wc to the byte which couldn't be converted.
69906         (re_string_reconstruct): Don't clear valid_raw_len before calling
69907         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69908         tip_context using re_string_context_at.
69909
69910         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69911
69912         * lib/posix/regex.h: g++ still cannot handled [restrict].
69913
69914         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69915
69916         * lib/posix/regex.h: Remove special handling for VMS.
69917
69918 2006-08-10  Jim Meyering  <jim@meyering.net>
69919
69920         * modules/same-inode: New module.
69921         * modules/dev-ino: New module.
69922         * modules/cycle-check: Depend on these modules, rather than simply
69923         including their .h files.
69924         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69925         required via m4/cycle-check.m4.
69926         * modules/same: Depend on new same-inode module, rather than
69927         including same-inode.h.
69928         * modules/chdir-safer: New file.
69929
69930         * modules/chown (Depends-on): Add stat-macros.
69931
69932 2006-08-10  Jim Meyering  <jim@meyering.net>
69933
69934         * m4/cycle-check.m4: New file.
69935         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69936         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69937
69938 2006-08-10  Eric Blake  <ebb9@byu.net>
69939
69940         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69941         in from original proposal.
69942
69943 2006-08-10  Eric Blake  <ebb9@byu.net>
69944         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69945
69946         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69947         namespace.
69948
69949 2006-08-10  Bruno Haible  <bruno@clisp.org>
69950
69951         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69952         as well.
69953
69954 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69955
69956         Sync from coreutils.
69957
69958         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69959
69960         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69961         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69962
69963 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69964
69965         * modules/restrict: Remove; no longer needed now that we assume
69966         Autoconf 2.59 or later.
69967         * MODULES.html.sh: Remove 'restrict'.
69968         * modules/argp (Depends-on): Remove 'restrict'.
69969         * modules/base64 (Depends-on): Likewise.
69970         * modules/gc (Depends-on): Likewise.
69971         * modules/getaddrinfo (Depends-on): Likewise.
69972         * modules/glob (Depends-on): Likewise.
69973         * modules/inet_ntop (Depends-on): Likewise.
69974         * modules/inet_pton (Depends-on): Likewise.
69975         * modules/memxor (Depends-on): Likewise.
69976         * modules/regex (Depends-on): Likewise.
69977         * modules/strtok_r (Depends-on): Likewise.
69978         * modules/time_r (Depends-on): Likewise.
69979
69980 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69981
69982         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69983         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69984         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69985         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69986         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69987         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69988         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69989         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69990
69991         Merge from coreutils.
69992         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69993         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69994         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69995         * m4/time_r.m4 (gl_TIME_R): Likewise.
69996
69997 2006-08-09  Karl Berry  <karl@gnu.org>
69998
69999         * config/srclist.txt: no more gettext-tools, per Bruno.
70000
70001 2006-08-08  Eric Blake  <ebb9@byu.net>
70002
70003         * modules/verror: New module.
70004         * MODULES.html.sh: Document it.
70005
70006 2006-08-08  Eric Blake  <ebb9@byu.net>
70007
70008         * lib/verror.h, lib/verror.c: New files.
70009
70010 2006-08-08  Eric Blake  <ebb9@byu.net>
70011
70012         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70013         verror_at_line output complies with GNU Coding Standards even when
70014         file is NULL.
70015
70016 2006-08-07  Bruno Haible  <bruno@clisp.org>
70017
70018         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70019         versions of AIX.
70020         Reported by Ralf Wildenhues.
70021
70022 2006-08-07  Bruno Haible  <bruno@clisp.org>
70023
70024         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70025         in an AC_DEFUN. Needed so that the autoconf snippets can use
70026         AC_REQUIRE.
70027
70028 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70029
70030         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70031         Initialize pkgdata_DATA.
70032         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70033         overriding it.
70034
70035 2006-08-06  Eric Blake  <ebb9@byu.net>
70036
70037         * lib/error.h: Fold in some upstream changes from glibc.
70038         * lib/error.c: Likewise.
70039
70040 2006-08-04  Bruno Haible  <bruno@clisp.org>
70041
70042         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70043         Make the mostlyclean-local rule depend on mostlyclean-generic.
70044         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70045
70046 2006-07-31  Bruno Haible  <bruno@clisp.org>
70047
70048         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70049         <stdlib.h>, <string.h>.
70050
70051 2006-07-30  Bruno Haible  <bruno@clisp.org>
70052
70053         * modules/readlink (License): Change to LGPL.
70054
70055 2006-07-30  Bruno Haible  <bruno@clisp.org>
70056
70057         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70058         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70059         set PKGDATADIR to point to it.
70060
70061 2006-07-30  Bruno Haible  <bruno@clisp.org>
70062
70063         * modules/csharpexec (configure.ac): Comment out macro invocation.
70064         * modules/javaexec (configure.ac): Likewise.
70065         * modules/javacomp-script (configure.ac): Likewise.
70066
70067         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70068
70069 2006-07-30  Bruno Haible  <bruno@clisp.org>
70070
70071         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70072         linked-list.
70073
70074 2006-07-30  Bruno Haible  <bruno@clisp.org>
70075
70076         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70077
70078 2006-07-30  Bruno Haible  <bruno@clisp.org>
70079
70080         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70081         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70082         get removed.
70083
70084 2006-07-29  Bruno Haible  <bruno@clisp.org>
70085
70086         Make it possible for gnulib-tool to work with locally modified or
70087         augmented gnulib repositories.
70088         * gnulib-tool (func_usage): Document --local-dir option.
70089         (local_gnulib_dir): New variable.
70090         Handle --local-dir option.
70091         (func_lookup_file): New function.
70092         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70093         (func_get_description, func_get_filelist, func_get_description,
70094         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70095         func_get_automake_snippet, func_get_include_directive,
70096         func_get_license, func_get_maintainer): Use func_lookup_file.
70097         (func_import, func_create_testdir): Use func_lookup_file.
70098
70099 2006-07-29  Bruno Haible  <bruno@clisp.org>
70100
70101         * modules/setenv (Depends-on): Add unistd.
70102
70103 2006-07-29  Bruno Haible  <bruno@clisp.org>
70104
70105         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70106
70107 2006-07-29  Bruno Haible  <bruno@clisp.org>
70108
70109         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70110
70111 2006-07-29  Bruno Haible  <bruno@clisp.org>
70112
70113         * gnulib-tool (import, update): If there is no Makefile.am, look at
70114         aclocal.m4, instead of bailing out.
70115
70116 2006-07-29  Bruno Haible  <bruno@clisp.org>
70117
70118         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70119         Categorize the options by when they are useful.
70120
70121 2006-07-29  Bruno Haible  <bruno@clisp.org>
70122
70123         * gnulib-tool (func_usage): Document option --no-libtool.
70124         Handle option --no-libtool.
70125         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70126         for changed semantics of $libtool variable.
70127         (func_import): Likewise. If libtool is not used, show this through
70128         an option --no-libtool.
70129         (func_create_testdir): Update.
70130
70131 2006-07-29  Bruno Haible  <bruno@clisp.org>
70132
70133         * gnulib-tool (func_import): Extend error message about missing
70134         --doc-base.
70135
70136 2006-07-29  Bruno Haible  <bruno@clisp.org>
70137
70138         * gnulib-tool (func_import): Don't create the $docbase directory if
70139         there is no file to store there.
70140
70141 2006-07-29  Bruno Haible  <bruno@clisp.org>
70142
70143         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70144         relevant, look for configure.ac there, not in the current directory.
70145         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70146
70147 2006-07-29  Bruno Haible  <bruno@clisp.org>
70148
70149         * gnulib-tool (SORT): New variable.
70150         (func_usage): Undocument --assume-autoconf option.
70151         Remove --assume-autoconf option handling.
70152         (autoconf_minversion): Determine from the contents of configure.ac.
70153         (func_import): Remove autoconf_minversion handling.
70154         Suggested by Eric Blake.
70155
70156 2006-07-29  Bruno Haible  <bruno@clisp.org>
70157
70158         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70159
70160 2006-07-29  Bruno Haible  <bruno@clisp.org>
70161
70162         * config/srclist.txt (*setenv.[ch]): Remove rules.
70163
70164 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70165
70166         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70167
70168 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70169
70170         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70171         arpa/inet.h.
70172
70173 2006-07-28  Simon Josefsson  <jas@extundo.com>
70174
70175         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70176         * modules/inet_pton (Depends-on): Likewise.
70177
70178 2006-07-28  Simon Josefsson  <jas@extundo.com>
70179
70180         * m4/netinet_in_h.m4: New file.
70181
70182 2006-07-28  Simon Josefsson  <jas@extundo.com>
70183
70184         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70185         #include's.
70186
70187 2006-07-28  Simon Josefsson  <jas@extundo.com>
70188
70189         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70190         #include's.
70191
70192 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70195         setgid on directories only if they set these bits.
70196         * lib/modechange.h: Remove obsolete comment about masks.
70197
70198 2006-07-28  Eric Blake  <ebb9@byu.net>
70199
70200         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70201         macro expansion.
70202
70203 2006-07-28  Bruno Haible  <bruno@clisp.org>
70204
70205         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70206
70207 2006-07-28  Bruno Haible  <bruno@clisp.org>
70208
70209         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70210
70211 2006-07-28  Bruno Haible  <bruno@clisp.org>
70212
70213         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70214         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70215         Define fallbacks.
70216         Avoids link error on FreeBSD 4.x.
70217         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70218
70219         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70220         encoding.
70221         * lib/mbswidth.c (iswcntrl): Likewise.
70222
70223 2006-07-27  Bruno Haible  <bruno@clisp.org>
70224
70225         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70226         test.
70227
70228 2006-07-27  Bruno Haible  <bruno@clisp.org>
70229
70230         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70231         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70232         defined.
70233
70234 2006-07-26  Eric Blake  <ebb9@byu.net>
70235
70236         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70237
70238 2006-07-26  Eric Blake  <ebb9@byu.net>
70239
70240         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70241         like mingw that lack mkstemp.
70242         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70243         avoid compilation warning on mingw.
70244
70245 2006-07-26  Bruno Haible  <bruno@clisp.org>
70246
70247         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70248         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70249         INT_FAST*_MIN, INTPTR_MIN.
70250
70251 2006-07-25  Bruno Haible  <bruno@clisp.org>
70252
70253         * modules/version-etc (Depends-on): Add stdarg.
70254
70255 2006-07-25  Bruno Haible  <bruno@clisp.org>
70256
70257         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70258         complex commands.
70259
70260 2006-07-25  Bruno Haible  <bruno@clisp.org>
70261
70262         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70263         defined in <stdarg.h> or config.h.
70264
70265 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70266
70267         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70268         (gl_STDIO_SAFER): Remove.
70269
70270 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70271
70272         * MODULES.html.sh (File stream based Input/Output):
70273         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70274         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70275         * modules/fopen-safer, modules/tmpfile-safer: New files.
70276         * modules/stdio-safer: Remove.
70277
70278 2006-07-24  Bruno Haible  <bruno@clisp.org>
70279
70280         * modules/tmpdir: New file.
70281         * MODULES.html.sh (File system functions): Add it.
70282
70283 2006-07-24  Bruno Haible  <bruno@clisp.org>
70284
70285         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70286         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70287
70288 2006-07-24  Bruno Haible  <bruno@clisp.org>
70289
70290         * modules/clean-temp: New file.
70291
70292 2006-07-24  Bruno Haible  <bruno@clisp.org>
70293
70294         * m4/tmpdir.m4: New file, from GNU gettext.
70295
70296 2006-07-24  Bruno Haible  <bruno@clisp.org>
70297
70298         * lib/tmpdir.h: New file, from GNU gettext.
70299         * lib/tmpdir.c: New file, from GNU gettext.
70300
70301 2006-07-24  Bruno Haible  <bruno@clisp.org>
70302
70303         * lib/clean-temp.h: New file, from GNU gettext.
70304         * lib/clean-temp.c: New file, from GNU gettext.
70305
70306 2006-07-23  Eric Blake  <ebb9@byu.net>
70307
70308         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70309         (Depends-on): Add binary-io.
70310
70311 2006-07-23  Eric Blake  <ebb9@byu.net>
70312
70313         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70314
70315 2006-07-23  Eric Blake  <ebb9@byu.net>
70316
70317         * lib/tmpfile-safer.c: New file.
70318         * lib/stdio-safer.h (fopen_safer): Add prototype.
70319         * lib/stdio--.h (tmpfile): Make safer.
70320
70321 2006-07-23  Bruno Haible  <bruno@clisp.org>
70322
70323         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70324         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70325         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70326         gl_linked_remove_at): Use it.
70327
70328 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70329         and Simon Josefsson <jas@extundo.com>
70330
70331         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70332
70333         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70334
70335 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70336
70337         * modules/close-stream: New file.
70338         * modules/closeout (Description): Make it clear that it exits
70339         with a diagnostic on error.
70340         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70341         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70342
70343 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70344
70345         * m4/close-stream.m4: New file.
70346
70347 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70348
70349         * lib/close-stream.c, lib/close-stream.h: New files.
70350
70351 2006-07-22  Bruno Haible  <bruno@clisp.org>
70352
70353         Merge from GNU gettext 0.15.
70354
70355         2006-05-01  Bruno Haible  <bruno@clisp.org>
70356
70357                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70358
70359         2006-07-22  Bruno Haible  <bruno@clisp.org>
70360
70361                 * modules/javaversion: New file.
70362                 * MODULES.html.sh (Java): Add javaversion.
70363
70364         2006-03-12  Bruno Haible  <bruno@clisp.org>
70365
70366                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70367
70368         2005-12-04  Bruno Haible  <bruno@clisp.org>
70369
70370                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70371                 (untested).
70372
70373         2006-06-21  Bruno Haible  <bruno@clisp.org>
70374
70375                 Avoid warnings from recent versions of mcs.
70376                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70377                 -o, -L, -r any more. Use options documented since mcs-1.0
70378                 instead. Similarly for -g.
70379
70380         2005-12-04  Bruno Haible  <bruno@clisp.org>
70381
70382                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70383                 .resources, not .resource.
70384
70385         2005-07-09  Bruno Haible  <bruno@clisp.org>
70386
70387                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70388                 add a .dll suffix.
70389                 Reported by Mark Junker <mjscod@gmx.de>.
70390
70391         2006-07-22  Bruno Haible  <bruno@clisp.org>
70392
70393                 * modules/gettext: Upgrade to gettext-0.15.
70394                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70395                 m4/visibility.m4.
70396                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70397
70398 2006-07-22  Bruno Haible  <bruno@clisp.org>
70399
70400         Merge from GNU gettext 0.15.
70401
70402         2006-03-25  Bruno Haible  <bruno@clisp.org>
70403
70404                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70405
70406         2006-07-21  Bruno Haible  <bruno@clisp.org>
70407
70408                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70409                 "1.1".
70410
70411         2006-05-09  Bruno Haible  <bruno@clisp.org>
70412
70413                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70414                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70415                 for the conftestver execution.
70416
70417         2006-05-01  Bruno Haible  <bruno@clisp.org>
70418
70419                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70420                 optional target-version argument. Verify that the compiler
70421                 groks source of the specified source-version, or add -source
70422                 option as necessary. Verify that the compiler produces
70423                 bytecode in the specified target-version, or add -target and
70424                 -source options as necessary. Make the result of the test
70425                 available as variable CONF_JAVAC. Also log error output in
70426                 config.log.
70427
70428         2006-03-11  Bruno Haible  <bruno@clisp.org>
70429
70430                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70431
70432         2006-05-09  Bruno Haible  <bruno@clisp.org>
70433
70434                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70435                 CLASSPATH_SEPARATOR to a semicolon.
70436
70437         2006-03-12  Bruno Haible  <bruno@clisp.org>
70438
70439                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70440                 available as variable CONF_JAVA, for subsequent autoconf
70441                 tests. Also log error output in config.log.
70442
70443         2006-07-19  Bruno Haible  <bruno@clisp.org>
70444
70445                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70446                 that getline works on glibc2 systems. Needed to avoid trouble
70447                 in relocatable.c.
70448                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70449
70450         2005-12-04  Bruno Haible  <bruno@clisp.org>
70451
70452                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70453                 launcher (untested).
70454
70455         2005-12-04  Bruno Haible  <bruno@clisp.org>
70456
70457                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70458
70459         2006-07-22  Bruno Haible  <bruno@clisp.org>
70460
70461                 * gettext.m4: Update from GNU gettext-0.15.
70462                 * nls.m4: Likewise.
70463                 * po.m4: Likewise.
70464                 * inttypes-pri.m4: Likewise.
70465                 * inttypes-h.m4: Renamed from inttypes.m4.
70466                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70467
70468 2006-07-22  Bruno Haible  <bruno@clisp.org>
70469
70470         Merge from GNU gettext 0.15.
70471
70472         2005-07-05  Bruno Haible  <bruno@clisp.org>
70473
70474                 * printf-args.c (printf_fetchargs): Work around broken
70475                 definition of wint_t on mingw.
70476
70477         2005-02-12  Bruno Haible  <bruno@clisp.org>
70478
70479                 * xallocsa.h: Add extern "C" for C++.
70480
70481         2006-05-17  Bruno Haible  <bruno@clisp.org>
70482
70483                 Cygwin portability.
70484                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70485
70486         2006-04-30  Bruno Haible  <bruno@clisp.org>
70487
70488                 * progreloc.c: Include <mach-o/dyld.h> if available.
70489                 (find_executable): Use _NSGetExecutablePath when possible.
70490
70491         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70492
70493                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70494                 function.
70495
70496         2005-12-29  Bruno Haible  <bruno@clisp.org>
70497
70498                 * progreloc.c (set_program_name_and_installdir): Fix
70499                 compilation error.
70500
70501         2005-12-04  Bruno Haible  <bruno@clisp.org>
70502
70503                 Cygwin portability.
70504                 * progreloc.c: Include <windows.h> also on Cygwin.
70505                 (find_executable): Add support for Cygwin.
70506                 (set_program_name_and_installdir): Handle also platforms with
70507                 nonempty EXEEXT.
70508
70509         2006-07-11  Bruno Haible  <bruno@clisp.org>
70510
70511                 * javacomp.c: Fix a comment.
70512                 Reported by Jim Meyering.
70513
70514         2006-04-30  Bruno Haible  <bruno@clisp.org>
70515
70516                 * javacomp.h (compile_java_class): Add source_version,
70517                 target_version arguments.
70518                 * javacomp.c: Rewritten to choose only a compiler that
70519                 respects the specified source_version and target_version.
70520
70521         2006-06-27  Bruno Haible  <bruno@clisp.org>
70522
70523                 Assume correct S_ISDIR macro.
70524                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70525
70526         2006-07-22  Bruno Haible  <bruno@clisp.org>
70527
70528                 * javaversion.h: New file, from GNU gettext.
70529                 * javaversion.c: New file, from GNU gettext.
70530                 * javaversion.java: New file, from GNU gettext.
70531                 * javaversion.class: New file, from GNU gettext.
70532
70533         2006-05-17  Bruno Haible  <bruno@clisp.org>
70534
70535                 Cygwin portability.
70536                 * javaexec.c (execute_java_class): Test for jview program
70537                 also on Cygwin.
70538
70539         2006-04-09  Bruno Haible  <bruno@clisp.org>
70540
70541                 * fatal-signal.c: Don't include string.h.
70542                 (at_fatal_signal): Use a copying loop instead of memcpy.
70543
70544         2005-12-04  Bruno Haible  <bruno@clisp.org>
70545
70546                 * csharpexec.c: Add support for 'clix' launcher (untested).
70547                 (execute_csharp_using_sscli): New function.
70548                 (execute_csharp_program): Call it.
70549
70550         2006-06-21  Bruno Haible  <bruno@clisp.org>
70551
70552                 Avoid warnings from recent versions of mcs.
70553                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70554                 -o, -L, -r any more. Use options documented since mcs-1.0
70555                 instead. Similarly for -g.
70556
70557         2005-07-09  Bruno Haible  <bruno@clisp.org>
70558
70559                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70560                 add a .dll suffix.
70561                 Reported by Mark Junker <mjscod@gmx.de>.
70562
70563         2006-06-17  Bruno Haible  <bruno@clisp.org>
70564
70565                 * config.charset: Update for NetBSD 3.0.
70566
70567         2006-05-17  Bruno Haible  <bruno@clisp.org>
70568
70569                 Cygwin portability.
70570                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70571
70572         2006-05-16  Bruno Haible  <bruno@clisp.org>
70573
70574                 * localcharset.c [CYGWIN]: Include <windows.h>.
70575                 (get_charset_aliases): For Cygwin, return the same CPxxx
70576                 aliases list as under WIN32.
70577                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70578                 the environment variables. Fall back to GetACP().
70579
70580         2006-04-05  Bruno Haible  <bruno@clisp.org>
70581
70582                 * config.charset: Update Juan Manuel Guerrero's address.
70583
70584         2005-02-12  Bruno Haible  <bruno@clisp.org>
70585
70586                 * allocsa.h: Add extern "C" for C++.
70587
70588         2005-02-10  Bruno Haible  <bruno@clisp.org>
70589
70590                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70591                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70592
70593         2006-07-22  Bruno Haible  <bruno@clisp.org>
70594
70595                 * gettext.h: Update to GNU gettext-0.15.
70596
70597 2006-07-22  Bruno Haible  <bruno@clisp.org>
70598
70599         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70600         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70601         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70602
70603 2006-07-21  Eric Blake  <ebb9@byu.net>
70604
70605         * modules/stdlib-safer: New file.
70606         * MODULES.html.sh (File stream based Input/Output): Add
70607         stdlib-safer.
70608
70609 2006-07-21  Eric Blake  <ebb9@byu.net>
70610
70611         * lib/stdlib-safer.h: New file from coreutils, required by
70612         stdlib--.h.
70613
70614 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70615
70616         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70617
70618 2006-07-20  Bruno Haible  <bruno@clisp.org>
70619
70620         * gnulib-tool: Recognize new option --assume-autoconf.
70621         (autoconf_minversion): New variable.
70622         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70623
70624 2006-07-20  Bruno Haible  <bruno@clisp.org>
70625
70626         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70627
70628 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70629
70630         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70631         Reindent and repaginate.
70632
70633 2006-07-19  Derek Price  <derek@ximbiot.com>
70634
70635         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70636         Correct grammar.
70637
70638 2006-07-17  Bruno Haible  <bruno@clisp.org>
70639
70640         * modules/list: New file.
70641         * modules/array-list: New file.
70642         * modules/carray-list, modules/carray-list-tests: New files.
70643         * modules/linked-list, modules/linked-list-tests: New files.
70644         * modules/avltree-list, modules/avltree-list-tests: New files.
70645         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70646         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70647         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70648         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70649         * modules/oset: New file.
70650         * modules/array-oset: New file.
70651         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70652         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70653         * tests/test-carray_list.c: New file.
70654         * tests/test-linked_list.c: New file.
70655         * tests/test-avltree_list.c: New file.
70656         * tests/test-rbtree_list.c: New file.
70657         * tests/test-linkedhash_list.c: New file.
70658         * tests/test-avltreehash_list.c: New file.
70659         * tests/test-rbtreehash_list.c: New file.
70660         * tests/test-avltree_oset.c: New file.
70661         * tests/test-rbtree_oset.c: New file.
70662         * MODULES.html.sh (Container data structures): New section.
70663
70664 2006-07-17  Bruno Haible  <bruno@clisp.org>
70665
70666         * m4/gl_list.m4: New file.
70667
70668 2006-07-17  Bruno Haible  <bruno@clisp.org>
70669
70670         * lib/gl_list.h: New file.
70671         * lib/gl_list.c: New file.
70672         * lib/gl_array_list.h: New file.
70673         * lib/gl_array_list.c: New file.
70674         * lib/gl_carray_list.h: New file.
70675         * lib/gl_carray_list.c: New file.
70676         * lib/gl_linked_list.h: New file.
70677         * lib/gl_linked_list.c: New file.
70678         * lib/gl_anylinked_list1.h: New file.
70679         * lib/gl_anylinked_list2.h: New file.
70680         * lib/gl_avltree_list.h: New file.
70681         * lib/gl_avltree_list.c: New file.
70682         * lib/gl_anyavltree_list1.h: New file.
70683         * lib/gl_anyavltree_list2.h: New file.
70684         * lib/gl_rbtree_list.h: New file.
70685         * lib/gl_rbtree_list.c: New file.
70686         * lib/gl_anyrbtree_list1.h: New file.
70687         * lib/gl_anyrbtree_list2.h: New file.
70688         * lib/gl_anytree_list1.h: New file.
70689         * lib/gl_anytree_list2.h: New file.
70690         * lib/gl_linkedhash_list.h: New file.
70691         * lib/gl_linkedhash_list.c: New file.
70692         * lib/gl_anyhash_list1.h: New file.
70693         * lib/gl_anyhash_list2.h: New file.
70694         * lib/gl_avltreehash_list.h: New file.
70695         * lib/gl_avltreehash_list.c: New file.
70696         * lib/gl_rbtreehash_list.h: New file.
70697         * lib/gl_rbtreehash_list.c: New file.
70698         * lib/gl_anytreehash_list1.h: New file.
70699         * lib/gl_anytreehash_list2.h: New file.
70700
70701         * lib/gl_oset.h: New file.
70702         * lib/gl_oset.c: New file.
70703         * lib/gl_array_oset.h: New file.
70704         * lib/gl_array_oset.c: New file.
70705         * lib/gl_avltree_oset.h: New file.
70706         * lib/gl_avltree_oset.c: New file.
70707         * lib/gl_rbtree_oset.h: New file.
70708         * lib/gl_rbtree_oset.c: New file.
70709         * lib/gl_anytree_oset.h: New file.
70710
70711 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70712
70713         * m4/mkancesdirs.m4: New file.
70714         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70715         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70716         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70717         it.
70718
70719 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70722         * lib/mkancesdirs.h: New files.
70723         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70724         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70725         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70726         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70727         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70728         callers changed.  Revamp internals significantly, by not
70729         attempting to create directories that are temporarily more
70730         permissive than the final results.  Do not attempt to use
70731         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70732         This removes some race conditions, fixes some bugs, and simplifies
70733         things.  Use new dirchownmod function to do owner and mode changes.
70734         * lib/mkdir-p.h: Likewise.
70735         * lib/modechange.c (octal_to_mode): New function.
70736         (struct mode_change): New member mentioned.
70737         (make_node_op_equals): New arg mentioned.  All callers changed.
70738         (mode_compile): Keep track of which mode bits the user has explicitly
70739         mentioned.
70740         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70741         New arg PMODE_BITS, to keep track of which mode bits the user
70742         mentioned; it treats S_ISUID and S_ISGID speciall.
70743         All callers changed.
70744         * lib/modechange.h: Likewise.
70745
70746 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70747
70748         * MODULES.html.sh: Add mkancestors.
70749         * modules/mkancesdirs: New module.
70750         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70751         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70752         The chdir-safer and afs files are now orphans; I'll remove them
70753         unless someone speaks up.
70754         Add lib/dirchownmod.c, lib/dirchownmod.h.
70755         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70756         Add lchown, mkancesdirs.
70757         (Maintainer): Add self.
70758
70759 2006-07-15  Karl Berry  <karl@gnu.org>
70760
70761         * gnulib-tool: help message wording/arrangement.
70762
70763 2006-07-14  Simon Josefsson  <jas@extundo.com>
70764
70765         * doc/gnulib.texi (Libtool and Windows): New section.
70766
70767 2006-07-12  Simon Josefsson  <jas@extundo.com>
70768
70769         * modules/gendocs (License): Fix license, approved by Karl.
70770
70771 2006-07-12  Eric Blake  <ebb9@byu.net>
70772
70773         * MODULES.html.sh: Add gendocs.
70774
70775 2006-07-11  Eric Blake  <ebb9@byu.net>
70776
70777         * modules/fdl: New module, to install doc/fdl.texi.
70778         * MODULES.html.sh: Add new section for documentation modules.
70779         * gnulib-tool: Avoid space-tab.
70780         (--doc-base): New option, to manage files from doc.
70781
70782 2006-07-11  Eric Blake  <ebb9@byu.net>
70783
70784         * m4/absolute-header.m4: Fix comments to match recent change.
70785
70786 2006-07-11  Eric Blake  <ebb9@byu.net>
70787
70788         * gnulib-tool: List --doc-base before --tests-base.
70789
70790 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70791
70792         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70793
70794 2006-07-11  Bruno Haible  <bruno@clisp.org>
70795
70796         * README: Mention where to put documentation.
70797
70798 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70799
70800         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70801
70802 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70805         to stdint.m4.
70806
70807 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70808
70809         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70810         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70811         "no/such/file/stdint.h" when there is no such file, so that
70812         the resulting C code can be parsed by dodgy compilers.
70813         Problems reported by Bob Proulx.
70814
70815 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70816
70817         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70818         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70819         macros into the GNU _D_EXACT_NAMLEN.
70820         * lib/savedir.c:  Likewise.
70821         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70822
70823 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70824         and Paul Eggert  <eggert@cs.ucla.edu>
70825
70826         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70827         * m4/savedir.m4:
70828         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70829         macros into the GNU _D_EXACT_NAMLEN.
70830
70831 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70832
70833         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70834         around the absolute name, to work around a problem with the HP-UX
70835         11.23 native C compiler, reported by Bob Proulx.
70836
70837 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         * doc/maintain.texi, make-stds.texi: Sync from
70840         <http://savannah.gnu.org/projects/gnustandards>.
70841
70842 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70843
70844         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70845
70846 2006-07-09  Jim Meyering  <jim@meyering.net>
70847
70848         * m4/glob.m4: Remove a doubled word in a comment.
70849
70850 2006-07-09  Jim Meyering  <jim@meyering.net>
70851
70852         * lib/argp-pv.c: Remove a doubled word in a comment.
70853         * lib/check-version.c (check_version): Likewise.
70854         * lib/javacomp.c (compile_java_class): Likewise.
70855
70856 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70859         for the benefit of people using Autoconf 2.60.  If you want to
70860         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70861         (or m4/onceonly.m4, if pre-2.57) manually.
70862
70863 2006-07-08  Jim Meyering  <jim@meyering.net>
70864
70865         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70866         comment.
70867         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70868         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70869         comment.
70870
70871 2006-07-08  Jim Meyering  <jim@meyering.net>
70872
70873         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70874
70875 2006-07-07  Simon Josefsson  <jas@extundo.com>
70876
70877         * tests/test-crc.c: Change expected crc value, the test vector
70878         were probably computed using the old broken crc.c?
70879
70880 2006-07-06  Simon Josefsson  <jas@extundo.com>
70881
70882         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70883         now the canonical place for the M4 file).
70884
70885         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70886         from the sys_socket dependency now.
70887
70888         * modules/inet_pton (Files): Ditto.
70889
70890         * modules/inet_ntop (Files): Ditto.
70891
70892 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70893
70894         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70895         not gl_PREREQ_GETUSERSHELL.
70896
70897 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70898
70899         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70900         with only one argument, for Autoconf 2.60.
70901         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70902         expand to nothing, so add a shell command to avoid syntax error.
70903         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70904
70905 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70906
70907         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70908
70909 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70912         no longer needed.  Check for isblank decl.
70913         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70914         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70915         of existence.
70916
70917 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70918
70919         * lib/getloadavg.c: Use __VMS, not VMS.
70920         * lib/getopt.c: Likewise.
70921         * lib/getpagesize.h: Likewise.
70922         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70923         and probably does not work.
70924
70925 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70926
70927         * lib/.cppi-disable: Add wcwidth.
70928         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70929         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70930         (ISGRAPH): Remove.  All uses changed to isgraph.
70931         (FOLD) [!defined _LIBC]: Remove special case.
70932         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70933         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70934         HAVE_ISBLANK.
70935         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70936         case.
70937
70938 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70939
70940         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70941         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70942         brackets.  Other minor changes to suppress some compiler
70943         warnings.
70944
70945 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70946         and Paul Eggert  <eggert@cs.ucla.edu>
70947
70948         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70949         of invoking obsolescent AC_HEADER_DIRENT macro.
70950         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70951         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70952         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70953         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70954         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70955         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70956         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70957         * m4/readdir.m4: Remove; no longer needed.
70958
70959 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70960         and Paul Eggert  <eggert@cs.ucla.edu>
70961
70962         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70963         Don't worry about this obsolete case any more.
70964         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70965         directories.
70966         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70967         worry about this obsolete case any more.
70968         * lib/fts.c: Likewise.
70969         * lib/getcwd.c: Likewise.
70970         * lib/glob.h: Likewise.
70971         * lib/savedir.c: Likewise.
70972
70973 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70974
70975         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70976         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70977         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70978         needed.
70979         All uses removed.
70980         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70981         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70982         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70983         needed.
70984         * m4/getdate.m4 (gl_GETDATE): Likewise.
70985         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70986         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70987         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70988         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70989         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70990         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70991         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70992         needed.
70993
70994 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70995
70996         * lib/memcasecmp.c: Include <limits.h>.
70997         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70998         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70999         Don't assume isdigit succeeds only on '0' through '9'.
71000
71001 2006-07-05  Eric Blake  <ebb9@byu.net>
71002
71003         * modules/getaddrinfo (Depends-on): Add snprintf.
71004
71005 2006-07-05  Eric Blake  <ebb9@byu.net>
71006
71007         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71008         to avoid 'header present but could not be compiled' on cygwin.
71009
71010 2006-07-05  Eric Blake  <ebb9@byu.net>
71011
71012         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71013         missing from netdb.h.
71014         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71015
71016 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71017
71018         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71019         no longer needed.
71020         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71021         * m4/getdate.m4 (gl_GETDATE): Likewise.
71022         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71023         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71024         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71025         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71026         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71027
71028 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71029
71030         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71031         All uses of is_space replaced by isspace.
71032         * lib/exit.h: Don't talk about STDC_HEADERS.
71033         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71034         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71035         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71036         replaced by isprint etc.
71037         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71038         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71039         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71040         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71041         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71042         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71043
71044 2006-07-05  Bruno Haible  <bruno@clisp.org>
71045
71046         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71047         the function exists, before testing against AIX.
71048         Reported by Martin Lambers <marlam@marlam.de>.
71049
71050 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71051
71052         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71053         From Mark D. Baushke.
71054
71055 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71056
71057         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71058         to the absolute name, not just one, to bypass Sun C 5.8's
71059         "warning: #include of /usr/include/... may be non-portable".
71060
71061 2006-07-04  Eric Blake  <ebb9@byu.net>
71062
71063         * modules/dirname-tests: New test module.
71064         * tests/test-dirname.c: New file, replacing dirname.c
71065         TEST_DIRNAME section that was recently deleted.
71066
71067 2006-07-04  Bruno Haible  <bruno@clisp.org>
71068
71069         Assume ANSI C header files and <ctype.h> functions.
71070         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71071         (mbsnwidth): Use isprint, iscntrl instead.
71072
71073 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71074
71075         Merge from coreutils.
71076         * MODULES.html.sh: Add xstrtold.
71077         * modules/xstrtold: New file.
71078         * modules/cycle-check (Files): Add lib/same-inode.h.
71079         * modules/dirname (Files): Add m4/double-slash-root.m4.
71080         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71081         * modules/mkdir-p (Files): Add lib/same-inode.h.
71082         * modules/same (Files): Add lib/same-inode.h.
71083
71084 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71087         This is to keep the terminology clean; POSIX talks about
71088         "absolute pathnames", not "full pathnames", but the GNU
71089         Coding Standards say to use "path" for something else;
71090         so use "absolute" to keep both sides happy.
71091         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71092         Set gl_absolute_header, not gl_full_header_path.
71093         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71094         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71095         All uses changed.
71096
71097         Merge from coreutils.
71098
71099         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71100
71101         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71102         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71103         want to require the building of c-strtod.o.
71104         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71105         needs -lm directly.
71106         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71107
71108         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71109
71110         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71111         --as-needed option if available.  Problem reported by Albert Chin in
71112         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71113         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71114         cc merely issues a bunch of annoying warnings for --as-needed
71115         (this problem was reported by Bob Proulx).  Also, try linking with
71116         -lm to detect a bug in binutils 2.16 (this problem was reported
71117         by Ralf Wildenhues).
71118
71119         2006-06-18  Jim Meyering  <jim@meyering.net>
71120
71121         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71122         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71123         macro.
71124         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71125         also check for glibc-2.4's abort-inducing bug.
71126
71127         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71128         Low-probability clean-up should be to use rmdir to get rid of
71129         the just-created directory, not unlink.
71130
71131         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71132         configure fail, and request a bug report to inform us about it.
71133         Add a comment that, barring reports to the contrary, in 2007 we'll
71134         assume ftruncate is universally available.
71135
71136         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71137
71138         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71139
71140         2006-03-12  Jim Meyering  <jim@meyering.net>
71141
71142         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71143         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71144         * m4/same.m4 (gl_SAME): Likewise.
71145         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71146
71147         2006-03-11  Eric Blake  <ebb9@byu.net>
71148
71149         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71150         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71151         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71152         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71153
71154 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71155
71156         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71157         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71158         reported by Mark D. Baushke, one in
71159         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71160
71161         Merge from coreutils.
71162
71163         * lib/.cppi-disable: Add stdint_.h.
71164         * lib/.cvsignore: Add stdint.h.
71165
71166         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71169         both double and long double versions.
71170         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71171         * lib/xstrtold.c: New file.
71172         * lib/xstrtod.h (xstrtold): New decl.
71173
71174         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * lib/filemode.c (setst): Remove.
71177         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71178         (arguably) clearer, and the generated code is a bit smaller on my
71179         Debian GNU/Linux stable x86 host.
71180
71181         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71182
71183         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71184         Assume that filemode.h includes sys/types.h and sys/stat.h.
71185         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71186         (ftypelet): Reorder to put common cases first, for efficiency.
71187         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71188         to do 'M'.
71189         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71190         of 10, for compatibility with FreeBSD.  All callers changed.
71191         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71192         types that can't be deduced solely from st_mode.  First arg is now a
71193         const pointer.
71194         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71195         (strmode): Renamed from mode_string.
71196         (filemodestring): New decl.
71197         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71198         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71199         needed.
71200         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71201
71202         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71203
71204         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71205         fsusage.h now does that.  Include fsusage.h first, to test interface.
71206         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71207         at most one method (the old code could have generated decls that
71208         didn't conform to C89, not that this was ever exercised).
71209         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71210
71211         2006-03-19  Jim Meyering  <jim@meyering.net>
71212
71213         Work even in a chroot where d_ino values for entries in "/"
71214         don't match the stat.st_ino values for the same names.
71215         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71216         number, iterate through all entries again, using lstat instead.
71217         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71218         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71219
71220         * lib/getcwd.c (__getcwd): Clarify a comment.
71221         Use memcpy in place of a call to strcpy.
71222
71223         2006-03-12  Jim Meyering  <jim@meyering.net>
71224
71225         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71226         matches that of the current directory (which we're about to chdir ".."
71227         out of), then save the dev-ino of the parent, instead.
71228
71229         * lib/same-inode.h (SAME_INODE): New file/macro.
71230         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71231         Include "same-inode.h", instead.
71232         * lib/same.c: Likewise.
71233         * lib/cycle-check.h: Include "same-inode.h".
71234         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71235         * lib/cycle-check.c (SAME_INODE): Remove definition.
71236         * lib/root-dev-ino.h: Include "same-inode.h".
71237
71238         2006-03-11  Eric Blake  <ebb9@byu.net>
71239
71240         * lib/same.c (same_name): s/base_name/last_component/
71241         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71242         * lib/filenamecat.c (file_name_concat): Likewise.
71243
71244         2006-03-11  Eric Blake  <ebb9@byu.net>,
71245                     Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71248         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71249         drive prefix.
71250         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71251         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71252         (last_component): New method.
71253         * lib/dirname.c (dir_len): Determine when drive letters need a
71254         subsequent slash.  Preserve // when it is special.
71255         (dir_name): Don't append dot when drive letter is absolute.
71256         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71257         * lib/basename.c (base_name): New semantics - malloc the result.
71258         Preserve // when it is special.  Preserve relative files that look
71259         like drive letters.
71260         (base_len): Preserve // when it is special.
71261         (last_component): New method, similar to old base_name semantics.
71262         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71263         base_name.  Strip redundant slashes from ///.
71264
71265 2006-07-03  Jim Meyering  <jim@meyering.net>
71266
71267         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71268         macro is used before the first cycle_check call.
71269
71270 2006-07-03  Eric Blake  <ebb9@byu.net>
71271
71272         * modules/dirname (Depends-on): Add xstrndup.
71273
71274 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71275
71276         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71277         test cases, so that config.log is a bit easier to follow.
71278
71279 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71280
71281         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71282         both are 64 bits, since this seems to be the tradition, and this
71283         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71284         we ever run into a host that prefers long long to long in this
71285         case, we'll need another configure-time test.  Problem reported by
71286         Jim Meyering.
71287
71288 2006-07-02  Eric Blake  <ebb9@byu.net>
71289
71290         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71291
71292 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         * modules/inttypes (Depends-on): No longer depends on stdint.
71295         * modules/stdint (Description): Say more about assumptions.
71296         Say that the fast types might differ.  Say macros are used.
71297         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71298         (Makefile.am): Revise list of substituted symbols to match
71299         new stdint.m4.
71300         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71301         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71302         * tests/test-stdint.c (verify_same_types)
71303         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71304         the code conforms to C99/C89.
71305         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71306         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71307
71308 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71309
71310         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71311         but fix a bug, by requiring at least 64 bits.
71312         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71313         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71314         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71315         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71316
71317         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71318         changes.  Make 2.59 a prerequisite.  Check and substitute for
71319         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71320         inttypes.h.  Do not use special include files; just use the
71321         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71322         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71323         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71324         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71325         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71326         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71327         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71328         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71329         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71330         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71331         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71332         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71333         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71334         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71335         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71336         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71337         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71338         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71339         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71340         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71341         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71342         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71343         not check for things that C99 does not require, e.g., int8_t.  If
71344         a test isn't needed unless <stdint.h> isn't working, and is
71345         unlikely to be needed for any other reason, then don't do it
71346         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71347         size_t, since we assume C89 freestanding at least.  Do not check
71348         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71349         the right thing even if the types are not defined.  Instead use:
71350         (gl_STDINT_TYPE_PROPERTIES): New macro.
71351         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71352         testing whether <sys/types.h> clashes, as Autoconf does this for
71353         us now.  All uses removed.
71354         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71355         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71356         (gl_CHECK_TYPE_SAME):
71357         Remove; no longer needed.
71358         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71359         exists, since we'll return 0 anyway in that case.
71360         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71361
71362 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71363
71364         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71365         possible collision with system files.
71366         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71367         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71368         WCHAR_MIN and WCHAR_MAX in this case.
71369         (<stddef.h>): Do not include; no longer needed.
71370         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71371         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71372         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71373         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71374         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71375         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71376         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71377         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71378         !defined(__c99))]: Include in this case too, since it's harmless
71379         now.
71380         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71381         dangerous to do so.
71382         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71383         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71384         (_STDINT_MIN, _STDINT_MAX): New macros.
71385         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71386         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71387         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71388         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71389         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71390         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71391         macros, not typedefs; this simplifies things quite a bit.
71392         Use long int for all types narrower than int64_t.
71393         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71394         Define in terms of long long int or int64_t or long int,
71395         not int64_t or int32_t.  This saves some compile-time testing.
71396         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71397         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71398         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71399         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71400         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71401         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71402         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71403         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71404         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71405         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71406         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71407         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71408         undef any previous version and define our own version, for
71409         simplicity and consistency with the new macros for types.
71410         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71411         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71412         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71413         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71414         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71415         @WINT_T_SUFFIX@ to keep things simple here.
71416         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71417         Simplify by assuming typical 8/16/32/64 host, since we're
71418         already doing that elsewhere anyway.
71419         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71420         and assume long long int is 64 bits if available.  This
71421         speeds up 'configure'.
71422
71423 2006-07-01  Eric Blake  <ebb9@byu.net>
71424
71425         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71426         Reported by Andreas Buening.
71427
71428 2006-07-01  Eric Blake  <ebb9@byu.net>
71429
71430         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71431
71432 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71433
71434         * lib/getaddrinfo.c: fixed typo
71435
71436 2006-06-29  Jim Meyering  <jim@meyering.net>
71437
71438         * modules/strftime (Maintainer): Add my name, since with the
71439         FPRINTFTIME changes strftime.c has forked from glibc.
71440
71441 2006-06-29  Eric Blake  <ebb9@byu.net>
71442
71443         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71444
71445 2006-06-29  Eric Blake  <ebb9@byu.net>
71446
71447         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71448
71449 2006-06-29  Eric Blake  <ebb9@byu.net>
71450
71451         * lib/stat_.h: New file.
71452
71453 2006-06-29  Eric Blake  <ebb9@byu.net>
71454
71455         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71456         unused static function.
71457
71458 2006-06-29  Eric Blake  <ebb9@byu.net>
71459
71460         * doc/functions.texi (Function Portability): Document missing lstat
71461         on mingw.
71462
71463 2006-06-29  Eric Blake  <ebb9@byu.net>
71464
71465         * MODULES.html.sh: Add sys_stat.
71466         * modules/sys_stat: New module.
71467         * modules/mkstemp (Depends-on): Add sys_stat.
71468
71469 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71470
71471         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71472
71473 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71474
71475         * m4/c-bs-a.m4: Removed.
71476
71477 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71478
71479         * lib/strftime.c: Assume strftime() exists.
71480
71481 2006-06-29  Derek Price  <derek@ximbiot.com>
71482
71483         * modules/c-bs-a: Removed - \a is C89.
71484         * MODULES.html.sh: Remove c-bs-a.
71485
71486 2006-06-29  Bruno Haible  <bruno@clisp.org>
71487
71488         * modules/wcwidth (License): Change to LGPL.
71489
71490 2006-06-28  Simon Josefsson  <jas@extundo.com>
71491
71492         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71493         on _WIN32.
71494
71495         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71496         getnameinfo.
71497
71498 2006-06-28  Simon Josefsson  <jas@extundo.com>
71499
71500         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71501
71502 2006-06-28  Simon Josefsson  <jas@extundo.com>
71503
71504         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71505         functions there.  It will succeed on Windows XP, but on Windows
71506         2000 and (presumably) earlier, it will fail, and use the internal
71507         re-implementation.
71508         (use_win32_p): New function.
71509         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71510         Support AI_NUMERICSERV to disable getservbyname.
71511         (getnameinfo): New function, only supports
71512         NI_NUMERICHOST|NI_NUMERICSERV for now.
71513
71514         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71515         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71516         getnameinfo.
71517
71518 2006-06-28  Eric Blake  <ebb9@byu.net>
71519
71520         * modules/wcwidth: New file.
71521         * modules/mbchar (Depends-on): Add wcwidth.
71522         * modules/mbswidth (Depends-on): Add wcwidth.
71523         * MODULES.html.sh: Add wcwidth.
71524
71525 2006-06-28  Eric Blake  <ebb9@byu.net>
71526
71527         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71528         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71529
71530 2006-06-28  Eric Blake  <ebb9@byu.net>
71531
71532         * lib/xvasprintf.h: Fix comments.
71533
71534 2006-06-28  Eric Blake  <ebb9@byu.net>
71535
71536         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71537         * lib/mbswidth.c (wcwidth): Move from here...
71538         * lib/wcwidth.h: ...to this new file.
71539
71540 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71541
71542         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71543
71544         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71545         it's obsolete.
71546         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71547
71548 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71549
71550         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71551         Autoconf 2.60 says this stuff was obsolete.
71552
71553 2006-06-28  Bruno Haible  <bruno@clisp.org>
71554
71555         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71556
71557 2006-06-28  Bruno Haible  <bruno@clisp.org>
71558
71559         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71560         gt_TYPE_WCHAR_T.
71561
71562 2006-06-28  Bruno Haible  <bruno@clisp.org>
71563
71564         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71565         declaration for wcwidth.
71566         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71567
71568 2006-06-28  Bruno Haible  <bruno@clisp.org>
71569
71570         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71571         (mkdir): Define using _mkdir.
71572
71573 2006-06-28  Bruno Haible  <bruno@clisp.org>
71574
71575         * lib/getaddrinfo.h: Fix POSIX URL.
71576         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71577         _WIN32.
71578         (use_win32_p): Make static.
71579         (getaddrinfo): Reject service name if it is empty or does not consist
71580         solely of decimal digits, or if its value is > 65535.
71581         (getnameinfo): Remove useless casts.
71582
71583 2006-06-27  Simon Josefsson  <jas@extundo.com>
71584
71585         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71586         Eggert and Martin Lambers.
71587
71588 2006-06-27  Simon Josefsson  <jas@extundo.com>
71589
71590         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71591         Eggert and Martin Lambers.
71592
71593 2006-06-27  Bruno Haible  <bruno@clisp.org>
71594
71595         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71596         result to 0, not to empty.
71597         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71598
71599 2006-06-27  Bruno Haible  <bruno@clisp.org>
71600
71601         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71602
71603 2006-06-26  Simon Josefsson  <jas@extundo.com>
71604
71605         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71606         present.
71607
71608 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71609
71610         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71611         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71612         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71613
71614 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71615
71616         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71617
71618 2006-06-26  Bruno Haible  <bruno@clisp.org>
71619
71620         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71621
71622 2006-06-26  Bruno Haible  <bruno@clisp.org>
71623
71624         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71625
71626 2006-06-26  Bruno Haible  <bruno@clisp.org>
71627
71628         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71629         SGI C compiler in pre-C99 mode.
71630         Suggested by Mark D. Baushke and Larry Jones.
71631
71632 2006-06-26  Bruno Haible  <bruno@clisp.org>
71633
71634         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71635         WCHAR_MAX.
71636         Reported by Mark D. Baushke and Larry Jones.
71637
71638 2006-06-26  Bruno Haible  <bruno@clisp.org>
71639
71640         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71641         in pre-C99 mode.
71642         Suggested by Mark D. Baushke and Larry Jones.
71643
71644 2006-06-23  Simon Josefsson  <jas@extundo.com>
71645             Bruno Haible  <bruno@clisp.org>
71646
71647         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71648         Emit mostlyclean-local rule.
71649         (func_emit_tests_Makefile_am): Likewise.
71650         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71651
71652 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71653
71654         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71655
71656 2006-06-23  Bruno Haible  <bruno@clisp.org>
71657
71658         * tests/test-stdint.c: Update to match ISO C 99 Technical
71659         Corrigendum 1.
71660
71661 2006-06-23  Bruno Haible  <bruno@clisp.org>
71662
71663         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71664
71665 2006-06-23  Bruno Haible  <bruno@clisp.org>
71666
71667         * lib/stdint_.h: Treat IRIX like OpenBSD.
71668
71669 2006-06-23  Bruno Haible  <bruno@clisp.org>
71670
71671         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71672         ISO C 99 Technical Corrigendum 1.
71673
71674 2006-06-22  Simon Josefsson  <jas@extundo.com>
71675
71676         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71677         MinGW.
71678
71679 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71680
71681         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71682         needed.  Some compiler complained about some of them.  Problem reported
71683         by Larry Jones in
71684         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71685
71686 2006-06-21  Simon Josefsson  <jas@extundo.com>
71687
71688         * tests/test-getaddrinfo.c: New file.
71689
71690         * modules/getaddrinfo-tests: New file.
71691
71692         * MODULES.html.sh: Add inet_pton.
71693
71694         * modules/inet_pton: New file.
71695
71696 2006-06-21  Simon Josefsson  <jas@extundo.com>
71697
71698         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71699         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71700         of using the (limited) gnulib implementation on Windows XP.
71701
71702         * m4/inet_pton.m4: New file.
71703
71704 2006-06-21  Simon Josefsson  <jas@extundo.com>
71705
71706         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71707         variable.
71708
71709         * lib/socket_.h: Don't define WINVER.
71710
71711         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71712         slightly modified to work in gnulib.
71713
71714 2006-06-21  Simon Josefsson  <jas@extundo.com>
71715
71716         * doc/gnulib.texi (Windows sockets): Add.
71717
71718 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71719
71720         * lib/read-file.c (fread_file): Start with buffer allocation of
71721         0 bytes rather than 1 byte; this simplifies the code.
71722         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71723         code to free buffer and save/restore errno.
71724         (internal_read_file): Remove unused local.
71725
71726 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71727
71728         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71729         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71730         Problem reported by Denis Excoffier in
71731         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71732
71733 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71734
71735         * modules/sys_socket, modules/socklen: Include sys/types since
71736         FreeBSD 4.x's sys/socket.h needs it.
71737
71738 2006-06-19  Simon Josefsson  <jas@extundo.com>
71739
71740         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71741
71742 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71745
71746 2006-06-19  Bruno Haible  <bruno@clisp.org>
71747
71748         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71749         and FULL_PATH_INTTYPES_H in angle brackets.
71750         Reported by Mark D. Baushke <mdb@gnu.org>.
71751
71752 2006-06-17  Eric Blake  <ebb9@byu.net>
71753
71754         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71755         errno.
71756
71757 2006-06-17  Bruno Haible  <bruno@clisp.org>
71758
71759         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71760         <sys/inttypes.h>.
71761
71762 2006-06-17  Bruno Haible  <bruno@clisp.org>
71763
71764         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71765         whether errno is declared. Assume <errno.h> declares errno.
71766
71767 2006-06-17  Bruno Haible  <bruno@clisp.org>
71768
71769         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71770
71771 2006-06-17  Bruno Haible  <bruno@clisp.org>
71772
71773         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71774         problem on Solaris 2.5.1.
71775
71776 2006-06-16  Eric Blake  <ebb9@byu.net>
71777
71778         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71779         * lib/unicodeio.c [!defined errno]: Likewise.
71780         * lib/strtol.c [!defined errno]: Likewise.
71781         * lib/strtod.c [!defined errno]: Likewise.
71782
71783 2006-06-15  Eric Blake  <ebb9@byu.net>
71784
71785         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71786
71787 2006-06-15  Eric Blake  <ebb9@byu.net>
71788
71789         * config/srclist.txt (ssize_t.m4): Lose sync.
71790
71791 2006-06-15  Bruno Haible  <bruno@clisp.org>
71792
71793         * modules/stdint (Files): Include m4/full-header-path.m4,
71794         m4/size_max.m4, m4/wchar_t.m4.
71795         (Makefile.am): Many more substitutions.
71796         * modules/stdint-tests: New file.
71797         * tests/test-stdint.c: New file.
71798
71799 2006-06-15  Bruno Haible  <bruno@clisp.org>
71800
71801         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71802         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71803         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71804         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71805         gl_CHECK_TYPE_SAME): New macros.
71806
71807 2006-06-15  Bruno Haible  <bruno@clisp.org>
71808
71809         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71810
71811 2006-06-15  Bruno Haible  <bruno@clisp.org>
71812
71813         * lib/stdint_.h: Rewritten to be fully auto-configured.
71814         Fixes bug on HP-UX/IA64.
71815
71816 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71817
71818         * lib/getdate.y (__attribute__): Don't define if already defined.
71819         Problem reported by Larry Jones.
71820         * lib/utimens.c (__attribute__): Likewise.
71821
71822 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71823
71824         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71825         reported by Andreas Schwab.
71826
71827 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71828             Bruno Haible  <bruno@clisp.org>
71829
71830         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71831         check for the declaration of strnlen and a run test that exposes the
71832         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71833         rpl_strndup.
71834
71835 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71836             Bruno Haible  <bruno@clisp.org>
71837
71838         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71839
71840 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71841
71842         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71843         compile test, for Tru64 4.0D.
71844
71845 2006-05-28  Karl Berry  <karl@gnu.org>
71846
71847         * config/srclist.txt (printf-args.c): lose sync.
71848
71849 2006-05-26  Martin Lambers  <marlam@marlam.de>
71850
71851         * lib/getpass.c: Updates the test for the native W32 API, and adds
71852         missing includes, thus fixing compilation warnings.
71853
71854 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71855
71856         * lib/exclude.c (exclude_fnmatch): New function.
71857         (excluded_file_name): Call exclude_fnmatch.
71858         * lib/exclude.h (excluded_file_name): New prototype
71859
71860 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71861
71862         * lib/tempname.c (small_open, large_open): New macros.
71863         (__open, __open64) [!_LIBC]: Remove.
71864         (__gen_tempname): Use small_open and large_open instead of __open
71865         and __open64.  This fixes a portability bug on HP-UX 11.11i
71866         reported by Simon Wing-Tang in
71867         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71868
71869 2006-05-24  Bruno Haible  <bruno@clisp.org>
71870
71871         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71872         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71873         Reported by Thorsten Maerz <torte@netztorte.de> via
71874         Aaron Stone <aaron@serendipity.cx>.
71875
71876 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71877
71878         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71879         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71880         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71881         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71882         not really conditional on the cache.
71883         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71884
71885 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71886
71887         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71888         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71889         (my_usleep): Don't mishandle maximum value.
71890
71891 2006-05-19  Jim Meyering  <jim@meyering.net>
71892
71893         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71894
71895 2006-05-17  Bruno Haible  <bruno@clisp.org>
71896
71897         Cygwin portability.
71898         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71899
71900 2006-05-17  Bruno Haible  <bruno@clisp.org>
71901
71902         * lib/stdint_.h: Fix recognition of Cygwin.
71903
71904 2006-05-15  Bruno Haible  <bruno@clisp.org>
71905
71906         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71907         on libtool patch by Ralf Wildenhues.
71908
71909 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71910
71911         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71912         test for C99 conformance; (bool) 0.5 is an integer constant
71913         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71914         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71915
71916 2006-05-11  Simon Josefsson  <jas@extundo.com>
71917
71918         * m4/xvasprintf.m4: Fix obvious typo.
71919
71920 2006-05-11  Jim Meyering  <jim@meyering.net>
71921
71922         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71923         James Lemley.
71924
71925 2006-05-10  Simon Josefsson  <jas@extundo.com>
71926
71927         * lib/md4.c: Typo fix, update copyright years.
71928         (K1, K2): Don't use L because it turn computations into 64-bit on
71929         64-bit platforms.
71930
71931 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71932
71933         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71934         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71935         unwanted sign propagation, e.g., on hosts with 64-bit int.
71936         There still are some problems with reeelly weird theoretical hosts
71937         (e.g., 33-bit int) but it's not worth worrying about now.
71938         * lib/sha1.c (rol): Likewise.
71939         (K1, K2, K3, K4): Remove unnecessary L suffix.
71940
71941 2006-05-10  Bruno Haible  <bruno@clisp.org>
71942
71943         * lib/des.c: Cast to avoid warnings.
71944
71945 2006-05-09  Bruno Haible  <bruno@clisp.org>
71946
71947         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71948         (Depends-on): Depend also on xsize, stdarg.
71949         (configure.ac): Add gl_XVASPRINTF.
71950
71951 2006-05-09  Bruno Haible  <bruno@clisp.org>
71952
71953         * m4/xvasprintf.m4: New file.
71954
71955 2006-05-09  Bruno Haible  <bruno@clisp.org>
71956
71957         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71958         (EOVERFLOW): Define fallback value.
71959         (xstrcat): New function.
71960         (xvasprintf): Recognize the special case of a string concatenation.
71961
71962 2006-05-08  Eric Blake  <ebb9@byu.net>
71963
71964         * gnulib-tool (func_version): Base copyright year on CVS date.
71965         (func_emit_copyright_notice): New function.
71966         (func_emit_lib_Makefile_am): Use it.
71967         (func_emit_tests_Makefile_am): Likewise.
71968         (func_import): Likewise.
71969
71970 2006-05-08  Bruno Haible  <bruno@clisp.org>
71971
71972         * modules/stdarg: New file.
71973         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71974
71975 2006-05-08  Bruno Haible  <bruno@clisp.org>
71976
71977         * m4/stdarg.m4: New file, from GNU gettext.
71978
71979 2006-05-08  Bruno Haible  <bruno@clisp.org>
71980
71981         * config/srclist.txt (build-aux/config.rpath): different from latest
71982         release.
71983
71984 2006-05-08  Bruno Haible  <bruno@clisp.org>
71985
71986         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71987
71988 2006-05-05  Jim Meyering  <jim@meyering.net>
71989
71990         * m4/warning.m4: New file, derived from bison's file by the same name.
71991
71992 2006-05-03  Bruno Haible  <bruno@clisp.org>
71993
71994         * lib/stdint_.h: Shorter URL.
71995         * lib/inttypes.h: Likewise.
71996
71997 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71998
71999         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72000
72001 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72002
72003         * lib/verify.h: Document the internals better.  Most of this change
72004         was written by Bruno Haible.
72005
72006 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72007
72008         * doc/verify.texi: New file, partly based on a proposal by
72009         Bruno Haible.
72010
72011 2006-05-02  Bruno Haible  <bruno@clisp.org>
72012
72013         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72014         test from here...
72015         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72016
72017 2006-04-29  Bruno Haible  <bruno@clisp.org>
72018
72019         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72020         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72021
72022 2006-04-29  Bruno Haible  <bruno@clisp.org>
72023
72024         * gnulib-tool: Make --update option actually work.
72025
72026 2006-04-29  Bruno Haible  <bruno@clisp.org>
72027
72028         * doc/gcd.texi: New file.
72029         * doc/gnulib.texi: Include it.
72030
72031 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72032
72033         * lib/getdate.y (get_date): When adding relative date, start with the
72034         initial time, not with the result of the first mktime call.
72035
72036 2006-04-25  Bruno Haible  <bruno@clisp.org>
72037
72038         * gnulib-tool (func_import): Output the include directives in three
72039         blocks, sorted separately.
72040         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72041
72042 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72043
72044         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72045         to define main with arguments, for C++.  Reported by Eric Blake.
72046         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72047         Prefer 'int main ()' to 'int main (void)', for C++.
72048         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72049         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72050         for 'main', for C99 and C++.
72051
72052 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72053
72054         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72055         Don't assume that exit status -1 is valid.
72056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72057         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72058         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72059         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72060         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72061         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72062         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72063         functions can be used without declaring them, or that you can
72064         exit with status -1.
72065         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72066
72067 2006-04-24  Karl Berry  <karl@gnu.org>
72068
72069         * config/srclist.txt (longdouble.m4): sync lost.
72070
72071 2006-04-24  Eric Blake  <ebb9@byu.net>
72072
72073         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72074
72075 2006-04-24  Bruno Haible  <bruno@clisp.org>
72076
72077         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72078         poll() implementation in AIX.
72079         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72080
72081 2006-04-24  Bruno Haible  <bruno@clisp.org>
72082
72083         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72084         assigned exactly once.
72085
72086 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72087             Bruno Haible  <bruno@clisp.org>
72088
72089         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72090         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72091         for AM_CPPFLAGS.
72092
72093 2006-04-23  Bruno Haible  <bruno@clisp.org>
72094
72095         * modules/copy-file: Depend on unistd.
72096         * modules/execute: Likewise.
72097         * modules/fatal-signal: Likewise.
72098         * modules/findprog: Likewise.
72099         * modules/mkdtemp : Likewise.
72100         * modules/pipe: Likewise.
72101         * modules/wait-process: Likewise.
72102
72103 2006-04-23  Bruno Haible  <bruno@clisp.org>
72104
72105         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72106         condition was already detected.
72107         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72108
72109 2006-04-23  Bruno Haible  <bruno@clisp.org>
72110
72111         * lib/copy-file.c: Include <unistd.h> unconditionally.
72112         * lib/execute.c: Likewise.
72113         * lib/fatal-signal.c: Likewise.
72114         * lib/findprog.c: Likewise.
72115         * lib/mkdtemp.c: Likewise.
72116         * lib/pipe.h: Likewise.
72117         * lib/pipe.c: Likewise.
72118         * lib/wait-process.h: Likewise.
72119
72120 2006-04-23  Bruno Haible  <bruno@clisp.org>
72121
72122         * gnulib-tool (func_usage): Fix --import description. Document
72123         --update.
72124         (func_import): Create temporary file in a temporary directory, if
72125         --dry-run is specified. Silence errors from 'grep' when there are no
72126         m4 files in $m4dir.
72127         (func_create_testdir): Silence errors from 'grep' when there are no
72128         m4 files in $m4dir.
72129         Reported by Karl Berry <karl@freefriends.org>.
72130
72131 2006-04-20  Bruno Haible  <bruno@clisp.org>
72132
72133         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72134         one argument, so that the code will be portable to Autoconf 2.60.
72135         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72136         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72137         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72138
72139 2006-04-19  Derek Price  <derek@ximbiot.com>
72140             Eric Blake  <ebb9@byu.net>
72141
72142         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72143         rather than "/full/path.h".  Update comment to match.  Shorten &
72144         generalize m4_translit call via AS_TR_CPP.
72145
72146 2006-04-19  Derek Price  <derek@ximbiot.com>
72147             Eric Blake  <ebb9@byu.net>
72148
72149         * lib/inttypes.h: Correct grammar in comment.
72150
72151 2006-04-18  Derek Price  <derek@ximbiot.com>
72152             Paul Eggert  <eggert@cs.ucla.edu>
72153
72154         * modules/inttypes: New file.
72155         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72156
72157 2006-04-18  Derek Price  <derek@ximbiot.com>
72158             Paul Eggert  <eggert@cs.ucla.edu>
72159
72160         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72161         New files.
72162
72163 2006-04-18  Derek Price  <derek@ximbiot.com>
72164             Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * lib/inttypes.h: New file.
72167         * lib/strtoimax.c: Assume <inttypes.h>.
72168
72169 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72170
72171         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72172         isn't mounted.  Problem reported by Kir Kolyshkin.
72173
72174 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72175
72176         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72177         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72178         Derek R. Price.
72179         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72180         implementation.
72181
72182 2006-04-12  Eric Blake  <ebb9@byu.net>
72183
72184         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72185         is now done automatically by the corresponding Autoconf macro.
72186
72187 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72188
72189         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72190         time_r.h.
72191
72192 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72193
72194         Merge regex changes from libc, removing some of our
72195         POSIX-conformance changes that were rejected and redoing them in a
72196         less-intrusive way.
72197
72198         * lib/regcomp.c (re_compile_internal, init_dfa):
72199         Length arg is now size_t, not Idx.  All uses changed.
72200         (peek_token): Forward decl now says internal_function.
72201         (__re_error_msgid, __re_error_msgid_idx):
72202         Now static rather than extern with attribute_hidden.
72203         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72204         For some reason libc prefers K&R style defns for external functions.
72205         (regerror) [!defined _LIBC]: Likewise.
72206         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72207         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72208         (build_range_exp, build_collating_symbol):
72209         Use K&R-style defn.
72210         (re_compile_fastmap): Use '\0' to memset, not 0.
72211         (utf8_sb_map): Make the calculations more obvious.
72212         (init_dfa, parse_bracket_exp, build_charclass_op):
72213         Call calloc and cast result, as glibc does.
72214         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72215         (build_range_exp, build_collating_symbol):
72216         Now internal functions.
72217
72218         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72219
72220         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72221         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72222         Don't depend on VMS; depend on __VMS instead, for POSIX
72223         namespace cleanness.
72224         (regoff_t): Define to ssize_t, not long int.
72225
72226         Remove the REG_ macros named below.  Instead, make the old names
72227         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72228         __USE_GNU_REGEX.
72229         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72230         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72231         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72232         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72233         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72234         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72235         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72236         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72237         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72238         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72239         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72240         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72241         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72242         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72243         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72244         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72245         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72246         (REG_NREGS):
72247         Remove.  All uses replaced by the old RE_* names.
72248         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72249         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72250         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72251         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72252         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72253         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72254         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72255         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72256         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72257         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72258         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72259         Don't bother having these macros be independent of each others'
72260         values, since they no longer exist in the POSIX name space.
72261
72262         Rename the following member names back to their old names,
72263         unless !__USE_GNU_REGEX.  All uses changed back.
72264         (buffer): Renamed from re_buffer.
72265         (allocated): Renamed from re_allocated.
72266         (used): Renamed from re_used.
72267         (syntax): Renamed from re_syntax.
72268         (fastmap): Renamed from re_fastmap.
72269         (translate): Renamed from re_translate.
72270         (can_be_null): Renamed from re_can_be_null.
72271         (regs_allocated): Renamed from re_regs_allocated.
72272         (fastmap_accurate): Renamed from re_fastmap_accurate.
72273         (no_sub): Renamed from re_no_sub.
72274         (not_bol): Renamed from re_not_bol.
72275         (not_eol): Renamed from re_not_eol.
72276         (newline_anchor): Renamed from re_newline_anchor.
72277         (num_regs): Renamed from rm_num_regs.
72278         (start): Renamed from rm_start.
72279         (end): Renamed from rm_end.
72280
72281         (free_state): Move up a bit.
72282
72283         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72284         #define to be empty.
72285         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72286         when that is what is intended.
72287         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72288         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72289         (MAX): New macro.
72290         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72291         All uses changed back to re_malloc, etc.  It's now the caller's
72292         responsibility to check for overflow; all callers changed.
72293         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72294         (re_x2nrealloc): Remove.
72295         (free_state): Remove decl.
72296
72297         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72298         (re_set_registers, re_exec):
72299         Use K&R-style defn.
72300
72301         2006-01-31  Roland McGrath  <roland@redhat.com>
72302
72303         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72304         Reported by Mike Frysinger <vapier@gentoo.org>.
72305
72306         2006-01-15  Andreas Jaeger  <aj@suse.de>
72307
72308         [BZ #1950]
72309         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72310         build_wcs_upper_buffer change.
72311         (build_wcs_upper_buffer): Change return type.
72312
72313         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72314
72315         * lib/regex_internal.h: Include <stdint.h> if available.
72316
72317         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72318
72319         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72320
72321         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72322
72323         * lib/regcomp.c: Adjust for changed secondary hash function.
72324
72325         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72326
72327         * lib/regex.h: Pretty printing.
72328         Clean up namespace a bit.
72329
72330         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72331
72332         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72333         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72334
72335         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72336                     Ulrich Drepper  <drepper@redhat.com>
72337
72338         [BZ #1302]
72339         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72340         changed.
72341         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72342
72343         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72344
72345         [BZ #281]
72346         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72347         * lib/regcomp.c: Remove unnecessary uses of
72348         unsigned RE_TRANSLATE_TYPE.
72349         * lib/regex_internal.h: Likewise.
72350         * lib/regex_internal.c: Likewise.
72351         * lib/regexec.c: Likewise.
72352         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72353
72354         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72355
72356         * lib/regexec.c (find_recover_state): Remove unnecessary
72357         initialization.
72358         (transit_state_bkref): Make DFA a const pointer.
72359         (get_subexp): Likewise.
72360         (check_arrival): Likewise.
72361         (update_cur_sifted_state): Likewise.
72362         (re_search_internal): Likewise.
72363         (prune_impossible_nodes): Likewise.
72364         (acquire_init_state_context): Likewise.
72365         (proceed_next_node): Likewise.
72366         (set_regs): Likewise.
72367         (free_fail_stack_return): Likewise.
72368         (check_arrival_expand_ecl): Mark DFA parameter as const.
72369         (check_arrival_expand_ecl_sub): Likewise.
72370         (check_subexp_limits): Likewise.
72371         (sub_epsilon_src_nodes):  Likewise.
72372         (add_epsilon_src_nodes):  Likewise.
72373         (merge_state_array): Likewise.
72374         (update_regs): Likewise.
72375         (build_trtable): Likewise.
72376         (sift_states_backward): Mark MCTX parameter as const.
72377         (build_sifted_states): Likewise.
72378         (update_cur_sifted_state): Likewise.
72379         (sift_states_mkref): Likewise.
72380         (check_arrival_expand_ecl): Mark eclosure as const.
72381         (check_dst_limits_calc_pos_1): Likewise.
72382         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72383         pointer.
72384
72385         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72386
72387         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72388         (transit_state_sb): Likewise.
72389         (transit_state_mb): Likewise.
72390         (sift_states_iter_mb): Likewise.
72391         (check_arrival_add_next_nodes): Likewise.
72392         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72393         [_LIBC] (re_search_2_stub): Use mempcpy.
72394
72395         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72396         mbrtowc for very simple UTF-8 case.
72397
72398         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72399         a pointer-to-const.
72400         (re_acquire_state_context): Likewise.
72401         * lib/regex_internal.h: Adjust prototypes.
72402
72403         * lib/regex.c: Prevent using C++ compilers.
72404
72405         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72406         (re_acquire_state_context): Likewise.
72407
72408 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * modules/regex (Depends-on): Add ssize_t.
72411
72412 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72413
72414         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72415         translation table.
72416
72417 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72418
72419         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72420
72421 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72422             Bruno Haible  <bruno@clisp.org>
72423
72424         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72425         <sys/types.h> and <inttypes.h>.
72426
72427 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72428
72429         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72430         `__error_t_defined', so argp.h will not typedef the former.
72431
72432 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72433
72434         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72435         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72436         glibc names.  Even if glibc is changed to conform to POSIX, the
72437         traditional names will be available anyway, since regex depends on
72438         the extensions module.  Also, fix a longstanding typo in the
72439         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72440         reported by Emanuele Giaquinta.  Also, change sense of cached
72441         variable, so that the message makes sense.
72442
72443 2006-03-24  Simon Josefsson  <jas@extundo.com>
72444
72445         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72446         including some doc fixes.
72447         (base64_encode_alloc): Fix +1 bug on allocation failures.
72448
72449 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72450
72451         * lib/base64.c (base64_encode): Do not read past end of array with
72452         unsanitized input on systems with CHAR_BIT > 8.
72453
72454 2006-03-24  Eric Blake  <ebb9@byu.net>
72455
72456         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72457
72458 2006-03-22  Karl Berry  <karl@gnu.org>
72459
72460         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72461         * config/srclistvars.sh (COREUTILS): new var.
72462
72463 2006-03-17  Jim Meyering  <jim@meyering.net>
72464
72465         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72466         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72467
72468 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72469
72470         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72471         no longer needs it.  Instead, check that regoff_t is as least
72472         as wide as ptrdiff_t.
72473
72474         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72475         so that our regex.h stays compatible with the installed regex.
72476         This is helpful for installers who configure --without-included-regex.
72477         Problem reported by Emanuele Giaquinta.
72478
72479 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72480
72481         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72482         Typedef to long int, not to off_, as POSIX will likely change
72483         in that direction.
72484
72485 2006-03-15  Eric Blake  <ebb9@byu.net>
72486
72487         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72488
72489 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72490
72491         * lib/argp-help.c (validate_uparams): Fix typo
72492         * lib/argp-parse.c (argp_default_options): Consistently begin help
72493         messages with a lowercase letter.
72494
72495 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72496
72497         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72498         overrun buffers and shouldn't be used (much as gets shouldn't be
72499         used).
72500         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72501
72502 2006-03-08  Simon Josefsson  <jas@extundo.com>
72503
72504         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72505         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72506
72507 2006-03-08  Simon Josefsson  <jas@extundo.com>
72508
72509         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72510         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72511
72512 2006-03-08  Simon Josefsson  <jas@extundo.com>
72513
72514         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72515         signal that configure disabled the device.
72516
72517 2006-03-08  Simon Josefsson  <jas@extundo.com>
72518
72519         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72520         languages.
72521
72522 2006-03-07  Simon Josefsson  <jas@extundo.com>
72523
72524         * modules/getopt (Depends-on): Add unistd.
72525
72526         * modules/unistd: New file.
72527
72528 2006-03-07  Simon Josefsson  <jas@extundo.com>
72529
72530         * modules/gc-random: New file.
72531
72532 2006-03-07  Simon Josefsson  <jas@extundo.com>
72533
72534         * m4/unistd_h.m4: New file.
72535
72536 2006-03-07  Simon Josefsson  <jas@extundo.com>
72537
72538         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72539         test to be side-effect free by storing the result in the cache
72540         variable gl_cv_lib_readline, and moving the assignment of
72541         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72542         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72543
72544 2006-03-07  Simon Josefsson  <jas@extundo.com>
72545
72546         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72547         error on missing devices (the functions will return an error).
72548
72549         * m4/gc.m4: Move random stuff to gc-random.m4
72550
72551 2006-03-07  Simon Josefsson  <jas@extundo.com>
72552
72553         * lib/unistd_.h: New file.
72554
72555 2006-03-07  Simon Josefsson  <jas@extundo.com>
72556
72557         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72558
72559 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72560
72561         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72562         Problem reported by Juan Manuel Guerrero.
72563
72564 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72565
72566         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72567         the unistd module.
72568         * lib/getlogin_r.c: Likewise.
72569         * lib/getlogin_r.h: Likewise.
72570         * lib/glob.c: Likewise.
72571         * lib/pagealign_alloc.c: Likewise.
72572         * lib/unistd_.h: Remove; no longer needed.
72573
72574 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72575
72576         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72577         Add unistd.
72578         * modules/c-stack (Depends-on): Add unistd.
72579         * modules/getlogin_r: Likewise.
72580         * modules/glob: Likewise.
72581         * modules/pagealign_alloc: Likewise.
72582         * modules/unistd (Files): Remove lib/unistd_.h.
72583         (EXTRA_DIST): Remove.
72584         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72585         need unistd_.h.
72586         (MOSTLYCLEANFILES): Remove unistd.h-t.
72587
72588 2006-03-03  Simon Josefsson  <jas@extundo.com>
72589
72590         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72591
72592 2006-03-03  Simon Josefsson  <jas@extundo.com>
72593
72594         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72595         libidn and bison.
72596
72597 2006-03-03  Simon Josefsson  <jas@extundo.com>
72598
72599         * build-aux/maint.mk: Add indent target.
72600
72601 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72602
72603         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72604         our replacement poll.h in any case, to avoid a differing
72605         declaration from a system header.  Seen on AIX.
72606
72607 2006-03-01  Simon Josefsson  <jas@extundo.com>
72608
72609         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72610         <kasal@ucw.cz>.
72611
72612 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72613
72614         * modules/gettime (Depends-on): Add extensions module.
72615         * modules/nanosleep (Depends-on): Likewise.
72616         * modules/settime (Depends-on): Likewise.
72617
72618 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72619
72620         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72621         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72622         pedantically.
72623         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72624         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72625
72626         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72627         not "==".  Reported by Ralf Wildenhues.
72628
72629 2006-03-01  Karl Berry  <karl@gnu.org>
72630
72631         * doc/Copyright/request-*: new files, synced from gnuorg.
72632
72633 2006-03-01  Karl Berry  <karl@gnu.org>
72634
72635         * config/srclist.txt (Copyright/*): new entries.
72636
72637 2006-02-28  Simon Josefsson  <jas@extundo.com>
72638
72639         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72640
72641 2006-02-27  Simon Josefsson  <jas@extundo.com>
72642
72643         * lib/base64.h: Indent #define's.  From Jim Meyering
72644         <jim@meyering.net>.
72645
72646 2006-02-27  Jim Meyering  <jim@meyering.net>
72647
72648         Revert the change of 2006-02-24, so these files can continue
72649         to be sync'd from gettext.
72650         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72651         of `config.h'.
72652
72653 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72654
72655         * modules/intprops: New file.
72656         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72657         Add intprops.
72658         * modules/getloadavg (Files): Remove lib/intprops.h.
72659         (Depends-on): Add intprops.
72660         * modules/human: Likewise.
72661         * modules/inttostr: Likewise.
72662         * modules/openat: Likewise.
72663         * modules/sig2str: Likewise.
72664         * modules/userspec: Likewise.
72665         * modules/utimecmp: Likewise.
72666         * modules/xnanosleep: Likewise.
72667         * modules/xstrtol: Likewise.
72668
72669 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72670
72671         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72672         * modules/lock-tests (TESTS): Use $(EXEEXT).
72673         * modules/tls-tests: Likewise.
72674         * modules/argp-tests: Likewise.
72675         (check_PROGRAMS): New var, replacing...
72676         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72677
72678 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72679
72680         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72681         `config.h'.
72682
72683 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72684
72685         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72686
72687 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72688
72689         Sync from coreutils.
72690         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72691         gl_CHDIR_SAFER.
72692
72693 2006-02-22  Jim Meyering  <jim@meyering.net>
72694
72695         Sync from coreutils.
72696         * m4/chdir-safer.m4: New file.
72697
72698 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72699
72700         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72701         AT_FDCWD exceeds INT_MAX.
72702         * lib/openat.h (AT_FDCWD): Likewise.
72703
72704 2006-02-17  Eric Blake  <address@hidden>
72705
72706         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72707
72708 2006-02-16  Simon Josefsson  <jas@extundo.com>
72709
72710         * modules/getaddrinfo (Depends-on): Add sys_socket.
72711
72712 2006-02-15  Simon Josefsson  <jas@extundo.com>
72713
72714         * build-aux/maint.mk: Add dsyntax-check rule.
72715
72716 2006-02-15  Eric Blake  <ebb9@byu.net>
72717
72718         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72719         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72720         'present but cannot compile' warnings on cygwin.
72721         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72722         use ws2tcpip.h if sys/socket.h works.
72723         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72724         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72725
72726 2006-02-14  Simon Josefsson  <jas@extundo.com>
72727
72728         * modules/maintainer-makefile (Files): Rename.
72729
72730         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72731         and (the local) Makefile.cfg to maint-cfg.mk.
72732
72733         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72734         to the latter.
72735
72736         * modules/maintainer-makefile: New module.
72737
72738         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72739         severaly stripped to make it possible to build it up from scratch
72740         with reliable tests.
72741
72742         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72743         fixes to permit overriding the default actions when configure and
72744         makefile are not available.
72745
72746 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72747
72748         Sync from coreutils.
72749         * modules/lstat (Depends-on): Don't depend on xalloc.
72750         (License): Change from GPL to LGPL, since this is now simply a
72751         replacement for a libc function.
72752
72753 2006-02-14  Jim Meyering  <jim@meyering.net>
72754
72755         Sync from coreutils.
72756
72757         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72758         failure on deficient systems, and simplify gnulib lgpl dependencies.
72759         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72760         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72761
72762         * lib/xalloc-die.c: Remove unused definition of N_.
72763
72764 2006-02-14  Jim Meyering  <jim@meyering.net>
72765
72766         Sync from coreutils.
72767         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72768         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72769         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72770         double-quote uses of that variable, to accommodate the rare case in
72771         which getmntent is available in none of the libraries checked.  This
72772         happens at least on FreeBSD 5.0.
72773
72774 2006-02-13  Simon Josefsson  <jas@extundo.com>
72775
72776         * gnulib-tool (Usage): Fix --import, from
72777         karl@freefriends.org (Karl Berry).
72778
72779 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72780
72781         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72782
72783 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72784
72785         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72786         "autoupdate" on 2005-12-12.
72787
72788 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72789
72790         * modules/closeout (Depends-on): Remove atexit.
72791
72792 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72793
72794         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72795         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72796
72797 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72798
72799         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72800         __EXTENSIONS__ if this causes compilation to fail.  Problem
72801         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72802         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72803
72804 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72805
72806         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72807         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72808         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72809         All uses changed.
72810
72811 2006-01-26  Simon Josefsson  <jas@extundo.com>
72812
72813         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72814         prototype is visible on mingw32.
72815
72816         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72817         for mingw32.
72818
72819         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72820         mingw32).
72821
72822 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72823
72824         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72825         attempt to open for write; this always fails, at least on POSIX
72826         hosts.  This reinstates the 2006-01-09 change, which was
72827         inadvertently removed.
72828
72829 2006-01-26  Bruno Haible  <bruno@clisp.org>
72830
72831         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72832         Reported by Paul Eggert.
72833
72834 2006-01-26  Bruno Haible  <bruno@clisp.org>
72835             Paul Eggert  <eggert@cs.ucla.edu>
72836
72837         * lib/stdbool_.h (_Bool)
72838         [(! (defined __cplusplus || defined __BEOS__)
72839           && !defined __GNUC__
72840           && !(defined __HP_cc || defined __xlc__
72841                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72842                || defined __sgi))]:
72843         #define to signed char in these cases too; this simplifies
72844         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72845         etc., separately) and makes it more conservative.
72846
72847 2006-01-25  Simon Josefsson  <jas@extundo.com>
72848
72849         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72850         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72851         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72852
72853 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72854
72855         * lib/argp-namefrob.h: Bugfix. Remove stray #
72856
72857 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72858
72859         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72860         so that we test the test.
72861         Check for yet another HP-UX cc bug involving *bool |= bool.
72862
72863 2006-01-25  Karl Berry  <karl@gnu.org>
72864
72865         * config/srclist.txt (vasnprintf.c): sync lost.
72866
72867 2006-01-25  Jim Meyering  <jim@meyering.net>
72868
72869         Sync from the stable (b5) branch of coreutils:
72870
72871         * lib/fts.c (fts_children): Don't let close() clobber errno from
72872         failed fchdir().
72873
72874         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72875         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72876         a dangling symlink.  That can also happen at least for ELOOP.
72877         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72878         FYI, this bug predates the inclusion of fts.c in coreutils.
72879
72880         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72881         in their own block, so pre-c99 compilers don't object.
72882
72883         Avoid the double-free (first in fts_read, second in fts_close) that
72884         would occur when an `active' directory is made inaccessible (e.g.,
72885         via chmod a-x) during a traversal.
72886         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72887         before returning.  Reproduce this failure by
72888         mkdir -p a/b; cd a; chmod a-x . b
72889         Reported by Stavros Passas.
72890
72891 2006-01-25  Jim Meyering  <jim@meyering.net>
72892
72893         * lib/fileblocks.c: Remove more useless parentheses.
72894         * lib/readutmp.h: Likewise.
72895
72896 2006-01-25  Bruno Haible  <bruno@clisp.org>
72897
72898         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72899         warnings.
72900         Reported by Paul Eggert.
72901
72902 2006-01-25  Bruno Haible  <bruno@clisp.org>
72903
72904         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72905         rid of a trap command. For Solaris sh.
72906         Reported by Mark D. Baushke <mdb@gnu.org>.
72907
72908 2006-01-24  Simon Josefsson  <jas@extundo.com>
72909
72910         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72911         Bruno.
72912
72913 2006-01-24  Karl Berry  <karl@gnu.org>
72914
72915         * config/srclist.txt (argp-namefrob.h): sync lost.
72916
72917 2006-01-24  Jim Meyering  <jim@meyering.net>
72918
72919         * modules/openat (Files): Add lib/intprops.h.
72920         From Mark D. Baushke.
72921
72922 2006-01-24  Jim Meyering  <jim@meyering.net>
72923
72924         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72925         Reported by Mark D. Baushke.
72926
72927 2006-01-24  Jim Meyering  <jim@meyering.net>
72928
72929         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72930
72931 2006-01-24  Bruno Haible  <bruno@clisp.org>
72932
72933         * modules/strnlen (Maintainer): Change from glibc to all.
72934
72935 2006-01-24  Bruno Haible  <bruno@clisp.org>
72936
72937         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72938         Patch by Paul Eggert.
72939
72940 2006-01-24  Bruno Haible  <bruno@clisp.org>
72941
72942         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72943         already has it.
72944         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72945         2005-11-26.
72946
72947         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72948         'signed char' to avoid problems with the built-in _Bool type.
72949         Reported by Paul Eggert on 2005-11-26.
72950
72951 2006-01-24  Bruno Haible  <bruno@clisp.org>
72952
72953         * gnulib-tool (func_import): Avoid constructing complicated sed
72954         expressions inside backquote.
72955         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72956
72957 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72958
72959         These changes imported from libc.
72960         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72961         test and two separate function calls.
72962         * lib/strndup.c (__strndup): Add libc_hidden_def.
72963
72964 2006-01-23  Simon Josefsson  <jas@extundo.com>
72965
72966         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72967         Remove the test_*_SOURCES variable: automake infers it by default.
72968         * modules/tls-tests: Likewise.
72969
72970 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72971
72972         Work around porting bugs reported by Dieter in
72973         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72974         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72975         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72976         Include "getopt.h" first, to check interface.
72977         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72978         !HAVE_DECL_GETENV.
72979         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72980         (__strndup): Revert to K&R-style function dfns, the glibc style.
72981         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72982         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72983         Include strnlen.h first, to get prototype properly.
72984         (strnlen): Renamed from __strnlen.
72985         Remove weak alias.
72986
72987 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72988
72989         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72990
72991 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72992
72993         * config/srclist.txt: Adjust to reflect glibc reorganization.
72994         This affects only comments.
72995
72996 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72997
72998          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72999          Reported by Bruce Korb <bkorb@gnu.org>.
73000
73001 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73002
73003         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73004         to pacify gcc -Wswitch-default.
73005
73006 2006-01-22  Bruno Haible  <bruno@clisp.org>
73007
73008         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73009         temporary buffer for sprintf, take into account the precision also
73010         for 'd', 'i', 'u', 'o', 'x', 'X'.
73011
73012 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73013
73014         * modules/argp-tests: New module
73015         * tests/test-argp.c: New file
73016         * tests/test-argp-2.sh: New file
73017
73018 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73019
73020         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73021         (__argp_base_name): Removed
73022         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73023         typo.
73024         (__argp_base_name): Provide macro definition or extern declaration
73025         depending on the configuration
73026
73027 2006-01-20  Simon Josefsson  <jas@extundo.com>
73028
73029         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73030
73031 2006-01-20  Simon Josefsson  <jas@extundo.com>
73032
73033         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73034
73035 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73036
73037         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73038         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73039         Suggested by Bruno Haible.
73040
73041 2006-01-20  Karl Berry  <karl@gnu.org>
73042
73043         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73044         until changes propagate, I guess.
73045
73046 2006-01-19  Simon Josefsson  <jas@extundo.com>
73047
73048         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73049
73050 2006-01-19  Simon Josefsson  <jas@extundo.com>
73051
73052         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73053
73054 2006-01-19  Simon Josefsson  <jas@extundo.com>
73055
73056         * gnulib-tool: Set check_PROGRAMS.
73057
73058         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73059         modules/des-tests, modules/gc-arcfour-tests,
73060         modules/gc-arctwo-tests, modules/gc-des-tests,
73061         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73062         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73063         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73064         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73065         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73066         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73067         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73068         test_*_SOURCES.
73069
73070 2006-01-18  Simon Josefsson  <jas@extundo.com>
73071
73072         * modules/socklen (Depends-on): Depend on sys_socket.
73073
73074 2006-01-18  Simon Josefsson  <jas@extundo.com>
73075
73076         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73077         modules/des-tests, modules/gc-arcfour-tests,
73078         modules/gc-arctwo-tests, modules/gc-des-tests,
73079         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73080         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73081         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73082         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73083         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73084         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73085         $(EXEEXT) to automake TESTS variable, for mingw32.
73086
73087 2006-01-17  Simon Josefsson  <jas@extundo.com>
73088
73089         * modules/socklen (Include): Need sys/socket.h.
73090
73091 2006-01-17  Bruno Haible  <bruno@clisp.org>
73092
73093         * modules/ssize_t (Include): Add <sys/types.h>.
73094
73095 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73096
73097         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73098         it's not portable and it doesn't work with cross-compiles.
73099         Problem reported by Bruno Haible.  Fix missing-$ typo in
73100         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73101         -zignore from being used with Sun's C compiler.
73102
73103 2006-01-12  Simon Josefsson  <jas@extundo.com>
73104
73105         * lib/base64.c: Fix warning, reported by Bruno Haible
73106         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73107
73108 2006-01-12  Bruno Haible  <bruno@clisp.org>
73109
73110         * modules/ldd: New file.
73111         * build-aux/ldd.sh.in: New file.
73112         * MODULES.html.sh (Support for building libraries and executables): Add
73113         ldd.
73114
73115 2006-01-12  Bruno Haible  <bruno@clisp.org>
73116
73117         * m4/ldd.m4: New file.
73118
73119 2006-01-12  Bruno Haible  <bruno@clisp.org>
73120
73121         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73122         endless loop while replacing $auxdir with build-aux.
73123
73124 2006-01-11  Simon Josefsson  <jas@extundo.com>
73125
73126         * lib/stdint_.h (SIZE_MAX): Add missing (.
73127
73128 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73129
73130         Sync from coreutils.
73131         * lib/md5.c: Fix commentary typos.
73132         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73133         * lib/md5.h (__attribute__): Remove; unused.
73134         * lib/sha1.c: Fix commentary to match md5 better.
73135         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73136         so that we don't need to worry about alignment.  All uses changed.
73137         This merges the 2005-10-28 md5 change into sha1.
73138
73139 2006-01-11  Jim Meyering  <jim@meyering.net>
73140
73141         Sync from coreutils.
73142         * lib/md5.c (OP): Fix spacing.
73143
73144 2006-01-11  Bruno Haible  <bruno@clisp.org>
73145
73146         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73147         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73148         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73149
73150 2006-01-11  Bruno Haible  <bruno@clisp.org>
73151
73152         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73153         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73154         the "early" section as well.
73155
73156 2006-01-11  Bruno Haible  <bruno@clisp.org>
73157
73158         Avoid "ar: no archive members specified" error on MacOS X.
73159         * gnulib-tool (func_modules_add_dummy): New function.
73160         (func_import, func_create_testdir): Invoke it.
73161
73162 2006-01-11  Bruno Haible  <bruno@clisp.org>
73163
73164         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73165         with $auxdir in AC_CONFIG_FILES statements.
73166
73167 2006-01-11  Bruno Haible  <bruno@clisp.org>
73168
73169         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73170         Initialize also noinst_HEADERS to empty.
73171
73172 2006-01-11  Bruno Haible  <bruno@clisp.org>
73173
73174         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73175         variables.
73176         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73177         autoreconf.
73178
73179 2006-01-11  Bruno Haible  <bruno@clisp.org>
73180
73181         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73182         overridable by the user.
73183         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73184
73185 2006-01-10  Simon Josefsson  <jas@extundo.com>
73186
73187         * modules/sys_socket: New file.
73188
73189 2006-01-10  Simon Josefsson  <jas@extundo.com>
73190
73191         * m4/sys_socket_h.m4: New file.
73192
73193 2006-01-10  Simon Josefsson  <jas@extundo.com>
73194
73195         * lib/socket_.h: New file.
73196
73197 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73198
73199         * modules/readutmp (Maintainer): Add myself.
73200
73201 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73202
73203         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73204         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73205         People who are still concerned with buggy memcmp implementations
73206         can invoke gl_FUNC_MEMCMP themselves.
73207
73208 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73209
73210         * lib/regex_internal.h (BITSET_WORD_BITS):
73211         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73212         preprocessor mishandles large unsigned values as if they were signed.
73213         Problem reported by Claudio Fontana in
73214         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73215
73216 2006-01-10  Jim Meyering  <jim@meyering.net>
73217
73218         Avoid the double-free (first in fts_read, second in fts_close) that
73219         would occur when an `active' directory is made inaccessible (e.g.,
73220         via chmod a-x) during a traversal.
73221         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73222         before returning.  Reproduce this failure by
73223         mkdir -p a/b; cd a; chmod a-x . b
73224         Reported by Stavros Passas.
73225
73226         Sync from coreutils.
73227         * lib/sha1.c: Tweak grammar in a comment.
73228
73229 2006-01-10  Jim Meyering  <jim@meyering.net>
73230
73231         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73232         Patch by Joerg Sonnenberger.
73233
73234 2006-01-10  Bruno Haible  <bruno@clisp.org>
73235
73236         * modules/readutmp: Depend on module free.
73237         * modules/strtok_r: Depend on module restrict.
73238
73239 2006-01-10  Bruno Haible  <bruno@clisp.org>
73240
73241         * modules/gettext (configure.ac): Add an invocation of
73242         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73243
73244 2006-01-10  Bruno Haible  <bruno@clisp.org>
73245
73246         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73247         Reported by Werner Lemberg <wl@gnu.org>.
73248
73249 2006-01-10  Bruno Haible  <bruno@clisp.org>
73250
73251         * lib/localcharset.c: Update from GNU gettext.
73252
73253 2006-01-10  Bruno Haible  <bruno@clisp.org>
73254
73255         * lib/argp.h (__const): Remove macro. Use const instead.
73256         * lib/argp-fmtstream.h (__const): Likewise.
73257         * lib/glob_.h (__const): Remove macro.
73258         * lib/glob-libc.h: Use const instead of __const.
73259
73260 2006-01-10  Bruno Haible  <bruno@clisp.org>
73261
73262         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73263         variable.
73264         Needed to avoid an automake error regarding the 'gettext' module.
73265
73266 2006-01-09  Simon Josefsson  <jas@extundo.com>
73267
73268         * modules/inet_ntop (Depends-on): Add restrict.
73269
73270 2006-01-09  Simon Josefsson  <jas@extundo.com>
73271
73272         * modules/gc-rijndael-tests (License): Put under LGPL.
73273
73274         * modules/gc-des-tests (License): Likewise.
73275
73276         * modules/gc-arcfour-tests (License): Likewise.
73277
73278         * modules/gc-arctwo-tests (License): Likewise.
73279
73280         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73281
73282         * modules/gc-hmac-sha1-tests (Files): Likewise.
73283
73284         * modules/gc-hmac-md5-tests (License): Likewise.
73285
73286         * modules/gc-sha1-tests (License): Likewise.
73287
73288         * modules/gc-md5-tests (License): Likewise.
73289
73290         * modules/gc-md4-tests (License): Likewise.
73291
73292         * modules/gc-md2-tests (License): Likewise.
73293
73294         * modules/gc-tests (License): Likewise.
73295
73296         * modules/des-tests (License): Likewise.
73297
73298         * modules/md4-tests (License): Likewise.
73299
73300         * modules/md2-tests (License): Likewise.
73301
73302 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         Sync from coreutils:
73305
73306         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73307         * modules/lib-ignore: New file.
73308         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73309         chdir-safer.m4, lchmod.m4.
73310         * modules/openat: Add mkdirat.c, openat-priv.h.
73311
73312 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73313
73314         Sync from coreutils.
73315         * m4/lib-ignore.m4: New file.
73316         * m4/lchmod.m4: New file.
73317
73318 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73319
73320         Sync from coreutils.
73321         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73322         for write access: POSIX says that must fail.
73323         * lib/fts.c (diropen): Likewise.
73324         * lib/save-cwd.c (save_cwd): Likewise.
73325         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73326         well, for minor improvements on hosts that lack O_DIRECTORY.
73327         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73328         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73329         Fall back on chown if open failed with EACCES.
73330
73331         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73332         Report an error at compile-time if only a 1-second nominal clock
73333         resolution is found.
73334
73335         * lib/lchmod.h: New file.
73336         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73337         (make_dir_parents): Use lchown rather than chown, and
73338         lchmod rather than chmod.
73339
73340         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73341         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73342         "proc" reported by n0dalus.
73343
73344         * lib/mountlist.c: Include <limits.h>.
73345         (dev_from_mount_options)
73346         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73347         New function.  It no longer assumes "dev=" has the System V meaning
73348         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73349         (read_file_system_list)
73350         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73351         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73352         dev= in that case.
73353
73354         * lib/posixtm.h (PDS_PRE_2000): New macro.
73355         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73356         allow_century.  All usages changed.  Reject dates outside the range
73357         1969-1999 if PDS_PRE_2000 is used.
73358
73359 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73360
73361         Sync from coreutils.
73362         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73363         (Time of day items): Mention the possibility of leap seconds.
73364         Problem reported by Dr. David Alan Gilbert.
73365
73366 2006-01-09  Jim Meyering  <jim@meyering.net>
73367
73368         Sync from coreutils.
73369
73370         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73371
73372         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73373
73374         * lib/modechange.c (mode_compile): Reject an invalid mode string
73375         that starts with an octal digit.  From Andreas Gruenbacher.
73376
73377         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73378         and dup to open_safer and dup_safer, respectively.
73379         (openat_permissive): Fix typo in comment.
73380
73381         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73382         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73383         (_): Remove; no longer needed.
73384         (openat): Renamed from rpl_openat; no need for rpl_openat
73385         since openat.h renames openat for us.
73386         Replace most of the body with a call to openat_permissive,
73387         to avoid duplicate code.
73388         Port to (probably hypothetical) environments were mode_t is
73389         wider than int.
73390         (openat_permissive): Require mode arg, so that we can check
73391         types better.  Put it just after flags.  Change cwd failure
73392         indicator from pointer-to-bool to pointer-to-errno-value.
73393         All callers changed.
73394         Invoke openat_save_fail and/or openat_restore_fail if
73395         cwd_errno is null, so that openat can call us.
73396         (openat_permissive, fdopendir, fstatat, unlinkat):
73397         Simplify errno handling to avoid some duplicate code,
73398         as it's OK to set errno on success.
73399         * lib/openat.h: Revamp code so that function macros depend on
73400         __OPENAT_PREFIX only, not also on AT_FDCWD.
73401         (openat_ro): Remove.  Caller changed to use openat_permissive.
73402         (openat_permissive): Now a macro, if not a function.
73403         (openat_restore_fail, openat_save_fail): Now always functions,
73404         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73405
73406         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73407         and openat.c.
73408         * lib/mkdirat.c: Include openat-priv.h.
73409         Remove definitions of macros defined therein.
73410         * lib/openat.c: Likewise.
73411
73412         * lib/mkdirat.c (mkdirat): New file and function.
73413         * lib/openat.h (mkdirat): Declare.
73414
73415         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73416
73417         * lib/openat.h (openat_permissive): Declare.
73418         (openat_ro): Define.
73419
73420         * lib/openat.c (EXPECTED_ERRNO): New macro.
73421         (openat_permissive): New function -- used in remove.c rewrite.
73422         (all functions): Set errno just before returning, only if there
73423         was an actual failure.
73424         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73425
73426         Emulate openat-family functions using Linux's procfs, if possible.
73427         Idea and some code based on Ulrich Drepper's glibc changes.
73428
73429         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73430         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73431         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73432         before falling back on save_cwd and restore_cwd.
73433         (fdopendir, fstatat, unlinkat): Likewise.
73434
73435         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73436         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73437
73438         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73439         as second argument to va_arg.  Otherwise, some versions of gcc
73440         warn that `if this code is reached, the program will abort'.
73441
73442 2006-01-09  Jim Meyering  <jim@meyering.net>
73443
73444         Sync from coreutils.
73445         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73446         Require openat-priv.h.
73447
73448 2006-01-09  Bruno Haible  <bruno@clisp.org>
73449
73450         * modules/strnlen (Include): Use strnlen.h.
73451
73452 2006-01-09  Bruno Haible  <bruno@clisp.org>
73453
73454         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73455
73456 2006-01-09  Bruno Haible  <bruno@clisp.org>
73457
73458         * lib/sysexit_.h (EX_OK): New macro.
73459         Suggested by Martin Lambers <marlam@marlam.de>.
73460
73461 2006-01-09  Bruno Haible  <bruno@clisp.org>
73462
73463         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73464         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73465
73466 2006-01-09  Bruno Haible  <bruno@clisp.org>
73467
73468         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73469         numbers.
73470
73471 2006-01-09  Bruno Haible  <bruno@clisp.org>
73472
73473         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73474         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73475         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73476         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73477
73478 2006-01-09  Bruno Haible  <bruno@clisp.org>
73479
73480         * build-aux/javacomp.sh.in: New file, moved from lib/.
73481         * modules/javacomp-script (Files): Update.
73482         (configure.ac): Add AC_CONFIG_FILES invocation.
73483         (EXTRA_DIST): Remove variable.
73484
73485         * build-aux/javaexec.sh.in: New file, moved from lib/.
73486         * modules/javaexec (Files): Update.
73487         (configure.ac): Add AC_CONFIG_FILES invocation.
73488         (EXTRA_DIST): Remove javaexec.sh.in.
73489
73490         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73491         * modules/csharpcomp-script (Files): Update.
73492         (configure.ac): Add AC_CONFIG_FILES invocation.
73493         (EXTRA_DIST): Remove variable.
73494
73495         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73496         * modules/csharpexec (Files): Update.
73497         (configure.ac): Add AC_CONFIG_FILES invocation.
73498         (EXTRA_DIST): Remove csharpexec.sh.in.
73499
73500 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73501
73502         Sync from coreutils.
73503
73504         Add POSIX ACL support
73505         * lib/acl.h (copy_acl, set_acl): Add declarations.
73506         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73507         systems other than Linux.
73508         (chmod_or_fchmod): New function: use fchmod when possible,
73509         and chmod otherwise.
73510         (file_has_acl): Add a POSIX ACL implementation, with a
73511         Linux-specific subcase.
73512         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73513         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73514         acls are unsupported.
73515         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73516         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73517         are unsupported.
73518
73519 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73520
73521         Sync from coreutils.
73522         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73523
73524 2006-01-07  Bruno Haible  <bruno@clisp.org>
73525
73526         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73527         gl_EARLY.
73528
73529 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73530
73531         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73532         Problem reported for Mingw by Mark Junker.
73533
73534 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73535
73536         * README: Gnulib normally doesn't generate a tarball.
73537
73538 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73539
73540         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73541         long int, not int, for nanosecond counts, so that people who are
73542         used to POSIX struct timespec won't be surprised.  Reported by Jim
73543         Meyering.
73544
73545 2005-12-28  Bruno Haible  <bruno@clisp.org>
73546
73547         * build-aux/config.rpath: Update from GNU gettext.
73548
73549 2005-12-16  Jim Meyering  <jim@meyering.net>
73550
73551         * modules/fprintftime: New module.
73552         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73553
73554 2005-12-16  Jim Meyering  <jim@meyering.net>
73555
73556         * m4/fprintftime.m4: New file.
73557
73558 2005-12-16  Jim Meyering  <jim@meyering.net>
73559
73560         * lib/fprintftime.c, lib/fprintftime.h: New files.
73561
73562 2005-12-15  Simon Josefsson  <jas@extundo.com>
73563
73564         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73565         new m4/socklen.m4.
73566
73567 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73568
73569         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73570         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73571
73572 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73573
73574         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73575         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73576         struct uparams is valid. Fall back to the default values if it is
73577         not.
73578
73579 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73580
73581         * modules/argp (Files): Add argp-pin.c
73582         (Depends-on): dirname
73583         (lib_SOURCES): Add argp-pin.c
73584
73585 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73586
73587         * m4/argp.m4:  Check if program_invocation_name and
73588         program_invocation_short_name are declared and define appropriate
73589         macros if they are not.
73590
73591 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73592
73593         * lib/argp-help.c (__argp_base_name): New function
73594         (__argp_short_program_name): Rewrite using __argp_base_name
73595         * lib/argp-namefrob.h: Define program_invocation_name and
73596         program_invocation_short_name if requested
73597         (__argp_base_name): Add prototype
73598         * lib/argp-parse.c (argp_def): Use gettext wrappers
73599         (argp_default_parser): Use __argp_base_name
73600         * lib/argp-pin.c: New file. Defines program_invocation_name and
73601         program_invocation_short_name on systems that lack them.
73602
73603 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73606         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73607         porting problem reported by Georg Schwarz in
73608         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73609
73610 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73611
73612         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73613         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73614         porting problem reported by Georg Schwarz in
73615         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73616
73617 2005-12-05  Bruno Haible  <bruno@clisp.org>
73618
73619         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73620         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73621         Reported by Mark Junker <mjscod@gmx.de>.
73622
73623 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73626         Use implementation from Albert Chin, with some
73627         comments/corrections by Stepan Kasal and myself.
73628
73629 2005-12-02  Bruno Haible  <bruno@clisp.org>
73630
73631         * gnulib-tool (func_import): Accept GPLed build tool modules when
73632         --lgpl is given.
73633         * modules/csharpcomp-script: New file.
73634         * modules/csharpcomp: Depend on it.
73635         * modules/javacomp-script: New file.
73636         * modules/javacomp: Depend on it.
73637         Suggested by Simon Josefsson.
73638
73639 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73640
73641         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73642         statement, to work around an HP-UX 10.20 compiler bug reported by
73643         Peter O'Gorman.
73644
73645 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73646
73647         * modules/savedir (Depends-on): Add openat.
73648
73649 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73650
73651         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73652         (uintmax_t) [defined uintmax_t]: Do not declare.
73653         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73654         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73655         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73656         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73657         sake of portability to weird hosts that C allows (though we don't
73658         know of any practical examples).
73659
73660         * lib/savedir.h (fdsavedir): New decl.
73661         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73662         contains most of the former guts of savedir.
73663         (savedir): Use savedirstream.
73664         Include "openat.h".
73665
73666 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73667
73668         * modules/obstack (Files): Add m4/ulonglong.m4.
73669         Problem reported by Davide Angelocola.
73670
73671 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73672
73673         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73674         coreutils no longer futzes with rounding modes.
73675
73676 2005-11-14  Jim Meyering  <jim@meyering.net>
73677
73678         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73679         replacement of mkstemp.
73680
73681 2005-11-10  Simon Josefsson  <jas@extundo.com>
73682
73683         * lib/readline.c: Remove EOL.
73684
73685 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73686
73687         * modules/gethrxtime (Depends-on): Add gettime.
73688
73689 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73690
73691         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73692         or gettimeofday; no longer needed.
73693
73694 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73695
73696         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73697         time business.
73698         (gethrxtime) [! (HAVE_NANOUPTIME
73699         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73700         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73701         our own approximation.
73702
73703 2005-11-08  Eric Blake  <ebb9@byu.net>
73704
73705         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73706
73707 2005-11-08  Eric Blake  <ebb9@byu.net>
73708
73709         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73710
73711 2005-11-04  Bruno Haible  <bruno@clisp.org>
73712
73713         * gnulib-tool: Implement --update mode.
73714
73715 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73716
73717         Fix porting problem reported by Theodoros V. Kalamatianos.
73718         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73719         Don't assume that futimes failing means we must fail.
73720
73721 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73724         variables to suggest the intended function of the PATH_MAX check.
73725
73726 2005-10-30  Kean Johnston  <jkj@sco.com>
73727
73728         Trivial changes to support SCO systems.
73729         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73730         as PATH_MAX.
73731         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73732         where __ptr is null when no I/O is pending.
73733
73734 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73735
73736         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73737         leave errno alone.  Problem reported by Dmitry V. Levin.
73738
73739 2005-10-28  Simon Josefsson  <jas@extundo.com>
73740
73741         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73742         Test more.
73743
73744         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73745
73746         * modules/md2, modules/md2-tests: New files.
73747
73748 2005-10-28  Simon Josefsson  <jas@extundo.com>
73749
73750         * m4/inet_ntop.m4: More tests.
73751
73752         * m4/gc-md2.m4, md2.m4: New file.
73753
73754 2005-10-28  Simon Josefsson  <jas@extundo.com>
73755
73756         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73757         "restrict" keywords, as per POSIX.  Protect the function
73758         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73759         Don't use K&R prototypes.  Check the sprintf return values.
73760         Re-define EAFNOSUPPORT if not present.  Indent.
73761
73762         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73763         suggested by Bruno Haible <bruno@clisp.org>.
73764
73765         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73766
73767         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73768
73769         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73770         libgcrypt).
73771
73772         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73773
73774         * lib/md2.h, lib/md2.c: New files.
73775
73776 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73777
73778         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73779         errno alone.  Problem reported by Frederic Jolliton.
73780
73781 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73782
73783         * modules/verify (License): Change from GPL to LGPL.  This is a
73784         tiny module and there are apparently near-equivalents that are
73785         under the BSD license.
73786
73787 2005-10-24  Simon Josefsson  <jas@extundo.com>
73788
73789         * modules/sha1: Relicense to LGPL.
73790
73791 2005-10-24  Simon Josefsson  <jas@extundo.com>
73792
73793         * lib/md4.h: Shrink buffer size, now that we changed the type.
73794
73795 2005-10-23  Simon Josefsson  <jas@extundo.com>
73796
73797         * gnulib-tool (func_import): Fix --tests-base.
73798
73799 2005-10-22  Simon Josefsson  <jas@extundo.com>
73800
73801         * modules/arcfour (Depends-on): Need stdint.
73802
73803 2005-10-22  Simon Josefsson  <jas@extundo.com>
73804
73805         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73806         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73807
73808 2005-10-22  Simon Josefsson  <jas@extundo.com>
73809
73810         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73811         suggested by Bruno Haible <bruno@clisp.org>.
73812
73813 2005-10-22  Simon Josefsson  <jas@extundo.com>
73814
73815         * lib/crc.h: Include stddef.h, for size_t.
73816
73817 2005-10-22  Simon Josefsson  <jas@extundo.com>
73818
73819         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73820         arcfour_context struct (simplify test vector testing in GNU
73821         Shishi).
73822
73823 2005-10-21  Simon Josefsson  <jas@extundo.com>
73824
73825         * modules/des, modules/des-tests: New files.
73826
73827         * modules/gc-des, modules/gc-des-tests: New files.
73828
73829         * tests/test-des.c, tests/test-gc-des.c: New file.
73830
73831 2005-10-21  Simon Josefsson  <jas@extundo.com>
73832
73833         * modules/arctwo, modules/arctwo-tests: New files.
73834
73835         * tests/test-arctwo.c: New file.
73836
73837         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73838
73839         * tests/test-gc-arctwo.c: New file.
73840
73841 2005-10-21  Simon Josefsson  <jas@extundo.com>
73842
73843         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73844         Bruno Haible <bruno@clisp.org>.
73845
73846         * m4/gc-des.m4: New file.
73847
73848 2005-10-21  Simon Josefsson  <jas@extundo.com>
73849
73850         * m4/arctwo.m4: New file.
73851
73852         * m4/gc-arctwo.m4: New file.
73853
73854 2005-10-21  Simon Josefsson  <jas@extundo.com>
73855
73856         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73857         block.
73858
73859 2005-10-21  Simon Josefsson  <jas@extundo.com>
73860
73861         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73862         <bruno@clisp.org>.
73863
73864         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73865
73866         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73867         Bruno Haible <bruno@clisp.org>.
73868
73869         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73870         <bruno@clisp.org>.
73871
73872 2005-10-21  Simon Josefsson  <jas@extundo.com>
73873
73874         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73875
73876 2005-10-21  Simon Josefsson  <jas@extundo.com>
73877
73878         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73879
73880 2005-10-21  Simon Josefsson  <jas@extundo.com>
73881
73882         * lib/des.h, lib/des.c: New files.
73883
73884         * lib/gc-gnulib.c: Support DES.c
73885
73886 2005-10-21  Simon Josefsson  <jas@extundo.com>
73887
73888         * lib/arctwo.h, lib/arctwo.c: New files.
73889
73890         * lib/gc-gnulib.c: Support ARCTWO.
73891
73892 2005-10-21  Simon Josefsson  <jas@extundo.com>
73893
73894         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73895         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73896
73897 2005-10-21  Simon Josefsson  <jas@extundo.com>
73898
73899         * gnulib-tool (func_import, func_create_testdir): Define automake
73900         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73901         Makefile.am snippet),
73902         suggested by Bruno Haible <bruno@clisp.org>.
73903
73904         * modules/gc (Makefile.am): Use it.
73905
73906 2005-10-21  Bruno Haible  <bruno@clisp.org>
73907
73908         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73909         patch.
73910
73911 2005-10-19  Simon Josefsson  <jas@extundo.com>
73912
73913         * tests/test-gc-rijndael.c: New file.
73914
73915         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73916
73917 2005-10-19  Simon Josefsson  <jas@extundo.com>
73918
73919         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73920         interface too.
73921
73922 2005-10-19  Simon Josefsson  <jas@extundo.com>
73923
73924         * tests/test-gc-arcfour.c: New file.
73925
73926         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73927
73928 2005-10-19  Simon Josefsson  <jas@extundo.com>
73929
73930         * modules/gc-md4, modules/gc-md4-tests: New file.
73931
73932         * tests/test-gc-md4.c: New file.
73933
73934 2005-10-19  Simon Josefsson  <jas@extundo.com>
73935
73936         * m4/gc-md4.m4: New file.
73937
73938 2005-10-19  Simon Josefsson  <jas@extundo.com>
73939
73940         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73941         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73942         <kasal@ucw.cz>.
73943
73944 2005-10-19  Simon Josefsson  <jas@extundo.com>
73945
73946         * m4/gc-arcfour.m4: New file.
73947
73948         * m4/gc-rijndael.m4: New file.
73949
73950 2005-10-19  Simon Josefsson  <jas@extundo.com>
73951
73952         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73953
73954 2005-10-19  Simon Josefsson  <jas@extundo.com>
73955
73956         * lib/gc-gnulib.c: Support ARCFOUR.
73957
73958 2005-10-19  Simon Josefsson  <jas@extundo.com>
73959
73960         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73961         support.
73962
73963         * lib/gc.h: Add ECB enum type.
73964
73965         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73966
73967 2005-10-18  Simon Josefsson  <jas@extundo.com>
73968
73969         * tests/test-md5.c: New file.
73970
73971         * modules/md5-tests: New file.
73972
73973 2005-10-18  Simon Josefsson  <jas@extundo.com>
73974
73975         * tests/test-md4.c: New file.
73976
73977         * modules/md4, modules/md4-tests: New files.
73978
73979 2005-10-18  Simon Josefsson  <jas@extundo.com>
73980
73981         * m4/md4.m4: New file.
73982
73983 2005-10-18  Simon Josefsson  <jas@extundo.com>
73984
73985         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73986
73987 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73988
73989         * gnulib-tool (func_create_testdir): Omit the second check whether
73990         BUILT_SOURCES in nonempty.
73991
73992 2005-10-17  Simon Josefsson  <jas@extundo.com>
73993
73994         * tests/test-rijndael.c: New file.
73995
73996 2005-10-17  Simon Josefsson  <jas@extundo.com>
73997
73998         * modules/sha1: Depend on stdint instead of md5.
73999
74000         * modules/md5: Depend on stdint, remove uint32_t.
74001
74002 2005-10-17  Simon Josefsson  <jas@extundo.com>
74003
74004         * modules/gc-sha1-tests: New file.
74005
74006         * tests/test-gc-sha1.c: New file.
74007
74008 2005-10-17  Simon Josefsson  <jas@extundo.com>
74009
74010         * m4/md5.m4: Remove call to uint32_t.m4.
74011
74012 2005-10-17  Simon Josefsson  <jas@extundo.com>
74013
74014         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74015
74016         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74017         md5.h.
74018
74019         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74020
74021         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74022
74023 2005-10-17  Simon Josefsson  <jas@extundo.com>
74024
74025         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74026
74027 2005-10-17  Simon Josefsson  <jas@extundo.com>
74028
74029         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74030
74031 2005-10-17  Simon Josefsson  <jas@extundo.com>
74032
74033         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74034
74035         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74036
74037 2005-10-17  Bruno Haible  <bruno@clisp.org>
74038
74039         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74040         that it can also be used in a test.
74041
74042 2005-10-16  Bruno Haible  <bruno@clisp.org>
74043
74044         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74045         TESTS_ENVIRONMENT, so that individual tests can augment it.
74046
74047         * gnulib-tool (func_create_testdir): Use an intermediate target for
74048         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74049         macros, like $(ALLOCA_H), which cannot be passed through the command
74050         line.
74051
74052 2005-10-15  Simon Josefsson  <jas@extundo.com>
74053
74054         * modules/rijndael-tests: New file.
74055
74056         * modules/rijndael: New file.
74057
74058 2005-10-15  Simon Josefsson  <jas@extundo.com>
74059
74060         * m4/rijndael.m4: New file.
74061
74062 2005-10-15  Simon Josefsson  <jas@extundo.com>
74063
74064         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74065
74066         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74067
74068 2005-10-14  Simon Josefsson  <jas@extundo.com>
74069
74070         * tests/test-arcfour.c: New file.
74071
74072         * modules/arcfour, modules/arcfour-tests: New files.
74073
74074 2005-10-14  Simon Josefsson  <jas@extundo.com>
74075
74076         * m4/arcfour.m4: New file.
74077
74078 2005-10-14  Simon Josefsson  <jas@extundo.com>
74079
74080         * lib/arcfour.h, lib/arcfour.c: New files.
74081
74082 2005-10-14  Roland McGrath  <roland@redhat.com>
74083
74084         Import from libc.  [BZ #1331]
74085         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74086         macro argument.
74087         Reported by Matej Vela <vela@debian.org>.
74088
74089 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74090
74091         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74092         include <wchar.h>; no longer needed.
74093
74094 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74095
74096         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74097
74098 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74099         and  Ulrich Drepper  <drepper@redhat.com>
74100
74101         Import from libc.
74102         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74103         instead of inline stream orientation test and two separate
74104         function calls.  Pay no attention to USE_IN_LIBIO.
74105
74106 2005-10-13  Simon Josefsson  <jas@extundo.com>
74107
74108         * modules/gc-hmac-md5-tests: New file.
74109
74110         * tests/test-gc-hmac-sha1.c: New file.
74111
74112         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74113
74114         * modules/gc-hmac-md5-tests: New file.
74115
74116         * tests/test-gc-md5.c: New file.
74117
74118         * modules/gc-md5-tests: New file.
74119
74120 2005-10-13  Simon Josefsson  <jas@extundo.com>
74121
74122         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74123         Move memory allocation outside of loop.
74124
74125 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74126
74127         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74128         intermediate directory is in a read-only file system.  Problem
74129         reported by Eric Blake.
74130
74131 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74132
74133         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74134
74135 2005-10-12  Simon Josefsson  <jas@extundo.com>
74136
74137         * tests/test-hmac-sha1.c: New file.
74138
74139         * modules/hmac-sha1-tests: New file.
74140
74141         * modules/hmac-sha1: New file.
74142
74143 2005-10-12  Simon Josefsson  <jas@extundo.com>
74144
74145         * modules/gc-sha1: New file.
74146
74147 2005-10-12  Simon Josefsson  <jas@extundo.com>
74148
74149         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74150
74151         * tests/test-gc-pbkdf2-sha1.c: New file.
74152
74153 2005-10-12  Simon Josefsson  <jas@extundo.com>
74154
74155         * modules/gc-md5, modules/gc-hmac-md5: New files.
74156
74157         * modules/gc (Files): Remove md5, memxor and hmac files.
74158
74159 2005-10-12  Simon Josefsson  <jas@extundo.com>
74160
74161         * m4/gc-pbkdf2-sha1.m4: New file.
74162
74163         * m4/gc-hmac-sha1.m4: New file.
74164
74165         * m4/gc-sha1: New file.
74166
74167         * m4/hmac-sha1.m4: New file.
74168
74169 2005-10-12  Simon Josefsson  <jas@extundo.com>
74170
74171         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74172
74173         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74174
74175 2005-10-12  Simon Josefsson  <jas@extundo.com>
74176
74177         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74178         suggested by Bruno Haible <bruno@clisp.org>.
74179
74180 2005-10-12  Simon Josefsson  <jas@extundo.com>
74181
74182         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74183
74184 2005-10-12  Simon Josefsson  <jas@extundo.com>
74185
74186         * lib/gc-pbkdf2-sha1.c: New file.
74187
74188         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74189
74190 2005-10-12  Simon Josefsson  <jas@extundo.com>
74191
74192         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74193
74194         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74195
74196 2005-10-12  Simon Josefsson  <jas@extundo.com>
74197
74198         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74199         GC_USE_HMAC_MD5, respectively.
74200
74201         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74202         (gc_md5): Fix typo.
74203
74204         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74205
74206         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74207
74208         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74209
74210 2005-10-12  Bruno Haible  <bruno@clisp.org>
74211
74212         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74213         Reported by Stepan Kasal <kasal@ucw.cz>.
74214
74215 2005-10-11  Simon Josefsson  <jas@extundo.com>
74216
74217         * tests/test-crc.c: New file.
74218
74219         * modules/crc, modules/crc-tests: New files.
74220
74221 2005-10-11  Simon Josefsson  <jas@extundo.com>
74222
74223         * m4/crc.m4: New file.
74224
74225 2005-10-11  Simon Josefsson  <jas@extundo.com>
74226
74227         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74228
74229         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74230
74231         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74232
74233 2005-10-11  Simon Josefsson  <jas@extundo.com>
74234
74235         * lib/crc.h, lib/crc.c: New files.
74236
74237         * lib/gc.h (gc_hash_buffer): Add doc.
74238
74239 2005-10-11  Bruno Haible  <bruno@clisp.org>
74240
74241         * modules/c-strcasestr: New file.
74242         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74243
74244 2005-10-11  Bruno Haible  <bruno@clisp.org>
74245
74246         * modules/c-strcase: New file.
74247         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74248
74249 2005-10-11  Bruno Haible  <bruno@clisp.org>
74250
74251         * lib/strcasecmp.c: Include limits.h.
74252         (strcasecmp): Avoid integer overflow on exotic platforms.
74253         * lib/strncasecmp.c: Include limits.h.
74254         (strncasecmp): Avoid integer overflow on exotic platforms.
74255         Reported by Paul Eggert.
74256
74257 2005-10-11  Bruno Haible  <bruno@clisp.org>
74258
74259         * lib/c-strcasestr.h: New file, from GNU gettext.
74260         * lib/c-strcasestr.c: New file, from GNU gettext.
74261
74262 2005-10-11  Bruno Haible  <bruno@clisp.org>
74263
74264         * lib/c-strcase.h: New file, from GNU gettext.
74265         * lib/c-strcasecmp.c: New file, from GNU gettext.
74266         * lib/c-strncasecmp.c: New file, from GNU gettext.
74267
74268 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74269
74270         * modules/mempcpy (License): GPL -> LGPL.
74271         * modules/strchrnul (License): Likewise.
74272         * modules/sysexits (License): Likewise.
74273
74274 2005-10-08  Simon Josefsson  <jas@extundo.com>
74275
74276         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74277
74278 2005-10-07  Simon Josefsson  <jas@extundo.com>
74279
74280         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74281
74282 2005-10-06  Simon Josefsson  <jas@extundo.com>
74283
74284         * tests/test-hmac-md5.c: New file.
74285
74286         * modules/hmac-md5-tests: New file.
74287
74288         * modules/hmac-md5: New file.
74289
74290 2005-10-06  Simon Josefsson  <jas@extundo.com>
74291
74292         * m4/hmac-md5.m4: New file.
74293
74294         * m4/memxor.m4: Require gl_C_RESTRICT.
74295
74296 2005-10-06  Simon Josefsson  <jas@extundo.com>
74297
74298         * lib/memxor.c (memxor): Avoid casts and warnings.
74299
74300 2005-10-06  Simon Josefsson  <jas@extundo.com>
74301
74302         * lib/hmac-md5.c: New file.
74303
74304         * lib/hmac.h: New file.
74305
74306 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74307
74308         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74309         promotes to int, not unsigned int, to catch the AIX 5.3
74310         compiler bug.
74311
74312 2005-10-05  Simon Josefsson  <jas@extundo.com>
74313
74314         * modules/memxor: New file.
74315
74316         * modules/iconv (Files): Move config.rpath to havelib, it is used
74317         there.
74318
74319         * modules/havelib (Files): Add config.rpath.
74320
74321 2005-10-05  Simon Josefsson  <jas@extundo.com>
74322
74323         * m4/memxor.m4: New file.
74324
74325 2005-10-05  Simon Josefsson  <jas@extundo.com>
74326
74327         * lib/memxor.c (memxor): Fix compiler error.
74328
74329         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74330         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74331
74332         * lib/memxor.h, lib/memxor.c: New files.
74333
74334         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74335         we assume all systems have it, suggested by Jim Meyering
74336         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74337         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74338         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74339         same reasons.
74340
74341 2005-10-05  Simon Josefsson  <jas@extundo.com>
74342
74343         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74344
74345 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74346
74347         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74348         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74349         needed, since the source code now assumes these .h files.
74350
74351 2005-10-05  Derek Price  <derek@ximbiot.com>
74352
74353         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74354
74355 2005-10-05  Bruno Haible  <bruno@clisp.org>
74356
74357         * modules/stdint (License): Change to LGPL.
74358
74359 2005-10-04  Simon Josefsson  <jas@extundo.com>
74360
74361         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74362         D. Baushke" <mdb@gnu.org>.
74363
74364 2005-10-04  Bruno Haible  <bruno@clisp.org>
74365
74366         * lib/verify.h (verify_true): Provide alternative definition for C++.
74367
74368 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74369
74370         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74371         (SSIZE_MAX): New macro, if not already defined.
74372         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74373         than 2 GiB.
74374
74375 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74376
74377         Sync from coreutils.
74378         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74379         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74380         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74381         ULLONG_MAX doesn't work with 2.7.2.1.
74382
74383 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74384
74385         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74386         From Ben Pfaff.
74387
74388         * modules/exclude (Depends-on): Depend on verify.
74389         * modules/strtoimax (Depends-on): Likewise.
74390         * modules/utimecmp (Depends-on): Likewise.
74391
74392 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74393
74394         * lib/exclude.c: Include verify.h.
74395         (verify): Remove.  All callers changed to use verify.h's version.
74396         * lib/strtoimax.c: Likewise.
74397         * lib/utimecmp.c: Likewis.e
74398
74399         Sync from coreutils.
74400         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74401         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74402         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74403         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74404         bother returning ENOSYS if settimeofday or stime fails; just let
74405         them return whatever errno they want to return.
74406         * lib/utimens.c: Include unistd.h, for dup2.
74407         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74408         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74409
74410 2005-10-02  Jim Meyering  <jim@meyering.net>
74411
74412         Sync from coreutils.
74413         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74414         from glibc-2.2.5 that fails for read-only files.
74415
74416 2005-10-02  Jim Meyering  <jim@meyering.net>
74417
74418         Sync from coreutils.
74419         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74420         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74421         `#if HAVE_CONFIG_H'.
74422         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74423         Remove AT_FDCWD test.
74424         Do not consume the fd unless successful.
74425         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74426         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74427         block, so that we don't even try to compile it if settimeofday is
74428         available.  This works around a compilation failure on OSF1 V5.1,
74429         due to stime requiring a `long int*' while tv_sec is `int'.
74430
74431 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74432
74433         Sync from coreutils.
74434         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74435         against `yes', rather than just testing for nonempty.
74436
74437 2005-10-01  Simon Josefsson  <jas@extundo.com>
74438
74439         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74440         and Darwin.
74441
74442         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74443         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74444         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74445         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74446         Check if struct addrinfo is declared.
74447
74448 2005-10-01  Simon Josefsson  <jas@extundo.com>
74449
74450         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74451         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74452         AI_* and EAI_* definitions.  Protect function declarations.
74453
74454 2005-10-01  Jim Meyering  <jim@meyering.net>
74455
74456         Sync from coreutils.
74457
74458         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74459         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74460         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74461         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74462         in the inet and nsl libraries.  Required on Solaris 5.7.
74463
74464 2005-10-01  Jim Meyering  <jim@meyering.net>
74465
74466         Sync from coreutils.
74467         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74468         in the inet and nsl libraries.  Required on Solaris 5.7.
74469
74470 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74471
74472         * lib/getdelim.c (getdelim): Remove unused variables.
74473
74474 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74475
74476         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74477         so that the code works even with ancient cpp.  Portability problem
74478         with GCC 2.7.2.1 reported by Thomas M.Ott.
74479
74480 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74481
74482         * modules/regex (Depends-on): Add strcase.
74483
74484         * modules/gethostname (Licence): Change from GPL to LGPL, since
74485         gethostname.c is a trivial implementation of a standard library
74486         function.
74487         * modules/poll (License): Change from GPL to LGPL, since it's
74488         derived from LGPL code.
74489
74490 2005-09-27  Jim Meyering  <jim@meyering.net>
74491
74492         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74493         HAVE_CONFIG_H.
74494
74495         * lib/intprops.h (signed_type_or_expr__): Define.
74496         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74497         for unsigned types.
74498
74499 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74500
74501         * lib/verify.h (verify_expr): Remove, replacing with:
74502         (verify_true): New macro that returns true instead of void.
74503         (verify_type__): Remove.
74504         (verify): Use verify_true rather than verify_type__.
74505
74506 2005-09-26  Bruno Haible  <bruno@clisp.org>
74507
74508         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74509         is necessary.
74510         (lib_SOURCES): Remove mbchar.c.
74511         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74512         (Files): Add m4/mbrtowc.m4.
74513         * modules/mbiter: Likewise.
74514         * modules/mbuiter: Likewise.
74515
74516 2005-09-26  Bruno Haible  <bruno@clisp.org>
74517
74518         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74519         compile mbchar.c if they are not both present.
74520         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74521         * m4/mbiter.m4 (gl_MBITER): Likewise.
74522         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74523         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74524         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74525
74526 2005-09-25  Jim Meyering  <jim@meyering.net>
74527
74528         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74529         also uses socklen_t.
74530
74531 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74532
74533         * lib/utimens.c (ENOSYS): Define if not already defined.
74534         (futimens): Support having a null PATH if the file descriptor
74535         is nonnegative.
74536
74537         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74538         Remove.
74539         (__attribute): Define to empty unless GCC 3.1 or later.
74540         This works around a core dump on OpenBSD 3.4, which has GCC
74541         2.95.3, which dumps core when given __attribute__(()).  It also
74542         simplifies other tests, since we really don't want to bother with
74543         worrying about which ancient version of GCC supported what.
74544         Original problem reported by Yoann Vandoorselaere, with part of
74545         the fix suggested by Derek Price.
74546
74547 2005-09-24  Jim Meyering  <jim@meyering.net>
74548
74549         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74550         so we can once again use a positive bitfield width of 1 -- now we
74551         don't have to explain why we were using a bitfield width of 2.
74552
74553 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74554
74555         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74556         and similarly for the other external symbols.  Problem reported
74557         by James Gallager.
74558
74559         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74560         bug reported by Jim Meyering.
74561
74562         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74563         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74564         not needed, since socklen is a prerequisite module.
74565
74566 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74569         Problem reported by Eric Blake.
74570         (getaddrinfo): Initialize se so that it's not garbage.
74571         Redo internal storage allocation so that it doesn't make unportable
74572         assumptions about alignment.
74573         Fix a memory leak.
74574
74575         * lib/utimens.c (futimens): Use futimesat if available.
74576         Prefer it to futimes since it doesn't have the futimes bug.
74577
74578         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74579         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74580         Instead, declare a function that returns a pointer to an array,
74581         and use verify_type__ to declare the size of the array.
74582         Problem and germ of a solution reported by Bruno Haible.
74583         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74584         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74585
74586 2005-09-23  Jim Meyering  <jim@meyering.net>
74587
74588         Sync from coreutils.
74589         Correct build failure (socklen_t not defined) on at least
74590         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74591         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74592
74593 2005-09-23  Jim Meyering  <jim@meyering.net>
74594
74595         * modules/getaddrinfo (Depends-on): Add socklen.
74596
74597 2005-09-23  Bruno Haible  <bruno@clisp.org>
74598
74599         * tests/test-verify.c: New file.
74600
74601 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74602
74603         Sync from coreutils.
74604
74605         * modules/argmatch (Depends-on): Add verify.
74606         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74607         unistd-safer.
74608         * modules/save-cwd (Depends-on): Likewise.
74609
74610         * modules/openat (Files): Add lib/openat-die.c.
74611         (Depends-on): Remove error, exitfail.
74612         Add dirname.
74613
74614         * modules/verify: New file.
74615         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74616         with "verify" module.
74617
74618 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74619
74620         Sync from coreutils.
74621
74622         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74623         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74624         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74625         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74626         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74627         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74628         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74629         Don't bother checking for string.h, stdlib.h, unistd.h.
74630         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74631         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74632         module's job.
74633         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74634         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74635
74636         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74637         (gl_GETDATE): Use it.
74638
74639         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74640
74641 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74642
74643         Sync from coreutils.
74644
74645         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74646         stat-time.h.
74647         * lib/argmatch.h: Include verify.h
74648         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74649         (ARGMATCH_ASSERT): Remove; unused.
74650         * lib/canonicalize.c: Assume STDC_HEADERS.
74651         * lib/exclude.c: Include "strcase.h".
74652         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74653         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74654         and stdio-safer.h.
74655         (getusershell): Call fopen, not fopen_safer.
74656         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74657         Do not include unistd-safer.h.
74658         (save_cwd): Don't call fd_safer; no longer needed
74659         now that we include fcntl--.h.
74660
74661         * lib/getdate.y (relative_time): New type.
74662         (RELATIVE_TIME_0): New constant.
74663         (parser_control): Use relative_time instead of doing it ourselves.
74664         (%union): Add new relative_time rel member.
74665         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74666         Now typeless.
74667         (relunit, relunit_snumber): Now of type rel.
74668         (zone, rel, relunit, get_date): Adjust to above changes.
74669
74670         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74671         Do not include unistd-safer.h.
74672         (getloadavg): Don't call fd_safer; no longer needed
74673         now that we include fcntl--.h.
74674
74675         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74676         (make_dir_parents): Treat ENOSYS like EEXIST.
74677
74678         Improve quality of diagnostics on restore_cwd failure.
74679         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74680         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74681         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74682         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74683         each time through the loop.  Do not diagnose restore_cwd failure;
74684         that is the caller's job (and perhaps the caller does not care).
74685
74686         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74687         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74688         If the file already exists but is not a directory, don't bother
74689         to try to make its parents.
74690         Close potential file descriptor leak if we can't chdir("/") (!).
74691         Don't always return true if chdir($PWD) fails; return true only
74692         if the requested action was done successfully (except for the
74693         chdir($PWD)).
74694         Don't log final directory unless we actually made it.
74695         Refactor to avoid duplicate code to fix up permissions.
74696         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74697
74698         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74699         to make it a bit faster and (I hope) clearer.
74700         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74701         Fix bug in formats like %2N.
74702
74703         * lib/verify.h: New file.
74704
74705 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74706
74707         Sync from coreutils.
74708         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74709
74710 2005-09-22  Jim Meyering  <jim@meyering.net>
74711
74712         Sync from coreutils.
74713
74714         * m4/lstat.m4 (gl_FUNC_LSTAT):
74715         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74716         Remove obsolete comment.
74717         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74718         * m4/xstrtod.m4: Likewise.
74719
74720         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74721
74722 2005-09-22  Jim Meyering  <jim@meyering.net>
74723
74724         Sync from coreutils.
74725
74726         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74727
74728         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74729         the .tm_year member, since otherwise gcc-4.0 would now warn about
74730         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74731
74732         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74733         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74734
74735         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74736         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74737         when run in a time zone for which daylight savings time is in effect
74738         for the starting date.
74739
74740         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74741         stop us from restricting permissions of just-created absolute-named
74742         directories.
74743         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74744         to restore initial working directory.
74745         * lib/mkdir-p.c (make_dir_parents): New parameter:
74746         different_working_dir, to tell caller if/when we change the working
74747         directory and are unable to return to the initial one.
74748         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74749         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74750         `return false'.  This fixes a bug introduced on 2004-07-30.
74751
74752         * lib/openat.c (fdopendir): Be sure to close the supplied
74753         file descriptor before returning.  This makes our replacement
74754         implementation a little closer to Solaris's, where fdopendir
74755         ties the file descriptor to the returned DIR* pointer.
74756         * lib/openat.c (unlinkat): New function.
74757         * lib/openat.h (unlinkat): Add prototype.
74758         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74759         (openat_restore_fail): Rename from openat_restore_die.
74760         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74761
74762         Provide an alternative to exiting immediately upon save_cwd or
74763         restore_cwd failure.  Now, an application can arrange e.g.,
74764         to perform a longjump in that case.
74765         * lib/openat.c: Include dirname.h.
74766         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74767         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74768         and openat_restore_die rather than calling error directly.
74769         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74770
74771         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74772         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74773         define.
74774
74775         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74776         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74777                             int utc, int nanoseconds);
74778         Background:
74779         date should not have to allocate a megabyte of virtual memory to
74780         handle a format argument like +%1048575T.  When implemented with
74781         strftime, it must allocate such a buffer, use strftime to fill it
74782         in, print it, then free it.
74783         With fprintftime, it simply prints everything and exits.
74784         With no need for memory allocation, that's one fewer way to fail.
74785         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74786         optional field width, not before, so we accept %9:z, not %:9z.
74787         (my_strftime): Be sure to use L_('x') for literals.
74788
74789         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74790         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74791         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74792         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74793         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74794         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74795         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74796         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74797         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74798         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74799         * lib/xgethostname.c, lib/xreadlink.c:
74800         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74801
74802         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74803         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74804         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74805         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74806         and don't include <sys/file.h>).
74807
74808 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74809
74810         Sync from coreutils.
74811
74812         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74813         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74814         [!LDAV_DONE]: Avoid unused variable warning.
74815
74816 2005-09-21  Bruno Haible  <bruno@clisp.org>
74817
74818         * lib/unicodeio.h (unicode_to_mb): New declaration.
74819
74820 2005-09-20  Derek Price  <derek@ximbiot.com>
74821
74822         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74823         getaddrinfo.h.
74824
74825 2005-09-20  Bruno Haible  <bruno@clisp.org>
74826
74827         * gnulib-tool: Remove trailing slashes from the values specified for
74828         --source-base, --m4-base, --tests-base, --aux-dir.
74829         Suggested by Simon Josefsson <jas@extundo.com>.
74830
74831 2005-09-20  Bruno Haible  <bruno@clisp.org>
74832
74833         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74834         func_modules_to_filelist, func_import, func_create_testdir): Make all
74835         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74836         change when gnulib-tool is invoked in a different locale.
74837
74838 2005-09-19  Simon Josefsson  <jas@extundo.com>
74839
74840         * m4/socklen.m4: Fix typo.
74841
74842 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74843
74844         Use a consistent style for including <config.h>.
74845         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74846         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74847         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74848         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74849         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74850         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74851         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74852         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74853         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74854         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74855         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74856         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74857         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74858         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74859         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74860         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74861         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74862         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74863         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74864         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74865         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74866         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74867         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74868         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74869         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74870         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74871         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74872         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74873         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74874         lib/xstrtoumax.c, lib/yesno.c:
74875         Standardize inclusion of config.h.
74876         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74877         lib/inttostr.h:  Removed inclusion of config.h from header files.
74878         * lib/inttostr.c:  Adjusted in-tree users.
74879         * lib/timespec.h: Remove superfluous warning to include config.h.
74880         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74881         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74882         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74883         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74884         config.h with HAVE_CONFIG_H.
74885
74886 2005-09-19  Jim Meyering  <jim@meyering.net>
74887
74888         * modules/pathmax (License): Change to LGPL.
74889
74890 2005-09-19  Derek Price  <derek@ximbiot.com>
74891
74892         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74893
74894 2005-09-19  Bruno Haible  <bruno@clisp.org>
74895
74896         * gnulib-tool (import): Provide default for --tests-base.
74897
74898 2005-09-19  Bruno Haible  <bruno@clisp.org>
74899
74900         * doc/quote.texi: New file, extracted from gnulib.texi.
74901         * doc/ctime.texi: New file, extracted from gnulib.texi.
74902         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74903         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74904         * doc/gnulib.texi: Include them.
74905
74906 2005-09-18  Bruno Haible  <bruno@clisp.org>
74907
74908         Portability fix.
74909         * gnulib-tool (func_readlink): New function.
74910         (func_ln_if_changed): Use it.
74911
74912 2005-09-18  Bruno Haible  <bruno@clisp.org>
74913
74914         * gnulib-tool: Support --with-tests also with --import.
74915         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74916         (func_import): Use variables $testsbase and $inctests. Emit a
74917         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74918         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74919         SUBDIRS += $testsdir.
74920         (func_create_testdir): Update.
74921
74922 2005-09-18  Bruno Haible  <bruno@clisp.org>
74923
74924         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74925         instead of $dry_run.
74926         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74927         (func_ln_if_changed): Don't handle dry-run here.
74928         (func_import): In dry-run mode, detect more precisely which actions
74929         would be performed, and don't use "...ing" verbs.
74930
74931 2005-09-18  Bruno Haible  <bruno@clisp.org>
74932
74933         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74934         (func_import): Use join on two temporary files instead of three nested
74935         loops, in order to determine which files are new or old.
74936
74937 2005-09-18  Bruno Haible  <bruno@clisp.org>
74938
74939         * gnulib-tool (func_import): Comment out code that spits out the
74940         new files with --dry-run.
74941
74942 2005-09-18  Bruno Haible  <bruno@clisp.org>
74943
74944         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74945
74946 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         * lib/stat-time.h: New file.
74949         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74950         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74951         in a different way.
74952         (timespec_cmp): New function.
74953         * lib/utimecmp.c: Include stat-time.h.
74954         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74955         members exist, not on the obsolescent ST_MTIM_NSEC.
74956         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74957
74958 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74959
74960         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74961
74962 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * MODULES.html.sh (File system functions): Add stat-time.
74965         * modules/stat-time: New file.
74966         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74967         is now done in a different way, by the stat-time module.
74968         * modules/utimecmp (Depends-on): Add stat-time.
74969
74970 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74971
74972         * m4/st_mtim.m4: Remove.  Superseded by...
74973         * m4/stat-time.m4: New file.
74974         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74975         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74976
74977 2005-09-15  Derek Price  <derek@ximbiot.com>
74978
74979         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74980
74981 2005-09-15  Derek Price  <derek@ximbiot.com>
74982
74983         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74984         * lib/regex_internal.c: Ditto, using this...
74985         (__GNUC_PREREQ): ...new macro.
74986         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74987         using...
74988         (__GNUC_PREREQ): ...this new macro.
74989
74990         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74991
74992 2005-09-15  Derek Price  <derek@ximbiot.com>
74993             Paul Eggert  <eggert@cs.ucla.edu>
74994
74995         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74996         changes, consolidating in...
74997         * lib/regex_internal.h: ...this file.
74998
74999 2005-09-13  Jim Meyering  <jim@meyering.net>
75000
75001         * lib/canon-host.c: Filter through gnu indent and reword comments
75002         slightly.
75003         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75004
75005 2005-09-13  Derek Price  <derek@ximbiot.com>
75006
75007         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75008         failure.
75009         Reported by Jim Meyering  <jim@meyering.net>.
75010
75011 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75012
75013         * lib/base64.c: Typo.
75014         (base64_encode): Put b64str in initialized data section.
75015
75016 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75017
75018         Merge glibc and coreutils changes into gnulib, plus a few
75019         extra fixes.
75020         * lib/md5.c: Use #error rather than a string.
75021         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75022         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75023         (__attribute__): Define to empty for non recent-GCC.
75024         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75025         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75026         Renamed from their non-__ counterparts, with new macros replacing
75027         them if not _LIBC.  Add __THROW attribute.
75028         (rol): Remove.
75029         (struct md5_ctx): Align buffer if using GCC.
75030         * lib/sha1.h (struct sha1_ctx): Likewise.
75031         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75032         The old name was backwards.
75033         (NOTSWAP): Remove; not used.
75034         (rol): New macro, moved here from md5.h.
75035         (sha1_process_block): Remove a FIXME that doesn't make sense.
75036
75037 2005-09-12  Derek Price  <derek@ximbiot.com>
75038
75039         Return usable errors from canon-host.
75040         * lib/canon-host.h: New file.
75041         * lib/canon-host.c (canon_host): Wrap...
75042         (canon_host_r): ...this new function, which now relies exclusively on
75043         getaddrinfo.
75044         (ch_strerror): New function.
75045         (last_cherror): New global.
75046         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75047         interface.
75048         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75049         void *.
75050         (freeaddrinfo): Free ai->ai_canonname when set.
75051
75052 2005-09-12  Derek Price  <derek@ximbiot.com>
75053
75054         Make canon-host require getaddrinfo.
75055         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75056         AC_LIBSOURCE canon-host.h.  Call...
75057         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75058         gl_GETADDRINFO.
75059         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75060
75061 2005-09-12  Derek Price  <derek@ximbiot.com>
75062
75063         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75064         LGPL.
75065         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75066
75067 2005-09-12  Derek Price  <derek@ximbiot.com>
75068
75069         * lib/gai_strerror.c: Include config.h when available.  Include
75070         getaddrinfo.h before other headers to test interface.
75071         Reported by Larry Jones <lawrence.jones@ugs.com>.
75072
75073 2005-09-12  Derek Price  <derek@ximbiot.com>
75074             Paul Eggert  <eggert@cs.ucla.edu>
75075
75076         * modules/glob (Files): Add glob-libc.h.
75077
75078 2005-09-12  Derek Price  <derek@ximbiot.com>
75079             Paul Eggert  <eggert@cs.ucla.edu>
75080
75081         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75082         glob_.h, glob-libc.h.
75083         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75084
75085 2005-09-12  Derek Price  <derek@ximbiot.com>
75086             Paul Eggert  <eggert@cs.ucla.edu>
75087
75088         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75089         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75090         protecting things that should be done only in gnulib contexts.
75091         * lib/glob_.h: New file, containing only the glob things needed for
75092         gnulib.
75093         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75094         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75095         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75096         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75097         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75098         and to respect the namespace rules better.
75099
75100 2005-09-08  Simon Josefsson  <jas@extundo.com>
75101
75102         * modules/socklen: New file.
75103
75104 2005-09-08  Simon Josefsson  <jas@extundo.com>
75105
75106         * m4/socklen.m4: New file.
75107
75108 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75109
75110         * modules/utimens (Files): Add m4/utimbuf.m4, since
75111         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75112         Reported by Sergey Poznyakoff.
75113
75114 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75115
75116         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75117         definitions, since that's the preferred style in glibc.
75118         Fix a minor spacing issue, and update copyright notice to match
75119         glibc's.
75120
75121 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75122
75123         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75124
75125 2005-09-06  Simon Josefsson  <jas@extundo.com>
75126
75127         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75128         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75129
75130 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75131
75132         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75133         warning.
75134
75135 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         * config/srclist.txt: Add glibc bug 1302.
75138
75139 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75140
75141         Change bitset word type from unsigned int to unsigned long int,
75142         as this has better performance on typical 64-bit hosts.
75143         Port bitset code to hosts with unusual word sizes.
75144         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75145         (build_collating_symbol):
75146         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75147         argument is a bitset.  This is merely a style issue, but it makes
75148         it clearer that an entire array is expected.
75149         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75150         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75151         Port to the case where bitset_word is not the same as unsigned int.
75152         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75153         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75154         Likewise.
75155         * lib/regexec.c (check_dst_limits_calc_pos_1,
75156         check_subexp_matching_top):
75157         (build_trtable, group_nodes_into_DFAstates):
75158         Likewise.
75159         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75160         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75161         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75162         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75163         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75164         * lib/regcomp.c (optimize_subexps, lower_subexp):
75165         Work even if bitset_word has holes in its bitwise representation.
75166         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75167         * lib/regexec.c (check_dst_limits_calc_pos_1,
75168         check_subexp_matching_top):
75169         Likewise.
75170         * lib/regex_internal.c (re_string_reconstruct):
75171         Don't assume UCHAR_MAX == 255.
75172         * lib/regex_internal.h (bitset_set_all): Likewise.
75173         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75174         All uses changed.
75175         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75176         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75177         All uses changed.
75178         (BITSET_WORD_MAX): New macro.
75179         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75180         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75181         (bitset_empty, bitset_copy):
75182         Prefer sizeof (bitset) to multiplying it out ourselves.
75183         (bitset_not_merge): Remove; unused.
75184         (bitset_contain): Return bool, not unsigned int with one bit on.
75185         All callers changed.
75186         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75187         alignment than re_node_set; do this by defining a new internal
75188         type struct dests_alloc and using it to allocate memory.
75189
75190 2005-09-05  Bruno Haible  <bruno@clisp.org>
75191
75192         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75193         links.
75194
75195 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75196
75197         * modules/size_max (Makefile.am): Add size_max.h
75198
75199 2005-09-04  Derek Price  <derek@ximbiot.com>
75200
75201         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75202
75203 2005-09-03  Simon Josefsson  <jas@extundo.com>
75204
75205         * gnulib-tool: Fix typo.
75206
75207 2005-09-03  Simon Josefsson  <jas@extundo.com>
75208
75209         * config/srclist.txt: Add glibc bug 1293.
75210
75211 2005-09-03  Derek Price  <derek@ximbiot.com>
75212
75213         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75214         From Larry Jones <lawrence.jones@ugs.com>.
75215
75216 2005-09-02  Simon Josefsson  <jas@extundo.com>
75217
75218         * modules/socklen: New file.
75219
75220 2005-09-02  Simon Josefsson  <jas@extundo.com>
75221
75222         * modules/havelib: New module.
75223
75224         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75225         Use havelib.
75226
75227 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75228
75229         Check for arithmetic overflow when calculating sizes, to prevent
75230         some buffer-overflow issues.  These patches are conservative, in the
75231         sense that when I couldn't determine whether an overflow was possible,
75232         I inserted a run-time check.
75233         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75234         macros.
75235         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75236         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75237         (re_xnrealloc, re_x2nrealloc): New inline functions.
75238         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75239         parse_bracket_exp):
75240         (build_equiv_class, build_charclass): Check for arithmetic overflow
75241         in size expression calculations.
75242         * lib/regex_internal.c (re_string_realloc_buffers):
75243         (build_wcs_upper_buffer, re_node_set_add_intersect):
75244         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75245         (re_dfa_add_node, register_state): Likewise.
75246         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75247         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75248         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75249         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75250
75251 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75252
75253         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75254         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75255
75256 2005-09-02  Bruno Haible  <bruno@clisp.org>
75257
75258         Support for lib vs. lib64 distinction on biarch platforms.
75259         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75260         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75261         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75262
75263 2005-09-02  Bruno Haible  <bruno@clisp.org>
75264
75265         * gnulib-tool (import): In the other first-use case, provide defaults
75266         as well.
75267
75268 2005-09-02  Bruno Haible  <bruno@clisp.org>
75269
75270         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75271         patches not yet found in the latest gettext release.
75272
75273 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75274
75275         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75276         to avoid a collision with bits/local_lim.h in glibc.
75277         All uses changed.  Problem reported by Dmitry V. Levin in
75278         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75279
75280         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75281         bugs in int versus size_t comparisons.
75282         (re_string_context_at): Fix bug where the code assumed that
75283         Idx is signed.
75284
75285         Use bool where appropriate.
75286         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75287         All callers changed.
75288         (calc_eclosure_iter): Likewise, for ROOT arg.
75289         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75290         (build_charclass_op): Likewise, for NON_MATCH arg.
75291         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75292         (re_string_construct_common): Likewise, for ICASE arg.
75293         * lib/regexec.c (re_search_2_stub, re_search_stub):
75294         Likewise, for RET_LEN arg.
75295         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75296         (set_regs): Likewise, for FL_BACKTRACK arg.
75297         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75298         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75299         (calc_eclosure_iter, parse_bracket_exp):
75300         Use bool for internal variables that are booleans.
75301         * lib/regexec.c (re_search_internal, check_matching,
75302         proceed_next_node):
75303         (set_regs, build_sifted_states, sift_states_bkref):
75304         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75305         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75306         (find_collation_sequence_value):
75307         Likewise.
75308         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75309         (re_node_set_compare):
75310         Return bool, not int. All callers changed.
75311         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75312         (build_trtable, check_node_accept): Likewise.
75313         * lib/regex_internal.h: Include stdbool.h.
75314
75315         Fix bugs uncovered when converting to bool.
75316         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75317         failure instead of charging ahead blindly.
75318         * lib/regex_internal.c (register_state): Likewise.
75319         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75320         for freeing internal storage.
75321         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75322         bitset pieces used as boolean, to avoid undefined behavior
75323         on hosts that do int overflow checking.
75324
75325 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75326
75327         * config/srclist.txt: Add glibc bugs 1285-1287.
75328
75329 2005-09-01  Jim Meyering  <jim@meyering.net>
75330
75331         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75332         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75333         Require gl_STAT_MACROS, too.
75334
75335 2005-09-01  Bruno Haible  <bruno@clisp.org>
75336
75337         * gnulib-tool (import): In the first-use case, provide defaults.
75338
75339 2005-09-01  Bruno Haible  <bruno@clisp.org>
75340
75341         * gnulib-tool (func_import): Remove the .tmp files.
75342
75343 2005-09-01  Bruno Haible  <bruno@clisp.org>
75344
75345         * gnulib-tool (func_import): Fix handling of symbolic links.
75346
75347 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75348
75349         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75350         old glibc regex code mishandles strings longer than 2**31 bytes.
75351         This patch fixes this when the regex code is used in gnulib
75352         (i.e., outside glibc).
75353
75354         This patch should not affect the use of the regex code inside
75355         glibc.  No doubt this problem also needs to be handled for glibc
75356         as well, but the result will be an incompatible change to the
75357         glibc ABI, and the old ABI will have to be supported too.  That
75358         can be the the subject for another patch.
75359
75360         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75361         governing whether the rest of this patch is active.  By default,
75362         the macro is disabled and the patch has no effect.
75363         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75364         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75365         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75366         (re_match_2, re_set_registers): Use the new types.
75367         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75368         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75369         New macros.
75370         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75371         (re_string_context_at, bin_tree_t, re_dfastate_t):
75372         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75373         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75374         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75375         (re_string_char_size_at, re_string_wchar_at):
75376         (re_string_elem_size_at):
75377         Use the new types and macros to port to 64-bit hosts.
75378         Use unsigned types for internal values, so that the code
75379         mostly works even for arrays larger than SSIZE_MAX.
75380         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75381         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75382         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75383         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75384         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75385         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75386         (calc_inveclosure, parse_dup_op, build_range_exp):
75387         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75388         (fetch_number, create_token_tree, mark_opt_subexp):
75389         Likewise.
75390         * lib/regex_internal.c (re_string_construct_common,
75391         create_ci_newstate):
75392         (create_cd_newstate, re_string_allocate, re_string_construct):
75393         (re_string_realloc_buffers, build_wcs_upper_buffer):
75394         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75395         (re_string_reconstruct, re_string_peek_byte_case):
75396         (re_string_fetch_byte_case, re_string_context_at):
75397         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75398         (re_node_set_init_copy, re_node_set_add_intersect):
75399         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75400         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75401         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75402         (re_acquire_state, re_acquire_state_context, register_state):
75403         Likewise.
75404         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75405         search_cur_bkref_entry):
75406         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75407         (re_search_internal, re_search_2_stub, re_search_stub)
75408         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75409         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75410         (update_cur_sifted_state, check_dst_limits):
75411         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75412         (check_subexp_limits, sift_states_bkref, merge_state_array):
75413         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75414         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75415         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75416         (expand_bkref_cache, check_node_accept_bytes):
75417         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75418         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75419         (acquire_init_state_context, check_halt_node_context):
75420         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75421         (sift_states_backward, clean_state_log_if_needed):
75422         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75423         (find_recover_state, transit_state_sb, transit_state_mb):
75424         (transit_state_bkref, build_trtable, match_ctx_clean):
75425         Likewise.
75426         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75427         to work around an assumption that REG_MISSING is negative.
75428
75429         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75430         (seek_collating_symbol_entry) [defined _LIBC]:
75431         (lookup_collation_sequence_value) [defined _LIBC]:
75432         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75433         Use prototypes rather than old-style function definitions.
75434         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75435         (transit_state_sb) [0]:
75436         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75437
75438         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75439         rm_eo.
75440
75441         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75442         (optimize_subexps, lower_subexp):
75443         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75444         since the signed shift might overflow.  Use 1u<<31 instead.
75445         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75446         Likewise.
75447         * lib/regexec.c (check_dst_limits_calc_pos_1,
75448         check_subexp_matching_top): Likewise.
75449
75450         * lib/regcomp.c (optimize_subexps, lower_subexp):
75451         Use CHAR_BIT rather than 8, for clarity.
75452         * lib/regexec.c (check_dst_limits_calc_pos_1):
75453         (check_subexp_matching_top): Likewise.
75454         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75455         have to worry about portability issues when shifting it left.
75456         Remove no-longer-needed test for table_size > 0.
75457         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75458         in a word, as the resulting behavior is undefined.
75459         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75460         in one case, a <= should have been an <, and in another case the
75461         whole test was missing.
75462         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75463         the standard name CHAR_BIT.
75464         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75465         this is not true on one's complement and signed-magnitude hosts.
75466
75467         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75468         next_last_offset.
75469         (struct re_dfa_t): Remove unused member states_alloc.
75470         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75471
75472 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75473
75474         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75475         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75476         and large-file glibc and in 32-bit large-file Solaris.
75477
75478 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75479
75480         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75481         lengths fit in regoff_t; this isn't true if regoff_t is the same
75482         width as size_t.
75483         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75484         (= START + RANGE) instead of RANGE.  This avoids overflow
75485         problems when regoff_t is the same width as size_t.
75486         All callers changed.
75487         (re_search_2_stub): Check for overflow when adding the
75488         sizes of the two strings.
75489         (re_search_stub): Check for overflow when adding START
75490         to RANGE; if it occurs, substitute the extreme value.
75491
75492 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75493
75494         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75495
75496 2005-08-31  Jim Meyering  <jim@meyering.net>
75497
75498         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75499         a pointer-to-const.
75500         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75501         (register_state): Likewise.
75502         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75503         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75504         (group_nodes_into_DFAstates): Likewise.
75505
75506 2005-08-31  Jim Meyering  <jim@meyering.net>
75507
75508         * check-module: Add a FIXME comment.
75509
75510 2005-08-31  Eric Blake  <ebb9@byu.net>
75511
75512         * modules/unistd-safer (Files): Add unistd--.h.
75513         * modules/stdio-safer (Files): Add stdio--.h.
75514
75515 2005-08-31  Derek Price  <derek@ximbiot.com>
75516
75517         * lib/getdelim.c (getdelim): Return EOF on EOF.
75518         Reported by Larry Jones <lawrence.jones@ugs.com>.
75519
75520 2005-08-31  Bruno Haible  <bruno@clisp.org>
75521
75522         Avoid unnecessary diffs in the generated lib/Makefile.am.
75523         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75524         the generated files.
75525         (func_import): Don't set cmd.
75526
75527 2005-08-31  Bruno Haible  <bruno@clisp.org>
75528
75529         * lib/strstr.c: Include <stddef.h>, for NULL.
75530         * lib/strcasestr.c: Likewise.
75531         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75532
75533 2005-08-31  Bruno Haible  <bruno@clisp.org>
75534
75535         * gnulib-tool: New option --macro-prefix.
75536         (func_import): Use macro_prefix.
75537         (import): Handle option --macro-prefix.
75538
75539 2005-08-31  Bruno Haible  <bruno@clisp.org>
75540
75541         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75542         Also use new variables cached_lgpl, cached_libtool.
75543
75544 2005-08-31  Bruno Haible  <bruno@clisp.org>
75545
75546         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75547         always instantiating them.
75548
75549 2005-08-31  Bruno Haible  <bruno@clisp.org>
75550
75551         * gnulib-tool (func_import): Read the previous cached settings
75552         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75553         earlier added by gnulib but are now dropped. Warn when a gnulib file
75554         overwrites a non-gnulib file.
75555
75556 2005-08-31  Bruno Haible  <bruno@clisp.org>
75557
75558         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75559         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75560         projects that don't keep autogenerated files in CVS. Put into
75561         actioncmd only the specified modules, not the transitive closure.
75562
75563 2005-08-31  Bruno Haible  <bruno@clisp.org>
75564
75565         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75566         Create directories that shall be filled.
75567         (import): Don't look for gl_* macros in configure.ac. Recurse across
75568         all directories containing a gnulib-cache.m4 files, if meaningful.
75569
75570 2005-08-31  Bruno Haible  <bruno@clisp.org>
75571
75572         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75573         (import): Set seen_libtool when we see gl_LIBTOOL.
75574
75575 2005-08-31  Bruno Haible  <bruno@clisp.org>
75576
75577         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75578         declaration macro definitions from generated gnulib.m4.
75579
75580 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75581
75582         * lib/iconvme.h: Add prototype for iconv_alloc.
75583
75584 2005-08-29  Simon Josefsson  <jas@extundo.com>
75585
75586         * lib/iconvme.c: Fix errno.
75587
75588 2005-08-29  Bruno Haible  <bruno@clisp.org>
75589
75590         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75591         that it works when the directory contains spaces.
75592
75593 2005-08-29  Bruno Haible  <bruno@clisp.org>
75594
75595         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75596
75597 2005-08-29  Bruno Haible  <bruno@clisp.org>
75598
75599         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75600         Emit more advice.
75601
75602 2005-08-29  Bruno Haible  <bruno@clisp.org>
75603         and Stepan Kasal  <kasal@ucw.cz>
75604
75605         * check-module: If more parameters are given, check each of them
75606         separately; add more exceptions, as noted by Jim Meyering.
75607         (check_module): New procedure.
75608         (%exempt_header): Now contains all exceptions.
75609
75610 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75611
75612         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75613
75614 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75615
75616         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75617
75618 2005-08-28  Bruno Haible  <bruno@clisp.org>
75619
75620         * m4/gnulib-tool.m4: New file.
75621
75622 2005-08-27  Jim Meyering  <jim@meyering.net>
75623
75624         * modules/unistd-safer (Files): Add pipe-safer.c.
75625         * modules/fcntl-safer (Files): Add creat-safer.c.
75626
75627 2005-08-27  Jim Meyering  <jim@meyering.net>
75628
75629         * m4/stdlib-safer.m4: New file.  From coreutils.
75630         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75631         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75632         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75633         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75634         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75635
75636 2005-08-27  Jim Meyering  <jim@meyering.net>
75637
75638         * lib/fopen-safer.c: Merge minor changes from coreutils.
75639         * lib/dup-safer.c: Likewise.
75640         * lib/fd-safer.c: Likewise.
75641
75642         Merge from coreutils.
75643         * lib/stdio--.h: New file.
75644         * lib/stdlib--.h: New file.
75645         * lib/mkstemp-safer.c: New file.
75646
75647         GNU tar needs these.
75648         * lib/pipe-safer.c: New file.
75649         * lib/creat-safer.c: New file.
75650         * lib/fcntl--.h (creat): Define to creat_safer.
75651         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75652         * lib/unistd--.h (pipe): Define to pipe_safer.
75653         * lib/unistd-safer.h: Declare pipe_safer.
75654
75655 2005-08-26  Simon Josefsson  <jas@extundo.com>
75656
75657         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75658         Haible <bruno@clisp.org>.
75659
75660 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75661
75662         * lib/regex_internal.h: Remove all references to
75663         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75664         or better.
75665         (bitset_not, bitset_merge, bitset_not_merge):
75666         (bitset_mask, re_string_allocate, re_string_construct):
75667         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75668         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75669         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75670         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75671         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75672         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75673         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75674         (re_acquire_state_context):
75675         Remove unnecessary forward decls.
75676         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75677         Put __attribute at function definition,
75678         now that the function decl has been removed.
75679         * lib/regex_internal.c (re_string_peek_byte_case):
75680         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75681         Likewise.
75682
75683 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75684
75685         * m4/regex.m4: Add AC_PREREQ(2.50).
75686         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75687
75688 2005-08-25  Simon Josefsson  <jas@extundo.com>
75689
75690         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75691         __fsetlocking.
75692
75693 2005-08-25  Simon Josefsson  <jas@extundo.com>
75694
75695         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75696         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75697         GLIBC specific code.
75698
75699 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75700
75701         Make regex safe for g++.  This fixes one real bug (an "err"
75702         that should have been "*err").  g++ problem reported by
75703         Sam Steingold.
75704         * lib/regex_internal.h (re_calloc): New macro, consistent with
75705         re_malloc etc.  All callers of calloc changed to use re_calloc.
75706         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75707         not int.  All callers changed.
75708         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75709         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75710         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75711         (find_recover_state): Change "err" to "*err"; this fixes what
75712         appears to be a real bug.
75713         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75714         versus int.
75715
75716 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75717
75718         * modules/regex (Depends-on): Add malloc, since the code
75719         assumes that !malloc(0) means failure.
75720
75721 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75722
75723         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75724
75725         alloca modernization/simplification for regex.
75726         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75727         needs to be at the start of the file, and can be moved into
75728         regex_internal.h and simplified.
75729         * lib/regex_internal.h: Include <alloca.h>.
75730         (__libc_use_alloca) [!defined _LIBC]: New macro.
75731         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75732         now works outside glibc.
75733
75734 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75735
75736         * config/srclist.txt: Add glibc bugs 1241, 1245.
75737
75738 2005-08-25  Jim Meyering  <jim@meyering.net>
75739
75740         * lib/open-safer.c: Include <config.h>.
75741         Otherwise, we'd lose LARGEFILE support in any file using
75742         e.g. "fcntl--.h"
75743
75744 2005-08-25  Bruno Haible  <bruno@clisp.org>
75745
75746         * m4/minmax.m4: Require autoconf 2.52.
75747         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75748         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75749         alternatives of translit over the alphabet.
75750         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75751
75752 2005-08-24  Simon Josefsson  <jas@extundo.com>
75753
75754         * tests/test-getpass.c: New file.
75755
75756 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75757
75758         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75759         for GNU regex features.
75760
75761 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75762
75763         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75764         * lib/regex.h (regerror): Likewise.
75765
75766         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75767         requires this.  (The code never needed it.)
75768
75769         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75770         All uses of recently-renamed identifiers changed to use the new,
75771         POSIX-compliant names.  The code will build and run just fine
75772         without these changes, but it's better to eat our own dog food
75773         and use the standard-conforming names.
75774
75775         * lib/regex.h: Fix a multitude of POSIX name space violations.
75776         These changes have an effect only for programs that define
75777         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75778         do not change anything for programs compiled in the normal way.
75779         Also, there is no effect on the ABI.
75780
75781         (_REGEX_SOURCE): New macro.
75782         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75783         defined and _GNU_SOURCE is not; this fixes a name space violation.
75784
75785         Rename the following macros to obey POSIX requirements.
75786         The old names are still visible as macros if _REGEX_SOURCE is defined.
75787         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75788         RE_BACKSLASH_ESCAPE_IN_LISTS.
75789         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75790         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75791         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75792         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75793         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75794         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75795         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75796         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75797         (REG_INTERVALS): renamed from RE_INTERVALS.
75798         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75799         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75800         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75801         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75802         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75803         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75804         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75805         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75806         RE_UNMATCHED_RIGHT_PAREN_ORD.
75807         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75808         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75809         (REG_DEBUG): renamed from RE_DEBUG.
75810         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75811         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75812         unusual, since we can't clash with the POSIX REG_ICASE.
75813         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75814         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75815         (REG_NO_SUB): renamed from RE_NO_SUB.
75816         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75817         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75818         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75819         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75820         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75821         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75822         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75823         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75824         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75825         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75826         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75827         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75828         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75829         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75830         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75831         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75832         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75833         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75834         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75835         (REG_FIXED): Renamed from REGS_FIXED.
75836         (REG_NREGS): Renamed from RE_NREGS.
75837
75838         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75839         of other REG_* macros, since POSIX says the user is allowed to
75840         #undef these macros selectively.
75841
75842         (reg_errcode_t): Update comment stating what other tables need
75843         to be consistent.
75844
75845         Rename the following enum values to obey POSIX requirements.
75846         The old names are still visible as macros.
75847         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75848         is not defined, since GNU is supposed to be a superset of POSIX as
75849         much as possible, and since we want reg_errcode_t to be a signed
75850         type for implementation consistency.
75851         (_REG_NOERROR): Renamed from REG_NOERROR.
75852         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75853         (_REG_BADPAT): Renamed from REG_BADPAT.
75854         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75855         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75856         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75857         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75858         (_REG_EBRACK): Renamed from REG_EBRACK.
75859         (_REG_EPAREN): Renamed from REG_EPAREN.
75860         (_REG_EBRACE): Renamed from REG_EBRACE.
75861         (_REG_BADBR): Renamed from REG_BADBR.
75862         (_REG_ERANGE): Renamed from REG_ERANGE.
75863         (_REG_ESPACE): Renamed from REG_ESPACE.
75864         (_REG_BADRPT): Renamed from REG_BADRPT.
75865         (_REG_EEND): Renamed from REG_EEND.
75866         (_REG_ESIZE): Renamed from REG_ESIZE.
75867         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75868         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75869         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75870         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75871         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75872
75873         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75874         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75875         changed.  But support the old name if the new one is not defined
75876         and if _REGEX_SOURCE.
75877
75878         Change the following member names in struct re_pattern_buffer.
75879         The old names are still supported if !_REGEX_SOURCE.
75880         The new names are always supported, regardless of _REGEX_SOURCE.
75881         (re_buffer): Renamed from buffer.
75882         (re_allocated): Renamed from allocated.
75883         (re_used): Renamed from used.
75884         (re_syntax): Renamed from syntax.
75885         (re_fastmap): Renamed from fastmap.
75886         (re_translate): Renamed from translate.
75887         (re_can_be_null): Renamed from can_be_null.
75888         (re_regs_allocated): Renamed from regs_allocated.
75889         (re_fastmap_accurate): Renamed from fastmap_accurate.
75890         (re_no_sub): Renamed from no_sub.
75891         (re_not_bol): Renamed from not_bol.
75892         (re_not_eol): Renamed from not_eol.
75893         (re_newline_anchor): Renamed from newline_anchor.
75894
75895         Change the following member names in struct re_registers.
75896         The old names are still supported if !_REGEX_SOURCE.
75897         The new names are always supported, regardless of _REGEX_SOURCE.
75898         (rm_num_regs): Renamed from num_regs.
75899         (rm_start): Renamed from start.
75900         (rm_end): Renamed from end.
75901
75902         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75903         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75904         Prepend __ to parameter names.
75905
75906         Undo yesterday's changes.
75907
75908 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75909
75910         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75911         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75912         lib/regex.c.
75913
75914 2005-08-24  Jim Meyering  <jim@meyering.net>
75915
75916         Sync from coreutils.
75917         * m4/fcntl-safer.m4: New file.
75918
75919         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75920         and object files for this module.
75921
75922 2005-08-24  Jim Meyering  <jim@meyering.net>
75923
75924         Sync from coreutils.
75925         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75926
75927 2005-08-24  Jim Meyering  <jim@meyering.net>
75928
75929         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75930         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75931
75932 2005-08-24  Jim Meyering  <jim@meyering.net>
75933
75934         * modules/fcntl-safer: New module.
75935         * modules/fts (Depends-on): Add fcntl-safer.
75936         * MODULES.html.sh (File descriptor based Input/Output):
75937         Add fcntl-safer.
75938
75939 2005-08-24  Bruno Haible  <bruno@clisp.org>
75940
75941         Support for unit test modules.
75942         * modules/README: Mention tests modules.
75943         * modules/TEMPLATE-TESTS: New file.
75944         * gnulib-tool: New options --extract-tests-module, --with-tests and
75945         --tests-base (unused for the moment).
75946         (testsbase, inctests): New variables.
75947         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75948         (func_verify_module): Exclude TEMPLATE-TESTS.
75949         (func_verify_nontests_module, func_verify_tests_module): New functions.
75950         (func_get_dependencies): Add implicit dependency for tests modules.
75951         (func_get_tests_module): New function.
75952         (func_modules_transitive_closure): When --with-tests was specified,
75953         include the unit tests as well, unless explicitly avoided.
75954         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75955         (func_emit_tests_Makefile_am): New function.
75956         (func_create_testdir): When --with-tests was specified, emit a
75957         tests/ directory.
75958         * MODULES.html.sh (Future developments): Update.
75959
75960 2005-08-24  Bruno Haible  <bruno@clisp.org>
75961
75962         * modules/tls-tests: New file.
75963         * tests/test-tls.c: New file, from GNU gettext.
75964
75965 2005-08-24  Bruno Haible  <bruno@clisp.org>
75966
75967         * modules/lock-tests: New file.
75968         * tests/test-lock.c: New file, from GNU gettext.
75969
75970 2005-08-24  Bruno Haible  <bruno@clisp.org>
75971
75972         * lib/lock.h: Add multiple inclusion guard.
75973         * lib/tls.h: Add multiple inclusion guard.
75974
75975 2005-08-24  Bruno Haible  <bruno@clisp.org>
75976
75977         * gnulib-tool: Add support for the --aux-dir option to
75978         --create-testdir, --create-megatestdir, --test, --megatest.
75979         (func_create_testdir, func_create_megatestdir): Optionally emit a
75980         AC_CONFIG_AUX_DIR directive.
75981         (create-testdir, create-megatestdir, test, megatest): Provide a
75982         default value for $auxdir.
75983
75984 2005-08-24  Bruno Haible  <bruno@clisp.org>
75985
75986         * gnulib-tool (import): Use compound statement instead of subshell
75987         where possible.
75988
75989 2005-08-24  Bruno Haible  <bruno@clisp.org>
75990
75991         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75992
75993 2005-08-24  Bruno Haible  <bruno@clisp.org>
75994
75995         * gnulib-tool (func_version): Update.
75996
75997 2005-08-24  Bruno Haible  <bruno@clisp.org>
75998
75999         * gnulib-tool (func_import, func_create_testdir,
76000         func_create_megatestdir): Quote all autoconf macro arguments.
76001
76002 2005-08-24  Bruno Haible  <bruno@clisp.org>
76003
76004         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76005         option --force, because --force causes the aclocal.m4 of each
76006         subdirectory to be newer than the corresponding config.h.in.
76007
76008 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76009
76010         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76011         All contents moved to gl_REGEX.
76012         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76013         assume that it does.
76014
76015 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         * lib/regex.h (REG_NOSYS)
76018         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76019         Define, since POSIX requires it as of 2001.
76020         (_REG_ENOSYS)
76021         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76022         New private symbol, used to keep the enum signed in all cases.
76023         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76024         Youngman in
76025         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76026
76027         * lib/regex_internal.c (re_string_skip_chars, register_state):
76028         (calc_state_hash):
76029         Remove forward decls; no longer needed now that we use prototypes.
76030         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76031         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76032         (clean_state_log_if_needed): Likewise.
76033
76034 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76035
76036         * config/srclist.txt: Add glibc bugs 1231-1233.
76037
76038 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76039
76040         Fix problems reported by Sam Steingold in
76041         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76042         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76043         assumed that reg_errcode_t is a signed type, which is not
76044         necessarily true if _XOPEN_SOURCE is not defined.
76045         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76046         since some compilers warn about it otherwise.
76047
76048 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76049
76050         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76051         (init_word_char, create_initial_state, duplicate_node_closure):
76052         (fetch_token, peek_token_bracket, build_range_exp):
76053         (build_collating_symbol): Remove forward decls; no longer needed
76054         now that we use prototypes.
76055
76056         * lib/regcomp.c:
76057         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76058         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76059         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76060         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76061         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76062         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76063         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76064         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76065         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76066         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76067         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76068         (build_charclass, build_charclass_op, fetch_number, create_tree):
76069         (create_token_tree, mark_opt_subexp, duplicate_tree):
76070         Use prototypes rather than old-style definitions.
76071
76072         * lib/regex_internal.c:
76073         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76074         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76075         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76076         (re_string_reconstruct, re_string_peek_byte_case):
76077         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76078         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76079         (re_node_set_init_copy, re_node_set_add_intersect):
76080         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76081         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76082         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76083         (re_acquire_state, re_acquire_state_context, register_state):
76084         (create_ci_newstate, create_cd_newstate, free_state):
76085         Likewise.
76086         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76087         re_search_2):
76088         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76089         (re_search_internal, prune_impossible_nodes):
76090         (acquire_init_state_context, check_matching, static):
76091         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76092         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76093         (update_regs, sift_states_backward, build_sifted_states):
76094         (clean_state_log_if_needed, merge_state_array):
76095         (update_cur_sifted_state, add_epsilon_src_nodes):
76096         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76097         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76098         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76099         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76100         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76101         (check_arrival, check_arrival_add_next_nodes):
76102         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76103         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76104         (check_node_accept_bytes, check_node_accept, extend_buffers):
76105         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76106         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76107         (sift_ctx_init):
76108         Likewise.
76109
76110         * lib/regex_internal.h:
76111         (re_string_allocate, re_string_construct, re_string_reconstruct):
76112         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76113         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76114         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76115         (re_string_context_at, re_string_peek_byte_case):
76116         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76117         is defined, since we now use prototypes always.
76118
76119         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76120         C89 or better.  All uses removed.
76121
76122 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76123
76124         * config/srclist.txt: Add glibc bugs 1220-1227.
76125
76126 2005-08-20  Jim Meyering  <jim@meyering.net>
76127
76128         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76129         of unused local, dfa.
76130
76131 2005-08-20  Bruno Haible  <bruno@clisp.org>
76132
76133         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76134
76135 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76136
76137         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76138         (re_node_set_insert_last, re_dfa_add_node):
76139         Rename local variables to avoid GCC shadowing warnings.
76140
76141 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76142
76143         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76144         [defined lint]: Suppress bogus uninitialized-variable warnings.
76145
76146         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76147         and let the caller return REG_ESPACE if out of space.  This
76148         removes an uninitialied-variable warning with GCC 4.0.1, and also
76149         avoids taking the address of a local variable.  All callers
76150         changed.
76151
76152 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76155         $LIBCSRC/posix/regexec.c.
76156         Add glibc bug 1217 for regcomp.c.
76157
76158 2005-08-19  Jim Meyering  <jim@meyering.net>
76159
76160         * lib/regexec.c (proceed_next_node): Redo local variables to
76161         avoid GCC shadowing warnings.
76162
76163 2005-08-18  Bruno Haible  <bruno@clisp.org>
76164
76165         * lib/strstr.c (strstr): Fix return value in multibyte case.
76166         * lib/strcasestr.c (strcasestr): Likewise.
76167
76168 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76169
76170         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76171
76172 2005-08-17  Jim Meyering  <jim@meyering.net>
76173
76174         Make the %s format (seconds since the epoch) work for a negative
76175         number and when used with a zero-padded field width, e.g. %015s.
76176
76177         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76178         label so that it precedes the code to set `digits'.  Otherwise,
76179         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76180         print `00-22'.  Now, it prints `-0022', as it should.
76181
76182 2005-08-17  Bruno Haible  <bruno@clisp.org>
76183
76184         * modules/strstr (Files): Add m4/mbrtowc.m4.
76185         (Depends-on): Add mbuiter.
76186
76187 2005-08-17  Bruno Haible  <bruno@clisp.org>
76188
76189         * modules/strcasestr: New file.
76190         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76191         strcasestr.
76192
76193 2005-08-17  Bruno Haible  <bruno@clisp.org>
76194
76195         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76196
76197 2005-08-17  Bruno Haible  <bruno@clisp.org>
76198
76199         * modules/mbuiter: New file.
76200         * MODULES.html.sh (Extended multibyte and wide character utilities):
76201         Add mbuiter.
76202
76203 2005-08-17  Bruno Haible  <bruno@clisp.org>
76204
76205         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76206         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76207
76208 2005-08-17  Bruno Haible  <bruno@clisp.org>
76209
76210         * m4/strcasestr.m4: New file.
76211
76212 2005-08-17  Bruno Haible  <bruno@clisp.org>
76213
76214         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76215         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76216
76217 2005-08-17  Bruno Haible  <bruno@clisp.org>
76218
76219         * lib/strcasestr.h: New file.
76220         * lib/strcasestr.c: New file.
76221
76222 2005-08-17  Bruno Haible  <bruno@clisp.org>
76223
76224         * lib/strcasecmp.c: Use mbuiter.h.
76225
76226 2005-08-17  Bruno Haible  <bruno@clisp.org>
76227
76228         * lib/mbuiter.h: New file.
76229
76230 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76231
76232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76233         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76234         and gl_GETOPT are both invoked via different paths (as happens
76235         with GNU tar CVS because it uses both argp and getopt), the former
76236         wins.
76237
76238 2005-08-16  Bruno Haible  <bruno@clisp.org>
76239
76240         * modules/tls: New file.
76241         * MODULES.html.sh (Multithreading): Add tls.
76242
76243 2005-08-16  Bruno Haible  <bruno@clisp.org>
76244
76245         * modules/strnlen1: New file.
76246         * MODULES.html.sh (String handling): Add strnlen1.
76247
76248 2005-08-16  Bruno Haible  <bruno@clisp.org>
76249
76250         * modules/strcase (Files): Add m4/mbrtowc.m4.
76251         (Depends-on): Add strnlen1, mbchar.
76252
76253 2005-08-16  Bruno Haible  <bruno@clisp.org>
76254
76255         * modules/mbiter: New file.
76256         * MODULES.html.sh (Extended multibyte and wide character utilities):
76257         Add mbiter.
76258
76259 2005-08-16  Bruno Haible  <bruno@clisp.org>
76260
76261         * modules/mbfile: New file.
76262         * MODULES.html.sh (Extended multibyte and wide character utilities):
76263         Add mbfile.
76264
76265 2005-08-16  Bruno Haible  <bruno@clisp.org>
76266
76267         * modules/mbchar: New file.
76268         * MODULES.html.sh (Extended multibyte and wide character utilities):
76269         New section.
76270
76271 2005-08-16  Bruno Haible  <bruno@clisp.org>
76272
76273         * m4/tls.m4: New file, from GNU gettext.
76274
76275 2005-08-16  Bruno Haible  <bruno@clisp.org>
76276
76277         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76278         always.
76279         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76280
76281 2005-08-16  Bruno Haible  <bruno@clisp.org>
76282
76283         * m4/mbiter.m4: New file.
76284
76285 2005-08-16  Bruno Haible  <bruno@clisp.org>
76286
76287         * m4/mbfile.m4: New file.
76288
76289 2005-08-16  Bruno Haible  <bruno@clisp.org>
76290
76291         * m4/mbchar.m4: New file.
76292
76293 2005-08-16  Bruno Haible  <bruno@clisp.org>
76294
76295         * lib/tls.h: New file, from GNU gettext.
76296         * lib/tls.c: New file, from GNU gettext.
76297
76298 2005-08-16  Bruno Haible  <bruno@clisp.org>
76299
76300         * lib/strnlen1.h: New file.
76301         * lib/strnlen1.c: New file.
76302
76303 2005-08-16  Bruno Haible  <bruno@clisp.org>
76304
76305         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76306         (mbi_init): Update.
76307         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76308         NUL byte, not after it.
76309
76310 2005-08-16  Bruno Haible  <bruno@clisp.org>
76311
76312         * lib/strcase.h (strcasecmp): Add note in comments.
76313         * lib/strncasecmp.c: Use code from strcasecmp.c.
76314         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76315         (strcasecmp): Work correctly in multibyte locales.
76316
76317 2005-08-16  Bruno Haible  <bruno@clisp.org>
76318
76319         * lib/mbiter.h: New file.
76320
76321 2005-08-16  Bruno Haible  <bruno@clisp.org>
76322
76323         * lib/mbfile.h: New file.
76324
76325 2005-08-16  Bruno Haible  <bruno@clisp.org>
76326
76327         * lib/mbchar.h: New file.
76328         * lib/mbchar.c: New file.
76329
76330 2005-08-16  Bruno Haible  <bruno@clisp.org>
76331
76332         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76333         the valid ones. Makes the comparison operations transitive:
76334         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76335         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76336
76337 2005-08-15  Simon Josefsson  <jas@extundo.com>
76338
76339         * modules/ssize_t (License): Change to 'unlimited'.
76340
76341         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76342
76343 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76346         Add comments for each pending glibc patch.
76347
76348 2005-08-15  Bruno Haible  <bruno@clisp.org>
76349
76350         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76351         __cplusplus is defined.
76352
76353 2005-08-14  Jim Meyering  <jim@meyering.net>
76354
76355         Sync from coreutils.
76356
76357         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76358         Use the hash-table-based cycle-detection code not just when
76359         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76360         Reported by James Youngman in
76361         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76362         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76363         FTS_TIGHT_CYCLE_CHECK.
76364         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76365         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76366         once again.
76367         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76368         * lib/fts.c (fd_safer): Remove decl.
76369         Include fcntl--.h rather than unistd-safer.h
76370         (fts_safe_changedir): Don't call fd_safer; no longer needed
76371         now that we include fcntl--.h.
76372
76373 2005-08-12  Simon Josefsson  <jas@extundo.com>
76374
76375         * modules/getndelim2: Use ssize_t module.
76376         * modules/getnline: Likewise.
76377         * modules/safe-read: Likewise.
76378         * modules/xreadlink: Likewise.
76379
76380         * modules/ssize_t: New file.
76381
76382 2005-08-12  Simon Josefsson  <jas@extundo.com>
76383
76384         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76385
76386 2005-08-12  Simon Josefsson  <jas@extundo.com>
76387
76388         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76389         ssize_t.
76390
76391 2005-08-12  Simon Josefsson  <jas@extundo.com>
76392
76393         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76394         readline, getdelim and check_version.
76395         (Support for systems lacking ISO C 99: Sizes of integer types):
76396         Add size_max.
76397
76398 2005-08-12  Bruno Haible  <bruno@clisp.org>
76399
76400         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76401
76402 2005-08-11  Simon Josefsson  <jas@extundo.com>
76403
76404         * modules/readline: New file.
76405
76406         * modules/strnlen (Files): Add strnlen.h.
76407
76408 2005-08-11  Simon Josefsson  <jas@extundo.com>
76409
76410         * m4/readline.m4: New file.
76411
76412 2005-08-11  Simon Josefsson  <jas@extundo.com>
76413
76414         * lib/readline.h, readline.c: New file.
76415
76416 2005-08-11  Simon Josefsson  <jas@extundo.com>
76417
76418         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76419         gl_AVOID.
76420
76421 2005-08-11  Bruno Haible  <bruno@clisp.org>
76422
76423         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76424
76425 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76426
76427         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76428
76429 2005-08-10  Simon Josefsson  <jas@extundo.com>
76430
76431         * tests/test-iconvme.c: New file.
76432
76433 2005-08-10  Simon Josefsson  <jas@extundo.com>
76434
76435         * m4/strnlen.m4: New file.
76436
76437         * m4/strndup.m4: Don't check for strnlen declaration, done in
76438         strnlen.m4.
76439
76440 2005-08-10  Simon Josefsson  <jas@extundo.com>
76441
76442         * lib/strndup.c: Use strnlen.h.
76443
76444         * lib/strnlen.h: New file.
76445
76446 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76447
76448         * README: Typos.
76449
76450 2005-08-02  Simon Josefsson  <jas@extundo.com>
76451
76452         * modules/readline: New file.
76453
76454 2005-08-02  Simon Josefsson  <jas@extundo.com>
76455
76456         * modules/getdelim: New file.
76457
76458         * modules/getline: Rewrite, don't use getndelim2.
76459
76460 2005-08-02  Simon Josefsson  <jas@extundo.com>
76461
76462         * m4/getline.m4: Separate out getdelim stuff into separate module.
76463
76464         * m4/getdelim.m4: New file.
76465
76466 2005-08-02  Simon Josefsson  <jas@extundo.com>
76467
76468         * lib/getline.h, getline.c: Rewrite.
76469
76470         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76471
76472 2005-07-31  Bruno Haible  <bruno@clisp.org>
76473
76474         * lib/lock.h (gl_lock_initializer): New macro.
76475         (gl_lock_define_initialized): Use it.
76476         (gl_rwlock_initializer): New macro.
76477         (gl_rwlock_define_initialized): Use it.
76478         (gl_recursive_lock_initializer): New macro.
76479         (gl_recursive_lock_define_initialized): Use it.
76480
76481 2005-07-30  Karl Berry  <karl@gnu.org>
76482
76483         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76484         Report from Ben Pfaff, regarding getopt.
76485
76486 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76487
76488         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76489         normal way.
76490         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76491         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76492         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76493         (gl_GETOPT): Use the new macros.  Most of the implementation
76494         is moved to the new macros.  This is for programs like Emacs
76495         that don't want all the functionality of gl_GETOPT.
76496
76497 2005-07-26  Bruno Haible  <bruno@clisp.org>
76498
76499         * m4/lock.m4: Update from GNU gettext.
76500
76501 2005-07-26  Bruno Haible  <bruno@clisp.org>
76502
76503         * lib/lock.h: Update from GNU gettext.
76504         * lib/lock.c: Update from GNU gettext.
76505
76506 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76507
76508         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76509         obsolescent AC_TRY_RUN.  Include the default includes files, for
76510         'exit'.
76511
76512 2005-07-24  Bruno Haible  <bruno@clisp.org>
76513
76514         * modules/visibility: New file.
76515         * MODULES.html.sh (Misc): Add visibility.
76516
76517 2005-07-24  Bruno Haible  <bruno@clisp.org>
76518
76519         * m4/visibility.m4: New file.
76520
76521 2005-07-24  Bruno Haible  <bruno@clisp.org>
76522
76523         * doc/visibility.texi: New file.
76524
76525 2005-07-22  Bruno Haible  <bruno@clisp.org>
76526
76527         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76528         $(ALLOCA_H), redundant through BUILT_SOURCES.
76529         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76530         redundant through BUILT_SOURCES.
76531         * modules/byteswap (Makefile.am): Remove explicit dependency on
76532         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76533         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76534         $(FNMATCH_H), redundant through BUILT_SOURCES.
76535         * modules/getopt (Makefile.am): Remove explicit dependency on
76536         $(GETOPT_H), redundant through BUILT_SOURCES.
76537         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76538         redundant through BUILT_SOURCES.
76539         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76540         redundant through BUILT_SOURCES.
76541         * modules/stdbool (Makefile.am): Remove explicit dependency on
76542         $(STDBOOL_H), redundant through BUILT_SOURCES.
76543         * modules/stdint (Makefile.am): Remove explicit dependency on
76544         $(STDINT_H), redundant through BUILT_SOURCES.
76545         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76546         Remove explicit dependency on $(SYSEXITS_H).
76547         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76548
76549 2005-07-18  Simon Josefsson  <jas@extundo.com>
76550
76551         * lib/check-version.c (check_version): Accept identical versions too.
76552
76553 2005-07-18  Bruno Haible  <bruno@clisp.org>
76554
76555         * modules/lock: New file.
76556         * MODULES.html.sh (Multithreading): New section.
76557
76558 2005-07-18  Bruno Haible  <bruno@clisp.org>
76559
76560         * m4/lock.m4: New file, from GNU gettext.
76561
76562 2005-07-18  Bruno Haible  <bruno@clisp.org>
76563
76564         * lib/lock.h: New file, from GNU gettext.
76565         * lib/lock.c: New file, from GNU gettext.
76566
76567 2005-07-18  Bruno Haible  <bruno@clisp.org>
76568
76569         * lib/lock.h (gl_once_t): New type.
76570         (gl_once_define, gl_once): New macros.
76571         * lib/lock.c (fresh_once): New variable.
76572         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76573         functions.
76574
76575 2005-07-16  Simon Josefsson  <jas@extundo.com>
76576
76577         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76578         workaround, suggested by Bruno.
76579
76580 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76581
76582         * modules/xalloc (Depends-on): Add xalloc-die.
76583         * modules/xvasprintf (Depends-on): Add xalloc-die.
76584
76585 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76586
76587         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76588         with a minor change.
76589
76590 2005-07-15  Bruno Haible  <bruno@clisp.org>
76591
76592         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76593         When using lib/poll.c, define poll as rpl_poll.
76594
76595 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76596
76597         * modules/argp (Depends-on): Remove unlocked-io.
76598
76599 2005-07-14  Derek Price  <derek@ximbiot.com>
76600
76601         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76602         for glob symlink bug.
76603
76604 2005-07-14  Bruno Haible  <bruno@clisp.org>
76605
76606         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76607         Instead, test for *_unlocked function declarations directly.
76608
76609 2005-07-11  Simon Josefsson  <jas@extundo.com>
76610
76611         * modules/size_max: New file.
76612
76613         * modules/xsize: Depend on size_max module for size_max.m4.
76614
76615 2005-07-11  Simon Josefsson  <jas@extundo.com>
76616
76617         * lib/size_max.h: New file.
76618
76619 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76620
76621         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76622         copyright symbol and the year.
76623         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76624         (version_etc_va): Use parameterized copyright notice.
76625         Reword to conform to the current GNU coding standards.
76626
76627 2005-07-11  Karl Berry  <karl@gnu.org>
76628
76629         * doc/gnulib.texi (Quoting): new node.
76630         (Initial import): more info, from Patrice.
76631
76632 2005-07-11  Bruno Haible  <bruno@clisp.org>
76633
76634         * gnulib-tool (func_usage): Document option --avoid.
76635         (Command line options): Handle --avoid.
76636         (func_acceptable): New function.
76637         (func_modules_transitive_closure): Use it.
76638
76639 2005-07-11  Bruno Haible  <bruno@clisp.org>
76640
76641         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76642         Reported by Jim Meyering.
76643
76644 2005-07-10  Bruno Haible  <bruno@clisp.org>
76645
76646         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76647         Needed when size_t is smaller than 'unsigned int'.
76648         Reported by Paul Eggert.
76649
76650 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76651
76652         * modules/argp (Depends-on): Add unlocked-io
76653
76654 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76655
76656         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76657         block of defines.
76658
76659 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76660
76661         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76662         fix now.
76663
76664 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76665         and Paul Eggert  <eggert@cs.ucla.edu>
76666
76667         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76668         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76669
76670 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76671
76672         * modules/regex (Files): Add lib/regex_internal.c,
76673         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76674         (Depends-on): Add extensions.
76675         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76676
76677 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76678
76679         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76680         pathconf.
76681         * m4/same.m4 (gl_SAME): Likewise.
76682         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76683
76684         * m4/regex.m4: Adjust to new libc regex implementation.
76685         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76686         all the .c and .h parts of (the new) regex.
76687         Quote the m4 stuff better.
76688         Check for RE_ICASE bug of old gnulib.
76689         Check for REG_STARTEND of recent libc.
76690         Rename local variables from jm_* to gl_*.
76691         Quote operand of "test -f".
76692         Say "recent enough" version of libc, not "version 2".
76693         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76694         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76695         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76696         Remove check for btowc, isascii.
76697         Require AM_LANGINFO_CODESET.
76698
76699 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76700
76701         * lib/regex.c, regex.h: Sync from libc.
76702         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76703         * lib/regexec.c:
76704         New files, synced from libc, except that regex_internal.h
76705         currently has a small porting fix.
76706
76707 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76708
76709         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76710         regex_internal.c, regexec.c.
76711         Add regex_internal.h too, but as a comment, since the libc version
76712         is currently broken in gnulib mode.
76713
76714 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76715
76716         Support programs like Emacs that use gnulib but not gettext.
76717         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76718         * modules/gettext-h: New file.
76719         * modules/gettext (Files): Remove lib/gettext.h.
76720         (Depends-on): Add gettext-h.
76721         (Makefile.am): Remove lib_SOURCES.
76722         * modules/argmatch, modules/c-stack, modules/closeout:
76723         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76724         * modules/execute, modules/file-type, modules/getaddrinfo:
76725         * modules/getopt, modules/human, modules/javacomp:
76726         * modules/javaexec, modules/mkdir-p, modules/obstack:
76727         * modules/openat, modules/pagealign_alloc, modules/pipe:
76728         * modules/quotearg, modules/regex, modules/rpmatch:
76729         * modules/unicodeio, modules/userspec, modules/version-etc:
76730         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76731         * modules/xsetenv:
76732         Depend on gettext-h, not gettext.
76733
76734 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         * gnulib-tool (func_import): Add support for 'public domain' license.
76737         * modules/alloca, modules/atexit, modules/memmove:
76738         Now public domain, not GPL.
76739         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76740         * modules/realloc, modules/strerror, modules/strtod:
76741         Now LGPL, not GPL.
76742
76743 2005-07-05  Bruno Haible  <bruno@clisp.org>
76744
76745         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76746         autoconf CVS. Needed for mingw.
76747
76748 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76749
76750         Remove the dependency of the strftime module on the tzset module.
76751         * modules/strftime (Depends-on): Remove dependency on tzset.
76752
76753 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76754
76755         Remove the dependency of the strftime module on the tzset module.
76756         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76757         gl_FUNC_TZSET_CLOBBER.
76758
76759 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76760
76761         Remove the dependency of the strftime module on the tzset module.
76762         * lib/strftime.c (my_strftime)
76763         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76764         Copy the input structure, to work around some of the bug with
76765         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76766         Solaris releases, you should also use the tzset module, but we won't
76767         require it as a dependency any more since we don't want LGPLed code
76768         to depend on GPLed code.
76769
76770 2005-07-02  Jim Meyering  <jim@meyering.net>
76771
76772         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76773         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76774         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76775         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76776
76777 2005-07-02  Jim Meyering  <jim@meyering.net>
76778
76779         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76780
76781 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76782
76783         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76784         declares only 'struct timespec;' (!).
76785
76786 2005-07-01  Jim Meyering  <jim@meyering.net>
76787
76788         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76789         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76790         * lib/save-cwd.c, tempname.c:
76791         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76792         and don't include <sys/file.h>).
76793
76794 2005-06-29  Jim Meyering  <jim@meyering.net>
76795
76796         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76797         type name.  Use the variable name instead.
76798         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76799         Likewise.
76800
76801 2005-06-28  Simon Josefsson  <jas@extundo.com>
76802
76803         * modules/check-version (Files): Add check-version.m4.
76804
76805 2005-06-28  Simon Josefsson  <jas@extundo.com>
76806
76807         * m4/check-version.m4: New file, suggested by Jim Meyering
76808         <jim@meyering.net>.
76809
76810 2005-06-28  Simon Josefsson  <jas@extundo.com>
76811
76812         * lib/check-version.h, lib/check-version.c: New files.
76813
76814 2005-06-28  Simon Josefsson  <jas@extundo.com>
76815
76816         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76817         collision with global variable.  Better indentation.  Don't
76818         increment buffer pointer beyond buffer end.  Based on comments
76819         from Paul Eggert <eggert@cs.ucla.edu>.
76820
76821         * lib/base64.h: Indent.
76822
76823 2005-06-28  Simon Josefsson  <jas@extundo.com>
76824
76825         * doc/gnulib.texi (Library version handling): New section.
76826
76827 2005-06-28  Jim Meyering  <jim@meyering.net>
76828
76829         * check-module (find_included_lib_files): Hard-code another
76830         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76831         but modules/fts-lgpl (correctly) does not list those files.
76832
76833         * modules/canonicalize (Files): Add lib/pathmax.h.
76834
76835 2005-06-25  Simon Josefsson  <jas@extundo.com>
76836
76837         * modules/check-version: New file.
76838
76839 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76840
76841         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76842         initializer of struct addrinfo, as an indication that we don't
76843         care how many members the structure has.
76844
76845 2005-06-24  Derek Price  <derek@ximbiot.com>
76846         and Bruno Haible  <bruno@clisp.org>
76847
76848         Remove stat module & update lstat.
76849         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76850         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76851         * m4/stat.m4: Remove this file.
76852
76853 2005-06-24  Derek Price  <derek@ximbiot.com>
76854         and Bruno Haible  <bruno@clisp.org>
76855
76856         Remove stat module & update lstat.
76857         * lib/stat.c: Remove this file...
76858         (slash_aware_lstat): ...moving this content and its support...
76859         * lib/lstat.c (rpl_lstat): ...into here.
76860         * lib/lstat.h: New file.
76861
76862 2005-06-24  Derek Price  <derek@ximbiot.com>
76863         and Bruno Haible  <bruno@clisp.org>
76864
76865         Remove stat module & update lstat.
76866         * config/srclist.txt (libc sources): Remove stat.
76867
76868 2005-06-24  Derek Price  <derek@ximbiot.com>
76869         and Bruno Haible  <bruno@clisp.org>
76870
76871         Remove stat module & update lstat.
76872         * MODULES.html.sh (stat): Remove.
76873         * MODULES.html: Regenerated.
76874         * modules/lstat (Description): Correct function name.
76875         (Files): Add "lstat.h".
76876         (Depends-on): Remove stat, add xalloc, stat-macros.
76877         * modules/stat: Remove this file.
76878         (Include): Add "lstat.h", remove <sys/stat.h>.
76879
76880 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76881
76882         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76883         (ranged_convert): Don't save conversion in a temporary struct.
76884         This causes a warning with GCC 4.0.0, and anyway in the typical
76885         case it's not worth the extra 100 bytes or so of code.
76886         (ranged_convert, __mktime_internal): When calling a function via a
76887         pointer P, use P () rather than (*P) (), as we now assume C89 or
76888         better.
76889
76890 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76891
76892         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76893         "who -r" failed to give output.  Problem reported by Tim Waugh.
76894
76895         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76896         (xcalloc): Use it to avoid needless tests.
76897         Problem reported by Jim Meyering.
76898
76899 2005-06-20  Derek Price  <derek@ximbiot.com>
76900
76901         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76902         unnecessary for Autoconfs > 2.59c.
76903
76904 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76905
76906         * lib/argp.h (__option_is_short): Check upper limit of
76907         __key. Isprint() requires its argument to have the value
76908         of an unsigned char or EOF.
76909
76910 2005-06-16  Jim Meyering  <jim@meyering.net>
76911
76912         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76913         when either N or S is zero.
76914
76915 2005-06-16  Derek Price  <derek@ximbiot.com>
76916
76917         * m4/bison.m4: Declare YACC & YFLAGS precious.
76918
76919 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76920
76921         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76922         multibyte string or pattern, fall back on unibyte matching.
76923         Problem reported by James Youngman.
76924
76925 2005-06-08  Bruno Haible  <bruno@clisp.org>
76926
76927         * modules/csharpcomp: New file.
76928         * MODULES.html.sh (C#): Add csharpcomp.
76929
76930 2005-06-08  Bruno Haible  <bruno@clisp.org>
76931
76932         * m4/csharpcomp.m4: New file, from GNU gettext.
76933
76934 2005-06-08  Bruno Haible  <bruno@clisp.org>
76935
76936         * lib/csharpcomp.h: New file, from GNU gettext.
76937         * lib/csharpcomp.c: New file, from GNU gettext.
76938         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76939
76940 2005-06-08  Bruno Haible  <bruno@clisp.org>
76941
76942         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76943         warning on mingw.
76944
76945 2005-06-07  Derek Price  <derek@ximbiot.com>
76946
76947         Sync from CVS.
76948         * lib/glob_.h: Indent nested #ifdef.
76949
76950 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76951
76952         Sync from coreutils.
76953         Use "file name" when talking about file names, instead of "filename"
76954         or "path", as per the GNU coding standards.
76955         * lib/mkdir-p.c: Renamed from makepath.c.
76956         (make_dir_parents): Renamed from make_path.  All callers changed.
76957         * lib/mkdir-p.h: Likewise.  All includers changed.
76958         * lib/filenamecat.c: Renamed from path-concat.c.
76959         (file_name_concat): Renamed from path_concat.  All callers changed.
76960         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76961         * lib/filenamecat.h: Likewise.  All includers changed.
76962         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76963         in comments or local variable names.
76964         * lib/basename.c: Likewise.
76965         * lib/canonicalize.c, canonicalize.h: Likewise.
76966         * lib/dirname.c, dirname.h: Likewise.
76967         * lib/euidaccess.c: Likewise.
76968         * lib/exclude.c: Likewise
76969         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76970         * lib/fsusage.c, fsuage.h: Likewise.
76971         * lib/fts.c, fts_.h: Likewise.
76972         * lib/getcwd.c: Likewise.
76973         * lib/getloadavg.c: Likewise.
76974         * lib/mkstemp.c: Likewise.
76975         * lib/mountlist.c, mountlist.h: Likewise.
76976         * lib/openat.c, openat.h: Likewise.
76977         * lib/readlink-stub.c: Likewise.
76978         * lib/readutmp.c, readutmp.h: Likewise.
76979         * lib/rename.c: Likewise.
76980         * lib/rmdir.c: Likewise.
76981         * lib/same.c: Likewise.
76982         * lib/savedir.c: Likewise.
76983         * lib/stripslash.c: Likewise.
76984         * lib/tempname.c: Likewise.
76985         * lib/xreadlink.c: Likewise.
76986         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76987         All uses changed.
76988         * lib/exclude.h: Likewise.
76989
76990         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76991         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76992         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76993         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76994         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76995         files have been getting away with it for years (MORE/BSD 4.3
76996         is extinct now).
76997         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76998         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76999
77000         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77001         Define to 256, not 255, as per modern POSIX.
77002
77003 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77004
77005         Sync from coreutils.
77006         Use "file name" when talking about file names, instead of "filename"
77007         or "path", as per the GNU coding standards.
77008         * MODULES.html.sh: mkdir-p renamed from makepath.
77009         filenamecat renamed from path-concat.
77010         * modules/filenamecat: Renamed from modules/path-concat.
77011         (Files): filenamecat.h and filenamecat.c renamed from
77012         path-concat.h and path-concat.c.
77013         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77014         (Include): filenamecat.h, not path-concat.h.
77015         * modules/mkdir-p: Renamed from modules/makepath.
77016         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77017         makepath.c.
77018         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77019         (Include): mkdir-p.h, not makepath.h.
77020
77021 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77022
77023         Sync from coreutils.
77024         * m4/mkdir-p.m4: Renamed from makepath.m4.
77025         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77026         Rename files from makepath.c to mkdir-p.c, and from
77027         makepath.h to mkdir-p.h.
77028         * m4/filenamecat.m4: Renamed from path-concat.m4.
77029         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77030         Rename files from path-concat.c to filenamecat.c,
77031         and from path-concat.h to filenamecat.h.
77032         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77033         "file name" in local variables or comments.
77034         * m4/rename.m4: Likewise.
77035
77036 2005-06-01  Bruno Haible  <bruno@clisp.org>
77037
77038         * modules/csharpexec: New file.
77039         * MODULES.html.sh (C#): New section.
77040
77041 2005-06-01  Bruno Haible  <bruno@clisp.org>
77042
77043         * m4/csharp.m4: New file, from GNU gettext.
77044         * m4/csharpexec.m4: New file, from GNU gettext.
77045
77046 2005-06-01  Bruno Haible  <bruno@clisp.org>
77047
77048         * lib/csharpexec.h: New file, from GNU gettext.
77049         * lib/csharpexec.c: New file, from GNU gettext.
77050         * lib/csharpexec.sh.in: New file, from GNU gettext.
77051
77052 2005-05-31  Derek Price  <derek@ximbiot.com>
77053             Paul Eggert  <eggert@cs.ucla.edu>
77054
77055         Sync from cvs.
77056         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77057
77058 2005-05-31  Derek Price  <derek@ximbiot.com>
77059             Paul Eggert  <eggert@cs.ucla.edu>
77060
77061         Sync from cvs.
77062         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77063
77064 2005-05-29  Derek Price  <derek@ximbiot.com>
77065
77066         * config/srclist.txt (glob_.h, glob.c): Add these files.
77067
77068 2005-05-29  Derek Price  <derek@ximbiot.com>
77069
77070         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77071         * modules/glob: New file.
77072         * modules/getlogin_r: Add link to POSIX spec in description.
77073
77074 2005-05-29  Derek Price  <derek@ximbiot.com>
77075             Paul Eggert  <eggert@cs.ucla.edu>
77076
77077         * m4/glob.m4: New file.
77078
77079 2005-05-29  Derek Price  <derek@ximbiot.com>
77080             Paul Eggert  <eggert@cs.ucla.edu>
77081
77082         * lib/glob_.h, lib/glob.c: New files.
77083
77084 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77085
77086         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77087         * modules/fts-lgpl (Depends-on): Remove gettext.
77088
77089 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77090
77091         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77092         and don't require gt_INTTYPES_PRI.
77093
77094 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77097
77098         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77099         the configuration hassle isn't worth it.
77100         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77101         (LONGEST_MODIFIER, PRIuMAX): Remove.
77102
77103 2005-05-27  Bruno Haible  <bruno@clisp.org>
77104
77105         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77106
77107 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77110         _POSIX_PTHREAD_SEMANTICS for Solaris.
77111
77112 2005-05-25  Derek Price  <derek@ximbiot.com>
77113
77114         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77115
77116 2005-05-25  Derek Price  <derek@ximbiot.com>
77117             Paul Eggert  <eggert@cs.ucla.edu>
77118
77119         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77120         * lib/getlogin_r.c, getlogin_r.h: New files.
77121
77122 2005-05-25  Bruno Haible  <bruno@clisp.org>
77123             Derek Price  <derek@ximbiot.com>
77124
77125         * lib/getlogin_r.h: Simplify API documentation.
77126
77127 2005-05-23  Derek Price  <derek@ximbiot.com>
77128
77129         * modules/minmax (Files): Add m4/minmax.m4.
77130         (configure.ac): Add gl_MINMAX.
77131
77132 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77133
77134         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77135         so that unistd-safer.h (GPL'ed code) need not be included.
77136
77137 2005-05-22  Bruno Haible  <bruno@clisp.org>
77138
77139         * m4/minmax.m4: New file.
77140         Based on a patch by Derek Price <derek@ximbiot.com>.
77141
77142 2005-05-22  Bruno Haible  <bruno@clisp.org>
77143
77144         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77145         (INT64_MIN): Fix definition.
77146         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77147
77148         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77149         NEED_SIGNED_INT_TYPES.
77150
77151         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77152         HAVE_SYSTEM_INTTYPES.
77153
77154 2005-05-22  Bruno Haible  <bruno@clisp.org>
77155
77156         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77157         Also include <sys/param.h> if it defines MIN, MAX.
77158         Based on a patch by Derek Price <derek@ximbiot.com>.
77159
77160 2005-05-21  Jim Meyering  <jim@meyering.net>
77161
77162         * modules/fts (Files): Add m4/inttypes-pri.m4.
77163         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77164
77165 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77166
77167         New fts module.
77168         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77169         (setup_dir, free_dir): New functions.
77170         (enter_dir, leave_dir): Define trivial
77171         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77172         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77173         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77174         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77175         Move to fts-cycle.c.
77176         (fts_open): Use setup_dir.
77177         (fts_close): Use free_dir.
77178         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77179         This adds a label and some gotos, but the alternatives were messier.
77180         Check for memory allocation failure when entering a dir.
77181         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77182         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77183         (FTS): New member fts_cycle, that is a union that contains the
77184         old active_dir_ht and cycle_state.  All uses changed to mention
77185         fts_cycle.ht and fts_cycle.state.
77186         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77187         fts.c, with the following changes:
77188         (setup_dir, free_dir): New functions.
77189         (enter_dir): Now returns bool.  Return true if successful, false
77190         if memory exhausted.  All callers changed.
77191         Do not bother partly cleaning up on
77192         memory allocation failure; that is free_dir's job.
77193         However, free ad if hash_insert fails, to avoid memory leak.
77194         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77195         fts->fts_options to see which union member to use.
77196
77197 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77198
77199         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77200         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77201
77202 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77203
77204         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77205
77206 2005-05-20  Jim Meyering  <jim@meyering.net>
77207
77208         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77209         Now a macro, to pacify GCC.
77210
77211 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77212
77213         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77214         of -1.
77215
77216 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77217
77218         * lib/chown.c (rpl_chown): Return -1 on failure.
77219
77220 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77221
77222         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77223         Don't check for stddef.h.
77224         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77225         don't use its results.
77226         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77227         since we include them unconditionally.  Don't require
77228         AM_STDBOOL_H, since stdbool is a prerequisite.
77229         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77230         since we assume C89 or better.
77231         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77232         as we don't use their results.
77233         Don't check for fchdir, memmove, memset, strrchr, as we use
77234         them unconditionally.
77235         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77236         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77237
77238 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77239
77240         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77241         Include <stddef.h> unconditionally, since we assume C89 now.
77242         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77243         * lib/fts.c: Include fts_.h first, to check interface.
77244         Do not include intprops.h; no longer needed.
77245         Include cycle-check.h and hash.h, since fts_.h no longer does.
77246         Remove unnecessary casts of closedir to void.
77247         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77248         decide whether to decrement nlinks.
77249         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77250         (FTS): Use struct hash_table * instead of Hash_table, so that
77251         we no longer need to include hash.h here.
77252
77253 2005-05-18  Jim Meyering  <jim@meyering.net>
77254
77255         * modules/dirfd (License): Change to LGPL.  Most of the code
77256         is already in the public domain.
77257
77258 2005-05-18  Jim Meyering  <jim@meyering.net>
77259
77260         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77261         Reported by Yoann Vandoorselaere.
77262
77263 2005-05-17  Jim Meyering  <jim@meyering.net>
77264
77265         * m4/fts.m4: New file, from coreutils.
77266
77267 2005-05-17  Jim Meyering  <jim@meyering.net>
77268
77269         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77270
77271 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77272
77273         Sync from coreutils.
77274         * m4/unlinkdir.m4: New file.
77275
77276 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77277
77278         Sync from coreutils.
77279         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77280         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77281         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77282         White space changes only.
77283         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77284         special.
77285         * lib/yesno.c: Include getline.h, not ctype.h.
77286         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77287         Use getline to remove arbitrary restriction on response length.
77288
77289 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77290
77291         * config/srclist-update: Spell out "Street" in FSF postal
77292         mail address; this is the style the FSF seems to prefer.
77293
77294         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77295         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77296         this updates FSF postal mail address.
77297
77298         Sync from coreutils.
77299         * modules/unlinkdir: New file.
77300         * modules/yesno (Depends-on): Add getline.
77301         * MODULES.html.sh (File system functions): Add unlinkdir.
77302
77303 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77304
77305         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77306         lib/strsep.h:
77307         Change the initial comment to refer to GPL, not LGPL.
77308         gnulib-tool will change it to LGPL as needed.
77309
77310         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77311         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77312         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77313         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77314         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77315         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77316         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77317         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77318         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77319         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77320         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77321         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77322         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77323         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77324         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77325         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77326         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77327         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77328         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77329         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77330         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77331         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77332         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77333         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77334         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77335         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77336         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77337         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77338         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77339         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77340         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77341         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77342         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77343         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77344         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77345         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77346         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77347         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77348         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77349         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77350         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77351         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77352         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77353         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77354         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77355         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77356         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77357         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77358         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77359         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77360         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77361         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77362         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77363         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77364         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77365         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77366         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77367         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77368         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77369         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77370         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77371         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77372         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77373         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77374         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77375         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77376         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77377         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77378         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77379         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77380         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77381         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77382         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77383         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77384         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77385         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77386         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77387         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77388         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77389         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77390         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77391         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77392         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77393         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77394         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77395         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77396         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77397         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77398         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77399         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77400         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77401         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77402         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77403         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77404         lib/yesno.c, lib/yesno.h:
77405         Update FSF postal mail address.
77406
77407 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77410         tests/test-memmem.c, tests/test-stpncpy.c:
77411         Update FSF postal mail address.
77412
77413 2005-05-13  Bruno Haible  <bruno@clisp.org>
77414
77415         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77416         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77417         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77418         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77419         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77420         Add support for 64-bit integers in the MSVC compiler.
77421
77422 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77423
77424         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77425
77426 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77427
77428         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77429
77430 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77431
77432         * doc/getdate.texi (General date syntax): Don't say that date
77433         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77434         Problem reported by Nic Ferrier.
77435
77436 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77437
77438         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77439         specified in ai_socktype. Fix invalid ai_protocol
77440         check. ai_protocol is usually set to 0 or depending on
77441         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77442         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77443         ai_socktype / ai_protocol in the returned addrinfo structure.
77444
77445 2005-05-10  Simon Josefsson  <jas@extundo.com>
77446
77447         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77448         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77449
77450 2005-05-10  Karl Berry  <karl@gnu.org>
77451
77452         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77453         (from http://www.gnu.org/licenses).
77454         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77455         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77456         fdl.texi suffices.
77457
77458 2005-05-10  Karl Berry  <karl@gnu.org>
77459
77460         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77461         (COPYING.DOC): remove.
77462
77463         * config/srclist-update: new FSF address.
77464
77465 2005-05-10  Derek Price  <derek@ximbiot.com>
77466
77467         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77468         possible.
77469
77470 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77471             Bruno Haible  <bruno@clisp.org>
77472
77473         * modules/inet_ntop: New file.
77474         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77475         inet_ntop.
77476
77477 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77478             Bruno Haible  <bruno@clisp.org>
77479
77480         * m4/inet_ntop.m4: New file.
77481
77482 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77483             Bruno Haible  <bruno@clisp.org>
77484
77485         * lib/inet_ntop.h: New file.
77486         * lib/inet_ntop.c: New file, from glibc with modifications.
77487
77488 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77489
77490         * modules/time_r (License): Change to LGPL.
77491         * modules/extensions (License): Change to LGPL.  Actually,
77492         the license is more permissive than that, but currently gnulib-tool
77493         doesn't know how to handle more-permissive licenses.
77494
77495         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77496         Problem reported by Dave Love.
77497
77498 2005-05-08  Jim Meyering  <jim@meyering.net>
77499
77500         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77501         blank.
77502
77503 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77504
77505         * modules/argmatch (Depends-on): Add stdbool.
77506         * modules/backupfile (Depends-on): Likewise.
77507         * modules/chdir-long (Depends-on): Likewise.
77508         * modules/closeout (Depends-on): Likewise.
77509         * modules/cycle-check (Depends-on): Likewise.
77510         * modules/dirname (Depends-on): Likewise.
77511         * modules/fnmatch (Depends-on): Likewise.
77512         * modules/fsusage (Depends-on): Likewise.
77513         * modules/fwriteerror (Depends-on): Likewise.
77514         * modules/getcwd (Depends-on): Likewise.
77515         * modules/getloadavg (Depends-on): Likewise.
77516         * modules/hard-locale (Depends-on): Likewise.
77517         * modules/makepath (Depends-on): Likewise.
77518         * modules/mountlist (Depends-on): Likewise.
77519         * modules/nanosleep (Depends-on): Likewise.
77520         * modules/posixtm (Depends-on): Likewise.
77521         * modules/quotearg (Depends-on): Likewise.
77522         * modules/readtokens (Depends-on): Likewise.
77523         * modules/readtokens0 (Depends-on): Likewise.
77524         * modules/readutmp (Depends-on): Likewise.
77525         * modules/save-cwd (Depends-on): Likewise.
77526         * modules/strftime (Depends-on): Likewise.
77527         * modules/userspec (Depends-on): Likewise.
77528         * modules/utimecmp (Depends-on): Likewise.
77529         * modules/xgetcwd (Depends-on): Likewise.
77530         * modules/xnanosleep (Depends-on): Likewise.
77531         * modules/xstrtod (Depends-on): Likewise.
77532         * modules/yesno (Depends-on): Likewise.
77533
77534 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77535
77536         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77537         needless checks.
77538
77539 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77540
77541         Merge from coreutils.  Among other things,
77542         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77543         * lib/fd-safer.c: New file.
77544         * lib/fcntl-safer.h, open-safer.c: Remove.
77545         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77546         * lib/dup-safer.c: Include unistd-safer.h first.
77547         Don't include errno.h.
77548         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77549         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77550         * lib/file-type.c: Rely on file-type.h change.
77551         * lib/getloadavg.c: Include unistd-safer.h.
77552         (getloadavg): Use safer open.
77553         * lib/getusershell.c: Include "stdio-safer.h".
77554         (getusershell): Use safer fopen.
77555         * lib/long-options.c (long_options): Use NULL rather than 0.
77556         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77557         'free'.
77558         * lib/modechange.c: Likewise.
77559         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77560         (MODE_DONE): New constant.
77561         (struct mode_change): Remove 'next' member.
77562         (make_node_op_equals): New function; like the old one of the
77563         same name, except it allocates an array.
77564         (mode_compile, mode_create_from_ref): Use it.
77565         (mode_compile): Allocate result as an array, not a linked list.
77566         Parse octal string ourself, so that we catch mistakes like "+0".
77567         (mode_adjust): Arg is an array, not a linked list.
77568         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77569         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77570         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77571         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77572         Remove.  This is now stat-macros.h's job.
77573         (talloc): Remove.  All callers replaced by xalloc, so that
77574         our invokers don't have to worry about reporting memory failures.
77575         (make_node_op_equals): Remove.
77576         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77577         New constants.
77578         (struct mode_change): Moved here from modechange.h.
77579         (mode_append_entry): Remove.
77580         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77581         apps to have incorrect behavior.  Use simpler algorithm for head
77582         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77583         Detect more invalid usages rather than having somewhat-random behavior.
77584         Don't insert an "a=" action, as that leads to incorrect behavior.
77585         (mode_compile, mode_create_from_ref): Return NULL on error instead
77586         of an enum, since now there's only one way to have an error.  All
77587         callers changed.
77588         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77589         at the correct time.  Simplify calculation of "+u" and its ilk.
77590         Don't mishandle "+X".
77591         (mode_free): Remove "register" and localize decls.
77592         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77593         (struct mode_change): Move to modechange.c; callers don't
77594         need to see this stuff.
77595         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77596         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77597         (mode_change, mode_adjust): Reflect the new signatures noted above.
77598         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77599         that might redefine system include files.
77600         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77601         (my_usleep): Use NULL rather than (void *) 0.
77602         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77603         Use siginterrupt to specify that system calls should be interrupted.
77604         (rpl_nanosleep): Move initialization of suspended closer to call of
77605         my_usleep.
77606         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77607         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77608         (desirable_utmp_entry): New function.
77609         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77610         using x2nrealloc, to simplify logic.
77611         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77612         size calculation.  Do not assume utmp file is a regular file.
77613         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77614         (READ_UTMP_CHECK_PIDS): New constant.
77615         * lib/save-cwd.c: Include unistd-safer.h.
77616         (save_cwd): Use fd_safer.
77617         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77618         [!_LIBC] Include "stat-macros.h" instead.
77619         * lib/unistd-safer.h (fd_safer): New decl.
77620
77621 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77622
77623         * modules/getloadavg (Depends-on): Add unistd-safer.
77624         * modules/getusershell (Depends-on): Add stdio-safer.
77625         * modules/lstat (Depends-on): Remove xalloc.
77626         * modules/mkstemp (Depends-on): Add stat-macros.
77627         * modules/modechange (Depends-on): Remove xstrtol.
77628         Add stat-macros, xalloc.
77629         * modules/save-cwd (Depends-on): Add unistd-safer.
77630         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77631         * modules/unistd-safer (Files): Add lib/fd-safer.c
77632         (Makefile.am): Remove lib_SOURCES.
77633
77634         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77635         Remove fcntl-safer; unistd-safer supersedes it.
77636
77637 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77638
77639         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77640         AC_HEADER_STAT.
77641         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77642         (gl_PREREQ_CHOWN): Remove.
77643         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77644         it.  Don't require AC_HEADER_STAT.
77645         (gl_PREREQ_LSTAT): Remove.
77646         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77647         Don't require AC_HEADER_STAT.
77648         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77649         (gl_PREREQ_RMDIR): Remove.
77650         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77651         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77652         the stat-macros module a prerequisite.
77653         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77654         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77655         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77656         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77657         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77658         variable names.
77659         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77660         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77661         variable prefixes.
77662         * m4/fcntl-safer.m4: Remove.
77663         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77664         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77665         Invoke gl_PREREQ_FD_SAFER.
77666         (gl_PREREQ_FD_SAFER): New macro.
77667         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77668         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77669         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77670         Remove duplicate call to AC_LIBOBJ(readutmp).
77671         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77672
77673         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77674         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77675
77676 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77677
77678         * MODULES.html.sh (Misc): Add byteswap.
77679
77680 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77681
77682         * modules/getcwd (Depends-on): Add extensions.
77683         * modules/openat (Depends-on): Likewise.
77684
77685 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77686
77687         * modules/byteswap: New file.
77688
77689 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77690
77691         * m4/byteswap.m4: New file.
77692
77693 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77694
77695         * lib/byteswap_.h: New file.
77696
77697 2005-04-25  Karl Berry  <karl@gnu.org>
77698
77699         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77700
77701 2005-04-25  Albert Chin  <china@thewrittenword.com>
77702
77703         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77704         Toolkit C bug.
77705
77706 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77707
77708         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77709         (func_ln_if_changed): Remove forcibly for no error message
77710         in case file does not exist.
77711
77712 2005-04-19  Simon Josefsson  <jas@extundo.com>
77713
77714         * gnulib-tool (Options): Make --symlink mean --symbolic.
77715
77716 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77717
77718         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77719
77720 2005-04-16  Simon Josefsson  <jas@extundo.com>
77721
77722         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77723
77724 2005-04-15  Simon Josefsson  <jas@extundo.com>
77725
77726         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77727
77728 2005-04-15  Simon Josefsson  <jas@extundo.com>
77729
77730         * gnulib-tool: Rename --symlink to --symbolic.
77731
77732 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77733
77734         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77735         symbolic links to files instead of copying/moving.  Add --aux-dir,
77736         specifying directory relative --dir where auxiliary build tools
77737         are placed.
77738
77739 2005-04-14  Bruno Haible  <bruno@clisp.org>
77740
77741         * modules/allocsa (License): Change to LGPL.
77742         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77743
77744 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77745
77746         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77747         that "UTC +1 second" continues to work.  Problem reported
77748         by Dmitry V. Levin.
77749         (relunit_snumber): New rule.
77750         (relunit): Use it.
77751
77752 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77753
77754         * lib/getdate.y (universal_time_zone_table): New constant.
77755         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77756         universal_time_zone_table.
77757         (lookup_zone): Prefer universal_time_zone_table to
77758         local_time_zone_table, so that "GMT" time stamps are allowed in
77759         London during the summer.  Problem reported by Ian Abbott.
77760
77761 2005-04-12  Jim Meyering  <jim@meyering.net>
77762
77763         * lib/human.c (humblock): Set *options even when returning due to
77764         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77765         warning from gcc-4.
77766
77767 2005-04-09  Jim Meyering  <jim@meyering.net>
77768
77769         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77770         -Wuninitialized: initialize tm0.tm_year.
77771
77772 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77773
77774         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77775         count, since there's no maximum.  All uses changed.
77776         Add member dsts_seen.
77777         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77778         not being INT_MAX.
77779         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77780         Use pc_rels_seen to decide whther a date is absolute.
77781
77782         * lib/getdate.y (number): Don't overwrite year.
77783         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77784         check.
77785
77786 2005-04-02  Simon Josefsson  <jas@extundo.com>
77787
77788         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77789         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77790
77791 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77792
77793         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77794         where no absolute path name can be longer than PATH_MAX.
77795
77796 2005-03-27  Jim Meyering  <jim@meyering.net>
77797
77798         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77799
77800 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77801
77802         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77803         "one's complement" -> "ones' complement" in comment, as per Knuth.
77804         "value of type" -> "type or expression" in comment.
77805         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77806
77807 2005-03-26  Jim Meyering  <jim@meyering.net>
77808
77809         Comment nits.
77810         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77811         Correct typos: s/or/of/.
77812
77813 2005-03-26  Jim Meyering  <jim@meyering.net>
77814
77815         * modules/check-include-files: Move to ../ and rename to...
77816         * check-module: ...this.
77817
77818 2005-03-25  Jim Meyering  <jim@meyering.net>
77819
77820         * modules/xvasprintf (Files): Add xalloc.h.
77821
77822 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77823
77824         * modules/gettext (Files): config/config.rpath ->
77825         build-aux/config.rpath
77826         * modules/iconv (Files): Likewise.
77827         Problem reported by Oskar Liljeblad.
77828
77829 2005-03-23  Jim Meyering  <jim@meyering.net>
77830
77831         * modules/check-include-files: New script to check for
77832         missing dependencies, multiple includes, etc.
77833
77834         * modules/c-strtold (Depends-on): Add xalloc.
77835         * modules/c-strtod (Depends-on): Add xalloc.
77836         * modules/hash (Depends-on): Add xalloc.
77837         (Files): Remove lib/xalloc.h.
77838
77839         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77840         * modules/userspec (Files): Add lib/inttostr.h.
77841
77842 2005-03-23  Jim Meyering  <jim@meyering.net>
77843
77844         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77845
77846 2005-03-22  Jim Meyering  <jim@meyering.net>
77847
77848         * modules/stat-macros: New module.
77849         * modules/canonicalize, modules/euidaccess, modules/file-type,
77850         * modules/filemode, modules/lchown, modules/makepath,
77851         * modules/rmdir, modules/stat: Depend on new stat-macros module
77852         rather than listing lib/stat-macros.h manually.
77853         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77854
77855 2005-03-22  Jim Meyering  <jim@meyering.net>
77856
77857         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77858
77859 2005-03-22  Bruno Haible  <bruno@clisp.org>
77860
77861         * config/srclist.txt: Replace target directory 'config' with
77862         'build-aux'.
77863         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77864         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77865         ../build-aux/.
77866
77867 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77868
77869         * modules/chdir-long (Depends-on): Add mempcpy.
77870
77871         * modules/acl, modules/backupfile, modules/c-strtod,
77872         modules/c-strtold, modules/canon-host, modules/canonicalize,
77873         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77874         modules/exclude, modules/exitfail, modules/file-type,
77875         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77876         modules/getdate, modules/getline, modules/getpagesize,
77877         modules/getpass, modules/getugroups, modules/group-member,
77878         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77879         modules/inttostr, modules/long-options, modules/makepath,
77880         modules/md5, modules/memcasecmp, modules/memcoll,
77881         modules/modechange, modules/mountlist, modules/path-concat,
77882         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77883         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77884         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77885         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77886         modules/strftime, modules/strndup, modules/strverscmp,
77887         modules/timespec, modules/unlocked-io, modules/userspec,
77888         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77889         modules/yesno:
77890         Remove lib_SOURCES line from Makefile.am section, as this is now
77891         done automatically by the corresponding Autoconf macro.
77892
77893 2005-03-21  Jim Meyering  <jim@meyering.net>
77894
77895         Changes imported from coreutils.
77896
77897         * lib/cycle-check.c: Don't include xalloc.h.
77898
77899         * lib/path-concat.c: Don't include assert.h.
77900         (path_concat): Remove assertion that would have triggered
77901         for ABASE starting with more than one slash.
77902         Reported by Andreas Schwab.
77903
77904         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77905         properly when ABASE is an absolute file name.
77906         Correct the description of this function.
77907         Include <assert.h>.
77908         Add an assertion and a test driver.
77909         This fixes a bug introduced on 2004-07-02.
77910         Andreas Schwab reported the resulting failure of cp --parents:
77911         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77912
77913 2005-03-21  Jim Meyering  <jim@meyering.net>
77914
77915         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77916         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77917
77918 2005-03-21  Jim Meyering  <jim@meyering.net>
77919         and  Paul Eggert  <eggert@cs.ucla.edu>
77920
77921         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77922         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77923         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77924         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77925         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77926         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77927         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77928         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77929         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77930         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77931         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77932         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77933         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77934         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77935         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77936         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77937         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77938         for these modules.
77939
77940 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77941
77942         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77943         (which shouldn't happen), generate nothing instead of returning 0
77944         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77945
77946 2005-03-16  Bruno Haible  <bruno@clisp.org>
77947
77948         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77949         HAVE_LONGLONG_64BIT.
77950
77951 2005-03-16  Bruno Haible  <bruno@clisp.org>
77952
77953         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77954         HAVE_LONGLONG_64BIT.
77955
77956 2005-03-16  Bruno Haible  <bruno@clisp.org>
77957
77958         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77959         HAVE_LONGLONG_64BIT.
77960
77961 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77962
77963         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77964         reliably distinguish strftime failure from empty output on POSIX
77965         hosts.
77966
77967 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77968
77969         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77970         (iconv_string): Don't guess a size-zero buffer, as that might cause
77971         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77972         result would be 'too large', where 'too large' is (heuristically)
77973         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77974         overflow concerns.  This will prevent some unwanted malloc failures
77975         when the inputs are very large.
77976
77977 2005-03-15  Karl Berry  <karl@gnu.org>
77978
77979         * config/srclist.txt (config.rpath): from gettext.
77980         * config/config.rpath: update.
77981
77982 2005-03-15  Bruno Haible  <bruno@clisp.org>
77983
77984         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77985         to 'negate'.
77986
77987         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77988         variable.
77989
77990         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77991         results.
77992
77993 2005-03-14  Simon Josefsson  <jas@extundo.com>
77994
77995         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77996         <fx@gnu.org>.
77997
77998 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77999
78000         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78001         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78002         intprops.h.
78003         * lib/strtol.c: Likewise.
78004
78005 2005-03-14  Jim Meyering  <jim@meyering.net>
78006
78007         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78008         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78009         to be nonzero so that we (and caller) can detect the difference
78010         between a valid zero-length expansion and an error return, even
78011         when the underlying strftime fails before writing anything into
78012         that location.
78013
78014 2005-03-14  Bruno Haible  <bruno@clisp.org>
78015
78016         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78017         Update from GNU gettext 0.14.3.
78018
78019 2005-03-10  Jim Meyering  <jim@meyering.net>
78020
78021         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78022
78023 2005-03-10  Jim Meyering  <jim@meyering.net>
78024
78025         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78026         so that this module works on systems without fchdir.
78027
78028 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78029
78030         Factor int-properties macros into a single file, except for
78031         glibc-related files.
78032         * lib/intprops.h: New file.
78033         * lib/getloadavg.c: Include it instead of limits.h.
78034         (INT_STRLEN_BOUND): Remove.
78035         * lib/human.c: Include intprops.h.
78036         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78037         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78038         302/1000.
78039         * lib/inttostr.h: Include intprops.h instead of limits.h.
78040         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78041         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78042         for consistency with intprops.h.
78043         (time_t_is_integer, twos_complement_arithmetic): Use them.
78044         * lib/sig2str.h: Include <signal.h>, intprops.h.
78045         (INT_STRLEN_BOUND): Remove.
78046         * lib/strftime.c (TYPE_SIGNED): Remove.
78047         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78048         * lib/strtol.c: Adjust comments to match intprops.h.
78049         * lib/userspec.c: Include intprops.h.
78050         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78051         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78052         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78053         instead of rolling our own expressions.
78054         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78055
78056         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78057         instead of int.
78058         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78059         the right thing even if adding 1900 would overflow.  Similarly
78060         for tm_mon + 1 and tm_yday + 1.
78061         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78062         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78063         (DO_SIGNED_NUMBER): New macro.
78064         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78065
78066 2005-03-07  Bruno Haible  <bruno@clisp.org>
78067
78068         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78069
78070 2005-03-07  Bruno Haible  <bruno@clisp.org>
78071
78072         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78073
78074 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78075
78076         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78077         (func_import): Only replace files via --import when they have actually
78078         changed.
78079
78080 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78081
78082         * m4/mmap-anon.m4: New file.
78083         * m4/pagealign_alloc.m4: New file.
78084
78085 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78086             Bruno Haible  <bruno@clisp.org>
78087
78088         * modules/pagealign_alloc: New file.
78089         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78090
78091 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78092             Bruno Haible  <bruno@clisp.org>
78093
78094         * lib/pagealign_alloc.h: New file.
78095         * lib/pagealign_alloc.c: New file.
78096
78097 2005-03-03  Bruno Haible  <bruno@clisp.org>
78098
78099         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78100         Use an all-permissive copyright notice, recommended by RMS.
78101
78102 2005-03-02  Bruno Haible  <bruno@clisp.org>
78103
78104         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78105         of AIX, the replacement has to be done only after <string.h> is
78106         included, therefore not in config.h. stpncpy.h does the replacement,
78107         and stpncpy.c uses it.
78108
78109 2005-03-02  Bruno Haible  <bruno@clisp.org>
78110
78111         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78112         stpncpy.c uses it.
78113
78114 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78115
78116         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78117         The workaround isn't strictly needed for POSIX conformance, and
78118         it's too much of a pain to configure and maintain.  We'll ask
78119         people to fix their kernels instead.
78120         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78121         (NANOSLEEP_BUG_WORKAROUND): Remove.
78122         (xnanosleep): Remove the workaround.
78123
78124 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78127         Reported by Derek Price.
78128         (Include): Add "timespec.h".
78129
78130         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78131
78132 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78133
78134         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78135         to detect nanosleep bug.
78136
78137 2005-03-01  Bruno Haible  <bruno@clisp.org>
78138
78139         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78140
78141 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78142
78143         * modules/gethrxtime: New file.
78144         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78145         (Depends-on): Add gethrxtime.
78146         (configure.ac): Add gl_XNANOSLEEP.
78147         (Makefile.am): Remove lib_SOURCES line.
78148
78149 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78150
78151         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78152         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78153
78154 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78155
78156         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78157         * lib/timespec.h (gettime): Return void, since it always
78158         succeeds now.  All uses changed.
78159         * lib/gettime.c (gettime): Likewise.
78160         [HAVE_NANOTIME]: Prefer nanotime.
78161         Assume gettimeofday succeeds, as POSIX requires.
78162         Assime time () succeeds, since other code already does.
78163         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78164         (timespec_subtract): Remove.
78165         (NANOSLEEP_BUG_WORKAROUND): New constant.
78166         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78167         things considerably.  Use it only on GNU/Linux hosts, since the
78168         workaround shouldn't be needed elsewhere.
78169
78170 2005-02-24  Bruno Haible  <bruno@clisp.org>
78171
78172         * modules/gettext (Files): Add m4/glibc2.m4.
78173
78174 2005-02-24  Bruno Haible  <bruno@clisp.org>
78175
78176         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78177         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78178         * m4/progtest.m4:
78179         Update from GNU gettext 0.14.2.
78180         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78181
78182 2005-02-24  Bruno Haible  <bruno@clisp.org>
78183
78184         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78185         * lib/config.charset: Update from GNU gettext 0.14.2.
78186
78187 2005-02-24  Bruno Haible  <bruno@clisp.org>
78188
78189         * lib/gettext.h: Update from GNU gettext 0.14.2.
78190
78191 2005-02-23  Simon Josefsson  <jas@extundo.com>
78192
78193         * m4/iconvme.m4: New file.
78194
78195 2005-02-23  Jim Meyering  <jim@meyering.net>
78196
78197         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78198         change.
78199         Thanks to Bruno Haible for catching it.
78200
78201 2005-02-22  Simon Josefsson  <jas@extundo.com>
78202
78203         * modules/iconvme: New file.
78204
78205         * MODULES.html.sh: Add iconvme.
78206
78207 2005-02-22  Simon Josefsson  <jas@extundo.com>
78208
78209         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78210
78211 2005-02-22  Simon Josefsson  <jas@extundo.com>
78212
78213         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78214
78215 2005-02-22  Jim Meyering  <jim@meyering.net>
78216
78217         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78218         s/ifndef/ifdef/.
78219
78220 2005-02-20  Neil Conway  <neilc@samurai.com>
78221
78222         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78223         returned by OSX/Darwin if the specified buffer is not large
78224         enough for the hostname.
78225
78226 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78227
78228         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78229         pass it to _help, otherwise the latter coredumps trying to
78230         dereference state.root_argp.
78231
78232 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78233
78234         * modules/chdir-long (Depends-on): Add memrchr.
78235         * modules/memrchr (Files): Add lib/memrchr.h.
78236         (Include): "memrchr.h".
78237
78238 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78239
78240         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78241
78242 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78243
78244         * lib/memrchr.h: New file.
78245         * lib/chdir-long.c: Include it.
78246         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78247         Don't bother including stddef.h.
78248
78249 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78250
78251         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78252         inclusion.
78253         Include <sys/types.h>, for dev_t.
78254         (ME_DUMMY, ME_REMOTE): Move from here....
78255         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78256         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78257         Dmitry V. Levin.
78258         Include mountlist.h first, to test the interface.
78259
78260 2005-01-29  Bruno Haible  <bruno@clisp.org>
78261
78262         * lib/progname.c (program_name): Initialize.
78263         Needed when linking statically on MacOS X.
78264
78265 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78266
78267         Sync from coreutils.
78268         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78269         (Depends-on): Add c-strtod.
78270         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78271
78272 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78273
78274         Sync from coreutils.
78275         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78276
78277         Remove files that are specific to coreutils.
78278         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78279
78280 2005-01-28  Bruno Haible  <bruno@clisp.org>
78281
78282         * modules/javacomp: New file.
78283         * MODULES.html.sh (Java): Add javacomp.
78284
78285 2005-01-28  Bruno Haible  <bruno@clisp.org>
78286
78287         * m4/javacomp.m4: New file, from GNU gettext.
78288
78289 2005-01-28  Bruno Haible  <bruno@clisp.org>
78290
78291         * lib/javacomp.sh.in: New file, from GNU gettext.
78292         * lib/javacomp.h: New file, from GNU gettext.
78293         * lib/javacomp.c: New file, from GNU gettext.
78294
78295 2005-01-26  Simon Josefsson  <jas@extundo.com>
78296
78297         * lib/gai_strerror.c: Use GPL in header.
78298
78299 2005-01-26  Bruno Haible  <bruno@clisp.org>
78300
78301         * modules/javaexec: New file.
78302         * MODULES.html.sh (Java): Add javaexec.
78303
78304 2005-01-26  Bruno Haible  <bruno@clisp.org>
78305
78306         * m4/javaexec.m4: New file, from GNU gettext.
78307
78308 2005-01-26  Bruno Haible  <bruno@clisp.org>
78309
78310         * lib/javaexec.sh.in: New file, from GNU gettext.
78311         * lib/javaexec.h: New file, from GNU gettext.
78312         * lib/javaexec.c: New file, from GNU gettext.
78313
78314 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78315
78316         * modules/lchown (Depends-on): Remove lchown.h
78317
78318 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78319
78320         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78321         must be defined if the header file was not found, in order
78322         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78323
78324 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78325
78326         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78327         initializers for struct pentry_state.
78328         (__argp_error): Check return value of __asprintf
78329         (__argp_failure): Translate error message
78330
78331         * lib/argp-parse.c: Removed braces around the expansion of N_()
78332
78333 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78334
78335         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78336         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78337         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78338         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78339         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78340         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78341         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78342         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78343         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78344         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78345         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78346         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78347         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78348         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78349         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78350         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78351         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78352         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78353         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78354         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78355         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78356         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78357         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78358         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78359         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78360         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78361         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78362         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78363         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78364         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78365         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78366         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78367         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78368         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78369         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78370         Use an all-permissive copyright notice, recommended by RMS.
78371
78372 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78373
78374         * modules/chdir-long (Depends-on): Remove mempcpy.
78375
78376 2005-01-21  Jim Meyering  <jim@meyering.net>
78377
78378         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78379         same value as for Solaris 9.
78380
78381         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78382         component length.  This included changing the parameter to be
78383         of type `char *' rather than `char const *'.
78384         * lib/chdir-long.h (chdir_long): Update prototype.
78385
78386         * lib/openat.c (fdopendir, fstatat): New functions.
78387         * lib/openat.h: Include headers required for use of DIR and struct
78388         stat.
78389         [AT_SYMLINK_NOFOLLOW]: Define.
78390         (fdopendir, fstatat): Add prototypes.
78391
78392 2005-01-21  Bruno Haible  <bruno@clisp.org>
78393
78394         * modules/classpath: New file.
78395         * MODULES.html.sh (Java): Add classpath.
78396
78397 2005-01-21  Bruno Haible  <bruno@clisp.org>
78398
78399         * lib/classpath.h: New file, from GNU gettext.
78400         * lib/classpath.c: New file, from GNU gettext.
78401
78402 2005-01-20  Simon Josefsson  <jas@extundo.com>
78403
78404         * modules/version-etc-fsf: New file.
78405
78406 2005-01-20  Simon Josefsson  <jas@extundo.com>
78407
78408         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78409         * lib/version-etc.c: Remove version_etc_copyright.
78410         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78411         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78412
78413 2005-01-20  Simon Josefsson  <jas@extundo.com>
78414
78415         * lib/base64.h (isbase64): Add.
78416
78417         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78418         using a unsigned prototype, don't inline.
78419         (base64_decode): Use it.
78420
78421 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78422
78423         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78424         it.
78425
78426 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78427
78428         * lib/save-cwd.c (save_cwd): Remove code to support the case
78429         where fchdir is missing or flaky.
78430
78431 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78432
78433         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78434
78435 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78436
78437         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78438         AC_LIBSOURCES now does this.
78439         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78440         with new ullong_max module.
78441
78442 2005-01-19  Bruno Haible  <bruno@clisp.org>
78443
78444         * modules/sh-quote: New file.
78445         * MODULES.html.sh (Executing programs): Add sh-quote.
78446
78447 2005-01-19  Bruno Haible  <bruno@clisp.org>
78448
78449         * lib/sh-quote.h: New file, from GNU gettext.
78450         * lib/sh-quote.c: New file, from GNU gettext.
78451
78452 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78453
78454         Merge from coreutils.
78455         * m4/ullong_max.m4: New file.
78456         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78457         (gl_MACROS): Assume localeconv exists.
78458
78459 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78460
78461         Merge changes from coreutils, as described below in several
78462         changelogs dated today.
78463
78464         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78465         (O_DIRECTORY): Remove; not needed here, since "." must be
78466         a directory.  All uses removed.
78467         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78468         universal on Suns, and we also need to test for IRIX.
78469         Revamp code to use 'if' rather than '#if'.
78470         Avoid unnecessary comparison of cwd->desc to 0.
78471
78472         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78473         for known valid error numbers rather than observed invalid ones.
78474
78475 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78476
78477         * modules/ullong_max: New file.
78478
78479         * modules/chdir-long, modules/openat: New files.
78480         * modules/save-cwd (Depends-on): Depend on chdir-long.
78481         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78482
78483 2005-01-18  Jim Meyering  <jim@meyering.net>
78484
78485         Merge from coreutils.
78486         * m4/chdir-long.m4, m4/openat.m4: New files.
78487         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78488         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78489         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78490         is sane and DOES follow symlinks.  Besides, testing 20 different
78491         systems found no broken chown implementations.
78492         Prompted by a change in rsync's copy of this macro.
78493         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78494
78495         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78496
78497         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78498         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78499         NULL-means-set-to-current-time semantics.
78500         Remove temporary file immediately, rather than waiting
78501         for configure's at-exit trap code to do it.
78502
78503 2005-01-18  Jim Meyering  <jim@meyering.net>
78504
78505         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78506
78507         * lib/utimens.c (futimens): Account for the fact that futimes
78508         can also fail with errno == ENOSYS or errno == ENOENT.
78509         Patch from Dmitry V. Levin.
78510
78511         Change the name of the robust chdir function from chdir to chdir_long.
78512         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78513         (restore_cwd): Use chdir_long, not chdir.
78514         * lib/chdir-long.c: Renamed from chdir.c.
78515         * lib/chdir-long.h: Renamed from chdir.h.
78516         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78517         Hurd.
78518
78519 2005-01-18  Bruno Haible  <bruno@clisp.org>
78520
78521         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78522         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78523         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78524         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78525         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78526         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78527         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78528         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78529         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78530         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78531         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78532         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78533         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78534         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78535         Use an all-permissive copyright notice, recommended by RMS.
78536
78537 2005-01-18  Bob Proulx  <bob@proulx.com>
78538
78539         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78540         simplify offsetof() macro construct to avoid compile failure with
78541         native HP-UX 11.0 ANSI C compiler.
78542
78543 2005-01-17  Bruno Haible  <bruno@clisp.org>
78544
78545         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78546         redundant because stpncpy.m4 takes care of it.
78547
78548 2005-01-17  Bruno Haible  <bruno@clisp.org>
78549
78550         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78551
78552 2005-01-17  Bruno Haible  <bruno@clisp.org>
78553
78554         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78555         used.
78556
78557 2005-01-17  Bruno Haible  <bruno@clisp.org>
78558
78559         * lib/fwriteerror.h (fwriteerror): Change specification to include
78560         fclose.
78561         * lib/fwriteerror.c: Include <stdbool.h>.
78562         (fwriteerror): At the end, close the file stream. Record whether
78563         stdout was already closed.
78564
78565 2005-01-17  Bruno Haible  <bruno@clisp.org>
78566
78567         * lib/execute.c (environ): Declare if needed.
78568         * lib/pipe.c (environ): Likewise.
78569         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78570
78571 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78572
78573         * modules/argp: Depend on vsnprintf
78574
78575 2005-01-10  Jim Meyering  <jim@meyering.net>
78576
78577         * modules/closeout (Depends-on): Add atexit.
78578
78579 2005-01-06  Bruno Haible  <bruno@clisp.org>
78580
78581         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78582
78583 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78584
78585         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78586         definitions to be after all include files, to avoid collisions.
78587         Problem reported by Bob Proulx.
78588
78589 2005-01-04  Jim Meyering  <jim@meyering.net>
78590
78591         Changes imported from coreutils.
78592         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78593         as the mkstemp template, use a temporary directory and an
78594         8.3-friendly template to avoid trouble on systems like DJGPP.
78595         Reported by Juan M. Guerrero via Stepan Kasal.
78596         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78597         close. Remove the temporary directory right away, rather than waiting
78598         for configure's at-exit trap code to do it.
78599         Suggestion from Stepan Kasal.
78600
78601 2005-01-01  Simon Josefsson  <jas@extundo.com>
78602
78603         * gnulib-tool: Print #include directives when --import'ing.
78604
78605 2004-12-28  Simon Josefsson  <jas@extundo.com>
78606
78607         * tests/test-base64.c: Include required header files.  Remove
78608         unused variables.
78609
78610 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78611
78612         * modules/error (Depends-on): Remove gettext.
78613
78614 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78615
78616         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78617         not needed.  This removes a dependency on the gettext module.
78618         [defined _LIBC]: Do not include <libintl.h>; not needed.
78619
78620 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78621
78622         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78623         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78624
78625 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78626
78627         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78628         HAVE_DECL_STRTOLD.
78629
78630 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78631
78632         * modules/getdate (Depends-on): Remove alloca-opt.
78633
78634 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78635
78636         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78637
78638 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78639
78640         * lib/argp-parse.c: Include <stddef.h>.
78641         (alignof, alignto): New macros.
78642         (parser_init): Don't assume that void * is aligned sufficiently
78643         for struct option.
78644
78645         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78646         need to extend the stack.
78647         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78648         large.
78649
78650 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78651
78652         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78653
78654 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78655
78656         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78657         (2004-10-24) change.  Apparently this was a false alarm.
78658
78659         * modules/getdate: Depend on alloca-opt, not alloca.
78660
78661 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78662
78663         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78664         Remove now-obsolete comment about AIX.
78665         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78666         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78667         (YYMAXDEPTH): New macro.
78668
78669 2004-12-18  Simon Josefsson  <jas@extundo.com>
78670
78671         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78672
78673 2004-12-18  Bruno Haible  <bruno@clisp.org>
78674
78675         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78676
78677 2004-12-18  Bruno Haible  <bruno@clisp.org>
78678
78679         * lib/fatal-signal.c (fatal_signals): Make non-const.
78680         (init_fatal_signals): New function.
78681         (uninstall_handlers, install_handlers): Ignore signals that were set to
78682         SIG_IGN.
78683         (at_fatal_signal): Call init_fatal_signals.
78684         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78685         SIG_IGN.
78686         Reported by Paul Eggert.
78687
78688 2004-12-18  Bruno Haible  <bruno@clisp.org>
78689
78690         * doc/alloca.texi: New file.
78691         * doc/alloca-opt.texi: New file.
78692
78693 2004-12-17  Jim Meyering  <jim@meyering.net>
78694
78695         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78696         Otherwise, install-sh could exit with improper exit status when
78697         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78698
78699 2004-12-16  Simon Josefsson  <jas@extundo.com>
78700
78701         * tests/test-base64.c: Add license.
78702
78703 2004-12-15  Stepan Kasal  <address@hidden>
78704
78705         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78706
78707 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78708
78709         * modules/getcwd (Files): Add m4/d-ino.m4.
78710         Suggested by Mark D. Baushke.
78711
78712 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78713
78714         * lib/getdate.y (textint): New member "negative".
78715         (time_zone_hhmm): New function.
78716         Expect 14 shift-reduce conflicts, not 13.
78717         (o_colon_minutes): New rule.
78718         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78719         (yylex): Set the "negative" member of signed numbers.
78720
78721 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78722
78723         * doc/getdate.texi (Time of day items, Time zone items):
78724         Describe new formats +00:00, UTC+00:00.
78725
78726 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78727
78728         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78729         spurious "-l"s.  Problem reported by Stepan Kasal.
78730
78731 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78734         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78735
78736 2004-12-04  Simon Josefsson  <jas@extundo.com>
78737
78738         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78739         Vandoorselaere <yoann@prelude-ids.org>.
78740
78741 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78742
78743         Changes imported from coreutils.
78744         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78745         exist.
78746         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78747
78748 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78749
78750         Changes imported from coreutils.
78751         * lib/hard-locale.c: Assume <locale.h> exists.
78752         Include "strdup.h".
78753         (GLIBC_VERSION): New macro.
78754         (hard_locale): Assume setlocale exists.
78755         Rewrite to avoid #ifdef.
78756         Use strdup rather than malloc + strcpy.
78757         * lib/human.c: Assume <locale.h> exists.
78758         (human_readable): Assume localeconv exists.
78759
78760 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78761
78762         * modules/hard-locale (Depends-on): Add strdup.
78763
78764 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78765
78766         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78767         convert T2, not T.  (Imported from libc.)
78768
78769 2004-11-30  Simon Josefsson  <jas@extundo.com>
78770
78771         * modules/restrict (License): Change to LGPL.
78772
78773 2004-11-30  Simon Josefsson  <jas@extundo.com>
78774
78775         * m4/restrict.m4: Add copyright and copying conditions.
78776
78777 2004-11-30  Simon Josefsson  <jas@extundo.com>
78778
78779         * m4/base64.m4: New file.
78780
78781 2004-11-30  Simon Josefsson  <jas@extundo.com>
78782
78783         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78784         base64.
78785
78786         * tests/test-base64.c: New file.
78787
78788         * modules/base64: New file.
78789
78790 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78791
78792         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78793         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78794
78795         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78796
78797 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78800         (__getcwd.c): Don't restore errno; glibc doesn't.
78801         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78802         first, falling back to our code only if its results look suspicious.
78803         Ensure that the resulting buffer is only as large as necessary.
78804
78805         * lib/readutmp.c: Include readutmp.h first.
78806         Include <errno.h>, since readutmp.h no longer does that.
78807         * lib/readutmp.h: Don't include <errno.h>,
78808         <sys/param.h>, <time.h>; not needed to establish interface.
78809         (errno): Remove decl.
78810         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78811         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78812         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78813
78814 2004-11-28  Simon Josefsson  <jas@extundo.com>
78815
78816         * lib/base64.h, base64.c: New file.
78817
78818 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78819
78820         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78821
78822 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78823
78824         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78825         (Depends-on): Remove pathmax, same.  Add mempcpy.
78826         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78827         (Makefile.am): Append getcwd.h to lib_SOURCES.
78828         (Include): Add getcwd.h.
78829         (Maintainer): Change from Jim Meyering to "all, glibc",
78830         since getdate now uses intended-for-glibc code.
78831         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78832         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78833
78834 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78835
78836         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78837         HP's ANSI C compiler.
78838         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78839         Declaring int functions causes warnings on some modern systems and
78840         shouldn't be needed to compile on ancient ones.
78841         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78842         defined.
78843
78844         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78845         with the following changes.
78846         (__set_errno): Parenthesize properly.
78847         Include <stdbool.h>.
78848         (MIN, MAX, MATCHING_INO): New macros.
78849         (__getcwd): Define with prototype, not K&R form.
78850         Use heuristics to allocate default buffer on stack if possible.
78851         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78852         behavior, and to avoid the PATH_MAX limit when computing
78853         ../../../../...
78854         Use MATCHING_INO to compare inode number to file.
78855         Check for arithmetic overflow in size calculations.
78856         Fix bug in reallocation of dot array that caused getcwd to fail
78857         on directories nested deeper than 75.
78858         Be more careful about saving errno on error.
78859         Do not use realloc; use only free+malloc, as this is a bit
78860         more flexible and avoids a needless copy operation.
78861         Do not inspect st_dev and st_ino for symbolic links; POSIX
78862         doesn't specify the latter.
78863         Check for closedir errors.
78864         Avoid needless casts.
78865         Use "#ifdef weak_alias" around weak_alias, to be like other
78866         glibc code.
78867         The following changes to getcwd.c have effect only when used in
78868         gnulib; they have no effect inside glibc proper.
78869         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78870         as alloca isn't used.
78871         (alloca, __alloca): Likewise.
78872         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78873         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78874         unconditionally, as gnulib assumes C89 or better.
78875         Do not include <sys/param.h>.
78876         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78877         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78878         better.
78879         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78880         Include <dirent.h> in a way that is compatible with modern Autoconf.
78881         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78882         New macros, if not already defined.
78883         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78884         Use "_LIBC", not "defined _LIBC", for consistency.
78885         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78886         a mempcpy module.
78887         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78888         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78889         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78890         credit only to Jim Meyering and adjust the copyright dates.
78891         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78892         <stdlib.h>, <unistd.h>, "pathmax.h".
78893         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78894         (INITIAL_BUFFER_SIZE): Remove.
78895         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78896
78897 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78898
78899         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78900         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78901         Use the _ONCE methods, for efficiency.
78902         Check for fcntl.h.  In test program, include <errno.h>
78903         and <fcntl.h> if available.  Remove old K&R cruft from
78904         test program.  Check for common errors in GNU/Linux,
78905         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78906         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78907         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78908         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78909         name accordingly.
78910         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78911         accommodate new getcwd.c.
78912         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78913         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78914         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78915         that's all we need now.
78916
78917 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78918
78919         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78920         argp-parse.c depends on getopt internals, that means we should
78921         always use our getopt, to be on the safe side.
78922         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78923         order not to spoil the result of an eventual previous invocation
78924         of gl_GETOPT_SUBSTITUTE.
78925
78926 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78927
78928         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78929         redefinition warnings. To avoid them, include the defines
78930         in `#if !defined __need_getopt ... #endif'. The only place
78931         where __getopt_argv_const is used is in definitions
78932         of getopt_long and getopt_long_only below, which are as well
78933         protected by `#ifndef __need_getopt'.
78934         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78935         __need_getopt after including <stdio.h> and <unistd.h> These
78936         headers might have defined it.
78937
78938 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78939
78940         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78941
78942 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78943
78944         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78945         (futimens): New function, which uses futimes if available.
78946         (futimens, utimens): Support timespec==NULL, with same semantics
78947         as utime and utimens.
78948         * lib/utimens.h (futimens): New decl.
78949
78950 2004-11-23  Jim Meyering  <jim@meyering.net>
78951
78952         * lib/getopt_.h: Remove trailing blanks.
78953
78954 2004-11-23  Jim Meyering  <jim@meyering.net>
78955
78956         * lib/__fpending.c: Add comment.
78957
78958 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78959
78960         * modules/canonicalize (Depends-on): Add xreadlink.
78961         Problem reported by James Youngman.
78962
78963 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78966         New macros.
78967         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78968         optopt): Use them instead of invoking ## directly; otherwise, the
78969         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78970
78971 2004-11-19  Bruno Haible  <bruno@clisp.org>
78972
78973         * lib/strtok_r.c: Move comments from here...
78974         * lib/strtok_r.h: ... to here.
78975
78976 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78977
78978         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78979         implementations that mishandle size_t overflow.
78980
78981 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78982
78983         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78984         might fail.  Problem reported by Yoann Vandoorselaere.
78985         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78986         implementations that mishandle size_t overflow.
78987
78988 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78989
78990         * modules/canon-host (Depends-on): Add strdup.
78991
78992 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78993
78994         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78995
78996 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78997
78998         * lib/canon-host.c: Include "strdup.h".
78999         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79000         Use strdup instead of malloc/strcpy to duplicate strings.
79001
79002         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79003         (human_space_before_unit): New constant.
79004         * lib/human.c (human_readable): Support it.
79005
79006         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79007         (xgetcwd): Set errno correctly when failing.
79008         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79009         the failure is actually due to a PATH_MAX problem.
79010
79011         Further getopt changes to make it more likely that glibc will
79012         buy the changes back.
79013         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79014         (getopt): Use it, so to preserve glibc semantic
79015         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79016         when compiling for libc.
79017         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79018         (getopt_long, getopt_long_only): Use it.
79019
79020         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79021         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79022         (getopt): Argv is now char * const *, as per standard.
79023         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79024         not char *__getopt_argv_const *.
79025         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79026         _getopt_long_only_r): Likewise.
79027         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79028         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79029         _getopt_long_r, _getopt_long_only_r): Likewise.
79030         * lib/getopt_.h (__getopt_argv_const): Remove.
79031         (getopt): Argv is now char * const *, as per standard.
79032
79033         * lib/getdate.y (tORDINAL): New token.
79034         (day, relunit): Allow it for relative times.
79035         (relative_time_table): Use tORDINAL for ordinals.
79036
79037 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79038
79039         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79040         Document that "second" isn't allowed as an ordinal number.
79041
79042 2004-11-16  Jim Meyering  <jim@meyering.net>
79043
79044         * modules/closeout (Depends-on): Add fpending.
79045
79046 2004-11-15  Jim Meyering  <jim@meyering.net>
79047
79048         * lib/closeout.c: Include "__fpending.h" once again.
79049         Include <stdbool.h>.
79050         (close_stdout): Don't fail just because stdout was closed initially,
79051         since some programs don't write to stdout in the normal course of
79052         operation (other than --version and --help), and we don't want this
79053         function to make e.g. `touch file >&-' fail.
79054         But do fail if it was closed and someone has tried to write to it.
79055         E.g., `printf foo >&-' must fail.
79056
79057 2004-11-13  Jim Meyering  <jim@meyering.net>
79058
79059         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79060
79061 2004-11-12  Simon Josefsson  <jas@extundo.com>
79062
79063         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79064         small doc fix is still pending.
79065
79066 2004-11-11  Simon Josefsson  <jas@extundo.com>
79067
79068         * modules/strtok_r: New file.
79069
79070         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79071         strtok_r.
79072
79073 2004-11-11  Simon Josefsson  <jas@extundo.com>
79074
79075         * m4/strtok_r.m4: New file.
79076
79077         * m4/getopt.m4: Replace opterr.
79078
79079 2004-11-11  Simon Josefsson  <jas@extundo.com>
79080
79081         * lib/strtok_r.h, strtok_r.c: New file.
79082
79083 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79084
79085         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79086         of replacing opterr, getopt, etc.  This should handle the
79087         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79088
79089 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79090
79091         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79092         we can stop lying to compilers about the constness of argv when we
79093         are compiled outside glibc.
79094         (getopt, getopt_long, getopt_long_only): Use it.
79095         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79096         _getopt_internal, getopt): Likewise.
79097         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79098         _getopt_long_only_r): Likewise.
79099         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79100         _getopt_long_r, _getopt_long_only_r): Likewise.
79101
79102         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79103         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79104         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79105         the other external symbols.
79106         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79107         declaration, since the above renaming now works around collisions.
79108
79109 2004-11-11  Jim Meyering  <jim@meyering.net>
79110
79111         * lib/linebreak.c: Remove trailing blanks.
79112         * lib/alloca_.h: Likewise.
79113         * lib/acosl.c: Likewise.
79114         * lib/euidaccess.c: Likewise.
79115         * lib/allocsa.h: Likewise.
79116
79117 2004-11-10  Simon Josefsson  <jas@extundo.com>
79118
79119         * m4/getaddrinfo.m4: New file.
79120
79121 2004-11-10  Simon Josefsson  <jas@extundo.com>
79122
79123         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79124
79125 2004-11-10  Simon Josefsson  <jas@extundo.com>
79126
79127         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79128         getaddrinfo.
79129
79130         * modules/getaddrinfo: New file.
79131
79132 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79133
79134         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79135
79136 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79137
79138         * lib/mktime.c (SHR): New macro, which is a portable
79139         substitute for >> that should work even on Crays.
79140         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79141         Problem reported by Mark D. Baushke in
79142         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79143         * lib/getdate.y (SHR): Likewise.
79144         (tm_diff): Use it.
79145         * lib/strftime.c (SHR): Likewise.
79146         (tm_diff): Use it.
79147         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79148         quote_these_too, so that right shifts are well defined.  All uses
79149         changed.
79150
79151 2004-11-10  Jim Meyering  <jim@meyering.net>
79152
79153         Ensure that no close failure goes unreported.
79154         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79155         return early when it seems there's nothing to flush.
79156         Don't include __fpending.h.
79157
79158 2004-11-10  Jim Meyering  <jim@meyering.net>
79159
79160         * modules/closeout (Depends-on): Remove fpending.
79161
79162 2004-11-10  Jim Meyering  <jim@meyering.net>
79163
79164         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79165
79166 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79167
79168         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79169         gl_FUNC_STRFTIME.
79170         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79171         and AC_REQUIRE when possible, to avoid duplicate checks.
79172         Check for <wchar.h>.
79173
79174 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79175
79176         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79177
79178 2004-11-09  Bruno Haible  <bruno@clisp.org>
79179
79180         * m4/sockpfaf.m4: New file.
79181
79182 2004-11-05  Bruno Haible  <bruno@clisp.org>
79183
79184         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79185         Reported by Mark D. Baushke <mdb@cvshome.org>.
79186
79187 2004-11-04  Bruno Haible  <bruno@clisp.org>
79188
79189         2004-09-11  Bruno Haible  <bruno@clisp.org>
79190                 * allocsa.valgrind: New file.
79191         2004-02-06  Bruno Haible  <bruno@clisp.org>
79192                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79193                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79194                 Reported by Christopher Seip <chris.seip@hp.com>.
79195
79196 2004-11-04  Bruno Haible  <bruno@clisp.org>
79197
79198         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79199         (Makefile.am): Distribute it.
79200
79201 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79202
79203         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79204         with errno == ERANGE if the buffer is too small.
79205         Problem reported by Mark D. Baushke.
79206
79207 2004-11-03  Albert Chin  <china@thewrittenword.com>
79208             Paul Eggert  <eggert@cs.ucla.edu>
79209
79210         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79211         equivalent, substitute $ac_type for equivalent type rather than
79212         blindly using uint32_t *always* which won't work if uint32_t is not
79213         available.  Define _UINT32_T to work around typedef of uint32_t if
79214         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79215         2.5.1.
79216
79217 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79218
79219         * m4/jm-macros.m4: Sync from coreutils.
79220         (gl_MACROS): Check for mbrlen, for pathchk.
79221         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79222
79223 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79224
79225         * lib/xreadlink.c (MAXSIZE): New macro.
79226         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79227         size does not exceed MAXSIZE.  Avoid cast.
79228         As suggested by Mark D. Baushke in
79229         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79230         if readlink fails with buffer size just under MAXSIZE, try again
79231         with MAXSIZE.
79232
79233 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79234
79235         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79236
79237 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79238         and  Paul Eggert  <eggert@cs.ucla.edu>
79239
79240         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79241         (get_date): Overparenthesize to avoid GCC warning.
79242
79243 2004-11-02  Bruno Haible  <bruno@clisp.org>
79244
79245         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79246         returns void.
79247
79248 2004-11-02  Bruno Haible  <bruno@clisp.org>
79249
79250         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79251         function returns void.
79252
79253 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79254
79255         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79256         fflush_unlocked, flockfile, funlockfile, funlockfile,
79257         fputs_unlocked, putc_unlocked.
79258
79259 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79260
79261         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79262         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79263         already declared.
79264
79265 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79266
79267         * modules/getdate (Files): Add doc/getdate.texi.
79268         (Depends-on): Add setenv, xalloc.
79269
79270 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79271
79272         * lib/getdate.y: Add support for TZ="foo" within a date string.
79273         Fix some bugs near time_t boundaries.  Reject dates with
79274         out-of-range components, e.g., "Sept 31".
79275         Include <stdlib.h>, "setenv.h", "xalloc.h".
79276         (ISDIGIT_LOCALE): Remove; unused.
79277         Note that the TZ and time functions used here are not reentrant.
79278         (mktime_ok, get_tz): New functions.
79279         (TZBUFSIZE): New constant.
79280         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79281         This requires that we sometimes generate our own TZ="XXX..." setting.
79282
79283 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79284
79285         * doc/getdate.texi: New file, from coreutils with modifications for
79286         the new TZ parsing.
79287
79288 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79289
79290         * lib/mktime.c (not_equal_tm): Remove redundant check.
79291
79292 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79293
79294         * modules/regex (lib_SOURCES): Add regex.c.
79295         Reported by James Youngman in
79296         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79297
79298 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79299
79300         * lib/getdate.y: Use Bison 1.875 features, and some minor
79301         code cleanups.  This change does not affect semantics.
79302         Don't include <stdlib.h>; no longer needed.
79303         Don't include unlocked-io.h; only the "#if TEST" code uses
79304         stdio, and performance isn't crucial there.
79305         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79306         Bison 1.875 features as described below.
79307         All uses of "PC." replaced by "pc->".
79308         (YYSTYPE): Add a forward declaration.
79309         (yylex, yyerror): Use full prototypes in forward decls.
79310         Use "%pure-parser" rather than obsolescent "%pure_parser".
79311         Use %parse-param and %lex-param instead of obsolescent
79312         YYPARSE_PARAM and YYLEX_PARAM.
79313         (meridian_table, month_and_day_table, time_units_table,
79314         relative_time_table, time_zone_table, military_table,
79315         lookup_zone, lookup_word, get_date):
79316         Use NULL instead of 0 where appropriate.
79317         (to_hour): Avoid abort (), to avoid a dependency on
79318         stdlib.h.
79319         (yyerror, yylex): Now accepts parser_control * arg.
79320         (main) [TEST]: Use '\0' rather than 0 for char.
79321
79322 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79323
79324         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79325
79326 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79327
79328         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79329         It's now the caller's responsibility to handle the case where
79330         !HAVE_GETPAGESIZE && !defined getpagesize.
79331
79332         * lib/mktime.c (leapyear): Arg is long int, not int.
79333
79334 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79335
79336         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79337
79338 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79339
79340         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79341         missing.  Problem reported by James Youngman.
79342
79343 2004-10-16  Simon Josefsson  <jas@extundo.com>
79344
79345         * gnulib-tool: Fix comments.  Fix parse problem.
79346         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79347
79348 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79349
79350         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79351         implementation of getopt_long.  Problem reported by Alexander Taler in:
79352         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79353
79354 2004-10-15  Bruno Haible  <bruno@clisp.org>
79355
79356         * gnulib-tool: Untabify. Initialize supplied_libname.
79357         (func_usage): More homogenous output.
79358         (func_modules_transitive_closure, func_modules_to_filelist,
79359         func_emit_lib_Makefile_am): New functions.
79360         (func_import): New function, extracted from big case statement. Use
79361         func_get_license, func_modules_transitive_closure,
79362         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79363         opt_lgpl. Don't use test -a, as it's not portable.
79364         (func_create_testdir): Use func_modules_transitive_closure,
79365         func_modules_to_filelist, func_emit_lib_Makefile_am.
79366
79367 2004-10-15  Bruno Haible  <bruno@clisp.org>
79368
79369         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79370
79371 2004-10-15  Bruno Haible  <bruno@clisp.org>
79372
79373         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79374         the portions belonging to each module.
79375         Suggested by Derek Robert Price <derek@ximbiot.com>.
79376
79377 2004-10-12  Simon Josefsson  <jas@extundo.com>
79378
79379         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79380         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79381         to real functions.
79382
79383 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79384
79385         * modules/vsnprintf: New file.
79386
79387 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79388
79389         * m4/vsnprintf.m4: New file.
79390
79391 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79392
79393         * lib/vsnprintf.h: New file.
79394         * lib/vsnprintf.c: New file.
79395
79396 2004-10-11  Bruno Haible  <bruno@clisp.org>
79397
79398         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79399         vsnprintf.
79400
79401 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79402
79403         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79404
79405 2004-10-07  Bruno Haible  <bruno@clisp.org>
79406
79407         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79408         fits into the provided buffer.
79409
79410 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79411
79412         * lib/diacrit.c, diacrit.h: Add GPL notice.
79413
79414         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79415         notice.
79416         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79417         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79418         This avoids a potential constant-folding bug.
79419
79420 2004-10-05  Bruno Haible  <bruno@clisp.org>
79421
79422         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79423         for the declaration of strsep.
79424
79425 2004-10-05  Bruno Haible  <bruno@clisp.org>
79426
79427         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79428
79429 2004-10-04  Simon Josefsson  <jas@extundo.com>
79430
79431         * modules/memmem: New file.
79432         * tests/test-memmem.c: New file.
79433         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79434
79435 2004-10-04  Simon Josefsson  <jas@extundo.com>
79436
79437         * m4/memmem.m4: New file.
79438
79439 2004-10-04  Simon Josefsson  <jas@extundo.com>
79440
79441         * lib/memmem.h: New file.
79442         * lib/memmem.c: New file, taken from glibc.
79443
79444 2004-10-04  Simon Josefsson  <jas@extundo.com>
79445
79446         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79447         '#ifdef USE_UNLOCKED_IO'.
79448
79449 2004-10-04  Simon Josefsson  <jas@extundo.com>
79450
79451         * config/srclist.txt: Add memmem from glibc.
79452
79453 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79454
79455         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79456
79457         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79458         modules/exclude, modules/getdate, modules/getline,
79459         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79460         modules/getusershell, modules/linebuffer, modules/md5,
79461         modules/mountlist, modules/posixtm, modules/readtokens,
79462         modules/readutmp, modules/regex, modules/sha1,
79463         modules/version-etc, modules/yesno:
79464         Remove dependency on unlocked-io.
79465
79466 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79467
79468         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79469
79470         * m4/unlocked-io.m4: Add copyright notice.
79471         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79472
79473 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79474
79475         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79476         * lib/xmalloc.c (xmemdup): Likewise.
79477         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79478         XFREE): Remove these long-obsolescent macros.
79479         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79480         * lib/xstrdup.c: Remove.
79481
79482         * lib/regex.c (re_comp): Cast gettext return value to char *,
79483         Problem reported by Martin Neitzel via Mark D. Baushke.
79484
79485 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79486
79487         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79488         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79489         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79490         regex.c, sha1.c, version-etc.c, yesno.c:
79491         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79492         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79493         the includer's responsibility.
79494
79495         Sync from coreutils.
79496
79497         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79498         points to the start of a string, as the C Standard says the
79499         resulting behavior is undefined.
79500
79501         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79502         simple -> simple_backups, numbered_existing ->
79503         numbered_existing_backups, numbered -> numbered_backups
79504         to avoid shadowing problems.  All uses changed.
79505         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79506         * lib/backupfile.c (check_extension, numbered_backup):
79507         Rename locals to avoid shadowing 'basename'.
79508         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79509         once.
79510
79511         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79512         * lib/.cvsignore: Add getopt.h.
79513
79514 2004-10-04  Bruno Haible  <bruno@clisp.org>
79515
79516         * modules/README: New file.
79517         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79518         not a module.
79519
79520 2004-10-02  Jim Meyering  <jim@meyering.net>
79521
79522         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79523
79524 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79525
79526         * modules/strsep: New file.
79527
79528 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79529
79530         * m4/strsep.m4: New file.
79531
79532 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79533
79534         * lib/strsep.h: New file.
79535         * lib/strsep.c: New file.
79536
79537 2004-10-01  Simon Josefsson  <jas@extundo.com>
79538
79539         * lib/snprintf.c (snprintf): Handle size==0.
79540
79541 2004-10-01  Simon Josefsson  <jas@extundo.com>
79542             Bruno Haible  <bruno@clisp.org>
79543
79544         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79545         (snprintf): Declare 'args'.
79546
79547 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79548
79549         * lib/snprintf.c: Remove comments as to why each header is needed.
79550
79551 2004-10-01  Bruno Haible  <bruno@clisp.org>
79552
79553         * MODULES.html.sh: Add strsep.
79554
79555 2004-09-30  Simon Josefsson  <jas@extundo.com>
79556
79557         * modules/snprintf: New file.
79558
79559 2004-09-30  Simon Josefsson  <jas@extundo.com>
79560
79561         * m4/snprintf.m4: New file.
79562
79563 2004-09-30  Simon Josefsson  <jas@extundo.com>
79564
79565         * lib/snprintf.h, lib/snprintf.c: New files.
79566
79567 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79568
79569         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79570         (hol_entry_help): Never translate an empty string.
79571         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79572         * lib/argp.h (OPTION_NO_TRANS): New option.
79573
79574 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79575
79576         * modules/argp (Maintainer): Replace Simon Josefsson
79577         by Sergey Poznyakoff.
79578
79579 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79580
79581         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79582         changes merged back into glibc.
79583
79584 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79585
79586         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79587
79588 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79589
79590         * lib/xvasprintf.c: Include xalloc.h.
79591         (xvasprintf): Use xalloc_die, not xmalloc_die.
79592
79593 2004-09-29  Bruno Haible  <bruno@clisp.org>
79594
79595         * modules/alloca-opt: New file, derived from modules/alloca.
79596         * modules/allocsa: Depend on alloca-opt instead of alloca.
79597         * modules/setenv: Likewise.
79598         * modules/vasnprintf: Likewise.
79599         * MODULES.html.sh: Add alloca-opt.
79600
79601 2004-09-28  Simon Josefsson  <jas@extundo.com>
79602
79603         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79604         LGPL, and to replace license template from GPL to LGPL.
79605
79606 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79607
79608         * modules/dummy: Change license to LGPL.
79609
79610 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79611
79612         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79613
79614 2004-09-24  Simon Josefsson  <jas@extundo.com>
79615
79616         * modules/minmax (License): Change from GPL to LGPL.
79617
79618 2004-09-23  Simon Josefsson  <jas@extundo.com>
79619
79620         * gnulib-tool (--import): Typo.
79621
79622 2004-09-23  Simon Josefsson  <jas@extundo.com>
79623
79624         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79625
79626 2004-09-22  Bruno Haible  <bruno@clisp.org>
79627
79628         * modules/*: Add 'License' field.
79629         * gnulib-tool: Accept --extract-license option.
79630         (func_get_license): New function.
79631
79632 2004-09-21  Bruno Haible  <bruno@clisp.org>
79633
79634         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79635         Reported by Simon Josefsson.
79636
79637 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79638
79639         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79640         gl_AC_TYPE_LONG_LONG.
79641
79642 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79643
79644         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79645
79646 2004-09-18  Simon Josefsson  <jas@extundo.com>
79647         and  Paul Eggert  <eggert@cs.ucla.edu>
79648
79649         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79650         calls with autoreconf.  Define GL_LIB.
79651
79652 2004-09-14  Karl Berry  <karl@gnu.org>
79653
79654         * config/srclist.txt: unsync setenv.c, sigh.
79655
79656 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79657
79658         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79659         Problem reported by Bruno Haible in:
79660         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79661
79662 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79663
79664         * config/srclist.txt: Comment out argp-pvh.c.
79665
79666 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79667
79668         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79669         in case some system header has #define'd it.  Problem reported by
79670         Soeren D. Schulze in
79671         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79672
79673 2004-09-09  Karl Berry  <karl@gnu.org>
79674
79675         * regex.[ch]: delete from the root.  These were supposed to be
79676                 synced with emacs cvs, but this has not happened for about
79677                 a year, and anyway nothing else uses emacs regex.[ch].
79678                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79679                 lib/regex[.ch] is untouched.
79680
79681 2004-09-09  Bruno Haible  <bruno@clisp.org>
79682
79683         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79684
79685 2004-09-09  Bruno Haible  <bruno@clisp.org>
79686
79687         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79688         modifications.
79689         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79690
79691 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79692
79693         * modules/xvasprintf: New file.
79694         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79695
79696 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79697
79698         * lib/xvasprintf.h: New file.
79699         * lib/xvasprintf.c: New file.
79700         * lib/xasprintf.c: New file.
79701
79702 2004-09-08  Bruno Haible  <bruno@clisp.org>
79703
79704         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79705
79706 2004-09-08  Bruno Haible  <bruno@clisp.org>
79707
79708         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79709         length is > INT_MAX.
79710         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79711         more.
79712
79713 2004-09-08  Bruno Haible  <bruno@clisp.org>
79714
79715         * lib/stdint_.h: New file, taken from GNU clisp.
79716
79717 2004-09-08  Bruno Haible  <bruno@clisp.org>
79718             Oskar Liljeblad  <oskar@osk.mine.nu>
79719
79720         * modules/stdint: New file.
79721         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79722
79723 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79724
79725         Import from coreutils.
79726         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79727         strings on unbounded length.  alloca's performance benefits aren't
79728         that important here.
79729         (V_STRDUP): Remove.
79730         (parse_with_separator): New function, with most of the internals
79731         of the old parse_user_spec.  Allow user to omit both user and group,
79732         for compatibility with FreeBSD.
79733         Clone only the user name, not the entire spec.
79734         Do not set *uid, *gid unless entirely successful.
79735         Avoid memory leak in some failing cases.
79736         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79737         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79738         (parse_user_spec): Rewrite to use parse_with_separator.
79739
79740 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79741
79742         * modules/userspec: Don't depend on alloca.
79743
79744 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79745
79746         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79747
79748 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79749
79750         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79751         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79752         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79753
79754 2004-08-16  Simon Josefsson  <jas@extundo.com>
79755
79756         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79757         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79758         Add --dry-run for --import.
79759         Let user provided command line parameters override configure.ac
79760         settings.
79761
79762 2004-08-12  Simon Josefsson  <jas@extundo.com>
79763
79764         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79765         as discussed with Paul Eggert in threads rooted at
79766         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79767         and
79768         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79769         Before, the test was empty, and relied on ELIDE_CODE in source
79770         code.)
79771         (gl_PREREQ_GETOPT): New macro.
79772         (gl_GETOPT): Use them.
79773
79774 2004-08-12  Simon Josefsson  <jas@extundo.com>
79775
79776         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79777         * lib/getopt_.h: Renamed from getopt.h.
79778
79779 2004-08-12  Simon Josefsson  <jas@extundo.com>
79780
79781         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79782         Change default library name from libfoo to libgnu.
79783         Now, if you have a configure.ac that says:
79784                 gl_SOURCE_BASE(gl)
79785                 gl_M4_BASE(gl/m4)
79786                 gl_MODULES(error getopt etcetera)
79787                 gl_INIT
79788         you can import all you need by running:
79789                 ../gnulib/gnulib-tool --import
79790
79791         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79792         (Makefile.am): Rewrite, use logic from argz.
79793         (Include): Use <getopt.h> instead of "getopt.h".
79794
79795 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79796
79797         * modules/argp (Files): Add m4/unlocked-io.m4.
79798         (Depends-on): Add extensions.
79799
79800 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79801
79802         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79803         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79804         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79805         Check for program_invocation_name, program_invocation_short_name,
79806         flockfile, funlockfile, features.h, _getopt_long_only_r.
79807
79808 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79809
79810         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79811         its complicated substitute.
79812         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79813         and program_invocation_name.
79814         (__argp_basename) [!_LIBC]: Remove; the only use was
79815         replaced by its body.
79816         (__argp_short_program_name): Change condition from
79817         !defined __argp_short_program_name to
79818         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79819         to match argp-namefrob.h.
79820         (__argp_failure): Don't assume strerror_r returns char *.
79821         * lib/argp-parse.c (N_): Define unconditionally.
79822         (argp_default_options): Fill out initializers with 0 to avoid
79823         gcc warnings.
79824
79825 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79826
79827         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79828         getopt1.c.
79829
79830 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79831
79832         Merge from coreutils.
79833
79834         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79835
79836         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79837         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79838
79839 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79840
79841         Merge from coreutils.
79842
79843         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79844         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79845         for Reliant Unix 5.43.
79846
79847         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79848         (union fooround): Use uintmax_t, not long int.
79849         The rest is a merge from libc:
79850         [defined _LIBC]: Include <shlib-compat.h>.
79851         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79852
79853         * lib/settime.c (settime): Recode to avoid warning with
79854         Sun Forte C 6U2.
79855
79856         * lib/strverscmp.c: Convert to UTF-8.
79857
79858 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79859
79860         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79861         m4/uintmax_t.m4.
79862
79863 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         * modules/xalloc-die: New file.
79866         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79867
79868         * modules/md5 (Files): Add m4/uint32_t.m4.
79869         * modules/sha1: Renamed from modules/sha.
79870         (Files):
79871         Rename lib/sha.h to lib/sha1.h.
79872         Rename lib/sha.c to lib/sha1.c.
79873         Rename m4/sha.m4 to m4/sha1.m4.
79874         (lib_SOURCES): Likewise.
79875         (configure.ac): Rename gl_SHA to gl_SHA1.
79876         (Include): sha.h -> sha1.h.
79877
79878 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79879
79880         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79881         * m4/sha1.m4: Renamed from sha.m4.
79882         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79883
79884 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79885
79886         * lib/obstack.h (obstack_empty_p):
79887         Don't assume that chunk->contents is suitably aligned.
79888         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79889         Likewise. Problem reported by Benno in
79890         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79891
79892         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79893         readable.  This could be improved further but it'd take some work.
79894
79895 2004-08-08  Simon Josefsson  <jas@extundo.com>
79896
79897         * modules/xgethostname (Depends-on): Remove exit and error (not
79898         used).
79899
79900         * modules/getpass-gnu: Add getpass.h.
79901         (Depends-on): Add stdbool.
79902         * modules/getpass: Add getpass.h.
79903
79904 2004-08-08  Simon Josefsson  <jas@extundo.com>
79905
79906         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79907         Check getpass declaration.
79908
79909 2004-08-08  Simon Josefsson  <jas@extundo.com>
79910
79911         * lib/xgethostname.c: Don't include error.h (not used).
79912
79913         * lib/getpass.h: Add.
79914         * lib/getpass.c: Include getpass.h first.
79915
79916 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79917
79918         * lib/xalloc-die.c: New file.
79919         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79920         All uses removed.
79921         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79922         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79923         xalloc-die.c.
79924         (_, N_, xalloc_die): Move to xalloc-die.c.
79925         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79926         so that we needn't mess with xalloc_msg_memory_exhausted.
79927
79928         * lib/sha1.h: Renamed from sha.h.
79929         (SHA1_H): Renamed from _SHA_H.
79930         (sha1_ctx): Renamed from sha_ctx.
79931         (sha1_init_ctx): Renamed from sha_init_ctx.
79932         (sha1_process_block): Renamed from sha_process_block.
79933         (sha1_process_bytes): Renamed from sha_process_bytes.
79934         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79935         (sha1_read_ctx): Renamed from sha_read_ctx.
79936         (sha1_stream): Renamed from sha_stream.
79937         (sha1_buffer): Renamed from sha_buffer.
79938         * lib/sha1.c: Likewise; renamed from sha.c.
79939         Do not include <sys/types.h>.
79940         Include <stddef.h> rather than <stdlib.h>.
79941
79942 2004-08-08  Bruno Haible  <bruno@clisp.org>
79943
79944         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79945         FILESYSTEM_PREFIX_LEN.
79946         * lib/progreloc.c: Likewise.
79947         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79948
79949 2004-08-06  Simon Josefsson  <jas@extundo.com>
79950
79951         * modules/progname (Depends-on): Don't depend on stdbool.
79952
79953 2004-08-06  Simon Josefsson  <jas@extundo.com>
79954
79955         * modules/getsubopt: New file.
79956         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79957         getsubopt.
79958
79959 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79960
79961         More merge from coreutils.
79962
79963         * m4/utimens.m4, m4/utimecmp.m4: New files.
79964         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79965         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79966         prereq.m4, sha.m4: Import changes from coreutils.
79967
79968 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79969
79970         More merge from coreutils.
79971         * modules/raise, modules/readtokens0, modules/utimens:
79972         * modules/utimecmp, module/xnanosleep: New files.
79973         * modules/strftime: Add lib/strftime.h.
79974         Change include from <time.h> to "strftime.h".
79975         * modules/yesno: Add lib/yesno.h.
79976         * modules/backupfile: Remove lib/addext.c.
79977         * modules/euidaccess: Add stat-macros.h.
79978         * modules/canonicalize, modules/euidaccess,
79979         modules/filemode, modules/lchown, modules/makepath,
79980         modules/rmdir, modules/stat: Likewise.
79981
79982 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79983
79984         Merge from tar.
79985         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79986         SIZE_MAX is a valid preprocessor constant.
79987         (__argp_basename): Change from "#ifndef _LIBC"
79988         to "#ifndef __argp_short_program_name", so that
79989         we don't compile these functions for tar.
79990
79991         More merges from coreutils.
79992         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79993         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79994         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79995         * lib/addext.c: Remove; no longer needed.
79996         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79997         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79998         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79999         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80000         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80001         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80002         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80003         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80004         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80005         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80006         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80007         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80008         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80009         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80010         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80011         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80012         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80013         Import changes from coreutils.
80014
80015 2004-08-05  Simon Josefsson  <jas@extundo.com>
80016
80017         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80018
80019 2004-08-05  Simon Josefsson  <jas@extundo.com>
80020
80021         * m4/getsubopt.m4: New file.
80022
80023 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         Merge from coreutils.
80026
80027         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80028         * m4/getcwd-path-max.m4: New files.
80029
80030         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80031         FILESYSTEM_PREFIX_LEN ->
80032         FILE_SYSTEM_PREFIX_LEN.
80033         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80034         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80035         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80036         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80037
80038         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80039         prerequisite modules now handle the DOS stuff.
80040         Don't check for unistd.h.
80041
80042 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80043
80044         Merge from coreutils.
80045
80046         * lib/.gdb-history: Remove; this doesn't belong here.
80047
80048         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80049         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80050         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80051         * lib/getcwd.c: New files.
80052
80053         * lib/dirname.h: Include <stdbool.h>.
80054         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80055         for consistency with POSIX terminology.  All uses changed.
80056         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80057         (strip_trailing_slashes): Use bool for booleans.
80058         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80059
80060         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80061         sometimes returns a positive errno value even when it succeeds.
80062         (print_errno_message) [!LIBC]: Fall back on strerror if
80063         __strerror_r fails.
80064
80065         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80066         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80067         (longest_relative_suffix): New function.
80068         (path_concat): Use it.  Assume first argument is not NULL.
80069         Port to DOS.  Omit redundant separators.
80070         Report an error instead of returning NULL.
80071         Use mempcpy instead of memcpy.
80072         (xpath_concat): Remove: not declared or used.
80073
80074         * lib/same.h: Include <stdbool.h>
80075         (same_name): Return bool, not int.
80076         * lib/same.c (same_name): Likewise.
80077         (errno): Don't declare; we assume C89 or better now.
80078
80079         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80080         if not already defined.
80081
80082         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80083         * lib/dup-safer.c (errno): Likewise.
80084
80085 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80086
80087         Merge from coreutils.
80088         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80089         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80090         * modules/path-concat: Don't depend on strdup.
80091
80092 2004-08-03  Simon Josefsson  <jas@extundo.com>
80093
80094         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80095         * lib/progname.h: Don't include stdbool.h.
80096
80097 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80098
80099         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80100         * MODULES.html.sh (func_all_modules): Remove fatal.
80101
80102 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80103
80104         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80105
80106 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80107
80108         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80109         working.
80110
80111 2004-08-02  Simon Josefsson  <jas@extundo.com>
80112
80113         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80114         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80115         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80116
80117 2004-08-01  Simon Josefsson  <jas@extundo.com>
80118
80119         * lib/xgetdomainname.c: Include stdlib.h, for free().
80120
80121 2004-07-19  Bruno Haible  <bruno@clisp.org>
80122
80123         * MODULES.html.sh (func_all_modules): Add dummy.
80124
80125 2004-07-16  Simon Josefsson  <jas@extundo.com>
80126
80127         * modules/dummy: New file.
80128
80129 2004-07-16  Simon Josefsson  <jas@extundo.com>
80130
80131         * lib/dummy.c: New file.
80132
80133 2004-07-16  Bruno Haible  <bruno@clisp.org>
80134
80135         * lib/backupfile.h: Add extern "C" for C++.
80136         * lib/closeout.h: Likewise.
80137         * lib/copy-file.h: Likewise.
80138         * lib/findprog.h: Likewise.
80139         * lib/full-write.h: Likewise.
80140         * lib/pathname.h: Likewise.
80141         * lib/progname.h: Likewise.
80142         * lib/stpcpy.h: Likewise.
80143         * lib/stpncpy.h: Likewise.
80144         * lib/strcase.h: Likewise.
80145         * lib/strstr.h: Likewise.
80146         * lib/xalloc.h: Likewise.
80147
80148         * lib/mbswidth.h: Add extern "C" for C++.
80149         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80150
80151 2004-07-13  Robert Millan  <robertmh@gnu.org>
80152
80153         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80154
80155 2004-07-09  Simon Josefsson  <jas@extundo.com>
80156
80157         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80158         failed without this.)
80159
80160 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80161
80162         * modules/chown (Files): Add lib/fchown-stub.c, since
80163         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80164
80165 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80166
80167         * lib/fchown-stub.c: New file.
80168
80169 2004-06-24  Jim Meyering  <jim@meyering.net>
80170
80171         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80172
80173 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80174
80175         * modules/argz: Omit "#include".
80176
80177         * MODULES.html.sh (func_all_modules): Add calloc, to match
80178         2004-06-01 addition of calloc module.
80179
80180 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80181
80182         * m4/argz.m4: New file, which is autoupdated from libtool.
80183
80184 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80185
80186         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80187         libtool.
80188
80189 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80190
80191         * config/srclist-update: Don't insist on "USA." before the
80192         close-comment, as libtool omits the period and puts the */ on a
80193         separate line.
80194         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80195         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80196
80197 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80198
80199         * modules/argz: New file.
80200         * MODULES.html.sh (func_all_modules): Add argz.
80201
80202 2004-06-12  Jim Meyering  <jim@meyering.net>
80203         and  Paul Eggert  <eggert@cs.ucla.edu>
80204
80205         * modules/hash (Files): Add lib/xalloc.h.
80206         * modules/pipe (Depends-on): Add wait-process.
80207         * modules/stat (Depends-on): Add xalloc.
80208         * modules/userspec (Files): Add lib/userspec.h.
80209         * modules/xstrto
80210
80211         Upgrade from gettext-0.13.
80212         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80213         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80214         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80215
80216 2004-06-10  Jim Meyering  <jim@meyering.net>
80217
80218         * lib/calloc.c: New file.
80219
80220 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80221
80222         * lib/getdate.y (yylex): Allow space between sign and number.
80223         Problem reported by Dan Jacobson.
80224
80225 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80226
80227         Merge from coreutils CVS.
80228
80229         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80230         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80231         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80232         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80233         xstrtol.m4: Fix copyright date and/or serial number.
80234
80235         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80236         See if we need an fchown replacement.
80237         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80238         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80239         and use the replacement function if we detect either defect.
80240
80241         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80242         gl_UTIMECMP.
80243
80244 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80245         and  Jim Meyering  <jim@meyering.net>
80246
80247         Merge from coreutils CVS.
80248
80249         * lib/stat-macros.h: New file, with contents from file-type.h
80250         and coreutils' system.h.
80251         * lib/file-type.c: Include "stat-macros.h".
80252         * lib/file-type.h (file_type): Move all macro definitions to new file,
80253         stat-macros.h.
80254
80255         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80256         Wrap old code with this conditional.
80257         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80258         function that does not dereference symlinks.
80259         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80260
80261         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80262         dependency problems.
80263         (xreadlink): Accept new arg SIZE, for efficiency.
80264         All decls and uses changed.
80265         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80266
80267         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80268         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80269
80270         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80271         sysexits.h.
80272
80273 2004-06-01  Jim Meyering  <jim@meyering.net>
80274
80275         * m4/calloc.m4: New file.
80276
80277 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80278
80279         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80280         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80281         Also, fix a typo in a diagnostic.
80282
80283 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80284
80285         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80286         or AC_FUNC_REALLOC.
80287
80288 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80289
80290         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80291         macros to be defined.
80292         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80293         the allocator returns NULL because the requested size is zero.
80294
80295 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80296
80297         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80298         var.  Add comment explaining why libc still defines it.  This
80299         merges the following patch from glibc:
80300         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80301
80302 2004-05-20  Andreas Schwab  <schwab@suse.de>
80303
80304         * m4/free.m4: Replace free if it not known to work, not the other
80305         way round.
80306
80307 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80308
80309         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80310         present in glibc since revision 1.1 of this file.
80311         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80312         obstack_alignment_mask, obstack_alloc, obstack_base,
80313         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80314         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80315         obstack_grow0, obstack_init, obstack_int_grow,
80316         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80317         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80318         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80319         nonexistent functions.
80320
80321 2004-05-18  Karl Berry  <karl@gnu.org>
80322
80323         * config/srclist.txt: break link for vasnprintf.c.
80324
80325 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80326
80327         Port obstack to the AS/400, where pointers are 16 bytes wide and
80328         you cannot cast an integer to a valid pointer.  This patch is
80329         currently waiting to be integrated into glibc; see
80330         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80331
80332         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80333         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80334         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80335         (struct obstack): temp member is now a union of a pointer and
80336         an integer, instead of an integer.  All integer uses changed.
80337         This does not affect the physical layout of struct obstack,
80338         except on hosts (like the AS/400) where the size or alignment of
80339         void * is greater than that of ptrdiff_t.
80340         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80341         __STDC__)]: Store temporary in pointer member of union, not
80342         integer member.
80343         * lib/obstack.c: Include <stddef.h>, for offsetof.
80344         (struct fooalign): Remove; it doesn't need a name.
80345         (union fooround): Change double to long double, and add void *.
80346         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80347         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80348         not a macro.  Hence the values are always int; so remove all
80349         casts-to-int in uses.
80350
80351 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80352
80353         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80354         we can get this patch merged into glibc.
80355
80356 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80357             Paul Eggert  <eggert@cs.ucla.edu>
80358
80359         * m4/argp: Depend on alloca.
80360
80361 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80362             Paul Eggert  <eggert@cs.ucla.edu>
80363
80364         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80365         freecoding.
80366
80367 2004-05-17  Bruno Haible  <bruno@clisp.org>
80368
80369         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80370         precision that consists of a '.' followed by an empty digit string.
80371         Patch by Tor Lillqvist <tml@iki.fi>.
80372
80373 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80374
80375         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80376         for backward compatibility with older code.  We need our own
80377         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80378         it under some other name, and our alloca.h will define it.
80379
80380 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80381             Derek Price  <derek@ximbiot.com>
80382
80383         * lib/alloca.c: Include <alloca.h>, to get our interface.
80384         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80385         include <alloca.h> first.  Use C89 prototype for alloca; this
80386         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80387         Use #elif for simplicity, since we can assume C89 now.
80388         Don't try to source the system alloca.h since it will not be found
80389         and to prevent recursively including its replacement.
80390         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80391         * lib/regex.c: Likewise.
80392
80393 2004-05-16  Derek Price  <derek@ximbiot.com>
80394             Paul Eggert  <eggert@cs.ucla.edu>
80395
80396         getline cleanup.  This changes the getndelim2 API: both order of
80397         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80398         no delimiter).
80399
80400         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80401         interface does that.
80402         (getline): Always use getdelim, so that we don't have two
80403         copies of this code.
80404         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80405         if available.
80406         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80407         (GETNDELIM2_MAXIMUM): New macro.
80408         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80409         instead of the old practice of delim2==0.  All callers changed.
80410         Return -1 on overflow, instead of returning junk.
80411         Do not set *linesize unless allocation succeeds.
80412         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80413         that we include sys/types.h.
80414         * lib/getnline.h: Likewise.
80415         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80416         (getndelim2): Reorder arguments.
80417         * lib/getnline.c (getnline, getndelim):
80418         Don't discard the NMAX argument.
80419         (getnline): Invoke getndelim, to avoid code duplication.
80420         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80421         of (size_t) -1 by callers of the getnline family.
80422
80423 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80424
80425         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80426         Check for gettimeofday.
80427         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80428         Check for settimeofday, stime.
80429
80430 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80431
80432         * lib/nanosleep.c (suspended): Change its type from int to
80433         sig_atomic_t volatile.
80434         (first_call): Make it private to rpl_nanosleep, and have it
80435         be zero initially as that's a bit faster.
80436         (my_usleep): Round up fractional times instead of truncating them,
80437         as this is the usual meaning for 'sleep'.
80438
80439         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80440         doesn't work.
80441         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80442         (ENOSYS): Define if not defined.
80443         (settime): Fall back on stime if it exists and settimeofday fails.
80444         But don't bother with fallbacks if a method fails with errno == EPERM.
80445
80446 2004-05-11  Jim Meyering  <jim@meyering.net>
80447
80448         Prior to this change, the save_cwd caller required read access to the
80449         current directory on most systems (ones with the fchdir function).
80450
80451         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80452         fails, try write-only, and finally, resort to using xgetcwd.
80453
80454 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80455
80456         * lib/obstack.c, obstack.h: Import changes from libc.
80457
80458 2004-04-28  Bruno Haible  <bruno@clisp.org>
80459
80460         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80461         also implicitly appends .exe to executables.
80462         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80463         accepts Windows pathnames.
80464         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80465         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80466         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80467         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80468         Reported by Derek Robert Price <derek@ximbiot.com>.
80469
80470 2004-04-21  Karl Berry  <karl@gnu.org>
80471
80472         * config/srclist.txt (localcharset.c): break sync.
80473
80474 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80475
80476         * m4/host-os.m4: Add a copyright notice.
80477
80478 2004-04-20  Jim Meyering  <jim@meyering.net>
80479
80480         Change UTILS_ to gl_ in AC_DEFINE'd names.
80481         Change utils_- and jm_-prefixed variables, too.
80482         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80483         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80484         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80485
80486         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80487         Don't emit trailing blanks.
80488         Also rename jm_-prefixed variables to have gl_ prefix.
80489
80490         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80491         Also rename jm_-prefixed variables to have gl_ prefix.
80492
80493         * m4/jm-macros.m4: Reflect the renamings.
80494         * m4/prereq.m4: Likewise.
80495
80496 2004-04-20  Jim Meyering  <jim@meyering.net>
80497
80498         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80499         memory.
80500
80501 2004-04-20  Jim Meyering  <jim@meyering.net>
80502             Bruno Haible  <bruno@clisp.org>
80503
80504         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80505         memory when realloc fails.
80506
80507 2004-04-19  Jim Meyering  <jim@meyering.net>
80508
80509         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80510         now that readutmp.c may call `free (0)'.
80511
80512 2004-04-19  Bruno Haible  <bruno@clisp.org>
80513
80514         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80515         * m4/inttypes_h.m4: Likewise.
80516         * m4/stdint_h.m4: Likewise.
80517         * m4/intmax_t.m4: Likewise.
80518         * m4/uintmax_t.m4: Likewise.
80519
80520 2004-04-18  Jim Meyering  <jim@meyering.net>
80521
80522         * m4/prereq.m4: Don't forbid jm_ prefix.
80523
80524         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80525         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80526         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80527         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80528         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80529         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80530         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80531         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80532         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80533         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80534         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80535         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80536         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80537         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80538         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80539         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80540         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80541         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80542         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80543
80544 2004-04-18  Jim Meyering  <jim@meyering.net>
80545
80546         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80547         failure, don't leak memory and do call END_UTMP_ENT.
80548
80549 2004-04-16  Jim Meyering  <jim@meyering.net>
80550
80551         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80552         coreutils' stat program.
80553         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80554
80555 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80556
80557         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80558         C89.
80559         (CHAR_BIT): Remove, since we assume C89.
80560         Include <stdint.h> if available, as per current Autoconf CVS advice.
80561
80562 2004-03-31  Jim Meyering  <jim@meyering.net>
80563
80564         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80565         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80566         * m4/xalloc.m4: Likewise.
80567
80568 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80569
80570         Merge from coreutils.
80571
80572         * m4/inttostr.m4: New file.
80573         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80574         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80575         Require gl_CLOCK_TIME.
80576         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80577
80578 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80579
80580         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80581         not bool, to be more consistent with Unix conventions.
80582         Suggested by Bruno Haible.
80583
80584         Merge from coreutils.
80585
80586         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80587         * lib/umaxtostr.c: New files.
80588
80589         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80590         the usual <time.h> dance.
80591         (get_date): Change signature to support fractional time stamps.
80592         All callers changed.
80593         * lib/getdate.y: Include "getdate.h" first, as we can now
80594         assume C89 and don't need to worry about 'const'.
80595         Similarly, include "unlocked-io.h" near start, not in middle.
80596         Include <limits.h>.
80597         (textint.value): Use long int rather than int.
80598         (textint.digits): Use size_t rather than int.
80599         (BILLION, LOG10_BILLION): New constants.
80600         (parser_control): New member rel_ns.  Members day_ordinal,
80601         time_zone, month, day, hour, minutes, rel_year, rel_month,
80602         rel_day, rel_hour, rel_minutes, rel_seconds
80603         are now long int, not int.  Member seconds is now struct timespec,
80604         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80605         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80606         not int.
80607         (%union.intval): Now long int, not int.
80608         New member timespec.
80609         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80610         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80611         (spec): Now is a timespec or an item list.
80612         (timespec, items): New nonterminals.
80613         (time, rel, relunit, number, get_date):
80614         Add support for fractional seconds.
80615         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80616         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80617         (to_hour): First arg is now long int, not int.
80618         (to_year): Returns long int, not int.
80619         Don't treat year -70 like 70.
80620         (tm_diff): Returns long int, not int.
80621         (lookup_word): Use bool instead of int when appropriate.
80622         (yylex): Use size_t for count, not int.
80623         Detect overflow when parsing large integer constants.
80624         Add support for fractions.
80625         (get_date): Make pointers 'const' if possible.
80626         Use more-portable code to detect integer overflow.
80627         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80628         Don't use ctime; it's not reliable if the year has >4 digits.
80629
80630         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80631         This is for compatibility with BSD.
80632
80633         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80634         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80635         From coreutils' system.h.
80636
80637         * lib/userspec.c: Don't include "posixver.h".
80638         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80639         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80640         compatible extension.  Simplify code by removing a boolean int
80641         that was always nonzero if a string was nonnull.
80642
80643 2004-03-30  Jim Meyering  <jim@meyering.net>
80644
80645         Merge from coreutils.
80646
80647         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80648         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80649         on some systems one must include <grp.h> before it.
80650         Reported by Christian Krackowizer.
80651
80652 2004-03-30  Jim Meyering  <jim@meyering.net>
80653
80654         Merge from coreutils.
80655
80656         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80657
80658         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80659         an empty input stream.
80660
80661         * lib/readtokens.c: Include <stdbool.h>.
80662         (readtoken): Use `size_t' rather than int/long.
80663         All callers adjusted.
80664         Use `bool' rather than `int' where appropriate.
80665         Use memset rather than an explicit loop.
80666         Use x2nrealloc rather than xrealloc.
80667         Allow the use of `\0' as a delimiter.
80668         (readtokens): Likewise.
80669         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80670
80671 2004-03-30  Jim Meyering  <jim@meyering.net>
80672
80673         * m4/realloc.m4: Remove file, since now it does no more than
80674         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80675         the `configure.ac' section of module/realloc.
80676         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80677
80678 2004-03-30  Bruno Haible  <bruno@clisp.org>
80679
80680         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80681         nonnull.
80682
80683 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80684
80685         Merge changes to getloadavg.c from coreutils and Emacs.
80686
80687         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80688         Define to an expression, not to the empty string.
80689         Include cloexec.h and xalloc.h.
80690         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80691         Use set_cloexec_flag rather than rolling our own.
80692         * lib/cloexec.c, lib/cloexec.h: New files.
80693
80694 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80695
80696         * m4/cloexec.m4: New file.
80697
80698 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80699
80700         * lib/getopt.h: Sync with libc CVS.
80701
80702 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80703             Bruno Haible  <bruno@clisp.org>
80704
80705         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80706         mbswidth.
80707
80708 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80709             Bruno Haible  <bruno@clisp.org>
80710
80711         * lib/mbswidth.h: Include <wchar.h> only if
80712         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80713         <wchar.h>.
80714         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80715
80716 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80717
80718         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80719         Sync with libc CVS.
80720         * lib/getopt_int.h: New file, also synced from libc.
80721
80722 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80723
80724         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80725         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80726         Bring back getopt.c, getopt.h, getopt1.c.
80727
80728 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80729
80730         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80731         All uses changed.  Check for sa_sigaction member; this fixes
80732         a bug first reported by Jason Andrade in
80733         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80734
80735 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80736
80737         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80738         '#if' expressions.  Unlike the code it replaces, it does not
80739         depend on (defined _SC_PAGESIZE).  However, it does depend on
80740         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80741         first reported by Jason Andrade in
80742         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80743
80744 2004-02-25  Simon Josefsson  <jas@extundo.com>
80745
80746         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80747
80748 2004-02-25  Simon Josefsson  <jas@extundo.com>
80749
80750         * lib/strdup.h: New file.
80751         * lib/strdup.c: Include it.
80752         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80753         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80754
80755 2004-02-23  Karl Berry  <karl@gnu.org>
80756
80757         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80758         (from fencepost.gnu.org:/gd/gnuorg).
80759
80760 2004-02-23  Karl Berry  <karl@gnu.org>
80761
80762         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80763         * config/srclist.txt: add maintain/standards documents.
80764
80765 2004-02-18  Bruno Haible  <bruno@clisp.org>
80766
80767         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80768         Reported by Derek Robert Price <derek@ximbiot.com>.
80769
80770 2004-02-16  Karl Berry  <karl@gnu.org>
80771
80772         * config/mkinstalldirs, install-sh: update from automake.
80773
80774 2004-02-06  Karl Berry  <karl@gnu.org>
80775
80776         * m4/po.m4: update from gettext 0.14.1.
80777
80778 2004-02-06  Karl Berry  <karl@gnu.org>
80779
80780         * lib/config.charset: update from gettext 0.14.1.
80781
80782 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80783
80784         Add comments and code, prompted by suggestions from Bruno Haible
80785         for sh-quote.
80786         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80787         describing the enum quoting_style values.
80788         * lib/quotearg.c (quotearg_alloc): New function.
80789         (quotearg_buffer_restyled): Treat lone { and } as special.
80790         Treat = as special.  Work around bug with older shells
80791         that "see" a '\' that is really the 2nd byte of a multibyte char.
80792         Quote empty string with shell_quoting_style.
80793
80794 2004-02-03  Bruno Haible  <bruno@clisp.org>
80795
80796         * m4/pipe.m4: New file, from GNU gettext.
80797
80798 2004-02-03  Bruno Haible  <bruno@clisp.org>
80799
80800         * lib/pipe.h: New file, from GNU gettext.
80801         * lib/pipe.c: New file, from GNU gettext.
80802
80803 2004-01-27  Bruno Haible  <bruno@clisp.org>
80804
80805         * m4/execute.m4: New file, from GNU gettext.
80806
80807 2004-01-27  Bruno Haible  <bruno@clisp.org>
80808
80809         * lib/execute.h: New file, from GNU gettext.
80810         * lib/execute.c: New file, from GNU gettext.
80811         * lib/w32spawn.h: New file, from GNU gettext.
80812
80813 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80814
80815         Merge from diffutils.
80816
80817         * lib/file-type.c (file_type): Add typed memory objects.
80818         * lib/file-type.h (S_TYPEISTMO): New macro.
80819
80820         * lib/c-stack.h (c_stack_action): Remove argv argument.
80821         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80822         (die): Don't calculate message unless segv_action returns.
80823         (get_stack_location, min_address_from_argv, max_address_from_argv,
80824         volatile stack_base, volatile_stack_size): Remove.
80825         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80826         that every segmentation violation is a stack overflow.  (Ouch!)
80827         See Debian bug 136249 (still outstanding) for more info about why
80828         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80829
80830 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80831
80832         Exit-status fix from coreutils.
80833
80834         Use exit_failure consistently in place of EXIT_FAILURE,
80835         so that program exit statuses are consistent on failure.
80836
80837         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80838         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80839         * lib/argmatch.h: Comment fix to match the above.
80840         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80841         Now a macro referring to exit_failure, instead of a separate
80842         variable.  Include "exitfail.h" to get it.
80843         * lib/xstrtol.h: Include "exitfail.h".
80844         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80845
80846         * lib/long-options.c (parse_long_options): Use prototype
80847         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80848         for clarity.
80849
80850 2004-01-21  Jim Meyering  <jim@meyering.net>
80851
80852         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80853         so as not to conflict with a different-sized __mktime_internal
80854         function in GNU libc.
80855         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80856         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80857
80858 2004-01-20  Karl Berry  <karl@gnu.org>
80859
80860         * config/config.guess: update from config.
80861
80862         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80863
80864 2004-01-20  Bruno Haible  <bruno@clisp.org>
80865
80866         Safer stack allocation.
80867         * lib/setenv.c: Include allocsa.h.
80868         (alloca): Remove fallback definition.
80869         (freea): Remove macro.
80870         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80871         instead of freea.
80872
80873 2004-01-20  Bruno Haible  <bruno@clisp.org>
80874
80875         * m4/eealloc.m4: New file, from GNU gettext.
80876
80877 2004-01-20  Bruno Haible  <bruno@clisp.org>
80878
80879         * m4/allocsa.m4: New file, from GNU gettext.
80880
80881 2004-01-20  Bruno Haible  <bruno@clisp.org>
80882
80883         * lib/xallocsa.h: New file, from GNU gettext.
80884         * lib/xallocsa.c: New file, from GNU gettext.
80885
80886 2004-01-20  Bruno Haible  <bruno@clisp.org>
80887
80888         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80889
80890 2004-01-20  Bruno Haible  <bruno@clisp.org>
80891
80892         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80893         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80894         specially.
80895
80896 2004-01-20  Bruno Haible  <bruno@clisp.org>
80897
80898         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80899         patch.
80900
80901 2004-01-20  Bruno Haible  <bruno@clisp.org>
80902
80903         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80904
80905 2004-01-20  Bruno Haible  <bruno@clisp.org>
80906
80907         * lib/eealloc.h: New file.
80908
80909 2004-01-20  Bruno Haible  <bruno@clisp.org>
80910
80911         * lib/binary-io.h: Avoid warnings on Cygwin.
80912
80913 2004-01-20  Bruno Haible  <bruno@clisp.org>
80914
80915         * lib/allocsa.h: New file, from GNU gettext.
80916         * lib/allocsa.c: New file, from GNU gettext.
80917
80918 2004-01-18  Karl Berry  <karl@gnu.org>
80919
80920         * doc/gpl.texi, doc/lgpl.texi: new files.
80921
80922 2004-01-18  Karl Berry  <karl@gnu.org>
80923
80924         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80925         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80926
80927 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80928
80929         Merge from coreutils.
80930
80931         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80932         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80933         (gl_DEFAULT_POSIX2_VERSION): Move
80934         the documentation from 'configure' into 'config.hin',
80935         so that 'configure --help' isn't burdened by it and
80936         we don't have to worry about its formatting there.
80937         Reword the documentation so that it's more succinct
80938         and can be run together into a single paragraph.
80939         * m4/same.m4 (gl_SAME): Check for pathconf.
80940
80941 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80942
80943         Merge from coreutils.
80944
80945         * lib/posixver.c: Include posixver.h.
80946
80947         * lib/same.c: Include <stdbool.h>, <limits.h>.
80948         (_POSIX_NAME_MAX): Define if not defined.
80949         (MIN): New macro.
80950         (same_name): If file names are silently truncated, report
80951         that the file names are the same if they are the same after
80952         the silent truncation.
80953
80954         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80955         conversion function.
80956         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80957         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80958         longer needed.
80959
80960 2004-01-15  Jim Meyering  <jim@meyering.net>
80961
80962         Merge from coreutils.
80963
80964         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80965         if no library is required.
80966         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80967         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80968         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80969         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80970         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80971         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80972         value, $ac_cv_search_crypt, if it's "none required".
80973         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80974         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80975         not gl_FUNC_GETLOADAVG.
80976         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80977         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80978
80979 2004-01-15  Jim Meyering  <jim@meyering.net>
80980
80981         Merge from coreutils.
80982
80983         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80984         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80985         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80986
80987         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80988         optional configure-time default.
80989
80990         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80991
80992         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80993
80994 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80995
80996         Merge from coreutils.
80997
80998         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80999         value, $ac_cv_search_nanosleep, if it's "none required".
81000
81001 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81002
81003         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81004         with like-named macro in fnmatch.c.
81005         (EXT): Use an internal constant instead.
81006
81007         Merge fnmatch patches from glibc.
81008         * lib/fnmatch.c (mbsinit): Remove define.
81009         Add libc_hidden_ver (__fnmatch, fnmatch).
81010         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81011         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81012
81013 2004-01-14  Karl Berry  <karl@gnu.org>
81014
81015         * config/install-sh: update from automake.
81016
81017 2004-01-13  Karl Berry  <karl@gnu.org>
81018
81019         * config/install-sh: update from automake.
81020
81021 2004-01-09  Karl Berry  <karl@gnu.org>
81022
81023         * config/install-sh: update from automake.
81024
81025 2004-01-05  Karl Berry  <karl@gnu.org>
81026
81027         * config/config.{sub,guess}: update from config.
81028
81029 2003-12-31  Karl Berry  <karl@gnu.org>
81030
81031         * config/depcomp: update from automake.
81032
81033 2003-12-14  Karl Berry  <karl@gnu.org>
81034
81035         * lib/config.charset: update from gettext-runtime.
81036
81037 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81038
81039         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81040         Bug reported by Alfred M. Szmidt.
81041
81042 2003-12-03  Bruno Haible  <bruno@clisp.org>
81043
81044         * m4/gettext.m4: Upgrade from gettext-0.13.
81045         * m4/po.m4: Upgrade from gettext-0.13.
81046         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81047         * m4/intmax.m4: New file, from gettext-0.13.
81048         * m4/printf-posix.m4: New file, from gettext-0.13.
81049
81050 2003-11-29  Karl Berry  <karl@gnu.org>
81051
81052         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81053
81054 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81055             Bruno Haible  <bruno@clisp.org>
81056
81057         * lib/printf-parse.h: Don't include sys/types.h.
81058         (ARG_NONE): New macro.
81059         (char_directive): Change type of *arg_index fields to size_t.
81060         * lib/printf-parse.c: Don't include sys/types.h.
81061         (SSIZE_MAX): Remove macro.
81062         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81063         Remove unnecessary overflow check.
81064         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81065         fields.
81066
81067 2003-11-25  Bruno Haible  <bruno@clisp.org>
81068
81069         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81070
81071 2003-11-25  Bruno Haible  <bruno@clisp.org>
81072
81073         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81074         gt_TYPE_SSIZE_T.
81075
81076 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81077
81078         * modules/alloca: Remove dependency on xalloc.
81079
81080 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81081
81082         * lib/alloca.c: Remove dependency on xalloc module.
81083         (xalloc_die): Remove.
81084         (memory_full) [!defined emacs]: New macro.
81085         [!defined emacs]: Don't include xalloc.h.
81086         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81087         address arithmetic overflows.  Change datatypes a bit to avoid
81088         unnecessary casts.
81089
81090 2003-11-22  Jim Meyering  <jim@meyering.net>
81091
81092         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81093         s/size/size_t/.
81094
81095 2003-11-21  Karl Berry  <karl@gnu.org>
81096
81097         * config/config.{sub,guess}: update from config.
81098
81099 2003-11-18  Karl Berry  <karl@gnu.org>
81100
81101         * config/config.{sub,guess}: update from config.
81102
81103         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81104
81105 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81106
81107         * README: Mention that S+T cannot overflow if S is the size of
81108         an existing object and T is sufficiently small.
81109
81110 2003-11-17  Jim Meyering  <jim@meyering.net>
81111
81112         On systems without utime and without a utimes function capable of
81113         dealing with a NULL struct utimbuf* argument, this utime replacement
81114         could -- in unusual circumstances -- leak a file descriptor.
81115         * lib/utime.c: Include <unistd.h> and <errno.h>.
81116         (utime_null): Be sure to close `fd' and to preserve errno.
81117         Reported by Geoff Collyer via Arnold Robbins.
81118
81119 2003-11-17  Bruno Haible  <bruno@clisp.org>
81120
81121         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81122         (Depends-on): Add xsize.
81123
81124 2003-11-17  Bruno Haible  <bruno@clisp.org>
81125
81126         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81127
81128 2003-11-17  Bruno Haible  <bruno@clisp.org>
81129
81130         * lib/vasnprintf.c (alloca): Remove fallback definition.
81131         (freea): Remove definition.
81132         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81133         Reported by Paul Eggert.
81134
81135 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81136             Bruno Haible  <bruno@clisp.org>
81137
81138         Protect against address arithmetic overflow.
81139         * lib/printf-args.h: Include stddef.h.
81140         (arguments): Change type of field 'count' to size_t.
81141         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81142         'unsigned int' where appropriate.
81143         * lib/printf-parse.h: Include sys/types.h.
81144         (char_directive): Change type of *arg_index fields to ssize_t.
81145         (char_directives): Change type of fields 'count', max_*_length to
81146         size_t.
81147         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81148         (SSIZE_MAX): Define fallback value.
81149         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81150         instead of 'int' where appropriate. Check a_allocated, d_allocated
81151         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81152         * lib/vasnprintf.c: Include xsize.h.
81153         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81154         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81155         overflow. Avoid wraparound when converting a width or precision from
81156         decimal to binary.
81157
81158 2003-11-16  Bruno Haible  <bruno@clisp.org>
81159
81160         Update from GNU gettext.
81161         * lib/printf-parse.c: Generalize to it can be compiled for wide
81162         strings.
81163         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81164         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81165         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81166         SNPRINTF): New macros.
81167         Don't include <alloca.h> if the file is used inside libintl.
81168         (local_wcslen): New function, for Solaris 2.5.1.
81169         (VASNPRINTF): Use it instead of wcslen.
81170
81171 2003-11-16  Bruno Haible  <bruno@clisp.org>
81172
81173         * lib/xsize.h (xmax): New function.
81174         (xsum, xsum3, xsum4): Declare as "pure" functions.
81175
81176 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81177
81178         * modules/xalloc (Files): Undo latest change, since xalloc.h
81179         no longer needs SIZE_MAX or PTRDIFF_MAX.
81180
81181 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81182
81183         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81184         gl_PTRDIFF_MAX.
81185
81186 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81187
81188         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81189         "return", to pacify some unknown compiler.  Problem reported
81190         by Joerg Schilling.
81191
81192 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81193
81194         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81195         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81196         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81197         heuristic is just as accurate as far as we know, and it removes a
81198         dependency on size_max.m4 and ptrdiff_max.m4.
81199
81200 2003-11-11  Bruno Haible  <bruno@clisp.org>
81201
81202         * modules/xsize (Files): Add m4/size_max.m4.
81203         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81204
81205 2003-11-11  Bruno Haible  <bruno@clisp.org>
81206
81207         * m4/size_max.m4: New file.
81208         * m4/ptrdiff_max.m4: New file.
81209         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81210         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81211         (gl_XALLOC): Invoke it.
81212
81213 2003-11-11  Bruno Haible  <bruno@clisp.org>
81214
81215         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81216         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81217         defined.
81218
81219 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81220
81221         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81222         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81223         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81224         From Bruno Haible.
81225         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81226         not (size_t) -1, since it's defined here.
81227
81228 2003-11-09  Karl Berry  <karl@gnu.org>
81229
81230         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81231
81232 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81233
81234         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81235         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81236         Reject sizes of exactly SIZE_MAX bytes.
81237         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81238         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81239
81240 2003-11-05  Bruno Haible  <bruno@clisp.org>
81241
81242         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81243         SIZE_MAX defined in <limits.h> on Solaris.
81244
81245 2003-11-04  Jim Meyering  <jim@meyering.net>
81246
81247         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81248         variable names, rather than @VAR@.
81249         * modules/poll: Likewise.
81250
81251 2003-11-04  Bruno Haible  <bruno@clisp.org>
81252
81253         * modules/xsize: New file.
81254         * modules/linebreak: Depend on xsize.
81255         * MODULES.html.sh (func_all_modules): Add xsize.
81256
81257 2003-11-04  Bruno Haible  <bruno@clisp.org>
81258
81259         * m4/xsize.m4: New file.
81260
81261 2003-11-04  Bruno Haible  <bruno@clisp.org>
81262
81263         * lib/xsize.h: New file.
81264         * lib/linebreak.c: Include xsize.h.
81265         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81266         argument for overflow.
81267         Suggested by Paul Eggert.
81268
81269 2003-11-03  Karl Berry  <karl@gnu.org>
81270
81271         * config/config.{guess,sub}: update from config.
81272
81273 2003-11-03  Jim Meyering  <jim@meyering.net>
81274
81275         * modules/userspec (lib_SOURCES): Add userspec.h.
81276         (Include): Add "userspec.h".
81277         Improve description.
81278
81279 2003-11-03  Jim Meyering  <jim@meyering.net>
81280
81281         * lib/userspec.c: Include "userspec.h".
81282         * lib/userspec.h: New file.
81283
81284 2003-11-03  Bruno Haible  <bruno@clisp.org>
81285
81286         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81287
81288 2003-11-03  Bruno Haible  <bruno@clisp.org>
81289
81290         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81291         available, to avoid (extremely rare) race condition.
81292         Suggested by Paul Eggert.
81293
81294 2003-11-02  Karl Berry  <karl@gnu.org>
81295
81296         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81297
81298 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81299
81300         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81301         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81302         (read_filesystem_list): Set and use me_type_malloced.
81303         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81304         whatever the type happens to be), for brevity and consistency.
81305         Check for size calculation overflow on Alphas running OSF/1.
81306
81307 2003-10-31  Jim Meyering  <jim@meyering.net>
81308
81309         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81310
81311         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81312
81313 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81314             Bruno Haible  <bruno@clisp.org>
81315
81316         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81317         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81318
81319 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81320
81321         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81322         netbsd*-gnu*.  Suggested by Robert Millan.
81323
81324 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81325
81326         * modules/group-member: Depend on stdbool.
81327
81328 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81329
81330         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81331
81332 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81333
81334         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81335         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81336         after the 'gnu' in these cases.  This fixes some bugs in the
81337         previous change, and is based on suggestions by Robert Millan.
81338
81339 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81340
81341         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81342         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81343         no longer needed.
81344         * lib/quotearg.c (quotearg_n_options): Use it.
81345         * lib/group-member.c: Include <stdbool.h>.
81346         (free_group_info): Arg is now const *; don't free arg.
81347         (get_group_info): Now returns bool and accepts struct group_info *,
81348         rather than returning a malloc'ed struct group_info *.
81349         All uses changed.  Check for overflow in internal size calculation.
81350
81351         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81352         rather than xmalloc/xrealloc.
81353         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81354         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81355         conformance bug: the old code used a pointer after freeing the
81356         storage that it addressed.
81357         * lib/hash.c (hash_initialize): Simplify the code by using
81358         xalloc_oversized rather than doing it by hand.
81359         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81360         the buffer preserved.  Use free and xmalloc instead.
81361         * lib/quotearg.c (quotearg_n_options): Likewise.
81362         Use a simpler test for size overflow.  Don't use xalloc_oversized
81363         because unsigned int might be wider than size_t (!); this suggests
81364         that we should switch from unsigned int to size_t for slot numbers.
81365
81366 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81367
81368         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81369         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81370         NetBSD kernels.  Requested by Richard Stallman.
81371
81372 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81373
81374         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81375         to allocate the returned structure.  Do not allocate a subarray,
81376         as x2nrealloc will do that.
81377         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81378         instead of xnrealloc.
81379         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81380
81381 2003-10-27  Bruno Haible  <bruno@clisp.org>
81382
81383         * lib/stdbool_.h: Better support for BeOS.
81384
81385 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81386
81387         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81388         now uses inline.
81389
81390 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81391
81392         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81393         callers that want to do their own size-overflow checking.  Include
81394         <stdbool.h>, since xalloc_oversized returns bool.
81395         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81396         to use xalloc_oversized.
81397
81398         Add two functions x2realloc, x2nrealloc, for programs that grow
81399         arrays dynamically by doubling their sizes.
81400         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81401         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81402         New functions.
81403
81404         Port to C99 semantics for 'inline' of external functions.
81405         Bug reported by Bruno Haible.
81406         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81407         with the old contents of xnmalloc.
81408         (xnmalloc, xmalloc): Use it.
81409         (xnrealloc_inline): New static inline function,
81410         with the old contents of xnrealloc.
81411         (xnrealloc, xrealloc): Use it.
81412
81413         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81414         that.
81415
81416 2003-10-26  Karl Berry  <karl@gnu.org>
81417
81418         * config/srclist.txt (COPYING.DOC): no longer available from
81419         /gd/gnuorg; don't know where the ultimate source is.
81420
81421 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81422
81423         Fix several address-calculation bugs in the hash modules,
81424         plus some minor code cleanup.
81425
81426         * lib/hash.h: Include <stdbool.h>, for bool.
81427         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81428         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81429         hash_get_n_entries, hash_get_max_bucket_length,
81430         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81431         hash_rehash): Use size_t rather than unsigned.
81432         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81433         hash_get_n_buckets_used, hash_get_n_entries,
81434         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81435         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81436         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81437         Likewise.
81438         (SIZE_MAX): Define if not defined.
81439         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81440         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81441         hash_print):
81442         Use const * when possible.
81443         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81444         (check_tuning): Fix bug: if tuning parameters were very close to
81445         0 or 1, rounding errors could have caused subscript violations.
81446         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81447         (hash_initialize): Add 'fail:' label
81448         to free table and return NULL, and use it to simplify code.
81449         Use calloc rather than clearing the storage ourself.
81450         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81451         buffer size calculations.
81452         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81453         Include <stddef.h>, for size_t.
81454         * lib/hash-pjw.c (hash_pjw): Likewise.
81455         Switch to method described by Bruno Haible.
81456         Include <limits.h>, for CHAR_BIT.
81457         (SIZE_BITS): New macro.
81458
81459 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81460
81461         * m4/getline.m4 (AM_FUNC_GETLINE):
81462         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81463         hosts.  Problem reported by Derek Robert Price in
81464         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81465         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81466         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81467
81468 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81469
81470         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81471         ceiling the allocation at NMAX bytes rather than silently
81472         discarding input bytes before NMAX is reached.  This makes
81473         a difference only if NMAX exceeds SIZE_MAX / 2.
81474
81475         * lib/obstack.c: Merge from glibc.
81476         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81477         Add libc_hidden_def (_obstack_newchunk).
81478         (_obstack_free) [! defined _LIBC]: Remove.
81479         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81480         a clone of the function body.
81481         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81482         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81483
81484         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81485         glibc.
81486         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81487         arg to memcpy.
81488
81489         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81490         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81491         Don't use lvalue casts, as GCC plans to remove support for them
81492         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81493         was also present in the non-GCC version, indicating that this
81494         code had always been buggy and had never been widely used.
81495         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81496         Use the fast variant of each macro, rather than copying the
81497         definiens of the fast variant; that way, we'll be more likely to
81498         catch future bugs in the fast variants.
81499
81500 2003-10-20  Bruno Haible  <bruno@clisp.org>
81501
81502         * modules/wait-process: New file.
81503         * MODULES.html.sh (func_all_modules): Add wait-process.
81504
81505 2003-10-20  Bruno Haible  <bruno@clisp.org>
81506
81507         * m4/wait-process.m4: New file.
81508
81509 2003-10-20  Bruno Haible  <bruno@clisp.org>
81510
81511         * lib/wait-process.h: New file, from GNU gettext.
81512         * lib/wait-process.c: New file, from GNU gettext.
81513
81514 2003-10-19  Jim Meyering  <jim@meyering.net>
81515
81516         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81517         HPUX 10.20.
81518
81519 2003-10-18  Karl Berry  <karl@gnu.org>
81520
81521         * config/config.guess: update from config.
81522
81523 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81524
81525         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81526         (getgroups): First arg is int, not size_t.
81527         Don't let 'free' mangle errno.
81528
81529 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81530
81531         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81532
81533 2003-10-16  Karl Berry  <karl@gnu.org>
81534
81535         * config/config.{guess,sub}: update from config.
81536
81537 2003-10-16  Jim Meyering  <jim@meyering.net>
81538
81539         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81540         memcpy.
81541
81542 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81543
81544         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81545         (SIZE_MAX): Remove.
81546         (new_exclude, add_exclude_file): Initial size no longer needs to
81547         be a power of 2.
81548         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81549         our own address arithmetic overflow checking.
81550
81551         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81552         (fnmatch): Do not alloca more than 2000 wide characters;
81553         instead, use malloc for large buffers.
81554         Check for address arithmetic overflow, and return -1
81555         with errno set to ENOMEM in that case.
81556         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81557         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81558         instead, return -1.  Check for address arithmetic overflow.
81559
81560 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81561
81562         Handle invalid suffixes and overflow independently, so that
81563         callers can treat them independently as needed.  Fix some bugs in
81564         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81565         suffix for a human-readable blocksize.  The major caller-visible
81566         change is the addition of a new
81567         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81568         that both overflow and suffix chars were found.
81569
81570         * lib/human.c (humblock): Don't check separately for invalid suffix
81571         char; that is xstrtoumax's job (now that its bug is fixed).
81572         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81573         INTMAX_MAX]: New macros.
81574         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81575         TYPE_MAXIMUM): New macros.
81576         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81577         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81578         if overflow occurs, as it's what __strtol does and it's more useful
81579         in practice.
81580         (__xstrtol): If __strtol reports some error other than ERANGE,
81581         reflect it to the caller as LONGINT_INVALID.  If it reports
81582         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81583         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81584         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81585         value.
81586         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81587         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81588         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81589         [defined UINTMAX_MAX]: New macros.
81590
81591 2003-10-14  Bruno Haible  <bruno@clisp.org>
81592
81593         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81594
81595 2003-10-14  Bruno Haible  <bruno@clisp.org>
81596
81597         * m4/sig_atomic_t: New file, from GNU gettext.
81598         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81599
81600 2003-10-14  Bruno Haible  <bruno@clisp.org>
81601
81602         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81603         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81604         Also use volatile where needed.
81605
81606 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81607
81608         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81609         Change maintainer from Bruno Haible to 'all'.
81610
81611 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81612
81613         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81614
81615 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81616
81617         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81618         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81619         and define in terms of the other primitives.
81620         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81621         (SIZE_MAX): Define if not already defined.
81622         (array_size_overflow): New function.
81623         (xalloc_die): Abort instead of exiting if 'error' returns.
81624         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81625         (xmalloc, xrealloc): Use them.
81626         (xcalloc): Check for address arithmetic overflow.
81627         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81628         a bit faster than strcpy.
81629
81630 2003-10-10  Simon Josefsson  <jas@extundo.com>
81631
81632         * modules/argp (Depends-on): Add restrict and strcase.
81633
81634 2003-10-10  Simon Josefsson  <jas@extundo.com>
81635
81636         * m4/argp.m4: Add AC_C_INLINE.
81637
81638 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81639
81640         Merge getpass from libc, plus a few fixes.
81641
81642         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81643         Include <stdbool.h>.
81644         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81645         __fsetlocking to empty.
81646         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81647         do include <bits/libc-lock.h>.
81648         Do not include <fcntl.h>; not needed.
81649         [_LIBC]: Include <wchar.h>.
81650         (NOTCANCEL_MODE): New macro.
81651         (flockfile, funlockfile) [_LIBC]: New macros.
81652         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81653         [!_LIBC]: New macros.
81654         (call_fclose): New function.
81655         (getpass): Use it.  Save tty stream separately; this simplifies the
81656         code and makes it more reliable if stdin happens to equal stdout.
81657         Invoke __fsetlocking on tty.
81658         Handle thread cancellation if needed.
81659         Namespace cleanup (use __tcgetattr, __getline).
81660         Use bool for Booleans.
81661         [USE_IN_LIBIO]: Handle wide streams.
81662         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81663         stream might go where.
81664
81665         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81666         doesn't have to include <stdio.h> before us.
81667         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81668         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81669         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81670         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81671         if not declared, so that we can use getpass.c code from libc without
81672         rewriting it.
81673         (flockfile, ftrylockfile, funlockfile): New macros.
81674
81675 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81676
81677         * modules/getpass: Depend on stdbool.
81678
81679 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81680
81681         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81682
81683 2003-10-07  Karl Berry  <karl@gnu.org>
81684
81685         * config/config.{guess,sub}: update from config.
81686
81687 2003-10-06  Jim Meyering  <jim@meyering.net>
81688             Bruno Haible  <bruno@clisp.org>
81689
81690         This lets translators provide better translations for the
81691         "Written by ..." part of --version output.
81692         * lib/version-etc.h: Include stdarg.h.
81693         (version_etc_copyright): Declare as readonly.
81694         (version_etc): Make this function variadic with a NULL-terminated list
81695         of author name strings.
81696         (version_etc_va): New declaration.
81697         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81698         (version_etc_copyright): Declare as readonly.
81699         (version_etc_va): New function. Provide a different translatable string
81700         for each possible number of authors < 10. Abbreviate when there are 10
81701         authors or more.
81702         (version_etc): Make this function variadic. Call version_etc_va.
81703         Suggestion from Gary V. Vaughan.
81704
81705         * lib/long-options.h (parse_long_options): Change prototype: the
81706         authors string is moved to the end and becomes variadic.
81707         * lib/long-options.c: Include stdarg.h.
81708         (parse_long_options): Make this function variadic, too.
81709         Call version_etc_va, not version_etc.
81710
81711 2003-10-06  Bruno Haible  <bruno@clisp.org>
81712
81713         * modules/version-etc-2: Remove file.
81714         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81715
81716 2003-10-06  Bruno Haible  <bruno@clisp.org>
81717
81718         * modules/fatal-signal: New file.
81719         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81720
81721 2003-10-06  Bruno Haible  <bruno@clisp.org>
81722
81723         * m4/fatal-signal.m4: New file.
81724         * m4/signalblocking.m4: New file, from GNU gettext.
81725
81726 2003-10-06  Bruno Haible  <bruno@clisp.org>
81727
81728         * lib/version-etc-2.h: Remove file.
81729         * lib/version-etc-2.c: Remove file.
81730
81731 2003-10-06  Bruno Haible  <bruno@clisp.org>
81732
81733         * lib/fatal-signal.h: New file, from GNU gettext.
81734         * lib/fatal-signal.c: New file, from GNU gettext.
81735
81736 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81737
81738         * README: Rework advice for preventing empty .o files.
81739         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81740         not <sys/types.h>.
81741
81742 2003-10-04  Karl Berry  <karl@gnu.org>
81743
81744         * lib/argp*: update from libc.
81745
81746 2003-10-04  Karl Berry  <karl@gnu.org>
81747
81748         * config/config.{guess,sub}: update from config.
81749
81750 2003-10-02  Bruno Haible  <bruno@clisp.org>
81751
81752         * modules/lchown (Include): Add lchown.h.
81753         * modules/time_r (Include): Use "..." syntax.
81754         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81755
81756 2003-10-01  Simon Josefsson  <jas@extundo.com>
81757
81758         * MODULES.html.sh (func_all_modules): Move gethostname from section
81759         'based on' to section 'lacking' POSIX:2001.
81760
81761 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81762
81763         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81764         to output mode on the same stream.
81765
81766 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81767
81768         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81769         Fix arg typo in previous patch.
81770
81771 2003-09-28  Jim Meyering  <jim@meyering.net>
81772
81773         * lib/error.c: Correct cpp indentation.
81774
81775 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81776
81777         * modules/free: New file.
81778
81779 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81780
81781         * m4/free.m4: New file.
81782
81783 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81784
81785         * lib/minmax.h (MIN, MAX)
81786         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81787         Omit the special code that used __typeof__, since we worry that
81788         it could be more trouble than it's worth.  See:
81789         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81790         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81791
81792         * lib/free.c: New file.
81793
81794 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81795
81796         Trivial fixes to Makefile.am parts of module listings.
81797         * modules/strstr: Append strstr.h to lib_SOURCES.
81798         * modules/strcase: Likewise, for strcase.h.
81799
81800 2003-09-27  Karl Berry  <karl@gnu.org>
81801
81802         * config/mkinstalldirs: update from automake.
81803
81804 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81805
81806         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81807         (error_tail): Do not loop, reallocating temporary buffer, since
81808         the output cannot contain more wide characters than the input
81809         contains bytes, the size must be big enough already.  This avoids
81810         one potential size overflow calculation.  Check for size overflow
81811         when calculating temporary buffer size.  Free temporary buffer
81812         when done, if it was allocated with malloc; this plugs a memory
81813         leak.  Remove casts from void * to pointers, that are no longer
81814         needed now that we're assuming C89 or better.
81815
81816         Merge error changes from glibc.
81817
81818         * lib/error.c, error.h: Update copyright notice header to match glibc.
81819         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81820         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81821         Disable cancellation while printing error.
81822         * lib/error.h: Prepend __ to parameter names.
81823
81824 2003-09-26  Jim Meyering  <jim@meyering.net>
81825
81826         * lib/error.c (error_tail): Move some declarations
81827         into inner scope where the local variables are used.
81828
81829 2003-09-26  Bruno Haible  <bruno@clisp.org>
81830
81831         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81832         stpncpy().
81833         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81834
81835 2003-09-26  Bruno Haible  <bruno@clisp.org>
81836
81837         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81838         (stpncpy): Define as alias for gnu_stpncpy.
81839         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81840
81841 2003-09-25  Simon Josefsson  <jas@extundo.com>
81842
81843         * lib/xgetdomainname.h: New file.
81844         * lib/xgetdomainname.c: New file.
81845
81846 2003-09-25  Simon Josefsson  <jas@extundo.com>
81847             Bruno Haible  <bruno@clisp.org>
81848
81849         * modules/getdomainname: New file.
81850         * modules/xgetdomainname: New file.
81851         * MODULES.html.sh (func_all_modules): Add getdomainname,
81852         xgetdomainname.
81853
81854 2003-09-25  Simon Josefsson  <jas@extundo.com>
81855             Bruno Haible  <bruno@clisp.org>
81856
81857         * m4/getdomainname.m4: New file.
81858
81859 2003-09-25  Simon Josefsson  <jas@extundo.com>
81860             Bruno Haible  <bruno@clisp.org>
81861
81862         * lib/getdomainname.h: New file.
81863         * lib/getdomainname.c: New file.
81864
81865 2003-09-25  Karl Berry  <karl@gnu.org>
81866
81867         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81868
81869 2003-09-25  Karl Berry  <karl@gnu.org>
81870
81871         * config/install-sh: update from automake.
81872
81873 2003-09-25  Bruno Haible  <bruno@clisp.org>
81874
81875         * modules/version-etc-2: New file, from modules/version-etc with
81876         modifications.
81877         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81878
81879 2003-09-25  Bruno Haible  <bruno@clisp.org>
81880
81881         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81882         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81883
81884 2003-09-24  Simon Josefsson  <jas@extundo.com>
81885
81886         * modules/xgethostname: Add xgethostname.h.
81887
81888 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81889
81890         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81891         the buffer associated with the argument.  Bug reported by
81892         Simon Josefsson.
81893
81894 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81895
81896         * README: Document assumptions that 'int' is at least 32 bits
81897         wide, that integer arithmetic is 2's complement without overflow,
81898         that there are no holes in integer values, that adding sizes of
81899         two nonoverlapping objects can't overflow, and that all-bits-zero
81900         yields scalar zero.  Fix spelling and capitalization typos.
81901
81902 2003-09-19  Karl Berry  <karl@gnu.org>
81903
81904         * lib/argp.h: update from libc.
81905
81906 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81907
81908         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81909         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81910         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81911
81912 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81913
81914         * gnulib-tool: Use "test -h", not "test -L", for portability
81915         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81916         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81917         (sed_extract_prog): Issue s commands one-by-one, rather than
81918         using \| in one s command.
81919
81920 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81921
81922         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81923         input error, instead of returning NULL the next time we are called
81924         (and therefore losing track of errno).
81925
81926 2003-09-16  Bruno Haible  <bruno@clisp.org>
81927
81928         * gnulib-tool (func_create_testdir): Warn about duplicated
81929         dependencies.
81930
81931 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81932
81933         * modules/argmatch, modules/fatal, modules/obstack,
81934         modules/xalloc, modules/xgethostname: Sort dependencies by
81935         importance, not alphabetically.
81936
81937 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81938
81939         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81940         fails, so that the caller gets the proper errno.
81941
81942         * lib/readutmp.c (read_utmp): Likewise.
81943         Check for fstat error.  Close stream and free storage
81944         when failing.
81945
81946 2003-09-14  Karl Berry  <karl@gnu.org>
81947
81948         * config/srclist.txt (strdup.c): disable for c89 changes.
81949
81950 2003-09-14  Jim Meyering  <jim@meyering.net>
81951
81952         * lib/getloadavg.c: Correct cpp indentation.
81953         * lib/strdup.c: Likewise.
81954         * lib/vasnprintf.c: Likewise.
81955
81956 2003-09-14  Bruno Haible  <bruno@clisp.org>
81957
81958         * modules/fwriteerror: New file.
81959         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81960
81961 2003-09-14  Bruno Haible  <bruno@clisp.org>
81962
81963         * lib/fwriteerror.h: New file.
81964         * lib/fwriteerror.c: New file.
81965
81966 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81967
81968         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81969         modules/xgethostname, modules/xalloc: Depend on exit.
81970
81971 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81972
81973         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81974
81975         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81976         and AC_MINIX, too, so that their extensions are available.
81977
81978         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81979         This macro has been superseded by gl_BACKUPFILE.
81980
81981         More patches to assume C89 or better.
81982
81983         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81984
81985         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81986         unconditionally.
81987         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81988         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81989         Include <string.h>, <stdlib.h> unconditionally.
81990         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81991         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81992         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81993         headers or for string.h.
81994         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81995         or strtoul.
81996
81997         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81998         headers.
81999         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82000         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82001         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82002         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82003         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82004         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82005         memcpy, memset.
82006         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82007         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82008         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82009         strtol.
82010         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82011         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82012         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82013         strtoul.
82014
82015 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82016
82017         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82018         * lib/obstack.c [!defined _LIBC]: Likewise.
82019         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82020         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82021         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82022
82023         More changes to assume C89 or better.
82024
82025         * lib/error.c (error_tail): Assume vprintf.
82026
82027         * lib/argmatch.c (getenv): Remove decl.
82028         * lib/progreloc.c (get_full_program_name): Define via prototype.
82029         * lib/setenv.c (clearenv): Likewise.
82030         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82031         needed.
82032         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82033         (malloc, memcpy): Remove decls.
82034         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82035         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82036         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82037         (memcpy): Remove macro.
82038         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82039         (__P): Remove.  All uses removed.
82040         (PTR): Remove.  All uses changed to void *.
82041         (CHAR_BIT, NULL): Remove.
82042         (spaces, zeros, memset_space, memset_zero)
82043         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82044         Remove.
82045         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82046         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82047         Define with prototype.
82048         Remove now-unnecessary prototype decl.
82049         (extra_args_spec): Assume ANSI C.  All uses changed.
82050         (extra_args_spec_iso): Remove.
82051         (my_strftime, emacs_strftimeu): Define via prototype.
82052         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82053         unconditionally.
82054         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82055         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82056         (strtoul, strtol): Remove decls.
82057         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82058         LONG_MAX): Remove.
82059         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82060         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82061         (LOCALE_PARAM_PROTO): New macro.
82062         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82063         (INTERNAL (strtol), strtol): Define with a prototype.
82064         (PARAMS): Remove.  All uses removed.
82065         * lib/tempname.c: Include <string.h> unconditionally.
82066         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82067         * lib/xgethostname.c (main): Define with a prototype.
82068         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82069         Include <stdlib.h> unconditionally.
82070         (calloc, malloc, realloc, free): Remove decls.
82071         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82072         Include <stdlib.h> unconditionally.  Sort include file names.
82073         (strtod): Remove.
82074         (xstrtod): Define with a prototype.
82075         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82076         (strtol, strtoul): Remove decls.
82077
82078 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82079
82080         More patches to assume C89 or better.
82081         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82082         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82083         string.h, memchr, STDC_HEADERS.
82084
82085 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82086
82087         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82088         Include <stdlib.h>, <string.h> unconditionally.
82089         Remove now-unnecessary cast to char *.
82090         * lib/strnlen.c: Include <string.h> unconditionally.
82091         * lib/yesno.c (yesno): Define with a prototype.
82092
82093 2003-09-11  Bruno Haible  <bruno@clisp.org>
82094
82095         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82096
82097 2003-09-10  Jim Meyering  <jim@meyering.net>
82098
82099         * lib/error.c: Correct indentation of cpp directives.
82100
82101 2003-09-10  Bruno Haible  <bruno@clisp.org>
82102
82103         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82104         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82105         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82106         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82107         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82108         <stdlib.h> and <string.h> checks.
82109         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82110         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82111
82112 2003-09-10  Bruno Haible  <bruno@clisp.org>
82113
82114         * lib/strcspn.c: Include <string.h> unconditionally.
82115         * lib/strpbrk.c: Include <string.h> unconditionally.
82116         * lib/strstr.c: Include <string.h> unconditionally.
82117         * lib/unicodeio.c: Include <string.h> unconditionally.
82118         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82119         * lib/unsetenv.c: Likewise.
82120         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82121         * lib/yesno.c: Include <stdlib.h> unconditionally.
82122         (rpmatch): Add prototype.
82123
82124 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82125
82126         More patches to assume C89 or better.
82127         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82128         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82129         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82130         or for string.h.
82131         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82132         stdlib.h.
82133         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82134         C headers.
82135         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82136         string.h.
82137         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82138         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82139         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82140         or for string.h.
82141         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82142         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82143         C headers.
82144         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82145         memcpy.
82146         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82147         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82148         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82149         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82150         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82151         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82152         string.h, free.
82153         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82154         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82155         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82156         C headers, or for string.h.
82157         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82158         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82159         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82160         headers, memory.h, stdlib.h, string.h, strings.h.
82161         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82162         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82163         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82164         strchr.
82165         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82166         headers, memory.h, string.h.
82167         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82168         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82169         free.
82170         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82171         headers.
82172         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82173         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82174         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82175         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82176         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82177
82178 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82179
82180         More K&R removal.
82181
82182         * lib/acosl.c (main): Use a prototype.
82183         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82184         tanl.c: Likewise.
82185
82186         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82187
82188         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82189         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82190         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82191         with a prototype.
82192         * lib/getopt.c (const): Remove macro.
82193         Include <string.h> unconditionally.
82194         (my_index): Remove; all uses changed to strchr.
82195         (strlen): Remove decl.
82196         (exchange): Remove forward decl; no longer needed.
82197         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82198         Define with prototype.
82199         * lib/getopt1.c (const): Remove macro.
82200         (getopt_long, getopt_long_only, main): Define with prototype.
82201
82202         * lib/getugroups.c: Include <string.h> unconditionally.
82203
82204         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82205         (getusershell, setusershell, endusershell, readname, main):
82206         Define with prototypes.
82207
82208         * lib/group-member.c: Include group-member.h first.
82209         Include <stdlib.h> unconditionally.
82210
82211         * lib/hard-locale.c: Include hard-locale.h first.
82212         Include <stdlib.h>, <string.h> unconditionally.
82213
82214         * lib/hash.c (free, malloc): Remove decls.
82215         Include <stdlib.h> unconditionally.
82216
82217         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82218         (getenv): Do not declare.
82219
82220         * lib/idcache.c: Include <string.h> unconditionally.
82221
82222         * lib/long-options.c: Include long-options.h first, to test interface.
82223         Include <stdlib.h> unconditionally.
82224
82225         * lib/makepath.c: Include makepath.h first, to test interface.
82226         Include <stdlib.h> and <string.h> unconditionally.
82227
82228         * lib/linebuffer.c: Include <stdlib.h>.
82229         (free): Remove decl.
82230
82231         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82232         stddef.h. rpl_malloc returns void *, not char *.
82233         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82234         prototype.
82235
82236         * lib/md5.h: Include <limits.h> unconditionally.
82237         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82238         (__P): Remove; all uses removed.
82239         * lib/md5.c: Include "md5.h" first.
82240         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82241         md5_buffer, md5_process_bytes, md5_process_block):
82242         Define with prototypes.
82243         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82244         * lib/sha.c: Include "sha.h" first.
82245         Include <stdlib.h>, <string.h> unconditionally.
82246
82247         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82248         * lib/memcmp.c (__ptr_t): Likewise.
82249         * lib/memrchr.c (__ptr_t): Likewise.
82250         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82251         Include <string.h> unconditionally.
82252         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82253         * lib/memchr.c: Include <stdlib.h> unconditionally.
82254         * lib/memchr.c (LONG_MAX): Remove.
82255         * lib/memrchr.c (LONG_MAX): Likewise.
82256         * lib/memchr.c (__memchr): Define via a prototype.
82257         * lib/memrchr.c (__memrchr): Likewise.
82258         * lib/memcmp.c (__P): Remove, and remove all uses.
82259         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82260         Remove forward decls; no longer needed.
82261         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82262         Use types required by C89 in prototype.
82263
82264         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82265         * lib/savedir.c: Likewise.
82266         * lib/mkdir.c (free): Remove decl.
82267         * lib/rmdir.c (rmdir): Define with a prototype.
82268         * lib/savedir.c: Include savedir.h first, to test interface.
82269
82270         * lib/mktime.c (STDC_HEADERS): Remove.
82271         Include <stdlib.h>, <string.h> unconditionally.
82272
82273         * lib/modechange.c: Include <stdlib.h> unconditionally.
82274         (malloc): Remove decl.
82275
82276         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82277         (free): Remove decl.
82278
82279         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82280         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82281         (This type really should be intptr_t, but that's a C99ism.)
82282         (_obstack_memcpy): Remove: all uses changed to memcpy.
82283         Include <string.h> unconditionally.
82284         (struct obstack): Assume __STDC__ for types of members
82285         chunkfun, freefun, extra_arg.
82286         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82287         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82288         obstack_begin, obstack_specify_allocation,
82289         obstack_specify_allocation_with_arg, obstack_chunkfun,
82290         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82291         Remove unprototyped decls and the macros that use them.
82292         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82293         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82294         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82295         (defined __STDC__ && __STDC__)]:
82296         Remove nonprototyped code.
82297         Include <stdlib.h> unconditionally.
82298         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82299         _obstack_allocated_p, _obstack_free, obstack_free,
82300         _obstack_memory_used, print_and_abort):
82301         Define using prototypes.
82302         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82303         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82304         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82305         obstack_next_free, obstack_object_size, obstack_room) [0]:
82306         Remove unused, unprototyped code.
82307
82308         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82309
82310         * lib/physmem.c (physmem_total, physmem_available, main): Define
82311         with prototypes.
82312
82313         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82314         (main): Define with a prototype.
82315
82316         * lib/posixver.c (getenv): Remove decl.
82317
82318         * lib/putenv.c (malloc): Returns void *, not char *.
82319         Include <string.h> unconditionally.
82320         (strchr, memcpy, NULL): Do not define.
82321
82322         * lib/readtokens.c: Include readtokens.h first, to test interface.
82323         Include <stdlib.h>, <string.h> unconditionally.
82324         (init_tokenbuffer): Define with a prototype.
82325
82326         * lib/regex.c (PARAMS): Remove.  All uses removed.
82327         All uses of _RE_ARGS removed, too.
82328         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82329         unconditionally.
82330         (bzero): Assume memset exists.
82331         (memcmp, memcpy, NULL): Remove.
82332         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82333         char, or assignments to local vars of type signed char.
82334         (init_syntax_once, PREFIX(extract_number_and_incr),
82335         PREFIX(print_partial_compiled_pattern),
82336         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82337         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82338         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82339         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82340         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82341         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82342         wcs_compile_range, byte_compile_range, truncate_wchar,
82343         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82344         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82345         count_mbs_length, wcs_re_match_2_internal,
82346         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82347         PREFIX(alt_match_null_string_p),
82348         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82349         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82350         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82351         now-unnecessary declaration, if any.
82352         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82353         regcomp, regexec):
82354         Remove now-unnecessary casts among pointer types.
82355         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82356
82357         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82358         (free): Remove decl.
82359
82360         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82361
82362         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82363         (free): Remove decl.
82364
82365         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82366         * lib/xgetcwd.c: Likewise.
82367
82368         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82369         (free): Remove decl.
82370
82371         * lib/strchrnul.c (strchrnul): Define with a prototype.
82372         Fix bug: c_in was not converted to char before searching.
82373
82374         The following changes are not K&R related:
82375
82376         * lib/group-member.h: Include <sys/types.h>, so that this file is
82377         self-contained.
82378         * lib/makepath.h: Likewise.
82379
82380         * lib/getusershell.c (readname, default_index, line_size, readname):
82381         Use size_t, not int, for sizes.
82382         (readname): If the size overflows, report an error instead of
82383         looping forever.
82384
82385 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82386
82387         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82388         libc.
82389
82390 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82391
82392         * README: New section: portability guidelines.
82393
82394 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82395
82396         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82397         C89 spec.
82398
82399 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82400
82401         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82402
82403 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82404
82405         Assume C89 or better; remove K&R cruft.
82406         A few of these changes were first proposed by Derek Robert Price
82407         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82408
82409         * lib/addext.c: Include <string.h> unconditionally.
82410         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82411         Don't declare getenv or malloc.
82412
82413         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82414         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82415         (NULL): Remove.
82416         (find_stack_direction, alloca): Use prototypes.
82417
82418         * lib/atexit.c (atexit): Define using a prototype.
82419
82420         * lib/basename.c, dirname.c, stripslash.c:
82421         Include <string.h> unconditionally.
82422
82423         * lib/bcopy.c: Include <stddef.h>.
82424         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82425
82426         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82427
82428         * lib/error.h (error, error_at_line, error_print_progname)
82429         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82430         * lib/error.c: Include error.h first, to check interface.
82431         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82432         (VA_START): Remove; all uses changeed to va_start.
82433         (exit, strerror): Remove decls.
82434         (error_print_progname): Prototype uncondionally.
82435         Don't include <errno.h>; no longer needed.
82436         (private_strerror): Remove.
82437         (error_tail): Always define.
82438         (error, error_at_line): Assume C89 or better; always use prototypes.
82439         * lib/fatal.c: Include "fatal.h" first, to test interface.
82440         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82441         (VA_START): Remove; all uses changed to va_start.
82442         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82443         this case.
82444         (exit): Remove decl.
82445         (fatal): Prototype unconditionally.  Assume va_start works.
82446         Abort at end, to pacify gcc.
82447
82448         * lib/euidaccess.c (main): Define with a prototype.
82449
82450         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82451
82452         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82453
82454         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82455         prototypes.
82456         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82457         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82458         (getenv): Remove decl.
82459         (fnmatch): Define using a prototype.
82460         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82461         (FCT): Define using a prototype.
82462
82463         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82464
82465         * lib/gethostname.c: Include <stddef.h>.
82466         (gethostname): Define with prototype.  Length is size_t, not int.
82467
82468 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82469
82470         Assume C89 or better; remove K&R cruft.
82471         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82472         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82473         string.h, getenv, malloc.
82474         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82475         headers.
82476         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82477         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82478         do not check for strerror.
82479         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82480         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82481         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82482         do not check for doprnt or vprintf.
82483         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82484         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82485
82486 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82487
82488         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82489         getversion.c should have been removed then, but was accidentally
82490         preserved.
82491
82492         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82493         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82494
82495 2003-09-08  Karl Berry  <karl@gnu.org>
82496
82497         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82498                 config, forget about prep.
82499
82500         * config/depcomp, missing: update from automake.
82501
82502 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82503
82504         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82505         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82506
82507 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82508
82509         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82510         copy_tm_result.  Bug reported by Simon Josefsson in
82511         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82512
82513 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82514
82515         * m4/time_r.m4: New file.
82516         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82517         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82518         is. Check for timegm declaration.
82519         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82520         Do not check for gmtime_r.
82521         Replace mktime if __mktime_internal does not exist and if mktime
82522         hasn't been replaced already.
82523
82524 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82525
82526         * lib/time_r.c, lib/time_r.h: New files.
82527
82528         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82529         __localtime_r.
82530         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82531         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82532
82533         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82534         __gmtime_r.
82535         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82536         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82537         Include <time_r.h>.
82538
82539         * lib/timegm.c: Switch to glibc implementation, with the following
82540         changes:
82541         [defined HAVE_CONFIG_H]: Include <config.h>.
82542         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82543         (__mktime_internal) [!defined _LIBC]: New decl.
82544         (__gmtime_r) [!defined _LIBC]: New macro and function.
82545         (timegm): Use a prototype, since gnulib assumes C89.
82546         Do not bother declaring tmp to be const, as it's not really usefu.
82547         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82548         (timegm): Declare only if HAVE_DECL_TIMEGM.
82549
82550 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82551
82552         * MODULES.html.sh (func_all_modules): Add time_r.
82553         * modules/time_r: New file.
82554         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82555         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82556
82557 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82558
82559         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82560         Bug reported by Lute Kamstra in
82561         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82562
82563         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82564         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82565         course with correspondingly smaller numbers for tomorrow and
82566         yesterday.  From Tadayoshi Funaba.  Originally installed into
82567         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82568         coreutils merge?).
82569
82570 2003-08-31  Simon Josefsson  <jas@extundo.com>
82571
82572         * modules/timegm: New file.
82573         * MODULES.html.sh (func_all_modules): Add timegm.
82574
82575 2003-08-31  Simon Josefsson  <jas@extundo.com>
82576
82577         * m4/timegm.m4: New file.
82578
82579 2003-08-31  Simon Josefsson  <jas@extundo.com>
82580
82581         * lib/timegm.h: New file.
82582         * lib/timegm.c: New file.  Based on
82583         wget-1.8.2/src/http.c:mktime_from_utc.
82584
82585 2003-08-31  Karl Berry  <karl@gnu.org>
82586
82587         * lib/argp.h: update from libc.
82588
82589 2003-08-28  Bruno Haible  <bruno@clisp.org>
82590
82591         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82592         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82593         followed by '#define fnmatch fnmatch_posix' gives an error.
82594
82595 2003-08-28  Bruno Haible  <bruno@clisp.org>
82596
82597         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82598         warning on QNX, which defines O_BINARY to 000000.
82599
82600 2003-08-27  Jim Meyering  <jim@meyering.net>
82601
82602         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82603         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82604         would fail after 32.  Reported by Danny Levinson.  Details here:
82605         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82606
82607 2003-08-24  Bruno Haible  <bruno@clisp.org>
82608
82609         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82610         MSVC7 <stdio.h> is included later.
82611
82612 2003-08-22  Simon Josefsson  <jas@extundo.com>
82613
82614         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82615
82616 2003-08-20  Karl Berry  <karl@gnu.org>
82617
82618         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82619
82620 2003-08-20  Bruno Haible  <bruno@clisp.org>
82621
82622         * modules/progname: New file.
82623         * MODULES.html.sh (func_all_modules): Add progname.
82624
82625 2003-08-20  Bruno Haible  <bruno@clisp.org>
82626
82627         * lib/progname.h: New file, from GNU gettext.
82628         * lib/progname.c: New file, from GNU gettext.
82629         * lib/progreloc.c: New file, from GNU gettext.
82630
82631 2003-08-19  Jim Meyering  <jim@meyering.net>
82632
82633         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82634         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82635
82636 2003-08-19  Bruno Haible  <bruno@clisp.org>
82637
82638         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82639         more.
82640
82641 2003-08-19  Bruno Haible  <bruno@clisp.org>
82642
82643         * lib/xstrdup.c: Assume <string.h> exists.
82644
82645 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82646
82647         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82648         in makefile rules.
82649
82650 2003-08-18  Jim Meyering  <jim@meyering.net>
82651
82652         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82653         * m4/lib-ld.m4: Likewise.
82654
82655 2003-08-18  Jim Meyering  <jim@meyering.net>
82656
82657         * lib/setenv.h: Indent nested cpp directive.
82658         * lib/vasnprintf.c: Remove trailing blanks.
82659
82660 2003-08-17  Simon Josefsson  <jas@extundo.com>
82661
82662         * modules/xstrndup: New file.
82663         * MODULES.html.sh (func_all_modules): Add xstrndup.
82664
82665 2003-08-17  Simon Josefsson  <jas@extundo.com>
82666
82667         * modules/argp: Fix autoconf macro name. Add more dependencies.
82668
82669 2003-08-17  Simon Josefsson  <jas@extundo.com>
82670
82671         * m4/xstrndup.m4: New file.
82672
82673 2003-08-17  Simon Josefsson  <jas@extundo.com>
82674
82675         * m4/argp.m4: New file.
82676
82677 2003-08-17  Simon Josefsson  <jas@extundo.com>
82678             Bruno Haible  <bruno@clisp.org>
82679
82680         * lib/xstrndup.h: New file.
82681         * lib/xstrndup.c: New file.
82682
82683 2003-08-17  Bruno Haible  <bruno@clisp.org>
82684
82685         * modules/strndup (Files, Include): Add lib/strndup.h.
82686
82687 2003-08-17  Bruno Haible  <bruno@clisp.org>
82688
82689         * modules/euidaccess (Files): Add lib/euidaccess.h.
82690
82691 2003-08-17  Bruno Haible  <bruno@clisp.org>
82692
82693         * lib/strndup.h: New file.
82694
82695 2003-08-17  Bruno Haible  <bruno@clisp.org>
82696
82697         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82698         like AC_GNU_SOURCE.
82699         * modules/extensions (configure.ac): Comment out the invocation of
82700         gl_USE_SYSTEM_EXTENSIONS.
82701
82702 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82703
82704         Merges from coreutils, etc.
82705         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82706         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82707         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82708         fixing a typo.
82709         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82710         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82711
82712 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82713
82714         Document merge from coreutils.
82715         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82716         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82717         * modules/utime: Add m4/utimes-null.m4.
82718
82719 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82720
82721         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82722         space, undoing this 2003-08-12 change:
82723         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82724
82725 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82726
82727         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82728         strtoul.c from libc, undoing this 2003-08-12 change:
82729         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82730
82731 2003-08-16  Jim Meyering  <jim@meyering.net>
82732
82733         Merges from coreutils.
82734         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82735         prefix.  Adjust cache variables similarly.  Create 500 rather than
82736         just 300 files, to exercise bug on Darwin6.5, too.
82737         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82738         $missing_dir.
82739         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82740         AM_SYS_POSIX_TERMIOS.
82741         Reported by mkc@mathdogs.com.
82742         Also change use of $am_cv_sys_posix_termios
82743         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82744         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82745         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82746         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82747         in /proc/mounts until it finds one with matching device number.  This
82748         is unnecessary when the FILE argument *is* a mount point.  No stat call
82749         is necessary in that case.  So, disable the statvfs-testing code on
82750         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82751         as RedHat bug# 84846.
82752         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82753         to 1MB, so as not to render systems with no stack size limit (e.g.,
82754         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82755         Include <unistd.h>.  On some systems,
82756         it is required for the definition of _SC_PAGESIZE.
82757
82758 2003-08-16  Jim Meyering  <jim@meyering.net>
82759
82760         Merge from coreutils.
82761         * lib/xstrtoimax.c: #else #if -> #elif.
82762         * lib/xstrtoumax.c: Likewise.
82763
82764 2003-08-16  Jim Meyering  <jim@meyering.net>
82765
82766         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82767         * m4/utimes.m4: Removed.
82768         * m4/utimes-null.m4: Renamed from utimes.m4.
82769
82770         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82771         to 1MB, so as not to render systems with no stack size limit (e.g.,
82772         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82773         Include <unistd.h>.  On some systems,
82774         it is required for the definition of _SC_PAGESIZE.
82775
82776 2003-08-16  Jim Meyering  <jim@meyering.net>
82777         and Paul Eggert  <eggert@cs.ucla.edu>
82778
82779         Merges from coreutils, etc.
82780
82781         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82782         using the latest version from cvs.  This avoids problems with #line
82783         directives using a vendor (Sun) compiler.
82784         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82785         Don't set GETGROUPS_LIB here; now it's
82786         done via getgroups.m4's wrapper function.
82787         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82788         rather than just in sh-util/configure.in, so that the
82789         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82790         same.
82791         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82792         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82793         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82794         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82795         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82796         Remove code that is now done by the newly-required macros.
82797         Append $(EXEEXT) to DF_PROG.
82798         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82799         Do not invoke or require the following here,
82800         since prereq.m4 or some gnulib .m4 now does this for us:
82801         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82802         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82803         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82804         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82805         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82806         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82807         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82808         AC_FUNC_OBSTACK.
82809         Do not replace the following functions, as this is now the job
82810         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82811         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82812         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82813         atexit getpass, strdup, getpagesize.
82814         Replace 'raise'.
82815         Do not check for the following functions, as this is now the job
82816         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82817         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82818         setregid.
82819         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82820         Check for sys/sysctl.h.
82821         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82822         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82823         of checking for ssize_t ourselves.
82824
82825         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82826         Require every macro that gnulib/modules/* suggests for us.
82827         (jm_PREREQ_ADDEXT): New macro.
82828         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82829         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82830
82831         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82832         (gl_PHYSMEM): Use it.
82833         Also check for `table' function.
82834         Check for new headers and functions.
82835         Add check for sys/sysmp.h.
82836         With suggestions from Kaveh Ghazi.
82837         Ignore headers that are present but cannot be compiled.  This
82838         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82839         C 5.4.
82840
82841 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82842
82843         Document merge from coreutils.
82844         * modules/userspec: Depend on posixver.
82845         * modules/strftime: Depend on tzset.
82846
82847 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82848
82849         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82850         rather than tab, after '#' in shell-script copyright notices.
82851         Suggested by Bruno Haible.
82852
82853 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82854
82855         * config/srclist-update: Use three spaces, rather than tab, after '#'
82856         in shell-script copyright notices.  Suggested by Bruno Haible.
82857         Remove unnecessary parenthesization in regular expression.
82858
82859 2003-08-15  Jim Meyering  <jim@meyering.net>
82860
82861         Merge from coreutils.
82862         * lib/xgethostname.c: Include <stdlib.h>.
82863         (xghostname): Don't exit for anything other than memory-related
82864         failure; just return NULL.
82865         * lib/userspec.c: Include "posixver.h".
82866         (parse_user_spec): Accept `.' as a separator only
82867         in pre-POSIX-200112 mode.
82868         * lib/strtoimax.c: Use #elif rather than #else #if.
82869         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82870         Remove function, now that we can rely on a working tzset function.
82871         [!_LIBC]: Ensure that the required autoconf test has been run.
82872         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82873         Use underlying_strftime for %r.
82874         * lib/sha.c: Merge in some clean-up and optimization changes from
82875         glibc.
82876         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82877         Ensure that it is a multiple of 64.
82878         Rearrange loop exit tests so as to avoid performing an
82879         additional fread after encountering an error or EOF.
82880         * lib/realloc.c: Update copyright date.
82881
82882 2003-08-15  Jim Meyering  <jim@meyering.net>
82883         and Paul Eggert  <eggert@twinsun.com>
82884
82885         Merge from coreutils.
82886         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82887         member but strut utmpx does not.  Needed for AIX 4.3.3.
82888         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82889
82890 2003-08-15  Jim Meyering  <jim@meyering.net>
82891         and Paul Eggert  <eggert@cs.ucla.edu>
82892
82893         Merges from coreutils, etc.
82894         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82895         Require gl_FUNC_TZSET_CLOBBER.
82896         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82897         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82898         members.
82899
82900 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82901
82902         Help the merge from coreutils.
82903         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82904         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82905         * m4/tzset.m4: Use it too.
82906
82907 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82908
82909         * modules/tzset: New file.
82910
82911 2003-08-14  Jim Meyering  <jim@meyering.net>
82912
82913         Merges from coreutils.
82914         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82915         variable names, rather than @FNMATCH_H@.
82916         * modules/alloca: Likewise for $(ALLOCA_H).
82917
82918         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82919         the three copies of the literal target, `fnmatch.h'.
82920         * modules/alloca (alloca.h): Likewise.
82921
82922 2003-08-14  Jim Meyering  <jim@meyering.net>
82923
82924         Merge from coreutils.
82925         * m4/tzset.m4: New file.
82926         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82927         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82928         otherwise, AIX 5.1 systems would end up using the latter.
82929         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82930         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82931         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82932         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82933
82934 2003-08-14  Jim Meyering  <jim@meyering.net>
82935
82936         Merge from coreutils.
82937         * lib/obstack.h: Whitespace changes.
82938         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82939         and xcalloc return values.
82940         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82941         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82942         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82943         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82944         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82945         error from mntctl.
82946         Use mntctl's return value to drive the entry-processing loop, since
82947         we can't rely on the value of the vmt_length member in the last
82948         entry.  On some systems doing so could result in exhausting
82949         virtual memory.  Based in part on a patch from Mike Jetzer.
82950
82951 2003-08-14  Jim Meyering  <jim@meyering.net>
82952         and Paul Eggert  <eggert@twinsun.com>
82953
82954         Merges from coreutils, plus other fixes.
82955         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82956         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82957         for credits and details.  Thanks to Kaveh Ghazi for helping
82958         to keep these files in sync.
82959         (ARRAY_SIZE): Define it.
82960         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82961         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82962         (memcasecmp): Don't assume size_t fits in unsigned int.
82963         Remove casts and duplicate code.
82964         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82965         (memcpy): Remove definition.
82966         Merge in some clean-up and optimization changes from glibc.
82967         [BLOCKSIZE]: Move definition to top of file.
82968         Ensure that it is a multiple of 64.
82969         Rearrange loop exit tests so as to avoid performing an
82970         additional fread after encountering an error or EOF.
82971         * lib/md5.h (md5_uintptr): Define.
82972         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82973         return to the initial working directory.  Preserve errno
82974         for caller.
82975         * lib/idcache.c: Include "xalloc.h".
82976         (xmalloc, xrealloc): Remove decls.
82977         (getuser): Remove casts no longer required in C89.
82978         * lib/human.c: Include stdio.h, for sprintf.
82979         * lib/group-member.c: Include "xalloc.h".
82980         (xmalloc, xrealloc): Remove decls.
82981         (get_group_info): Remove casts no longer required in C89.
82982         * lib/getusershell.c (readname): Remove casts no longer required in
82983         C89.
82984         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82985         * lib/getline.c: Whitespace fix, from coreutils.
82986
82987 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82988
82989         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82990         Check for isascii.
82991
82992         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82993         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82994         Undo previous (whitespace-only) change.
82995
82996 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82997
82998         * lib/exclude.c: Include <ctype.h>
82999         (IN_CTYPE_DOMAIN): New macro.
83000         (is_space): New fn.
83001         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83002         and empty lines.
83003
83004         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83005         Undo previous (whitespace-only) change.
83006
83007 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83008
83009         * config/srclist-update: Change update back to the old behavior,
83010         leaving whitespace alone.  Use one 'sed' command rather than a
83011         pipeline.
83012         (fixlicense): Now a variable, not a function.
83013         (remove_trailing_blanks): Remove.
83014         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83015         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83016         Undo previous (whitespace-only) change.
83017
83018 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83019
83020         Merge from coreutils.
83021         * modules/euidaccess: Add lib_SOURCES, include for new
83022         file euidaccess.h
83023
83024 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83025
83026         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83027         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83028         Normalize leading white space and remove trailing white space.
83029
83030         Merge from coreutils
83031         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83032
83033         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83034         0.12.1.  These files are now being upgraded automatically by
83035         ../config/srclist-update.
83036
83037 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83038
83039         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83040         Normalize leading white space and remove trailing white space.
83041         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83042         notice, as per ../config/srclist-update.
83043
83044         Merge from coreutils.
83045         * lib/euidaccess.h: New file.
83046         * lib/euidaccess.c: Include it.
83047         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83048         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83049         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83050
83051 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83052
83053         * config/srclist-update: Add copyright notice.
83054         (remove_id_lines, remove_trailing_blanks): New constants.
83055         (fixfile): Use them to normalize spacing a bit in copied files.
83056         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83057         Normalize leading white space and remove trailing white space.
83058
83059         * config/texinfo.tex: Sync with texinfo.
83060
83061         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83062         strtoul.c from libc, to merge coreutils whitespace changes.
83063
83064         * config/srclist.txt: Get the following m4 files from gettext:
83065         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83066         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83067         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83068         wint_t.m4.
83069
83070 2003-08-12  Karl Berry  <karl@gnu.org>
83071
83072         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83073         been made.
83074
83075 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83076
83077         * modules/gnu-source, m4/gnu-source.m4:
83078         Remove; we're assuming Autoconf 2.54 or later now.
83079         Suggested by Bruno Haible.
83080         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83081
83082 2003-08-11  Bruno Haible  <bruno@clisp.org>
83083
83084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83085
83086 2003-08-11  Bruno Haible  <bruno@clisp.org>
83087
83088         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83089         (vasnprintf): Use it instead of wcslen.
83090
83091 2003-08-11  Bruno Haible  <bruno@clisp.org>
83092
83093         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83094         value to ensure that _Bool promotes to int. Use #define for _Bool when
83095         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83096
83097 2003-08-10  Karl Berry  <karl@gnu.org>
83098
83099         * lib/regex.h: update from libc (whitespace fix).
83100
83101 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83102
83103         Merge some files from coreutils.  These changes were
83104         originally made by Jim Meyering.
83105         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83106         many older Unixes require this.
83107         * lib/alloca.c (alloca): Remove cast to argument of free;
83108         no longer needed in C89.
83109         * lib/alloca_.h, regex.h: Fix white space to match
83110         what GNU indent does.
83111
83112 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83113
83114         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83115         apparently Emacs's Unicode mode got confused before my 2003-08-05
83116         checkin.
83117
83118 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83119
83120         * m4/extensions.m4: New file.
83121         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83122         Require gl_USE_SYSTEM_EXTENSIONS.
83123         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83124         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83125
83126 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83127
83128         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83129         * modules/extensions, modules/gnu-source: New files.
83130         * modules/timespec, modules/unlocked-io: Depend on extensions.
83131
83132 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83133
83134         * modules/restrict: New file.
83135         * MODULES.html.sh (func_all_modules): Add restrict.
83136         * modules/regex: Depend on restrict.
83137
83138 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83139
83140         * m4/restrict.m4: New file.
83141         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83142
83143 2003-08-07  Bruno Haible  <bruno@clisp.org>
83144
83145         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83146         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83147
83148 2003-08-07  Bruno Haible  <bruno@clisp.org>
83149
83150         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83151         makes the module 'getndelim2' compatible with the module 'getline'.
83152
83153 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83154
83155         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83156         byte with "\201" to avoid glitches when editing that source file
83157         with multi-gnome-terminal.
83158
83159 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83160
83161         * lib/bumpalloc.h: Remove.
83162
83163 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83164
83165         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83166         * modules/bumpalloc: Remove.
83167
83168 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83169
83170         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83171         GNU coding style.
83172
83173         Merge from coreutils.
83174         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83175         1. From glibc.
83176         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83177         from Karl Berry, implemented by Jim Meyering.
83178         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83179         from Dmitry V. Levin.
83180         Remove anachronistic cast of xrealloc.
83181         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83182         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83183         type. Otherwise, it wouldn't compile with at least /bin/cc on
83184         ymp-cray-unicos9.0.2.X.
83185         Combine two mostly-identical uses of alloca into one.
83186         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83187
83188 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83189
83190         [From Emacs.]
83191
83192         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83193         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83194         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83195         obsolete NLIST_NAME_UNION.
83196         [__GNU__]: Undef BSD and FSCALE.
83197         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83198
83199 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83200
83201         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83202         an enum type, so that it's guaranteed to promote to int.  See:
83203         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83204
83205 2003-08-03  Karl Berry  <karl@gnu.org>
83206
83207         * config/depcomp: update from automake.
83208
83209 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83210
83211         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83212         (strerror): Don't assume that a printable int fits in 14 bytes.
83213
83214 2003-07-31  Bruno Haible  <bruno@clisp.org>
83215
83216         * modules/getpass-gnu: New file.
83217         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83218
83219 2003-07-31  Bruno Haible  <bruno@clisp.org>
83220
83221         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83222
83223 2003-07-24  Karl Berry  <karl@gnu.org>
83224
83225         * config/missing: update from automake.
83226
83227 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83228             Bruno Haible  <bruno@clisp.org>
83229
83230         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83231         * lib/getline.c (getline, getdelim): Likewise.
83232         Remove _GNU_SOURCE define; now it's defined in config.h through
83233         m4/getline.m4.
83234
83235 2003-07-23  Karl Berry  <karl@gnu.org>
83236
83237         * config/config.sub: update from prep.
83238
83239 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83240
83241         * modules/xalloc (Depends-on): Add exitfail.
83242         * modules/xmemcoll: Likewise.
83243
83244 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83245
83246         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83247         over-parenthesization in macros.
83248
83249         Sync with coreutils.
83250
83251         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83252         required by C99.
83253
83254         Use `exit_failure' for xalloc and xmemcoll instead of their own
83255         private exit-failure variables.
83256         * lib/xalloc.h (xalloc_exit_failure): Remove.
83257         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83258         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83259         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83260         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83261         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83262
83263 2003-07-20  Jim Meyering  <jim@meyering.net>
83264
83265         * modules/closeout (Depends-on): Add exitfail.
83266         Suggestion from Bruno Haible.
83267
83268 2003-07-19  Karl Berry  <karl@gnu.org>
83269
83270         * config/config.sub: update from prep.
83271
83272 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83273
83274         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83275         Remove.
83276         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83277         to test that it can stand by itself.  Include "exitfail.h".
83278         Clients should set exit_failure instead.
83279         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83280
83281 2003-07-18  Bruno Haible  <bruno@clisp.org>
83282
83283         * modules/getndelim2: New file.
83284         * modules/getline: Share files with module getndelim2.
83285         * modules/getnline: Depend on getndelim2 instead of sharing files with
83286         it. Add getnline.c to lib_SOURCES.
83287         * MODULES.html.sh (func_all_modules): Add getndelim2.
83288
83289 2003-07-18  Bruno Haible  <bruno@clisp.org>
83290
83291         * m4/getndelim2.m4: New file.
83292         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83293         invoke gl_PREREQ_GETNDELIM2.
83294         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83295         gl_PREREQ_GETNDELIM2.
83296         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83297         gl_GETNDELIM2.
83298
83299 2003-07-18  Bruno Haible  <bruno@clisp.org>
83300
83301         * lib/getndelim2.h: New file.
83302         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83303         getndelim2.h.
83304         (getndelim2): Make non-static. Change return type to ssize_t.
83305         * lib/getline.h: Change argument names.
83306         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83307         * lib/getnline.c: Include getndelim2.h.
83308
83309 2003-07-18  Andreas Schwab  <schwab@suse.de>
83310
83311         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83312
83313 2003-07-17  Karl Berry  <karl@gnu.org>
83314
83315         * config/config.sub: update from prep.
83316
83317 2003-07-17  Bruno Haible  <bruno@clisp.org>
83318
83319         * modules/getnline: New file.
83320         * modules/getline: Add lib/getndelim2.c to source file list.
83321         * MODULES.html.sh (func_all_modules): Add getnline.
83322
83323 2003-07-17  Bruno Haible  <bruno@clisp.org>
83324
83325         * m4/getnline.m4: New file.
83326
83327 2003-07-17  Bruno Haible  <bruno@clisp.org>
83328
83329         * m4/Makefile.am.in: Remove file.
83330         * m4/Makefile.am: Remove file.
83331         * m4/Makefile.in: Remove file.
83332
83333 2003-07-17  Bruno Haible  <bruno@clisp.org>
83334
83335         * lib/getnline.h: New file.
83336         * lib/getnline.c: New file.
83337         * lib/getndelim2.c: New file, extracted from getline.c.
83338         (getndelim2): Renamed from getdelim2, with added nmax argument.
83339         * lib/getline.c: Include getndelim2.c.
83340         (getdelim2): Moved out to getndelim2.c.
83341         (getline, getdelim): Update.
83342
83343 2003-07-17  Bruno Haible  <bruno@clisp.org>
83344
83345         * lib/Makefile.am: Remove file.
83346         * lib/Makefile.in: Remove file.
83347
83348 2003-07-17  Bruno Haible  <bruno@clisp.org>
83349
83350         * configure.in: Remove file.
83351         * Makefile.in: Remove file.
83352
83353 2003-07-17  Bruno Haible  <bruno@clisp.org>
83354
83355         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83356
83357 2003-07-16  Karl Berry  <karl@gnu.org>
83358
83359         * config/srclist-update: was running fixlicense twice, which caused
83360                 texinfo.tex to be nullified for some reason.  Simplify,
83361                 $gplsrc is no longer needed as far as I can see?
83362
83363 2003-07-16  Jim Meyering  <jim@meyering.net>
83364
83365         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83366
83367 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83368
83369         * config/srclist.txt: Get the following files from gettext-runtime/intl
83370         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83371         ref-del.sin.  From Bruno Haible.
83372         * config/srclist-update (fixfile): Change grep pattern again, since the
83373         previous fix didn't work (there was another trailing $).  Use
83374         '[$]' to escape the $s.
83375
83376 2003-07-15  Karl Berry  <karl@gnu.org>
83377
83378         * lib/vasnprintf.c: update from gettext.
83379
83380 2003-07-15  Karl Berry  <karl@gnu.org>
83381
83382         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83383         gets expanded when surrounded by '$'.
83384
83385 2003-07-15  Jim Meyering  <jim@meyering.net>
83386
83387         * modules/save-cwd: Don't depend on error.  From Derek Price.
83388
83389 2003-07-15  Jim Meyering  <jim@meyering.net>
83390
83391         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83392
83393 2003-07-14  Simon Josefsson  <jas@extundo.com>
83394
83395         * modules/mempcpy: New file.
83396         * MODULES.html.sh (func_all_modules): Add mempcpy.
83397
83398 2003-07-14  Simon Josefsson  <jas@extundo.com>
83399
83400         * m4/mempcpy.m4: New file.
83401
83402 2003-07-14  Simon Josefsson  <jas@extundo.com>
83403
83404         * lib/mempcpy.h: New file.
83405         * lib/mempcpy.c: New file.
83406
83407 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83408
83409         * modules/getdate, modules/posixtm: Depend on mktime.
83410
83411 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83412
83413         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83414         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83415         unicodeio.c, unicodeio.h, unlocked-io.h:
83416         Switch from LGPL to GPL.
83417
83418 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83419
83420         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83421         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83422         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83423         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83424         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83425         updated automatically by ../config/srclist-update.  This changes
83426         their license from LPGL to GPL.
83427
83428 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83429
83430         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83431         assumed to refer to the root of the most recent stable gettext version.
83432         * config/srclistvars.sh: Add defaults for eggert.
83433         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83434         Match "This program" as well as "The program".  This is needed
83435         for gettext.
83436
83437 2003-07-14  Jim Meyering  <jim@meyering.net>
83438
83439         Don't emit diagnostics.  Let callers do that.
83440         * lib/save-cwd.c: Don't include "error.h".
83441         (save_cwd): Don't call error.  Ensure that errno is valid
83442         when returning nonzero.
83443
83444         * lib/save-cwd.h (restore_cwd): Update prototype.
83445         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83446         Simplify.  Don't call error upon failure.  Let callers do that.
83447         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83448         when auditing is enabled.  But don't bother updating the #if.
83449
83450 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83451
83452         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83453         it breaks C++ compilation.
83454         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83455
83456 2003-07-10  Simon Josefsson  <jas@extundo.com>
83457
83458         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83459
83460 2003-07-10  Jim Meyering  <jim@meyering.net>
83461
83462         * m4/clock_time.m4: Remove trailing blank.
83463         * m4/intmax_t.m4: Likewise.
83464
83465 2003-07-10  Jim Meyering  <jim@meyering.net>
83466
83467         * lib/vasnprintf.c: Remove trailing blanks.
83468         Make cpp indentation consistent.
83469
83470 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83471
83472         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83473         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83474         Switch from LGPL to GPL.
83475
83476 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83477
83478         * config/srclist.txt: Sort sublists.  Add
83479         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83480         that differ from gnulib for one reason or another; we'd like this list
83481         to be smaller but for now let's document what we have.
83482
83483 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83484
83485         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83486         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83487         and sweeter "eval x=$x".
83488         * config/srclist.txt: Get lib/argp* from glibc.
83489
83490 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83491
83492         * lib/mktime.c: Fix some boundary cases and remove need for floating
83493         point.
83494
83495         Issue a compile-time diagnostic if time_t is floating point, or if
83496         two's complement arithmetic is not in effect, or if arithmetic
83497         right shift does not propagate the sign.  These assumptions were
83498         all in the original code but they weren't checked.
83499
83500         (TIME_T_MIDPOINT, verify): New macros.
83501         (__isleap): Remove; it has integer overflow problems.
83502         (leapyear): New function, without those problems.
83503         (ydhms_tm_diff): Remove; splitting into two parts.
83504         (ydhms_diff): New function, containing the arithmetic part of
83505         the old ydhms_tm_diff function.  Issue a compile-time
83506         diagnostic if we are not using C99 integer division.
83507         Avoid casts when possible.
83508         (guess_time_tm): New function, containing the checking part of
83509         the old ydhms_tm_diff function.  Return the new value, rather than
83510         the difference between it and the old.  Accept a new argument T
83511         so that *T specifies the old value.  Check for overflow in the result.
83512
83513         (__mktime_internal): Use a time_t offset, not a long int offset.
83514         This undoes the 2003-06-04 change, which is no longer needed now
83515         that we have better overflow checking.
83516         (localtime_offset): Likewise.
83517
83518         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83519         and long are 64-bit but int is only 32-bit.
83520         (ydhms_diff): Use long int to store year1 and yday1.
83521         Issue a compile-time diagnostic if long int is not wide enough.
83522
83523         (__mktime_internal): Use long int to store adjusted year and yday.
83524         Use plain C rather than preprocessor commands, if that doesn't
83525         affect efficiency.
83526         Check for overflow (and try to repair) after each probe
83527         rather than checking only at the very end.  This avoids some bugs
83528         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83529         does not equal GMT offset at maximum time).
83530         Use integer to check for overflow rather than floating point; this
83531         is more portable to non-IEEE hosts, and is a tad faster.
83532         When we detect that we are oscillating between two values,
83533         don't check whether tm_isdst has the requested value, since
83534         we already know the answer.  When tm_isdst has the wrong value,
83535         use a different heuristic to find the right one, based on the
83536         extreme values actually observed in practice in tz2003a,
83537         rather than the (overly optimistic) "previous 3 calendar quarters".
83538
83539         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83540         "T const" to accommodate glibc style.
83541         (check_result): Use less-confusing report format.  "long" -> "long int.
83542         (main): Likewise.
83543         Don't loop if the iteration overflows time_t.
83544         Allow a negative step in the iteration.
83545
83546 2003-07-06  Karl Berry  <karl@gnu.org>
83547
83548         * config/depcomp: update from automake.
83549         * config/config.sub: update from prep.
83550
83551 2003-07-03  Karl Berry  <karl@gnu.org>
83552
83553         * config/config.guess: update from prep.
83554
83555 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83556
83557         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83558         xreadlink.c now includes it unconditionally.
83559
83560 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83561
83562         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83563         having it depend on HAVE_SYS_TYPES_H.
83564
83565 2003-07-01  Bruno Haible  <bruno@clisp.org>
83566
83567         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83568         <sys/types.h> should be sufficient.
83569         Reported by Paul Eggert.
83570
83571 2003-06-26  Karl Berry  <karl@gnu.org>
83572
83573         * config/depcomp: update from automake.
83574
83575 2003-06-26  Bruno Haible  <bruno@clisp.org>
83576
83577         * modules/human: Depend on module stdbool.
83578
83579 2003-06-25  Bruno Haible  <bruno@clisp.org>
83580
83581         * modules/readlink: New file.
83582         * modules/xreadlink: Depend on it.
83583         * MODULES.html.sh (func_all_modules): Add readlink.
83584
83585 2003-06-25  Bruno Haible  <bruno@clisp.org>
83586
83587         * m4/readlink.m4: New file.
83588
83589 2003-06-25  Bruno Haible  <bruno@clisp.org>
83590
83591         * lib/readlink.c: New file.
83592
83593 2003-06-22  Karl Berry  <karl@gnu.org>
83594
83595         * config/srclist.txt: update mkinstalldirs from automake.
83596         * config/mkinstalldirs: update.
83597
83598 2003-06-22  Bruno Haible  <bruno@clisp.org>
83599
83600         Portability to mingw32.
83601         * m4/ssize_t.m4: New file, from GNU gettext.
83602         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83603         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83604
83605 2003-06-22  Bruno Haible  <bruno@clisp.org>
83606
83607         * modules/safe-read: Add m4/ssize_t.m4.
83608         * modules/xreadlink: Add m4/ssize_t.m4.
83609
83610 2003-06-20  Bruno Haible  <bruno@clisp.org>
83611
83612         Assume C89, so PARAMS isn't needed.
83613         * lib/unicodeio.h (PARAMS): Remove.
83614         * lib/unicodeio.c: Don't use PARAMS.
83615
83616 2003-06-18  Karl Berry  <karl@gnu.org>
83617
83618         * config/config.{guess,sub}: update from prep.
83619
83620 2003-06-18  Jim Meyering  <jim@meyering.net>
83621
83622         Merge changes from coreutils.
83623         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83624         Remove explicit declarations of xmalloc and realloc.
83625         Include xalloc.h.
83626         (read_utmp): Remove anachronistic cast of xmalloc.
83627
83628 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83629
83630         Assume C89, so PARAMS isn't needed.
83631         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83632         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83633         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83634         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83635         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83636         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83637         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83638         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83639         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83640         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83641         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83642         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83643         no longer needed. Anyway, config.h should always be included before any
83644         other file.
83645
83646 2003-06-11  Simon Josefsson  <jas@extundo.com>
83647
83648         * modules/sysexits: New file.
83649         * MODULES.html.sh (func_all_modules): Add sysexits.
83650
83651 2003-06-11  Simon Josefsson  <jas@extundo.com>
83652
83653         * lib/sysexit_.h: New file.
83654
83655 2003-06-11  Derek Price  <derek@ximbiot.com>
83656
83657         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83658         necessary.
83659
83660 2003-06-11  Bruno Haible  <bruno@clisp.org>
83661
83662         * m4/sysexits.m4: New file.
83663
83664 2003-06-10  Simon Josefsson  <jas@extundo.com>
83665
83666         * lib/argp.h: New file, from glibc.
83667         * lib/argp-ba.c: New file, from glibc.
83668         * lib/argp-eexst.c: New file, from glibc.
83669         * lib/argp-fmtstream.c: New file, from glibc.
83670         * lib/argp-fmtstream.h: New file, from glibc.
83671         * lib/argp-fs-xinl.c: New file, from glibc.
83672         * lib/argp-help.c: New file, from glibc.
83673         * lib/argp-namefrob.h: New file, from glibc.
83674         * lib/argp-parse.c: New file, from glibc.
83675         * lib/argp-pv.c: New file, from glibc.
83676         * lib/argp-pvh.c: New file, from glibc.
83677         * lib/argp-xinl.c: New file, from glibc.
83678
83679 2003-06-10  Simon Josefsson  <jas@extundo.com>
83680
83681         * modules/strchrnul: New file.
83682
83683 2003-06-10  Simon Josefsson  <jas@extundo.com>
83684
83685         * modules/argp: New file.
83686
83687 2003-06-10  Simon Josefsson  <jas@extundo.com>
83688
83689         * m4/strchrnul.m4: New file.
83690
83691 2003-06-10  Simon Josefsson  <jas@extundo.com>
83692
83693         * lib/strchrnul.h: New file.
83694         * lib/strchrnul.c: New file.
83695
83696 2003-06-10  Bruno Haible  <bruno@clisp.org>
83697
83698         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83699
83700 2003-06-07  Karl Berry  <karl@gnu.org>
83701
83702         * config/config.{guess,sub}: update from prep.
83703
83704 2003-06-07  Jim Meyering  <jim@meyering.net>
83705
83706         * modules/strtod: Use $(...) notation, not @...@ for
83707         AC_REPLACE'd variables.
83708         * modules/localcharset: Likewise.
83709
83710 2003-06-07  Jim Meyering  <jim@meyering.net>
83711
83712         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83713         in place of my name in the copyright comment.
83714         Remove definition and uses of __P.
83715
83716         From coreutils.
83717         * lib/stat.c: Don't declare xmalloc explicitly.
83718         Instead, include "xalloc.h".
83719         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83720         xrealloc, and xcalloc return values.
83721         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83722         Improve comment.
83723         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83724
83725 2003-06-07  Bruno Haible  <bruno@clisp.org>
83726
83727         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83728         avoid AC_CONFIG_LINKS.
83729         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83730         fnmatch.h, to avoid AC_CONFIG_LINKS.
83731         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83732
83733 2003-06-07  Bruno Haible  <bruno@clisp.org>
83734
83735         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83736         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83737         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83738         directory.
83739         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83740         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83741         directory.
83742
83743 2003-06-06  Jim Meyering  <jim@meyering.net>
83744
83745         Merge from coreutils.
83746         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83747         Consolidate declarations and initializations of *_base* locals.
83748
83749         Merge from coreutils.
83750         This avoids a core dump on systems without GNU putenv,
83751         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83752         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83753         (unsetenv): New static function, from GNU libc.
83754         (rpl_putenv): Use it.
83755
83756         * lib/modechange.c: Remove trailing blanks.
83757
83758         Merge from coreutils.
83759         * lib/fsusage.c: Remove declaration of statfs.
83760         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83761
83762         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83763
83764 2003-06-06  Jim Meyering  <jim@meyering.net>
83765
83766         * lib/stdbool_.h: Renamed from stdbool.h.in.
83767
83768 2003-06-06  Jim Meyering  <jim@meyering.net>
83769             Bruno Haible  <bruno@clisp.org>
83770
83771         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83772         Adjust Makefile.am snippet not to redirect directly to target.
83773         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83774
83775 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83776
83777         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83778         mismatch, look in future quarters as well as past.  This fixes a
83779         bug when processing fall-backwards gaps immediately after a long
83780         period of daylight-saving time.
83781
83782         * lib/mktime.c: Assume freestanding C89 or better.
83783         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83784         (__P): Remove; not used.
83785         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83786         (mktime, not_equal_tm, print_tm, check_result,
83787         main): Use prototypes.  Use const * where appropriate.
83788         (main): Fix typo in testing code that uncovered by above changes.
83789         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83790
83791 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83792
83793         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83794         locale.h, localeconv.  This merges changes from coreutils.
83795
83796         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83797         It can be removed after the next Autoconf is released.
83798         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83799         needed.
83800
83801 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83802
83803         * lib/mktime.c: Fix Debian bug 177940
83804         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83805         (localtime_offset): Now long int, not time_t, because we want it
83806         to be guaranteed to be signed.  All uses changed.
83807         (__mktime_internal): If overflow would occur when adding offset,
83808         don't add it.
83809
83810         Merge 'human' changes from coreutils.  Rewrite to support
83811         locale-specific notations like thousands separators.
83812         * lib/human.c: Simplify authorship notice.
83813         Include human.h immediately after config.h.
83814         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83815         <limits.h>: Do not include, since human.h does.
83816         (SIZE_MAX, UINTMAX_MAX): New macros.
83817         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83818         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83819         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83820         (power_letter): Renamed from suffixes.
83821         (generate_suffix_backwards): Remove.
83822         (adjust_value): Now takes int style (because of human.h changes)
83823         and long double value (for greater precision on some platforms).
83824         (group_number): New function.
83825         (human_readable): Use it.  Use integer options, not enum.
83826         Put the options before the sizes in the arg list.
83827         Support all the new options.
83828         The old human_readable function has been removed;
83829         use inttostr.h instead.
83830         (human_readable, default_block_size, humblock):
83831         Use uintmax_t, not int, for block sizes.
83832         (human_readable_inexact, block_size_types): Remove.
83833         (block_size_opts): New constant.
83834         (human_options): Renamed from human_block_size, with new signature
83835         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83836         * lib/human.h: Add copyright and authorship notice.
83837         Include <limits.h> and <stdbool.h> unconditionally.
83838         (PARAMS): Remove.  All uses removed.
83839         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83840         (enum human_inexact_style): Remove tag; now a nameless enum.
83841         (human_floor, human_ceiling, human_round_to_even): Now have
83842         values 2, 0, 1 rather than -1, 1, 0.
83843         (human_group_digits, human_suppress_point_zero, human_autoscale,
83844         human_base_1024, human_SI, human_B): New constants.
83845         (human_readable_inexact, human_block_size): Remove.
83846         (human_readable): Size args are now uintmax_t, not int.
83847         (human_options): New decl.
83848
83849         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83850         unnecessary now that we assume C89 or better.  This change
83851         imported from coreutils.
83852
83853         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83854         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83855         in the 2003-05-30 sync from glibc.
83856
83857         .h files should stand alone, but we shouldn't include <sys/types.h>
83858         if we can get away with just <stddef.h>.
83859
83860         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83861         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83862         rather than <sys/types.h>, as we merely need size_t.
83863         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83864         to get size_t.
83865         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83866         Include <stdio.h>, to get FILE.
83867         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83868         memcasecmp.h has included <stddef.h> and all we need is size_t.
83869         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83870         our interface, instead of including <sys/types.h>
83871
83872 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83873
83874         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83875         now, as glibc mktime is buggy on non-glibc systems.
83876
83877 2003-06-03  Karl Berry  <karl@gnu.org>
83878
83879         * config/config.sub: update from prep.
83880
83881 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83882
83883         [from coreutils]
83884         Fix some minor time-related bugs with POSIX time arguments.
83885         Some valid time stamps were being rejected (notably -1, and
83886         time stamps before 1900 on 64-bit hosts).  And some invalid
83887         time stamps were being accepted, e.g. September 31.
83888
83889         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83890         that we can return (time_t) -1 successfully.
83891         * lib/posixtm.c: Likewise.
83892         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83893         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83894         (t): Remove static var.
83895         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83896         of static var.  All uses changed.
83897         (year): Do not reject years before 1900; they can occur with
83898         64-bit time_t.
83899         (posix_time_parse): Do not check for out-of-range components;
83900         that is now the caller's responsibility, since our checks were
83901         only approximations.
83902         (posixtime): Use mktime to check for out-of-range components,
83903         since it knows them exactly.
83904         If mktime returns (time_t) -1, check whether an error actually occurred
83905         by invoking localtime on -1.
83906         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83907         posixtime failures better.
83908         Improve the test data (in comments only).
83909
83910 2003-06-02  Karl Berry  <karl@gnu.org>
83911
83912         * config/mkinstalldirs (version): new variable.
83913         (--version): new option.
83914         (usage): improve message.
83915
83916 2003-05-30  Karl Berry  <karl@gnu.org>
83917
83918         * lib/mktime.c: update from libc.
83919
83920 2003-05-30  Bruno Haible  <bruno@clisp.org>
83921
83922         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83923         * config/config.rpath: Upgrade to gettext-0.12.1.
83924
83925 2003-05-30  Bruno Haible  <bruno@clisp.org>
83926
83927         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83928         * m4/nls.m4: New file, from gettext-0.12.1.
83929         * m4/po.m4: New file, from gettext-0.12.1.
83930         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83931
83932 2003-05-30  Bruno Haible  <bruno@clisp.org>
83933
83934         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83935         * lib/localcharset.h: Likewise.
83936         * lib/localcharset.c: Likewise.
83937
83938 2003-05-29  Karl Berry  <karl@gnu.org>
83939
83940         * config/config.rpath: update from gettext.
83941
83942 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83943
83944         Assume the headers required for C89 freestanding compilers.
83945         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83946         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83947         * m4/human.m4 (gl_HUMAN): Likewise.
83948         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83949         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83950         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83951         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83952         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83953         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83954
83955 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83956
83957         Assume the headers required for C89 freestanding compilers.
83958         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83959         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83960         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83961         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83962         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83963         define, since <limits.h> is guaranteed to do that.
83964         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83965         * lib/exclude.c: Include <stdbool.h> unconditionally.
83966         * lib/tempname.c: Include <stddef.h> unconditionally.
83967         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83968         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83969         <stddef.h> does that.
83970         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83971         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83972         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83973         needed.
83974         * lib/xstrtol.c: Likewise.
83975         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83976         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83977
83978         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83979         warnings on some platforms.
83980
83981         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83982         arbitrarily.
83983
83984 2003-05-26  Jim Meyering  <jim@meyering.net>
83985
83986         Merge in a change from coreutils:
83987         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83988         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83989         that condition, rather than `-1' which is slightly misleading.
83990         Change the name of the cache variable to have the gl_ prefix.
83991         Prompted by a patch from Richard Dawe for DJGPP.
83992
83993 2003-05-24  Karl Berry  <karl@gnu.org>
83994
83995         * config/config.guess: update from prep.
83996
83997 2003-05-22  Karl Berry  <karl@gnu.org>
83998
83999         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84000
84001 2003-05-20  Karl Berry  <karl@gnu.org>
84002
84003         * config/config.guess: update from prep.
84004
84005 2003-05-18  Karl Berry  <karl@gnu.org>
84006
84007         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84008         might actually be set by the user.
84009
84010         * config/depcomp, install-sh, mdate-sh: update from automake.
84011
84012 2003-05-17  Bruno Haible  <bruno@clisp.org>
84013
84014         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84015         invalid expansion for AC_EGREP_CPP.
84016         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84017         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84018         Suggested by Akim Demaille <akim@epita.fr> in
84019         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84020
84021 2003-05-12  Jim Meyering  <jim@meyering.net>
84022
84023         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84024         the space-padded-by-default conversion specifiers, %e, %k, %l.
84025
84026 2003-05-12  Bruno Haible  <bruno@clisp.org>
84027
84028         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84029         the string is longer than 4 KB.
84030
84031 2003-05-11  Karl Berry  <karl@gnu.org>
84032
84033         * config/config.{guess,sub}: update from prep.
84034
84035 2003-05-09  Bruno Haible  <bruno@clisp.org>
84036
84037         * modules/error: Add m4/strerror_r.m4 to file list.
84038
84039 2003-05-03  Bruno Haible  <bruno@clisp.org>
84040
84041         Upgrade to Unicode-4.0.
84042         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84043         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84044         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84045         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84046         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84047         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84048         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84049         Change width of U+E0100..U+E01EF from 1 to 0.
84050
84051 2003-04-25  Jim Meyering  <jim@meyering.net>
84052
84053         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84054         of type size_t, not int.
84055
84056 2003-04-25  Bruno Haible  <bruno@clisp.org>
84057
84058         * lib/copy-file.c: Include <stddef.h>, for size_t.
84059
84060 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84061
84062         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84063         code which expansion is under static control.  Patch imported from
84064         Akim Demaille's patch to Bison; see
84065         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84066
84067 2003-04-14  Bruno Haible  <bruno@clisp.org>
84068
84069         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84070
84071 2003-04-11  Jim Meyering  <jim@meyering.net>
84072
84073         Merge changes from Coreutils.
84074
84075         2003-03-22  Jim Meyering  <jim@meyering.net>
84076
84077         * lib/strftime.c (widen): Cast alloca return value to proper type.
84078
84079         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84080
84081         From GNU libc.
84082         * lib/strftime.c (my_strftime): Handle very large width
84083         specifications for numeric values correctly.  Improve checks for
84084         overflow.
84085
84086         2003-01-19  Jim Meyering  <jim@meyering.net>
84087
84088         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84089         definitions.
84090         (nl_get_alt_digit) [! defined my_strftime]: Define.
84091         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84092         _nl_get_alt_digit and _nl_get_walt_digit.
84093
84094         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84095         libc. These changes have no effect outside of _LIBC.
84096
84097 2003-04-10  Bruno Haible  <bruno@clisp.org>
84098
84099         * modules/findprog: New file.
84100         * MODULES.html.sh (func_all_modules): Add it.
84101
84102 2003-04-10  Bruno Haible  <bruno@clisp.org>
84103
84104         * m4/findprog.m4: New file.
84105         * m4/eaccess.m4: New file.
84106
84107 2003-04-10  Bruno Haible  <bruno@clisp.org>
84108
84109         * lib/findprog.h: New file, from GNU gettext.
84110         * lib/findprog.c: New file, from GNU gettext.
84111
84112 2003-04-05  Jim Meyering  <jim@meyering.net>
84113
84114         Merge changes from Coreutils.
84115
84116         * lib/exclude.h (PARAMS): Remove definition and uses.
84117         * lib/exclude.c: Remove uses of `PARAMS'.
84118
84119         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84120         Add test-cases for DOS filenames. Declare program_name.
84121         (main): Set up program_name.  Patch by Rich Dawe.
84122
84123         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84124         error from mntctl.
84125         Use mntctl's return value to drive the entry-processing loop, since
84126         we can't rely on the value of the vmt_length member in the last
84127         entry.  On some systems doing so could result in exhausting
84128         virtual memory.  Based in part on a patch from Mike Jetzer.
84129
84130 2003-04-04  Bruno Haible  <bruno@clisp.org>
84131
84132         * modules/linebreak: New file.
84133         * MODULES.html.sh (func_all_modules): Add it.
84134
84135 2003-04-04  Bruno Haible  <bruno@clisp.org>
84136
84137         * m4/linebreak.m4: New file.
84138
84139 2003-04-04  Bruno Haible  <bruno@clisp.org>
84140
84141         * lib/linebreak.h: New file, from GNU gettext.
84142         * lib/linebreak.c: New file, from GNU gettext with slight
84143         modifications.
84144         * lib/lbrkprop.h: New file, from GNU gettext.
84145
84146 2003-04-03  Bruno Haible  <bruno@clisp.org>
84147
84148         * modules/utf8-ucs4: New file.
84149         * modules/utf16-ucs4: New file.
84150         * modules/ucs4-utf8: New file.
84151         * modules/ucs4-utf16: New file.
84152         * MODULES.html.sh (func_all_modules): Add them.
84153
84154 2003-04-03  Bruno Haible  <bruno@clisp.org>
84155
84156         * m4/utf-ucs4.m4: New file.
84157         * m4/ucs4-utf.m4: New file.
84158
84159 2003-04-03  Bruno Haible  <bruno@clisp.org>
84160
84161         * lib/utf8-ucs4.h: New file, from GNU gettext.
84162         * lib/utf16-ucs4.h: New file, from GNU gettext.
84163         * lib/ucs4-utf8.h: New file, from GNU gettext.
84164         * lib/ucs4-utf16.h: New file, from GNU gettext.
84165
84166 2003-04-02  Bruno Haible  <bruno@clisp.org>
84167
84168         * modules/binary-io: New file.
84169         * MODULES.html.sh (func_all_modules): Add it.
84170
84171 2003-04-02  Bruno Haible  <bruno@clisp.org>
84172
84173         * lib/binary-io.h: New file, from GNU gettext.
84174
84175 2003-04-01  Bruno Haible  <bruno@clisp.org>
84176
84177         * modules/pathname: New file.
84178         * MODULES.html.sh (func_all_modules): Add it.
84179
84180 2003-04-01  Bruno Haible  <bruno@clisp.org>
84181
84182         * lib/pathname.h: New file, from GNU gettext.
84183         * lib/concatpath.c: New file, from GNU gettext.
84184
84185 2003-03-30  Bruno Haible  <bruno@clisp.org>
84186
84187         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84188
84189 2003-03-30  Bruno Haible  <bruno@clisp.org>
84190
84191         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84192         function chown() doesn't exist.
84193
84194 2003-03-28  Bruno Haible  <bruno@clisp.org>
84195
84196         * modules/copy-file: New file.
84197         * MODULES.html.sh (func_all_modules): Add it.
84198
84199 2003-03-28  Bruno Haible  <bruno@clisp.org>
84200
84201         * m4/copy-file.m4: New file.
84202
84203 2003-03-28  Bruno Haible  <bruno@clisp.org>
84204
84205         * lib/copy-file.h: New file, from GNU gettext.
84206         * lib/copy-file.c: New file, from GNU gettext.
84207
84208 2003-03-18  Jim Meyering  <jim@meyering.net>
84209
84210         * lib/quote.c (quote_n): Fix typo in comment.
84211
84212 2003-03-18  Bruno Haible  <bruno@clisp.org>
84213
84214         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84215         checking.
84216         * m4/onceonly_2_57.m4: Likewise.
84217
84218 2003-03-17  Bruno Haible  <bruno@clisp.org>
84219
84220         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84221         (m4_quote): Remove macro.
84222         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84223
84224 2003-03-14  Jim Meyering  <jim@meyering.net>
84225
84226         Merge changes from Coreutils.
84227         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84228         to be const, in order to avoid warnings.
84229         (obstack_room): Likewise.
84230         (obstack_empty_p): Likewise.
84231
84232 2003-03-14  Bruno Haible  <bruno@clisp.org>
84233
84234         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84235         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84236
84237 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84238
84239         Merge changes from Bison.
84240         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84241         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84242         when compiling Bison 1.875's `bitset bset = obstack_alloc
84243         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84244         * lib/hash.c: Include <stdbool.h> unconditionally.
84245
84246 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84247
84248         * m4/onceonly.m4 (m4_quote): New macro.
84249         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84250         Quote AC_FOREACH variable-expansions properly.
84251
84252 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84253
84254         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84255
84256 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84257
84258         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84259         Reported by Bruce Becker; see:
84260         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84261
84262 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84263             Bruno Haible  <bruno@clisp.org>
84264
84265         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84266         Reported by John Hughes, see
84267         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84268
84269 2003-02-20  Bruno Haible  <bruno@clisp.org>
84270
84271         * MODULES.html.sh (func_all_modules): Add poll.
84272
84273 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84274
84275         * modules/poll: New file.
84276
84277 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84278
84279         * lib/poll_.h: New file.
84280         * lib/poll.c: New file.
84281
84282 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84283
84284         * m4/poll.m4: New file.
84285
84286 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84287
84288         * modules/mathl: New file.
84289
84290 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84291
84292         * lib/mathl.h: New file.
84293         * lib/acosl.c: New file.
84294         * lib/asinl.c: New file.
84295         * lib/atanl.c: New file.
84296         * lib/ceill.c: New file.
84297         * lib/cosl.c: New file.
84298         * lib/expl.c: New file.
84299         * lib/floorl.c: New file.
84300         * lib/frexpl.c: New file.
84301         * lib/ldexpl.c: New file.
84302         * lib/logl.c: New file.
84303         * lib/sincosl.c: New file.
84304         * lib/sinl.c: New file.
84305         * lib/sqrtl.c: New file.
84306         * lib/tanl.c: New file.
84307         * lib/trigl.c: New file.
84308         * lib/trigl.h: New file.
84309
84310 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84311
84312         * m4/mathl.m4: New file.
84313
84314 2003-02-18  Bruno Haible  <bruno@clisp.org>
84315
84316         * MODULES.html.sh (func_all_modules): Add mathl.
84317
84318 2003-02-17  Bruno Haible  <bruno@clisp.org>
84319
84320         * modules/mkdtemp: New module.
84321         * MODULES.html.sh (func_all_modules): Add it.
84322
84323 2003-02-17  Bruno Haible  <bruno@clisp.org>
84324
84325         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84326
84327 2003-02-17  Bruno Haible  <bruno@clisp.org>
84328
84329         * lib/mkdtemp.h: New file, from GNU gettext.
84330         * lib/mkdtemp.c: New file, from GNU gettext.
84331
84332 2003-02-02  Jim Meyering  <jim@meyering.net>
84333
84334         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84335         e.g. glibc-2.2.93.
84336
84337 2003-01-31  Bruno Haible  <bruno@clisp.org>
84338
84339         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84340         'rpl_rename'.
84341         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84342         'rpl_strnlen'.
84343         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84344         'rpl_strtod'.
84345         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84346         'rpl_utime'.
84347
84348 2003-01-31  Bruno Haible  <bruno@clisp.org>
84349
84350         * lib/rename.c: #undef rename before defining rpl_rename.
84351         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84352
84353 2003-01-30  Bruno Haible  <bruno@clisp.org>
84354
84355         * modules/vasnprintf, modules/vasprintf: New modules.
84356         * MODULES.html.sh (func_all_modules): Add them.
84357
84358 2003-01-30  Bruno Haible  <bruno@clisp.org>
84359
84360         * m4/signed.m4: New file, from GNU gettext.
84361         * m4/longdouble.m4: New file, from GNU gettext.
84362         * m4/wchar_t.m4: New file, from GNU gettext.
84363         * m4/wint_t.m4: New file, from GNU gettext.
84364         * m4/vasnprintf.m4: New file.
84365         * m4/vasprintf.m4: New file.
84366
84367 2003-01-30  Bruno Haible  <bruno@clisp.org>
84368
84369         * lib/printf-args.h: New file, from GNU gettext.
84370         * lib/printf-args.c: New file, from GNU gettext.
84371         * lib/printf-parse.h: New file, from GNU gettext.
84372         * lib/printf-parse.c: New file, from GNU gettext.
84373         * lib/vasnprintf.h: New file, from GNU gettext.
84374         * lib/vasnprintf.c: New file, from GNU gettext.
84375         * lib/asnprintf.c: New file, from GNU gettext.
84376         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84377         * lib/vasprintf.c: New file, from GNU gettext.
84378         * lib/asprintf.c: New file, from GNU gettext.
84379
84380 2003-01-29  Bruno Haible  <bruno@clisp.org>
84381
84382         * modules/stpncpy: New module.
84383         * MODULES.html.sh (func_all_modules): Add it.
84384
84385 2003-01-29  Bruno Haible  <bruno@clisp.org>
84386
84387         * m4/stpncpy.m4: New file.
84388
84389 2003-01-29  Bruno Haible  <bruno@clisp.org>
84390
84391         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84392         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84393
84394 2003-01-28  Bruno Haible  <bruno@clisp.org>
84395
84396         * modules/c-ctype: New module.
84397         * MODULES.html.sh (func_all_modules): Add it.
84398
84399 2003-01-28  Bruno Haible  <bruno@clisp.org>
84400
84401         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84402         Paul Eggert.
84403         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84404         Paul Eggert.
84405
84406 2003-01-27  Bruno Haible  <bruno@clisp.org>
84407
84408         * modules/xsetenv: New module.
84409         * MODULES.html.sh (func_all_modules): Add it.
84410
84411 2003-01-27  Bruno Haible  <bruno@clisp.org>
84412
84413         * lib/xsetenv.h: New file, from GNU gettext.
84414         * lib/xsetenv.c: New file, from GNU gettext.
84415
84416 2003-01-23  Jim Meyering  <jim@meyering.net>
84417
84418         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84419         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84420
84421 2003-01-23  Bruno Haible  <bruno@clisp.org>
84422
84423         * modules/minmax: New module.
84424         * MODULES.html.sh (func_all_modules): Add it.
84425
84426 2003-01-23  Bruno Haible  <bruno@clisp.org>
84427
84428         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84429         Eggert.
84430
84431 2003-01-22  Bruno Haible  <bruno@clisp.org>
84432
84433         * modules/exit: New module.
84434         * MODULES.html.sh (func_all_modules): Add it.
84435
84436 2003-01-22  Bruno Haible  <bruno@clisp.org>
84437
84438         * lib/exit.h: New file, from GNU gettext.
84439
84440 2003-01-19  Bruno Haible  <bruno@clisp.org>
84441
84442         * gnulib-tool: Recognize option --extract-maintainer.
84443         (func_get_maintainer): New function.
84444         * modules/*: Add Maintainer entry.
84445
84446 2003-01-16  Jim Meyering  <jim@meyering.net>
84447
84448         * m4/regex.m4: The `regex' struct is both input and output.
84449         Initialize it before each use.  Patch by Tim Waugh.
84450
84451 2003-01-16  Bruno Haible  <bruno@clisp.org>
84452
84453         * MODULES.html.sh: Add a table of contents. Add the module name as
84454         leftmost column. Add hyperlinks.
84455
84456 2003-01-15  Bruno Haible  <bruno@clisp.org>
84457
84458         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84459
84460 2003-01-15  Bruno Haible  <bruno@clisp.org>
84461
84462         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84463         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84464         suffix.
84465
84466 2003-01-15  Bruno Haible  <bruno@clisp.org>
84467
84468         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84469
84470 2003-01-15  Bruno Haible  <bruno@clisp.org>
84471
84472         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84473         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84474
84475 2003-01-14  Jim Meyering  <jim@meyering.net>
84476
84477         * lib/same.c (same_name): Tweak a comment.
84478
84479 2003-01-14  Bruno Haible  <bruno@clisp.org>
84480
84481         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84482         when a string comparison is sufficient.
84483
84484 2003-01-14  Bruno Haible  <bruno@clisp.org>
84485
84486         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84487         'unsigned int'.
84488
84489 2003-01-14  Bruno Haible  <bruno@clisp.org>
84490
84491         * lib/hash-pjw.c: Add comment about low quality of this function.
84492
84493 2003-01-13  Bruno Haible  <bruno@clisp.org>
84494
84495         * modules/stpcpy: Distribute lib/stpcpy.h.
84496         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84497
84498 2003-01-13  Bruno Haible  <bruno@clisp.org>
84499
84500         * modules/*: Add a description.
84501         * modules/strpbrk: Fix Makefile.am snippet.
84502         * modules/strtoimax: Fix dependencies.
84503         * modules/strtoumax: Likewise.
84504
84505 2003-01-13  Bruno Haible  <bruno@clisp.org>
84506
84507         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84508         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84509         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84510
84511 2003-01-13  Bruno Haible  <bruno@clisp.org>
84512
84513         * gnulib-tool (func_create_testdir): Store config/* files in the main
84514         directory.
84515         * config.rpath: Move to ...
84516         * config/config.rpath: ... here.
84517         * modules/gettext: Contains config/config.rpath, not config.rpath.
84518         * modules/iconv: Likewise.
84519
84520 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84521
84522         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84523         to avoid collisions with libcurses and libreadline.
84524
84525         * m4/getstr.m4: Remove.
84526         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84527
84528 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84529
84530         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84531         to avoid collisions with libcurses and libreadline.
84532
84533         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84534         * lib/getstr.h, getstr.c: Remove.
84535         * lib/getline.c: Include "getline.h", to check interface.
84536         Move body of old getstr.c here: this defines MIN_CHUNK and
84537         declares getdelim2, which is renamed from getstr.
84538         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84539
84540         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84541         All uses changed.
84542         * lib/linebuffer.h: Likewise.
84543         (readline): Remove backward-compatibility macro.
84544
84545 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84546
84547         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84548         to avoid collisions with libcurses and libreadline.
84549         * getstr: Remove.
84550         * MODULES.html.sh: Remove getstr.
84551         * modules/getline: Depend on unlocked-io, not getstr.
84552
84553 2003-01-12  Jim Meyering  <jim@meyering.net>
84554
84555         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84556
84557 2003-01-10  Bruno Haible  <bruno@clisp.org>
84558
84559         * modules/alloca: Change Makefile.am requirements. Simplify Include
84560         requirements. Add lib/alloca_.h to file list.
84561
84562 2003-01-10  Bruno Haible  <bruno@clisp.org>
84563
84564         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84565
84566 2003-01-10  Bruno Haible  <bruno@clisp.org>
84567
84568         * lib/alloca_.h: New file.
84569         * lib/getdate.y: Unconditionally include alloca.h.
84570         * lib/makepath.c: Likewise.
84571         * lib/setenv.c: Likewise.
84572         * lib/userspec.c: Likewise.
84573
84574 2003-01-09  Karl Berry  <karl@gnu.org>
84575
84576         * MODULES.html.sh: include `dirname $0` in PATH, to find
84577         gnulib-tool.
84578
84579 2003-01-09  Bruno Haible  <bruno@clisp.org>
84580
84581         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84582         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84583
84584 2003-01-09  Bruno Haible  <bruno@clisp.org>
84585
84586         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84587
84588 2003-01-09  Bruno Haible  <bruno@clisp.org>
84589
84590         * lib/stdbool.h.in: New file.
84591
84592 2003-01-09  Bruno Haible  <bruno@clisp.org>
84593
84594         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84595         * MODULES.html.sh: Likewise.
84596
84597 2003-01-08  Jim Meyering  <jim@meyering.net>
84598
84599         * lib/full-write.c: Undefine and define-away `const' after inclusion
84600         of errno.h, not before.  Suggestion from Bruno Haible.
84601
84602 2003-01-08  Bruno Haible  <bruno@clisp.org>
84603
84604         * modules/full-read: Depend on full-write.
84605
84606 2003-01-08  Bruno Haible  <bruno@clisp.org>
84607
84608         * lib/safe-read.c: Include specification header first, to ensure its
84609         selfcontainedness.
84610         * lib/full-write.c: Likewise.
84611
84612 2003-01-07  Jim Meyering  <jim@meyering.net>
84613
84614         * lib/full-write.c: Rework so that it may serve to define full_read,
84615         too.
84616         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84617
84618 2003-01-07  Bruno Haible  <bruno@clisp.org>
84619
84620         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84621         <inttypes.h>.
84622         * lib/xstrtol.h: Likewise.
84623         * lib/xstrtoimax.c: Likewise.
84624         * lib/xstrtoumax.c: Likewise.
84625         * lib/human.h: Likewise.
84626
84627         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84628         on systems that have <inttypes.h> but not <stdint.h>.
84629
84630 2003-01-07  Bruno Haible  <bruno@clisp.org>
84631
84632         * MODULES.html.sh: Add copyright notice.
84633         (missed_files): Omit CVS directory entries.
84634         (func_module): Make it work with sed-3.02.
84635         * MODULES.txt: Remove file.
84636
84637 2003-01-06  Jim Meyering  <jim@meyering.net>
84638
84639         * lib/version-etc.c: Update year in translatable copyright string.
84640
84641 2003-01-03  Karl Berry  <karl@gnu.org>
84642
84643         * config/config.{guess,sub}: update from prep.
84644
84645 2003-01-02  Karl Berry  <karl@gnu.org>
84646
84647         * doc/COPYING.DOC: belatedly updated to 1.2.
84648
84649 2003-01-01  Karl Berry  <karl@gnu.org>
84650
84651         * gnulib-tool (func_verify_module): report module name $module in
84652         error message, not $1.
84653         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84654         be created, only if it doesn't exist.
84655         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84656
84657 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84658
84659         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84660
84661 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84662
84663         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84664         memcmp if strcoll doesn't work.
84665
84666 2002-12-31  Bruno Haible  <bruno@clisp.org>
84667
84668         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84669         nonempty.
84670
84671 2002-12-31  Bruno Haible  <bruno@clisp.org>
84672
84673         * lib/memcoll.c (STRCOLL): New macro.
84674         (memcoll): Use it.
84675
84676 2002-12-31  Bruno Haible  <bruno@clisp.org>
84677
84678         * lib/localcharset.h: New file.
84679         * lib/localcharset.c: Include it.
84680         * lib/unicodeio.c: Likewise.
84681
84682 2002-12-31  Bruno Haible  <bruno@clisp.org>
84683
84684         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84685         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84686
84687 2002-12-31  Bruno Haible  <bruno@clisp.org>
84688
84689         * lib/getline.h: Include <stddef.h>, for size_t.
84690
84691         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84692         * lib/unicodeio.c: Don't include <stddef.h>.
84693
84694 2002-12-31  Bruno Haible  <bruno@clisp.org>
84695
84696         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84697         HAVE_TM_ZONE.
84698
84699 2002-12-24  Karl Berry  <karl@gnu.org>
84700
84701         * config/config.guess: update from prep.
84702
84703 2002-12-24  Bruno Haible  <bruno@clisp.org>
84704
84705         General infrasructure.
84706         * m4/README: Rewritten.
84707         * m4/onceonly.m4: New file.
84708         * m4/onceonly_2_57.m4: New file.
84709
84710         Module atexit.
84711         * m4/atexit.m4: New file.
84712
84713         Module strtod.
84714         * m4/strtod.m4: New file.
84715
84716         Module strtol.
84717         * m4/strtol.m4: New file.
84718
84719         Module strtoul.
84720         * m4/strtoul.m4: New file.
84721
84722         Module memchr.
84723         * m4/memchr.m4: New file.
84724
84725         Module memcmp.
84726         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84727         (jm_FUNC_MEMCMP): Invoke it.
84728
84729         Module memcpy.
84730         * m4/memcpy.m4: New file.
84731
84732         Module memmove.
84733         * m4/memmove.m4: New file.
84734
84735         Module memset.
84736         * m4/memset.m4: New file.
84737
84738         Module strcspn.
84739         * m4/strcspn.m4: New file.
84740
84741         Module strpbrk.
84742         * m4/strpbrk.m4: New file.
84743
84744         Module strstr.
84745         * m4/strstr.m4: New file.
84746
84747         Module strerror.
84748         * m4/strerror.m4: New file.
84749
84750         Module mktime.
84751         * m4/mktime.m4: Renamed from jm-mktime.m4.
84752         (gl_PREREQ_MKTIME): New macro.
84753         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84754
84755         Module malloc.
84756         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84757         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84758         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84759
84760         Module realloc.
84761         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84762         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84763         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84764
84765         Module strftime.
84766         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84767         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84768         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84769         gl_TM_GMTOFF.
84770         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84771
84772         Module xalloc.
84773         * m4/xalloc.m4: New file.
84774
84775         Module alloca.
84776         * m4/alloca.m4: New file.
84777
84778         Module putenv.
84779         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84780         (jm_FUNC_PUTENV): Invoke it.
84781
84782         Module setenv.
84783         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84784         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84785         when invoked twice.
84786         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84787         gt_FUNC_SETENV.
84788
84789         Module memrchr.
84790         * m4/memrchr.m4: New file.
84791
84792         Module stpcpy.
84793         * m4/stpcpy.m4: New file.
84794
84795         Module strcase.
84796         * m4/strcase.m4: New file.
84797
84798         Module strdup.
84799         * m4/strdup.m4: New file.
84800
84801         Module strnlen.
84802         * m4/strnlen.m4: New file.
84803
84804         Module strndup.
84805         * m4/strndup.m4: New file.
84806
84807         Module xstrtod.
84808         * m4/xstrtod.m4: New file.
84809
84810         Module xstrtol.
84811         * m4/xstrtol.m4: New file.
84812
84813         Module getdate.
84814         * m4/getdate.m4: New file.
84815
84816         Module unlocked-io.
84817         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84818         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84819         * m4/jm-glibc-io.m4n: Remove file.
84820
84821         Module long-options.
84822         * m4/long-options.m4: New file.
84823
84824         Module md5.
84825         * m4/md5.m4: New file.
84826
84827         Module sha.
84828         * m4/sha.m4: New file.
84829
84830         Module getstr.
84831         * m4/getstr.m4: New file.
84832
84833         Module getline.
84834         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84835         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84836         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84837         simply getline. Infoke gl_PREREQ_GETLINE.
84838
84839         Module obstack.
84840         * m4/obstack.m4: New file.
84841
84842         Module hash.
84843         * m4/hash.m4: New file.
84844
84845         Module readtokens.
84846         * m4/readtokens.m4: New file.
84847
84848         Module strverscmp.
84849         * m4/strverscmp.m4: New file.
84850
84851         Module stdbool.
84852         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84853         OSF/1.
84854
84855         Module strtoll.
84856         * m4/strtoll.m4: New file.
84857
84858         Module strtoull.
84859         * m4/strtoull.m4: New file.
84860
84861         Module strtoimax.
84862         * m4/strtoimax.m4: New file.
84863
84864         Module strtoumax.
84865         * m4/strtoumax.m4: New file.
84866
84867         Module xstrtoimax.
84868         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84869         jm_AC_PREREQ_XSTRTOIMAX.
84870         Moved the strtol prerequisites to strtol.m4.
84871         Moved the strtoll prerequisites to strtoll.m4.
84872         Moved the strtoimax prerequisites to strtoimax.m4.
84873
84874         Module xstrtoumax.
84875         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84876         jm_AC_PREREQ_XSTRTOUMAX.
84877         Moved the strtoul prerequisites to strtoul.m4.
84878         Moved the strtoull prerequisites to strtoull.m4.
84879         Moved the strtoumax prerequisites to strtoumax.m4.
84880
84881         Module chown.
84882         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84883         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84884
84885         Module dup2.
84886         * m4/dup2.m4: New file.
84887
84888         Module ftruncate.
84889         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84890         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84891
84892         Module getgroups.
84893         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84894         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84895
84896         Module gettimeofday.
84897         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84898         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84899         gl_PREREQ_GETTIMEOFDAY.
84900
84901         Module mkdir.
84902         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84903         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84904
84905         Module mkstemp.
84906         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84907         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84908         jm_AC_TYPE_UINTMAX_T.
84909         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84910
84911         Module stat.
84912         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84913         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84914
84915         Module lstat.
84916         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84917         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84918
84919         Module timespec.
84920         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84921         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84922         * m4/st_mtim.m4: Indentation.
84923
84924         Module nanosleep.
84925         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84926         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84927         gl_PREREQ_NANOSLEEP.
84928
84929         Module regex.
84930         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84931         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84932         (gl_REGEX): New macro.
84933
84934         Module rename.
84935         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84936         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84937
84938         Module rmdir.
84939         * m4/rmdir.m4: New file.
84940
84941         Module utime.
84942         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84943         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84944         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84945
84946         Module dirname.
84947         * m4/dirname.m4: New file.
84948
84949         Module getopt.
84950         * m4/getopt.m4: New file.
84951
84952         Module unistd-safer.
84953         * m4/unistd-safer.m4: New file.
84954
84955         Module fnmatch.
84956         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84957         declaration.
84958         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84959         (gl_FUNC_FNMATCH_POSIX): New macro.
84960         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84961         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84962         simply fnmatch.
84963
84964         Module exclude.
84965         * m4/exclude.m4: New file.
84966
84967         Module human.
84968         * m4/human.m4: New file.
84969
84970         Module acl.
84971         * m4/acl.m4: Nop.
84972
84973         Module backupfile.
84974         * m4/backupfile.m4: New file.
84975         * m4/d-ino.m4: Indentation.
84976
84977         Module fsusage.
84978         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84979         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84980         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84981
84982         Module dirfd.
84983         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84984         requirements.
84985
84986         Module euidaccess.
84987         * m4/euidaccess.m4: New file.
84988
84989         Module file-type.
84990         * m4/file-type.m4: New file.
84991
84992         Module fileblocks.
84993         * m4/fileblocks.m4: New file.
84994
84995         Module filemode.
84996         * m4/filemode.m4: New file.
84997
84998         Module isdir.
84999         * m4/isdir.m4: New file.
85000
85001         Module lchown.
85002         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85003         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85004
85005         Module makepath.
85006         * m4/makepath.m4: New file.
85007
85008         Module modechange.
85009         * m4/modechange.m4: New file.
85010
85011         Module mountlist.
85012         * m4/mountlist.m4: New file.
85013         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85014         Indentation.
85015
85016         Module path-concat.
85017         * m4/path-concat.m4: New file.
85018
85019         Module pathmax.
85020         * m4/pathmax.m4: New file.
85021
85022         Module same.
85023         * m4/same.m4: New file.
85024
85025         Module save-cwd.
85026         * m4/save-cwd.m4: New file.
85027
85028         Module savedir.
85029         * m4/savedir.m4: New file.
85030
85031         Module xgetcwd.
85032         * m4/xgetcwd.m4: New file.
85033         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85034
85035         Module xreadlink.
85036         * m4/xreadlink.m4: New file.
85037
85038         Module safe-read.
85039         * m4/safe-read.m4: New file.
85040
85041         Module safe-write.
85042         * m4/safe-write.m4: New file.
85043
85044         Module closeout.
85045         * m4/closeout.m4: New file.
85046
85047         Module stdio-safer.
85048         * m4/stdio-safer.m4: New file.
85049
85050         Module getpass.
85051         * m4/getpass.m4: New file.
85052
85053         Module getugroups.
85054         * m4/getugroups.m4: New file.
85055
85056         Module group-member.
85057         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85058         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85059
85060         Module idcache.
85061         * m4/idcache.m4: New file.
85062
85063         Module userspec.
85064         * m4/userspec.m4: New file.
85065
85066         Module gettime.
85067         * m4/clock_time.m4: New file.
85068         * m4/gettime.m4: New file.
85069
85070         Module settime.
85071         * m4/settime.m4: New file.
85072
85073         Module posixtm.
85074         * m4/posixtm.m4: New file.
85075
85076         Module gethostname.
85077         * m4/gethostname.m4: New file.
85078
85079         Module canon-host.
85080         * m4/canon-host.m4: New file.
85081
85082         Module gettext.
85083         * m4/codeset.m4: New file, from gettext-0.11.5.
85084         * m4/gettext.m4: New file, from gettext-0.11.5.
85085         * m4/glibc21.m4: New file, from gettext-0.11.5.
85086         * m4/iconv.m4: New file, from gettext-0.11.5.
85087         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85088         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85089         * m4/inttypes.m4: New file, from gettext-0.11.5.
85090         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85091         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85092         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85093         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85094         * m4/lib-link.m4: New file, from gettext-0.11.5.
85095         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85096         * m4/progtest.m4: New file, from gettext-0.11.5.
85097         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85098         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85099         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85100
85101         Module localcharset.
85102         * m4/localcharset.m4: New file.
85103
85104         Module hard-locale.
85105         * m4/hard-locale.m4: New file.
85106
85107         Module mbswidth.
85108         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85109         onceonly macros.
85110         * m4/mbrtowc.m4: Add comment.
85111
85112         Module memcasecmp.
85113         * m4/memcasecmp.m4: New file.
85114
85115         Module memcoll.
85116         * m4/memcoll.m4: New file.
85117
85118         Module unicodeio.
85119         * m4/unicodeio.m4: New file.
85120
85121         Module rpmatch.
85122         * m4/rpmatch.m4: New file.
85123
85124         Module yesno.
85125         * m4/yesno.m4: New file.
85126
85127         Module exitfail.
85128         * m4/exitfail.m4: New file.
85129
85130         Module c-stack.
85131         * m4/c-stack.m4 (gl_C_STACK): New macro.
85132         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85133
85134         Module error.
85135         * m4/error.m4 (gl_ERROR): New macro.
85136         (jm_PREREQ_ERROR): Use onceonly macros.
85137
85138         Module fatal.
85139         * m4/fatal.m4: New file.
85140
85141         Module getloadavg.
85142         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85143         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85144
85145         Module getpagesize.
85146         * m4/getpagesize.m4: New file.
85147
85148         Module getusershell.
85149         * m4/getusershell.m4: New file.
85150
85151         Module physmem.
85152         * m4/physmem.m4: New file.
85153
85154         Module posixver.
85155         * m4/posixver.m4: New file.
85156
85157         Module quotearg.
85158         * m4/quotearg.m4: New file.
85159
85160         Module quote.
85161         * m4/quote.m4: New file.
85162
85163         Module readutmp.
85164         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85165
85166         Module sig2str.
85167         * m4/sig2str.m4: New file.
85168
85169         Other.
85170         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85171         ulonglong.m4.
85172         * m4/intmax_t.m4: New file.
85173         * m4/d-type.m4: Indentation.
85174         * m4/jm-macros.m4: Update.
85175         * m4/prereq.m4 (jm_PREREQ): Update.
85176         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85177         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85178         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85179         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85180         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85181         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85182         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85183         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85184         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85185         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85186         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85187         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85188         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85189         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85190         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85191         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85192         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85193         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85194         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85195
85196 2002-12-24  Bruno Haible  <bruno@clisp.org>
85197
85198         * MODULES.txt: Update according to m4/ changes.
85199
85200         Module gettext.
85201         * config.rpath: New file, from gettext-0.11.5.
85202
85203         * modules/*: New module descriptions.
85204         * gnulib-tool: New file.
85205         * MODULES.html.sh: New file.
85206
85207 2002-12-21  Karl Berry  <karl@gnu.org>
85208
85209         * doc/fdl.texi: update to version 1.2.
85210
85211 2002-12-19  Karl Berry  <karl@gnu.org>
85212
85213         * config/config.guess: update from prep.
85214
85215 2002-12-18  Bruno Haible  <bruno@clisp.org>
85216
85217         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85218         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85219
85220 2002-12-17  Bruno Haible  <bruno@clisp.org>
85221
85222         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85223         stdlib.h, string.h.
85224
85225 2002-12-17  Bruno Haible  <bruno@clisp.org>
85226
85227         * lib/canon-host.c (strdup): Remove unused declaration.
85228
85229         * lib/fsusage.c: Include full_read.h.
85230         (get_fs_usage): Use full_read instead of safe_read.
85231
85232         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85233
85234 2002-12-12  Karl Berry  <karl@gnu.org>
85235
85236         * config/config.guess: update from prep.
85237
85238 2002-12-11  Bruno Haible  <bruno@clisp.org>
85239
85240         * m4/setenv.m4: New file, from gettext-0.11.5.
85241
85242 2002-12-11  Bruno Haible  <bruno@clisp.org>
85243
85244         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85245         not unsetenv().
85246         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85247         modifications:
85248
85249         2002-12-11  Bruno Haible  <bruno@clisp.org>
85250
85251                 * setenv.c (alloca): Fall back to malloc.
85252                 (freea): New macro.
85253                 (setenv): Use freea() to free memory allocated with alloca().
85254
85255         2002-11-13  Bruno Haible  <bruno@clisp.org>
85256
85257                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85258                 function declarations.
85259                 * unsetenv.c (unsetenv): Likewise.
85260
85261         2002-03-04  Bruno Haible  <bruno@clisp.org>
85262
85263                 Portability to AIX 4.3.3.
85264                 * unsetenv.c: New file, extracted from setenv.c.
85265                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85266
85267         2001-12-20  Bruno Haible  <bruno@clisp.org>
85268
85269                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85270                 use malloc instead. For SunOS 4.
85271
85272         2001-12-11  Bruno Haible  <bruno@clisp.org>
85273
85274                 * setenv.c: Declare alloca.
85275                 (compar_fn_t): New typedef.
85276                 (KNOWN_VALUE, STORE_VALUE): Use it.
85277
85278         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85279         setenv.h.
85280
85281 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85282
85283         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85284         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85285         Choose values that are less likely to collide with system fnmatch
85286         options.
85287         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85288         defined (e.g., a pure POSIX system).
85289         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85290         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85291
85292 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85293
85294         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85295         a pain in practice to deal with generated m4 files.  This change
85296         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85297
85298         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85299         and jm-glibc-io.m4, as they are no longer a special case.
85300         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85301         kludge and the auto-generation stuff.  Check only whether the
85302         functions are declared, not whether they exist, since older hosts
85303         that don't declare the functions can't use the optimization anyway.
85304
85305 2002-12-06  Jim Meyering  <jim@meyering.net>
85306
85307         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85308
85309         Merge in changes from libc's misc/error.c, in preparation
85310         for the merge of gnulib's changes back into libc.
85311
85312         * lib/error.c (_): Define only if not already defined.
85313         Move definition to follow all #include directives.
85314         Include unlocked-io.h only if !_LIBC.
85315         [_LIBC]: Include <libio/libioP.h>.
85316         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85317         (fflush): Tweak definition to use INTUSE.
85318         (putc): Define.
85319
85320 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85321
85322         * lib/alloca.c [defined emacs]: Include "lisp.h".
85323         (xalloc_die) [defined emacs]: New macro.
85324         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85325         [! defined emacs]: Include <xalloc.h>.
85326         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85327         (pointer): Typedef to POINTER_TYPE *.
85328         (malloc): Remove decl; we now always use xmalloc.
85329         (alloca): Use old-style definition, since Emacs needs this.
85330         Check for arithmetic overflow when computing combined size.
85331
85332 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85333
85334         Do not generate unlocked-io.h automatically, since it's easier to
85335         maintain it by hand.
85336
85337         * lib/unlocked-io.h: New file, from GNU diffutils,
85338         but with proper copyright notice and attribution.
85339         * lib/gen-uio: Remove.
85340         * lib/Makefile.am: Add copyright notice.
85341         (libfetish_a_SOURCES): Add unlocked-io.h.
85342         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85343         (DISTCLEANFILES, io_functions): Remove macros.
85344         (EXTRA_DIST): Remove gen_uio.
85345         (unlocked-io.h): Remove rule.
85346
85347 2002-12-04  Jim Meyering  <jim@meyering.net>
85348
85349         Reflect the fact that stat.c and lstat.c are no longer generated.
85350         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85351         (DISTCLEANFILES): Likewise.
85352         (EXTRA_DIST): Likewise.
85353         (all_local): Don't depend on stat.c or lstat.c.
85354         (stat.c, lstat.c): Remove rules.
85355         (EXTRA_DIST): Remove xstat.in.
85356
85357         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85358         * lib/stat.c: New file.  Contents mostly from xstat.in.
85359         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85360         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85361
85362         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85363         too.
85364         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85365
85366 2002-12-03  Jim Meyering  <jim@meyering.net>
85367
85368         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85369         but not semantics, to minimize the differences between these two files.
85370         (safe_read): Change comment to mention SAFE_READ_ERROR.
85371
85372         * lib/safe-read.c (IS_EINTR): Define.
85373         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85374
85375 2002-12-02  Jim Meyering  <jim@meyering.net>
85376
85377         * lib/safe-read.c (EINTR): Define.
85378         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85379         (INT_MAX): Provide fallback.
85380         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85381
85382         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85383
85384 2002-12-02  Bruno Haible  <bruno@clisp.org>
85385
85386         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85387         Define, taken from safe-read.c.
85388         (INT_MAX): Provide fallback.
85389         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85390         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85391
85392         * lib/safe-read.c (EINTR): Remove definition.
85393         (safe_read): Don't use EINTR if it is absent.
85394
85395 2002-12-01  Jim Meyering  <jim@meyering.net>
85396
85397         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85398         zero.
85399         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85400
85401 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85402
85403         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85404         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85405         with `if (! (value < limit)) abort ();', for readability.
85406
85407 2002-11-26  Karl Berry  <karl@gnu.org>
85408
85409         * lib/strdup.c: copy from libc again, with jim's ok.
85410         * lib/.cppi-disable: re-add strdup.c
85411
85412 2002-11-25  Karl Berry  <karl@gnu.org>
85413
85414         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85415         instead of "strtol.c".
85416
85417 2002-11-25  Karl Berry  <karl@gnu.org>
85418
85419         * config/install-sh: update from automake for variable quoting, $0 in
85420         error msgs, etc.
85421
85422         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85423         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85424         entry.
85425
85426 2002-11-25  Jim Meyering  <jim@meyering.net>
85427
85428         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85429
85430 2002-11-24  Karl Berry  <karl@gnu.org>
85431
85432         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85433         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85434
85435 2002-11-24  Jim Meyering  <jim@meyering.net>
85436
85437         Update from coreutils:
85438
85439         * lib/mktime.c: Merge in changes from libc.
85440
85441         Avoid a link-time failure on some Linux systems.
85442         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85443         (otherwise).
85444         (__mon_yday): Declare with the STATIC attribute.
85445         (__mktime_internal): Likewise.
85446         Based on a report from Greg Schafer.
85447
85448 2002-11-23  Jim Meyering  <jim@meyering.net>
85449
85450         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85451         Use `unsigned', not `int', as type of index.
85452
85453         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85454
85455         * lib/fsusage.c: Remove unneeded parentheses around operands of
85456         `defined'.
85457
85458 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85459
85460         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85461         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85462         so that we can be included first.
85463         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85464         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85465         No need to include stddef.h or sys/types.h any more.
85466         Surround local include files with "", not "<>".
85467         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85468         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85469         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85470         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85471         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85472         (ISPRINT): Remove; no longer needed now that we assume C89.
85473
85474         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85475         Preserve errno.
85476
85477         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85478         quotearg_char): Use SIZE_MAX rather than
85479         (size_t) -1 when we are talking about "infinity".
85480
85481         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85482
85483 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85484
85485         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85486         hint that one should use `if (! x) abort ();' rather than `assert
85487         (x);', and anyway it's one less thing to worry about configuring.
85488         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85489         hash_rehash, hash_insert): Use abort rather than assert.
85490
85491 2002-11-22  Bruno Haible  <bruno@clisp.org>
85492
85493         * lib/safe-read.h: Assume C89. Add comments.
85494         (safe_read): Change return type to size_t.
85495         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85496         byte counts > SSIZE_MAX correctly.
85497         * lib/safe-write.h: New file.
85498         * lib/safe-write.c: New file.
85499         * lib/full-read.h: New file.
85500         * lib/full-read.c: New file.
85501         * lib/full-write.h: Assume C89. Add comments.
85502         * lib/full-write.c: Include safe-write.h.
85503         (full_write): Rewritten to use safe_write.
85504         Suggested by Jim Meyering and Paul Eggert.
85505
85506 2002-11-21  Jim Meyering  <jim@meyering.net>
85507
85508         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85509
85510         Merge in changes from the coreutils.
85511
85512         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85513         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85514         <stdint.h>.
85515         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85516         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85517         int.  Work more efficiently if X is the same width as uintmax_t.
85518         Do not compare X to -1, to avoid bogus compiler warning.
85519         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85520         Don't assume that f_frsize and f_bsize are the same type.
85521
85522         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85523         warning on FreeBSD.
85524
85525         * lib/makepath.c (make_path): Restore umask *before* creating the final
85526         component.
85527         (make_path): Minor reformatting.
85528
85529         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85530         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85531         HAVE_MALLOC/HAVE_REALLOC.
85532
85533         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85534         dummy ones.  At least on GNU/Linux systems, `auto' means something
85535         else.
85536         From Michael Stone.
85537
85538 2002-11-21  Bruno Haible  <bruno@clisp.org>
85539
85540         Remove case insensitive option matching.
85541         * lib/argmatch.h (argcasematch): Remove declaration.
85542         (ARGCASEMATCH): Remove macro.
85543         (__xargmatch_internal): Remove case_sensitive argument.
85544         (XARGMATCH): Update.
85545         (XARGCASEMATCH): Remove macro.
85546         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85547         case_sensitive argument.
85548         (argcasematch): Remove function.
85549         (__xargmatch_internal): Remove case_sensitive argument.
85550         (main): Use XARGMATCH instead of XARGCASEMATCH.
85551
85552         * lib/xmalloc.c: Change compile-time error message. Add comment about
85553         required autoconf version.
85554
85555 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85556
85557         Merge argmatch cleanups from Bison.  Assume C89.
85558
85559         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85560         Include stdlib.h, for EXIT_FAILURE.
85561         Always include <string.h>, since we assume C89.
85562         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85563         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85564         Include <stddef.h> instead, since it's all we need for size_t.
85565         (PARAMS): Remove.  All uses removed.
85566         (ARRAY_CARDINALITY): Do not bother to #undef.
85567         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85568         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85569         Remove unnecessary parentheses.
85570         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85571         Insert necessary parentheses.
85572         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85573         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85574
85575 2002-11-19  Bruno Haible  <bruno@clisp.org>
85576
85577         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85578         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85579
85580         * lib/mbswidth.h (PARAMS): Remove macro.
85581         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85582         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85583
85584         * lib/gcd.h (PARAMS): Remove macro.
85585         (gcd): Use ANSI C function declarations.
85586         * lib/gcd.c (gcd): Likewise.
85587
85588 2002-11-15  Bruno Haible  <bruno@clisp.org>
85589
85590         * lib/strcspn.c: Include <stddef.h>.
85591         (strcspn): Use ANSI C function declaration. Change return type to
85592         size_t. Use NULL.
85593         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85594         (strpbrk): Use NULL.
85595         * lib/strpbrk.h (PARAMS): Remove macro.
85596         (strpbrk): Use ANSI C function declaration.
85597         * lib/strstr.c: Don't include <sys/types.h>.
85598         * lib/strstr.h (PARAMS): Remove macro.
85599         (strstr): Use ANSI C function declarations.
85600
85601 2002-11-14  Karl Berry  <karl@gnu.org>
85602
85603         * config/mkinstalldirs: `do' on separate line, instead of
85604         `for var; do'.
85605
85606 2002-11-06  Bruno Haible  <bruno@clisp.org>
85607
85608         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85609         * lib/gcd.c (gcd): Likewise.
85610
85611 2002-11-05  Bruno Haible  <bruno@clisp.org>
85612
85613         * lib/gcd.h: New file, from gettext-0.11.5.
85614         * lib/gcd.c: New file, from gettext-0.11.5.
85615
85616 2002-11-05  Bruno Haible  <bruno@clisp.org>
85617
85618         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85619         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85620         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85621         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85622
85623         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85624         <libintl.h>.
85625         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85626         <libintl.h>.
85627
85628         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85629         * lib/human.c: Include gettext.h instead of <libintl.h>.
85630         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85631         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85632         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85633         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85634         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85635         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85636         (textdomain): Remove definition.
85637         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85638
85639         * lib/long-options.c: Remove include of <libintl.h> and definition of
85640         _.
85641         * lib/same.c: Remove include of <libintl.h> and definition of _.
85642
85643 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85644
85645         * lib/config.charset: A few additions for Solaris.
85646
85647 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85648
85649         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85650         * lib/localcharset.c (locale_charset): Declare as extern "C".
85651
85652 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85653
85654         * lib/config.charset: msdos in uk_UA uses CP1125.
85655
85656 2002-11-04  Bruno Haible  <bruno@clisp.org>
85657
85658         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85659         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85660         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85661         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85662         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85663
85664 2002-11-04  Bruno Haible  <bruno@clisp.org>
85665
85666         * lib/localcharset.c (locale_charset): Don't return an empty string.
85667
85668 2002-11-04  Bruno Haible  <bruno@clisp.org>
85669
85670         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85671         aliases.
85672
85673 2002-11-04  Bruno Haible  <bruno@clisp.org>
85674
85675         * lib/config.charset: Update for newest glibc. Add canonical names
85676         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85677
85678 2002-11-04  Bruno Haible  <bruno@clisp.org>
85679
85680         * lib/config.charset: Add support for NetBSD.
85681
85682 2002-11-04  Bruno Haible  <bruno@clisp.org>
85683
85684         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85685
85686 2002-11-01  Bruno Haible  <bruno@clisp.org>
85687
85688         * configure.in: Add AC_CONFIG_AUX_DIR call.
85689         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85690         test/Makefile.
85691         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85692
85693 2002-09-28  Karl Berry  <karl@gnu.org>
85694
85695         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85696         installed automake until the next release, since changes have been
85697         made.
85698
85699 2002-09-25  Karl Berry  <karl@gnu.org>
85700
85701         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85702         * lib/getopt*: copy from libc/posix.
85703         * lib/gettext.h: copy from gettext.
85704         * lib/.cppi-disable: add strdup.c, gettext.h.
85705
85706 2002-09-25  Karl Berry  <karl@gnu.org>
85707
85708         * config/srclist.txt: enable gettext.h check.
85709         * config/config.{guess,sub}: update from prep.
85710         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85711                 from automake 1.6.3.
85712         See srclist*.
85713
85714 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85715
85716         * regex.c (PATFETCH): Remove the translating fetch.
85717         (PATFETCH_RAW): Rename to PATFETCH.
85718         (set_image_of_range): New fun.
85719         (SET_RANGE_TABLE_WORK_AREA): Use it.
85720         (regex_compile): Don't translate the pattern chars so eagerly.
85721         Only do it when inserting an `exactn' bytecode or when handling
85722         a char-range.
85723         (mutually_exclusive_p): Avoid empty statement.
85724
85725 2002-07-06  Jim Meyering  <meyering@lucent.com>
85726
85727         * m4/README: Don't mention Makefile.am.in.
85728         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85729
85730 2002-07-01  Jim Meyering  <meyering@lucent.com>
85731
85732         * lib/c-stack.c: Include sys/time.h.
85733         From Volker Borchert.
85734
85735 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85736
85737         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85738
85739 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85740
85741         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85742         New macro.  Use it uniformly instead of
85743         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85744         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85745         reported by Vin Shelton.
85746
85747 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85748
85749         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85750         Do not assume SA_SIGINFO behavior.
85751         Bug reported by Jim Meyering on NetBSD 1.5.2.
85752
85753 2002-06-22  Jim Meyering  <meyering@lucent.com>
85754
85755         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85756         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85757
85758         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85759         now that configure.ac uses AC_GNU_SOURCE.
85760         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85761         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85762
85763         Update to latest tools.  Suggestions from Paul Eggert.
85764         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85765         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85766         * m4/fnmatch.m4: Likewise.
85767         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85768         to AC_HEADER_STDBOOL
85769
85770 2002-06-22  Jim Meyering  <meyering@lucent.com>
85771
85772         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85773         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85774
85775 2002-06-22  Jim Meyering  <meyering@lucent.com>
85776
85777         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85778
85779         * lib/exitfail.c, exitfail.h: Likewise.
85780         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85781
85782         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85783         of fnmatch.h.
85784         (EXTRA_DIST): Add fnmatch_loop.c.
85785         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85786
85787         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85788         * lib/fnmatch.c: Update from diffutils-2.8.2.
85789         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85790         * lib/fnmatch.h: Remove file.
85791
85792 2002-06-21  Jim Meyering  <meyering@lucent.com>
85793
85794         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85795         * m4/mbrtowc.m4: Likewise.
85796
85797         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85798         * m4/mbswidth.m4: Reflect name change:
85799         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85800         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85801
85802         * m4/lib-link.m4: Update from gettext-0.11.2.
85803         * m4/gettext.m4: Likewise.
85804
85805         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85806         From Alfred M. Szmidt.
85807
85808 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85809
85810         * lib/file-type.h: Report an error if neither S_ISREG nor
85811         S_IFREG is defined, instead of using a test specific to glibc
85812         2.2.  This should be safe, since POSIX requires S_ISREG and
85813         Unix Version 7 had S_IFREG.  We don't need to check for
85814         <sys/types.h> since we don't use any symbols that it defines.
85815
85816 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85817
85818         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85819         $@-t, so that each temporary file name is unique and valid in the first
85820         8 characters, for operation under DOS.
85821
85822 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85823
85824         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85825
85826 2002-06-15  Jim Meyering  <meyering@lucent.com>
85827
85828         Work even with DJGPP 2.03, which lacks support for symlinks.
85829         From Richard Dawe.
85830         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85831         is defined.
85832         * lib/lchown.c (S_ISLNK): Likewise.
85833
85834 2002-06-15  Jim Meyering  <meyering@lucent.com>
85835
85836         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85837         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85838         have been included before this file.
85839
85840 2002-06-14  Jim Meyering  <meyering@lucent.com>
85841
85842         * lib/file-type.h: Use the version from diffutils-2.8.2.
85843         * lib/file-type.c: Likewise.
85844
85845 2002-06-07  Jim Meyering  <meyering@lucent.com>
85846
85847         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85848         They're needed at least for NetBSD 1.5.2.
85849         ($statxfs_includes): Include those same headers.
85850         ($statxfs_includes): Include sys/vfs.h if available.
85851         ($statxfs_includes): Likewise for sys/statvfs.h.
85852         Check for the following members in both structs statfs and statvfs:
85853         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85854
85855 2002-06-01  Jim Meyering  <meyering@lucent.com>
85856
85857         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85858         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85859
85860 2002-05-28  Jim Meyering  <meyering@lucent.com>
85861
85862         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85863         Reported by Volker Borchert.
85864
85865 2002-05-27  Jim Meyering  <meyering@lucent.com>
85866
85867         Fix a problem seen only on nonconforming systems whereby ls.c's
85868         use of localtime, and then of gettimeofday would cause trouble:
85869         the localtime call used to initialize rpl_gettimeofday's save
85870         mechanism would clobber ls's current local time information so
85871         that in any long listing the first file would always be listed
85872         with date 1970-01-01.  Analysis by Volker Borchert.
85873
85874         * lib/gettimeofday.c (localtime): Undefine.
85875         (rpl_localtime): New function.
85876
85877 2002-05-27  Jim Meyering  <meyering@lucent.com>
85878
85879         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85880         localtime.
85881
85882         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85883         use the replacement function; it wouldn't resolve at link time.
85884         Reported by Volker Borchert.
85885
85886 2002-05-22  Jim Meyering  <meyering@lucent.com>
85887
85888         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85889         file-type.h.
85890         * lib/file-type.h: New file.
85891         * lib/file-type.c (file_type): New file/function.  Extracted from
85892         diffutils.
85893
85894 2002-04-30  Jim Meyering  <meyering@lucent.com>
85895
85896         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85897
85898 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85899
85900         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85901
85902 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85903
85904         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85905         Do not check for alloca.h (no longer used) or stdbool.h (was never
85906         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85907
85908 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85909
85910         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85911
85912 2002-04-29  Jim Meyering  <meyering@lucent.com>
85913
85914         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85915         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85916         Use AC_FUNC_STRNLEN here instead.
85917
85918         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85919         With autoconf-2.53a, it's part of AC_PROG_CC.
85920
85921 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85922
85923         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85924         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85925
85926 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85927
85928         * lib/sig2str.h, lib/sig2str.c: New files.
85929         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85930
85931 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85932
85933         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85934         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85935         of 127, since 64 is the largest conceivable number for ancient
85936         nonstandard hosts.
85937         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85938
85939 2002-04-28  Jim Meyering  <meyering@lucent.com>
85940
85941         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85942
85943 2002-04-24  Jim Meyering  <meyering@lucent.com>
85944
85945         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85946         (jm_PREREQ): Use it.
85947
85948         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85949         mach/mach.h fcntl.h.
85950         Check for this function: setlocale.
85951
85952 2002-04-24  Jim Meyering  <meyering@lucent.com>
85953
85954         * lib/gettext.h: New file, from Gettext.
85955         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85956         (libfetish_a_SOURCES): Add gettext.h.
85957
85958 2002-04-16  Jim Meyering  <meyering@lucent.com>
85959
85960         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85961         ut_pid, ut_id, ut_exit.
85962
85963 2002-04-16  Jim Meyering  <meyering@lucent.com>
85964
85965         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85966         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85967         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85968
85969 2002-04-12  Jim Meyering  <meyering@lucent.com>
85970
85971         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85972         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85973         existence of the getmntinfo function.  Needed for Darwin 5.3.
85974
85975         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85976         This is necessary at least on Darwin 5.3.
85977
85978         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85979         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85980         strnlen.o in the library, and that makes some versions of ranlib
85981         object.
85982
85983 2002-04-12  Jim Meyering  <meyering@lucent.com>
85984
85985         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85986
85987 2002-04-09  Jim Meyering  <meyering@lucent.com>
85988
85989         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85990         to be more precise.  Rather than saying we're checking whether the
85991         function `works', say what we're testing.
85992         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85993         Reported by Bruno Haible.
85994
85995 2002-03-10  Jim Meyering  <meyering@lucent.com>
85996
85997         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85998         Suggestion from Santiago Vila.
85999
86000 2002-03-08  Jim Meyering  <meyering@lucent.com>
86001
86002         * lib/rename.c: Mention that this wrapper is needed also on
86003         mips-dec-ultrix4.4 systems.
86004
86005 2002-03-02  Jim Meyering  <meyering@lucent.com>
86006
86007         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86008         not HAVE_CLOCK_SETTIME.
86009
86010 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86011
86012         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86013         Check for clock_settime.
86014
86015 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86016
86017         * lib/nanosleep.h: Rename to....
86018         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86019
86020         * lib/gettime.c: New file.
86021         * lib/settime.c: New file.
86022         * lib/stime.c: Remove.
86023
86024         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86025         timespec.h.  Remove nanosleep.h.
86026
86027 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86028
86029         * m4/acl.m4: New file.
86030         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86031         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86032
86033 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86034
86035         * lib/acl.c, lib/acl.h: New files.
86036         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86037
86038 2002-02-24  Jim Meyering  <meyering@lucent.com>
86039
86040         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86041         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86042         cause trouble.  Reported by Nelson Beebe.
86043
86044 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86045
86046         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86047         compilers that don't know that xalloc_die never returns.
86048
86049 2002-02-20  Jim Meyering  <meyering@lucent.com>
86050
86051         * lib/getdate.c: Regenerate using bison-1.33.
86052
86053 2002-02-17  Jim Meyering  <meyering@lucent.com>
86054
86055         * config/config.guess (main): Don't use `head -1'; it's no longer
86056         portable. Use `sed 1q' instead.
86057
86058 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86059
86060         * m4/codeset.m4: Upgrade to gettext-0.11.
86061         * m4/gettext.m4: Upgrade to gettext-0.11.
86062         * m4/glibc21.m4: Upgrade to gettext-0.11.
86063         * m4/iconv.m4: Upgrade to gettext-0.11.
86064         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86065         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86066         * m4/lib-ld.m4: New file, from gettext-0.11.
86067         * m4/lib-link.m4: New file, from gettext-0.11.
86068         * m4/lib-prefix.m4: New file, from gettext-0.11.
86069         * m4/progtest.m4: Upgrade to gettext-0.11.
86070
86071 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86072
86073         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86074         (jm_PREREQ): Use it.
86075
86076 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86077
86078         * lib/posixver.c, lib/posixver.h: New files.
86079         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86080
86081 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86082             Bruno Haible  <bruno@clisp.org>
86083
86084         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86085         (fwrite_success_callback): New declaration.
86086         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86087         print_unicode_char. Call failure callback instead of error.
86088         (fwrite_success_callback): New function.
86089         (exit_failure_callback): New function.
86090         (fallback_failure_callback): New function.
86091         (print_unicode_char): Call unicode_to_mb.
86092
86093 2002-01-26  Jim Meyering  <meyering@lucent.com>
86094
86095         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86096         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86097
86098 2002-01-26  Jim Meyering  <meyering@lucent.com>
86099
86100         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86101
86102 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86103
86104         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86105
86106 2002-01-22  Jim Meyering  <meyering@lucent.com>
86107
86108         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86109         Otherwise, some versions of automake would omit the rule that makes
86110         Makefile from Makefile.in.
86111
86112 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86113
86114         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86115         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86116         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86117         (memcoll): Set errno to zero if there is no error.
86118
86119         * lib/quotearg.c (quotearg_buffer_restyled):
86120         Fix bug with quoting buffers containing NUL when backslashing escapes.
86121         This bug was exposed by the other changes in this patch.
86122         (quotearg_n_options): New arg ARGSIZE.
86123         All callers changed.
86124         (quoting_options_from_style): New function.
86125         (quotearg_n_style): Use it.
86126         (quotearg_n_style_mem): New function.
86127
86128         * lib/quotearg.h (quotearg_n_style_mem): New function.
86129
86130 2002-01-19  Jim Meyering  <meyering@lucent.com>
86131
86132         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86133         Remove useless quotes: DF_PROG="df".
86134         * m4/strnlen.m4: New file.
86135
86136 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86137
86138         * lib/backupfile.c (ISDIGIT): Comment fix.
86139         * lib/getdate.y (ISDIGIT): Likewise.
86140         * lib/posixtm.c (ISDIGIT, year): Likewise.
86141         * lib/strverscmp.c (ISDIGIT): Likewise.
86142         * lib/userspec.c (ISDIGIT): Likewise.
86143
86144 2002-01-16  Jim Meyering  <meyering@lucent.com>
86145
86146         * lib/getdate.y: Add three semicolons, each just before a closing
86147         brace. Bison (as of version 1.31) no longer papers over that mistake.
86148
86149 2002-01-05  Jim Meyering  <meyering@lucent.com>
86150
86151         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86152
86153 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86154
86155         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86156         not silently exit merely because the output buffer happens to
86157         have nothing pending.
86158
86159 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86160
86161         See the big note in ../ChangeLog.
86162         * lib/human.c (suffixes): Prefer K to k for 1024.
86163         (generate_suffix_backwards): New function.
86164         (human_readable_inexact): Use it.
86165         * lib/xstrtol.c (__xstrtol): If there is no number but there
86166         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86167         Accept 'K' as well as 'k'.
86168
86169 2001-12-15  Jim Meyering  <meyering@lucent.com>
86170
86171         * lib/regex.h (__restrict_arr): Update from libc.
86172
86173         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86174         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86175         (STREQ): Define.
86176
86177 2001-12-14  Jim Meyering  <meyering@lucent.com>
86178
86179         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86180         Suggestion from Bruno Haible.
86181
86182 2001-12-10  Jim Meyering  <meyering@lucent.com>
86183
86184         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86185         xrealloc, Instead, include "xalloc.h".
86186         (initbuffer): Don't cast xmalloc return value to char*.
86187         (readline): Reword comment.
86188         Don't cast xrealloc return value to char*
86189         Return NULL, not 0.
86190
86191 2001-12-09  Jim Meyering  <meyering@lucent.com>
86192
86193         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86194         about `signed and unsigned type in conditional expression'.
86195         * lib/posixtm.c (posix_time_parse): Likewise.
86196
86197         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86198
86199         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86200         to avoid a pedantic warning.
86201
86202         * lib/getstr.c: Don't include assert.h.
86203         (getstr): Remove warning-evoking assertions.
86204         Return -1 if offset parameter is out of bounds.
86205         Change the type of a local from int to size_t.
86206
86207         * lib/strftime.c (my_strftime_localtime_r): Include this function
86208         definition in the `#if ! HAVE_TM_GMTOFF' block.
86209
86210         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86211         Include xalloc.h instead.
86212
86213 2001-12-02  Jim Meyering  <meyering@lucent.com>
86214
86215         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86216         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86217         included.
86218
86219         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86220         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86221
86222 2001-11-30  Akim Demaille  <akim@epita.fr>
86223
86224         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86225         before being defined.
86226
86227 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86228
86229         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86230         First arg is int, not unsigned.
86231         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86232         (SIZE_MAX, UINT_MAX): New macros.
86233         (quotearg_n_options): Abort if N is negative.
86234         Avoid overflow check on hosts where size_t is 64 bits and int
86235         is 32 bits, as overflow is impossible there.
86236         Fix off-by-one typo that caused unnecessary reallocation.
86237
86238 2001-11-27  Jim Meyering  <meyering@lucent.com>
86239
86240         * lib/tempname.c: Merge with version from libc.
86241         * lib/regex.c: Likewise.
86242
86243         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86244         systems for which STDC_HEADERS is 0, it was not included, resulting in
86245         a warning about an integer-to-pointer conversion problem with getenv.
86246         Reported by Volker Borchert.
86247
86248 2001-11-26  Jim Meyering  <meyering@lucent.com>
86249
86250         * lib/gtod.h: Remove file.
86251         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86252         * lib/gettimeofday.c: Don't include gtod.h.
86253         (GTOD_init): Remove function.
86254         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86255         Suggestion from Volker Borchert.
86256
86257 2001-11-23  Jim Meyering  <meyering@lucent.com>
86258
86259         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86260         it.
86261         * lib/hash.c (struct hash_table): Define it here instead.
86262
86263 2001-11-22  Jim Meyering  <meyering@lucent.com>
86264
86265         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86266
86267 2001-11-20  Jim Meyering  <meyering@lucent.com>
86268
86269         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86270         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86271
86272 2001-11-19  Jim Meyering  <meyering@lucent.com>
86273
86274         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86275         directory.  Use "conftestXXXXXX" as the template.
86276         Suggestion from Paul Eggert.
86277
86278         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86279         immediately, so the test doesn't mistakenly hit the max-open-files
86280         limit.
86281
86282 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86283
86284         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86285         (TEMPORARIES): New macro.
86286         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86287         removes an artificial limitation (e.g. HP-UX 10.20, where
86288         TMP_MAX is 17576).
86289
86290 2001-11-18  Jim Meyering  <meyering@lucent.com>
86291
86292         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86293
86294 2001-11-18  Jim Meyering  <meyering@lucent.com>
86295
86296         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86297         on SunOS 4.
86298
86299         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86300         files will be created before anything else.
86301
86302 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86303
86304         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86305         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86306
86307 2001-11-17  Jim Meyering  <meyering@lucent.com>
86308
86309         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86310         Prompted by a report from Bob Proulx.
86311
86312         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86313         Instead, require UTILS_FUNC_MKSTEMP.
86314
86315 2001-11-17  Jim Meyering  <meyering@lucent.com>
86316
86317         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86318         Now, that's done as part of AC_FUNC_STRTOD.
86319
86320 2001-11-17  Jim Meyering  <meyering@lucent.com>
86321
86322         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86323         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86324         rather than group writable.  Patch by Juan F. Codagnone.
86325
86326         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86327         xrealloc, Instead, include "xalloc.h".
86328
86329         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86330         Remove explicit declarations of xmalloc, xrealloc,
86331         and xstrdup.  Instead, include "xalloc.h".
86332
86333         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86334         unlocked-io.h.
86335         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86336         Likewise.
86337         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86338
86339         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86340         Reported by Padraig Brady.
86341
86342         * lib/mkstemp.c: #undef mkstemp.
86343         Include config.h.
86344         (rpl_mkstemp): Rename from mkstemp.
86345         Protoize.
86346
86347 2001-11-16  Jim Meyering  <meyering@lucent.com>
86348
86349         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86350         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86351         determine the amount of total physical memory, use pstat_getstatic.
86352         HPUX-11 doesn't define _SC_PHYS_PAGES.
86353         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86354         If sysconf couldn't be used to determine the amount of available
86355         physical memory, use both pstat_getstatic and pstat_getdynamic.
86356         Based on a patch from Bob Proulx.
86357
86358 2001-11-10  Jim Meyering  <meyering@lucent.com>
86359
86360         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86361         (jm_PREREQ): Use it.
86362
86363 2001-11-09  Jim Meyering  <meyering@lucent.com>
86364
86365         * m4/jm-macros.m4: Require autoconf-2.52f.
86366         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86367         Use these AC_-prefixed names, not the AM_-prefixed ones.
86368
86369         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86370
86371 2001-11-05  Jim Meyering  <meyering@lucent.com>
86372
86373         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86374
86375 2001-11-04  Jim Meyering  <meyering@lucent.com>
86376
86377         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86378         $DEFS.
86379
86380 2001-11-03  Jim Meyering  <meyering@lucent.com>
86381
86382         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86383         of AC_DEFUN.
86384
86385         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86386         know the name of the variable in the macro definition.
86387
86388 2001-11-03  Jim Meyering  <meyering@lucent.com>
86389
86390         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86391         in argmatch_to_argument call.
86392
86393         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86394         argument.
86395
86396         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86397         e.g., a fault due to an attempt to free a NULL pointer.
86398
86399 2001-11-01  Jim Meyering  <meyering@lucent.com>
86400
86401         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86402         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86403
86404 2001-11-01  Jim Meyering  <meyering@lucent.com>
86405
86406         * lib/dirfd.c, lib/dirfd.h: New files.
86407         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86408
86409         * lib/hash.c (hash_print) [TESTING]: Clean up.
86410
86411 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86412
86413         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86414         to avoid a warning if -Wall.
86415
86416 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86417
86418         * README: New file
86419         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86420         (per RMS's instructions, this is now the canonical source)
86421         * lgpl/, gpl/: New directories.
86422
86423 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86424
86425         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86426
86427 2001-10-21  Jim Meyering  <meyering@lucent.com>
86428
86429         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86430         this code would end up calling gettext even in packages built
86431         with --disable-nls.
86432         * lib/getopt.c (_): Likewise.
86433         * lib/regex.c (_): Likewise.
86434
86435 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86436
86437         * m4/error.m4 (jm_PREREQ_ERROR):
86438         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86439         AC_FUNC_STRERROR_R does that.
86440         Check for strerror declaration.
86441
86442         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86443         are supposed to have them these days.
86444         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86445         Merge changes from latest Autoconf CVS.
86446         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86447         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86448         POSIX decided to standardize on the int flavor of strerror_r.
86449
86450 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86451
86452         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86453         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86454         Use strerror_r that is only a macro, even if it is not a function.
86455         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86456         (private_strerror): Use prototypes, not old-style function definition.
86457         (print_errno_message): New function.
86458         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86459         char*-flavored one.
86460         (error_tail, error, error_at_line): Use it.
86461
86462 2001-10-11  Jim Meyering  <meyering@lucent.com>
86463
86464         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86465         and quote_n (1, ... to avoid clobbering a buffer.
86466
86467 2001-10-05  Jim Meyering  <meyering@lucent.com>
86468
86469         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86470         hash-pjw.h.
86471         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86472         * lib/hash-pjw.h: New file.
86473
86474 2001-09-30  Jim Meyering  <meyering@lucent.com>
86475
86476         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86477         `struct fsstat' has the `f_fstypename' member.
86478         Use that to define FS_TYPE, which is now used to make
86479         the getfsstat link test tighter.
86480
86481 2001-09-30  Jim Meyering  <meyering@lucent.com>
86482
86483         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86484         Include <sys/ucred.h>, for Apple Darwin.
86485         Include sys/mount.h and sys/fs_types.h only if available.
86486         (FS_TYPE): Define.
86487         (read_filesystem_list): Use FS_TYPE.
86488
86489 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86490
86491         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86492         a boolean context.
86493
86494 2001-09-29  Jim Meyering  <meyering@lucent.com>
86495
86496         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86497         [one-argument getmntent function]): Include stdio.h before mntent.h.
86498         SunOS 4.1.x needs it for the declaration of `FILE'.
86499         Patch by Volker Borchert.
86500
86501         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86502         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86503         sys/fs_types.h, and make the link-test for getfsstat guard #include
86504         directives with appropriate #if HAVE_*_H tests so that we can
86505         detect getfsstat on Apple Darwin1.3.7 systems.
86506         Reported by Nelson Beebe.
86507         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86508
86509 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86510
86511         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86512         #defines strtoimax.  Also treat the other strto* functions
86513         like strtoimax.
86514
86515         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86516         Check for strtoul and strtoumax,
86517         as those declarations are made even in the signed case.
86518         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86519         Likewise, for strtol and strtoimax.
86520
86521 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86522
86523         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86524         #defines strtoimax.  Also treat the other strto* functions
86525         like strtoimax.
86526
86527         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86528         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86529         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86530
86531 2001-09-26  Jim Meyering  <meyering@lucent.com>
86532
86533         Most macros in unlocked-io.h had the wrong number of arguments.
86534         * lib/gen-uio: New script.
86535         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86536         * lib/unlocked-io.hin: Remove file.
86537         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86538         rather than trying to embed it here.
86539         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86540         Reported by Padraig Brady.
86541
86542 2001-09-25  Volker Borchert  <bt@teknon.de>
86543
86544         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86545         `result'.
86546
86547 2001-09-24  Jim Meyering  <meyering@lucent.com>
86548
86549         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86550
86551 2001-09-23  Jim Meyering  <meyering@lucent.com>
86552
86553         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86554         instead of the mere test for existence of mntent.h.  The latter
86555         would get a false-positive on AIX 3.4 systems.
86556         In the outer getmntent if-block, don't die if neither of the getmntent
86557         tests succeeds.  Instead, just fall through and continue with the
86558         remaining tests.
86559
86560 2001-09-23  Jim Meyering  <meyering@lucent.com>
86561
86562         * lib/mountlist.c: Remove useless parentheses in #if directives.
86563         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86564         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86565
86566 2001-09-22  Jim Meyering  <meyering@lucent.com>
86567
86568         * m4/gettext.m4: New file.  From gettext.
86569         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86570         * m4/progtest.m4: Likewise
86571         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86572         * m4/glibc21.m4: Likewise.
86573
86574         * m4/libintl.m4: Remove.  No longer used.
86575
86576 2001-09-22  Jim Meyering  <meyering@lucent.com>
86577
86578         * lib/localcharset.c: Update from latest gettext.
86579         * lib/config.charset: Likewise.
86580
86581 2001-09-20  Jim Meyering  <meyering@lucent.com>
86582
86583         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86584         strtoimax.
86585         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86586         strtoumax.
86587
86588 2001-09-20  Jim Meyering  <meyering@lucent.com>
86589
86590         * lib/xstrtol.c (strtoimax): Guard declaration with
86591         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86592         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86593         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86594         (strtoumax): Likewise, for completeness (it wasn't necessary).
86595
86596 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86597
86598         * lib/strtoimax.c (HAVE_LONG_LONG):
86599         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86600         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86601         to work around bug in IBM C compiler.
86602
86603 2001-09-17  Jim Meyering  <meyering@lucent.com>
86604
86605         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86606         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86607         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86608         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86609         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86610         whenever the right hand side need not be expanded by the shell.
86611
86612 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86613
86614         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86615         library.  It's not correct, as some older glibcs are buggy.
86616         fnmatch wasn't fixed until glibc 2.2.
86617
86618         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86619         special shell magic here.
86620
86621 2001-09-16  Jim Meyering  <meyering@lucent.com>
86622
86623         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86624         * m4/jm-macros.m4: Require it.
86625
86626 2001-09-16  Jim Meyering  <meyering@lucent.com>
86627
86628         * lib/mkdir.c: New file.
86629
86630 2001-09-15  Jim Meyering  <meyering@lucent.com>
86631
86632         * m4/jm-macros.m4: Check for help2man.
86633
86634 2001-09-11  Jim Meyering  <meyering@lucent.com>
86635
86636         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86637         The body, by Paul Eggert, was moved here from configure.in.
86638         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86639
86640 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86641
86642         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86643         (jm_PREREQ): Use it.
86644
86645 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86646
86647         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86648         Use ssize_t, not int, to store result of readlink.
86649         Check for ssize_t overflow as well as size_t overflow,
86650         as POSIX says the result of readlink is implementation-defined
86651         when ssize_t overflows.
86652         Remove unnecessary cast to char*.
86653         Use free+malloc instead of realloc, as the storage doesn't need
86654         to be preserved and it's clearer and can be more efficient that way.
86655         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86656         * lib/xreadlink.h (xreadlink): Update prototype.
86657
86658 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86659
86660         * lib/xgetcwd.c: Revert some of the previous change; intead,
86661         fix the HAVE_GETCWD_NULL code to behave more like the
86662         !HAVE_GETCWD_NULL code used to.
86663
86664         Include "xalloc.h".
86665         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86666         invoke xalloc_die.
86667
86668 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86669
86670         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86671         sys/param.h, as pathmax.h includes them.
86672
86673 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86674
86675         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86676         (jm_PREREQ_XGETCWD): New macro.
86677
86678         * m4/getcwd.m4: New file.
86679
86680 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86681
86682         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86683         like the HAVE_GETCWD_NULL code.
86684         Include pathmax.h if not HAVE_GETCWD.
86685         Do not include xalloc.h.
86686         (INITIAL_BUFFER_SIZE): New symbol.
86687         Do not use xmalloc / xrealloc, since the caller is responsible for
86688         handling errors.  Preserve errno around `free' during failure.
86689         Do not overrun buffer when using getwd.
86690
86691 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86692
86693         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86694         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86695         getcwd (NULL, 0).
86696
86697 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86698
86699         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86700         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86701         spotted by Jim Meyering.
86702
86703 2001-09-03  Jim Meyering  <meyering@lucent.com>
86704
86705         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86706         failure.
86707
86708 2001-09-02  Jim Meyering  <meyering@lucent.com>
86709
86710         * lib/error.c: Update from GNU libc.
86711
86712 2001-09-01  Jim Meyering  <meyering@lucent.com>
86713
86714         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86715         Used by df.
86716
86717 2001-09-01  Jim Meyering  <meyering@lucent.com>
86718
86719         * lib/xreadlink.c: New file.
86720         * lib/xreadlink.h: New file.
86721         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86722         xreadlink.h.
86723
86724         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86725         doesn't conflict with sparc Solaris 7's definition in
86726         /usr/include/sys/int_types.h.
86727
86728         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86729         files.
86730         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86731         and strncasecmp as r-values.  Unixware didn't have declarations.
86732
86733 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86734
86735         * lib/xstrtol.h: Add copyright notice.
86736         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86737         LONGINT_INVALID_SUFFIX_CHAR.
86738
86739 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86740
86741         * lib/xstrtol.c (strtoimax): New decl.
86742
86743 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86744
86745         * lib/xgetcwd.c: Don't include pathmax.h.
86746         Include stdlib.h and unistd.h if available.
86747         Include xalloc.h.
86748         (xmalloc, xstrdup, free): Remove decls.
86749         (xgetcwd): Don't assume sizes fit in unsigned.
86750         Check for overflow when computing sizes.
86751         Simplify reallocation code.
86752
86753 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86754
86755         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86756         a directory's st_size can have an arbitrary value, so the old
86757         usage could waste an arbitrary amount of memory.  All uses
86758         changed.
86759         * lib/savedir.h: Update prototype.
86760
86761 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86762
86763         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86764
86765         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86766         old strtoimax.c.
86767
86768         Also, make the following further changes to make this file's
86769         configuration more similar to that of strtol.c:
86770         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86771         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86772         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86773         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86774         changed to signed values.
86775
86776         And make the following changes as well:
86777         Fix copyright notice, as 1999 was missing.
86778         (verify): New macro.
86779         (strtoimax): Check sizes at compile-time, not run-time.
86780         Prefer strtol to strtoll if both work.
86781         (main): Remove; it was not that useful and was a pain to maintain.
86782
86783         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86784
86785 2001-08-31  Jim Meyering  <meyering@lucent.com>
86786
86787         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86788         Use an initial, malloc'd, buffer of length 128 rather than
86789         a statically allocated one of length 1024.
86790
86791 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86792
86793         Simplify code, partly by assuming autoconf 2.52 semantics.
86794
86795         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86796
86797         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86798         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86799         All uses removed.
86800         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86801         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86802         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86803         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86804         jm_AC_HEADER_INTTYPES_H.
86805         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86806
86807         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86808
86809         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86810         Quote first arg of AC_DEFUN.
86811         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86812         since they are needed to parse the include file even if we need
86813         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86814         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86815         but with opposite signedness.
86816
86817 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86818
86819         Merge 'exclude' changes from tar 1.13.22.
86820         This fixes one or two unlikely storage allocation overflow bugs,
86821         but doesn't change user-visible behavior otherwise.
86822
86823 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86824
86825         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86826         (jm_PREREQ_EXCLUDE): New macro.
86827
86828 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86829
86830         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86831         tm to be declared.
86832
86833 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86834
86835         * lib/hash.c: Remove '2001' from copyright notice.
86836
86837 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86838
86839         * lib/full-write.h: New file.
86840         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86841         * lib/full-write.c: Correct credits, as cccp.c no longer
86842         exists and anyway it was so heavily changed from the old cccp
86843         code as to be unrecognizable.  Include full-write.h.
86844         (full_write): Return size_t, with short writes meaning failure.
86845         All callers changed.  This fixes a bug with large buffers
86846         on 64-bit hosts.
86847         * lib/utime.c: Include full-write.h.
86848
86849 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86850
86851         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86852         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86853         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86854         Include if available.
86855         (<xalloc.h>): Include
86856         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86857         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86858         collide with FNM macros.
86859         (struct patopts): New struct.
86860         (struct exclude): Use it, as exclude patterns now come with options.
86861         (new_exclude): Support above changes.
86862         (new_exclude, add_exclude_file):
86863         Initial size must now be a power of two to simplify overflow checking.
86864         (free_exclude, fnmatch_no_wildcards): New function.
86865         (excluded_filename): No longer requires options arg, as the options
86866         are determined by add_exclude.  Now returns bool, not int.
86867         (excluded_filename, add_exclude):
86868         Add support for the fancy new exclusion options.
86869         (add_exclude, add_exclude_file): Now takes int options arg.
86870         Check for arithmetic overflow when computing sizes.
86871         (add_exclude_file): xrealloc might modify errno, so don't
86872         realloc until after errno might be used.
86873
86874         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86875         New macros.
86876         (free_exclude): New decl.
86877         (add_exclude, add_exclude_file): Now takes int options arg.
86878         (excluded_filename): No longer requires options arg, as the options
86879         are determined by add_exclude.  Now returns bool, not int.
86880
86881 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86882
86883         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86884
86885 2001-08-27  Jim Meyering  <meyering@lucent.com>
86886
86887         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86888
86889         * lib/version-etc.c (N_): Remove definition.
86890         Revert most of last change.
86891         Instead, simply don't mark the `Copyright...' string for translation.
86892         Based on advice from Paul Eggert.
86893
86894         * lib/strtoxmax.c: Tweak comment.
86895
86896 2001-08-26  Jim Meyering  <meyering@lucent.com>
86897
86898         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86899
86900         * m4/xstrtoimax.m4: New file.
86901         * m4/xstrtoumax.m4: Add comments explaining why we
86902         AC_REPLACE_FUNCS(strtol).
86903
86904 2001-08-26  Jim Meyering  <meyering@lucent.com>
86905
86906         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86907         of copyright with `%s' so translators don't get an untranslated
86908         message in 2002.
86909         (COPYRIGHT_YEAR): Define.
86910         (version_etc): Use fprintf rather than fputs.
86911         Suggestion from Ulrich Drepper.
86912
86913         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86914
86915         * lib/strtoll.c: New file, from GNU libc.
86916         * lib/xstrtoimax.c: New file.
86917
86918         * lib/xstrtol.h: Add xstrtoimax.
86919         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86920         * lib/strtoimax.c: New file.  Likewise, but first define
86921         STRTOUXMAX_SIGNED.
86922
86923         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86924         ...
86925         * lib/strtoxmax.c: ... then renamed to this.
86926
86927 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86928
86929         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86930         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86931         (jm_AC_TYPE_INTMAX_T): New macro.
86932         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86933
86934         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86935
86936         * m4/longlong.m4: Renamed from ulonglong.m4.
86937         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86938         * m4/uintmax_t.m4: Removed.
86939
86940 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86941
86942         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86943         Port to Solaris 8, where 'sed' requires a space after the 'r'
86944         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86945         Redirect output to $tmp just once.
86946
86947 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86948
86949         * lib/addext.c (<errno.h>): Include.
86950         (errno): Declare if not defined.
86951         (addext): Work correctly when pathconf returns -1 and leaves
86952         errno alone because there is no limit.  Also, work even if
86953         pathconf returns a value greater than SIZE_MAX.
86954
86955 2001-08-12  Jim Meyering  <meyering@lucent.com>
86956
86957         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86958         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86959         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86960         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86961         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86962         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86963         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86964         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86965         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86966         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86967         utime.m4, utimes.m4, xstrtoumax.m4:
86968         Quote the first argument in each use of AC_DEFUN.
86969
86970 2001-08-12  Jim Meyering  <meyering@lucent.com>
86971
86972         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86973         Simply `return getcwd (NULL, 0);'.
86974         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86975         Use 1300 as initial value for length, not PATH_MAX.
86976
86977         * lib/pathmax.h: Clean up cpp syntax.
86978
86979 2001-08-12  Jim Meyering  <meyering@lucent.com>
86980
86981         * lib/gettimeofday.c: New file.
86982         * lib/gtod.h: New file.
86983         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86984
86985 2001-08-05  Jim Meyering  <meyering@lucent.com>
86986
86987         * m4/jm-macros.m4: Require autoconf-2.52.
86988
86989 2001-08-04  Jim Meyering  <meyering@lucent.com>
86990
86991         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86992         stmt, to get in sync with glibc.
86993
86994 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86995
86996         The following changes are from gettext 0.10.39 as maintained by
86997         Bruno Haible.
86998
86999         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87000         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87001         with inverted sense.  All uses changed.
87002
87003         * lib/mbswidth.c: Don't include <limits.h>.
87004         Include <stdlib.h> and <string.h> unconditionally.
87005         (iswcntrl, mbsinit, ISCNTRL): New macros.
87006         (mbsnwidth): Use K&R style function declarations.
87007         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87008         can optimize it when MB_CUR_MAX == 1.
87009         The width of control characters is zero, not 1.
87010
87011 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87012
87013         The following changes are from gettext 0.10.39 as maintained by
87014         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87015
87016         * m4/codeset.m4: Upgrade to serial AM1.
87017         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87018         all uses changed.  Quote first arg of AC_DEFUN.
87019         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87020
87021         * m4/iconv.m4: Upgrade to serial AM2.
87022         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87023         Add --with-libconv-prefix.
87024         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87025         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87026         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87027         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87028         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87029
87030         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87031         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87032         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87033         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87034         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87035         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87036         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87037         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87038         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87039
87040         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87041         string.h any more.
87042
87043         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87044         not the default value.
87045
87046         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87047         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87048         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87049         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87050         Also check for iswcntrl, used for wcwidth fallback.
87051         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87052         to Autoconf 2.13.
87053
87054 2001-08-03  Jim Meyering  <meyering@lucent.com>
87055
87056         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87057         as it was in the original.  Reported by Paul Eggert.
87058
87059 2001-07-16  Jim Meyering  <meyering@lucent.com>
87060
87061         * m4/gettimeofday.m4: New file.
87062         Prompted by a report from Bernhard Baehr.
87063
87064 2001-07-15  Jim Meyering  <meyering@lucent.com>
87065
87066         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87067         stuff. Now it's in ../Makefile.cfg.
87068
87069 2001-07-15  Jim Meyering  <meyering@lucent.com>
87070
87071         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87072         (BUILT_SOURCES): Add unlocked-io.h.
87073         (io_functions): Define.
87074         (unlocked-io.h): New rule.
87075         (DISTCLEANFILES): Add unlocked-io.h.
87076         (all-local): Depend on unlocked-io.h, to ensure it is created.
87077
87078         * lib/unlocked-io.hin: New file
87079
87080         * lib/regex.c: Update from glibc.
87081
87082 2001-07-05  Jim Meyering  <meyering@lucent.com>
87083
87084         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87085         recommendation.
87086         (libfetish_a_SOURCES): Put all .h files here instead.
87087         Remove a thus-exposed (better checks in automake) duplicate and
87088         two unnecessary .h files.
87089
87090 2001-07-04  Jim Meyering  <meyering@lucent.com>
87091
87092         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87093         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87094         distcheck failure.
87095
87096 2001-07-02  Jim Meyering  <meyering@lucent.com>
87097
87098         The following changes were prompted by suggestions from Bruno Haible.
87099
87100         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87101         is now generated.
87102         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87103         definition of EXTRA_DIST.
87104         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87105         ensure that the generated file is created/updated whenever the list
87106         of $(unlocked_functions) is changed.
87107         (jm-glibc-io.m4): New rule.
87108         (unlocked-io.h): New rule -- currently unused.
87109
87110 2001-06-24  Jim Meyering  <meyering@lucent.com>
87111
87112         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87113         unmatched right bracket, rather than kludging it with an extra,
87114         falsely-matching quote in a comment.  Patch by Akim Demaille.
87115
87116 2001-06-11  Jim Meyering  <meyering@lucent.com>
87117
87118         * lib/regex.c: Update from GNU libc.
87119
87120 2001-05-27  Jim Meyering  <meyering@lucent.com>
87121
87122         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87123         Check for ut_type in struct utmp.
87124
87125 2001-05-27  Jim Meyering  <meyering@lucent.com>
87126
87127         * lib/readutmp.h (UT_TYPE): Define.
87128
87129 2001-05-24  Jim Meyering  <meyering@lucent.com>
87130
87131         * lib/argmatch.c: Include "quote.h".
87132         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87133         quote function.  Reported by Göran Uddeborg.
87134
87135 2001-05-22  Jim Meyering  <meyering@lucent.com>
87136
87137         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87138         now that we use the package-supplied version unconditionally.
87139         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87140
87141 2001-05-21  Jim Meyering  <meyering@lucent.com>
87142
87143         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87144         shell syntax errors.
87145
87146 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87147
87148         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87149
87150 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87151
87152         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87153         Don't bother to check library strftime, since
87154         we'll be using our own my_strftime function anyway.
87155         Define my_strftime instead of strftime.
87156
87157 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87158
87159         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87160         which is not yet declared.
87161
87162 2001-05-15  Jim Meyering  <meyering@lucent.com>
87163
87164         * m4/regex.m4: Use proper quoting so brackets appear in the test
87165         program.
87166         Reported by, and with help from, Bruno Haible.
87167
87168 2001-05-13  Jim Meyering  <meyering@lucent.com>
87169
87170         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87171         undefined.
87172
87173 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87174
87175         dirname code cleanup.  base_name now behaves more compatibly
87176         with POSIX basename when given file names that have trailing
87177         slashes, and similarly for dir_name.  Add new primitives
87178         base_len and dir_len.  Put the directory-name-related decls
87179         into dirname.h.
87180
87181         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87182         * lib/backupfile.c (base_name): Likewise.
87183         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87184         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87185         * lib/makepath.c (strip_trailing_slashes): Likewise.
87186         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87187         ISSLASH): Likewise.
87188         * lib/rename.c (strip_trailing_slashes): Likewise.
87189         * lib/same.c (base_name): Likewise.
87190         * lib/stripslash.c (ISSLASH): Likewise.
87191
87192         * lib/addext.c: Include <dirname.h> after size_t is defined.
87193         * lib/backupfile.c: Likewise.
87194
87195         * lib/addext.c (addext): Use base_len to trim redundant
87196         trailing slashes instead of doing it ourselves.
87197         But do not trim the last slash if it is not redundant.
87198
87199         * lib/backupfile.c (find_backup_file_name,
87200         max_backup_version): Use base_len instead of rolling it ourselves.
87201         Handle the case of "" and (on DOS) "C:" correctly.
87202
87203         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87204         needed. Include <string.h>, <dirname.h>.
87205         (base_name): Allow file names ending in slashes, other than names
87206         that are all slashes.  In this case, return the basename followed
87207         by the slashes.  This is more general, and can be used in places
87208         where the original base_name purposely had an assertion failure.
87209         (base_len): New function.
87210
87211         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87212         Do not include <assert.h>; no longer needed.
87213         Include xalloc.h.
87214         (memrchr): Remove decl.
87215         (dir_name_r): Remove.
87216         (dir_len): Renamed from dirlen.  All callers changed.
87217         Rewrite in terms of base_name, for simplicity and consistency.
87218         (dir_name): Never return NULL.  All callers changed.
87219         Do not include <stdlib.h> in test program; no longer needed.
87220         return 0; is fine for test program.
87221
87222         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87223         New macros.
87224         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87225
87226         * lib/path-concat.c (path_concat): Use base_len to compute
87227         base length, not strlen; this means we cannot rely on memcpy
87228         to null-terminate.
87229
87230         * lib/same.c (STREQ): Remove.
87231         (same_name): Handle the case where the basename ends in trailing '/'.
87232
87233         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87234         a slash was stripped.  Do not strip the last slash after a
87235         file system prefix.
87236
87237 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87238
87239         * lib/Makefile.am (libfetish_a_SOURCES):
87240         Add strftime.c, since we now compile it on all hosts.
87241
87242         * lib/strftime.c (my_strftime):
87243         Define to nstrftime if emacs, but only if my_strftime is not defined.
87244         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87245         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87246         Add one more extra argument: a nanoseconds value.
87247         All uses changed.
87248         (ns): New macro.
87249         (my_strftime function): Add %N format.
87250         (emacs_strftimeu): Renamed from emacs_strftime,
87251         with extra ut argument.
87252
87253 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87254
87255         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87256
87257 2001-04-21  Jim Meyering  <meyering@lucent.com>
87258
87259         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87260         doesn't interfere.
87261
87262 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87263
87264         * m4/ftruncate.m4: Check for chsize.
87265         Link with ftruncate.o unconditionally if ftruncate is missing.
87266         This was required when cross-compiling to i586-mingw32msvc.
87267
87268 2001-04-08  Jim Meyering  <meyering@lucent.com>
87269
87270         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87271         recomputed; that's necessary when the offset spans a DST transition.
87272         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87273
87274 2001-04-02  Jim Meyering  <meyering@lucent.com>
87275
87276         * lib/regex.h, regex.c: Update from GNU libc.
87277
87278 2001-03-24  Jim Meyering  <meyering@lucent.com>
87279
87280         * m4/jm-macros.m4: Require autoconf-2.49d.
87281
87282 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87283
87284         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87285
87286 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87287
87288         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87289
87290 2001-03-17  Jim Meyering  <meyering@lucent.com>
87291
87292         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87293         now that the version in autoconf is equivalent.
87294         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87295
87296         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87297         Suggestion from Akim Demaille.
87298
87299         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87300         (jm_PREREQ_TEMPNAME): New function.
87301
87302 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87303
87304         * lib/tempname.c (uint64_t): Define to uintmax_t if
87305         not defined, and if UINT64_MAX is not defined.
87306         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87307         Reported by John David Anglin.
87308
87309 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87310
87311         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87312         resolve alias if codeset is empty.
87313         * lib/config.charset (BeOS): Use wildcard syntax.
87314
87315 2001-03-13  Jim Meyering  <meyering@lucent.com>
87316
87317         * lib/path-concat.c (path_concat)
87318         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87319         concatenating e.g., `C:' and `foo'.
87320         From Bruno Haible.
87321
87322 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87323
87324         * lib/localcharset.c (locale_charset): Don't use
87325         setlocale(LC_CTYPE,NULL). Don't return NULL.
87326         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87327
87328 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87329
87330         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87331         support for DOS/DJGPP.
87332
87333 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87334
87335         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87336         lacks mkstemp.  Compile our own tempname.c if we compile our own
87337         mkstemp.c, as mkstemp relies on tempname.
87338
87339 2001-03-01  Jim Meyering  <meyering@lucent.com>
87340
87341         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87342         AH_VERBATIM really does output its argument verbatim.
87343
87344 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87345
87346         * lib/Makefile.am (libfetish_a_SOURCES):
87347         Add dup-safer.c, fopen-safer.c.
87348         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87349
87350         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87351         * lib/unistd-safer.h: New files.
87352
87353 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87354
87355         The mkstemp replacement is taken from glibc 2.2.2, with some
87356         portability fixes for use outside glibc, as follows:
87357
87358         * lib/tempname.c (struct_stat64): New macro.
87359         (direxists, __gen_tempname): Use it.
87360         This avoids a portability problem with Solaris 8.
87361
87362         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87363         (<stddef.h>, <stdint.h>, <string.h>):
87364         Include only if STDC_HEADERS || _LIBC.
87365         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87366         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87367         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87368         (__set_errno): Define this macro if <errno.h> doesn't.
87369         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87370         Define these macros if <stdio.h> doesn't.
87371         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87372         Define these macros if <sys/stat.h>
87373         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87374         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87375         __xstat64): Define if not _LIBC.
87376         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87377         (__gen_tempname): Invoke gettimeofday only if
87378         HAVE_GETTIMEOFDAY || _LIBC;
87379         otherwise, fall back on plain "time".
87380         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87381
87382         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87383
87384         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87385
87386 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87387
87388         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87389
87390 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87391
87392         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87393         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87394         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87395         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87396
87397 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87398
87399         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87400         Remove workaround macros for hosts that have mbrtowc but not
87401         mbstate_t, as we now insist on proper declarations for both
87402         before using mbrtowc.
87403
87404 2001-02-17  Jim Meyering  <meyering@lucent.com>
87405
87406         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87407         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87408         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87409         UnixWare 7.1.1.
87410
87411         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87412         rather than AC_CACHE_VAL.
87413
87414 2001-02-17  Jim Meyering  <meyering@lucent.com>
87415
87416         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87417         around included file name.
87418
87419         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87420
87421         * lib/strftime.c: Update from GNU libc (the only changes were to
87422         comments).
87423
87424 2001-02-17  Jim Meyering  <meyering@lucent.com>
87425
87426         * lib/regex.c: Update from libc.
87427
87428 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87429
87430         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87431         clash.
87432
87433 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87434
87435         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87436         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87437         Reported by Mark Hounschell via Paul Eggert.
87438
87439 2001-02-07  Jim Meyering  <meyering@lucent.com>
87440
87441         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87442
87443 2001-02-05  Jim Meyering  <meyering@lucent.com>
87444
87445         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87446         it includes the patch required for `large file' support with at least
87447         HP-UX's 10.20 /bin/cc.
87448
87449 2001-02-03  Jim Meyering  <meyering@lucent.com>
87450
87451         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87452         AS_IF, now that it works once again (mysteriously).
87453         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87454
87455 2001-01-30  Jim Meyering  <meyering@lucent.com>
87456
87457         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87458         * m4/chown.m4: Rename conftestchown to conftest.chown.
87459         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87460         s/conftestdir2/conftest.d2/.
87461         * m4/utimes.m4: s/conftestdata/conftest.data/
87462         Inspired by Pavel Roskin's change in autoconf.
87463
87464 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87465
87466         * lib/config.charset: Update for FreeBSD 4.2.
87467
87468 2001-01-27  Jim Meyering  <meyering@lucent.com>
87469
87470         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87471         a use of AS_IF.
87472         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87473
87474 2001-01-26  Jim Meyering  <meyering@lucent.com>
87475
87476         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87477         quotearg.c includes it.
87478
87479 2001-01-26  Jim Meyering  <meyering@lucent.com>
87480
87481         * lib/quotearg.c: Include stddef.h.
87482         * lib/quote.c: Include stddef.h.
87483         Reported by Axel Kittenberger.
87484
87485         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87486         line in double quotes so that it evokes a better diagnostic.
87487         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87488         Reported by Axel Kittenberger.
87489
87490 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87491
87492         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87493         as if it was a `charset'.
87494
87495 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87496
87497         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87498         has const.
87499
87500 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87501
87502         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87503         to avoid a warning.  Add back 'const' to inptr.
87504
87505 2001-01-20  Jim Meyering  <meyering@lucent.com>
87506
87507         Be sure that headers are checked before used in code compiled
87508         for the type checks.
87509         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87510         In place of that, invoke jm_CHECK_ALL_TYPES.
87511         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87512         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87513         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87514         The check for ssize_t was mistakenly run before the test for unistd.h.
87515
87516         The configure-time check for stdbool.h was missing.
87517         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87518         (jm_PREREQ_HASH): New function.
87519
87520 2001-01-17  Jim Meyering  <meyering@lucent.com>
87521
87522         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87523         for autoconf-2.49c.
87524         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87525
87526 2001-01-16  Jim Meyering  <meyering@lucent.com>
87527
87528         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87529         From Bruno Haible.
87530
87531 2001-01-14  Jim Meyering  <meyering@lucent.com>
87532
87533         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87534         foo and bar.  Create conftestdir/ in the script, not in the C code.
87535         Remove directories in the script, not in the C code.
87536         Remove conftestdir{,2} before trying to create the directory.
87537         Make the entire configure script fail if the mkdir fails.
87538
87539 2001-01-14  Jim Meyering  <meyering@lucent.com>
87540
87541         * lib/rename.c: New file.  From Volker Borchert.
87542         Include stdlib.h, string.h or strings.h, and xalloc.h.
87543         Use strip_trailing_slashes rather than open-coding it.
87544
87545 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87546
87547         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87548
87549 2001-01-03  Jim Meyering  <meyering@lucent.com>
87550
87551         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87552         of local `inptr' to avoid warning with some system declarations of
87553         iconv.
87554
87555 2001-01-02  Volker Borchert  <bt@teknon.de>
87556
87557         * m4/rename.m4: New file.
87558         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87559
87560 2001-01-01  Jim Meyering  <meyering@lucent.com>
87561
87562         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87563         even on systems with utmpx.h.  It's necessary for the declaration of
87564         utmp's ut_user member.  Reported by Andreas Jaeger.
87565
87566         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87567         available. They are required for the declarations of getgrgid and
87568         getpwuid resp.
87569         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87570         Reported by Andreas Jaeger.
87571
87572 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87573
87574         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87575         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87576         so `make install' also works in VPATH builds.
87577
87578 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87579
87580         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87581         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87582         can be used in subdirectories.
87583
87584 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87585
87586         * lib/modechange.c: Do not assume that mode_t uses the
87587         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87588         the other-execute bit of FOO even if S_IXOTH != 1.
87589
87590         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87591         WOTH, XOTH, ALLM): New macros.
87592         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87593          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87594         Use them.
87595         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87596         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87597         (mode_compile):
87598         No need to use uintmax_t; unsigned long is long enough.
87599         Don't bother to get suffix since we don't use it.
87600
87601 2000-12-26  Jim Meyering  <meyering@lucent.com>
87602
87603         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87604         better with autoheader.
87605
87606 2000-12-24  Jim Meyering  <meyering@lucent.com>
87607
87608         * lib/hash.c (is_prime): Return explicit boolean values.
87609         (hash_get_first): Return NULL to appease Irix5.6's 89.
87610         Reported by Nelson Beebe.
87611
87612 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87613
87614         * lib/localcharset.c (locale_charset): Add support for Win32.
87615
87616 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87617
87618         * lib/physmem.h, lib/physmem.c: New files.
87619
87620         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87621         (noinst_HEADERS): Add physmem.h.
87622
87623         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87624         't' for compatibility with Solaris 8 sort.
87625
87626 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87627
87628         * lib/config.charset: Add support for BeOS.
87629
87630 2000-12-17  Jim Meyering  <meyering@lucent.com>
87631
87632         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87633         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87634
87635 2000-12-16  Jim Meyering  <meyering@lucent.com>
87636
87637         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87638         N and M) would have treated it like `chown N:N FILE'.
87639
87640         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87641
87642 2000-12-16  Jim Meyering  <meyering@lucent.com>
87643
87644         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87645         SHELLS_FILE to a file name that's useful on djgpp systems.
87646         Include stdlib.h.
87647         (ADDITIONAL_DEFAULT_SHELLS): Define.
87648         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87649         Based mostly on a patch from Prashant TR.
87650
87651 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87652
87653         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87654         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87655         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87656
87657 2000-12-08  Andreas Schwab  <schwab@suse.de>
87658
87659         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87660         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87661
87662 2000-12-07  Jim Meyering  <meyering@lucent.com>
87663
87664         * lib/stripslash.c (ISSLASH): Define.
87665         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87666         `/'.
87667         From Prashant TR.
87668
87669         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87670         (dir_name_r): Declare this function as static.
87671         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87672         manifest itself on a name containing a mix of slashes and
87673         backslashes.
87674         Make this function work with names starting with a DOS-style
87675         drive letter and colon prefix.
87676         (dir_name): Append `.' if necessary.
87677         Based mostly on patches from Prashant TR and Eli Zaretskii.
87678
87679         * lib/dirname.h (dir_name_r): Remove prototype.
87680
87681 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87682
87683         * m4/off_t-format.m4: Remove this file.
87684         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87685
87686 2000-12-06  Jim Meyering  <meyering@lucent.com>
87687
87688         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87689         replacement strtoull, we may well need the replacement strtoul, too.
87690         Check for declarations of strtoul and strtoull.
87691         Check for strtol.  Mainly as a cue to cause automake to include
87692         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87693         Check for limits.h -- strtol.c needs it.
87694
87695 2000-12-05  Jim Meyering  <meyering@lucent.com>
87696
87697         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87698
87699 2000-12-04  Jim Meyering  <meyering@lucent.com>
87700
87701         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87702         Also include memory.h, stdlib.h, unistd.h if appropriate.
87703         Reported by Andreas Jaeger (conflicting declaration of malloc).
87704
87705 2000-12-02  Jim Meyering  <meyering@lucent.com>
87706
87707         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87708         * m4/jm-macros.m4 (jm_MACROS): require it.
87709
87710 2000-12-02  Jim Meyering  <meyering@lucent.com>
87711
87712         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87713
87714 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87715
87716         * lib/memrchr.c: Include <config.h> before any system include file.
87717
87718 2000-11-30  Jim Meyering  <meyering@lucent.com>
87719
87720         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87721
87722 2000-11-30  Jim Meyering  <meyering@lucent.com>
87723
87724         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87725
87726 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87727
87728         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87729
87730 2000-11-26  Jim Meyering  <meyering@lucent.com>
87731
87732         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87733
87734 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87735
87736         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87737         size of (size_t) -1; it's not portable.
87738
87739 2000-11-17  Jim Meyering  <meyering@lucent.com>
87740
87741         * lib/strstr.c: Update from GNU libc.
87742
87743 2000-11-17  Akim Demaille  <akim@epita.fr>
87744
87745         * lib/obstack.h: Formatting changes.
87746         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87747         prevent type checking.
87748         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87749         cast the value to (void *): assigning a `foo *' to a `void *'
87750         variable is valid.
87751         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87752
87753 2000-11-16  Jim Meyering  <meyering@lucent.com>
87754
87755         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87756
87757 2000-11-11  Jim Meyering  <meyering@lucent.com>
87758
87759         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87760
87761 2000-11-10  Jim Meyering  <meyering@lucent.com>
87762
87763         * lib/obstack.h: Update from GNU libc.
87764         * lib/obstack.c: Likewise.
87765
87766 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87767
87768         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87769
87770 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87771
87772         * lib/getusershell.c (setusershell): Use rewind rather than
87773         fseek/fseeko, to avoid configuration hassles with fseeko.
87774         Don't bother opening SHELLS_FILE if shellstream is NULL;
87775         it's not necessary.
87776
87777 2000-11-05  Jim Meyering  <meyering@lucent.com>
87778
87779         * lib/makepath.h (make_dir): Declare.
87780         * lib/makepath.c (make_dir): Remove `static' attribute.
87781         Tweak a comment.
87782
87783 2000-11-04  Jim Meyering  <meyering@lucent.com>
87784
87785         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87786
87787 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87788
87789         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87790         last one in a bucket, advance to the next bucket.
87791
87792 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87793
87794         * lib/fnmatch.c: Do not comment out all the code if we are using
87795         the GNU C library, because in some cases we are replacing buggy
87796         code in the GNU C library itself.
87797
87798 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87799
87800         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87801         (regex_compile): Catch bogus \(\1\).
87802
87803 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87804
87805         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87806         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87807         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87808
87809 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87810
87811         * lib/error.h, getline.h, modechange.h:
87812         Remove "2000" from Copyright line, as the file hasn't been
87813         changed this year other than in the copyright notice.
87814
87815         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87816         was changed this year.
87817
87818 2000-10-29  Jim Meyering  <meyering@lucent.com>
87819
87820         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87821         renaming.
87822         * m4/ls-mntd-fs.m4: Likewise
87823
87824 2000-10-29  Jim Meyering  <meyering@lucent.com>
87825
87826         * lib/xstat.in: Fix grammar in comment.
87827
87828 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87829
87830         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87831         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87832         doesn't define __restrict_arr.
87833
87834 2000-10-28  Jim Meyering  <meyering@lucent.com>
87835
87836         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87837         (jm_PREREQ_MEMCHR): New function.
87838
87839 2000-10-28  Jim Meyering  <meyering@lucent.com>
87840
87841         * lib/memchr.c: Update from libc.
87842         Adjust for portability:
87843         [HAVE_STDLIB_H]: Include stdlib.h.
87844         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87845         Undef __memchr, too.
87846         [!weak_alias]: Define __memchr to memchr.
87847
87848         * lib/regex.c: Update from libc.
87849         * lib/regex.h: Likewise.
87850         * lib/getopt1.c: Likewise.
87851         * lib/memcmp.c: Likewise.
87852
87853         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87854         Avoid using fseek, when possible -- it's broken by design.
87855         Patch by Ulrich Drepper.
87856
87857 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87858
87859         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87860         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87861         Giving in to popular pressure to shut up the compiler with casts.
87862
87863 2000-10-26  Jim Meyering  <meyering@lucent.com>
87864
87865         * lib/strftime.c: Update from libc.
87866
87867 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87868
87869         * regex.c: More `unsigned char' -> `re_char' changes.
87870         Also change several `int' into `re_wchar_t'.
87871         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87872         (PUSH_FAILURE_POINTER): Don't cast any more.
87873         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87874         We want GCC to complain, since this piece of code makes
87875         re_match non-reentrant, which *should* be fixed.
87876         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87877         (EXTEND_BUFFER): Use RETALLOC.
87878         (SET_LIST_BIT): Don't cast.
87879         (re_wchar_t): New type.
87880         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87881         that those two functions will always properly return.
87882         (IMMEDIATE_QUIT_CHECK): Cast to void.
87883         (analyse_first): Use recursion rather than an explicit stack.
87884         (re_compile_fastmap): Can't fail anymore.
87885         (re_search_2): Don't check re_compile_fastmap for failure.
87886         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87887         Now also sets the new value (passed in a new argument).
87888         (re_match_2_internal): Use it.
87889         Also, use a new var `reg' of type size_t when looping through regs
87890         rather than reuse the inappropriate `mcnt'.
87891
87892 2000-10-25  Jim Meyering  <meyering@lucent.com>
87893
87894         * lib/obstack.c: Update from libc.
87895
87896 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87897
87898         * regex.c (regex_compile): Change the way of handling a range from
87899         a char less than 256 to a char not less than 256.
87900
87901 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87902
87903         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87904         NT-Emacs only.
87905         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87906         so that re_search functions only quit when callers expect them to.
87907
87908 2000-10-23  Jim Meyering  <meyering@lucent.com>
87909
87910         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87911         wrong.  That set_locale call must not have any side effects.
87912         From Paul Eggert.
87913
87914 2000-10-22  Jim Meyering  <meyering@lucent.com>
87915
87916         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87917         [CYCLIC]: Remove now-unused definition.
87918
87919         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87920         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87921         Suggestion from Ulrich Drepper.
87922
87923 2000-10-21  Jim Meyering  <meyering@lucent.com>
87924
87925         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87926         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87927         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87928
87929 2000-10-21  Jim Meyering  <meyering@lucent.com>
87930
87931         * lib/dirname.c (memrchr): Declare if necessary.
87932         (dir_name): Remove the restriction that there be no
87933         trailing slashes.  Now, this code skips past them, effectively
87934         ignoring them.
87935         [TEST_DIRNAME] (main): New unit tests.
87936
87937         * lib/memrchr.c: New file from GNU libc.
87938         Undef __memrchr, too.
87939         [!weak_alias]: Define __memrchr to memrchr.
87940         Guard weak_alias use with `#ifdef weak_alias'.
87941
87942 2000-10-21  Jim Meyering  <meyering@lucent.com>
87943
87944         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87945         (dir_name): Use dir_name_r.
87946         * lib/dirname.h (dir_name_r): Declare it.
87947
87948 2000-10-17  Jim Meyering  <meyering@lucent.com>
87949
87950         * lib/quote.h (PARAMS): Define and use.
87951         Reported by Akim Demaille.
87952
87953         * lib/getopt.c: Update from libc.
87954
87955 2000-10-16  Jim Meyering  <meyering@lucent.com>
87956
87957         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87958         setlocale.
87959         From Jan Fedak.
87960
87961 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87962
87963         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87964
87965 2000-09-25  Jim Meyering  <meyering@lucent.com>
87966
87967         * lib/md5.h (rol): Define (from GnuPG).
87968
87969         * lib/sha.c: Give credit (GnuPG) where due.
87970         (M): Use rol rather than open-coding it.
87971         Add a FIXME comment.
87972
87973 2000-09-21  Jim Meyering  <meyering@lucent.com>
87974
87975         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87976         Reported by Michael Stone.
87977
87978 2000-09-20  Jim Meyering  <meyering@lucent.com>
87979
87980         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87981         (noinst_HEADERS): Add sha.h.
87982         Based on code from Scott G. Miller and from GnuPG.
87983
87984 2000-09-18  Jim Meyering  <meyering@lucent.com>
87985
87986         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87987         LIBS. Otherwise, everyone ends up linking with -lelf for some
87988         configurations.
87989         Reported by Mike Stone.
87990
87991 2000-09-15  Jim Meyering  <meyering@lucent.com>
87992
87993         * lib/regex.c: Update from libc.
87994
87995 2000-09-10  Jim Meyering  <meyering@lucent.com>
87996
87997         * lib/getopt.c (_getopt_internal): Update from glibc.
87998
87999 2000-09-09  Jim Meyering  <meyering@lucent.com>
88000
88001         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88002         think it should be used as a general replacement for isascii.
88003         * lib/fnmatch.c: Likewise.
88004         * lib/mbswidth.c: Likewise
88005         * lib/regex.c: Likewise.
88006
88007         Don't use atoi.
88008         * lib/userspec.c: Include sys/param.h and limits.h.
88009         Include xstrtol.h.
88010         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88011         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88012         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88013         UID, GID.  Check range.
88014
88015 2000-09-06  Jim Meyering  <meyering@lucent.com>
88016
88017         * lib/getopt.c (_getopt_internal): Update from glibc.
88018
88019 2000-08-30  Jim Meyering  <meyering@lucent.com>
88020
88021         * lib/strftime.c: Merge in changes from GNU libc.
88022
88023 2000-08-26  Jim Meyering  <meyering@lucent.com>
88024
88025         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88026         * m4/fpending.m4: New file.
88027
88028 2000-08-26  Jim Meyering  <meyering@lucent.com>
88029
88030         * lib/closeout.c: Include "__fpending.h".
88031         (close_stdout_status): Return right away if there's nothing to flush.
88032
88033         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88034         * lib/__fpending.c: New file.
88035         * lib/__fpending.h: New file.
88036
88037 2000-08-20  Jim Meyering  <meyering@lucent.com>
88038
88039         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88040         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88041         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88042
88043 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88044
88045         Improve fileutils installation on systems where running
88046         programs (like install) can't be unlinked.
88047         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88048         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88049
88050 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88051
88052         Standardize on "memory exhausted" instead of "Memory exhausted"
88053         or "virtual memory exhausted".
88054         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88055         "virtual memory exhausted".
88056         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88057         our own message.
88058         * lib/userspec.c (parse_user_spec): Likewise.
88059         * lib/bumpalloc.h: comment fix
88060         * lib/same.c, userspec.c: Include xalloc.h.
88061
88062         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88063         not char *const and pointing to a constant array.
88064         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88065         (xrealloc): Comment fix.
88066
88067         * lib/userspec.c (parse_user_spec):
88068         Don't translate a message until just before returning,
88069         to avoid unnecessary translation.
88070
88071 2000-08-07  Jim Meyering  <meyering@lucent.com>
88072
88073         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88074         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88075         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88076         getgroups.c, gethostname.c, getopt.h, group-member.c,
88077         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88078         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88079         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88080         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88081         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88082         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88083         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88084         yesno.c: Back out Copyright date changes for each file with no change
88085         this year.  This eases coordination with other programs using the same
88086         source code modules.  From Paul Eggert.
88087
88088 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88089
88090         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88091         not char, for compatibility with glibc 2.1.3 strftime.c.
88092
88093 2000-08-03  Greg McGary  <greg@mcgary.org>
88094
88095         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88096         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88097         (EXTEND_BUFFER): Use them.
88098
88099 2000-08-01  Jim Meyering  <meyering@lucent.com>
88100
88101         * lib/dirname.c (ISSLASH): Define.
88102         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88103         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88104         both `\' and `/' may be use as path separators.
88105         Based on a patch from Prashant TR.
88106
88107 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88108
88109         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88110         slot vector a constant, since it might get modified.
88111
88112 2000-07-31  Jim Meyering  <meyering@lucent.com>
88113
88114         * lib/xmalloc.c: Use `virtual memory exhausted', not
88115         `Memory exhausted'.
88116         * lib/obstack.c (print_and_abort): Likewise.
88117
88118 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88119
88120         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88121         buffer, so that the caller can always quote one small
88122         component of a "memory exhausted" message in slot 0.
88123         From a suggestion by Jim Meyering.
88124
88125 2000-07-30  Jim Meyering  <meyering@lucent.com>
88126
88127         * lib/makepath.c (make_path): Quote the other instance, too.
88128
88129         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88130         (STATIC_BUF_SIZE): Define.
88131         (quotearg_n_options): Use only statically allocated storage when
88132         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88133         than STATIC_BUF_SIZE.
88134
88135 2000-07-29  Jim Meyering  <meyering@lucent.com>
88136
88137         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88138         * lib/dirname.c (dir_name): Likewise.
88139
88140         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88141         `/'.
88142
88143         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88144         (dir_name): Assert that there are no trailing slashes.
88145
88146 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88147
88148         * lib/mbswidth.h (mbswidth): Add a flags argument.
88149         (mbswidth): New declaration.
88150         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88151         * lib/mbswidth.c (mbswidth): Add a flags argument.
88152         (mbsnwidth): New function.
88153
88154 2000-07-24  Jim Meyering  <meyering@lucent.com>
88155
88156         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88157
88158 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88159
88160         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88161
88162 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88163
88164         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88165         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88166         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88167         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88168         invoke multibyte primitives.
88169
88170 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88171
88172         * lib/quotearg.c:
88173         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88174         so that mbstate_t is always defined.
88175
88176         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88177         be 1 in at least one GCC installation, and this configuration
88178         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88179         performance on hosts that have mbrtowc but have only unibyte
88180         locales, but I assume these hosts are rare.
88181
88182 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88183
88184         * lib/mbswidth.c (_XOPEN_SOURCE):
88185         Don't define; this causes problems on Solaris 7.
88186         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88187
88188 2000-07-23  Jim Meyering  <meyering@lucent.com>
88189
88190         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88191         too: getgrgid, getpwuid, getuid.
88192
88193 2000-07-23  Jim Meyering  <meyering@lucent.com>
88194
88195         * lib/basename.c (base_name): Add an assertion.
88196
88197 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88198
88199         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88200         shadow its mbsinit function.
88201
88202 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88203
88204         * lib/mbswidth.h: New file.
88205         * lib/mbswidth.c: New file.
88206         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88207         (noinst_HEADERS): Add mbswidth.h.
88208
88209 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88210
88211         * lib/config.charset: Add support for FreeBSD. Improve support for
88212         HP-UX and IRIX 6.
88213
88214 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88215
88216         * m4/mbswidth.m4: New file.
88217         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88218
88219 2000-07-15  Jim Meyering  <meyering@lucent.com>
88220
88221         * lib/makepath.c: Include quote.h.
88222         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88223         corresponding argument in a `quote (...)' call.
88224         Give better diagnostics.
88225
88226         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88227         (noinst_HEADERS): Add quote.h.
88228
88229         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88230         from tar's src/misc.c.
88231         * lib/quote.h: New file.  Prototypes for same.
88232
88233 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88234
88235         From a suggestion by Bruno Haible.
88236         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88237         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88238         to decide whether to define the BeOS workaround macro;
88239         this adjusts to the change to AC_MBSTATE_T.
88240
88241 2000-07-14  Jim Meyering  <meyering@lucent.com>
88242
88243         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88244         jm_AC_TYPE_UINTMAX_T.
88245
88246 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88247
88248         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88249
88250         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88251         quotearg_buffer_restyled): Add support for
88252         clocale_quoting_style.  Undo previous change to
88253         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88254         and "{RIGHT QUOTATION MARK}" msgids.
88255
88256 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88257
88258         From a suggestion by Bruno Haible.
88259         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88260         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88261         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88262         and mbstate_t, to a single-part test that simply defines mbstate_t.
88263         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88264         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88265
88266 2000-07-10  Jim Meyering  <meyering@lucent.com>
88267
88268         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88269
88270         * m4/gnu-source.m4: Output to confdefs.h directly.
88271         Suggestion from Akim Demaille.
88272
88273 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88274
88275         The old behavior of quoting `like this' doesn't look good with
88276         newer, ISO-style fonts.  See:
88277         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88278
88279         Instead, quote "like this" by default.  Let the translator
88280         tailor the locale-specific quoting behavior by providing
88281         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88282
88283         * lib/quotearg.c (N_): New macro.
88284         (gettext_default): New function.
88285         (quotearg_buffer_restyled): Use
88286         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88287         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88288
88289 2000-07-09  Jim Meyering  <meyering@lucent.com>
88290
88291         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88292         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88293
88294         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88295         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88296
88297 2000-07-09  Jim Meyering  <meyering@lucent.com>
88298
88299         * lib/Most files: Update copyright dates to include 2000.
88300
88301 2000-07-08  Jim Meyering  <meyering@lucent.com>
88302
88303         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88304         if not defined.
88305         (xgethostname): Remove now-unnecessary #ifdef.
88306         Move declaration of `err' into loop where it's used.
88307
88308 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88309         and Bruno Haible  <haible@clisp.cons.org>
88310
88311         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88312         only if the test for an object-type mbstate_t fails.  This
88313         prevents us from mistakenly reporting that mbstate_t is a
88314         system object type after we "#define mbstate_t int" to work
88315         around its lack.
88316
88317 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88318         and Bruno Haible  <haible@clisp.cons.org>
88319
88320         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88321
88322 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88323
88324         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88325         to strerror_r.
88326         Include <ctype.h> for use of isalpha.
88327
88328 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88329
88330         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88331         by allocating a larger buffer. Test the gethostname return value for
88332         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88333         returns an error and ENAMETOOLONG isn't defined.
88334
88335 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88336
88337         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88338         dimension.
88339
88340 2000-07-04  Jim Meyering  <meyering@lucent.com>
88341
88342         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88343         of the deprecated AC_CHECKING.
88344
88345 2000-07-04  Jim Meyering  <meyering@lucent.com>
88346
88347         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88348         Reported by Bruno Haible.
88349
88350 2000-07-04  Jim Meyering  <meyering@lucent.com>
88351
88352         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88353         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88354         lacks mbrtowc.
88355
88356 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88357
88358         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88359         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88360
88361 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88362         and Bruno Haible  <haible@clisp.cons.org>
88363
88364         * lib/quotearg.c (mbrtowc):
88365         Assign to *pwc, and return 1 only if result is nonzero.
88366         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88367
88368 2000-07-03  Jim Meyering  <meyering@lucent.com>
88369
88370         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88371
88372 2000-07-03  Jim Meyering  <meyering@lucent.com>
88373
88374         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88375         This is necessary to get a definition of e.g., UTMP_FILE on
88376         HP-UX 10.20.
88377         From Bob Proulx.
88378
88379 2000-07-02  Jim Meyering  <meyering@lucent.com>
88380
88381         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88382
88383         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88384         AC_LIBOBJ(function_name).
88385         * m4/chown.m4: Likewise.
88386         * m4/fnmatch.m4: Likewise.
88387         * m4/ftruncate.m4: Likewise.
88388         * m4/getgroups.m4: Likewise.
88389         * m4/getline.m4: Likewise.
88390         * m4/group-member.m4: Likewise.
88391         * m4/jm-macros.m4: Likewise.
88392         * m4/lstat.m4: Likewise.
88393         * m4/malloc.m4: Likewise.
88394         * m4/memcmp.m4: Likewise.
88395         * m4/nanosleep.m4: Likewise.
88396         * m4/putenv.m4: Likewise.
88397         * m4/realloc.m4: Likewise.
88398         * m4/regex.m4: Likewise.
88399         * m4/stat.m4: Likewise.
88400         * m4/strftime.m4: Likewise.
88401
88402 2000-07-02  Jim Meyering  <meyering@lucent.com>
88403
88404         * lib/quotearg.c (mbstate_t): Don't define here.
88405
88406 2000-07-02  Jim Meyering  <meyering@lucent.com>
88407
88408         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88409
88410 2000-07-01  Jim Meyering  <meyering@lucent.com>
88411
88412         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88413
88414 2000-07-01  Jim Meyering  <meyering@lucent.com>
88415
88416         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88417         problem.
88418
88419 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88420
88421         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88422         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88423
88424 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88425
88426         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88427         per change in ../m4/ls-mntd-fs.m4.
88428         (read_filesystem_list): Ignore symbolic links.
88429
88430 2000-06-29  Jim Meyering  <meyering@lucent.com>
88431
88432         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88433         for declaration of strcmp.
88434
88435         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88436
88437         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88438         Avoid warning by casting result to `char *' to remove `const'.
88439
88440 2000-06-28  Jim Meyering  <meyering@lucent.com>
88441
88442         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88443         included by quotearg.c, for which we perform this test.  From
88444         Bruno Haible.
88445
88446 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88447
88448         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88449         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88450         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88451
88452 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88453
88454         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88455
88456 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88457
88458         savedir now sets errno on failure and invokes xmalloc to get memory.
88459         Fix a couple of other minor bugs while we're at it.
88460
88461         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88462         (NAMLEN): Remove macro.
88463         (malloc, realloc): Remove decls.
88464         (stpcpy): Likewise.
88465         ("xalloc.h"): Include.
88466         (NAME_SIZE_DEFAULT): New macro.
88467         (savedir): Use xmalloc / xrealloc to allocate memory.
88468         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88469         Skip "" directory entries.
88470         Use strlen to calculate directory entry length, since the old method
88471         is rarely used these days and isn't worth supporting.
88472         Don't use a pointer after freeing it.
88473         Check for integer overflow when calculating allocation size.
88474         Use memcpy to copy entries, instead of stpcpy.
88475         Set errno properly when returning NULL.
88476         Check for readdir error.
88477
88478 2000-06-26  Jim Meyering  <meyering@lucent.com>
88479
88480         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88481
88482 2000-06-25  Jim Meyering  <meyering@lucent.com>
88483
88484         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88485         Linux header bug when _XOPEN_SOURCE is defined to 500.
88486
88487 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88488
88489         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88490         deficiency.
88491
88492 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88493
88494         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88495         Include xalloc.h.
88496         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88497
88498 2000-06-24  Jim Meyering  <meyering@lucent.com>
88499
88500         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88501         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88502         for which strerror does return char*, but which lacks a conveniently
88503         accessible declaration of the function.  If the compile-test says
88504         strerror_r doesn't work, then resort to a `run'-test that works on
88505         BeOS and segfaults on DEC Unix.
88506
88507 2000-06-24  Jim Meyering  <meyering@lucent.com>
88508
88509         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88510
88511 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88512
88513         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88514         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88515
88516 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88517
88518         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88519         (mbrtowc, mbstate_t): Define substitutes if
88520         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88521         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88522         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88523
88524 2000-06-23  Jim Meyering  <meyering@lucent.com>
88525
88526         * m4/afs.m4: Add missing AC_MSG_RESULT.
88527         Reported by Bruno Haible.
88528
88529         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88530         Suggestion from Bruno Haible.
88531
88532 2000-06-23  Jim Meyering  <meyering@lucent.com>
88533
88534         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88535
88536 2000-06-21  Jim Meyering  <meyering@lucent.com>
88537
88538         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88539
88540 2000-06-21  Jim Meyering  <meyering@lucent.com>
88541
88542         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88543         (noinst_HEADERS): Add getstr.h.
88544
88545         * lib/getline.c (getstr): Move into a separate file.
88546         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88547         the following changes: new parameter, delim2; both delim[12]
88548         parameters have type `int', not `char'.  The latter would lose
88549         with 8-bit delimiters.
88550         * lib/getstr.h: New file.
88551
88552 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88553
88554         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88555         than 1024, return a memory chunk of least possible size, instead
88556         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88557         Use free/xmalloc instead of xrealloc to avoid copying for very long
88558         paths.
88559
88560 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88561
88562         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88563         the empty string.
88564
88565 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88566
88567         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88568         address, not strdup.  Include <stdlib.h> and don't declare free().
88569
88570 2000-06-19  Jim Meyering  <meyering@lucent.com>
88571
88572         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88573
88574 2000-06-18  Jim Meyering  <meyering@lucent.com>
88575
88576         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88577
88578         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88579         `checking whether...' message to be consistent with that of the
88580         lstat test.
88581
88582 2000-06-18  Jim Meyering  <meyering@lucent.com>
88583
88584         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88585         Besides, these days every porting target provides a mkdir function.
88586
88587         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88588         needed. (this snippet comes from src/system.h).
88589
88590 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88591
88592         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88593
88594 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88595
88596         * lib/human.c (adjust_value): New function.
88597         (human_readable_inexact): Apply rounding style even when
88598         printing approximate values.
88599
88600 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88601
88602         * lib/human.c (human_readable_inexact): Allow an input block
88603         size that is not a multiple of the output block size, and vice versa.
88604         Reported by Piergiorgio Sartor.
88605
88606 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88607
88608         * lib/getdate.y (get_date): Apply relative times after time
88609         zone indicator, not before.  Reported by Todd A. Jacobs.
88610
88611 2000-06-13  Jim Meyering  <meyering@lucent.com>
88612
88613         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88614
88615         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88616
88617 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88618
88619         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88620
88621 2000-06-12  Jim Meyering  <meyering@lucent.com>
88622
88623         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88624         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88625         optional argument.
88626         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88627         the optional argument, `lib'.
88628
88629 2000-06-08  Jim Meyering  <meyering@lucent.com>
88630
88631         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88632
88633 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88634
88635         Rewrite largefile configuration so that we don't need to run
88636         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88637         AC_CANONICAL_HOST in configure.in -- jmm]
88638
88639         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88640         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88641         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88642         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88643         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88644         All uses changed.
88645         Instead of inspecting the output of getconf, try to compile the
88646         test program without and with the macro definition.
88647         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88648         for getconf.  Instead, check for the needed flags by compiling
88649         test programs.
88650
88651 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88652
88653         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88654
88655 2000-06-04  Jim Meyering  <meyering@lucent.com>
88656
88657         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88658         SunOS 4.1.4 for which gid_t is an unsigned type.
88659
88660 2000-06-03  Jim Meyering  <meyering@lucent.com>
88661
88662         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88663         now that autoconf requires that.
88664
88665         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88666         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88667         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88668
88669 2000-06-03  Jim Meyering  <meyering@lucent.com>
88670
88671         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88672
88673 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88674
88675         * m4/glibc21.m4: New file.
88676         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88677
88678 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88679
88680         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88681         newer, don't install charset.alias.
88682         * lib/config.charset: Change the Linux/glibc rules so they become empty
88683         on glibc-2.1 or newer.
88684
88685 2000-06-02  Jim Meyering  <meyering@lucent.com>
88686
88687         * lib/mountlist.c: Back out last change.  Instead, do this...
88688         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88689         me_dummy member using the same `ignore'-testing code.
88690         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88691         fs_type strings.
88692         From Mark D. Roth.
88693
88694 2000-05-29  Jim Meyering  <meyering@lucent.com>
88695
88696         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88697         mounts with the `ignore' attribute.  Based on a patch from
88698         Mark D. Roth.
88699
88700 2000-05-28  Jim Meyering  <meyering@lucent.com>
88701
88702         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88703         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88704         * m4/stat.m4: Likewise.
88705         * m4/lstat.m4: Likewise.
88706         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88707
88708         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88709         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88710
88711 2000-05-26  Jim Meyering  <meyering@lucent.com>
88712
88713         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88714
88715 2000-05-24  Jim Meyering  <meyering@lucent.com>
88716
88717         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88718         autoconf requires that.
88719         * m4/lib-check.m4: Likewise.
88720         * m4/jm-macros.m4: Likewise.
88721         * m4/strftime.m4: Likewise.
88722
88723         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88724         AC_CHECK_DECLS, now that autoconf requires that.
88725
88726 2000-05-22  Jim Meyering  <meyering@lucent.com>
88727
88728         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88729         * m4/lstat.m4: Likewise.
88730
88731 2000-05-22  Jim Meyering  <meyering@lucent.com>
88732
88733         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88734
88735 2000-05-20  Jim Meyering  <meyering@lucent.com>
88736
88737         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88738         (jm_PREREQ): Use it.
88739
88740 2000-05-18  Jim Meyering  <meyering@lucent.com>
88741
88742         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88743         back, too, since it may have been modified by allocate_entry.
88744         (hash_delete): Rewrite to use neither the assignment operator
88745         nor the comma operator in an if-expression.
88746
88747 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88748
88749         * lib/closeout.c:
88750         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88751         Remove; no longer needed.
88752         "quotearg.h": Add include.
88753         (file_name): Do not bother to explicitly initialize to NULL; it's less
88754         efficient on some hosts.
88755         (close_stdout_status): Remove test as to whether stdout was already
88756         closed; it breaks for the case "echo x | sort >&-".
88757         Quote file name colons.
88758         Do not assume that _("write error") lacks format strings.
88759
88760 2000-05-15  Jim Meyering  <meyering@lucent.com>
88761
88762         * lib/version-etc.c (version_etc_copyright): Update the copyright
88763         string used in all --version output.
88764
88765 2000-05-14  Jim Meyering  <meyering@lucent.com>
88766
88767         * lib/closeout.c (close_stdout_set_file_name): New function.
88768         (close_stdout_status): Use new file-scoped global.
88769         Return right away if fstat says the stdout file descriptor is invalid.
88770         * lib/closeout.h (close_stdout_set_file_name): Declare.
88771
88772 2000-05-10  Jim Meyering  <meyering@lucent.com>
88773
88774         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88775         (close_stdout_set_status): New function.
88776         * lib/closeout.h (close_stdout_set_status): Declare.
88777
88778 2000-05-09  Jim Meyering  <meyering@lucent.com>
88779
88780         * m4/gettext.m4: Rename this...
88781         * m4/libintl.m4: ...to this.
88782
88783 2000-05-08  Jim Meyering  <meyering@lucent.com>
88784
88785         * lib/long-options.c: Don't include closeout.h.
88786         (parse_long_options): Don't call close_stdout for --version.
88787
88788 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88789
88790         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88791         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88792         2.1.3 bug.  This avoids a clash when files like regex.c define
88793         _GNU_SOURCE.
88794
88795 2000-05-06  Jim Meyering  <meyering@lucent.com>
88796
88797         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88798         (AC_REPLACE_FUNCS): Add strnlen.
88799
88800         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88801         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88802
88803         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88804         AC_SEARCH_LIBS call for nanosleep.
88805         (LIB_NANOSLEEP): Set and AC_SUBST.
88806
88807 2000-05-06  Jim Meyering  <meyering@lucent.com>
88808
88809         * lib/strnlen.c: Undefine __strnlen and strnlen.
88810         [!weak_alias]: Define __strnlen to strnlen.
88811
88812         * lib/atexit.c: New file, from libiberty.
88813
88814 2000-05-06  Jim Meyering  <meyering@lucent.com>
88815
88816         * lib/closeout.c (close_stdout_status): Also check for errors on the
88817         stderr stream.
88818
88819 2000-05-05  Jim Meyering  <meyering@lucent.com>
88820
88821         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88822         AC_SEARCH_LIBS call for clock_gettime.
88823         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88824
88825         * m4/search-libs.m4: Update from autoconf.
88826
88827         su doesn't work on Solaris 2.6.
88828         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88829         <shadow.h>.  Reported by Dragos Harabor.
88830
88831 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88832
88833         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88834         memcpy instead of xmalloc, xrealloc, path_concat.
88835         (locale_charset): Treat empty environment variables as absent.
88836         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88837
88838 2000-05-04  Jim Meyering  <meyering@lucent.com>
88839
88840         * lib/getopt.c: Update from glibc.
88841         * lib/obstack.c: Likewise.
88842         * lib/obstack.h: Likewise.
88843         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88844         file
88845
88846         * lib/regex.h: Likewise.
88847         * lib/strndup.c: Likewise.
88848         * lib/strnlen.c: New file, from glibc.
88849
88850 2000-05-03  Jim Meyering  <meyering@lucent.com>
88851
88852         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88853
88854 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88855
88856         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88857         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88858         compile-time test, rather than inspecting host and OS, to
88859         decide whether to define _LARGEFILE_SOURCE.
88860
88861 2000-05-01  Jim Meyering  <meyering@lucent.com>
88862
88863         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88864
88865         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88866         Based on a patch from Bruno Haible.
88867
88868 2000-05-01  Jim Meyering  <meyering@lucent.com>
88869
88870         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88871
88872 2000-04-29  Jim Meyering  <meyering@lucent.com>
88873
88874         * lib/path-concat.c: Declare strdup only if it's not defined.
88875         * lib/canon-host.c: Likewise.
88876
88877 2000-04-28  Jim Meyering  <meyering@lucent.com>
88878
88879         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88880         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88881         is included first, then limits.h is included by locale.h by libintl.h.
88882         From John David Anglin.
88883
88884 2000-04-25  Jim Meyering  <meyering@lucent.com>
88885
88886         * lib/makepath.c (S_IRWXUGO): Define.
88887         (make_path): Always perform explicit chmod if MODE specifies any
88888         of the `special' permission bits.  Prompted by a bug report against
88889         install from Mate Wierdl and Joost van Baal.
88890
88891 2000-04-18  Jim Meyering  <meyering@lucent.com>
88892
88893         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88894         (jm_PREREQ): Use it.
88895
88896 2000-04-18  Jim Meyering  <meyering@lucent.com>
88897
88898         * lib/README: New file.
88899
88900         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88901         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88902
88903 2000-04-17  Jim Meyering  <meyering@lucent.com>
88904
88905         Get it right :-)
88906         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88907         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88908         Suggestion from Akim Demaille.
88909
88910 2000-04-17  Jim Meyering  <meyering@lucent.com>
88911
88912         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88913         the definition of it to rpl_strftime also defined-away the system's
88914         declaration.
88915
88916 2000-04-15  Jim Meyering  <meyering@lucent.com>
88917
88918         Use `C' to denote so-called `contiguous' files, the same way
88919         that tar does.
88920         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88921         (ftypelet): Use S_ISCTG.
88922         From Michael Deutschmann.
88923
88924 2000-04-14  Jim Meyering  <meyering@lucent.com>
88925
88926         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88927         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88928         clobbered.
88929
88930 2000-04-14  Jim Meyering  <meyering@lucent.com>
88931
88932         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88933
88934 2000-04-13  Jim Meyering  <meyering@lucent.com>
88935
88936         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88937         AH_VERBATIM to insert required #ifndef into config.h.in.
88938         Suggestion from Akim Demaille.
88939
88940 2000-04-12  Jim Meyering  <meyering@lucent.com>
88941
88942         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88943         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88944         Christian Krackowizer.
88945
88946         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88947         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88948         (AC_SYS_LARGEFILE): Require.
88949         (AM_C_PROTOTYPES): Require.
88950
88951 2000-04-08  Jim Meyering  <meyering@lucent.com>
88952
88953         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88954         names don't conflict.  Reported by Eli Zaretskii.
88955
88956 2000-04-07  Jim Meyering  <meyering@lucent.com>
88957
88958         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88959         sys/types.h, to work around system header problems on AIX 3.2.5.
88960         From Bruno Haible.
88961
88962 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88963
88964         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88965         bug.  Deal with the different error behavior of Irix iconv.
88966
88967 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88968
88969         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88970         IRIX if the installer said otherwise.
88971
88972 2000-04-05  Jim Meyering  <meyering@lucent.com>
88973
88974         Portability tweaks required for ultrix4.3.
88975         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88976         (jm_CHECK_DECLS): Add getutent to the list of functions.
88977         (_jm_DECL_HEADERS): Add utmpx.h.
88978         From John David Anglin.
88979
88980         * m4/strftime.m4: Back out the 2000-04-02 change.
88981         Instead of that change, simply undefine putenv in the test program.
88982
88983 2000-04-05  Jim Meyering  <meyering@lucent.com>
88984
88985         Portability tweaks required for ultrix4.3.
88986         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88987         getutent.
88988         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88989         * lib/canon-host.c: Declare strdup.
88990         * lib/path-concat.c: Likewise.
88991         From John David Anglin.
88992
88993 2000-04-04  Jim Meyering  <meyering@lucent.com>
88994
88995         Be more DOS 8.3-friendly.
88996         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88997         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88998         * lib/Makefile.am: Reflect renaming.
88999         Reported by Eli Zaretskii.
89000
89001         Use a temporary file name that won't clash with `charset.alias'
89002         in the DOS 8.3 name space.
89003         * lib/Makefile.am (charset_tmp): Define.
89004         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89005         (uninstall-local): Likewise.
89006         Reported by Eli Zaretskii.
89007
89008 2000-04-03  Jim Meyering  <meyering@lucent.com>
89009
89010         * m4/gettext.m4: Fix typo in comment.
89011
89012         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89013         textutils/configure.in).  Suggestion from Paul Eggert.
89014         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89015
89016 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89017
89018         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89019         variable in the shell rather than using putenv, which isn't
89020         portable.  This avoids the configure-time inter-test dependency
89021         on the potentially-renamed putenv function.
89022
89023 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89024
89025         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89026         before checking struct stat.st_blksize, so that
89027         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89028
89029 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89030
89031         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89032         since strftime.c uses HAVE_STRFTIME to decide whether to use
89033         the underlying strftime.
89034
89035 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89036
89037         * lib/time/strftime.c (my_strftime): Make sure we call the system
89038         strftime, not ourselves, when invoking the underlying strftime.
89039
89040 2000-03-24  Jim Meyering  <meyering@lucent.com>
89041
89042         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89043         (charset_alias): Define.
89044         (install-exec-local): Factor out common code.
89045         (uninstall-local): Split lines longer than 80.
89046         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89047         (SUFFIXES): Define.
89048         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89049         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89050
89051 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89052
89053         * lib/config.charset: Output a line containing "Packages using this
89054         file".
89055         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89056         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89057         ref-del.sed): New rules.
89058
89059 2000-03-17  Jim Meyering  <meyering@lucent.com>
89060
89061         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89062         Otherwise, include <strings.h>
89063
89064 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89065
89066         * lib/unicodeio.c (utf8_wctomb): New function.
89067         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89068         format instead of in UCS-4 with platform dependent endianness.
89069
89070 2000-03-10  Jim Meyering  <meyering@lucent.com>
89071
89072         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89073         From Marco Franzen.
89074
89075 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89076
89077         * lib/savedir.c (savedir): Work even if directory size is
89078         negative; this can happen with some screwy NFS configurations.
89079
89080 2000-03-06  Jim Meyering  <meyering@lucent.com>
89081
89082         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89083         if it's NULL (because we ran out of memory).  From Bruno Haible.
89084
89085 2000-03-05  Jim Meyering  <meyering@lucent.com>
89086
89087         * lib/localcharset.c ("path-concat.h"): Include.
89088         (get_charset_aliases): Use path_concat instead of ANSI string
89089         concatenation.
89090
89091         * lib/unicodeio.h (PARAMS): Define.
89092         Use it to guard prototype.
89093
89094 2000-03-04  Jim Meyering  <meyering@lucent.com>
89095
89096         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89097         for lib/localcharset.c.
89098
89099 2000-03-04  Jim Meyering  <meyering@lucent.com>
89100
89101         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89102         installing into it.
89103         (uninstall-local): Uncomment this rule so `make distcheck' works
89104         once again.
89105
89106         * lib/unicodeio.c (<errno.h>): Include it.
89107         (errno): Declare if not defined.
89108
89109         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89110
89111         * lib/config.charset: New version, incorporating remarks from a linux
89112         i18n mailing list.  From Bruno Haible.
89113
89114 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89115
89116         * m4/codeset.m4: New file.
89117         * m4/iconv.m4: New file.
89118         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89119
89120 2000-03-03  Jim Meyering  <meyering@lucent.com>
89121
89122         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89123
89124 2000-03-02  Jim Meyering  <meyering@lucent.com>
89125
89126         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89127         the messages come out on separate lines.
89128
89129         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89130         rather than jm_CHECK_DECLARATIONS.
89131         * m4/decl.m4: Remove now-unused file.
89132
89133         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89134         geteuid.
89135
89136 2000-03-02  Jim Meyering  <meyering@lucent.com>
89137
89138         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89139
89140 2000-03-01  Jim Meyering  <meyering@lucent.com>
89141
89142         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89143         * lib/unicodeio.c: Likewise.
89144
89145 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89146
89147         * lib/config.charset: New file.
89148         * lib/localcharset.c: New file.
89149         * lib/unicodeio.h, lib/unicodeio.c: New files.
89150         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89151         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89152         (noinst_HEADERS): Add unicodeio.h.
89153         (all-local, install-exec-local, charset.alias): New targets.
89154
89155 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89156
89157         * lib/quotearg.c (ALERT_CHAR): New macro.
89158         (quotearg_buffer_restyled): Use it.
89159
89160 2000-02-27  Jim Meyering  <meyering@lucent.com>
89161
89162         * m4/check-decl.m4: Add getenv to the list.
89163
89164 2000-02-27  Jim Meyering  <meyering@lucent.com>
89165
89166         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89167         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89168
89169         * lib/backupfile.c: Guard inclusion of stdlib.h with
89170         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89171         Declare malloc if needed.
89172
89173         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89174         `#ifndef HAVE_DECL..'
89175         now that autoconf always defines the HAVE_DECL_ symbols.
89176         * lib/human.c: Likewise.
89177         * lib/same.c: Likewise.
89178         * lib/strtoumax.c: Likewise.
89179
89180         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89181         declaration check was not run.
89182         * lib/hash.c: Likewise.
89183         * lib/human.c: Likewise.
89184         * lib/same.c: Likewise.
89185         * lib/strtoumax.c: Likewise.
89186
89187         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89188         `.', then first look up the entire `.'-containing string as a login
89189         name.
89190
89191 2000-02-23  Jim Meyering  <meyering@lucent.com>
89192
89193         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89194         in place of my hack.
89195
89196 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89197
89198         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89199         (textint): New typedef.
89200         (parser_control): Member year changed from int to textint.
89201         All uses changed.
89202         (YYSTYPE): Removed; replaced by %union with int and textint members.
89203         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89204         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89205         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89206         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89207         (date, number, to_year): Use width of number in digits, not its value,
89208         to determine whether it's a 2-digit year, or a 2-digit time.
89209         (yylex): Store number of digits of numeric tokens.
89210         Reported by John Kendall.
89211
89212         (parser_control): Changed from struct parser_control to typedef (for
89213         consistency).  All uses changed.
89214
89215         (tID): Removed; not used.
89216         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89217
89218 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89219
89220         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89221         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89222
89223 2000-02-12  Jim Meyering  <meyering@lucent.com>
89224
89225         * lib/userspec.c (ISDIGIT): Define it.
89226         (isdigit): Remove definition.
89227         (is_number): Use ISDIGIT, not isdigit.
89228         <libintl.h>: Include.
89229         (_ and N_): Define.
89230         (parse_user_spec): Mark translatable strings.
89231
89232 2000-02-10  Jim Meyering  <meyering@lucent.com>
89233
89234         With these changes, nanosleep.[ch] are finally enough like the other
89235         lib/* replacement files to compile on a few more losing systems.
89236
89237         * lib/nanosleep.h: Don't include config.h.
89238         Remove prototype from declaration of nanosleep.
89239         (PARAMS): Remove now-unneeded definition.
89240         * lib/nanosleep.c: #undef nanosleep.
89241         (rpl_nanosleep): Rename from nanosleep.
89242
89243 2000-02-10  Jim Meyering  <meyering@lucent.com>
89244
89245         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89246         gnu_nanosleep to rpl_nanosleep.
89247
89248 2000-02-09  Jim Meyering  <meyering@lucent.com>
89249
89250         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89251         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89252
89253 2000-02-08  Akim Demaille  <akim@epita.fr>
89254
89255         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89256         `[' and `]' and remove uses of `changequote'.
89257         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89258         (AC_SYS_LARGEFILE): Likewise.
89259         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89260         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89261         of changequote.
89262         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89263         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89264         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89265         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89266
89267 2000-02-05  Jim Meyering  <meyering@lucent.com>
89268
89269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89270         Remove explicit use of AC_HEADER_TIME.  It is required by
89271         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89272         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89273         in autoconf whereby the expansion of the latter ended up preceding
89274         the expansion of its prerequisite, AC_HEADER_TIME.
89275         Reported by Volker Borchert.
89276
89277 2000-02-03  Jim Meyering  <meyering@lucent.com>
89278
89279         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89280
89281 2000-02-03  Jim Meyering  <meyering@lucent.com>
89282
89283         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89284         rather than with `#if HAVE_UTMPNAME'.
89285
89286 2000-02-02  Jim Meyering  <meyering@lucent.com>
89287
89288         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89289         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89290         Reported by Eli Zaretskii.
89291
89292 2000-02-01  Jim Meyering  <meyering@lucent.com>
89293
89294         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89295
89296 2000-01-31  Jim Meyering  <meyering@lucent.com>
89297
89298         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89299         functions.  Add the time.h and sys/time.h headers along with the
89300         AC_REQUIRE'ment of AC_HEADER_TIME.
89301
89302 2000-01-31  Jim Meyering  <meyering@lucent.com>
89303
89304         * lib/nanosleep.h (nanosleep): Guard declaration with
89305         `#if ! HAVE_DECL_NANOSLEEP'.
89306         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89307         the declaration in that vendor's sys/timers.h.
89308         Reported by Christian Krackowizer.
89309
89310         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89311         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89312         (ISPRINT): Likewise.
89313         Reported by Tom Tromey.
89314
89315 2000-01-30  Jim Meyering  <meyering@lucent.com>
89316
89317         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89318
89319         * m4/prereq.m4 (utmp_includes): Define.
89320         Check for ut_user and ut_name members in both struct utmpx
89321         and struct utmp.
89322
89323 2000-01-30  Jim Meyering  <meyering@lucent.com>
89324
89325         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89326         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89327         header files where only utmpx.ut_user is declared.
89328
89329         * lib/readutmp.h (UT_USER): Define.
89330
89331 2000-01-29  Jim Meyering  <meyering@lucent.com>
89332
89333         * m4/lib-check.m4: New file containing library-related checks from
89334         fileutils and sh-utils (textutils had none).
89335
89336 2000-01-28  Jim Meyering  <meyering@lucent.com>
89337
89338         * m4/perl.m4: Change format of warning message to look more like that
89339         from the missing script.  Suggestion from François Pinard.
89340
89341 2000-01-25  Jim Meyering  <meyering@lucent.com>
89342
89343         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89344         well as time.h in the compile check.
89345         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89346         Fix typo in cross-compiling case: s/yes/no/.
89347
89348 2000-01-23  Jim Meyering  <meyering@lucent.com>
89349
89350         * m4/jm-macros.m4: Move df-related tests here from
89351         fileutils/configure.in
89352
89353         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89354         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89355
89356         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89357         s/space/ac_fsusage_space/.
89358         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89359
89360         * m4/ftruncate.m4: New file (derived from part of
89361         fileutils/configure.in).
89362         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89363         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89364
89365         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89366         AC_SUBST these here, rather than just in sh-util/configure.in, so
89367         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89368         all the same.
89369         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89370         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89371         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89372         (AC_SUBST(POW_LIBM)): Likewise.
89373         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89374
89375 2000-01-23  Jim Meyering  <meyering@lucent.com>
89376
89377         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89378         obstack.c.
89379
89380 2000-01-22  Jim Meyering  <meyering@lucent.com>
89381
89382         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89383
89384         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89385
89386         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89387         configure.in
89388         (AC_CHECK_HEADERS): Likewise for sh-utils.
89389         (AC_CHECK_HEADERS): Likewise for textutils.
89390         Merge the three lists of headers.
89391
89392         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89393         from fileutils' configure.in.
89394
89395         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89396         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89397         check-decl.m4.
89398
89399         * m4/check-decl.m4: Use #if rather than #ifdef.
89400         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89401         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89402         (_jm_DECL_HEADERS): Define new function.
89403         (jm_CHECK_DECLARATIONS): Require it.
89404
89405 2000-01-22  Jim Meyering  <meyering@lucent.com>
89406
89407         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89408         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89409         Required for some AIX systems.  Reported by Christian Krackowizer.
89410         [TESTING] (main): New function.
89411
89412         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89413         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89414         letters.
89415
89416         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89417         iswprint.
89418
89419         * lib/strverscmp.c (ISDIGIT): Define.
89420         (strverscmp): Use ISDIGIT, not isdigit.
89421
89422 2000-01-19  Jim Meyering  <meyering@lucent.com>
89423
89424         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89425         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89426         defines `struct timespec' in <sys/time.h>
89427
89428         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89429         Thanks to Akim for explaining.
89430
89431 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89432
89433         * lib/nanosleep.c (nanosleep):
89434         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89435         POSIX.1 doesn't require SA_INTERRUPT and some systems
89436         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89437         it's been part of POSIX.1 since day 1 (in 1988).
89438
89439 2000-01-17  Jim Meyering  <meyering@lucent.com>
89440
89441         * lib/interlock: Remove unused file.  Reported by François Pinard.
89442
89443 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89444
89445         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89446         alert, backslash, formfeed, and vertical tab unnecessarily in
89447         shell quoting style.
89448
89449 2000-01-16  Jim Meyering  <meyering@lucent.com>
89450
89451         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89452         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89453         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89454         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89455
89456 2000-01-16  Jim Meyering  <meyering@lucent.com>
89457
89458         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89459         because the latter didn't work.
89460
89461 2000-01-15  Jim Meyering  <meyering@lucent.com>
89462
89463         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89464         (AC_REPLACE_FUNCS): Add memcpy and memset.
89465         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89466         Add strpbrk.
89467         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89468
89469 2000-01-12  Jim Meyering  <meyering@lucent.com>
89470
89471         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89472         (jm_PREREQ): Use it.
89473         (jm_PREREQ_READUTMP): New macro.
89474         (jm_PREREQ): Use it.
89475
89476 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89477
89478         Quote multibyte characters correctly.
89479         * m4/c-bs-a.m4: New file.
89480         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89481         (jm_PREREQ): Use it.
89482
89483 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89484
89485         * m4/uintmax_t.m4: Port to autoconf 2.13.
89486
89487 2000-01-08  Jim Meyering  <meyering@ascend.com>
89488
89489         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89490         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89491
89492 2000-01-04  Jim Meyering  <meyering@ascend.com>
89493
89494         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89495         jm_STRUCT_DIRENT_D_TYPE.
89496         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89497         jm_STRUCT_DIRENT_D_INO.
89498         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89499         jm_STRUCT_UTIMBUF.
89500         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89501         renamings.
89502         * m4/utime.m4: Likewise.
89503
89504         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89505         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89506
89507 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89508
89509         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89510         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89511
89512 2000-01-02  Jim Meyering  <meyering@ascend.com>
89513
89514         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89515         remember if this is necessary.
89516
89517 1999-12-26  Jim Meyering  <meyering@ascend.com>
89518
89519         * m4/jm-macros.m4: Use it here.
89520         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89521
89522 1999-12-23  Jim Meyering  <meyering@ascend.com>
89523
89524         * m4/jm-macros.m4: Check for clock_gettime (moved from
89525         fileutils/configure.in)
89526         Check for gettimeofday.
89527
89528 1999-12-20  Jim Meyering  <meyering@ascend.com>
89529
89530         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89531         autoconf-2.14a-1999-12-20.
89532
89533 1999-12-19  Jim Meyering  <meyering@ascend.com>
89534
89535         * m4/lstat-slash.m4: New file.
89536         * m4/jm-macros.m4: Use the new macro:
89537         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89538
89539 1999-12-07  Jim Meyering  <meyering@ascend.com>
89540
89541         * m4/perl.m4: Require that File::Compare be available, too.
89542         Too many systems seem to lack it.
89543
89544         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89545         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89546
89547 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89548
89549         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89550         problem with the QNX 4.25 shell, which doesn't propagate exit
89551         status of failed commands inside shell assignments.
89552
89553 1999-11-17  Jim Meyering  <meyering@ascend.com>
89554
89555         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89556
89557 1999-11-07  Jim Meyering  <meyering@ascend.com>
89558
89559         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89560
89561 1999-11-06  Jim Meyering  <meyering@ascend.com>
89562
89563         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89564         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89565
89566 1999-11-05  Jim Meyering  <meyering@ascend.com>
89567
89568         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89569         configure.in of textutils, fileutils, and sh-utils into this one
89570         (shared between those packages) file.
89571         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89572         AC_STRUCT_ST_BLKSIZE.
89573
89574 1999-11-03  Jim Meyering  <meyering@ascend.com>
89575
89576         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89577         of AC_CHECK_TYPE checks includes unistd.h.
89578         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89579         Suggestion from Akim Demaille.
89580
89581 1999-10-30  Jim Meyering  <meyering@ascend.com>
89582
89583         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89584         m4-quoted string.
89585         * m4/ls-mntd-fs.m4: Likewise.
89586         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89587         * m4/jm-winsz1.m4: Likewise.
89588
89589         * m4/const.m4: Remove file, since the fix made it into the experimental
89590         version of autoconf.
89591         * m4/mktime.m4: Likewise.
89592
89593         * m4/check-type.m4: Remove file, now that the latest version of
89594         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89595
89596         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89597         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89598         AC_CHECK_TYPE.
89599
89600 1999-10-04  Jim Meyering  <meyering@ascend.com>
89601
89602         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89603
89604 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89605
89606         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89607         2.95.1 bug with HP-UX 10.20.
89608
89609 1999-09-17  Jim Meyering  <meyering@ascend.com>
89610
89611         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89612         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89613         due to missing strdup (against sh-utils-2.0).
89614
89615 1999-08-29  Jim Meyering  <meyering@ascend.com>
89616
89617         * m4/jm-macros.m4: Require jm_BISON.
89618         * m4/bison.m4: New file.
89619
89620 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89621
89622         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89623         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89624
89625 1999-08-05  Jim Meyering  <meyering@ascend.com>
89626
89627         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89628         to avoid conflicts with `conftest' on 8+3 filesystems.
89629         Suggestion from Eli Zaretskii.
89630
89631 1999-08-04  Jim Meyering  <meyering@ascend.com>
89632
89633         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89634         fileutils and sh-utils (textutils's getline test was inadequate).
89635         (AM_FUNC_GETLINE): Run this test.
89636         (AC_CHECK_FUNCS): Check for getdelim.
89637         Reported by Bob Proulx.
89638
89639 1999-08-02  Jim Meyering  <meyering@ascend.com>
89640
89641         * m4/jm-macros.m4: Add a comment.
89642
89643 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89644
89645         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89646         <inttypes.h> defines strtoumax as a macro (and not as a
89647         function).
89648
89649 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89650
89651         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89652         that we can shift, multiply and divide unsigned long long
89653         values; Ultrix cc can't do it.
89654
89655 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89656
89657         * m4/mktime.m4: New file, which is a preview of what should appear
89658         in the next public autoconf release.
89659
89660 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89661
89662         * m4/lfs.m4: Remove this file.
89663         * m4/largefile.m4: New file.  It contains the old contents of
89664         lfs.m4, except that all names with prefix AC_LFS have been
89665         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89666         compatible with future autoconf versions.  Also, some minor m4
89667         quoting problems have been fixed.
89668
89669 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89670
89671         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89672         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89673         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89674         and simplify the shell code.
89675
89676 1999-08-01  Jim Meyering  <meyering@ascend.com>
89677
89678         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89679         m4.
89680
89681 1999-07-20  Jim Meyering  <meyering@ascend.com>
89682
89683         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89684
89685 1999-07-15  Jim Meyering  <meyering@ascend.com>
89686
89687         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89688
89689 1999-05-22  Jim Meyering  <meyering@ascend.com>
89690
89691         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89692
89693 1999-05-20  Jim Meyering  <meyering@ascend.com>
89694
89695         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89696         Add a colon after each `then' in case $4 is empty.
89697
89698 1999-05-16  Jim Meyering  <meyering@ascend.com>
89699
89700         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89701
89702 1999-05-10  Jim Meyering  <meyering@ascend.com>
89703
89704         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89705
89706         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89707         AC_FUNC_MKTIME.
89708
89709 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89710
89711         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89712
89713 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89714
89715         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89716         not CPPFLAGS, so that linking works correctly in IRIX.
89717
89718 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89719
89720         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89721
89722 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89723
89724         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89725         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89726         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89727         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89728         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89729
89730         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89731
89732 1999-04-20  Jim Meyering  <meyering@ascend.com>
89733
89734         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89735         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89736         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89737
89738 1999-04-18  Jim Meyering  <meyering@ascend.com>
89739
89740         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89741         * m4/jm-macros.m4: Use it.
89742
89743 1999-04-06  Jim Meyering  <meyering@ascend.com>
89744
89745         * m4/strftime.m4: Remove test for %f.
89746
89747 1999-03-29  Jim Meyering  <meyering@ascend.com>
89748
89749         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89750         superset of the AC_TYPE_* checks in the textutils, fileutils,
89751         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89752         AC_TYPE_PID_T.
89753
89754 1999-03-28  Jim Meyering  <meyering@ascend.com>
89755
89756         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89757         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89758         replaced e.g., in the *.sh files of the sh-utils.
89759
89760 1999-03-20  Jim Meyering  <meyering@ascend.com>
89761
89762         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89763         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89764         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89765
89766 1999-03-19  Jim Meyering  <meyering@ascend.com>
89767
89768         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89769
89770 1999-03-12  Jim Meyering  <meyering@ascend.com>
89771
89772         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89773
89774 1999-03-07  Jim Meyering  <meyering@ascend.com>
89775
89776         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89777         declared.
89778
89779 1999-02-17  Jim Meyering  <meyering@ascend.com>
89780
89781         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89782         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89783
89784 1999-02-07  Jim Meyering  <meyering@ascend.com>
89785
89786         * m4/group-member.m4: New file -- extracted from sh-utils'
89787         configure.in.
89788
89789         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89790         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89791
89792 1999-02-06  Jim Meyering  <meyering@ascend.com>
89793
89794         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89795         * m4/fnmatch.m4: Likewise.
89796         * m4/getgroups.m4: Likewise.
89797         * m4/lstat.m4: Likewise.
89798         * m4/malloc.m4: Likewise.
89799         * m4/putenv.m4: Likewise.
89800         * m4/realloc.m4: Likewise.
89801         * m4/regex.m4: Likewise.
89802         * m4/stat.m4: Likewise.
89803         * m4/strftime.m4: Likewise.
89804         Suggestion from Alain Magloire.
89805
89806         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89807         * m4/fnmatch.m4: Likewise.
89808         * m4/getgroups.m4: Likewise.
89809         * m4/getline.m4: Likewise.
89810         * m4/lstat.m4: Likewise.
89811         * m4/malloc.m4: Likewise.
89812         * m4/memcmp.m4: Likewise.
89813         * m4/putenv.m4: Likewise.
89814         * m4/realloc.m4: Likewise.
89815         * m4/regex.m4: Likewise.
89816         * m4/stat.m4: Likewise.
89817         * m4/strftime.m4: Likewise.
89818         Suggestion from Alain Magloire.
89819
89820         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89821         an argument.
89822
89823         * m4/regex.m4: Add a run-time Test for proper operation of
89824         re_compile_pattern.
89825
89826 1999-01-31  Jim Meyering  <meyering@ascend.com>
89827
89828         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89829
89830 1999-01-30  Jim Meyering  <meyering@ascend.com>
89831
89832         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89833
89834         * m4/jm-mktime.m4: Make this a wrapper around the official
89835         AM_FUNC_MKTIME rather than my private copy, now that the official one
89836         is up to date.
89837         * m4/mktime.m4: Remove file.
89838
89839         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89840         * m4/uptime.m4: Likewise.
89841         * m4/uintmax_t.m4: Likewise.
89842
89843 1999-01-28  Jim Meyering  <meyering@ascend.com>
89844
89845         * m4/jm-macros.m4: Use jm_AFS.
89846         * m4/afs.m4: New file (from fileutils' configure.in).
89847
89848         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89849         * m4/chown.m4: Likewise.
89850         * m4/d-ino.m4: Likewise.
89851         * m4/d-type.m4: Likewise.
89852         * m4/fnmatch.m4: Likewise.
89853         * m4/getgroups.m4: Likewise.
89854         * m4/gettext.m4: Likewise.
89855         * m4/jm-mktime.m4: Likewise.
89856         * m4/jm-winsz2.m4: Likewise.
89857         * m4/lcmessage.m4: Likewise.
89858         * m4/ls-mntd-fs.m4: Likewise.
89859         * m4/malloc.m4: Likewise.
89860         * m4/memcmp.m4: Likewise.
89861         * m4/putenv.m4: Likewise.
89862         * m4/realloc.m4: Likewise.
89863         * m4/st_mtim.m4: Likewise.
89864         * m4/strftime.m4: Likewise.
89865
89866 1999-01-16  Jim Meyering  <meyering@ascend.com>
89867
89868         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89869         (ARGMATCH_DIE_DECL): Define.
89870
89871 1999-01-12  Jim Meyering  <meyering@ascend.com>
89872
89873         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89874         Reported by Lars Hecking.
89875
89876 1999-01-10  Jim Meyering  <meyering@ascend.com>
89877
89878         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89879         gross kludge.
89880         * m4/inttypes_h.m4: Likewise.
89881         * m4/lstat.m4: Likewise.
89882         * m4/malloc.m4: Likewise.
89883         * m4/readdir.m4: Likewise.
89884         * m4/realloc.m4: Likewise.
89885         * m4/st_dm_mode.m4: Likewise.
89886         * m4/stat.m4: Likewise.
89887         * m4/utimbuf.m4: Likewise.
89888         * m4/utimes.m4: Likewise.
89889
89890         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89891         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89892         comments in config.h.in are meaningful.
89893
89894         * m4/jm-macros.m4: Require autoconf-2.13 here.
89895
89896         * m4/regex.m4: By default, don't use the included regex.c on systems
89897         with glibc 2.  Suggestion from Uli Drepper.
89898
89899 1999-01-02  Jim Meyering  <meyering@ascend.com>
89900
89901         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89902
89903 1998-12-18  Jim Meyering  <meyering@ascend.com>
89904
89905         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89906         Based on a suggestion from Lars Hecking.
89907
89908 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89909
89910         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89911
89912 1998-11-16  Jim Meyering  <meyering@ascend.com>
89913
89914         * m4/lfs.m4: Double-quote the `uname...` expression.
89915
89916 1998-11-14  Jim Meyering  <meyering@ascend.com>
89917
89918         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89919         * m4/stat.m4: Likewise.
89920
89921 1998-11-03  Jim Meyering  <meyering@ascend.com>
89922
89923         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89924         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89925
89926 1998-10-18  Jim Meyering  <meyering@ascend.com>
89927
89928         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89929
89930 1998-10-17  Jim Meyering  <meyering@ascend.com>
89931
89932         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89933         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89934         calls for those previously hard-coded headers.  Instead, take a new
89935         parameter.
89936         (jm_CHECK_DECLARATIONS): Reflect interface change.
89937         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89938         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89939
89940         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89941
89942 1998-10-14  Jim Meyering  <meyering@ascend.com>
89943
89944         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89945         instead of "TZ=America/Vancouver".  From Paul Eggert.
89946
89947 1998-10-11  Jim Meyering  <meyering@ascend.com>
89948
89949         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89950         This adds a test for a recently added compatibility fix for mktime.c.
89951         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89952
89953 1998-09-27  Jim Meyering  <meyering@ascend.com>
89954
89955         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89956
89957         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89958         ../configure.in, including a change from Gordon Matzigkeit to allow
89959         cross-compiling for the Hurd.
89960
89961         * m4/glibc.m4: New file/macro to test for the GNU C Library
89962         versions 1 and 2.  From Gordon Matzigkeit.
89963         Indent.
89964
89965 1998-09-21  Jim Meyering  <meyering@ascend.com>
89966
89967         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89968
89969 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89970
89971         Port nanosecond-resolution times to UnixWare 2.1.2 and
89972         pedantic Solaris 2.6.
89973
89974         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89975         AC_STRUCT_ST_MTIM.
89976         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89977         Generate name of ns member, instead of just 1 or undef.
89978         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89979
89980 1998-08-15  Jim Meyering  <meyering@ascend.com>
89981
89982         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89983         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89984         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89985         instead of jm_TYPE_SSIZE_T.
89986
89987 1998-08-12  Jim Meyering  <meyering@ascend.com>
89988
89989         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89990
89991 1998-08-02  Jim Meyering  <meyering@ascend.com>
89992
89993         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89994         in acconfig.h manually.
89995
89996 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89997
89998         * m4/st_mtim.m4: New file.
89999
90000 1998-07-28  Jim Meyering  <meyering@ascend.com>
90001
90002         * m4/utimes.m4: Undef stat.
90003
90004 1998-07-25  Jim Meyering  <meyering@ascend.com>
90005
90006         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90007         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90008
90009 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90010
90011         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90012         uid and gid actually remain unchanged.
90013
90014 1998-07-07  Jim Meyering  <meyering@ascend.com>
90015
90016         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90017
90018 1998-07-04  Jim Meyering  <meyering@ascend.com>
90019
90020         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90021         to prove that this macro can be used in packages without regex.c.
90022
90023 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90024
90025         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90026         is to be used.
90027
90028 1998-07-03  Jim Meyering  <meyering@ascend.com>
90029
90030         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90031
90032         * m4/gettext.m4: New file -- from gettext-0.10.35.
90033         * m4/lcmessage.m4: Likewise.
90034         * m4/progtest.m4: Likewise.
90035
90036         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90037         * m4/jm-macros.m4: Require the new macro.
90038
90039 1998-06-29  Jim Meyering  <meyering@ascend.com>
90040
90041         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90042         for the definition of NGROUPS (used in a system header included
90043         by sys/mount.h).
90044
90045 1998-06-28  Jim Meyering  <meyering@ascend.com>
90046
90047         * m4/ls-mntd-fs.m4: New file.
90048         * m4/fstypename.m4: New file.
90049
90050         * m4/jm-macros.m4: Require the new macro.
90051         * m4/jm-glibc-io.m4: New file.
90052
90053 1998-05-19  Jim Meyering  <meyering@ascend.com>
90054
90055         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90056         * m4/lchown.m4: New file.
90057
90058         * m4/Makefile.am.in: New file.
90059         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90060
90061 1998-05-14  Jim Meyering  <meyering@ascend.com>
90062
90063         * m4/Makefile.am (EXTRA_DIST): Add them.
90064         * m4/jm-macros.m4: New file.
90065         * m4/utimbuf.m4: New file.
90066
90067 1998-05-12  Jim Meyering  <meyering@ascend.com>
90068
90069         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90070
90071 1998-05-11  Jim Meyering  <meyering@ascend.com>
90072
90073         * m4/isc-posix.m4: New file.
90074
90075 1998-05-10  Jim Meyering  <meyering@ascend.com>
90076
90077         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90078
90079 1998-05-09  Jim Meyering  <meyering@ascend.com>
90080
90081         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90082         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90083         with automake.
90084
90085         * m4/ssize_t.m4: New file.
90086         * m4/mktime.m4: Remove file -- the new automake has this now.
90087
90088 1998-04-26  Jim Meyering  <meyering@ascend.com>
90089
90090         * m4/assert.m4: New file.
90091         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90092
90093 1998-04-05  Jim Meyering  <meyering@ascend.com>
90094
90095         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90096         (jm_PREREQ): Use it here.
90097
90098 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90099
90100         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90101         in acconfig.h.
90102
90103 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90104
90105         * m4/prereq.m4: New file.
90106         * m4/error.m4: New file.
90107         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90108
90109 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90110
90111         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90112         cache-check for the same variable -- that defeated the purpose of
90113         the test; the test program was never run.  This was a problem only
90114         on systems with losing getline functions -- HP-UX 10.20 is one.
90115         Reported by Bjorn Helgaas.
90116
90117 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90118
90119         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90120
90121 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90122
90123         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90124
90125         * m4/const.m4: New file.  Use an initializer in this declaration
90126         typedef int charset[2]; const charset x;
90127         Reported by Bob Glickstein.
90128
90129 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90130
90131         * m4/chown.m4: Fix reversed types on -1 args to chown.
90132         From Kaveh Ghazi.
90133
90134 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90135
90136         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90137         Add lseek and memchr.
90138
90139         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90140         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90141         have a 20-character limit on names.
90142
90143 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90144
90145         * m4/inttypes_h.m4: New file.
90146         * m4/uintmax_t.m4: New file.
90147         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90148
90149
90150         -----
90151
90152         Local Variables:
90153         coding: utf-8
90154         End:
90155
90156         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90157
90158         Copying and distribution of this file, with or without
90159         modification, are permitted provided the copyright notice
90160         and this notice are preserved.